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" ;; |
Nick Lewycky | fa8ffc1 | 2009-04-18 18:11:26 +0000 | [diff] [blame] | 2403 | arm*-*) llvm_cv_target_arch="ARM" ;; |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 2404 | mips-*) llvm_cv_target_arch="Mips" ;; |
Sanjiv Gupta | 0234f51 | 2008-05-13 17:37:32 +0000 | [diff] [blame] | 2405 | pic16-*) llvm_cv_target_arch="PIC16" ;; |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 2406 | xcore-*) llvm_cv_target_arch="XCore" ;; |
Anton Korobeynikov | 2c4718b | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 2407 | msp430-*) llvm_cv_target_arch="MSP430" ;; |
Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 2408 | s390x-*) llvm_cv_target_arch="SystemZ" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2409 | *) llvm_cv_target_arch="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2410 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2411 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2412 | { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 |
| 2413 | echo "${ECHO_T}$llvm_cv_target_arch" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2414 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2415 | if test "$llvm_cv_target_arch" = "Unknown" ; then |
| 2416 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 |
| 2417 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} |
| 2418 | fi |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 2419 | |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 2420 | # Determine the LLVM native architecture for the target |
| 2421 | case "$llvm_cv_target_arch" in |
| 2422 | x86) LLVM_NATIVE_ARCH="X86" ;; |
| 2423 | x86_64) LLVM_NATIVE_ARCH="X86" ;; |
| 2424 | *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; |
| 2425 | esac |
| 2426 | |
Bill Wendling | a083335 | 2009-03-12 04:10:09 +0000 | [diff] [blame] | 2427 | ARCH=$llvm_cv_target_arch |
| 2428 | |
| 2429 | |
| 2430 | ac_ext=c |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2431 | ac_cpp='$CPP $CPPFLAGS' |
| 2432 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2433 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2434 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2435 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2436 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2437 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2438 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2439 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2440 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2441 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2442 | else |
| 2443 | if test -n "$CC"; then |
| 2444 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2445 | else |
| 2446 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2447 | for as_dir in $PATH |
| 2448 | do |
| 2449 | IFS=$as_save_IFS |
| 2450 | test -z "$as_dir" && as_dir=. |
| 2451 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 2452 | 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] | 2453 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2454 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2455 | break 2 |
| 2456 | fi |
| 2457 | done |
| 2458 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2459 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2460 | |
| 2461 | fi |
| 2462 | fi |
| 2463 | CC=$ac_cv_prog_CC |
| 2464 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2465 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2466 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2467 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2468 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2469 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2470 | fi |
| 2471 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2472 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2473 | fi |
| 2474 | if test -z "$ac_cv_prog_CC"; then |
| 2475 | ac_ct_CC=$CC |
| 2476 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2477 | set dummy gcc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2478 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2479 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2480 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2481 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2482 | else |
| 2483 | if test -n "$ac_ct_CC"; then |
| 2484 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2485 | else |
| 2486 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2487 | for as_dir in $PATH |
| 2488 | do |
| 2489 | IFS=$as_save_IFS |
| 2490 | test -z "$as_dir" && as_dir=. |
| 2491 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 2492 | 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] | 2493 | ac_cv_prog_ac_ct_CC="gcc" |
| 2494 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2495 | break 2 |
| 2496 | fi |
| 2497 | done |
| 2498 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2499 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2500 | |
| 2501 | fi |
| 2502 | fi |
| 2503 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2504 | if test -n "$ac_ct_CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2505 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2506 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2507 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2508 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2509 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2510 | fi |
| 2511 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2512 | if test "x$ac_ct_CC" = x; then |
| 2513 | CC="" |
| 2514 | else |
| 2515 | case $cross_compiling:$ac_tool_warned in |
| 2516 | yes:) |
| 2517 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2518 | whose name does not start with the host triplet. If you think this |
| 2519 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2520 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2521 | whose name does not start with the host triplet. If you think this |
| 2522 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2523 | ac_tool_warned=yes ;; |
| 2524 | esac |
| 2525 | CC=$ac_ct_CC |
| 2526 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2527 | else |
| 2528 | CC="$ac_cv_prog_CC" |
| 2529 | fi |
| 2530 | |
| 2531 | if test -z "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2532 | if test -n "$ac_tool_prefix"; then |
| 2533 | # 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] | 2534 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2535 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2536 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2537 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2538 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2539 | else |
| 2540 | if test -n "$CC"; then |
| 2541 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2542 | else |
| 2543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2544 | for as_dir in $PATH |
| 2545 | do |
| 2546 | IFS=$as_save_IFS |
| 2547 | test -z "$as_dir" && as_dir=. |
| 2548 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 2549 | 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] | 2550 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2551 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2552 | break 2 |
| 2553 | fi |
| 2554 | done |
| 2555 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2556 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2557 | |
| 2558 | fi |
| 2559 | fi |
| 2560 | CC=$ac_cv_prog_CC |
| 2561 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2562 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2563 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2564 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2565 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2566 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2567 | fi |
| 2568 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2569 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2570 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2571 | fi |
| 2572 | if test -z "$CC"; then |
| 2573 | # Extract the first word of "cc", so it can be a program name with args. |
| 2574 | set dummy cc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2575 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2576 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2577 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2578 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2579 | else |
| 2580 | if test -n "$CC"; then |
| 2581 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2582 | else |
| 2583 | ac_prog_rejected=no |
| 2584 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2585 | for as_dir in $PATH |
| 2586 | do |
| 2587 | IFS=$as_save_IFS |
| 2588 | test -z "$as_dir" && as_dir=. |
| 2589 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 2590 | 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] | 2591 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2592 | ac_prog_rejected=yes |
| 2593 | continue |
| 2594 | fi |
| 2595 | ac_cv_prog_CC="cc" |
| 2596 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2597 | break 2 |
| 2598 | fi |
| 2599 | done |
| 2600 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2601 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2602 | |
| 2603 | if test $ac_prog_rejected = yes; then |
| 2604 | # We found a bogon in the path, so make sure we never use it. |
| 2605 | set dummy $ac_cv_prog_CC |
| 2606 | shift |
| 2607 | if test $# != 0; then |
| 2608 | # We chose a different compiler from the bogus one. |
| 2609 | # However, it has the same basename, so the bogon will be chosen |
| 2610 | # first if we set CC to just the basename; use the full file name. |
| 2611 | shift |
| 2612 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2613 | fi |
| 2614 | fi |
| 2615 | fi |
| 2616 | fi |
| 2617 | CC=$ac_cv_prog_CC |
| 2618 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2619 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2620 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2621 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2622 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2623 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2624 | fi |
| 2625 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2626 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2627 | fi |
| 2628 | if test -z "$CC"; then |
| 2629 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2630 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2631 | do |
| 2632 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2633 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2634 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2635 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2636 | if test "${ac_cv_prog_CC+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2637 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2638 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2639 | if test -n "$CC"; then |
| 2640 | ac_cv_prog_CC="$CC" # Let the user override the test. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2641 | else |
| 2642 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2643 | for as_dir in $PATH |
| 2644 | do |
| 2645 | IFS=$as_save_IFS |
| 2646 | test -z "$as_dir" && as_dir=. |
| 2647 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 2648 | 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] | 2649 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2650 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2651 | break 2 |
| 2652 | fi |
| 2653 | done |
| 2654 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2655 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2656 | |
| 2657 | fi |
| 2658 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2659 | CC=$ac_cv_prog_CC |
| 2660 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2661 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2662 | echo "${ECHO_T}$CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2663 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2664 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2665 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2666 | fi |
| 2667 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2668 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2669 | test -n "$CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2670 | done |
| 2671 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2672 | if test -z "$CC"; then |
| 2673 | ac_ct_CC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2674 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2675 | do |
| 2676 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2677 | set dummy $ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2678 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2679 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2680 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2681 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2682 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2683 | if test -n "$ac_ct_CC"; then |
| 2684 | 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] | 2685 | else |
| 2686 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2687 | for as_dir in $PATH |
| 2688 | do |
| 2689 | IFS=$as_save_IFS |
| 2690 | test -z "$as_dir" && as_dir=. |
| 2691 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 2692 | 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] | 2693 | ac_cv_prog_ac_ct_CC="$ac_prog" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2694 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2695 | break 2 |
| 2696 | fi |
| 2697 | done |
| 2698 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2699 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2700 | |
| 2701 | fi |
| 2702 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2703 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2704 | if test -n "$ac_ct_CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2705 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2706 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2707 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2708 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2709 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2710 | fi |
| 2711 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2712 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2713 | test -n "$ac_ct_CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2714 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2715 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2716 | if test "x$ac_ct_CC" = x; then |
| 2717 | CC="" |
| 2718 | else |
| 2719 | case $cross_compiling:$ac_tool_warned in |
| 2720 | yes:) |
| 2721 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2722 | whose name does not start with the host triplet. If you think this |
| 2723 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2724 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2725 | whose name does not start with the host triplet. If you think this |
| 2726 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2727 | ac_tool_warned=yes ;; |
| 2728 | esac |
| 2729 | CC=$ac_ct_CC |
| 2730 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2731 | fi |
| 2732 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2733 | fi |
| 2734 | |
| 2735 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2736 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2737 | See \`config.log' for more details." >&5 |
| 2738 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2739 | See \`config.log' for more details." >&2;} |
| 2740 | { (exit 1); exit 1; }; } |
| 2741 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2742 | # Provide some information about the compiler. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2743 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2744 | ac_compiler=`set X $ac_compile; echo $2` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2745 | { (ac_try="$ac_compiler --version >&5" |
| 2746 | case "(($ac_try" in |
| 2747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2748 | *) ac_try_echo=$ac_try;; |
| 2749 | esac |
| 2750 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2751 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2752 | ac_status=$? |
| 2753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2754 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2755 | { (ac_try="$ac_compiler -v >&5" |
| 2756 | case "(($ac_try" in |
| 2757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2758 | *) ac_try_echo=$ac_try;; |
| 2759 | esac |
| 2760 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2761 | (eval "$ac_compiler -v >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2762 | ac_status=$? |
| 2763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2764 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2765 | { (ac_try="$ac_compiler -V >&5" |
| 2766 | case "(($ac_try" in |
| 2767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2768 | *) ac_try_echo=$ac_try;; |
| 2769 | esac |
| 2770 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2771 | (eval "$ac_compiler -V >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2772 | ac_status=$? |
| 2773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2774 | (exit $ac_status); } |
| 2775 | |
| 2776 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2777 | /* confdefs.h. */ |
| 2778 | _ACEOF |
| 2779 | cat confdefs.h >>conftest.$ac_ext |
| 2780 | cat >>conftest.$ac_ext <<_ACEOF |
| 2781 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2782 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2783 | int |
| 2784 | main () |
| 2785 | { |
| 2786 | |
| 2787 | ; |
| 2788 | return 0; |
| 2789 | } |
| 2790 | _ACEOF |
| 2791 | ac_clean_files_save=$ac_clean_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2792 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2793 | # Try to create an executable without -o first, disregard a.out. |
| 2794 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2795 | # of exeext. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2796 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2797 | 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] | 2798 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2799 | # |
| 2800 | # List of possible output files, starting from the most likely. |
| 2801 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2802 | # only as a last resort. b.out is created by i960 compilers. |
| 2803 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2804 | # |
| 2805 | # The IRIX 6 linker writes into existing files which may not be |
| 2806 | # executable, retaining their permissions. Remove them first so a |
| 2807 | # subsequent execution test works. |
| 2808 | ac_rmfiles= |
| 2809 | for ac_file in $ac_files |
| 2810 | do |
| 2811 | case $ac_file in |
| 2812 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2813 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2814 | esac |
| 2815 | done |
| 2816 | rm -f $ac_rmfiles |
| 2817 | |
| 2818 | if { (ac_try="$ac_link_default" |
| 2819 | case "(($ac_try" in |
| 2820 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2821 | *) ac_try_echo=$ac_try;; |
| 2822 | esac |
| 2823 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2824 | (eval "$ac_link_default") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2825 | ac_status=$? |
| 2826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2827 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2828 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2829 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2830 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2831 | # so that the user can short-circuit this test for compilers unknown to |
| 2832 | # Autoconf. |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 2833 | for ac_file in $ac_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2834 | do |
| 2835 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2836 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2837 | *.$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] | 2838 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2839 | [ab].out ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2840 | # We found the default executable, but exeext='' is most |
| 2841 | # certainly right. |
| 2842 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2843 | *.* ) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2844 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2845 | then :; else |
| 2846 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2847 | fi |
| 2848 | # We set ac_cv_exeext here because the later test for it is not |
| 2849 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2850 | # argument, so we may need to know it at that point already. |
| 2851 | # Even if this section looks crufty: it has the advantage of |
| 2852 | # actually working. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2853 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2854 | * ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2855 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2856 | esac |
| 2857 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2858 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2859 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2860 | else |
| 2861 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2862 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2863 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2864 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2865 | See \`config.log' for more details." >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2866 | echo "$as_me: error: C compiler cannot create executables |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2867 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2868 | { (exit 77); exit 77; }; } |
| 2869 | fi |
| 2870 | |
| 2871 | ac_exeext=$ac_cv_exeext |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 2872 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2873 | echo "${ECHO_T}$ac_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2874 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2875 | # Check that the compiler produces executables we can run. If not, either |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2876 | # the compiler is broken, or we cross compile. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2877 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2878 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2879 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2880 | # If not cross compiling, check that we can run a simple program. |
| 2881 | if test "$cross_compiling" != yes; then |
| 2882 | if { ac_try='./$ac_file' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2883 | { (case "(($ac_try" in |
| 2884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2885 | *) ac_try_echo=$ac_try;; |
| 2886 | esac |
| 2887 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2888 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2889 | ac_status=$? |
| 2890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2891 | (exit $ac_status); }; }; then |
| 2892 | cross_compiling=no |
| 2893 | else |
| 2894 | if test "$cross_compiling" = maybe; then |
| 2895 | cross_compiling=yes |
| 2896 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2897 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2898 | If you meant to cross compile, use \`--host'. |
| 2899 | See \`config.log' for more details." >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2900 | echo "$as_me: error: cannot run C compiled programs. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2901 | If you meant to cross compile, use \`--host'. |
| 2902 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2903 | { (exit 1); exit 1; }; } |
| 2904 | fi |
| 2905 | fi |
| 2906 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2907 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2908 | echo "${ECHO_T}yes" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2909 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2910 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2911 | ac_clean_files=$ac_clean_files_save |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2912 | # Check that the compiler produces executables we can run. If not, either |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2913 | # the compiler is broken, or we cross compile. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2914 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2915 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2916 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2917 | echo "${ECHO_T}$cross_compiling" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2918 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2919 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2920 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2921 | if { (ac_try="$ac_link" |
| 2922 | case "(($ac_try" in |
| 2923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2924 | *) ac_try_echo=$ac_try;; |
| 2925 | esac |
| 2926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2927 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2928 | ac_status=$? |
| 2929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2930 | (exit $ac_status); }; then |
| 2931 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2932 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2933 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2934 | # `rm'. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2935 | for ac_file in conftest.exe conftest conftest.*; do |
| 2936 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2937 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2938 | *.$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] | 2939 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2940 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2941 | * ) break;; |
| 2942 | esac |
| 2943 | done |
| 2944 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2945 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2946 | See \`config.log' for more details." >&5 |
| 2947 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2948 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2949 | { (exit 1); exit 1; }; } |
| 2950 | fi |
| 2951 | |
| 2952 | rm -f conftest$ac_cv_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2953 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2954 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2955 | |
| 2956 | rm -f conftest.$ac_ext |
| 2957 | EXEEXT=$ac_cv_exeext |
| 2958 | ac_exeext=$EXEEXT |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2959 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2960 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2961 | if test "${ac_cv_objext+set}" = set; then |
| 2962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2963 | else |
| 2964 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2965 | /* confdefs.h. */ |
| 2966 | _ACEOF |
| 2967 | cat confdefs.h >>conftest.$ac_ext |
| 2968 | cat >>conftest.$ac_ext <<_ACEOF |
| 2969 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2970 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2971 | int |
| 2972 | main () |
| 2973 | { |
| 2974 | |
| 2975 | ; |
| 2976 | return 0; |
| 2977 | } |
| 2978 | _ACEOF |
| 2979 | rm -f conftest.o conftest.obj |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2980 | if { (ac_try="$ac_compile" |
| 2981 | case "(($ac_try" in |
| 2982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2983 | *) ac_try_echo=$ac_try;; |
| 2984 | esac |
| 2985 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2986 | (eval "$ac_compile") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2987 | ac_status=$? |
| 2988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2989 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2990 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2991 | test -f "$ac_file" || continue; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2992 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2993 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2994 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2995 | break;; |
| 2996 | esac |
| 2997 | done |
| 2998 | else |
| 2999 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3000 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3001 | |
| 3002 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 3003 | See \`config.log' for more details." >&5 |
| 3004 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 3005 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3006 | { (exit 1); exit 1; }; } |
| 3007 | fi |
| 3008 | |
| 3009 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3010 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3011 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 3012 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3013 | OBJEXT=$ac_cv_objext |
| 3014 | ac_objext=$OBJEXT |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3015 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 3016 | 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] | 3017 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3018 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3019 | else |
| 3020 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3021 | /* confdefs.h. */ |
| 3022 | _ACEOF |
| 3023 | cat confdefs.h >>conftest.$ac_ext |
| 3024 | cat >>conftest.$ac_ext <<_ACEOF |
| 3025 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3026 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3027 | int |
| 3028 | main () |
| 3029 | { |
| 3030 | #ifndef __GNUC__ |
| 3031 | choke me |
| 3032 | #endif |
| 3033 | |
| 3034 | ; |
| 3035 | return 0; |
| 3036 | } |
| 3037 | _ACEOF |
| 3038 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3039 | if { (ac_try="$ac_compile" |
| 3040 | case "(($ac_try" in |
| 3041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3042 | *) ac_try_echo=$ac_try;; |
| 3043 | esac |
| 3044 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3045 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3046 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3047 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3048 | rm -f conftest.er1 |
| 3049 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3051 | (exit $ac_status); } && |
| 3052 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3053 | { (case "(($ac_try" in |
| 3054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3055 | *) ac_try_echo=$ac_try;; |
| 3056 | esac |
| 3057 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3058 | (eval "$ac_try") 2>&5 |
| 3059 | ac_status=$? |
| 3060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3061 | (exit $ac_status); }; } && |
| 3062 | { ac_try='test -s conftest.$ac_objext' |
| 3063 | { (case "(($ac_try" in |
| 3064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3065 | *) ac_try_echo=$ac_try;; |
| 3066 | esac |
| 3067 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3068 | (eval "$ac_try") 2>&5 |
| 3069 | ac_status=$? |
| 3070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3071 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3072 | ac_compiler_gnu=yes |
| 3073 | else |
| 3074 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3075 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3076 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3077 | ac_compiler_gnu=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3078 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3079 | |
| 3080 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3081 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3082 | |
| 3083 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3084 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3085 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3086 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 3087 | ac_test_CFLAGS=${CFLAGS+set} |
| 3088 | ac_save_CFLAGS=$CFLAGS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3089 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3090 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3091 | if test "${ac_cv_prog_cc_g+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3092 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3093 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3094 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3095 | ac_c_werror_flag=yes |
| 3096 | ac_cv_prog_cc_g=no |
| 3097 | CFLAGS="-g" |
| 3098 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3099 | /* confdefs.h. */ |
| 3100 | _ACEOF |
| 3101 | cat confdefs.h >>conftest.$ac_ext |
| 3102 | cat >>conftest.$ac_ext <<_ACEOF |
| 3103 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3104 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3105 | int |
| 3106 | main () |
| 3107 | { |
| 3108 | |
| 3109 | ; |
| 3110 | return 0; |
| 3111 | } |
| 3112 | _ACEOF |
| 3113 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3114 | if { (ac_try="$ac_compile" |
| 3115 | case "(($ac_try" in |
| 3116 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3117 | *) ac_try_echo=$ac_try;; |
| 3118 | esac |
| 3119 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3120 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3121 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3122 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3123 | rm -f conftest.er1 |
| 3124 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3126 | (exit $ac_status); } && |
| 3127 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3128 | { (case "(($ac_try" in |
| 3129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3130 | *) ac_try_echo=$ac_try;; |
| 3131 | esac |
| 3132 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3133 | (eval "$ac_try") 2>&5 |
| 3134 | ac_status=$? |
| 3135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3136 | (exit $ac_status); }; } && |
| 3137 | { ac_try='test -s conftest.$ac_objext' |
| 3138 | { (case "(($ac_try" in |
| 3139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3140 | *) ac_try_echo=$ac_try;; |
| 3141 | esac |
| 3142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3143 | (eval "$ac_try") 2>&5 |
| 3144 | ac_status=$? |
| 3145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3146 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3147 | ac_cv_prog_cc_g=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3148 | else |
| 3149 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3150 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3151 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3152 | CFLAGS="" |
| 3153 | cat >conftest.$ac_ext <<_ACEOF |
| 3154 | /* confdefs.h. */ |
| 3155 | _ACEOF |
| 3156 | cat confdefs.h >>conftest.$ac_ext |
| 3157 | cat >>conftest.$ac_ext <<_ACEOF |
| 3158 | /* end confdefs.h. */ |
| 3159 | |
| 3160 | int |
| 3161 | main () |
| 3162 | { |
| 3163 | |
| 3164 | ; |
| 3165 | return 0; |
| 3166 | } |
| 3167 | _ACEOF |
| 3168 | rm -f conftest.$ac_objext |
| 3169 | if { (ac_try="$ac_compile" |
| 3170 | case "(($ac_try" in |
| 3171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3172 | *) ac_try_echo=$ac_try;; |
| 3173 | esac |
| 3174 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3175 | (eval "$ac_compile") 2>conftest.er1 |
| 3176 | ac_status=$? |
| 3177 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3178 | rm -f conftest.er1 |
| 3179 | cat conftest.err >&5 |
| 3180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3181 | (exit $ac_status); } && |
| 3182 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3183 | { (case "(($ac_try" in |
| 3184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3185 | *) ac_try_echo=$ac_try;; |
| 3186 | esac |
| 3187 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3188 | (eval "$ac_try") 2>&5 |
| 3189 | ac_status=$? |
| 3190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3191 | (exit $ac_status); }; } && |
| 3192 | { ac_try='test -s conftest.$ac_objext' |
| 3193 | { (case "(($ac_try" in |
| 3194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3195 | *) ac_try_echo=$ac_try;; |
| 3196 | esac |
| 3197 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3198 | (eval "$ac_try") 2>&5 |
| 3199 | ac_status=$? |
| 3200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3201 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3202 | : |
| 3203 | else |
| 3204 | echo "$as_me: failed program was:" >&5 |
| 3205 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3206 | |
| 3207 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3208 | CFLAGS="-g" |
| 3209 | cat >conftest.$ac_ext <<_ACEOF |
| 3210 | /* confdefs.h. */ |
| 3211 | _ACEOF |
| 3212 | cat confdefs.h >>conftest.$ac_ext |
| 3213 | cat >>conftest.$ac_ext <<_ACEOF |
| 3214 | /* end confdefs.h. */ |
| 3215 | |
| 3216 | int |
| 3217 | main () |
| 3218 | { |
| 3219 | |
| 3220 | ; |
| 3221 | return 0; |
| 3222 | } |
| 3223 | _ACEOF |
| 3224 | rm -f conftest.$ac_objext |
| 3225 | if { (ac_try="$ac_compile" |
| 3226 | case "(($ac_try" in |
| 3227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3228 | *) ac_try_echo=$ac_try;; |
| 3229 | esac |
| 3230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3231 | (eval "$ac_compile") 2>conftest.er1 |
| 3232 | ac_status=$? |
| 3233 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3234 | rm -f conftest.er1 |
| 3235 | cat conftest.err >&5 |
| 3236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3237 | (exit $ac_status); } && |
| 3238 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3239 | { (case "(($ac_try" in |
| 3240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3241 | *) ac_try_echo=$ac_try;; |
| 3242 | esac |
| 3243 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3244 | (eval "$ac_try") 2>&5 |
| 3245 | ac_status=$? |
| 3246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3247 | (exit $ac_status); }; } && |
| 3248 | { ac_try='test -s conftest.$ac_objext' |
| 3249 | { (case "(($ac_try" in |
| 3250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3251 | *) ac_try_echo=$ac_try;; |
| 3252 | esac |
| 3253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3254 | (eval "$ac_try") 2>&5 |
| 3255 | ac_status=$? |
| 3256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3257 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3258 | ac_cv_prog_cc_g=yes |
| 3259 | else |
| 3260 | echo "$as_me: failed program was:" >&5 |
| 3261 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3262 | |
| 3263 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3264 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3265 | |
| 3266 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3267 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3268 | |
| 3269 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3270 | fi |
| 3271 | |
| 3272 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3273 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3274 | fi |
| 3275 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3276 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3277 | if test "$ac_test_CFLAGS" = set; then |
| 3278 | CFLAGS=$ac_save_CFLAGS |
| 3279 | elif test $ac_cv_prog_cc_g = yes; then |
| 3280 | if test "$GCC" = yes; then |
| 3281 | CFLAGS="-g -O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3282 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3283 | CFLAGS="-g" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3284 | fi |
| 3285 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3286 | if test "$GCC" = yes; then |
| 3287 | CFLAGS="-O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3288 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3289 | CFLAGS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3290 | fi |
| 3291 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3292 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3293 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 3294 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3295 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3296 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3297 | ac_cv_prog_cc_c89=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3298 | ac_save_CC=$CC |
| 3299 | cat >conftest.$ac_ext <<_ACEOF |
| 3300 | /* confdefs.h. */ |
| 3301 | _ACEOF |
| 3302 | cat confdefs.h >>conftest.$ac_ext |
| 3303 | cat >>conftest.$ac_ext <<_ACEOF |
| 3304 | /* end confdefs.h. */ |
| 3305 | #include <stdarg.h> |
| 3306 | #include <stdio.h> |
| 3307 | #include <sys/types.h> |
| 3308 | #include <sys/stat.h> |
| 3309 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3310 | struct buf { int x; }; |
| 3311 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3312 | static char *e (p, i) |
| 3313 | char **p; |
| 3314 | int i; |
| 3315 | { |
| 3316 | return p[i]; |
| 3317 | } |
| 3318 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3319 | { |
| 3320 | char *s; |
| 3321 | va_list v; |
| 3322 | va_start (v,p); |
| 3323 | s = g (p, va_arg (v,int)); |
| 3324 | va_end (v); |
| 3325 | return s; |
| 3326 | } |
| 3327 | |
| 3328 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3329 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3330 | These don't provoke an error unfortunately, instead are silently treated |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3331 | 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] | 3332 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3333 | 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] | 3334 | that's true only with -std. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3335 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3336 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3337 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3338 | inside strings and character constants. */ |
| 3339 | #define FOO(x) 'x' |
| 3340 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3341 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3342 | int test (int i, double x); |
| 3343 | struct s1 {int (*f) (int a);}; |
| 3344 | struct s2 {int (*f) (double a);}; |
| 3345 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3346 | int argc; |
| 3347 | char **argv; |
| 3348 | int |
| 3349 | main () |
| 3350 | { |
| 3351 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3352 | ; |
| 3353 | return 0; |
| 3354 | } |
| 3355 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3356 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3357 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3358 | do |
| 3359 | CC="$ac_save_CC $ac_arg" |
| 3360 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3361 | if { (ac_try="$ac_compile" |
| 3362 | case "(($ac_try" in |
| 3363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3364 | *) ac_try_echo=$ac_try;; |
| 3365 | esac |
| 3366 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3367 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3368 | ac_status=$? |
| 3369 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3370 | rm -f conftest.er1 |
| 3371 | cat conftest.err >&5 |
| 3372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3373 | (exit $ac_status); } && |
| 3374 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3375 | { (case "(($ac_try" in |
| 3376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3377 | *) ac_try_echo=$ac_try;; |
| 3378 | esac |
| 3379 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3380 | (eval "$ac_try") 2>&5 |
| 3381 | ac_status=$? |
| 3382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3383 | (exit $ac_status); }; } && |
| 3384 | { ac_try='test -s conftest.$ac_objext' |
| 3385 | { (case "(($ac_try" in |
| 3386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3387 | *) ac_try_echo=$ac_try;; |
| 3388 | esac |
| 3389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3390 | (eval "$ac_try") 2>&5 |
| 3391 | ac_status=$? |
| 3392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3393 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3394 | ac_cv_prog_cc_c89=$ac_arg |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3395 | else |
| 3396 | echo "$as_me: failed program was:" >&5 |
| 3397 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3398 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3399 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3400 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3401 | |
| 3402 | rm -f core conftest.err conftest.$ac_objext |
| 3403 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3404 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3405 | rm -f conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3406 | CC=$ac_save_CC |
| 3407 | |
| 3408 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3409 | # AC_CACHE_VAL |
| 3410 | case "x$ac_cv_prog_cc_c89" in |
| 3411 | x) |
| 3412 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3413 | echo "${ECHO_T}none needed" >&6; } ;; |
| 3414 | xno) |
| 3415 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3416 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3417 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3418 | CC="$CC $ac_cv_prog_cc_c89" |
| 3419 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3420 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3421 | esac |
| 3422 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3423 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3424 | ac_ext=c |
| 3425 | ac_cpp='$CPP $CPPFLAGS' |
| 3426 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3427 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3428 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3429 | |
| 3430 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3431 | ac_ext=c |
| 3432 | ac_cpp='$CPP $CPPFLAGS' |
| 3433 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3434 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3435 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3436 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3437 | 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] | 3438 | # On Suns, sometimes $CPP names a directory. |
| 3439 | if test -n "$CPP" && test -d "$CPP"; then |
| 3440 | CPP= |
| 3441 | fi |
| 3442 | if test -z "$CPP"; then |
| 3443 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3444 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3445 | else |
| 3446 | # Double quotes because CPP needs to be expanded |
| 3447 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3448 | do |
| 3449 | ac_preproc_ok=false |
| 3450 | for ac_c_preproc_warn_flag in '' yes |
| 3451 | do |
| 3452 | # Use a header file that comes with gcc, so configuring glibc |
| 3453 | # with a fresh cross-compiler works. |
| 3454 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3455 | # <limits.h> exists even on freestanding compilers. |
| 3456 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3457 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3458 | cat >conftest.$ac_ext <<_ACEOF |
| 3459 | /* confdefs.h. */ |
| 3460 | _ACEOF |
| 3461 | cat confdefs.h >>conftest.$ac_ext |
| 3462 | cat >>conftest.$ac_ext <<_ACEOF |
| 3463 | /* end confdefs.h. */ |
| 3464 | #ifdef __STDC__ |
| 3465 | # include <limits.h> |
| 3466 | #else |
| 3467 | # include <assert.h> |
| 3468 | #endif |
| 3469 | Syntax error |
| 3470 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3471 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3472 | case "(($ac_try" in |
| 3473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3474 | *) ac_try_echo=$ac_try;; |
| 3475 | esac |
| 3476 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3477 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3478 | ac_status=$? |
| 3479 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3480 | rm -f conftest.er1 |
| 3481 | cat conftest.err >&5 |
| 3482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3483 | (exit $ac_status); } >/dev/null; then |
| 3484 | if test -s conftest.err; then |
| 3485 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3486 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3487 | else |
| 3488 | ac_cpp_err= |
| 3489 | fi |
| 3490 | else |
| 3491 | ac_cpp_err=yes |
| 3492 | fi |
| 3493 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3494 | : |
| 3495 | else |
| 3496 | echo "$as_me: failed program was:" >&5 |
| 3497 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3498 | |
| 3499 | # Broken: fails on valid input. |
| 3500 | continue |
| 3501 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3502 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3503 | rm -f conftest.err conftest.$ac_ext |
| 3504 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3505 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3506 | # can be detected and how. |
| 3507 | cat >conftest.$ac_ext <<_ACEOF |
| 3508 | /* confdefs.h. */ |
| 3509 | _ACEOF |
| 3510 | cat confdefs.h >>conftest.$ac_ext |
| 3511 | cat >>conftest.$ac_ext <<_ACEOF |
| 3512 | /* end confdefs.h. */ |
| 3513 | #include <ac_nonexistent.h> |
| 3514 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3515 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3516 | case "(($ac_try" in |
| 3517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3518 | *) ac_try_echo=$ac_try;; |
| 3519 | esac |
| 3520 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3521 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3522 | ac_status=$? |
| 3523 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3524 | rm -f conftest.er1 |
| 3525 | cat conftest.err >&5 |
| 3526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3527 | (exit $ac_status); } >/dev/null; then |
| 3528 | if test -s conftest.err; then |
| 3529 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3530 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3531 | else |
| 3532 | ac_cpp_err= |
| 3533 | fi |
| 3534 | else |
| 3535 | ac_cpp_err=yes |
| 3536 | fi |
| 3537 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3538 | # Broken: success on invalid input. |
| 3539 | continue |
| 3540 | else |
| 3541 | echo "$as_me: failed program was:" >&5 |
| 3542 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3543 | |
| 3544 | # Passes both tests. |
| 3545 | ac_preproc_ok=: |
| 3546 | break |
| 3547 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3548 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3549 | rm -f conftest.err conftest.$ac_ext |
| 3550 | |
| 3551 | done |
| 3552 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3553 | rm -f conftest.err conftest.$ac_ext |
| 3554 | if $ac_preproc_ok; then |
| 3555 | break |
| 3556 | fi |
| 3557 | |
| 3558 | done |
| 3559 | ac_cv_prog_CPP=$CPP |
| 3560 | |
| 3561 | fi |
| 3562 | CPP=$ac_cv_prog_CPP |
| 3563 | else |
| 3564 | ac_cv_prog_CPP=$CPP |
| 3565 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3566 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3567 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3568 | ac_preproc_ok=false |
| 3569 | for ac_c_preproc_warn_flag in '' yes |
| 3570 | do |
| 3571 | # Use a header file that comes with gcc, so configuring glibc |
| 3572 | # with a fresh cross-compiler works. |
| 3573 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3574 | # <limits.h> exists even on freestanding compilers. |
| 3575 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3576 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3577 | cat >conftest.$ac_ext <<_ACEOF |
| 3578 | /* confdefs.h. */ |
| 3579 | _ACEOF |
| 3580 | cat confdefs.h >>conftest.$ac_ext |
| 3581 | cat >>conftest.$ac_ext <<_ACEOF |
| 3582 | /* end confdefs.h. */ |
| 3583 | #ifdef __STDC__ |
| 3584 | # include <limits.h> |
| 3585 | #else |
| 3586 | # include <assert.h> |
| 3587 | #endif |
| 3588 | Syntax error |
| 3589 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3590 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3591 | case "(($ac_try" in |
| 3592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3593 | *) ac_try_echo=$ac_try;; |
| 3594 | esac |
| 3595 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3596 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3597 | ac_status=$? |
| 3598 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3599 | rm -f conftest.er1 |
| 3600 | cat conftest.err >&5 |
| 3601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3602 | (exit $ac_status); } >/dev/null; then |
| 3603 | if test -s conftest.err; then |
| 3604 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3605 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3606 | else |
| 3607 | ac_cpp_err= |
| 3608 | fi |
| 3609 | else |
| 3610 | ac_cpp_err=yes |
| 3611 | fi |
| 3612 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3613 | : |
| 3614 | else |
| 3615 | echo "$as_me: failed program was:" >&5 |
| 3616 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3617 | |
| 3618 | # Broken: fails on valid input. |
| 3619 | continue |
| 3620 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3621 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3622 | rm -f conftest.err conftest.$ac_ext |
| 3623 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3624 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3625 | # can be detected and how. |
| 3626 | cat >conftest.$ac_ext <<_ACEOF |
| 3627 | /* confdefs.h. */ |
| 3628 | _ACEOF |
| 3629 | cat confdefs.h >>conftest.$ac_ext |
| 3630 | cat >>conftest.$ac_ext <<_ACEOF |
| 3631 | /* end confdefs.h. */ |
| 3632 | #include <ac_nonexistent.h> |
| 3633 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3634 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3635 | case "(($ac_try" in |
| 3636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3637 | *) ac_try_echo=$ac_try;; |
| 3638 | esac |
| 3639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3640 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3641 | ac_status=$? |
| 3642 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3643 | rm -f conftest.er1 |
| 3644 | cat conftest.err >&5 |
| 3645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3646 | (exit $ac_status); } >/dev/null; then |
| 3647 | if test -s conftest.err; then |
| 3648 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3649 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3650 | else |
| 3651 | ac_cpp_err= |
| 3652 | fi |
| 3653 | else |
| 3654 | ac_cpp_err=yes |
| 3655 | fi |
| 3656 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3657 | # Broken: success on invalid input. |
| 3658 | continue |
| 3659 | else |
| 3660 | echo "$as_me: failed program was:" >&5 |
| 3661 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3662 | |
| 3663 | # Passes both tests. |
| 3664 | ac_preproc_ok=: |
| 3665 | break |
| 3666 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3667 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3668 | rm -f conftest.err conftest.$ac_ext |
| 3669 | |
| 3670 | done |
| 3671 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3672 | rm -f conftest.err conftest.$ac_ext |
| 3673 | if $ac_preproc_ok; then |
| 3674 | : |
| 3675 | else |
| 3676 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3677 | See \`config.log' for more details." >&5 |
| 3678 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3679 | See \`config.log' for more details." >&2;} |
| 3680 | { (exit 1); exit 1; }; } |
| 3681 | fi |
| 3682 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3683 | ac_ext=c |
| 3684 | ac_cpp='$CPP $CPPFLAGS' |
| 3685 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3686 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3687 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3688 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3689 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3690 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3691 | 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] | 3692 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3694 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3695 | # Extract the first word of "grep ggrep" to use in msg output |
| 3696 | if test -z "$GREP"; then |
| 3697 | set dummy grep ggrep; ac_prog_name=$2 |
| 3698 | if test "${ac_cv_path_GREP+set}" = set; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3699 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3700 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3701 | ac_path_GREP_found=false |
| 3702 | # 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] | 3703 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3704 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3705 | do |
| 3706 | IFS=$as_save_IFS |
| 3707 | test -z "$as_dir" && as_dir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3708 | for ac_prog in grep ggrep; do |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3709 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3710 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3711 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3712 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3713 | # Check for GNU $ac_path_GREP |
| 3714 | case `"$ac_path_GREP" --version 2>&1` in |
| 3715 | *GNU*) |
| 3716 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3717 | *) |
| 3718 | ac_count=0 |
| 3719 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3720 | while : |
| 3721 | do |
| 3722 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3723 | mv "conftest.tmp" "conftest.in" |
| 3724 | cp "conftest.in" "conftest.nl" |
| 3725 | echo 'GREP' >> "conftest.nl" |
| 3726 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3727 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3728 | ac_count=`expr $ac_count + 1` |
| 3729 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3730 | # Best one so far, save it but keep looking for a better one |
| 3731 | ac_cv_path_GREP="$ac_path_GREP" |
| 3732 | ac_path_GREP_max=$ac_count |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3733 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3734 | # 10*(2^10) chars as input seems more than enough |
| 3735 | test $ac_count -gt 10 && break |
| 3736 | done |
| 3737 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3738 | esac |
| 3739 | |
| 3740 | |
| 3741 | $ac_path_GREP_found && break 3 |
| 3742 | done |
| 3743 | done |
| 3744 | |
| 3745 | done |
| 3746 | IFS=$as_save_IFS |
| 3747 | |
| 3748 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3749 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3750 | |
| 3751 | GREP="$ac_cv_path_GREP" |
| 3752 | if test -z "$GREP"; then |
| 3753 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3754 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3755 | { (exit 1); exit 1; }; } |
| 3756 | fi |
| 3757 | |
| 3758 | else |
| 3759 | ac_cv_path_GREP=$GREP |
| 3760 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3761 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3762 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3763 | fi |
| 3764 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3765 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 3766 | GREP="$ac_cv_path_GREP" |
| 3767 | |
| 3768 | |
| 3769 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3770 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3771 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3773 | else |
| 3774 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3775 | then ac_cv_path_EGREP="$GREP -E" |
| 3776 | else |
| 3777 | # Extract the first word of "egrep" to use in msg output |
| 3778 | if test -z "$EGREP"; then |
| 3779 | set dummy egrep; ac_prog_name=$2 |
| 3780 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3781 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3782 | else |
| 3783 | ac_path_EGREP_found=false |
| 3784 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3786 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3787 | do |
| 3788 | IFS=$as_save_IFS |
| 3789 | test -z "$as_dir" && as_dir=. |
| 3790 | for ac_prog in egrep; do |
| 3791 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3792 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3793 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3794 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3795 | # Check for GNU $ac_path_EGREP |
| 3796 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3797 | *GNU*) |
| 3798 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3799 | *) |
| 3800 | ac_count=0 |
| 3801 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3802 | while : |
| 3803 | do |
| 3804 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3805 | mv "conftest.tmp" "conftest.in" |
| 3806 | cp "conftest.in" "conftest.nl" |
| 3807 | echo 'EGREP' >> "conftest.nl" |
| 3808 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3809 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3810 | ac_count=`expr $ac_count + 1` |
| 3811 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3812 | # Best one so far, save it but keep looking for a better one |
| 3813 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3814 | ac_path_EGREP_max=$ac_count |
| 3815 | fi |
| 3816 | # 10*(2^10) chars as input seems more than enough |
| 3817 | test $ac_count -gt 10 && break |
| 3818 | done |
| 3819 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3820 | esac |
| 3821 | |
| 3822 | |
| 3823 | $ac_path_EGREP_found && break 3 |
| 3824 | done |
| 3825 | done |
| 3826 | |
| 3827 | done |
| 3828 | IFS=$as_save_IFS |
| 3829 | |
| 3830 | |
| 3831 | fi |
| 3832 | |
| 3833 | EGREP="$ac_cv_path_EGREP" |
| 3834 | if test -z "$EGREP"; then |
| 3835 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3836 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3837 | { (exit 1); exit 1; }; } |
| 3838 | fi |
| 3839 | |
| 3840 | else |
| 3841 | ac_cv_path_EGREP=$EGREP |
| 3842 | fi |
| 3843 | |
| 3844 | |
| 3845 | fi |
| 3846 | fi |
| 3847 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3848 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 3849 | EGREP="$ac_cv_path_EGREP" |
| 3850 | |
| 3851 | |
| 3852 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3853 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3854 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3855 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3856 | else |
| 3857 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3858 | /* confdefs.h. */ |
| 3859 | _ACEOF |
| 3860 | cat confdefs.h >>conftest.$ac_ext |
| 3861 | cat >>conftest.$ac_ext <<_ACEOF |
| 3862 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3863 | #include <stdlib.h> |
| 3864 | #include <stdarg.h> |
| 3865 | #include <string.h> |
| 3866 | #include <float.h> |
| 3867 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3868 | int |
| 3869 | main () |
| 3870 | { |
| 3871 | |
| 3872 | ; |
| 3873 | return 0; |
| 3874 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3875 | _ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3876 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3877 | if { (ac_try="$ac_compile" |
| 3878 | case "(($ac_try" in |
| 3879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3880 | *) ac_try_echo=$ac_try;; |
| 3881 | esac |
| 3882 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3883 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3884 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3885 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3886 | rm -f conftest.er1 |
| 3887 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 3889 | (exit $ac_status); } && |
| 3890 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3891 | { (case "(($ac_try" in |
| 3892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3893 | *) ac_try_echo=$ac_try;; |
| 3894 | esac |
| 3895 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3896 | (eval "$ac_try") 2>&5 |
| 3897 | ac_status=$? |
| 3898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3899 | (exit $ac_status); }; } && |
| 3900 | { ac_try='test -s conftest.$ac_objext' |
| 3901 | { (case "(($ac_try" in |
| 3902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3903 | *) ac_try_echo=$ac_try;; |
| 3904 | esac |
| 3905 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3906 | (eval "$ac_try") 2>&5 |
| 3907 | ac_status=$? |
| 3908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3909 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3910 | ac_cv_header_stdc=yes |
| 3911 | else |
| 3912 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3913 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3914 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3915 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3916 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3917 | |
| 3918 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3919 | |
| 3920 | if test $ac_cv_header_stdc = yes; then |
| 3921 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3922 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3923 | /* confdefs.h. */ |
| 3924 | _ACEOF |
| 3925 | cat confdefs.h >>conftest.$ac_ext |
| 3926 | cat >>conftest.$ac_ext <<_ACEOF |
| 3927 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3928 | #include <string.h> |
| 3929 | |
| 3930 | _ACEOF |
| 3931 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3932 | $EGREP "memchr" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3933 | : |
| 3934 | else |
| 3935 | ac_cv_header_stdc=no |
| 3936 | fi |
| 3937 | rm -f conftest* |
| 3938 | |
| 3939 | fi |
| 3940 | |
| 3941 | if test $ac_cv_header_stdc = yes; then |
| 3942 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3943 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3944 | /* confdefs.h. */ |
| 3945 | _ACEOF |
| 3946 | cat confdefs.h >>conftest.$ac_ext |
| 3947 | cat >>conftest.$ac_ext <<_ACEOF |
| 3948 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3949 | #include <stdlib.h> |
| 3950 | |
| 3951 | _ACEOF |
| 3952 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3953 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3954 | : |
| 3955 | else |
| 3956 | ac_cv_header_stdc=no |
| 3957 | fi |
| 3958 | rm -f conftest* |
| 3959 | |
| 3960 | fi |
| 3961 | |
| 3962 | if test $ac_cv_header_stdc = yes; then |
| 3963 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3964 | if test "$cross_compiling" = yes; then |
| 3965 | : |
| 3966 | else |
| 3967 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3968 | /* confdefs.h. */ |
| 3969 | _ACEOF |
| 3970 | cat confdefs.h >>conftest.$ac_ext |
| 3971 | cat >>conftest.$ac_ext <<_ACEOF |
| 3972 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3973 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3974 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3975 | #if ((' ' & 0x0FF) == 0x020) |
| 3976 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3977 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3978 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3979 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3980 | (('a' <= (c) && (c) <= 'i') \ |
| 3981 | || ('j' <= (c) && (c) <= 'r') \ |
| 3982 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3983 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3984 | #endif |
| 3985 | |
| 3986 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3987 | int |
| 3988 | main () |
| 3989 | { |
| 3990 | int i; |
| 3991 | for (i = 0; i < 256; i++) |
| 3992 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3993 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3994 | return 2; |
| 3995 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3996 | } |
| 3997 | _ACEOF |
| 3998 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3999 | if { (ac_try="$ac_link" |
| 4000 | case "(($ac_try" in |
| 4001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4002 | *) ac_try_echo=$ac_try;; |
| 4003 | esac |
| 4004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4005 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4006 | ac_status=$? |
| 4007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4008 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4009 | { (case "(($ac_try" in |
| 4010 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4011 | *) ac_try_echo=$ac_try;; |
| 4012 | esac |
| 4013 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4014 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4015 | ac_status=$? |
| 4016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4017 | (exit $ac_status); }; }; then |
| 4018 | : |
| 4019 | else |
| 4020 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4021 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 4022 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4023 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4024 | ( exit $ac_status ) |
| 4025 | ac_cv_header_stdc=no |
| 4026 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4027 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4028 | fi |
| 4029 | |
| 4030 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4031 | fi |
| 4032 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4033 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4034 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4035 | if test $ac_cv_header_stdc = yes; then |
| 4036 | |
| 4037 | cat >>confdefs.h <<\_ACEOF |
| 4038 | #define STDC_HEADERS 1 |
| 4039 | _ACEOF |
| 4040 | |
| 4041 | fi |
| 4042 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4043 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4044 | |
| 4045 | |
| 4046 | |
| 4047 | |
| 4048 | |
| 4049 | |
| 4050 | |
| 4051 | |
| 4052 | |
| 4053 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4054 | inttypes.h stdint.h unistd.h |
| 4055 | do |
| 4056 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4057 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4058 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 4059 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 4060 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4061 | else |
| 4062 | cat >conftest.$ac_ext <<_ACEOF |
| 4063 | /* confdefs.h. */ |
| 4064 | _ACEOF |
| 4065 | cat confdefs.h >>conftest.$ac_ext |
| 4066 | cat >>conftest.$ac_ext <<_ACEOF |
| 4067 | /* end confdefs.h. */ |
| 4068 | $ac_includes_default |
| 4069 | |
| 4070 | #include <$ac_header> |
| 4071 | _ACEOF |
| 4072 | rm -f conftest.$ac_objext |
| 4073 | if { (ac_try="$ac_compile" |
| 4074 | case "(($ac_try" in |
| 4075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4076 | *) ac_try_echo=$ac_try;; |
| 4077 | esac |
| 4078 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4079 | (eval "$ac_compile") 2>conftest.er1 |
| 4080 | ac_status=$? |
| 4081 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4082 | rm -f conftest.er1 |
| 4083 | cat conftest.err >&5 |
| 4084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4085 | (exit $ac_status); } && |
| 4086 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4087 | { (case "(($ac_try" in |
| 4088 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4089 | *) ac_try_echo=$ac_try;; |
| 4090 | esac |
| 4091 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4092 | (eval "$ac_try") 2>&5 |
| 4093 | ac_status=$? |
| 4094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4095 | (exit $ac_status); }; } && |
| 4096 | { ac_try='test -s conftest.$ac_objext' |
| 4097 | { (case "(($ac_try" in |
| 4098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4099 | *) ac_try_echo=$ac_try;; |
| 4100 | esac |
| 4101 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4102 | (eval "$ac_try") 2>&5 |
| 4103 | ac_status=$? |
| 4104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4105 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4106 | eval "$as_ac_Header=yes" |
| 4107 | else |
| 4108 | echo "$as_me: failed program was:" >&5 |
| 4109 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4110 | |
| 4111 | eval "$as_ac_Header=no" |
| 4112 | fi |
| 4113 | |
| 4114 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4115 | fi |
| 4116 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 4117 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4118 | echo "${ECHO_T}$ac_res" >&6; } |
| 4119 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4120 | cat >>confdefs.h <<_ACEOF |
| 4121 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4122 | _ACEOF |
| 4123 | |
| 4124 | fi |
| 4125 | |
| 4126 | done |
| 4127 | |
| 4128 | |
| 4129 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 4130 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
| 4131 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 4132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4133 | else |
| 4134 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 4135 | cat >conftest.$ac_ext <<_ACEOF |
| 4136 | /* confdefs.h. */ |
| 4137 | _ACEOF |
| 4138 | cat confdefs.h >>conftest.$ac_ext |
| 4139 | cat >>conftest.$ac_ext <<_ACEOF |
| 4140 | /* end confdefs.h. */ |
| 4141 | #include <sys/types.h> |
| 4142 | #include <sys/param.h> |
| 4143 | |
| 4144 | int |
| 4145 | main () |
| 4146 | { |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4147 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4148 | bogus endian macros |
| 4149 | #endif |
| 4150 | |
| 4151 | ; |
| 4152 | return 0; |
| 4153 | } |
| 4154 | _ACEOF |
| 4155 | rm -f conftest.$ac_objext |
| 4156 | if { (ac_try="$ac_compile" |
| 4157 | case "(($ac_try" in |
| 4158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4159 | *) ac_try_echo=$ac_try;; |
| 4160 | esac |
| 4161 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4162 | (eval "$ac_compile") 2>conftest.er1 |
| 4163 | ac_status=$? |
| 4164 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4165 | rm -f conftest.er1 |
| 4166 | cat conftest.err >&5 |
| 4167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4168 | (exit $ac_status); } && |
| 4169 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4170 | { (case "(($ac_try" in |
| 4171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4172 | *) ac_try_echo=$ac_try;; |
| 4173 | esac |
| 4174 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4175 | (eval "$ac_try") 2>&5 |
| 4176 | ac_status=$? |
| 4177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4178 | (exit $ac_status); }; } && |
| 4179 | { ac_try='test -s conftest.$ac_objext' |
| 4180 | { (case "(($ac_try" in |
| 4181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4182 | *) ac_try_echo=$ac_try;; |
| 4183 | esac |
| 4184 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4185 | (eval "$ac_try") 2>&5 |
| 4186 | ac_status=$? |
| 4187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4188 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4189 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 4190 | cat >conftest.$ac_ext <<_ACEOF |
| 4191 | /* confdefs.h. */ |
| 4192 | _ACEOF |
| 4193 | cat confdefs.h >>conftest.$ac_ext |
| 4194 | cat >>conftest.$ac_ext <<_ACEOF |
| 4195 | /* end confdefs.h. */ |
| 4196 | #include <sys/types.h> |
| 4197 | #include <sys/param.h> |
| 4198 | |
| 4199 | int |
| 4200 | main () |
| 4201 | { |
| 4202 | #if BYTE_ORDER != BIG_ENDIAN |
| 4203 | not big endian |
| 4204 | #endif |
| 4205 | |
| 4206 | ; |
| 4207 | return 0; |
| 4208 | } |
| 4209 | _ACEOF |
| 4210 | rm -f conftest.$ac_objext |
| 4211 | if { (ac_try="$ac_compile" |
| 4212 | case "(($ac_try" in |
| 4213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4214 | *) ac_try_echo=$ac_try;; |
| 4215 | esac |
| 4216 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4217 | (eval "$ac_compile") 2>conftest.er1 |
| 4218 | ac_status=$? |
| 4219 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4220 | rm -f conftest.er1 |
| 4221 | cat conftest.err >&5 |
| 4222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4223 | (exit $ac_status); } && |
| 4224 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4225 | { (case "(($ac_try" in |
| 4226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4227 | *) ac_try_echo=$ac_try;; |
| 4228 | esac |
| 4229 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4230 | (eval "$ac_try") 2>&5 |
| 4231 | ac_status=$? |
| 4232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4233 | (exit $ac_status); }; } && |
| 4234 | { ac_try='test -s conftest.$ac_objext' |
| 4235 | { (case "(($ac_try" in |
| 4236 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4237 | *) ac_try_echo=$ac_try;; |
| 4238 | esac |
| 4239 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4240 | (eval "$ac_try") 2>&5 |
| 4241 | ac_status=$? |
| 4242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4243 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4244 | ac_cv_c_bigendian=yes |
| 4245 | else |
| 4246 | echo "$as_me: failed program was:" >&5 |
| 4247 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4248 | |
| 4249 | ac_cv_c_bigendian=no |
| 4250 | fi |
| 4251 | |
| 4252 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4253 | else |
| 4254 | echo "$as_me: failed program was:" >&5 |
| 4255 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4256 | |
| 4257 | # It does not; compile a test program. |
| 4258 | if test "$cross_compiling" = yes; then |
| 4259 | # try to guess the endianness by grepping values into an object file |
| 4260 | ac_cv_c_bigendian=unknown |
| 4261 | cat >conftest.$ac_ext <<_ACEOF |
| 4262 | /* confdefs.h. */ |
| 4263 | _ACEOF |
| 4264 | cat confdefs.h >>conftest.$ac_ext |
| 4265 | cat >>conftest.$ac_ext <<_ACEOF |
| 4266 | /* end confdefs.h. */ |
| 4267 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4268 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4269 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 4270 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4271 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4272 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 4273 | int |
| 4274 | main () |
| 4275 | { |
| 4276 | _ascii (); _ebcdic (); |
| 4277 | ; |
| 4278 | return 0; |
| 4279 | } |
| 4280 | _ACEOF |
| 4281 | rm -f conftest.$ac_objext |
| 4282 | if { (ac_try="$ac_compile" |
| 4283 | case "(($ac_try" in |
| 4284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4285 | *) ac_try_echo=$ac_try;; |
| 4286 | esac |
| 4287 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4288 | (eval "$ac_compile") 2>conftest.er1 |
| 4289 | ac_status=$? |
| 4290 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4291 | rm -f conftest.er1 |
| 4292 | cat conftest.err >&5 |
| 4293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4294 | (exit $ac_status); } && |
| 4295 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4296 | { (case "(($ac_try" in |
| 4297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4298 | *) ac_try_echo=$ac_try;; |
| 4299 | esac |
| 4300 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4301 | (eval "$ac_try") 2>&5 |
| 4302 | ac_status=$? |
| 4303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4304 | (exit $ac_status); }; } && |
| 4305 | { ac_try='test -s conftest.$ac_objext' |
| 4306 | { (case "(($ac_try" in |
| 4307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4308 | *) ac_try_echo=$ac_try;; |
| 4309 | esac |
| 4310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4311 | (eval "$ac_try") 2>&5 |
| 4312 | ac_status=$? |
| 4313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4314 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4315 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 4316 | ac_cv_c_bigendian=yes |
| 4317 | fi |
| 4318 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4319 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4320 | ac_cv_c_bigendian=no |
| 4321 | else |
| 4322 | # finding both strings is unlikely to happen, but who knows? |
| 4323 | ac_cv_c_bigendian=unknown |
| 4324 | fi |
| 4325 | fi |
| 4326 | else |
| 4327 | echo "$as_me: failed program was:" >&5 |
| 4328 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4329 | |
| 4330 | |
| 4331 | fi |
| 4332 | |
| 4333 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4334 | else |
| 4335 | cat >conftest.$ac_ext <<_ACEOF |
| 4336 | /* confdefs.h. */ |
| 4337 | _ACEOF |
| 4338 | cat confdefs.h >>conftest.$ac_ext |
| 4339 | cat >>conftest.$ac_ext <<_ACEOF |
| 4340 | /* end confdefs.h. */ |
| 4341 | $ac_includes_default |
| 4342 | int |
| 4343 | main () |
| 4344 | { |
| 4345 | |
| 4346 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4347 | union |
| 4348 | { |
| 4349 | long int l; |
| 4350 | char c[sizeof (long int)]; |
| 4351 | } u; |
| 4352 | u.l = 1; |
| 4353 | return u.c[sizeof (long int) - 1] == 1; |
| 4354 | |
| 4355 | ; |
| 4356 | return 0; |
| 4357 | } |
| 4358 | _ACEOF |
| 4359 | rm -f conftest$ac_exeext |
| 4360 | if { (ac_try="$ac_link" |
| 4361 | case "(($ac_try" in |
| 4362 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4363 | *) ac_try_echo=$ac_try;; |
| 4364 | esac |
| 4365 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4366 | (eval "$ac_link") 2>&5 |
| 4367 | ac_status=$? |
| 4368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4369 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4370 | { (case "(($ac_try" in |
| 4371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4372 | *) ac_try_echo=$ac_try;; |
| 4373 | esac |
| 4374 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4375 | (eval "$ac_try") 2>&5 |
| 4376 | ac_status=$? |
| 4377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4378 | (exit $ac_status); }; }; then |
| 4379 | ac_cv_c_bigendian=no |
| 4380 | else |
| 4381 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4382 | echo "$as_me: failed program was:" >&5 |
| 4383 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4384 | |
| 4385 | ( exit $ac_status ) |
| 4386 | ac_cv_c_bigendian=yes |
| 4387 | fi |
| 4388 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4389 | fi |
| 4390 | |
| 4391 | |
| 4392 | fi |
| 4393 | |
| 4394 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4395 | fi |
| 4396 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 4397 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 4398 | case $ac_cv_c_bigendian in |
| 4399 | yes) |
| 4400 | ENDIAN=big |
| 4401 | ;; |
| 4402 | no) |
| 4403 | ENDIAN=little |
| 4404 | ;; |
| 4405 | *) |
| 4406 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 4407 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 4408 | echo "$as_me: error: unknown endianness |
| 4409 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 4410 | { (exit 1); exit 1; }; } ;; |
| 4411 | esac |
| 4412 | |
| 4413 | |
| 4414 | if test "$cross_compiling" = yes; then |
| 4415 | LLVM_CROSS_COMPILING=1 |
| 4416 | |
| 4417 | |
| 4418 | { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 |
| 4419 | echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } |
| 4420 | if test "${ac_cv_build_exeext+set}" = set; then |
| 4421 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4422 | else |
| 4423 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 4424 | ac_cv_build_exeext=.exe |
| 4425 | else |
| 4426 | ac_build_prefix=${build_alias}- |
| 4427 | |
| 4428 | # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. |
| 4429 | set dummy ${ac_build_prefix}gcc; ac_word=$2 |
| 4430 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4431 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4432 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4433 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4434 | else |
| 4435 | if test -n "$BUILD_CC"; then |
| 4436 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4437 | else |
| 4438 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4439 | for as_dir in $PATH |
| 4440 | do |
| 4441 | IFS=$as_save_IFS |
| 4442 | test -z "$as_dir" && as_dir=. |
| 4443 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4444 | 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] | 4445 | ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" |
| 4446 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4447 | break 2 |
| 4448 | fi |
| 4449 | done |
| 4450 | done |
| 4451 | IFS=$as_save_IFS |
| 4452 | |
| 4453 | fi |
| 4454 | fi |
| 4455 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4456 | if test -n "$BUILD_CC"; then |
| 4457 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4458 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4459 | else |
| 4460 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4461 | echo "${ECHO_T}no" >&6; } |
| 4462 | fi |
| 4463 | |
| 4464 | |
| 4465 | if test -z "$BUILD_CC"; then |
| 4466 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4467 | set dummy gcc; ac_word=$2 |
| 4468 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4469 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4470 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4472 | else |
| 4473 | if test -n "$BUILD_CC"; then |
| 4474 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4475 | else |
| 4476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4477 | for as_dir in $PATH |
| 4478 | do |
| 4479 | IFS=$as_save_IFS |
| 4480 | test -z "$as_dir" && as_dir=. |
| 4481 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4482 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4483 | ac_cv_prog_BUILD_CC="gcc" |
| 4484 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4485 | break 2 |
| 4486 | fi |
| 4487 | done |
| 4488 | done |
| 4489 | IFS=$as_save_IFS |
| 4490 | |
| 4491 | fi |
| 4492 | fi |
| 4493 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4494 | if test -n "$BUILD_CC"; then |
| 4495 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4496 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4497 | else |
| 4498 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4499 | echo "${ECHO_T}no" >&6; } |
| 4500 | fi |
| 4501 | |
| 4502 | |
| 4503 | if test -z "$BUILD_CC"; then |
| 4504 | # Extract the first word of "cc", so it can be a program name with args. |
| 4505 | set dummy cc; ac_word=$2 |
| 4506 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4507 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4508 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4510 | else |
| 4511 | if test -n "$BUILD_CC"; then |
| 4512 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4513 | else |
| 4514 | ac_prog_rejected=no |
| 4515 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4516 | for as_dir in $PATH |
| 4517 | do |
| 4518 | IFS=$as_save_IFS |
| 4519 | test -z "$as_dir" && as_dir=. |
| 4520 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4521 | 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] | 4522 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4523 | ac_prog_rejected=yes |
| 4524 | continue |
| 4525 | fi |
| 4526 | ac_cv_prog_BUILD_CC="cc" |
| 4527 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4528 | break 2 |
| 4529 | fi |
| 4530 | done |
| 4531 | done |
| 4532 | IFS=$as_save_IFS |
| 4533 | |
| 4534 | if test $ac_prog_rejected = yes; then |
| 4535 | # We found a bogon in the path, so make sure we never use it. |
| 4536 | set dummy $ac_cv_prog_BUILD_CC |
| 4537 | shift |
| 4538 | if test $# != 0; then |
| 4539 | # We chose a different compiler from the bogus one. |
| 4540 | # However, it has the same basename, so the bogon will be chosen |
| 4541 | # first if we set BUILD_CC to just the basename; use the full file name. |
| 4542 | shift |
| 4543 | ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" |
| 4544 | fi |
| 4545 | fi |
| 4546 | fi |
| 4547 | fi |
| 4548 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4549 | if test -n "$BUILD_CC"; then |
| 4550 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4551 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4552 | else |
| 4553 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4554 | echo "${ECHO_T}no" >&6; } |
| 4555 | fi |
| 4556 | |
| 4557 | |
| 4558 | fi |
| 4559 | fi |
| 4560 | test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 |
| 4561 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
| 4562 | { (exit 1); exit 1; }; } |
| 4563 | ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 4564 | rm -f conftest* |
| 4565 | echo 'int main () { return 0; }' > conftest.$ac_ext |
| 4566 | ac_cv_build_exeext= |
| 4567 | if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 |
| 4568 | (eval $ac_build_link) 2>&5 |
| 4569 | ac_status=$? |
| 4570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4571 | (exit $ac_status); }; then |
| 4572 | for file in conftest.*; do |
| 4573 | case $file in |
Jim Grosbach | 0eecd89 | 2008-09-26 17:27:58 +0000 | [diff] [blame] | 4574 | *.c | *.o | *.obj | *.dSYM) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4575 | *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; |
| 4576 | esac |
| 4577 | done |
| 4578 | else |
| 4579 | { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 |
| 4580 | echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} |
| 4581 | { (exit 1); exit 1; }; } |
| 4582 | fi |
| 4583 | rm -f conftest* |
| 4584 | test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank |
| 4585 | fi |
| 4586 | fi |
| 4587 | |
| 4588 | BUILD_EXEEXT="" |
| 4589 | test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext} |
| 4590 | { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 |
| 4591 | echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } |
| 4592 | ac_build_exeext=$BUILD_EXEEXT |
| 4593 | |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4594 | ac_build_prefix=${build_alias}- |
| 4595 | # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. |
| 4596 | set dummy ${ac_build_prefix}g++; ac_word=$2 |
| 4597 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4598 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4599 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4600 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4601 | else |
| 4602 | if test -n "$BUILD_CXX"; then |
| 4603 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4604 | else |
| 4605 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4606 | for as_dir in $PATH |
| 4607 | do |
| 4608 | IFS=$as_save_IFS |
| 4609 | test -z "$as_dir" && as_dir=. |
| 4610 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4611 | 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] | 4612 | ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" |
| 4613 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4614 | break 2 |
| 4615 | fi |
| 4616 | done |
| 4617 | done |
| 4618 | IFS=$as_save_IFS |
| 4619 | |
| 4620 | fi |
| 4621 | fi |
| 4622 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4623 | if test -n "$BUILD_CXX"; then |
| 4624 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4625 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
| 4626 | else |
| 4627 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4628 | echo "${ECHO_T}no" >&6; } |
| 4629 | fi |
| 4630 | |
| 4631 | |
| 4632 | if test -z "$BUILD_CXX"; then |
| 4633 | # Extract the first word of "g++", so it can be a program name with args. |
| 4634 | set dummy g++; ac_word=$2 |
| 4635 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4636 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4637 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4639 | else |
| 4640 | if test -n "$BUILD_CXX"; then |
| 4641 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4642 | else |
| 4643 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4644 | for as_dir in $PATH |
| 4645 | do |
| 4646 | IFS=$as_save_IFS |
| 4647 | test -z "$as_dir" && as_dir=. |
| 4648 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4649 | 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] | 4650 | ac_cv_prog_BUILD_CXX="g++" |
| 4651 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4652 | break 2 |
| 4653 | fi |
| 4654 | done |
| 4655 | done |
| 4656 | IFS=$as_save_IFS |
| 4657 | |
| 4658 | fi |
| 4659 | fi |
| 4660 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4661 | if test -n "$BUILD_CXX"; then |
| 4662 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4663 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
| 4664 | else |
| 4665 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4666 | echo "${ECHO_T}no" >&6; } |
| 4667 | fi |
| 4668 | |
| 4669 | |
| 4670 | if test -z "$BUILD_CXX"; then |
| 4671 | # Extract the first word of "c++", so it can be a program name with args. |
| 4672 | set dummy c++; ac_word=$2 |
| 4673 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4674 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4675 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4677 | else |
| 4678 | if test -n "$BUILD_CXX"; then |
| 4679 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4680 | else |
| 4681 | ac_prog_rejected=no |
| 4682 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4683 | for as_dir in $PATH |
| 4684 | do |
| 4685 | IFS=$as_save_IFS |
| 4686 | test -z "$as_dir" && as_dir=. |
| 4687 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 4688 | 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] | 4689 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then |
| 4690 | ac_prog_rejected=yes |
| 4691 | continue |
| 4692 | fi |
| 4693 | ac_cv_prog_BUILD_CXX="c++" |
| 4694 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4695 | break 2 |
| 4696 | fi |
| 4697 | done |
| 4698 | done |
| 4699 | IFS=$as_save_IFS |
| 4700 | |
| 4701 | if test $ac_prog_rejected = yes; then |
| 4702 | # We found a bogon in the path, so make sure we never use it. |
| 4703 | set dummy $ac_cv_prog_BUILD_CXX |
| 4704 | shift |
| 4705 | if test $# != 0; then |
| 4706 | # We chose a different compiler from the bogus one. |
| 4707 | # However, it has the same basename, so the bogon will be chosen |
| 4708 | # first if we set BUILD_CXX to just the basename; use the full file name. |
| 4709 | shift |
| 4710 | ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" |
| 4711 | fi |
| 4712 | fi |
| 4713 | fi |
| 4714 | fi |
| 4715 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4716 | if test -n "$BUILD_CXX"; then |
| 4717 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4718 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
| 4719 | else |
| 4720 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4721 | echo "${ECHO_T}no" >&6; } |
| 4722 | fi |
| 4723 | |
| 4724 | |
| 4725 | fi |
| 4726 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4727 | else |
| 4728 | LLVM_CROSS_COMPILING=0 |
| 4729 | |
| 4730 | fi |
| 4731 | |
Nick Lewycky | 5b28f86 | 2009-04-10 05:18:27 +0000 | [diff] [blame] | 4732 | 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] | 4733 | cvsbuild="yes" |
| 4734 | optimize="no" |
| 4735 | CVSBUILD=CVSBUILD=1 |
| 4736 | |
| 4737 | else |
| 4738 | cvsbuild="no" |
| 4739 | optimize="yes" |
| 4740 | fi |
| 4741 | |
| 4742 | |
| 4743 | # Check whether --enable-optimized was given. |
| 4744 | if test "${enable_optimized+set}" = set; then |
| 4745 | enableval=$enable_optimized; |
| 4746 | else |
| 4747 | enableval=$optimize |
| 4748 | fi |
| 4749 | |
| 4750 | if test ${enableval} = "no" ; then |
| 4751 | ENABLE_OPTIMIZED= |
| 4752 | |
| 4753 | else |
| 4754 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 |
| 4755 | |
| 4756 | fi |
| 4757 | |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 4758 | # Check whether --enable-profiling was given. |
| 4759 | if test "${enable_profiling+set}" = set; then |
| 4760 | enableval=$enable_profiling; |
| 4761 | else |
| 4762 | enableval="no" |
| 4763 | fi |
| 4764 | |
| 4765 | if test ${enableval} = "no" ; then |
| 4766 | ENABLE_PROFILING= |
| 4767 | |
| 4768 | else |
| 4769 | ENABLE_PROFILING=ENABLE_PROFILING=1 |
| 4770 | |
| 4771 | fi |
| 4772 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4773 | # Check whether --enable-assertions was given. |
| 4774 | if test "${enable_assertions+set}" = set; then |
| 4775 | enableval=$enable_assertions; |
| 4776 | else |
| 4777 | enableval="yes" |
| 4778 | fi |
| 4779 | |
| 4780 | if test ${enableval} = "yes" ; then |
| 4781 | DISABLE_ASSERTIONS= |
| 4782 | |
| 4783 | else |
| 4784 | DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 |
| 4785 | |
| 4786 | fi |
| 4787 | |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 4788 | # Check whether --enable-expensive-checks was given. |
| 4789 | if test "${enable_expensive_checks+set}" = set; then |
| 4790 | enableval=$enable_expensive_checks; |
| 4791 | else |
| 4792 | enableval="no" |
| 4793 | fi |
| 4794 | |
| 4795 | if test ${enableval} = "yes" ; then |
| 4796 | ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 |
| 4797 | |
| 4798 | EXPENSIVE_CHECKS=yes |
| 4799 | |
| 4800 | else |
| 4801 | ENABLE_EXPENSIVE_CHECKS= |
| 4802 | |
| 4803 | EXPENSIVE_CHECKS=no |
| 4804 | |
| 4805 | fi |
| 4806 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 4807 | # Check whether --enable-debug-runtime was given. |
| 4808 | if test "${enable_debug_runtime+set}" = set; then |
| 4809 | enableval=$enable_debug_runtime; |
| 4810 | else |
| 4811 | enableval=no |
| 4812 | fi |
| 4813 | |
| 4814 | if test ${enableval} = "no" ; then |
| 4815 | DEBUG_RUNTIME= |
| 4816 | |
| 4817 | else |
| 4818 | DEBUG_RUNTIME=DEBUG_RUNTIME=1 |
| 4819 | |
| 4820 | fi |
| 4821 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4822 | # Check whether --enable-jit was given. |
| 4823 | if test "${enable_jit+set}" = set; then |
| 4824 | enableval=$enable_jit; |
| 4825 | else |
| 4826 | enableval=default |
| 4827 | fi |
| 4828 | |
| 4829 | if test ${enableval} = "no" |
| 4830 | then |
| 4831 | JIT= |
| 4832 | |
| 4833 | else |
| 4834 | case "$llvm_cv_target_arch" in |
| 4835 | x86) TARGET_HAS_JIT=1 |
| 4836 | ;; |
Reid Spencer | febecf4 | 2007-01-21 06:42:03 +0000 | [diff] [blame] | 4837 | Sparc) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4838 | ;; |
| 4839 | PowerPC) TARGET_HAS_JIT=1 |
| 4840 | ;; |
Reid Spencer | febecf4 | 2007-01-21 06:42:03 +0000 | [diff] [blame] | 4841 | x86_64) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4842 | ;; |
| 4843 | Alpha) TARGET_HAS_JIT=1 |
| 4844 | ;; |
Reid Spencer | febecf4 | 2007-01-21 06:42:03 +0000 | [diff] [blame] | 4845 | ARM) TARGET_HAS_JIT=0 |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 4846 | ;; |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 4847 | Mips) TARGET_HAS_JIT=0 |
| 4848 | ;; |
Sanjiv Gupta | 0234f51 | 2008-05-13 17:37:32 +0000 | [diff] [blame] | 4849 | PIC16) TARGET_HAS_JIT=0 |
| 4850 | ;; |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 4851 | XCore) TARGET_HAS_JIT=0 |
| 4852 | ;; |
Anton Korobeynikov | 2c4718b | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 4853 | MSP430) TARGET_HAS_JIT=0 |
| 4854 | ;; |
Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 4855 | SystemZ) TARGET_HAS_JIT=0 |
| 4856 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4857 | *) TARGET_HAS_JIT=0 |
| 4858 | ;; |
| 4859 | esac |
| 4860 | fi |
| 4861 | |
| 4862 | # Check whether --enable-doxygen was given. |
| 4863 | if test "${enable_doxygen+set}" = set; then |
| 4864 | enableval=$enable_doxygen; |
| 4865 | else |
| 4866 | enableval=default |
| 4867 | fi |
| 4868 | |
| 4869 | case "$enableval" in |
| 4870 | yes) ENABLE_DOXYGEN=1 |
| 4871 | ;; |
| 4872 | no) ENABLE_DOXYGEN=0 |
| 4873 | ;; |
| 4874 | default) ENABLE_DOXYGEN=0 |
| 4875 | ;; |
| 4876 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 |
| 4877 | echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} |
| 4878 | { (exit 1); exit 1; }; } ;; |
| 4879 | esac |
| 4880 | |
| 4881 | # Check whether --enable-threads was given. |
| 4882 | if test "${enable_threads+set}" = set; then |
| 4883 | enableval=$enable_threads; |
| 4884 | else |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4885 | enableval=default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4886 | fi |
| 4887 | |
| 4888 | case "$enableval" in |
| 4889 | yes) ENABLE_THREADS=1 |
| 4890 | ;; |
| 4891 | no) ENABLE_THREADS=0 |
| 4892 | ;; |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4893 | default) ENABLE_THREADS=1 |
| 4894 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4895 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 |
| 4896 | echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} |
| 4897 | { (exit 1); exit 1; }; } ;; |
| 4898 | esac |
| 4899 | |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 4900 | cat >>confdefs.h <<_ACEOF |
| 4901 | #define ENABLE_THREADS $ENABLE_THREADS |
| 4902 | _ACEOF |
| 4903 | |
| 4904 | |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4905 | # Check whether --enable-pic was given. |
| 4906 | if test "${enable_pic+set}" = set; then |
| 4907 | enableval=$enable_pic; |
| 4908 | else |
| 4909 | enableval=default |
| 4910 | fi |
| 4911 | |
| 4912 | case "$enableval" in |
| 4913 | yes) ENABLE_PIC=1 |
| 4914 | ;; |
| 4915 | no) ENABLE_PIC=0 |
| 4916 | ;; |
Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 4917 | default) ENABLE_PIC=1 |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4918 | ;; |
| 4919 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 |
| 4920 | echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} |
| 4921 | { (exit 1); exit 1; }; } ;; |
| 4922 | esac |
| 4923 | |
| 4924 | cat >>confdefs.h <<_ACEOF |
| 4925 | #define ENABLE_PIC $ENABLE_PIC |
| 4926 | _ACEOF |
| 4927 | |
| 4928 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4929 | TARGETS_TO_BUILD="" |
| 4930 | # Check whether --enable-targets was given. |
| 4931 | if test "${enable_targets+set}" = set; then |
| 4932 | enableval=$enable_targets; |
| 4933 | else |
| 4934 | enableval=all |
| 4935 | fi |
| 4936 | |
| 4937 | case "$enableval" in |
Dan Gohman | d2cb3d2 | 2009-07-24 00:30:09 +0000 | [diff] [blame] | 4938 | all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ CBackend MSIL CppBackend" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4939 | host-only) |
| 4940 | case "$llvm_cv_target_arch" in |
| 4941 | x86) TARGETS_TO_BUILD="X86" ;; |
| 4942 | x86_64) TARGETS_TO_BUILD="X86" ;; |
| 4943 | Sparc) TARGETS_TO_BUILD="Sparc" ;; |
| 4944 | PowerPC) TARGETS_TO_BUILD="PowerPC" ;; |
| 4945 | Alpha) TARGETS_TO_BUILD="Alpha" ;; |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 4946 | ARM) TARGETS_TO_BUILD="ARM" ;; |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 4947 | Mips) TARGETS_TO_BUILD="Mips" ;; |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 4948 | CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;; |
Sanjiv Gupta | e3f3428 | 2008-05-14 08:03:23 +0000 | [diff] [blame] | 4949 | PIC16) TARGETS_TO_BUILD="PIC16" ;; |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 4950 | XCore) TARGETS_TO_BUILD="XCore" ;; |
Anton Korobeynikov | 2c4718b | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 4951 | MSP430) TARGETS_TO_BUILD="MSP430" ;; |
Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 4952 | SystemZ) TARGETS_TO_BUILD="SystemZ" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4953 | *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 |
| 4954 | echo "$as_me: error: Can not set target to build" >&2;} |
| 4955 | { (exit 1); exit 1; }; } ;; |
| 4956 | esac |
| 4957 | ;; |
| 4958 | *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 4959 | case "$a_target" in |
| 4960 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4961 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4962 | sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 4963 | powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 4964 | alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 4965 | arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 4966 | mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 4967 | spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
Sanjiv Gupta | e3f3428 | 2008-05-14 08:03:23 +0000 | [diff] [blame] | 4968 | pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;; |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 4969 | xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
Anton Korobeynikov | 2c4718b | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 4970 | msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 4971 | systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; |
Nate Begeman | 57b1efb | 2007-12-13 01:18:52 +0000 | [diff] [blame] | 4972 | cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;; |
| 4973 | msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;; |
Tanya Lattner | 49ff661 | 2008-05-10 04:20:38 +0000 | [diff] [blame] | 4974 | cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4975 | *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 |
| 4976 | echo "$as_me: error: Unrecognized target $a_target" >&2;} |
| 4977 | { (exit 1); exit 1; }; } ;; |
| 4978 | esac |
| 4979 | done |
| 4980 | ;; |
| 4981 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4982 | TARGETS_TO_BUILD=$TARGETS_TO_BUILD |
| 4983 | |
| 4984 | |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 4985 | # Determine whether we are building LLVM support for the native architecture. |
| 4986 | # If so, define LLVM_NATIVE_ARCH to that LLVM target. |
| 4987 | for a_target in $TARGETS_TO_BUILD; do |
| 4988 | if test "$a_target" = "$LLVM_NATIVE_ARCH"; then |
Douglas Gregor | a0162ff | 2009-06-23 17:22:05 +0000 | [diff] [blame] | 4989 | LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target" |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 4990 | |
| 4991 | cat >>confdefs.h <<_ACEOF |
Douglas Gregor | a0162ff | 2009-06-23 17:22:05 +0000 | [diff] [blame] | 4992 | #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 4993 | _ACEOF |
| 4994 | |
| 4995 | fi |
| 4996 | done |
| 4997 | |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 4998 | # Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 4999 | # Targets.def, AsmPrinters.def, and AsmParsers.def. |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5000 | LLVM_ENUM_TARGETS="" |
| 5001 | LLVM_ENUM_ASM_PRINTERS="" |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5002 | LLVM_ENUM_ASM_PARSERS="" |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5003 | for target_to_build in $TARGETS_TO_BUILD; do |
| 5004 | LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" |
| 5005 | if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then |
| 5006 | LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; |
| 5007 | fi |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5008 | if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then |
| 5009 | LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; |
| 5010 | fi |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5011 | done |
| 5012 | |
| 5013 | |
| 5014 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5015 | |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5016 | # Check whether --enable-cbe-printf-a was given. |
| 5017 | if test "${enable_cbe_printf_a+set}" = set; then |
| 5018 | enableval=$enable_cbe_printf_a; |
| 5019 | else |
| 5020 | enableval=default |
| 5021 | fi |
| 5022 | |
| 5023 | case "$enableval" in |
| 5024 | yes) ENABLE_CBE_PRINTF_A=1 |
| 5025 | ;; |
| 5026 | no) ENABLE_CBE_PRINTF_A=0 |
| 5027 | ;; |
| 5028 | default) ENABLE_CBE_PRINTF_A=1 |
| 5029 | ;; |
| 5030 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5 |
| 5031 | echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;} |
| 5032 | { (exit 1); exit 1; }; } ;; |
| 5033 | esac |
| 5034 | |
| 5035 | cat >>confdefs.h <<_ACEOF |
| 5036 | #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A |
| 5037 | _ACEOF |
| 5038 | |
| 5039 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5040 | |
| 5041 | # Check whether --with-llvmgccdir was given. |
| 5042 | if test "${with_llvmgccdir+set}" = set; then |
| 5043 | withval=$with_llvmgccdir; |
| 5044 | else |
| 5045 | withval=default |
| 5046 | fi |
| 5047 | |
| 5048 | case "$withval" in |
| 5049 | default) WITH_LLVMGCCDIR=default ;; |
| 5050 | /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;; |
| 5051 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5 |
| 5052 | echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;} |
| 5053 | { (exit 1); exit 1; }; } ;; |
| 5054 | esac |
| 5055 | |
| 5056 | |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5057 | # Check whether --with-llvmgcc was given. |
| 5058 | if test "${with_llvmgcc+set}" = set; then |
| 5059 | withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc |
| 5060 | WITH_LLVMGCCDIR="" |
| 5061 | fi |
| 5062 | |
| 5063 | |
| 5064 | |
| 5065 | # Check whether --with-llvmgxx was given. |
| 5066 | if test "${with_llvmgxx+set}" = set; then |
| 5067 | withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx |
| 5068 | WITH_LLVMGCCDIR="" |
| 5069 | fi |
| 5070 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 5071 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 5072 | if test -n "$LLVMGCC"; then |
| 5073 | LLVMGCCCOMMAND="$LLVMGCC" |
| 5074 | fi |
| 5075 | |
| 5076 | if test -n "$LLVMGXX"; then |
| 5077 | LLVMGXXCOMMAND="$LLVMGXX" |
| 5078 | fi |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5079 | |
| 5080 | if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then |
| 5081 | { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5 |
| 5082 | echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;} |
| 5083 | { (exit 1); exit 1; }; }; |
| 5084 | fi |
| 5085 | |
| 5086 | if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then |
| 5087 | { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5 |
| 5088 | echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;} |
| 5089 | { (exit 1); exit 1; }; }; |
| 5090 | fi |
| 5091 | |
| 5092 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5093 | # Check whether --with-extra-options was given. |
| 5094 | if test "${with_extra_options+set}" = set; then |
| 5095 | withval=$with_extra_options; |
| 5096 | else |
| 5097 | withval=default |
| 5098 | fi |
| 5099 | |
| 5100 | case "$withval" in |
| 5101 | default) EXTRA_OPTIONS= ;; |
| 5102 | *) EXTRA_OPTIONS=$withval ;; |
| 5103 | esac |
| 5104 | EXTRA_OPTIONS=$EXTRA_OPTIONS |
| 5105 | |
| 5106 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5107 | # Check whether --enable-bindings was given. |
| 5108 | if test "${enable_bindings+set}" = set; then |
| 5109 | enableval=$enable_bindings; |
| 5110 | else |
| 5111 | enableval=default |
| 5112 | fi |
| 5113 | |
| 5114 | BINDINGS_TO_BUILD="" |
| 5115 | case "$enableval" in |
Gordon Henriksen | bae4adc | 2007-10-02 10:14:42 +0000 | [diff] [blame] | 5116 | yes | default | auto) BINDINGS_TO_BUILD="auto" ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5117 | all ) BINDINGS_TO_BUILD="ocaml" ;; |
| 5118 | none | no) BINDINGS_TO_BUILD="" ;; |
| 5119 | *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 5120 | case "$a_binding" in |
| 5121 | ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; |
| 5122 | *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 |
| 5123 | echo "$as_me: error: Unrecognized binding $a_binding" >&2;} |
| 5124 | { (exit 1); exit 1; }; } ;; |
| 5125 | esac |
| 5126 | done |
| 5127 | ;; |
| 5128 | esac |
| 5129 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5130 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5131 | # Check whether --with-ocaml-libdir was given. |
| 5132 | if test "${with_ocaml_libdir+set}" = set; then |
| 5133 | withval=$with_ocaml_libdir; |
| 5134 | else |
| 5135 | withval=auto |
| 5136 | fi |
| 5137 | |
| 5138 | case "$withval" in |
| 5139 | auto) with_ocaml_libdir="$withval" ;; |
| 5140 | /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; |
| 5141 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 |
| 5142 | echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} |
| 5143 | { (exit 1); exit 1; }; } ;; |
| 5144 | esac |
| 5145 | |
| 5146 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5147 | # Check whether --with-binutils-include was given. |
| 5148 | if test "${with_binutils_include+set}" = set; then |
| 5149 | withval=$with_binutils_include; |
| 5150 | else |
| 5151 | withval=default |
| 5152 | fi |
| 5153 | |
| 5154 | case "$withval" in |
| 5155 | default) WITH_BINUTILS_INCDIR=default ;; |
| 5156 | /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; |
| 5157 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 |
| 5158 | echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} |
| 5159 | { (exit 1); exit 1; }; } ;; |
| 5160 | esac |
| 5161 | if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then |
| 5162 | BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR |
| 5163 | |
| 5164 | if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then |
| 5165 | echo "$WITH_BINUTILS_INCDIR/plugin-api.h" |
| 5166 | { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 |
| 5167 | echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} |
| 5168 | { (exit 1); exit 1; }; }; |
| 5169 | fi |
| 5170 | fi |
| 5171 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5172 | # Check whether --enable-libffi was given. |
| 5173 | if test "${enable_libffi+set}" = set; then |
| 5174 | enableval=$enable_libffi; |
| 5175 | else |
| 5176 | enableval=yes |
| 5177 | fi |
| 5178 | |
| 5179 | case "$enableval" in |
| 5180 | yes) llvm_cv_enable_libffi="yes" ;; |
| 5181 | no) llvm_cv_enable_libffi="no" ;; |
| 5182 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5 |
| 5183 | echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} |
| 5184 | { (exit 1); exit 1; }; } ;; |
| 5185 | esac |
| 5186 | |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 5187 | if test "$llvm_cv_os_type" = "Win32" ; then |
| 5188 | llvmc_dynamic="yes" |
| 5189 | else |
| 5190 | llvmc_dynamic="no" |
| 5191 | fi |
| 5192 | |
| 5193 | # Check whether --enable-llvmc-dynamic was given. |
| 5194 | if test "${enable_llvmc_dynamic+set}" = set; then |
| 5195 | enableval=$enable_llvmc_dynamic; |
| 5196 | else |
| 5197 | enableval=$llvmc_dynamic |
| 5198 | fi |
| 5199 | |
| 5200 | if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then |
| 5201 | ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1 |
| 5202 | |
| 5203 | else |
| 5204 | ENABLE_LLVMC_DYNAMIC= |
| 5205 | |
| 5206 | fi |
| 5207 | |
| 5208 | # Check whether --enable-llvmc-dynamic-plugins was given. |
| 5209 | if test "${enable_llvmc_dynamic_plugins+set}" = set; then |
| 5210 | enableval=$enable_llvmc_dynamic_plugins; |
| 5211 | else |
| 5212 | enableval=yes |
| 5213 | fi |
| 5214 | |
| 5215 | if test ${enableval} = "yes" ; then |
| 5216 | ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1 |
| 5217 | |
| 5218 | else |
| 5219 | ENABLE_LLVMC_DYNAMIC_PLUGINS= |
| 5220 | |
| 5221 | fi |
| 5222 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5223 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5224 | ac_ext=c |
| 5225 | ac_cpp='$CPP $CPPFLAGS' |
| 5226 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5227 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5228 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5229 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 5230 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
| 5231 | # On Suns, sometimes $CPP names a directory. |
| 5232 | if test -n "$CPP" && test -d "$CPP"; then |
| 5233 | CPP= |
| 5234 | fi |
| 5235 | if test -z "$CPP"; then |
| 5236 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 5237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5238 | else |
| 5239 | # Double quotes because CPP needs to be expanded |
| 5240 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 5241 | do |
| 5242 | ac_preproc_ok=false |
| 5243 | for ac_c_preproc_warn_flag in '' yes |
| 5244 | do |
| 5245 | # Use a header file that comes with gcc, so configuring glibc |
| 5246 | # with a fresh cross-compiler works. |
| 5247 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5248 | # <limits.h> exists even on freestanding compilers. |
| 5249 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5250 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5251 | cat >conftest.$ac_ext <<_ACEOF |
| 5252 | /* confdefs.h. */ |
| 5253 | _ACEOF |
| 5254 | cat confdefs.h >>conftest.$ac_ext |
| 5255 | cat >>conftest.$ac_ext <<_ACEOF |
| 5256 | /* end confdefs.h. */ |
| 5257 | #ifdef __STDC__ |
| 5258 | # include <limits.h> |
| 5259 | #else |
| 5260 | # include <assert.h> |
| 5261 | #endif |
| 5262 | Syntax error |
| 5263 | _ACEOF |
| 5264 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5265 | case "(($ac_try" in |
| 5266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5267 | *) ac_try_echo=$ac_try;; |
| 5268 | esac |
| 5269 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5270 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5271 | ac_status=$? |
| 5272 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5273 | rm -f conftest.er1 |
| 5274 | cat conftest.err >&5 |
| 5275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5276 | (exit $ac_status); } >/dev/null; then |
| 5277 | if test -s conftest.err; then |
| 5278 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5279 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5280 | else |
| 5281 | ac_cpp_err= |
| 5282 | fi |
| 5283 | else |
| 5284 | ac_cpp_err=yes |
| 5285 | fi |
| 5286 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5287 | : |
| 5288 | else |
| 5289 | echo "$as_me: failed program was:" >&5 |
| 5290 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5291 | |
| 5292 | # Broken: fails on valid input. |
| 5293 | continue |
| 5294 | fi |
| 5295 | |
| 5296 | rm -f conftest.err conftest.$ac_ext |
| 5297 | |
| 5298 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5299 | # can be detected and how. |
| 5300 | cat >conftest.$ac_ext <<_ACEOF |
| 5301 | /* confdefs.h. */ |
| 5302 | _ACEOF |
| 5303 | cat confdefs.h >>conftest.$ac_ext |
| 5304 | cat >>conftest.$ac_ext <<_ACEOF |
| 5305 | /* end confdefs.h. */ |
| 5306 | #include <ac_nonexistent.h> |
| 5307 | _ACEOF |
| 5308 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5309 | case "(($ac_try" in |
| 5310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5311 | *) ac_try_echo=$ac_try;; |
| 5312 | esac |
| 5313 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5314 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5315 | ac_status=$? |
| 5316 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5317 | rm -f conftest.er1 |
| 5318 | cat conftest.err >&5 |
| 5319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5320 | (exit $ac_status); } >/dev/null; then |
| 5321 | if test -s conftest.err; then |
| 5322 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5323 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5324 | else |
| 5325 | ac_cpp_err= |
| 5326 | fi |
| 5327 | else |
| 5328 | ac_cpp_err=yes |
| 5329 | fi |
| 5330 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5331 | # Broken: success on invalid input. |
| 5332 | continue |
| 5333 | else |
| 5334 | echo "$as_me: failed program was:" >&5 |
| 5335 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5336 | |
| 5337 | # Passes both tests. |
| 5338 | ac_preproc_ok=: |
| 5339 | break |
| 5340 | fi |
| 5341 | |
| 5342 | rm -f conftest.err conftest.$ac_ext |
| 5343 | |
| 5344 | done |
| 5345 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5346 | rm -f conftest.err conftest.$ac_ext |
| 5347 | if $ac_preproc_ok; then |
| 5348 | break |
| 5349 | fi |
| 5350 | |
| 5351 | done |
| 5352 | ac_cv_prog_CPP=$CPP |
| 5353 | |
| 5354 | fi |
| 5355 | CPP=$ac_cv_prog_CPP |
| 5356 | else |
| 5357 | ac_cv_prog_CPP=$CPP |
| 5358 | fi |
| 5359 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 5360 | echo "${ECHO_T}$CPP" >&6; } |
| 5361 | ac_preproc_ok=false |
| 5362 | for ac_c_preproc_warn_flag in '' yes |
| 5363 | do |
| 5364 | # Use a header file that comes with gcc, so configuring glibc |
| 5365 | # with a fresh cross-compiler works. |
| 5366 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5367 | # <limits.h> exists even on freestanding compilers. |
| 5368 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5369 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5370 | cat >conftest.$ac_ext <<_ACEOF |
| 5371 | /* confdefs.h. */ |
| 5372 | _ACEOF |
| 5373 | cat confdefs.h >>conftest.$ac_ext |
| 5374 | cat >>conftest.$ac_ext <<_ACEOF |
| 5375 | /* end confdefs.h. */ |
| 5376 | #ifdef __STDC__ |
| 5377 | # include <limits.h> |
| 5378 | #else |
| 5379 | # include <assert.h> |
| 5380 | #endif |
| 5381 | Syntax error |
| 5382 | _ACEOF |
| 5383 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5384 | case "(($ac_try" in |
| 5385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5386 | *) ac_try_echo=$ac_try;; |
| 5387 | esac |
| 5388 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5389 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5390 | ac_status=$? |
| 5391 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5392 | rm -f conftest.er1 |
| 5393 | cat conftest.err >&5 |
| 5394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5395 | (exit $ac_status); } >/dev/null; then |
| 5396 | if test -s conftest.err; then |
| 5397 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5398 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5399 | else |
| 5400 | ac_cpp_err= |
| 5401 | fi |
| 5402 | else |
| 5403 | ac_cpp_err=yes |
| 5404 | fi |
| 5405 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5406 | : |
| 5407 | else |
| 5408 | echo "$as_me: failed program was:" >&5 |
| 5409 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5410 | |
| 5411 | # Broken: fails on valid input. |
| 5412 | continue |
| 5413 | fi |
| 5414 | |
| 5415 | rm -f conftest.err conftest.$ac_ext |
| 5416 | |
| 5417 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5418 | # can be detected and how. |
| 5419 | cat >conftest.$ac_ext <<_ACEOF |
| 5420 | /* confdefs.h. */ |
| 5421 | _ACEOF |
| 5422 | cat confdefs.h >>conftest.$ac_ext |
| 5423 | cat >>conftest.$ac_ext <<_ACEOF |
| 5424 | /* end confdefs.h. */ |
| 5425 | #include <ac_nonexistent.h> |
| 5426 | _ACEOF |
| 5427 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5428 | case "(($ac_try" in |
| 5429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5430 | *) ac_try_echo=$ac_try;; |
| 5431 | esac |
| 5432 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5433 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5434 | ac_status=$? |
| 5435 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5436 | rm -f conftest.er1 |
| 5437 | cat conftest.err >&5 |
| 5438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5439 | (exit $ac_status); } >/dev/null; then |
| 5440 | if test -s conftest.err; then |
| 5441 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5442 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5443 | else |
| 5444 | ac_cpp_err= |
| 5445 | fi |
| 5446 | else |
| 5447 | ac_cpp_err=yes |
| 5448 | fi |
| 5449 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5450 | # Broken: success on invalid input. |
| 5451 | continue |
| 5452 | else |
| 5453 | echo "$as_me: failed program was:" >&5 |
| 5454 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5455 | |
| 5456 | # Passes both tests. |
| 5457 | ac_preproc_ok=: |
| 5458 | break |
| 5459 | fi |
| 5460 | |
| 5461 | rm -f conftest.err conftest.$ac_ext |
| 5462 | |
| 5463 | done |
| 5464 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5465 | rm -f conftest.err conftest.$ac_ext |
| 5466 | if $ac_preproc_ok; then |
| 5467 | : |
| 5468 | else |
| 5469 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 5470 | See \`config.log' for more details." >&5 |
| 5471 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 5472 | See \`config.log' for more details." >&2;} |
| 5473 | { (exit 1); exit 1; }; } |
| 5474 | fi |
| 5475 | |
| 5476 | ac_ext=c |
| 5477 | ac_cpp='$CPP $CPPFLAGS' |
| 5478 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5479 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5480 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5481 | |
| 5482 | ac_ext=c |
| 5483 | ac_cpp='$CPP $CPPFLAGS' |
| 5484 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5485 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5486 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5487 | if test -n "$ac_tool_prefix"; then |
| 5488 | for ac_prog in gcc |
| 5489 | do |
| 5490 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5491 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5492 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5493 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5494 | if test "${ac_cv_prog_CC+set}" = set; then |
| 5495 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5496 | else |
| 5497 | if test -n "$CC"; then |
| 5498 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5499 | else |
| 5500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5501 | for as_dir in $PATH |
| 5502 | do |
| 5503 | IFS=$as_save_IFS |
| 5504 | test -z "$as_dir" && as_dir=. |
| 5505 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5506 | 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] | 5507 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 5508 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5509 | break 2 |
| 5510 | fi |
| 5511 | done |
| 5512 | done |
| 5513 | IFS=$as_save_IFS |
| 5514 | |
| 5515 | fi |
| 5516 | fi |
| 5517 | CC=$ac_cv_prog_CC |
| 5518 | if test -n "$CC"; then |
| 5519 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 5520 | echo "${ECHO_T}$CC" >&6; } |
| 5521 | else |
| 5522 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5523 | echo "${ECHO_T}no" >&6; } |
| 5524 | fi |
| 5525 | |
| 5526 | |
| 5527 | test -n "$CC" && break |
| 5528 | done |
| 5529 | fi |
| 5530 | if test -z "$CC"; then |
| 5531 | ac_ct_CC=$CC |
| 5532 | for ac_prog in gcc |
| 5533 | do |
| 5534 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5535 | set dummy $ac_prog; ac_word=$2 |
| 5536 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5537 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5538 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 5539 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5540 | else |
| 5541 | if test -n "$ac_ct_CC"; then |
| 5542 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 5543 | else |
| 5544 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5545 | for as_dir in $PATH |
| 5546 | do |
| 5547 | IFS=$as_save_IFS |
| 5548 | test -z "$as_dir" && as_dir=. |
| 5549 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5550 | 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] | 5551 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 5552 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5553 | break 2 |
| 5554 | fi |
| 5555 | done |
| 5556 | done |
| 5557 | IFS=$as_save_IFS |
| 5558 | |
| 5559 | fi |
| 5560 | fi |
| 5561 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 5562 | if test -n "$ac_ct_CC"; then |
| 5563 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 5564 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
| 5565 | else |
| 5566 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5567 | echo "${ECHO_T}no" >&6; } |
| 5568 | fi |
| 5569 | |
| 5570 | |
| 5571 | test -n "$ac_ct_CC" && break |
| 5572 | done |
| 5573 | |
| 5574 | if test "x$ac_ct_CC" = x; then |
| 5575 | CC="" |
| 5576 | else |
| 5577 | case $cross_compiling:$ac_tool_warned in |
| 5578 | yes:) |
| 5579 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5580 | whose name does not start with the host triplet. If you think this |
| 5581 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5582 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5583 | whose name does not start with the host triplet. If you think this |
| 5584 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5585 | ac_tool_warned=yes ;; |
| 5586 | esac |
| 5587 | CC=$ac_ct_CC |
| 5588 | fi |
| 5589 | fi |
| 5590 | |
| 5591 | |
| 5592 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 5593 | See \`config.log' for more details." >&5 |
| 5594 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 5595 | See \`config.log' for more details." >&2;} |
| 5596 | { (exit 1); exit 1; }; } |
| 5597 | |
| 5598 | # Provide some information about the compiler. |
| 5599 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 5600 | ac_compiler=`set X $ac_compile; echo $2` |
| 5601 | { (ac_try="$ac_compiler --version >&5" |
| 5602 | case "(($ac_try" in |
| 5603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5604 | *) ac_try_echo=$ac_try;; |
| 5605 | esac |
| 5606 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5607 | (eval "$ac_compiler --version >&5") 2>&5 |
| 5608 | ac_status=$? |
| 5609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5610 | (exit $ac_status); } |
| 5611 | { (ac_try="$ac_compiler -v >&5" |
| 5612 | case "(($ac_try" in |
| 5613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5614 | *) ac_try_echo=$ac_try;; |
| 5615 | esac |
| 5616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5617 | (eval "$ac_compiler -v >&5") 2>&5 |
| 5618 | ac_status=$? |
| 5619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5620 | (exit $ac_status); } |
| 5621 | { (ac_try="$ac_compiler -V >&5" |
| 5622 | case "(($ac_try" in |
| 5623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5624 | *) ac_try_echo=$ac_try;; |
| 5625 | esac |
| 5626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5627 | (eval "$ac_compiler -V >&5") 2>&5 |
| 5628 | ac_status=$? |
| 5629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5630 | (exit $ac_status); } |
| 5631 | |
| 5632 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 5633 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 5634 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 5635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5636 | else |
| 5637 | cat >conftest.$ac_ext <<_ACEOF |
| 5638 | /* confdefs.h. */ |
| 5639 | _ACEOF |
| 5640 | cat confdefs.h >>conftest.$ac_ext |
| 5641 | cat >>conftest.$ac_ext <<_ACEOF |
| 5642 | /* end confdefs.h. */ |
| 5643 | |
| 5644 | int |
| 5645 | main () |
| 5646 | { |
| 5647 | #ifndef __GNUC__ |
| 5648 | choke me |
| 5649 | #endif |
| 5650 | |
| 5651 | ; |
| 5652 | return 0; |
| 5653 | } |
| 5654 | _ACEOF |
| 5655 | rm -f conftest.$ac_objext |
| 5656 | if { (ac_try="$ac_compile" |
| 5657 | case "(($ac_try" in |
| 5658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5659 | *) ac_try_echo=$ac_try;; |
| 5660 | esac |
| 5661 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5662 | (eval "$ac_compile") 2>conftest.er1 |
| 5663 | ac_status=$? |
| 5664 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5665 | rm -f conftest.er1 |
| 5666 | cat conftest.err >&5 |
| 5667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5668 | (exit $ac_status); } && |
| 5669 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5670 | { (case "(($ac_try" in |
| 5671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5672 | *) ac_try_echo=$ac_try;; |
| 5673 | esac |
| 5674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5675 | (eval "$ac_try") 2>&5 |
| 5676 | ac_status=$? |
| 5677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5678 | (exit $ac_status); }; } && |
| 5679 | { ac_try='test -s conftest.$ac_objext' |
| 5680 | { (case "(($ac_try" in |
| 5681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5682 | *) ac_try_echo=$ac_try;; |
| 5683 | esac |
| 5684 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5685 | (eval "$ac_try") 2>&5 |
| 5686 | ac_status=$? |
| 5687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5688 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5689 | ac_compiler_gnu=yes |
| 5690 | else |
| 5691 | echo "$as_me: failed program was:" >&5 |
| 5692 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5693 | |
| 5694 | ac_compiler_gnu=no |
| 5695 | fi |
| 5696 | |
| 5697 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5698 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 5699 | |
| 5700 | fi |
| 5701 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 5702 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 5703 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 5704 | ac_test_CFLAGS=${CFLAGS+set} |
| 5705 | ac_save_CFLAGS=$CFLAGS |
| 5706 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 5707 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 5708 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 5709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5710 | else |
| 5711 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 5712 | ac_c_werror_flag=yes |
| 5713 | ac_cv_prog_cc_g=no |
| 5714 | CFLAGS="-g" |
| 5715 | cat >conftest.$ac_ext <<_ACEOF |
| 5716 | /* confdefs.h. */ |
| 5717 | _ACEOF |
| 5718 | cat confdefs.h >>conftest.$ac_ext |
| 5719 | cat >>conftest.$ac_ext <<_ACEOF |
| 5720 | /* end confdefs.h. */ |
| 5721 | |
| 5722 | int |
| 5723 | main () |
| 5724 | { |
| 5725 | |
| 5726 | ; |
| 5727 | return 0; |
| 5728 | } |
| 5729 | _ACEOF |
| 5730 | rm -f conftest.$ac_objext |
| 5731 | if { (ac_try="$ac_compile" |
| 5732 | case "(($ac_try" in |
| 5733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5734 | *) ac_try_echo=$ac_try;; |
| 5735 | esac |
| 5736 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5737 | (eval "$ac_compile") 2>conftest.er1 |
| 5738 | ac_status=$? |
| 5739 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5740 | rm -f conftest.er1 |
| 5741 | cat conftest.err >&5 |
| 5742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5743 | (exit $ac_status); } && |
| 5744 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5745 | { (case "(($ac_try" in |
| 5746 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5747 | *) ac_try_echo=$ac_try;; |
| 5748 | esac |
| 5749 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5750 | (eval "$ac_try") 2>&5 |
| 5751 | ac_status=$? |
| 5752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5753 | (exit $ac_status); }; } && |
| 5754 | { ac_try='test -s conftest.$ac_objext' |
| 5755 | { (case "(($ac_try" in |
| 5756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5757 | *) ac_try_echo=$ac_try;; |
| 5758 | esac |
| 5759 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5760 | (eval "$ac_try") 2>&5 |
| 5761 | ac_status=$? |
| 5762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5763 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5764 | ac_cv_prog_cc_g=yes |
| 5765 | else |
| 5766 | echo "$as_me: failed program was:" >&5 |
| 5767 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5768 | |
| 5769 | CFLAGS="" |
| 5770 | cat >conftest.$ac_ext <<_ACEOF |
| 5771 | /* confdefs.h. */ |
| 5772 | _ACEOF |
| 5773 | cat confdefs.h >>conftest.$ac_ext |
| 5774 | cat >>conftest.$ac_ext <<_ACEOF |
| 5775 | /* end confdefs.h. */ |
| 5776 | |
| 5777 | int |
| 5778 | main () |
| 5779 | { |
| 5780 | |
| 5781 | ; |
| 5782 | return 0; |
| 5783 | } |
| 5784 | _ACEOF |
| 5785 | rm -f conftest.$ac_objext |
| 5786 | if { (ac_try="$ac_compile" |
| 5787 | case "(($ac_try" in |
| 5788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5789 | *) ac_try_echo=$ac_try;; |
| 5790 | esac |
| 5791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5792 | (eval "$ac_compile") 2>conftest.er1 |
| 5793 | ac_status=$? |
| 5794 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5795 | rm -f conftest.er1 |
| 5796 | cat conftest.err >&5 |
| 5797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5798 | (exit $ac_status); } && |
| 5799 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5800 | { (case "(($ac_try" in |
| 5801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5802 | *) ac_try_echo=$ac_try;; |
| 5803 | esac |
| 5804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5805 | (eval "$ac_try") 2>&5 |
| 5806 | ac_status=$? |
| 5807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5808 | (exit $ac_status); }; } && |
| 5809 | { ac_try='test -s conftest.$ac_objext' |
| 5810 | { (case "(($ac_try" in |
| 5811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5812 | *) ac_try_echo=$ac_try;; |
| 5813 | esac |
| 5814 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5815 | (eval "$ac_try") 2>&5 |
| 5816 | ac_status=$? |
| 5817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5818 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5819 | : |
| 5820 | else |
| 5821 | echo "$as_me: failed program was:" >&5 |
| 5822 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5823 | |
| 5824 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 5825 | CFLAGS="-g" |
| 5826 | cat >conftest.$ac_ext <<_ACEOF |
| 5827 | /* confdefs.h. */ |
| 5828 | _ACEOF |
| 5829 | cat confdefs.h >>conftest.$ac_ext |
| 5830 | cat >>conftest.$ac_ext <<_ACEOF |
| 5831 | /* end confdefs.h. */ |
| 5832 | |
| 5833 | int |
| 5834 | main () |
| 5835 | { |
| 5836 | |
| 5837 | ; |
| 5838 | return 0; |
| 5839 | } |
| 5840 | _ACEOF |
| 5841 | rm -f conftest.$ac_objext |
| 5842 | if { (ac_try="$ac_compile" |
| 5843 | case "(($ac_try" in |
| 5844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5845 | *) ac_try_echo=$ac_try;; |
| 5846 | esac |
| 5847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5848 | (eval "$ac_compile") 2>conftest.er1 |
| 5849 | ac_status=$? |
| 5850 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5851 | rm -f conftest.er1 |
| 5852 | cat conftest.err >&5 |
| 5853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5854 | (exit $ac_status); } && |
| 5855 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5856 | { (case "(($ac_try" in |
| 5857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5858 | *) ac_try_echo=$ac_try;; |
| 5859 | esac |
| 5860 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5861 | (eval "$ac_try") 2>&5 |
| 5862 | ac_status=$? |
| 5863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5864 | (exit $ac_status); }; } && |
| 5865 | { ac_try='test -s conftest.$ac_objext' |
| 5866 | { (case "(($ac_try" in |
| 5867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5868 | *) ac_try_echo=$ac_try;; |
| 5869 | esac |
| 5870 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5871 | (eval "$ac_try") 2>&5 |
| 5872 | ac_status=$? |
| 5873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5874 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5875 | ac_cv_prog_cc_g=yes |
| 5876 | else |
| 5877 | echo "$as_me: failed program was:" >&5 |
| 5878 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5879 | |
| 5880 | |
| 5881 | fi |
| 5882 | |
| 5883 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5884 | fi |
| 5885 | |
| 5886 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5887 | fi |
| 5888 | |
| 5889 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5890 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 5891 | fi |
| 5892 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 5893 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
| 5894 | if test "$ac_test_CFLAGS" = set; then |
| 5895 | CFLAGS=$ac_save_CFLAGS |
| 5896 | elif test $ac_cv_prog_cc_g = yes; then |
| 5897 | if test "$GCC" = yes; then |
| 5898 | CFLAGS="-g -O2" |
| 5899 | else |
| 5900 | CFLAGS="-g" |
| 5901 | fi |
| 5902 | else |
| 5903 | if test "$GCC" = yes; then |
| 5904 | CFLAGS="-O2" |
| 5905 | else |
| 5906 | CFLAGS= |
| 5907 | fi |
| 5908 | fi |
| 5909 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 5910 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 5911 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 5912 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5913 | else |
| 5914 | ac_cv_prog_cc_c89=no |
| 5915 | ac_save_CC=$CC |
| 5916 | cat >conftest.$ac_ext <<_ACEOF |
| 5917 | /* confdefs.h. */ |
| 5918 | _ACEOF |
| 5919 | cat confdefs.h >>conftest.$ac_ext |
| 5920 | cat >>conftest.$ac_ext <<_ACEOF |
| 5921 | /* end confdefs.h. */ |
| 5922 | #include <stdarg.h> |
| 5923 | #include <stdio.h> |
| 5924 | #include <sys/types.h> |
| 5925 | #include <sys/stat.h> |
| 5926 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 5927 | struct buf { int x; }; |
| 5928 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 5929 | static char *e (p, i) |
| 5930 | char **p; |
| 5931 | int i; |
| 5932 | { |
| 5933 | return p[i]; |
| 5934 | } |
| 5935 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 5936 | { |
| 5937 | char *s; |
| 5938 | va_list v; |
| 5939 | va_start (v,p); |
| 5940 | s = g (p, va_arg (v,int)); |
| 5941 | va_end (v); |
| 5942 | return s; |
| 5943 | } |
| 5944 | |
| 5945 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 5946 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 5947 | These don't provoke an error unfortunately, instead are silently treated |
| 5948 | as 'x'. The following induces an error, until -std is added to get |
| 5949 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 5950 | array size at least. It's necessary to write '\x00'==0 to get something |
| 5951 | that's true only with -std. */ |
| 5952 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 5953 | |
| 5954 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 5955 | inside strings and character constants. */ |
| 5956 | #define FOO(x) 'x' |
| 5957 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 5958 | |
| 5959 | int test (int i, double x); |
| 5960 | struct s1 {int (*f) (int a);}; |
| 5961 | struct s2 {int (*f) (double a);}; |
| 5962 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 5963 | int argc; |
| 5964 | char **argv; |
| 5965 | int |
| 5966 | main () |
| 5967 | { |
| 5968 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 5969 | ; |
| 5970 | return 0; |
| 5971 | } |
| 5972 | _ACEOF |
| 5973 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 5974 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 5975 | do |
| 5976 | CC="$ac_save_CC $ac_arg" |
| 5977 | rm -f conftest.$ac_objext |
| 5978 | if { (ac_try="$ac_compile" |
| 5979 | case "(($ac_try" in |
| 5980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5981 | *) ac_try_echo=$ac_try;; |
| 5982 | esac |
| 5983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5984 | (eval "$ac_compile") 2>conftest.er1 |
| 5985 | ac_status=$? |
| 5986 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5987 | rm -f conftest.er1 |
| 5988 | cat conftest.err >&5 |
| 5989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 5990 | (exit $ac_status); } && |
| 5991 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5992 | { (case "(($ac_try" in |
| 5993 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5994 | *) ac_try_echo=$ac_try;; |
| 5995 | esac |
| 5996 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5997 | (eval "$ac_try") 2>&5 |
| 5998 | ac_status=$? |
| 5999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6000 | (exit $ac_status); }; } && |
| 6001 | { ac_try='test -s conftest.$ac_objext' |
| 6002 | { (case "(($ac_try" in |
| 6003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6004 | *) ac_try_echo=$ac_try;; |
| 6005 | esac |
| 6006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6007 | (eval "$ac_try") 2>&5 |
| 6008 | ac_status=$? |
| 6009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6010 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6011 | ac_cv_prog_cc_c89=$ac_arg |
| 6012 | else |
| 6013 | echo "$as_me: failed program was:" >&5 |
| 6014 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6015 | |
| 6016 | |
| 6017 | fi |
| 6018 | |
| 6019 | rm -f core conftest.err conftest.$ac_objext |
| 6020 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 6021 | done |
| 6022 | rm -f conftest.$ac_ext |
| 6023 | CC=$ac_save_CC |
| 6024 | |
| 6025 | fi |
| 6026 | # AC_CACHE_VAL |
| 6027 | case "x$ac_cv_prog_cc_c89" in |
| 6028 | x) |
| 6029 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 6030 | echo "${ECHO_T}none needed" >&6; } ;; |
| 6031 | xno) |
| 6032 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 6033 | echo "${ECHO_T}unsupported" >&6; } ;; |
| 6034 | *) |
| 6035 | CC="$CC $ac_cv_prog_cc_c89" |
| 6036 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 6037 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
| 6038 | esac |
| 6039 | |
| 6040 | |
| 6041 | ac_ext=c |
| 6042 | ac_cpp='$CPP $CPPFLAGS' |
| 6043 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6044 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6045 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6046 | |
| 6047 | ac_ext=cpp |
| 6048 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 6049 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6050 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6051 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 6052 | if test -z "$CXX"; then |
| 6053 | if test -n "$CCC"; then |
| 6054 | CXX=$CCC |
| 6055 | else |
| 6056 | if test -n "$ac_tool_prefix"; then |
| 6057 | for ac_prog in g++ |
| 6058 | do |
| 6059 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6060 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 6061 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6062 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6063 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 6064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6065 | else |
| 6066 | if test -n "$CXX"; then |
| 6067 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 6068 | else |
| 6069 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6070 | for as_dir in $PATH |
| 6071 | do |
| 6072 | IFS=$as_save_IFS |
| 6073 | test -z "$as_dir" && as_dir=. |
| 6074 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6075 | 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] | 6076 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 6077 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6078 | break 2 |
| 6079 | fi |
| 6080 | done |
| 6081 | done |
| 6082 | IFS=$as_save_IFS |
| 6083 | |
| 6084 | fi |
| 6085 | fi |
| 6086 | CXX=$ac_cv_prog_CXX |
| 6087 | if test -n "$CXX"; then |
| 6088 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 6089 | echo "${ECHO_T}$CXX" >&6; } |
| 6090 | else |
| 6091 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6092 | echo "${ECHO_T}no" >&6; } |
| 6093 | fi |
| 6094 | |
| 6095 | |
| 6096 | test -n "$CXX" && break |
| 6097 | done |
| 6098 | fi |
| 6099 | if test -z "$CXX"; then |
| 6100 | ac_ct_CXX=$CXX |
| 6101 | for ac_prog in g++ |
| 6102 | do |
| 6103 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6104 | set dummy $ac_prog; ac_word=$2 |
| 6105 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6106 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6107 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 6108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6109 | else |
| 6110 | if test -n "$ac_ct_CXX"; then |
| 6111 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 6112 | else |
| 6113 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6114 | for as_dir in $PATH |
| 6115 | do |
| 6116 | IFS=$as_save_IFS |
| 6117 | test -z "$as_dir" && as_dir=. |
| 6118 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6119 | 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] | 6120 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 6121 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6122 | break 2 |
| 6123 | fi |
| 6124 | done |
| 6125 | done |
| 6126 | IFS=$as_save_IFS |
| 6127 | |
| 6128 | fi |
| 6129 | fi |
| 6130 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 6131 | if test -n "$ac_ct_CXX"; then |
| 6132 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 6133 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
| 6134 | else |
| 6135 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6136 | echo "${ECHO_T}no" >&6; } |
| 6137 | fi |
| 6138 | |
| 6139 | |
| 6140 | test -n "$ac_ct_CXX" && break |
| 6141 | done |
| 6142 | |
| 6143 | if test "x$ac_ct_CXX" = x; then |
| 6144 | CXX="g++" |
| 6145 | else |
| 6146 | case $cross_compiling:$ac_tool_warned in |
| 6147 | yes:) |
| 6148 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6149 | whose name does not start with the host triplet. If you think this |
| 6150 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6151 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6152 | whose name does not start with the host triplet. If you think this |
| 6153 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6154 | ac_tool_warned=yes ;; |
| 6155 | esac |
| 6156 | CXX=$ac_ct_CXX |
| 6157 | fi |
| 6158 | fi |
| 6159 | |
| 6160 | fi |
| 6161 | fi |
| 6162 | # Provide some information about the compiler. |
| 6163 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
| 6164 | ac_compiler=`set X $ac_compile; echo $2` |
| 6165 | { (ac_try="$ac_compiler --version >&5" |
| 6166 | case "(($ac_try" in |
| 6167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6168 | *) ac_try_echo=$ac_try;; |
| 6169 | esac |
| 6170 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6171 | (eval "$ac_compiler --version >&5") 2>&5 |
| 6172 | ac_status=$? |
| 6173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6174 | (exit $ac_status); } |
| 6175 | { (ac_try="$ac_compiler -v >&5" |
| 6176 | case "(($ac_try" in |
| 6177 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6178 | *) ac_try_echo=$ac_try;; |
| 6179 | esac |
| 6180 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6181 | (eval "$ac_compiler -v >&5") 2>&5 |
| 6182 | ac_status=$? |
| 6183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6184 | (exit $ac_status); } |
| 6185 | { (ac_try="$ac_compiler -V >&5" |
| 6186 | case "(($ac_try" in |
| 6187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6188 | *) ac_try_echo=$ac_try;; |
| 6189 | esac |
| 6190 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6191 | (eval "$ac_compiler -V >&5") 2>&5 |
| 6192 | ac_status=$? |
| 6193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6194 | (exit $ac_status); } |
| 6195 | |
| 6196 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 6197 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
| 6198 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 6199 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6200 | else |
| 6201 | cat >conftest.$ac_ext <<_ACEOF |
| 6202 | /* confdefs.h. */ |
| 6203 | _ACEOF |
| 6204 | cat confdefs.h >>conftest.$ac_ext |
| 6205 | cat >>conftest.$ac_ext <<_ACEOF |
| 6206 | /* end confdefs.h. */ |
| 6207 | |
| 6208 | int |
| 6209 | main () |
| 6210 | { |
| 6211 | #ifndef __GNUC__ |
| 6212 | choke me |
| 6213 | #endif |
| 6214 | |
| 6215 | ; |
| 6216 | return 0; |
| 6217 | } |
| 6218 | _ACEOF |
| 6219 | rm -f conftest.$ac_objext |
| 6220 | if { (ac_try="$ac_compile" |
| 6221 | case "(($ac_try" in |
| 6222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6223 | *) ac_try_echo=$ac_try;; |
| 6224 | esac |
| 6225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6226 | (eval "$ac_compile") 2>conftest.er1 |
| 6227 | ac_status=$? |
| 6228 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6229 | rm -f conftest.er1 |
| 6230 | cat conftest.err >&5 |
| 6231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6232 | (exit $ac_status); } && |
| 6233 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6234 | { (case "(($ac_try" in |
| 6235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6236 | *) ac_try_echo=$ac_try;; |
| 6237 | esac |
| 6238 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6239 | (eval "$ac_try") 2>&5 |
| 6240 | ac_status=$? |
| 6241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6242 | (exit $ac_status); }; } && |
| 6243 | { ac_try='test -s conftest.$ac_objext' |
| 6244 | { (case "(($ac_try" in |
| 6245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6246 | *) ac_try_echo=$ac_try;; |
| 6247 | esac |
| 6248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6249 | (eval "$ac_try") 2>&5 |
| 6250 | ac_status=$? |
| 6251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6252 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6253 | ac_compiler_gnu=yes |
| 6254 | else |
| 6255 | echo "$as_me: failed program was:" >&5 |
| 6256 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6257 | |
| 6258 | ac_compiler_gnu=no |
| 6259 | fi |
| 6260 | |
| 6261 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6262 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 6263 | |
| 6264 | fi |
| 6265 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 6266 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
| 6267 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 6268 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 6269 | ac_save_CXXFLAGS=$CXXFLAGS |
| 6270 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 6271 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
| 6272 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 6273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6274 | else |
| 6275 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 6276 | ac_cxx_werror_flag=yes |
| 6277 | ac_cv_prog_cxx_g=no |
| 6278 | CXXFLAGS="-g" |
| 6279 | cat >conftest.$ac_ext <<_ACEOF |
| 6280 | /* confdefs.h. */ |
| 6281 | _ACEOF |
| 6282 | cat confdefs.h >>conftest.$ac_ext |
| 6283 | cat >>conftest.$ac_ext <<_ACEOF |
| 6284 | /* end confdefs.h. */ |
| 6285 | |
| 6286 | int |
| 6287 | main () |
| 6288 | { |
| 6289 | |
| 6290 | ; |
| 6291 | return 0; |
| 6292 | } |
| 6293 | _ACEOF |
| 6294 | rm -f conftest.$ac_objext |
| 6295 | if { (ac_try="$ac_compile" |
| 6296 | case "(($ac_try" in |
| 6297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6298 | *) ac_try_echo=$ac_try;; |
| 6299 | esac |
| 6300 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6301 | (eval "$ac_compile") 2>conftest.er1 |
| 6302 | ac_status=$? |
| 6303 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6304 | rm -f conftest.er1 |
| 6305 | cat conftest.err >&5 |
| 6306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6307 | (exit $ac_status); } && |
| 6308 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6309 | { (case "(($ac_try" in |
| 6310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6311 | *) ac_try_echo=$ac_try;; |
| 6312 | esac |
| 6313 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6314 | (eval "$ac_try") 2>&5 |
| 6315 | ac_status=$? |
| 6316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6317 | (exit $ac_status); }; } && |
| 6318 | { ac_try='test -s conftest.$ac_objext' |
| 6319 | { (case "(($ac_try" in |
| 6320 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6321 | *) ac_try_echo=$ac_try;; |
| 6322 | esac |
| 6323 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6324 | (eval "$ac_try") 2>&5 |
| 6325 | ac_status=$? |
| 6326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6327 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6328 | ac_cv_prog_cxx_g=yes |
| 6329 | else |
| 6330 | echo "$as_me: failed program was:" >&5 |
| 6331 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6332 | |
| 6333 | CXXFLAGS="" |
| 6334 | cat >conftest.$ac_ext <<_ACEOF |
| 6335 | /* confdefs.h. */ |
| 6336 | _ACEOF |
| 6337 | cat confdefs.h >>conftest.$ac_ext |
| 6338 | cat >>conftest.$ac_ext <<_ACEOF |
| 6339 | /* end confdefs.h. */ |
| 6340 | |
| 6341 | int |
| 6342 | main () |
| 6343 | { |
| 6344 | |
| 6345 | ; |
| 6346 | return 0; |
| 6347 | } |
| 6348 | _ACEOF |
| 6349 | rm -f conftest.$ac_objext |
| 6350 | if { (ac_try="$ac_compile" |
| 6351 | case "(($ac_try" in |
| 6352 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6353 | *) ac_try_echo=$ac_try;; |
| 6354 | esac |
| 6355 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6356 | (eval "$ac_compile") 2>conftest.er1 |
| 6357 | ac_status=$? |
| 6358 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6359 | rm -f conftest.er1 |
| 6360 | cat conftest.err >&5 |
| 6361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6362 | (exit $ac_status); } && |
| 6363 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6364 | { (case "(($ac_try" in |
| 6365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6366 | *) ac_try_echo=$ac_try;; |
| 6367 | esac |
| 6368 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6369 | (eval "$ac_try") 2>&5 |
| 6370 | ac_status=$? |
| 6371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6372 | (exit $ac_status); }; } && |
| 6373 | { ac_try='test -s conftest.$ac_objext' |
| 6374 | { (case "(($ac_try" in |
| 6375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6376 | *) ac_try_echo=$ac_try;; |
| 6377 | esac |
| 6378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6379 | (eval "$ac_try") 2>&5 |
| 6380 | ac_status=$? |
| 6381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6382 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6383 | : |
| 6384 | else |
| 6385 | echo "$as_me: failed program was:" >&5 |
| 6386 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6387 | |
| 6388 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 6389 | CXXFLAGS="-g" |
| 6390 | cat >conftest.$ac_ext <<_ACEOF |
| 6391 | /* confdefs.h. */ |
| 6392 | _ACEOF |
| 6393 | cat confdefs.h >>conftest.$ac_ext |
| 6394 | cat >>conftest.$ac_ext <<_ACEOF |
| 6395 | /* end confdefs.h. */ |
| 6396 | |
| 6397 | int |
| 6398 | main () |
| 6399 | { |
| 6400 | |
| 6401 | ; |
| 6402 | return 0; |
| 6403 | } |
| 6404 | _ACEOF |
| 6405 | rm -f conftest.$ac_objext |
| 6406 | if { (ac_try="$ac_compile" |
| 6407 | case "(($ac_try" in |
| 6408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6409 | *) ac_try_echo=$ac_try;; |
| 6410 | esac |
| 6411 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6412 | (eval "$ac_compile") 2>conftest.er1 |
| 6413 | ac_status=$? |
| 6414 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6415 | rm -f conftest.er1 |
| 6416 | cat conftest.err >&5 |
| 6417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6418 | (exit $ac_status); } && |
| 6419 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6420 | { (case "(($ac_try" in |
| 6421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6422 | *) ac_try_echo=$ac_try;; |
| 6423 | esac |
| 6424 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6425 | (eval "$ac_try") 2>&5 |
| 6426 | ac_status=$? |
| 6427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6428 | (exit $ac_status); }; } && |
| 6429 | { ac_try='test -s conftest.$ac_objext' |
| 6430 | { (case "(($ac_try" in |
| 6431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6432 | *) ac_try_echo=$ac_try;; |
| 6433 | esac |
| 6434 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6435 | (eval "$ac_try") 2>&5 |
| 6436 | ac_status=$? |
| 6437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6438 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6439 | ac_cv_prog_cxx_g=yes |
| 6440 | else |
| 6441 | echo "$as_me: failed program was:" >&5 |
| 6442 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6443 | |
| 6444 | |
| 6445 | fi |
| 6446 | |
| 6447 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6448 | fi |
| 6449 | |
| 6450 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6451 | fi |
| 6452 | |
| 6453 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6454 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 6455 | fi |
| 6456 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 6457 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
| 6458 | if test "$ac_test_CXXFLAGS" = set; then |
| 6459 | CXXFLAGS=$ac_save_CXXFLAGS |
| 6460 | elif test $ac_cv_prog_cxx_g = yes; then |
| 6461 | if test "$GXX" = yes; then |
| 6462 | CXXFLAGS="-g -O2" |
| 6463 | else |
| 6464 | CXXFLAGS="-g" |
| 6465 | fi |
| 6466 | else |
| 6467 | if test "$GXX" = yes; then |
| 6468 | CXXFLAGS="-O2" |
| 6469 | else |
| 6470 | CXXFLAGS= |
| 6471 | fi |
| 6472 | fi |
| 6473 | ac_ext=c |
| 6474 | ac_cpp='$CPP $CPPFLAGS' |
| 6475 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6476 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6477 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6478 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6479 | |
| 6480 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 6481 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
| 6482 | if test "${lt_cv_path_NM+set}" = set; then |
| 6483 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6484 | else |
| 6485 | if test -n "$NM"; then |
| 6486 | # Let the user override the test. |
| 6487 | lt_cv_path_NM="$NM" |
| 6488 | else |
| 6489 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 6490 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 6491 | lt_nm_to_check="$lt_nm_to_check nm" |
| 6492 | fi |
| 6493 | for lt_tmp_nm in $lt_nm_to_check; do |
| 6494 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6495 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 6496 | IFS="$lt_save_ifs" |
| 6497 | test -z "$ac_dir" && ac_dir=. |
| 6498 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 6499 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 6500 | # Check to see if the nm accepts a BSD-compat flag. |
| 6501 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 6502 | # nm: unknown option "B" ignored |
| 6503 | # Tru64's nm complains that /dev/null is an invalid object file |
| 6504 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 6505 | */dev/null* | *'Invalid file or object type'*) |
| 6506 | lt_cv_path_NM="$tmp_nm -B" |
| 6507 | break |
| 6508 | ;; |
| 6509 | *) |
| 6510 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 6511 | */dev/null*) |
| 6512 | lt_cv_path_NM="$tmp_nm -p" |
| 6513 | break |
| 6514 | ;; |
| 6515 | *) |
| 6516 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 6517 | continue # so that we can try to find one that supports BSD flags |
| 6518 | ;; |
| 6519 | esac |
| 6520 | ;; |
| 6521 | esac |
| 6522 | fi |
| 6523 | done |
| 6524 | IFS="$lt_save_ifs" |
| 6525 | done |
| 6526 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 6527 | fi |
| 6528 | fi |
| 6529 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 6530 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
| 6531 | NM="$lt_cv_path_NM" |
| 6532 | |
| 6533 | |
| 6534 | |
| 6535 | { echo "$as_me:$LINENO: checking for GNU make" >&5 |
| 6536 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } |
| 6537 | if test "${llvm_cv_gnu_make_command+set}" = set; then |
| 6538 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6539 | else |
| 6540 | llvm_cv_gnu_make_command='' |
| 6541 | for a in "$MAKE" make gmake gnumake ; do |
| 6542 | if test -z "$a" ; then continue ; fi ; |
| 6543 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) |
| 6544 | then |
| 6545 | llvm_cv_gnu_make_command=$a ; |
| 6546 | break; |
| 6547 | fi |
| 6548 | done |
| 6549 | fi |
| 6550 | { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 |
| 6551 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } |
| 6552 | if test "x$llvm_cv_gnu_make_command" != "x" ; then |
| 6553 | ifGNUmake='' ; |
| 6554 | else |
| 6555 | ifGNUmake='#' ; |
| 6556 | { echo "$as_me:$LINENO: result: \"Not found\"" >&5 |
| 6557 | echo "${ECHO_T}\"Not found\"" >&6; }; |
| 6558 | fi |
| 6559 | |
| 6560 | |
| 6561 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 6562 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
| 6563 | LN_S=$as_ln_s |
| 6564 | if test "$LN_S" = "ln -s"; then |
| 6565 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 6566 | echo "${ECHO_T}yes" >&6; } |
| 6567 | else |
| 6568 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 6569 | echo "${ECHO_T}no, using $LN_S" >&6; } |
| 6570 | fi |
| 6571 | |
| 6572 | # Extract the first word of "cmp", so it can be a program name with args. |
| 6573 | set dummy cmp; ac_word=$2 |
| 6574 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6575 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6576 | if test "${ac_cv_path_CMP+set}" = set; then |
| 6577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6578 | else |
| 6579 | case $CMP in |
| 6580 | [\\/]* | ?:[\\/]*) |
| 6581 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
| 6582 | ;; |
| 6583 | *) |
| 6584 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6585 | for as_dir in $PATH |
| 6586 | do |
| 6587 | IFS=$as_save_IFS |
| 6588 | test -z "$as_dir" && as_dir=. |
| 6589 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6590 | 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] | 6591 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" |
| 6592 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6593 | break 2 |
| 6594 | fi |
| 6595 | done |
| 6596 | done |
| 6597 | IFS=$as_save_IFS |
| 6598 | |
| 6599 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" |
| 6600 | ;; |
| 6601 | esac |
| 6602 | fi |
| 6603 | CMP=$ac_cv_path_CMP |
| 6604 | if test -n "$CMP"; then |
| 6605 | { echo "$as_me:$LINENO: result: $CMP" >&5 |
| 6606 | echo "${ECHO_T}$CMP" >&6; } |
| 6607 | else |
| 6608 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6609 | echo "${ECHO_T}no" >&6; } |
| 6610 | fi |
| 6611 | |
| 6612 | |
| 6613 | # Extract the first word of "cp", so it can be a program name with args. |
| 6614 | set dummy cp; ac_word=$2 |
| 6615 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6616 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6617 | if test "${ac_cv_path_CP+set}" = set; then |
| 6618 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6619 | else |
| 6620 | case $CP in |
| 6621 | [\\/]* | ?:[\\/]*) |
| 6622 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 6623 | ;; |
| 6624 | *) |
| 6625 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6626 | for as_dir in $PATH |
| 6627 | do |
| 6628 | IFS=$as_save_IFS |
| 6629 | test -z "$as_dir" && as_dir=. |
| 6630 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6631 | 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] | 6632 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
| 6633 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6634 | break 2 |
| 6635 | fi |
| 6636 | done |
| 6637 | done |
| 6638 | IFS=$as_save_IFS |
| 6639 | |
| 6640 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 6641 | ;; |
| 6642 | esac |
| 6643 | fi |
| 6644 | CP=$ac_cv_path_CP |
| 6645 | if test -n "$CP"; then |
| 6646 | { echo "$as_me:$LINENO: result: $CP" >&5 |
| 6647 | echo "${ECHO_T}$CP" >&6; } |
| 6648 | else |
| 6649 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6650 | echo "${ECHO_T}no" >&6; } |
| 6651 | fi |
| 6652 | |
| 6653 | |
| 6654 | # Extract the first word of "date", so it can be a program name with args. |
| 6655 | set dummy date; ac_word=$2 |
| 6656 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6657 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6658 | if test "${ac_cv_path_DATE+set}" = set; then |
| 6659 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6660 | else |
| 6661 | case $DATE in |
| 6662 | [\\/]* | ?:[\\/]*) |
| 6663 | ac_cv_path_DATE="$DATE" # Let the user override the test with a path. |
| 6664 | ;; |
| 6665 | *) |
| 6666 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6667 | for as_dir in $PATH |
| 6668 | do |
| 6669 | IFS=$as_save_IFS |
| 6670 | test -z "$as_dir" && as_dir=. |
| 6671 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6672 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6673 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" |
| 6674 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6675 | break 2 |
| 6676 | fi |
| 6677 | done |
| 6678 | done |
| 6679 | IFS=$as_save_IFS |
| 6680 | |
| 6681 | test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" |
| 6682 | ;; |
| 6683 | esac |
| 6684 | fi |
| 6685 | DATE=$ac_cv_path_DATE |
| 6686 | if test -n "$DATE"; then |
| 6687 | { echo "$as_me:$LINENO: result: $DATE" >&5 |
| 6688 | echo "${ECHO_T}$DATE" >&6; } |
| 6689 | else |
| 6690 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6691 | echo "${ECHO_T}no" >&6; } |
| 6692 | fi |
| 6693 | |
| 6694 | |
| 6695 | # Extract the first word of "find", so it can be a program name with args. |
| 6696 | set dummy find; ac_word=$2 |
| 6697 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6698 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6699 | if test "${ac_cv_path_FIND+set}" = set; then |
| 6700 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6701 | else |
| 6702 | case $FIND in |
| 6703 | [\\/]* | ?:[\\/]*) |
| 6704 | ac_cv_path_FIND="$FIND" # Let the user override the test with a path. |
| 6705 | ;; |
| 6706 | *) |
| 6707 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6708 | for as_dir in $PATH |
| 6709 | do |
| 6710 | IFS=$as_save_IFS |
| 6711 | test -z "$as_dir" && as_dir=. |
| 6712 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6713 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6714 | ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" |
| 6715 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6716 | break 2 |
| 6717 | fi |
| 6718 | done |
| 6719 | done |
| 6720 | IFS=$as_save_IFS |
| 6721 | |
| 6722 | test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" |
| 6723 | ;; |
| 6724 | esac |
| 6725 | fi |
| 6726 | FIND=$ac_cv_path_FIND |
| 6727 | if test -n "$FIND"; then |
| 6728 | { echo "$as_me:$LINENO: result: $FIND" >&5 |
| 6729 | echo "${ECHO_T}$FIND" >&6; } |
| 6730 | else |
| 6731 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6732 | echo "${ECHO_T}no" >&6; } |
| 6733 | fi |
| 6734 | |
| 6735 | |
| 6736 | # Extract the first word of "grep", so it can be a program name with args. |
| 6737 | set dummy grep; ac_word=$2 |
| 6738 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6739 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6740 | if test "${ac_cv_path_GREP+set}" = set; then |
| 6741 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6742 | else |
| 6743 | case $GREP in |
| 6744 | [\\/]* | ?:[\\/]*) |
| 6745 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. |
| 6746 | ;; |
| 6747 | *) |
| 6748 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6749 | for as_dir in $PATH |
| 6750 | do |
| 6751 | IFS=$as_save_IFS |
| 6752 | test -z "$as_dir" && as_dir=. |
| 6753 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6754 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6755 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" |
| 6756 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6757 | break 2 |
| 6758 | fi |
| 6759 | done |
| 6760 | done |
| 6761 | IFS=$as_save_IFS |
| 6762 | |
| 6763 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" |
| 6764 | ;; |
| 6765 | esac |
| 6766 | fi |
| 6767 | GREP=$ac_cv_path_GREP |
| 6768 | if test -n "$GREP"; then |
| 6769 | { echo "$as_me:$LINENO: result: $GREP" >&5 |
| 6770 | echo "${ECHO_T}$GREP" >&6; } |
| 6771 | else |
| 6772 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6773 | echo "${ECHO_T}no" >&6; } |
| 6774 | fi |
| 6775 | |
| 6776 | |
| 6777 | # Extract the first word of "mkdir", so it can be a program name with args. |
| 6778 | set dummy mkdir; ac_word=$2 |
| 6779 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6780 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6781 | if test "${ac_cv_path_MKDIR+set}" = set; then |
| 6782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6783 | else |
| 6784 | case $MKDIR in |
| 6785 | [\\/]* | ?:[\\/]*) |
| 6786 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
| 6787 | ;; |
| 6788 | *) |
| 6789 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6790 | for as_dir in $PATH |
| 6791 | do |
| 6792 | IFS=$as_save_IFS |
| 6793 | test -z "$as_dir" && as_dir=. |
| 6794 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6795 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6796 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" |
| 6797 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6798 | break 2 |
| 6799 | fi |
| 6800 | done |
| 6801 | done |
| 6802 | IFS=$as_save_IFS |
| 6803 | |
| 6804 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" |
| 6805 | ;; |
| 6806 | esac |
| 6807 | fi |
| 6808 | MKDIR=$ac_cv_path_MKDIR |
| 6809 | if test -n "$MKDIR"; then |
| 6810 | { echo "$as_me:$LINENO: result: $MKDIR" >&5 |
| 6811 | echo "${ECHO_T}$MKDIR" >&6; } |
| 6812 | else |
| 6813 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6814 | echo "${ECHO_T}no" >&6; } |
| 6815 | fi |
| 6816 | |
| 6817 | |
| 6818 | # Extract the first word of "mv", so it can be a program name with args. |
| 6819 | set dummy mv; ac_word=$2 |
| 6820 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6821 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6822 | if test "${ac_cv_path_MV+set}" = set; then |
| 6823 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6824 | else |
| 6825 | case $MV in |
| 6826 | [\\/]* | ?:[\\/]*) |
| 6827 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 6828 | ;; |
| 6829 | *) |
| 6830 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6831 | for as_dir in $PATH |
| 6832 | do |
| 6833 | IFS=$as_save_IFS |
| 6834 | test -z "$as_dir" && as_dir=. |
| 6835 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6836 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6837 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
| 6838 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6839 | break 2 |
| 6840 | fi |
| 6841 | done |
| 6842 | done |
| 6843 | IFS=$as_save_IFS |
| 6844 | |
| 6845 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 6846 | ;; |
| 6847 | esac |
| 6848 | fi |
| 6849 | MV=$ac_cv_path_MV |
| 6850 | if test -n "$MV"; then |
| 6851 | { echo "$as_me:$LINENO: result: $MV" >&5 |
| 6852 | echo "${ECHO_T}$MV" >&6; } |
| 6853 | else |
| 6854 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6855 | echo "${ECHO_T}no" >&6; } |
| 6856 | fi |
| 6857 | |
| 6858 | |
| 6859 | if test -n "$ac_tool_prefix"; then |
| 6860 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6861 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 6862 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6863 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6864 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 6865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6866 | else |
| 6867 | if test -n "$RANLIB"; then |
| 6868 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6869 | else |
| 6870 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6871 | for as_dir in $PATH |
| 6872 | do |
| 6873 | IFS=$as_save_IFS |
| 6874 | test -z "$as_dir" && as_dir=. |
| 6875 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6876 | 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] | 6877 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 6878 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6879 | break 2 |
| 6880 | fi |
| 6881 | done |
| 6882 | done |
| 6883 | IFS=$as_save_IFS |
| 6884 | |
| 6885 | fi |
| 6886 | fi |
| 6887 | RANLIB=$ac_cv_prog_RANLIB |
| 6888 | if test -n "$RANLIB"; then |
| 6889 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 6890 | echo "${ECHO_T}$RANLIB" >&6; } |
| 6891 | else |
| 6892 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6893 | echo "${ECHO_T}no" >&6; } |
| 6894 | fi |
| 6895 | |
| 6896 | |
| 6897 | fi |
| 6898 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6899 | ac_ct_RANLIB=$RANLIB |
| 6900 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6901 | set dummy ranlib; ac_word=$2 |
| 6902 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6903 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6904 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 6905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6906 | else |
| 6907 | if test -n "$ac_ct_RANLIB"; then |
| 6908 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6909 | else |
| 6910 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6911 | for as_dir in $PATH |
| 6912 | do |
| 6913 | IFS=$as_save_IFS |
| 6914 | test -z "$as_dir" && as_dir=. |
| 6915 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6916 | 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] | 6917 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 6918 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6919 | break 2 |
| 6920 | fi |
| 6921 | done |
| 6922 | done |
| 6923 | IFS=$as_save_IFS |
| 6924 | |
| 6925 | fi |
| 6926 | fi |
| 6927 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6928 | if test -n "$ac_ct_RANLIB"; then |
| 6929 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 6930 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
| 6931 | else |
| 6932 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6933 | echo "${ECHO_T}no" >&6; } |
| 6934 | fi |
| 6935 | |
| 6936 | if test "x$ac_ct_RANLIB" = x; then |
| 6937 | RANLIB=":" |
| 6938 | else |
| 6939 | case $cross_compiling:$ac_tool_warned in |
| 6940 | yes:) |
| 6941 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6942 | whose name does not start with the host triplet. If you think this |
| 6943 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6944 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6945 | whose name does not start with the host triplet. If you think this |
| 6946 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6947 | ac_tool_warned=yes ;; |
| 6948 | esac |
| 6949 | RANLIB=$ac_ct_RANLIB |
| 6950 | fi |
| 6951 | else |
| 6952 | RANLIB="$ac_cv_prog_RANLIB" |
| 6953 | fi |
| 6954 | |
| 6955 | # Extract the first word of "rm", so it can be a program name with args. |
| 6956 | set dummy rm; ac_word=$2 |
| 6957 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6958 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6959 | if test "${ac_cv_path_RM+set}" = set; then |
| 6960 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6961 | else |
| 6962 | case $RM in |
| 6963 | [\\/]* | ?:[\\/]*) |
| 6964 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 6965 | ;; |
| 6966 | *) |
| 6967 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6968 | for as_dir in $PATH |
| 6969 | do |
| 6970 | IFS=$as_save_IFS |
| 6971 | test -z "$as_dir" && as_dir=. |
| 6972 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 6973 | 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] | 6974 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
| 6975 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6976 | break 2 |
| 6977 | fi |
| 6978 | done |
| 6979 | done |
| 6980 | IFS=$as_save_IFS |
| 6981 | |
| 6982 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 6983 | ;; |
| 6984 | esac |
| 6985 | fi |
| 6986 | RM=$ac_cv_path_RM |
| 6987 | if test -n "$RM"; then |
| 6988 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 6989 | echo "${ECHO_T}$RM" >&6; } |
| 6990 | else |
| 6991 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6992 | echo "${ECHO_T}no" >&6; } |
| 6993 | fi |
| 6994 | |
| 6995 | |
| 6996 | # Extract the first word of "sed", so it can be a program name with args. |
| 6997 | set dummy sed; ac_word=$2 |
| 6998 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6999 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7000 | if test "${ac_cv_path_SED+set}" = set; then |
| 7001 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7002 | else |
| 7003 | case $SED in |
| 7004 | [\\/]* | ?:[\\/]*) |
| 7005 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 7006 | ;; |
| 7007 | *) |
| 7008 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7009 | for as_dir in $PATH |
| 7010 | do |
| 7011 | IFS=$as_save_IFS |
| 7012 | test -z "$as_dir" && as_dir=. |
| 7013 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7014 | 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] | 7015 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
| 7016 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7017 | break 2 |
| 7018 | fi |
| 7019 | done |
| 7020 | done |
| 7021 | IFS=$as_save_IFS |
| 7022 | |
| 7023 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 7024 | ;; |
| 7025 | esac |
| 7026 | fi |
| 7027 | SED=$ac_cv_path_SED |
| 7028 | if test -n "$SED"; then |
| 7029 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 7030 | echo "${ECHO_T}$SED" >&6; } |
| 7031 | else |
| 7032 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7033 | echo "${ECHO_T}no" >&6; } |
| 7034 | fi |
| 7035 | |
| 7036 | |
| 7037 | # Extract the first word of "tar", so it can be a program name with args. |
| 7038 | set dummy tar; ac_word=$2 |
| 7039 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7040 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7041 | if test "${ac_cv_path_TAR+set}" = set; then |
| 7042 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7043 | else |
| 7044 | case $TAR in |
| 7045 | [\\/]* | ?:[\\/]*) |
| 7046 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. |
| 7047 | ;; |
| 7048 | *) |
| 7049 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7050 | for as_dir in $PATH |
| 7051 | do |
| 7052 | IFS=$as_save_IFS |
| 7053 | test -z "$as_dir" && as_dir=. |
| 7054 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7055 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7056 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" |
| 7057 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7058 | break 2 |
| 7059 | fi |
| 7060 | done |
| 7061 | done |
| 7062 | IFS=$as_save_IFS |
| 7063 | |
| 7064 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" |
| 7065 | ;; |
| 7066 | esac |
| 7067 | fi |
| 7068 | TAR=$ac_cv_path_TAR |
| 7069 | if test -n "$TAR"; then |
| 7070 | { echo "$as_me:$LINENO: result: $TAR" >&5 |
| 7071 | echo "${ECHO_T}$TAR" >&6; } |
| 7072 | else |
| 7073 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7074 | echo "${ECHO_T}no" >&6; } |
| 7075 | fi |
| 7076 | |
| 7077 | |
| 7078 | # Extract the first word of "pwd", so it can be a program name with args. |
| 7079 | set dummy pwd; ac_word=$2 |
| 7080 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7081 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7082 | if test "${ac_cv_path_BINPWD+set}" = set; then |
| 7083 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7084 | else |
| 7085 | case $BINPWD in |
| 7086 | [\\/]* | ?:[\\/]*) |
| 7087 | ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. |
| 7088 | ;; |
| 7089 | *) |
| 7090 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7091 | for as_dir in $PATH |
| 7092 | do |
| 7093 | IFS=$as_save_IFS |
| 7094 | test -z "$as_dir" && as_dir=. |
| 7095 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7096 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7097 | ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" |
| 7098 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7099 | break 2 |
| 7100 | fi |
| 7101 | done |
| 7102 | done |
| 7103 | IFS=$as_save_IFS |
| 7104 | |
| 7105 | test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" |
| 7106 | ;; |
| 7107 | esac |
| 7108 | fi |
| 7109 | BINPWD=$ac_cv_path_BINPWD |
| 7110 | if test -n "$BINPWD"; then |
| 7111 | { echo "$as_me:$LINENO: result: $BINPWD" >&5 |
| 7112 | echo "${ECHO_T}$BINPWD" >&6; } |
| 7113 | else |
| 7114 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7115 | echo "${ECHO_T}no" >&6; } |
| 7116 | fi |
| 7117 | |
| 7118 | |
| 7119 | |
| 7120 | # Extract the first word of "Graphviz", so it can be a program name with args. |
| 7121 | set dummy Graphviz; ac_word=$2 |
| 7122 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7123 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7124 | if test "${ac_cv_path_GRAPHVIZ+set}" = set; then |
| 7125 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7126 | else |
| 7127 | case $GRAPHVIZ in |
| 7128 | [\\/]* | ?:[\\/]*) |
| 7129 | ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. |
| 7130 | ;; |
| 7131 | *) |
| 7132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7133 | for as_dir in $PATH |
| 7134 | do |
| 7135 | IFS=$as_save_IFS |
| 7136 | test -z "$as_dir" && as_dir=. |
| 7137 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7138 | 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] | 7139 | ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" |
| 7140 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7141 | break 2 |
| 7142 | fi |
| 7143 | done |
| 7144 | done |
| 7145 | IFS=$as_save_IFS |
| 7146 | |
| 7147 | test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" |
| 7148 | ;; |
| 7149 | esac |
| 7150 | fi |
| 7151 | GRAPHVIZ=$ac_cv_path_GRAPHVIZ |
| 7152 | if test -n "$GRAPHVIZ"; then |
| 7153 | { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 |
| 7154 | echo "${ECHO_T}$GRAPHVIZ" >&6; } |
| 7155 | else |
| 7156 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7157 | echo "${ECHO_T}no" >&6; } |
| 7158 | fi |
| 7159 | |
| 7160 | |
| 7161 | if test "$GRAPHVIZ" != "echo Graphviz" ; then |
| 7162 | |
| 7163 | cat >>confdefs.h <<\_ACEOF |
| 7164 | #define HAVE_GRAPHVIZ 1 |
| 7165 | _ACEOF |
| 7166 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7167 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7168 | GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7169 | fi |
| 7170 | |
| 7171 | cat >>confdefs.h <<_ACEOF |
| 7172 | #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" |
| 7173 | _ACEOF |
| 7174 | |
| 7175 | fi |
| 7176 | # Extract the first word of "dot", so it can be a program name with args. |
| 7177 | set dummy dot; ac_word=$2 |
| 7178 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7179 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7180 | if test "${ac_cv_path_DOT+set}" = set; then |
| 7181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7182 | else |
| 7183 | case $DOT in |
| 7184 | [\\/]* | ?:[\\/]*) |
| 7185 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 7186 | ;; |
| 7187 | *) |
| 7188 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7189 | for as_dir in $PATH |
| 7190 | do |
| 7191 | IFS=$as_save_IFS |
| 7192 | test -z "$as_dir" && as_dir=. |
| 7193 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7194 | 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] | 7195 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
| 7196 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7197 | break 2 |
| 7198 | fi |
| 7199 | done |
| 7200 | done |
| 7201 | IFS=$as_save_IFS |
| 7202 | |
| 7203 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" |
| 7204 | ;; |
| 7205 | esac |
| 7206 | fi |
| 7207 | DOT=$ac_cv_path_DOT |
| 7208 | if test -n "$DOT"; then |
| 7209 | { echo "$as_me:$LINENO: result: $DOT" >&5 |
| 7210 | echo "${ECHO_T}$DOT" >&6; } |
| 7211 | else |
| 7212 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7213 | echo "${ECHO_T}no" >&6; } |
| 7214 | fi |
| 7215 | |
| 7216 | |
| 7217 | if test "$DOT" != "echo dot" ; then |
| 7218 | |
| 7219 | cat >>confdefs.h <<\_ACEOF |
| 7220 | #define HAVE_DOT 1 |
| 7221 | _ACEOF |
| 7222 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7223 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7224 | DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7225 | fi |
| 7226 | |
| 7227 | cat >>confdefs.h <<_ACEOF |
| 7228 | #define LLVM_PATH_DOT "$DOT${EXEEXT}" |
| 7229 | _ACEOF |
| 7230 | |
| 7231 | fi |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7232 | # Extract the first word of "fdp", so it can be a program name with args. |
| 7233 | set dummy fdp; ac_word=$2 |
| 7234 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7235 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7236 | if test "${ac_cv_path_FDP+set}" = set; then |
| 7237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7238 | else |
| 7239 | case $FDP in |
| 7240 | [\\/]* | ?:[\\/]*) |
| 7241 | ac_cv_path_FDP="$FDP" # Let the user override the test with a path. |
| 7242 | ;; |
| 7243 | *) |
| 7244 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7245 | for as_dir in $PATH |
| 7246 | do |
| 7247 | IFS=$as_save_IFS |
| 7248 | test -z "$as_dir" && as_dir=. |
| 7249 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7250 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7251 | ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" |
| 7252 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7253 | break 2 |
| 7254 | fi |
| 7255 | done |
| 7256 | done |
| 7257 | IFS=$as_save_IFS |
| 7258 | |
| 7259 | test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" |
| 7260 | ;; |
| 7261 | esac |
| 7262 | fi |
| 7263 | FDP=$ac_cv_path_FDP |
| 7264 | if test -n "$FDP"; then |
| 7265 | { echo "$as_me:$LINENO: result: $FDP" >&5 |
| 7266 | echo "${ECHO_T}$FDP" >&6; } |
| 7267 | else |
| 7268 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7269 | echo "${ECHO_T}no" >&6; } |
| 7270 | fi |
| 7271 | |
| 7272 | |
| 7273 | if test "$FDP" != "echo fdp" ; then |
| 7274 | |
| 7275 | cat >>confdefs.h <<\_ACEOF |
| 7276 | #define HAVE_FDP 1 |
| 7277 | _ACEOF |
| 7278 | |
| 7279 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7280 | FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7281 | fi |
| 7282 | |
| 7283 | cat >>confdefs.h <<_ACEOF |
| 7284 | #define LLVM_PATH_FDP "$FDP${EXEEXT}" |
| 7285 | _ACEOF |
| 7286 | |
| 7287 | fi |
| 7288 | # Extract the first word of "neato", so it can be a program name with args. |
| 7289 | set dummy neato; ac_word=$2 |
| 7290 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7291 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7292 | if test "${ac_cv_path_NEATO+set}" = set; then |
| 7293 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7294 | else |
| 7295 | case $NEATO in |
| 7296 | [\\/]* | ?:[\\/]*) |
| 7297 | ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path. |
| 7298 | ;; |
| 7299 | *) |
| 7300 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7301 | for as_dir in $PATH |
| 7302 | do |
| 7303 | IFS=$as_save_IFS |
| 7304 | test -z "$as_dir" && as_dir=. |
| 7305 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7306 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7307 | ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext" |
| 7308 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7309 | break 2 |
| 7310 | fi |
| 7311 | done |
| 7312 | done |
| 7313 | IFS=$as_save_IFS |
| 7314 | |
| 7315 | test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" |
| 7316 | ;; |
| 7317 | esac |
| 7318 | fi |
| 7319 | NEATO=$ac_cv_path_NEATO |
| 7320 | if test -n "$NEATO"; then |
| 7321 | { echo "$as_me:$LINENO: result: $NEATO" >&5 |
| 7322 | echo "${ECHO_T}$NEATO" >&6; } |
| 7323 | else |
| 7324 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7325 | echo "${ECHO_T}no" >&6; } |
| 7326 | fi |
| 7327 | |
| 7328 | |
| 7329 | if test "$NEATO" != "echo neato" ; then |
| 7330 | |
| 7331 | cat >>confdefs.h <<\_ACEOF |
| 7332 | #define HAVE_NEATO 1 |
| 7333 | _ACEOF |
| 7334 | |
| 7335 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7336 | NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7337 | fi |
| 7338 | |
| 7339 | cat >>confdefs.h <<_ACEOF |
| 7340 | #define LLVM_PATH_NEATO "$NEATO${EXEEXT}" |
| 7341 | _ACEOF |
| 7342 | |
| 7343 | fi |
| 7344 | # Extract the first word of "twopi", so it can be a program name with args. |
| 7345 | set dummy twopi; ac_word=$2 |
| 7346 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7347 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7348 | if test "${ac_cv_path_TWOPI+set}" = set; then |
| 7349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7350 | else |
| 7351 | case $TWOPI in |
| 7352 | [\\/]* | ?:[\\/]*) |
| 7353 | ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. |
| 7354 | ;; |
| 7355 | *) |
| 7356 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7357 | for as_dir in $PATH |
| 7358 | do |
| 7359 | IFS=$as_save_IFS |
| 7360 | test -z "$as_dir" && as_dir=. |
| 7361 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7362 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7363 | ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" |
| 7364 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7365 | break 2 |
| 7366 | fi |
| 7367 | done |
| 7368 | done |
| 7369 | IFS=$as_save_IFS |
| 7370 | |
| 7371 | test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" |
| 7372 | ;; |
| 7373 | esac |
| 7374 | fi |
| 7375 | TWOPI=$ac_cv_path_TWOPI |
| 7376 | if test -n "$TWOPI"; then |
| 7377 | { echo "$as_me:$LINENO: result: $TWOPI" >&5 |
| 7378 | echo "${ECHO_T}$TWOPI" >&6; } |
| 7379 | else |
| 7380 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7381 | echo "${ECHO_T}no" >&6; } |
| 7382 | fi |
| 7383 | |
| 7384 | |
| 7385 | if test "$TWOPI" != "echo twopi" ; then |
| 7386 | |
| 7387 | cat >>confdefs.h <<\_ACEOF |
| 7388 | #define HAVE_TWOPI 1 |
| 7389 | _ACEOF |
| 7390 | |
| 7391 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7392 | TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7393 | fi |
| 7394 | |
| 7395 | cat >>confdefs.h <<_ACEOF |
| 7396 | #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" |
| 7397 | _ACEOF |
| 7398 | |
| 7399 | fi |
| 7400 | # Extract the first word of "circo", so it can be a program name with args. |
| 7401 | set dummy circo; ac_word=$2 |
| 7402 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7403 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7404 | if test "${ac_cv_path_CIRCO+set}" = set; then |
| 7405 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7406 | else |
| 7407 | case $CIRCO in |
| 7408 | [\\/]* | ?:[\\/]*) |
| 7409 | ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path. |
| 7410 | ;; |
| 7411 | *) |
| 7412 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7413 | for as_dir in $PATH |
| 7414 | do |
| 7415 | IFS=$as_save_IFS |
| 7416 | test -z "$as_dir" && as_dir=. |
| 7417 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7418 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7419 | ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext" |
| 7420 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7421 | break 2 |
| 7422 | fi |
| 7423 | done |
| 7424 | done |
| 7425 | IFS=$as_save_IFS |
| 7426 | |
| 7427 | test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" |
| 7428 | ;; |
| 7429 | esac |
| 7430 | fi |
| 7431 | CIRCO=$ac_cv_path_CIRCO |
| 7432 | if test -n "$CIRCO"; then |
| 7433 | { echo "$as_me:$LINENO: result: $CIRCO" >&5 |
| 7434 | echo "${ECHO_T}$CIRCO" >&6; } |
| 7435 | else |
| 7436 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7437 | echo "${ECHO_T}no" >&6; } |
| 7438 | fi |
| 7439 | |
| 7440 | |
| 7441 | if test "$CIRCO" != "echo circo" ; then |
| 7442 | |
| 7443 | cat >>confdefs.h <<\_ACEOF |
| 7444 | #define HAVE_CIRCO 1 |
| 7445 | _ACEOF |
| 7446 | |
| 7447 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7448 | CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7449 | fi |
| 7450 | |
| 7451 | cat >>confdefs.h <<_ACEOF |
| 7452 | #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" |
| 7453 | _ACEOF |
| 7454 | |
| 7455 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7456 | for ac_prog in gv gsview32 |
| 7457 | do |
| 7458 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7459 | set dummy $ac_prog; ac_word=$2 |
| 7460 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7461 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7462 | if test "${ac_cv_path_GV+set}" = set; then |
| 7463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7464 | else |
| 7465 | case $GV in |
| 7466 | [\\/]* | ?:[\\/]*) |
| 7467 | ac_cv_path_GV="$GV" # Let the user override the test with a path. |
| 7468 | ;; |
| 7469 | *) |
| 7470 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7471 | for as_dir in $PATH |
| 7472 | do |
| 7473 | IFS=$as_save_IFS |
| 7474 | test -z "$as_dir" && as_dir=. |
| 7475 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7476 | 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] | 7477 | ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" |
| 7478 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7479 | break 2 |
| 7480 | fi |
| 7481 | done |
| 7482 | done |
| 7483 | IFS=$as_save_IFS |
| 7484 | |
| 7485 | ;; |
| 7486 | esac |
| 7487 | fi |
| 7488 | GV=$ac_cv_path_GV |
| 7489 | if test -n "$GV"; then |
| 7490 | { echo "$as_me:$LINENO: result: $GV" >&5 |
| 7491 | echo "${ECHO_T}$GV" >&6; } |
| 7492 | else |
| 7493 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7494 | echo "${ECHO_T}no" >&6; } |
| 7495 | fi |
| 7496 | |
| 7497 | |
| 7498 | test -n "$GV" && break |
| 7499 | done |
| 7500 | test -n "$GV" || GV="echo gv" |
| 7501 | |
| 7502 | if test "$GV" != "echo gv" ; then |
| 7503 | |
| 7504 | cat >>confdefs.h <<\_ACEOF |
| 7505 | #define HAVE_GV 1 |
| 7506 | _ACEOF |
| 7507 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7508 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7509 | GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7510 | fi |
| 7511 | |
| 7512 | cat >>confdefs.h <<_ACEOF |
| 7513 | #define LLVM_PATH_GV "$GV${EXEEXT}" |
| 7514 | _ACEOF |
| 7515 | |
| 7516 | fi |
| 7517 | # Extract the first word of "dotty", so it can be a program name with args. |
| 7518 | set dummy dotty; ac_word=$2 |
| 7519 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7520 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7521 | if test "${ac_cv_path_DOTTY+set}" = set; then |
| 7522 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7523 | else |
| 7524 | case $DOTTY in |
| 7525 | [\\/]* | ?:[\\/]*) |
| 7526 | ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. |
| 7527 | ;; |
| 7528 | *) |
| 7529 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7530 | for as_dir in $PATH |
| 7531 | do |
| 7532 | IFS=$as_save_IFS |
| 7533 | test -z "$as_dir" && as_dir=. |
| 7534 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7535 | 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] | 7536 | ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" |
| 7537 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7538 | break 2 |
| 7539 | fi |
| 7540 | done |
| 7541 | done |
| 7542 | IFS=$as_save_IFS |
| 7543 | |
| 7544 | test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" |
| 7545 | ;; |
| 7546 | esac |
| 7547 | fi |
| 7548 | DOTTY=$ac_cv_path_DOTTY |
| 7549 | if test -n "$DOTTY"; then |
| 7550 | { echo "$as_me:$LINENO: result: $DOTTY" >&5 |
| 7551 | echo "${ECHO_T}$DOTTY" >&6; } |
| 7552 | else |
| 7553 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7554 | echo "${ECHO_T}no" >&6; } |
| 7555 | fi |
| 7556 | |
| 7557 | |
| 7558 | if test "$DOTTY" != "echo dotty" ; then |
| 7559 | |
| 7560 | cat >>confdefs.h <<\_ACEOF |
| 7561 | #define HAVE_DOTTY 1 |
| 7562 | _ACEOF |
| 7563 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7564 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7565 | DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7566 | fi |
| 7567 | |
| 7568 | cat >>confdefs.h <<_ACEOF |
| 7569 | #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" |
| 7570 | _ACEOF |
| 7571 | |
| 7572 | fi |
| 7573 | |
| 7574 | |
| 7575 | # Extract the first word of "perl", so it can be a program name with args. |
| 7576 | set dummy perl; ac_word=$2 |
| 7577 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7578 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7579 | if test "${ac_cv_path_PERL+set}" = set; then |
| 7580 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7581 | else |
| 7582 | case $PERL in |
| 7583 | [\\/]* | ?:[\\/]*) |
| 7584 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 7585 | ;; |
| 7586 | *) |
| 7587 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7588 | for as_dir in $PATH |
| 7589 | do |
| 7590 | IFS=$as_save_IFS |
| 7591 | test -z "$as_dir" && as_dir=. |
| 7592 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7593 | 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] | 7594 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
| 7595 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7596 | break 2 |
| 7597 | fi |
| 7598 | done |
| 7599 | done |
| 7600 | IFS=$as_save_IFS |
| 7601 | |
| 7602 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" |
| 7603 | ;; |
| 7604 | esac |
| 7605 | fi |
| 7606 | PERL=$ac_cv_path_PERL |
| 7607 | if test -n "$PERL"; then |
| 7608 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
| 7609 | echo "${ECHO_T}$PERL" >&6; } |
| 7610 | else |
| 7611 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7612 | echo "${ECHO_T}no" >&6; } |
| 7613 | fi |
| 7614 | |
| 7615 | |
| 7616 | if test "$PERL" != "none"; then |
| 7617 | { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5 |
| 7618 | echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; } |
| 7619 | if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then |
| 7620 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 7621 | echo "${ECHO_T}yes" >&6; } |
| 7622 | else |
| 7623 | PERL=none |
| 7624 | { echo "$as_me:$LINENO: result: not found" >&5 |
| 7625 | echo "${ECHO_T}not found" >&6; } |
| 7626 | fi |
| 7627 | fi |
| 7628 | |
| 7629 | |
| 7630 | if test x"$PERL" = xnone; then |
| 7631 | HAVE_PERL=0 |
| 7632 | |
Reid Spencer | 59807fa | 2007-05-17 18:11:03 +0000 | [diff] [blame] | 7633 | { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5 |
| 7634 | echo "$as_me: error: perl is required but was not found, please install it" >&2;} |
| 7635 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7636 | else |
| 7637 | HAVE_PERL=1 |
| 7638 | |
| 7639 | fi |
| 7640 | |
| 7641 | # Find a good install program. We prefer a C program (faster), |
| 7642 | # so one script is as good as another. But avoid the broken or |
| 7643 | # incompatible versions: |
| 7644 | # SysV /etc/install, /usr/sbin/install |
| 7645 | # SunOS /usr/etc/install |
| 7646 | # IRIX /sbin/install |
| 7647 | # AIX /bin/install |
| 7648 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 7649 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 7650 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 7651 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 7652 | # OS/2's system install, which has a completely different semantic |
| 7653 | # ./install, which can be erroneously created by make from ./install.sh. |
| 7654 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 7655 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
| 7656 | if test -z "$INSTALL"; then |
| 7657 | if test "${ac_cv_path_install+set}" = set; then |
| 7658 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7659 | else |
| 7660 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7661 | for as_dir in $PATH |
| 7662 | do |
| 7663 | IFS=$as_save_IFS |
| 7664 | test -z "$as_dir" && as_dir=. |
| 7665 | # Account for people who put trailing slashes in PATH elements. |
| 7666 | case $as_dir/ in |
| 7667 | ./ | .// | /cC/* | \ |
| 7668 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 7669 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 7670 | /usr/ucb/* ) ;; |
| 7671 | *) |
| 7672 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 7673 | # Don't use installbsd from OSF since it installs stuff as root |
| 7674 | # by default. |
| 7675 | for ac_prog in ginstall scoinst install; do |
| 7676 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7677 | 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] | 7678 | if test $ac_prog = install && |
| 7679 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7680 | # AIX install. It has an incompatible calling convention. |
| 7681 | : |
| 7682 | elif test $ac_prog = install && |
| 7683 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7684 | # program-specific install script used by HP pwplus--don't use. |
| 7685 | : |
| 7686 | else |
| 7687 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 7688 | break 3 |
| 7689 | fi |
| 7690 | fi |
| 7691 | done |
| 7692 | done |
| 7693 | ;; |
| 7694 | esac |
| 7695 | done |
| 7696 | IFS=$as_save_IFS |
| 7697 | |
| 7698 | |
| 7699 | fi |
| 7700 | if test "${ac_cv_path_install+set}" = set; then |
| 7701 | INSTALL=$ac_cv_path_install |
| 7702 | else |
| 7703 | # As a last resort, use the slow shell script. Don't cache a |
| 7704 | # value for INSTALL within a source directory, because that will |
| 7705 | # break other packages using the cache if that directory is |
| 7706 | # removed, or if the value is a relative name. |
| 7707 | INSTALL=$ac_install_sh |
| 7708 | fi |
| 7709 | fi |
| 7710 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 7711 | echo "${ECHO_T}$INSTALL" >&6; } |
| 7712 | |
| 7713 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 7714 | # It thinks the first close brace ends the variable substitution. |
| 7715 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 7716 | |
| 7717 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 7718 | |
| 7719 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 7720 | |
| 7721 | |
| 7722 | # Extract the first word of "bzip2", so it can be a program name with args. |
| 7723 | set dummy bzip2; ac_word=$2 |
| 7724 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7725 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7726 | if test "${ac_cv_path_BZIP2+set}" = set; then |
| 7727 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7728 | else |
| 7729 | case $BZIP2 in |
| 7730 | [\\/]* | ?:[\\/]*) |
| 7731 | ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. |
| 7732 | ;; |
| 7733 | *) |
| 7734 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7735 | for as_dir in $PATH |
| 7736 | do |
| 7737 | IFS=$as_save_IFS |
| 7738 | test -z "$as_dir" && as_dir=. |
| 7739 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7740 | 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] | 7741 | ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" |
| 7742 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7743 | break 2 |
| 7744 | fi |
| 7745 | done |
| 7746 | done |
| 7747 | IFS=$as_save_IFS |
| 7748 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7749 | ;; |
| 7750 | esac |
| 7751 | fi |
| 7752 | BZIP2=$ac_cv_path_BZIP2 |
| 7753 | if test -n "$BZIP2"; then |
| 7754 | { echo "$as_me:$LINENO: result: $BZIP2" >&5 |
| 7755 | echo "${ECHO_T}$BZIP2" >&6; } |
| 7756 | else |
| 7757 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7758 | echo "${ECHO_T}no" >&6; } |
| 7759 | fi |
| 7760 | |
| 7761 | |
| 7762 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 7763 | set dummy doxygen; ac_word=$2 |
| 7764 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7765 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7766 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
| 7767 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7768 | else |
| 7769 | case $DOXYGEN in |
| 7770 | [\\/]* | ?:[\\/]*) |
| 7771 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
| 7772 | ;; |
| 7773 | *) |
| 7774 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7775 | for as_dir in $PATH |
| 7776 | do |
| 7777 | IFS=$as_save_IFS |
| 7778 | test -z "$as_dir" && as_dir=. |
| 7779 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7780 | 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] | 7781 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
| 7782 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7783 | break 2 |
| 7784 | fi |
| 7785 | done |
| 7786 | done |
| 7787 | IFS=$as_save_IFS |
| 7788 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7789 | ;; |
| 7790 | esac |
| 7791 | fi |
| 7792 | DOXYGEN=$ac_cv_path_DOXYGEN |
| 7793 | if test -n "$DOXYGEN"; then |
| 7794 | { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
| 7795 | echo "${ECHO_T}$DOXYGEN" >&6; } |
| 7796 | else |
| 7797 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7798 | echo "${ECHO_T}no" >&6; } |
| 7799 | fi |
| 7800 | |
| 7801 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7802 | # Extract the first word of "groff", so it can be a program name with args. |
| 7803 | set dummy groff; ac_word=$2 |
| 7804 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7805 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7806 | if test "${ac_cv_path_GROFF+set}" = set; then |
| 7807 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7808 | else |
| 7809 | case $GROFF in |
| 7810 | [\\/]* | ?:[\\/]*) |
| 7811 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. |
| 7812 | ;; |
| 7813 | *) |
| 7814 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7815 | for as_dir in $PATH |
| 7816 | do |
| 7817 | IFS=$as_save_IFS |
| 7818 | test -z "$as_dir" && as_dir=. |
| 7819 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7820 | 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] | 7821 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" |
| 7822 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7823 | break 2 |
| 7824 | fi |
| 7825 | done |
| 7826 | done |
| 7827 | IFS=$as_save_IFS |
| 7828 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7829 | ;; |
| 7830 | esac |
| 7831 | fi |
| 7832 | GROFF=$ac_cv_path_GROFF |
| 7833 | if test -n "$GROFF"; then |
| 7834 | { echo "$as_me:$LINENO: result: $GROFF" >&5 |
| 7835 | echo "${ECHO_T}$GROFF" >&6; } |
| 7836 | else |
| 7837 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7838 | echo "${ECHO_T}no" >&6; } |
| 7839 | fi |
| 7840 | |
| 7841 | |
| 7842 | # Extract the first word of "gzip", so it can be a program name with args. |
| 7843 | set dummy gzip; ac_word=$2 |
| 7844 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7845 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7846 | if test "${ac_cv_path_GZIP+set}" = set; then |
| 7847 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7848 | else |
| 7849 | case $GZIP in |
| 7850 | [\\/]* | ?:[\\/]*) |
| 7851 | ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. |
| 7852 | ;; |
| 7853 | *) |
| 7854 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7855 | for as_dir in $PATH |
| 7856 | do |
| 7857 | IFS=$as_save_IFS |
| 7858 | test -z "$as_dir" && as_dir=. |
| 7859 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7860 | 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] | 7861 | ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" |
| 7862 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7863 | break 2 |
| 7864 | fi |
| 7865 | done |
| 7866 | done |
| 7867 | IFS=$as_save_IFS |
| 7868 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7869 | ;; |
| 7870 | esac |
| 7871 | fi |
| 7872 | GZIP=$ac_cv_path_GZIP |
| 7873 | if test -n "$GZIP"; then |
| 7874 | { echo "$as_me:$LINENO: result: $GZIP" >&5 |
| 7875 | echo "${ECHO_T}$GZIP" >&6; } |
| 7876 | else |
| 7877 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7878 | echo "${ECHO_T}no" >&6; } |
| 7879 | fi |
| 7880 | |
| 7881 | |
| 7882 | # Extract the first word of "pod2html", so it can be a program name with args. |
| 7883 | set dummy pod2html; ac_word=$2 |
| 7884 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7885 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7886 | if test "${ac_cv_path_POD2HTML+set}" = set; then |
| 7887 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7888 | else |
| 7889 | case $POD2HTML in |
| 7890 | [\\/]* | ?:[\\/]*) |
| 7891 | ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. |
| 7892 | ;; |
| 7893 | *) |
| 7894 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7895 | for as_dir in $PATH |
| 7896 | do |
| 7897 | IFS=$as_save_IFS |
| 7898 | test -z "$as_dir" && as_dir=. |
| 7899 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7900 | 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] | 7901 | ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" |
| 7902 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7903 | break 2 |
| 7904 | fi |
| 7905 | done |
| 7906 | done |
| 7907 | IFS=$as_save_IFS |
| 7908 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7909 | ;; |
| 7910 | esac |
| 7911 | fi |
| 7912 | POD2HTML=$ac_cv_path_POD2HTML |
| 7913 | if test -n "$POD2HTML"; then |
| 7914 | { echo "$as_me:$LINENO: result: $POD2HTML" >&5 |
| 7915 | echo "${ECHO_T}$POD2HTML" >&6; } |
| 7916 | else |
| 7917 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7918 | echo "${ECHO_T}no" >&6; } |
| 7919 | fi |
| 7920 | |
| 7921 | |
| 7922 | # Extract the first word of "pod2man", so it can be a program name with args. |
| 7923 | set dummy pod2man; ac_word=$2 |
| 7924 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7925 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7926 | if test "${ac_cv_path_POD2MAN+set}" = set; then |
| 7927 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7928 | else |
| 7929 | case $POD2MAN in |
| 7930 | [\\/]* | ?:[\\/]*) |
| 7931 | ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. |
| 7932 | ;; |
| 7933 | *) |
| 7934 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7935 | for as_dir in $PATH |
| 7936 | do |
| 7937 | IFS=$as_save_IFS |
| 7938 | test -z "$as_dir" && as_dir=. |
| 7939 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7940 | 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] | 7941 | ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" |
| 7942 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7943 | break 2 |
| 7944 | fi |
| 7945 | done |
| 7946 | done |
| 7947 | IFS=$as_save_IFS |
| 7948 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7949 | ;; |
| 7950 | esac |
| 7951 | fi |
| 7952 | POD2MAN=$ac_cv_path_POD2MAN |
| 7953 | if test -n "$POD2MAN"; then |
| 7954 | { echo "$as_me:$LINENO: result: $POD2MAN" >&5 |
| 7955 | echo "${ECHO_T}$POD2MAN" >&6; } |
| 7956 | else |
| 7957 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7958 | echo "${ECHO_T}no" >&6; } |
| 7959 | fi |
| 7960 | |
| 7961 | |
| 7962 | # Extract the first word of "runtest", so it can be a program name with args. |
| 7963 | set dummy runtest; ac_word=$2 |
| 7964 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7965 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7966 | if test "${ac_cv_path_RUNTEST+set}" = set; then |
| 7967 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7968 | else |
| 7969 | case $RUNTEST in |
| 7970 | [\\/]* | ?:[\\/]*) |
| 7971 | ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. |
| 7972 | ;; |
| 7973 | *) |
| 7974 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7975 | for as_dir in $PATH |
| 7976 | do |
| 7977 | IFS=$as_save_IFS |
| 7978 | test -z "$as_dir" && as_dir=. |
| 7979 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 7980 | 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] | 7981 | ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" |
| 7982 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7983 | break 2 |
| 7984 | fi |
| 7985 | done |
| 7986 | done |
| 7987 | IFS=$as_save_IFS |
| 7988 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7989 | ;; |
| 7990 | esac |
| 7991 | fi |
| 7992 | RUNTEST=$ac_cv_path_RUNTEST |
| 7993 | if test -n "$RUNTEST"; then |
| 7994 | { echo "$as_me:$LINENO: result: $RUNTEST" >&5 |
| 7995 | echo "${ECHO_T}$RUNTEST" >&6; } |
| 7996 | else |
| 7997 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7998 | echo "${ECHO_T}no" >&6; } |
| 7999 | fi |
| 8000 | |
| 8001 | |
| 8002 | |
| 8003 | no_itcl=true |
| 8004 | { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 |
| 8005 | echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; } |
| 8006 | |
| 8007 | # Check whether --with-tclinclude was given. |
| 8008 | if test "${with_tclinclude+set}" = set; then |
| 8009 | withval=$with_tclinclude; with_tclinclude=${withval} |
| 8010 | else |
| 8011 | with_tclinclude='' |
| 8012 | fi |
| 8013 | |
| 8014 | if test "${ac_cv_path_tclsh+set}" = set; then |
| 8015 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8016 | else |
| 8017 | |
| 8018 | if test x"${with_tclinclude}" != x ; then |
| 8019 | if test -f ${with_tclinclude}/tclsh ; then |
| 8020 | ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` |
| 8021 | elif test -f ${with_tclinclude}/src/tclsh ; then |
| 8022 | ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` |
| 8023 | else |
| 8024 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 |
| 8025 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} |
| 8026 | { (exit 1); exit 1; }; } |
| 8027 | fi |
| 8028 | fi |
| 8029 | |
| 8030 | if test x"${ac_cv_path_tclsh}" = x ; then |
| 8031 | { echo "$as_me:$LINENO: result: none" >&5 |
| 8032 | echo "${ECHO_T}none" >&6; } |
| 8033 | 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 |
| 8034 | do |
| 8035 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8036 | set dummy $ac_prog; ac_word=$2 |
| 8037 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8038 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8039 | if test "${ac_cv_path_TCLSH+set}" = set; then |
| 8040 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8041 | else |
| 8042 | case $TCLSH in |
| 8043 | [\\/]* | ?:[\\/]*) |
| 8044 | ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. |
| 8045 | ;; |
| 8046 | *) |
| 8047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8048 | for as_dir in $PATH |
| 8049 | do |
| 8050 | IFS=$as_save_IFS |
| 8051 | test -z "$as_dir" && as_dir=. |
| 8052 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8053 | 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] | 8054 | ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" |
| 8055 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8056 | break 2 |
| 8057 | fi |
| 8058 | done |
| 8059 | done |
| 8060 | IFS=$as_save_IFS |
| 8061 | |
| 8062 | ;; |
| 8063 | esac |
| 8064 | fi |
| 8065 | TCLSH=$ac_cv_path_TCLSH |
| 8066 | if test -n "$TCLSH"; then |
| 8067 | { echo "$as_me:$LINENO: result: $TCLSH" >&5 |
| 8068 | echo "${ECHO_T}$TCLSH" >&6; } |
| 8069 | else |
| 8070 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8071 | echo "${ECHO_T}no" >&6; } |
| 8072 | fi |
| 8073 | |
| 8074 | |
| 8075 | test -n "$TCLSH" && break |
| 8076 | done |
| 8077 | |
| 8078 | if test x"${TCLSH}" = x ; then |
| 8079 | ac_cv_path_tclsh=''; |
| 8080 | else |
| 8081 | ac_cv_path_tclsh="${TCLSH}"; |
| 8082 | fi |
| 8083 | else |
| 8084 | { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 |
| 8085 | echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; } |
| 8086 | TCLSH="${ac_cv_path_tclsh}" |
| 8087 | |
| 8088 | fi |
| 8089 | |
| 8090 | fi |
| 8091 | |
| 8092 | # Extract the first word of "zip", so it can be a program name with args. |
| 8093 | set dummy zip; ac_word=$2 |
| 8094 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8095 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8096 | if test "${ac_cv_path_ZIP+set}" = set; then |
| 8097 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8098 | else |
| 8099 | case $ZIP in |
| 8100 | [\\/]* | ?:[\\/]*) |
| 8101 | ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. |
| 8102 | ;; |
| 8103 | *) |
| 8104 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8105 | for as_dir in $PATH |
| 8106 | do |
| 8107 | IFS=$as_save_IFS |
| 8108 | test -z "$as_dir" && as_dir=. |
| 8109 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8110 | 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] | 8111 | ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" |
| 8112 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8113 | break 2 |
| 8114 | fi |
| 8115 | done |
| 8116 | done |
| 8117 | IFS=$as_save_IFS |
| 8118 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8119 | ;; |
| 8120 | esac |
| 8121 | fi |
| 8122 | ZIP=$ac_cv_path_ZIP |
| 8123 | if test -n "$ZIP"; then |
| 8124 | { echo "$as_me:$LINENO: result: $ZIP" >&5 |
| 8125 | echo "${ECHO_T}$ZIP" >&6; } |
| 8126 | else |
| 8127 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8128 | echo "${ECHO_T}no" >&6; } |
| 8129 | fi |
| 8130 | |
| 8131 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8132 | for ac_prog in ocamlc |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8133 | do |
| 8134 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8135 | set dummy $ac_prog; ac_word=$2 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8136 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8137 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8138 | if test "${ac_cv_path_OCAMLC+set}" = set; then |
| 8139 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8140 | else |
| 8141 | case $OCAMLC in |
| 8142 | [\\/]* | ?:[\\/]*) |
| 8143 | ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. |
| 8144 | ;; |
| 8145 | *) |
| 8146 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8147 | for as_dir in $PATH |
| 8148 | do |
| 8149 | IFS=$as_save_IFS |
| 8150 | test -z "$as_dir" && as_dir=. |
| 8151 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8152 | 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] | 8153 | ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" |
| 8154 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8155 | break 2 |
| 8156 | fi |
| 8157 | done |
| 8158 | done |
| 8159 | IFS=$as_save_IFS |
| 8160 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8161 | ;; |
| 8162 | esac |
| 8163 | fi |
| 8164 | OCAMLC=$ac_cv_path_OCAMLC |
| 8165 | if test -n "$OCAMLC"; then |
| 8166 | { echo "$as_me:$LINENO: result: $OCAMLC" >&5 |
| 8167 | echo "${ECHO_T}$OCAMLC" >&6; } |
| 8168 | else |
| 8169 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8170 | echo "${ECHO_T}no" >&6; } |
| 8171 | fi |
| 8172 | |
| 8173 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8174 | test -n "$OCAMLC" && break |
| 8175 | done |
| 8176 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8177 | for ac_prog in ocamlopt |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8178 | do |
| 8179 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8180 | set dummy $ac_prog; ac_word=$2 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8181 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8182 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8183 | if test "${ac_cv_path_OCAMLOPT+set}" = set; then |
| 8184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8185 | else |
| 8186 | case $OCAMLOPT in |
| 8187 | [\\/]* | ?:[\\/]*) |
| 8188 | ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. |
| 8189 | ;; |
| 8190 | *) |
| 8191 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8192 | for as_dir in $PATH |
| 8193 | do |
| 8194 | IFS=$as_save_IFS |
| 8195 | test -z "$as_dir" && as_dir=. |
| 8196 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8197 | 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] | 8198 | ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" |
| 8199 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8200 | break 2 |
| 8201 | fi |
| 8202 | done |
| 8203 | done |
| 8204 | IFS=$as_save_IFS |
| 8205 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8206 | ;; |
| 8207 | esac |
| 8208 | fi |
| 8209 | OCAMLOPT=$ac_cv_path_OCAMLOPT |
| 8210 | if test -n "$OCAMLOPT"; then |
| 8211 | { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 |
| 8212 | echo "${ECHO_T}$OCAMLOPT" >&6; } |
| 8213 | else |
| 8214 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8215 | echo "${ECHO_T}no" >&6; } |
| 8216 | fi |
| 8217 | |
| 8218 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8219 | test -n "$OCAMLOPT" && break |
| 8220 | done |
| 8221 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8222 | for ac_prog in ocamldep |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8223 | do |
| 8224 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8225 | set dummy $ac_prog; ac_word=$2 |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8226 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8227 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8228 | if test "${ac_cv_path_OCAMLDEP+set}" = set; then |
| 8229 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8230 | else |
| 8231 | case $OCAMLDEP in |
| 8232 | [\\/]* | ?:[\\/]*) |
| 8233 | ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. |
| 8234 | ;; |
| 8235 | *) |
| 8236 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8237 | for as_dir in $PATH |
| 8238 | do |
| 8239 | IFS=$as_save_IFS |
| 8240 | test -z "$as_dir" && as_dir=. |
| 8241 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8242 | 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] | 8243 | ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" |
| 8244 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8245 | break 2 |
| 8246 | fi |
| 8247 | done |
| 8248 | done |
| 8249 | IFS=$as_save_IFS |
| 8250 | |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8251 | ;; |
| 8252 | esac |
| 8253 | fi |
| 8254 | OCAMLDEP=$ac_cv_path_OCAMLDEP |
| 8255 | if test -n "$OCAMLDEP"; then |
| 8256 | { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 |
| 8257 | echo "${ECHO_T}$OCAMLDEP" >&6; } |
| 8258 | else |
| 8259 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8260 | echo "${ECHO_T}no" >&6; } |
| 8261 | fi |
| 8262 | |
| 8263 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8264 | test -n "$OCAMLDEP" && break |
| 8265 | done |
| 8266 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8267 | for ac_prog in ocamldoc |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8268 | do |
| 8269 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8270 | set dummy $ac_prog; ac_word=$2 |
| 8271 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8272 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8273 | if test "${ac_cv_path_OCAMLDOC+set}" = set; then |
| 8274 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8275 | else |
| 8276 | case $OCAMLDOC in |
| 8277 | [\\/]* | ?:[\\/]*) |
| 8278 | ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. |
| 8279 | ;; |
| 8280 | *) |
| 8281 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8282 | for as_dir in $PATH |
| 8283 | do |
| 8284 | IFS=$as_save_IFS |
| 8285 | test -z "$as_dir" && as_dir=. |
| 8286 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8287 | 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] | 8288 | ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" |
| 8289 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8290 | break 2 |
| 8291 | fi |
| 8292 | done |
| 8293 | done |
| 8294 | IFS=$as_save_IFS |
| 8295 | |
| 8296 | ;; |
| 8297 | esac |
| 8298 | fi |
| 8299 | OCAMLDOC=$ac_cv_path_OCAMLDOC |
| 8300 | if test -n "$OCAMLDOC"; then |
| 8301 | { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 |
| 8302 | echo "${ECHO_T}$OCAMLDOC" >&6; } |
| 8303 | else |
| 8304 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8305 | echo "${ECHO_T}no" >&6; } |
| 8306 | fi |
| 8307 | |
| 8308 | |
| 8309 | test -n "$OCAMLDOC" && break |
| 8310 | done |
| 8311 | |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8312 | for ac_prog in gas as |
| 8313 | do |
| 8314 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8315 | set dummy $ac_prog; ac_word=$2 |
| 8316 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8317 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8318 | if test "${ac_cv_path_GAS+set}" = set; then |
| 8319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8320 | else |
| 8321 | case $GAS in |
| 8322 | [\\/]* | ?:[\\/]*) |
| 8323 | ac_cv_path_GAS="$GAS" # Let the user override the test with a path. |
| 8324 | ;; |
| 8325 | *) |
| 8326 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8327 | for as_dir in $PATH |
| 8328 | do |
| 8329 | IFS=$as_save_IFS |
| 8330 | test -z "$as_dir" && as_dir=. |
| 8331 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8332 | 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] | 8333 | ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" |
| 8334 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8335 | break 2 |
| 8336 | fi |
| 8337 | done |
| 8338 | done |
| 8339 | IFS=$as_save_IFS |
| 8340 | |
| 8341 | ;; |
| 8342 | esac |
| 8343 | fi |
| 8344 | GAS=$ac_cv_path_GAS |
| 8345 | if test -n "$GAS"; then |
| 8346 | { echo "$as_me:$LINENO: result: $GAS" >&5 |
| 8347 | echo "${ECHO_T}$GAS" >&6; } |
| 8348 | else |
| 8349 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8350 | echo "${ECHO_T}no" >&6; } |
| 8351 | fi |
| 8352 | |
| 8353 | |
| 8354 | test -n "$GAS" && break |
| 8355 | done |
| 8356 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8357 | |
| 8358 | { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 |
| 8359 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } |
| 8360 | if test "${llvm_cv_link_use_r+set}" = set; then |
| 8361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8362 | else |
| 8363 | ac_ext=c |
| 8364 | ac_cpp='$CPP $CPPFLAGS' |
| 8365 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8366 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8367 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8368 | |
| 8369 | oldcflags="$CFLAGS" |
| 8370 | CFLAGS="$CFLAGS -Wl,-R." |
| 8371 | cat >conftest.$ac_ext <<_ACEOF |
| 8372 | /* confdefs.h. */ |
| 8373 | _ACEOF |
| 8374 | cat confdefs.h >>conftest.$ac_ext |
| 8375 | cat >>conftest.$ac_ext <<_ACEOF |
| 8376 | /* end confdefs.h. */ |
| 8377 | |
| 8378 | int |
| 8379 | main () |
| 8380 | { |
| 8381 | int main() { return 0; } |
| 8382 | ; |
| 8383 | return 0; |
| 8384 | } |
| 8385 | _ACEOF |
| 8386 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8387 | if { (ac_try="$ac_link" |
| 8388 | case "(($ac_try" in |
| 8389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8390 | *) ac_try_echo=$ac_try;; |
| 8391 | esac |
| 8392 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8393 | (eval "$ac_link") 2>conftest.er1 |
| 8394 | ac_status=$? |
| 8395 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8396 | rm -f conftest.er1 |
| 8397 | cat conftest.err >&5 |
| 8398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8399 | (exit $ac_status); } && |
| 8400 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8401 | { (case "(($ac_try" in |
| 8402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8403 | *) ac_try_echo=$ac_try;; |
| 8404 | esac |
| 8405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8406 | (eval "$ac_try") 2>&5 |
| 8407 | ac_status=$? |
| 8408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8409 | (exit $ac_status); }; } && |
| 8410 | { ac_try='test -s conftest$ac_exeext' |
| 8411 | { (case "(($ac_try" in |
| 8412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8413 | *) ac_try_echo=$ac_try;; |
| 8414 | esac |
| 8415 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8416 | (eval "$ac_try") 2>&5 |
| 8417 | ac_status=$? |
| 8418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8419 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8420 | llvm_cv_link_use_r=yes |
| 8421 | else |
| 8422 | echo "$as_me: failed program was:" >&5 |
| 8423 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8424 | |
| 8425 | llvm_cv_link_use_r=no |
| 8426 | fi |
| 8427 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8428 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8429 | conftest$ac_exeext conftest.$ac_ext |
| 8430 | CFLAGS="$oldcflags" |
| 8431 | ac_ext=c |
| 8432 | ac_cpp='$CPP $CPPFLAGS' |
| 8433 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8434 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8435 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8436 | |
| 8437 | |
| 8438 | fi |
| 8439 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 |
| 8440 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } |
| 8441 | if test "$llvm_cv_link_use_r" = yes ; then |
| 8442 | |
| 8443 | cat >>confdefs.h <<\_ACEOF |
| 8444 | #define HAVE_LINK_R 1 |
| 8445 | _ACEOF |
| 8446 | |
| 8447 | fi |
| 8448 | |
| 8449 | |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8450 | { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5 |
| 8451 | echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; } |
| 8452 | if test "${llvm_cv_link_use_export_dynamic+set}" = set; then |
| 8453 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8454 | else |
| 8455 | ac_ext=c |
| 8456 | ac_cpp='$CPP $CPPFLAGS' |
| 8457 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8458 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8459 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8460 | |
| 8461 | oldcflags="$CFLAGS" |
| 8462 | CFLAGS="$CFLAGS -Wl,-export-dynamic" |
| 8463 | cat >conftest.$ac_ext <<_ACEOF |
| 8464 | /* confdefs.h. */ |
| 8465 | _ACEOF |
| 8466 | cat confdefs.h >>conftest.$ac_ext |
| 8467 | cat >>conftest.$ac_ext <<_ACEOF |
| 8468 | /* end confdefs.h. */ |
| 8469 | |
| 8470 | int |
| 8471 | main () |
| 8472 | { |
| 8473 | int main() { return 0; } |
| 8474 | ; |
| 8475 | return 0; |
| 8476 | } |
| 8477 | _ACEOF |
| 8478 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8479 | if { (ac_try="$ac_link" |
| 8480 | case "(($ac_try" in |
| 8481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8482 | *) ac_try_echo=$ac_try;; |
| 8483 | esac |
| 8484 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8485 | (eval "$ac_link") 2>conftest.er1 |
| 8486 | ac_status=$? |
| 8487 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8488 | rm -f conftest.er1 |
| 8489 | cat conftest.err >&5 |
| 8490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8491 | (exit $ac_status); } && |
| 8492 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8493 | { (case "(($ac_try" in |
| 8494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8495 | *) ac_try_echo=$ac_try;; |
| 8496 | esac |
| 8497 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8498 | (eval "$ac_try") 2>&5 |
| 8499 | ac_status=$? |
| 8500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8501 | (exit $ac_status); }; } && |
| 8502 | { ac_try='test -s conftest$ac_exeext' |
| 8503 | { (case "(($ac_try" in |
| 8504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8505 | *) ac_try_echo=$ac_try;; |
| 8506 | esac |
| 8507 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8508 | (eval "$ac_try") 2>&5 |
| 8509 | ac_status=$? |
| 8510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8511 | (exit $ac_status); }; }; then |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8512 | llvm_cv_link_use_export_dynamic=yes |
| 8513 | else |
| 8514 | echo "$as_me: failed program was:" >&5 |
| 8515 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8516 | |
| 8517 | llvm_cv_link_use_export_dynamic=no |
| 8518 | fi |
| 8519 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8520 | rm -f core conftest.err conftest.$ac_objext \ |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8521 | conftest$ac_exeext conftest.$ac_ext |
| 8522 | CFLAGS="$oldcflags" |
| 8523 | ac_ext=c |
| 8524 | ac_cpp='$CPP $CPPFLAGS' |
| 8525 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8526 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8527 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8528 | |
| 8529 | |
| 8530 | fi |
| 8531 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 |
| 8532 | echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } |
| 8533 | if test "$llvm_cv_link_use_export_dynamic" = yes ; then |
| 8534 | |
| 8535 | cat >>confdefs.h <<\_ACEOF |
| 8536 | #define HAVE_LINK_EXPORT_DYNAMIC 1 |
| 8537 | _ACEOF |
| 8538 | |
| 8539 | fi |
| 8540 | |
| 8541 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8542 | |
| 8543 | |
| 8544 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 8545 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
| 8546 | if test "${ac_cv_c_const+set}" = set; then |
| 8547 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8548 | else |
| 8549 | cat >conftest.$ac_ext <<_ACEOF |
| 8550 | /* confdefs.h. */ |
| 8551 | _ACEOF |
| 8552 | cat confdefs.h >>conftest.$ac_ext |
| 8553 | cat >>conftest.$ac_ext <<_ACEOF |
| 8554 | /* end confdefs.h. */ |
| 8555 | |
| 8556 | int |
| 8557 | main () |
| 8558 | { |
| 8559 | /* FIXME: Include the comments suggested by Paul. */ |
| 8560 | #ifndef __cplusplus |
| 8561 | /* Ultrix mips cc rejects this. */ |
| 8562 | typedef int charset[2]; |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8563 | const charset x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8564 | /* SunOS 4.1.1 cc rejects this. */ |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8565 | char const *const *ccp; |
| 8566 | char **p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8567 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 8568 | struct point {int x, y;}; |
| 8569 | static struct point const zero = {0,0}; |
| 8570 | /* AIX XL C 1.02.0.0 rejects this. |
| 8571 | It does not let you subtract one const X* pointer from another in |
| 8572 | an arm of an if-expression whose if-part is not a constant |
| 8573 | expression */ |
| 8574 | const char *g = "string"; |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8575 | ccp = &g + (g ? g-g : 0); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8576 | /* HPUX 7.0 cc rejects these. */ |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8577 | ++ccp; |
| 8578 | p = (char**) ccp; |
| 8579 | ccp = (char const *const *) p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8580 | { /* SCO 3.2v4 cc rejects this. */ |
| 8581 | char *t; |
| 8582 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 8583 | |
| 8584 | *t++ = 0; |
| 8585 | if (s) return 0; |
| 8586 | } |
| 8587 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 8588 | int x[] = {25, 17}; |
| 8589 | const int *foo = &x[0]; |
| 8590 | ++foo; |
| 8591 | } |
| 8592 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 8593 | typedef const int *iptr; |
| 8594 | iptr p = 0; |
| 8595 | ++p; |
| 8596 | } |
| 8597 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 8598 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 8599 | struct s { int j; const int *ap[3]; }; |
| 8600 | struct s *b; b->j = 5; |
| 8601 | } |
| 8602 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 8603 | const int foo = 10; |
| 8604 | if (!foo) return 0; |
| 8605 | } |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8606 | return !x[0] && !zero.x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8607 | #endif |
| 8608 | |
| 8609 | ; |
| 8610 | return 0; |
| 8611 | } |
| 8612 | _ACEOF |
| 8613 | rm -f conftest.$ac_objext |
| 8614 | if { (ac_try="$ac_compile" |
| 8615 | case "(($ac_try" in |
| 8616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8617 | *) ac_try_echo=$ac_try;; |
| 8618 | esac |
| 8619 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8620 | (eval "$ac_compile") 2>conftest.er1 |
| 8621 | ac_status=$? |
| 8622 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8623 | rm -f conftest.er1 |
| 8624 | cat conftest.err >&5 |
| 8625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8626 | (exit $ac_status); } && |
| 8627 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8628 | { (case "(($ac_try" in |
| 8629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8630 | *) ac_try_echo=$ac_try;; |
| 8631 | esac |
| 8632 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8633 | (eval "$ac_try") 2>&5 |
| 8634 | ac_status=$? |
| 8635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8636 | (exit $ac_status); }; } && |
| 8637 | { ac_try='test -s conftest.$ac_objext' |
| 8638 | { (case "(($ac_try" in |
| 8639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8640 | *) ac_try_echo=$ac_try;; |
| 8641 | esac |
| 8642 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8643 | (eval "$ac_try") 2>&5 |
| 8644 | ac_status=$? |
| 8645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8646 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8647 | ac_cv_c_const=yes |
| 8648 | else |
| 8649 | echo "$as_me: failed program was:" >&5 |
| 8650 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8651 | |
| 8652 | ac_cv_c_const=no |
| 8653 | fi |
| 8654 | |
| 8655 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8656 | fi |
| 8657 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 8658 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
| 8659 | if test $ac_cv_c_const = no; then |
| 8660 | |
| 8661 | cat >>confdefs.h <<\_ACEOF |
| 8662 | #define const |
| 8663 | _ACEOF |
| 8664 | |
| 8665 | fi |
| 8666 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8667 | |
| 8668 | |
| 8669 | |
| 8670 | |
| 8671 | |
| 8672 | ac_header_dirent=no |
| 8673 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 8674 | 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] | 8675 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 8676 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 8677 | 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] | 8678 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8679 | else |
| 8680 | cat >conftest.$ac_ext <<_ACEOF |
| 8681 | /* confdefs.h. */ |
| 8682 | _ACEOF |
| 8683 | cat confdefs.h >>conftest.$ac_ext |
| 8684 | cat >>conftest.$ac_ext <<_ACEOF |
| 8685 | /* end confdefs.h. */ |
| 8686 | #include <sys/types.h> |
| 8687 | #include <$ac_hdr> |
| 8688 | |
| 8689 | int |
| 8690 | main () |
| 8691 | { |
| 8692 | if ((DIR *) 0) |
| 8693 | return 0; |
| 8694 | ; |
| 8695 | return 0; |
| 8696 | } |
| 8697 | _ACEOF |
| 8698 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8699 | if { (ac_try="$ac_compile" |
| 8700 | case "(($ac_try" in |
| 8701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8702 | *) ac_try_echo=$ac_try;; |
| 8703 | esac |
| 8704 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8705 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8706 | ac_status=$? |
| 8707 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8708 | rm -f conftest.er1 |
| 8709 | cat conftest.err >&5 |
| 8710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8711 | (exit $ac_status); } && |
| 8712 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8713 | { (case "(($ac_try" in |
| 8714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8715 | *) ac_try_echo=$ac_try;; |
| 8716 | esac |
| 8717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8718 | (eval "$ac_try") 2>&5 |
| 8719 | ac_status=$? |
| 8720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8721 | (exit $ac_status); }; } && |
| 8722 | { ac_try='test -s conftest.$ac_objext' |
| 8723 | { (case "(($ac_try" in |
| 8724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8725 | *) ac_try_echo=$ac_try;; |
| 8726 | esac |
| 8727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8728 | (eval "$ac_try") 2>&5 |
| 8729 | ac_status=$? |
| 8730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8731 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8732 | eval "$as_ac_Header=yes" |
| 8733 | else |
| 8734 | echo "$as_me: failed program was:" >&5 |
| 8735 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8736 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8737 | eval "$as_ac_Header=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8738 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8739 | |
| 8740 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8741 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8742 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8743 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8744 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8745 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8746 | cat >>confdefs.h <<_ACEOF |
| 8747 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 8748 | _ACEOF |
| 8749 | |
| 8750 | ac_header_dirent=$ac_hdr; break |
| 8751 | fi |
| 8752 | |
| 8753 | done |
| 8754 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 8755 | if test $ac_header_dirent = dirent.h; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8756 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 8757 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8758 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8759 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8760 | else |
| 8761 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8762 | cat >conftest.$ac_ext <<_ACEOF |
| 8763 | /* confdefs.h. */ |
| 8764 | _ACEOF |
| 8765 | cat confdefs.h >>conftest.$ac_ext |
| 8766 | cat >>conftest.$ac_ext <<_ACEOF |
| 8767 | /* end confdefs.h. */ |
| 8768 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8769 | /* Override any GCC internal prototype to avoid an error. |
| 8770 | Use char because int might match the return type of a GCC |
| 8771 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8772 | #ifdef __cplusplus |
| 8773 | extern "C" |
| 8774 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8775 | char opendir (); |
| 8776 | int |
| 8777 | main () |
| 8778 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8779 | return opendir (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8780 | ; |
| 8781 | return 0; |
| 8782 | } |
| 8783 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8784 | for ac_lib in '' dir; do |
| 8785 | if test -z "$ac_lib"; then |
| 8786 | ac_res="none required" |
| 8787 | else |
| 8788 | ac_res=-l$ac_lib |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8789 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8790 | fi |
| 8791 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8792 | if { (ac_try="$ac_link" |
| 8793 | case "(($ac_try" in |
| 8794 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8795 | *) ac_try_echo=$ac_try;; |
| 8796 | esac |
| 8797 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8798 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8799 | ac_status=$? |
| 8800 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8801 | rm -f conftest.er1 |
| 8802 | cat conftest.err >&5 |
| 8803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8804 | (exit $ac_status); } && |
| 8805 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8806 | { (case "(($ac_try" in |
| 8807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8808 | *) ac_try_echo=$ac_try;; |
| 8809 | esac |
| 8810 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8811 | (eval "$ac_try") 2>&5 |
| 8812 | ac_status=$? |
| 8813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8814 | (exit $ac_status); }; } && |
| 8815 | { ac_try='test -s conftest$ac_exeext' |
| 8816 | { (case "(($ac_try" in |
| 8817 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8818 | *) ac_try_echo=$ac_try;; |
| 8819 | esac |
| 8820 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8821 | (eval "$ac_try") 2>&5 |
| 8822 | ac_status=$? |
| 8823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8824 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8825 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8826 | else |
| 8827 | echo "$as_me: failed program was:" >&5 |
| 8828 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8829 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8830 | |
| 8831 | fi |
| 8832 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8833 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8834 | conftest$ac_exeext |
| 8835 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8836 | break |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8837 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8838 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8839 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8840 | : |
| 8841 | else |
| 8842 | ac_cv_search_opendir=no |
| 8843 | fi |
| 8844 | rm conftest.$ac_ext |
| 8845 | LIBS=$ac_func_search_save_LIBS |
| 8846 | fi |
| 8847 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 8848 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 8849 | ac_res=$ac_cv_search_opendir |
| 8850 | if test "$ac_res" != no; then |
| 8851 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8852 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8853 | fi |
| 8854 | |
| 8855 | else |
| 8856 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 8857 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 8858 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8859 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8860 | else |
| 8861 | ac_func_search_save_LIBS=$LIBS |
| 8862 | cat >conftest.$ac_ext <<_ACEOF |
| 8863 | /* confdefs.h. */ |
| 8864 | _ACEOF |
| 8865 | cat confdefs.h >>conftest.$ac_ext |
| 8866 | cat >>conftest.$ac_ext <<_ACEOF |
| 8867 | /* end confdefs.h. */ |
| 8868 | |
| 8869 | /* Override any GCC internal prototype to avoid an error. |
| 8870 | Use char because int might match the return type of a GCC |
| 8871 | builtin and then its argument prototype would still apply. */ |
| 8872 | #ifdef __cplusplus |
| 8873 | extern "C" |
| 8874 | #endif |
| 8875 | char opendir (); |
| 8876 | int |
| 8877 | main () |
| 8878 | { |
| 8879 | return opendir (); |
| 8880 | ; |
| 8881 | return 0; |
| 8882 | } |
| 8883 | _ACEOF |
| 8884 | for ac_lib in '' x; do |
| 8885 | if test -z "$ac_lib"; then |
| 8886 | ac_res="none required" |
| 8887 | else |
| 8888 | ac_res=-l$ac_lib |
| 8889 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 8890 | fi |
| 8891 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8892 | if { (ac_try="$ac_link" |
| 8893 | case "(($ac_try" in |
| 8894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8895 | *) ac_try_echo=$ac_try;; |
| 8896 | esac |
| 8897 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8898 | (eval "$ac_link") 2>conftest.er1 |
| 8899 | ac_status=$? |
| 8900 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8901 | rm -f conftest.er1 |
| 8902 | cat conftest.err >&5 |
| 8903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8904 | (exit $ac_status); } && |
| 8905 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8906 | { (case "(($ac_try" in |
| 8907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8908 | *) ac_try_echo=$ac_try;; |
| 8909 | esac |
| 8910 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8911 | (eval "$ac_try") 2>&5 |
| 8912 | ac_status=$? |
| 8913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8914 | (exit $ac_status); }; } && |
| 8915 | { ac_try='test -s conftest$ac_exeext' |
| 8916 | { (case "(($ac_try" in |
| 8917 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8918 | *) ac_try_echo=$ac_try;; |
| 8919 | esac |
| 8920 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8921 | (eval "$ac_try") 2>&5 |
| 8922 | ac_status=$? |
| 8923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8924 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8925 | ac_cv_search_opendir=$ac_res |
| 8926 | else |
| 8927 | echo "$as_me: failed program was:" >&5 |
| 8928 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8929 | |
| 8930 | |
| 8931 | fi |
| 8932 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8933 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8934 | conftest$ac_exeext |
| 8935 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8936 | break |
| 8937 | fi |
| 8938 | done |
| 8939 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8940 | : |
| 8941 | else |
| 8942 | ac_cv_search_opendir=no |
| 8943 | fi |
| 8944 | rm conftest.$ac_ext |
| 8945 | LIBS=$ac_func_search_save_LIBS |
| 8946 | fi |
| 8947 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 8948 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 8949 | ac_res=$ac_cv_search_opendir |
| 8950 | if test "$ac_res" != no; then |
| 8951 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 8952 | |
| 8953 | fi |
| 8954 | |
| 8955 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8956 | |
| 8957 | |
| 8958 | for ac_header in dlfcn.h |
| 8959 | do |
| 8960 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8961 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8962 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8963 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8964 | 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] | 8965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8966 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8967 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8968 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8969 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8970 | else |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8971 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8972 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8973 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8974 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8975 | /* confdefs.h. */ |
| 8976 | _ACEOF |
| 8977 | cat confdefs.h >>conftest.$ac_ext |
| 8978 | cat >>conftest.$ac_ext <<_ACEOF |
| 8979 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8980 | $ac_includes_default |
| 8981 | #include <$ac_header> |
| 8982 | _ACEOF |
| 8983 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8984 | if { (ac_try="$ac_compile" |
| 8985 | case "(($ac_try" in |
| 8986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8987 | *) ac_try_echo=$ac_try;; |
| 8988 | esac |
| 8989 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8990 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8991 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8992 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8993 | rm -f conftest.er1 |
| 8994 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8996 | (exit $ac_status); } && |
| 8997 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8998 | { (case "(($ac_try" in |
| 8999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9000 | *) ac_try_echo=$ac_try;; |
| 9001 | esac |
| 9002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9003 | (eval "$ac_try") 2>&5 |
| 9004 | ac_status=$? |
| 9005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9006 | (exit $ac_status); }; } && |
| 9007 | { ac_try='test -s conftest.$ac_objext' |
| 9008 | { (case "(($ac_try" in |
| 9009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9010 | *) ac_try_echo=$ac_try;; |
| 9011 | esac |
| 9012 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9013 | (eval "$ac_try") 2>&5 |
| 9014 | ac_status=$? |
| 9015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9016 | (exit $ac_status); }; }; then |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9017 | ac_header_compiler=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9018 | else |
| 9019 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 9020 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9021 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9022 | ac_header_compiler=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9023 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9024 | |
| 9025 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9026 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9027 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9028 | |
| 9029 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9030 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9031 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9032 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9033 | /* confdefs.h. */ |
| 9034 | _ACEOF |
| 9035 | cat confdefs.h >>conftest.$ac_ext |
| 9036 | cat >>conftest.$ac_ext <<_ACEOF |
| 9037 | /* end confdefs.h. */ |
| 9038 | #include <$ac_header> |
| 9039 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9040 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9041 | case "(($ac_try" in |
| 9042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9043 | *) ac_try_echo=$ac_try;; |
| 9044 | esac |
| 9045 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9046 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9047 | ac_status=$? |
| 9048 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9049 | rm -f conftest.er1 |
| 9050 | cat conftest.err >&5 |
| 9051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9052 | (exit $ac_status); } >/dev/null; then |
| 9053 | if test -s conftest.err; then |
| 9054 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9055 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9056 | else |
| 9057 | ac_cpp_err= |
| 9058 | fi |
| 9059 | else |
| 9060 | ac_cpp_err=yes |
| 9061 | fi |
| 9062 | if test -z "$ac_cpp_err"; then |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9063 | ac_header_preproc=yes |
| 9064 | else |
| 9065 | echo "$as_me: failed program was:" >&5 |
| 9066 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9067 | |
| 9068 | ac_header_preproc=no |
| 9069 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9070 | |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9071 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9072 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9073 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9074 | |
| 9075 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9076 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9077 | yes:no: ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9078 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9079 | 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] | 9080 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9081 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9082 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9083 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9084 | no:yes:* ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9085 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9086 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9087 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9088 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9089 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9090 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9091 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9092 | 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] | 9093 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9094 | 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] | 9095 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9096 | 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] | 9097 | ( cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9098 | ## ----------------------------------- ## |
| 9099 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 9100 | ## ----------------------------------- ## |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9101 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9102 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9103 | ;; |
| 9104 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9105 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9106 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9107 | 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] | 9108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9109 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 9110 | eval "$as_ac_Header=\$ac_header_preproc" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9111 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9112 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9113 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9114 | echo "${ECHO_T}$ac_res" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 9115 | |
| 9116 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9117 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9118 | cat >>confdefs.h <<_ACEOF |
| 9119 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9120 | _ACEOF |
| 9121 | |
| 9122 | fi |
| 9123 | |
| 9124 | done |
| 9125 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9126 | # Check whether --enable-ltdl-install was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9127 | if test "${enable_ltdl_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9128 | enableval=$enable_ltdl_install; |
| 9129 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9130 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9131 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9132 | |
| 9133 | |
| 9134 | if test x"${enable_ltdl_install-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9135 | INSTALL_LTDL_TRUE= |
| 9136 | INSTALL_LTDL_FALSE='#' |
| 9137 | else |
| 9138 | INSTALL_LTDL_TRUE='#' |
| 9139 | INSTALL_LTDL_FALSE= |
| 9140 | fi |
| 9141 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9142 | |
| 9143 | |
| 9144 | if test x"${enable_ltdl_convenience-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9145 | CONVENIENCE_LTDL_TRUE= |
| 9146 | CONVENIENCE_LTDL_FALSE='#' |
| 9147 | else |
| 9148 | CONVENIENCE_LTDL_TRUE='#' |
| 9149 | CONVENIENCE_LTDL_FALSE= |
| 9150 | fi |
| 9151 | |
| 9152 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9153 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 9154 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9155 | library_names_spec= |
| 9156 | libname_spec='lib$name' |
| 9157 | soname_spec= |
| 9158 | shrext_cmds=".so" |
| 9159 | postinstall_cmds= |
| 9160 | postuninstall_cmds= |
| 9161 | finish_cmds= |
| 9162 | finish_eval= |
| 9163 | shlibpath_var= |
| 9164 | shlibpath_overrides_runpath=unknown |
| 9165 | version_type=none |
| 9166 | dynamic_linker="$host_os ld.so" |
| 9167 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 9168 | if test "$GCC" = yes; then |
| 9169 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9170 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 9171 | # if the path contains ";" then we assume it to be the separator |
| 9172 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 9173 | # assumed that no part of a normal pathname contains ";" but that should |
| 9174 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 9175 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9176 | else |
| 9177 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9178 | fi |
| 9179 | else |
| 9180 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 9181 | fi |
| 9182 | need_lib_prefix=unknown |
| 9183 | hardcode_into_libs=no |
| 9184 | |
| 9185 | # when you set need_version to no, make sure it does not cause -set_version |
| 9186 | # flags to be left without arguments |
| 9187 | need_version=unknown |
| 9188 | |
| 9189 | case $host_os in |
| 9190 | aix3*) |
| 9191 | version_type=linux |
| 9192 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 9193 | shlibpath_var=LIBPATH |
| 9194 | |
| 9195 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 9196 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9197 | ;; |
| 9198 | |
| 9199 | aix4* | aix5*) |
| 9200 | version_type=linux |
| 9201 | need_lib_prefix=no |
| 9202 | need_version=no |
| 9203 | hardcode_into_libs=yes |
| 9204 | if test "$host_cpu" = ia64; then |
| 9205 | # AIX 5 supports IA64 |
| 9206 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 9207 | shlibpath_var=LD_LIBRARY_PATH |
| 9208 | else |
| 9209 | # With GCC up to 2.95.x, collect2 would create an import file |
| 9210 | # for dependence libraries. The import file would start with |
| 9211 | # the line `#! .'. This would cause the generated library to |
| 9212 | # depend on `.', always an invalid library. This was fixed in |
| 9213 | # development snapshots of GCC prior to 3.0. |
| 9214 | case $host_os in |
| 9215 | aix4 | aix4.[01] | aix4.[01].*) |
| 9216 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 9217 | echo ' yes ' |
| 9218 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 9219 | : |
| 9220 | else |
| 9221 | can_build_shared=no |
| 9222 | fi |
| 9223 | ;; |
| 9224 | esac |
| 9225 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 9226 | # soname into executable. Probably we can add versioning support to |
| 9227 | # collect2, so additional links can be useful in future. |
| 9228 | if test "$aix_use_runtimelinking" = yes; then |
| 9229 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 9230 | # instead of lib<name>.a to let people know that these are not |
| 9231 | # typical AIX shared libraries. |
| 9232 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9233 | else |
| 9234 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 9235 | # and later when we are not doing run time linking. |
| 9236 | library_names_spec='${libname}${release}.a $libname.a' |
| 9237 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9238 | fi |
| 9239 | shlibpath_var=LIBPATH |
| 9240 | fi |
| 9241 | ;; |
| 9242 | |
| 9243 | amigaos*) |
| 9244 | library_names_spec='$libname.ixlibrary $libname.a' |
| 9245 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 9246 | 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' |
| 9247 | ;; |
| 9248 | |
| 9249 | beos*) |
| 9250 | library_names_spec='${libname}${shared_ext}' |
| 9251 | dynamic_linker="$host_os ld.so" |
| 9252 | shlibpath_var=LIBRARY_PATH |
| 9253 | ;; |
| 9254 | |
| 9255 | bsdi[45]*) |
| 9256 | version_type=linux |
| 9257 | need_version=no |
| 9258 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9259 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9260 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 9261 | shlibpath_var=LD_LIBRARY_PATH |
| 9262 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 9263 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 9264 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 9265 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 9266 | # libtool to hard-code these into programs |
| 9267 | ;; |
| 9268 | |
| 9269 | cygwin* | mingw* | pw32*) |
| 9270 | version_type=windows |
| 9271 | shrext_cmds=".dll" |
| 9272 | need_version=no |
| 9273 | need_lib_prefix=no |
| 9274 | |
| 9275 | case $GCC,$host_os in |
| 9276 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 9277 | library_names_spec='$libname.dll.a' |
| 9278 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 9279 | postinstall_cmds='base_file=`basename \${file}`~ |
| 9280 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 9281 | dldir=$destdir/`dirname \$dlpath`~ |
| 9282 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9283 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 9284 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9285 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 9286 | dlpath=$dir/\$dldll~ |
| 9287 | $rm \$dlpath' |
| 9288 | shlibpath_overrides_runpath=yes |
| 9289 | |
| 9290 | case $host_os in |
| 9291 | cygwin*) |
| 9292 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 9293 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9294 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 9295 | ;; |
| 9296 | mingw*) |
| 9297 | # MinGW DLLs use traditional 'lib' prefix |
| 9298 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9299 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9300 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 9301 | # It is most probably a Windows format PATH printed by |
| 9302 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 9303 | # path with ; separators, and with drive letters. We can handle the |
| 9304 | # drive letters (cygwin fileutils understands them), so leave them, |
| 9305 | # especially as we might pass files found there to a mingw objdump, |
| 9306 | # which wouldn't understand a cygwinified path. Ahh. |
| 9307 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9308 | else |
| 9309 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9310 | fi |
| 9311 | ;; |
| 9312 | pw32*) |
| 9313 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9314 | 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] | 9315 | ;; |
| 9316 | esac |
| 9317 | ;; |
| 9318 | |
| 9319 | *) |
| 9320 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 9321 | ;; |
| 9322 | esac |
| 9323 | dynamic_linker='Win32 ld.exe' |
| 9324 | # FIXME: first we should search . and the directory the executable is in |
| 9325 | shlibpath_var=PATH |
| 9326 | ;; |
| 9327 | |
| 9328 | darwin* | rhapsody*) |
| 9329 | dynamic_linker="$host_os dyld" |
| 9330 | version_type=darwin |
| 9331 | need_lib_prefix=no |
| 9332 | need_version=no |
| 9333 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 9334 | soname_spec='${libname}${release}${major}$shared_ext' |
| 9335 | shlibpath_overrides_runpath=yes |
| 9336 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 9337 | shrext_cmds='.dylib' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9338 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 9339 | if test "$GCC" = yes; then |
| 9340 | 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"` |
| 9341 | else |
| 9342 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 9343 | fi |
| 9344 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 9345 | ;; |
| 9346 | |
| 9347 | dgux*) |
| 9348 | version_type=linux |
| 9349 | need_lib_prefix=no |
| 9350 | need_version=no |
| 9351 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 9352 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9353 | shlibpath_var=LD_LIBRARY_PATH |
| 9354 | ;; |
| 9355 | |
| 9356 | freebsd1*) |
| 9357 | dynamic_linker=no |
| 9358 | ;; |
| 9359 | |
| 9360 | kfreebsd*-gnu) |
| 9361 | version_type=linux |
| 9362 | need_lib_prefix=no |
| 9363 | need_version=no |
| 9364 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9365 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9366 | shlibpath_var=LD_LIBRARY_PATH |
| 9367 | shlibpath_overrides_runpath=no |
| 9368 | hardcode_into_libs=yes |
| 9369 | dynamic_linker='GNU ld.so' |
| 9370 | ;; |
| 9371 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9372 | freebsd* | dragonfly*) |
| 9373 | # DragonFly does not have aout. When/if they implement a new |
| 9374 | # versioning mechanism, adjust this. |
| 9375 | if test -x /usr/bin/objformat; then |
| 9376 | objformat=`/usr/bin/objformat` |
| 9377 | else |
| 9378 | case $host_os in |
| 9379 | freebsd[123]*) objformat=aout ;; |
| 9380 | *) objformat=elf ;; |
| 9381 | esac |
| 9382 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9383 | version_type=freebsd-$objformat |
| 9384 | case $version_type in |
| 9385 | freebsd-elf*) |
| 9386 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9387 | need_version=no |
| 9388 | need_lib_prefix=no |
| 9389 | ;; |
| 9390 | freebsd-*) |
| 9391 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 9392 | need_version=yes |
| 9393 | ;; |
| 9394 | esac |
| 9395 | shlibpath_var=LD_LIBRARY_PATH |
| 9396 | case $host_os in |
| 9397 | freebsd2*) |
| 9398 | shlibpath_overrides_runpath=yes |
| 9399 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9400 | freebsd3.[01]* | freebsdelf3.[01]*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9401 | shlibpath_overrides_runpath=yes |
| 9402 | hardcode_into_libs=yes |
| 9403 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9404 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 9405 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9406 | shlibpath_overrides_runpath=no |
| 9407 | hardcode_into_libs=yes |
| 9408 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9409 | freebsd*) # from 4.6 on |
| 9410 | shlibpath_overrides_runpath=yes |
| 9411 | hardcode_into_libs=yes |
| 9412 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9413 | esac |
| 9414 | ;; |
| 9415 | |
| 9416 | gnu*) |
| 9417 | version_type=linux |
| 9418 | need_lib_prefix=no |
| 9419 | need_version=no |
| 9420 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 9421 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9422 | shlibpath_var=LD_LIBRARY_PATH |
| 9423 | hardcode_into_libs=yes |
| 9424 | ;; |
| 9425 | |
| 9426 | hpux9* | hpux10* | hpux11*) |
| 9427 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 9428 | # link against other versions. |
| 9429 | version_type=sunos |
| 9430 | need_lib_prefix=no |
| 9431 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9432 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9433 | ia64*) |
| 9434 | shrext_cmds='.so' |
| 9435 | hardcode_into_libs=yes |
| 9436 | dynamic_linker="$host_os dld.so" |
| 9437 | shlibpath_var=LD_LIBRARY_PATH |
| 9438 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9439 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9440 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9441 | if test "X$HPUX_IA64_MODE" = X32; then |
| 9442 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 9443 | else |
| 9444 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 9445 | fi |
| 9446 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9447 | ;; |
| 9448 | hppa*64*) |
| 9449 | shrext_cmds='.sl' |
| 9450 | hardcode_into_libs=yes |
| 9451 | dynamic_linker="$host_os dld.sl" |
| 9452 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 9453 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9454 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9455 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9456 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 9457 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9458 | ;; |
| 9459 | *) |
| 9460 | shrext_cmds='.sl' |
| 9461 | dynamic_linker="$host_os dld.sl" |
| 9462 | shlibpath_var=SHLIB_PATH |
| 9463 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 9464 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9465 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9466 | ;; |
| 9467 | esac |
| 9468 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 9469 | postinstall_cmds='chmod 555 $lib' |
| 9470 | ;; |
| 9471 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9472 | interix3*) |
| 9473 | version_type=linux |
| 9474 | need_lib_prefix=no |
| 9475 | need_version=no |
| 9476 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9477 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9478 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 9479 | shlibpath_var=LD_LIBRARY_PATH |
| 9480 | shlibpath_overrides_runpath=no |
| 9481 | hardcode_into_libs=yes |
| 9482 | ;; |
| 9483 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9484 | irix5* | irix6* | nonstopux*) |
| 9485 | case $host_os in |
| 9486 | nonstopux*) version_type=nonstopux ;; |
| 9487 | *) |
| 9488 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 9489 | version_type=linux |
| 9490 | else |
| 9491 | version_type=irix |
| 9492 | fi ;; |
| 9493 | esac |
| 9494 | need_lib_prefix=no |
| 9495 | need_version=no |
| 9496 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9497 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9498 | case $host_os in |
| 9499 | irix5* | nonstopux*) |
| 9500 | libsuff= shlibsuff= |
| 9501 | ;; |
| 9502 | *) |
| 9503 | case $LD in # libtool.m4 will add one of these switches to LD |
| 9504 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 9505 | libsuff= shlibsuff= libmagic=32-bit;; |
| 9506 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 9507 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 9508 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 9509 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 9510 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 9511 | esac |
| 9512 | ;; |
| 9513 | esac |
| 9514 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 9515 | shlibpath_overrides_runpath=no |
| 9516 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 9517 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 9518 | hardcode_into_libs=yes |
| 9519 | ;; |
| 9520 | |
| 9521 | # No shared lib support for Linux oldld, aout, or coff. |
| 9522 | linux*oldld* | linux*aout* | linux*coff*) |
| 9523 | dynamic_linker=no |
| 9524 | ;; |
| 9525 | |
| 9526 | # This must be Linux ELF. |
| 9527 | linux*) |
| 9528 | version_type=linux |
| 9529 | need_lib_prefix=no |
| 9530 | need_version=no |
| 9531 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9532 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9533 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 9534 | shlibpath_var=LD_LIBRARY_PATH |
| 9535 | shlibpath_overrides_runpath=no |
| 9536 | # This implies no fast_install, which is unacceptable. |
| 9537 | # Some rework will be needed to allow for fast_install |
| 9538 | # before this can be enabled. |
| 9539 | hardcode_into_libs=yes |
| 9540 | |
| 9541 | # Append ld.so.conf contents to the search path |
| 9542 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9543 | 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] | 9544 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 9545 | fi |
| 9546 | |
| 9547 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 9548 | # powerpc, because MkLinux only supported shared libraries with the |
| 9549 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 9550 | # most powerpc-linux boxes support dynamic linking these days and |
| 9551 | # people can always --disable-shared, the test was removed, and we |
| 9552 | # assume the GNU/Linux dynamic linker is in use. |
| 9553 | dynamic_linker='GNU/Linux ld.so' |
| 9554 | ;; |
| 9555 | |
| 9556 | knetbsd*-gnu) |
| 9557 | version_type=linux |
| 9558 | need_lib_prefix=no |
| 9559 | need_version=no |
| 9560 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9561 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9562 | shlibpath_var=LD_LIBRARY_PATH |
| 9563 | shlibpath_overrides_runpath=no |
| 9564 | hardcode_into_libs=yes |
| 9565 | dynamic_linker='GNU ld.so' |
| 9566 | ;; |
| 9567 | |
| 9568 | netbsd*) |
| 9569 | version_type=sunos |
| 9570 | need_lib_prefix=no |
| 9571 | need_version=no |
| 9572 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 9573 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9574 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9575 | dynamic_linker='NetBSD (a.out) ld.so' |
| 9576 | else |
| 9577 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9578 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9579 | dynamic_linker='NetBSD ld.elf_so' |
| 9580 | fi |
| 9581 | shlibpath_var=LD_LIBRARY_PATH |
| 9582 | shlibpath_overrides_runpath=yes |
| 9583 | hardcode_into_libs=yes |
| 9584 | ;; |
| 9585 | |
| 9586 | newsos6) |
| 9587 | version_type=linux |
| 9588 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9589 | shlibpath_var=LD_LIBRARY_PATH |
| 9590 | shlibpath_overrides_runpath=yes |
| 9591 | ;; |
| 9592 | |
| 9593 | nto-qnx*) |
| 9594 | version_type=linux |
| 9595 | need_lib_prefix=no |
| 9596 | need_version=no |
| 9597 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9598 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9599 | shlibpath_var=LD_LIBRARY_PATH |
| 9600 | shlibpath_overrides_runpath=yes |
| 9601 | ;; |
| 9602 | |
| 9603 | openbsd*) |
| 9604 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9605 | sys_lib_dlsearch_path_spec="/usr/lib" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9606 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9607 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 9608 | case $host_os in |
| 9609 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 9610 | *) need_version=no ;; |
| 9611 | esac |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9612 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9613 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9614 | shlibpath_var=LD_LIBRARY_PATH |
| 9615 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 9616 | case $host_os in |
| 9617 | openbsd2.[89] | openbsd2.[89].*) |
| 9618 | shlibpath_overrides_runpath=no |
| 9619 | ;; |
| 9620 | *) |
| 9621 | shlibpath_overrides_runpath=yes |
| 9622 | ;; |
| 9623 | esac |
| 9624 | else |
| 9625 | shlibpath_overrides_runpath=yes |
| 9626 | fi |
| 9627 | ;; |
| 9628 | |
| 9629 | os2*) |
| 9630 | libname_spec='$name' |
| 9631 | shrext_cmds=".dll" |
| 9632 | need_lib_prefix=no |
| 9633 | library_names_spec='$libname${shared_ext} $libname.a' |
| 9634 | dynamic_linker='OS/2 ld.exe' |
| 9635 | shlibpath_var=LIBPATH |
| 9636 | ;; |
| 9637 | |
| 9638 | osf3* | osf4* | osf5*) |
| 9639 | version_type=osf |
| 9640 | need_lib_prefix=no |
| 9641 | need_version=no |
| 9642 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9643 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9644 | shlibpath_var=LD_LIBRARY_PATH |
| 9645 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 9646 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 9647 | ;; |
| 9648 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9649 | solaris*) |
| 9650 | version_type=linux |
| 9651 | need_lib_prefix=no |
| 9652 | need_version=no |
| 9653 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9654 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9655 | shlibpath_var=LD_LIBRARY_PATH |
| 9656 | shlibpath_overrides_runpath=yes |
| 9657 | hardcode_into_libs=yes |
| 9658 | # ldd complains unless libraries are executable |
| 9659 | postinstall_cmds='chmod +x $lib' |
| 9660 | ;; |
| 9661 | |
| 9662 | sunos4*) |
| 9663 | version_type=sunos |
| 9664 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9665 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 9666 | shlibpath_var=LD_LIBRARY_PATH |
| 9667 | shlibpath_overrides_runpath=yes |
| 9668 | if test "$with_gnu_ld" = yes; then |
| 9669 | need_lib_prefix=no |
| 9670 | fi |
| 9671 | need_version=yes |
| 9672 | ;; |
| 9673 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9674 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9675 | version_type=linux |
| 9676 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9677 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9678 | shlibpath_var=LD_LIBRARY_PATH |
| 9679 | case $host_vendor in |
| 9680 | sni) |
| 9681 | shlibpath_overrides_runpath=no |
| 9682 | need_lib_prefix=no |
| 9683 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 9684 | runpath_var=LD_RUN_PATH |
| 9685 | ;; |
| 9686 | siemens) |
| 9687 | need_lib_prefix=no |
| 9688 | ;; |
| 9689 | motorola) |
| 9690 | need_lib_prefix=no |
| 9691 | need_version=no |
| 9692 | shlibpath_overrides_runpath=no |
| 9693 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 9694 | ;; |
| 9695 | esac |
| 9696 | ;; |
| 9697 | |
| 9698 | sysv4*MP*) |
| 9699 | if test -d /usr/nec ;then |
| 9700 | version_type=linux |
| 9701 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 9702 | soname_spec='$libname${shared_ext}.$major' |
| 9703 | shlibpath_var=LD_LIBRARY_PATH |
| 9704 | fi |
| 9705 | ;; |
| 9706 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9707 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 9708 | version_type=freebsd-elf |
| 9709 | need_lib_prefix=no |
| 9710 | need_version=no |
| 9711 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9712 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9713 | shlibpath_var=LD_LIBRARY_PATH |
| 9714 | hardcode_into_libs=yes |
| 9715 | if test "$with_gnu_ld" = yes; then |
| 9716 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 9717 | shlibpath_overrides_runpath=no |
| 9718 | else |
| 9719 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 9720 | shlibpath_overrides_runpath=yes |
| 9721 | case $host_os in |
| 9722 | sco3.2v5*) |
| 9723 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 9724 | ;; |
| 9725 | esac |
| 9726 | fi |
| 9727 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 9728 | ;; |
| 9729 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9730 | uts4*) |
| 9731 | version_type=linux |
| 9732 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9733 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9734 | shlibpath_var=LD_LIBRARY_PATH |
| 9735 | ;; |
| 9736 | |
| 9737 | *) |
| 9738 | dynamic_linker=no |
| 9739 | ;; |
| 9740 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9741 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 9742 | echo "${ECHO_T}$dynamic_linker" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9743 | test "$dynamic_linker" = no && can_build_shared=no |
| 9744 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9745 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 9746 | if test "$GCC" = yes; then |
| 9747 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 9748 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9749 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9750 | |
| 9751 | { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 |
| 9752 | 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] | 9753 | if test "${libltdl_cv_shlibext+set}" = set; then |
| 9754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9755 | else |
| 9756 | |
| 9757 | module=yes |
| 9758 | eval libltdl_cv_shlibext=$shrext_cmds |
| 9759 | |
| 9760 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9761 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 |
| 9762 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9763 | if test -n "$libltdl_cv_shlibext"; then |
| 9764 | |
| 9765 | cat >>confdefs.h <<_ACEOF |
| 9766 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" |
| 9767 | _ACEOF |
| 9768 | |
| 9769 | fi |
| 9770 | |
| 9771 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9772 | { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 |
| 9773 | 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] | 9774 | if test "${libltdl_cv_shlibpath_var+set}" = set; then |
| 9775 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9776 | else |
| 9777 | libltdl_cv_shlibpath_var="$shlibpath_var" |
| 9778 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9779 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 |
| 9780 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9781 | if test -n "$libltdl_cv_shlibpath_var"; then |
| 9782 | |
| 9783 | cat >>confdefs.h <<_ACEOF |
| 9784 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" |
| 9785 | _ACEOF |
| 9786 | |
| 9787 | fi |
| 9788 | |
| 9789 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9790 | { echo "$as_me:$LINENO: checking for the default library search path" >&5 |
| 9791 | 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] | 9792 | if test "${libltdl_cv_sys_search_path+set}" = set; then |
| 9793 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9794 | else |
| 9795 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" |
| 9796 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9797 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 |
| 9798 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9799 | if test -n "$libltdl_cv_sys_search_path"; then |
| 9800 | sys_search_path= |
| 9801 | for dir in $libltdl_cv_sys_search_path; do |
| 9802 | if test -z "$sys_search_path"; then |
| 9803 | sys_search_path="$dir" |
| 9804 | else |
| 9805 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" |
| 9806 | fi |
| 9807 | done |
| 9808 | |
| 9809 | cat >>confdefs.h <<_ACEOF |
| 9810 | #define LTDL_SYSSEARCHPATH "$sys_search_path" |
| 9811 | _ACEOF |
| 9812 | |
| 9813 | fi |
| 9814 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9815 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 9816 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9817 | if test "${libltdl_cv_objdir+set}" = set; then |
| 9818 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9819 | else |
| 9820 | libltdl_cv_objdir="$objdir" |
| 9821 | if test -n "$objdir"; then |
| 9822 | : |
| 9823 | else |
| 9824 | rm -f .libs 2>/dev/null |
| 9825 | mkdir .libs 2>/dev/null |
| 9826 | if test -d .libs; then |
| 9827 | libltdl_cv_objdir=.libs |
| 9828 | else |
| 9829 | # MS-DOS does not allow filenames that begin with a dot. |
| 9830 | libltdl_cv_objdir=_libs |
| 9831 | fi |
| 9832 | rmdir .libs 2>/dev/null |
| 9833 | fi |
| 9834 | |
| 9835 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9836 | { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 |
| 9837 | echo "${ECHO_T}$libltdl_cv_objdir" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9838 | |
| 9839 | cat >>confdefs.h <<_ACEOF |
| 9840 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" |
| 9841 | _ACEOF |
| 9842 | |
| 9843 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9844 | |
| 9845 | |
| 9846 | |
| 9847 | |
| 9848 | # 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] | 9849 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 9850 | 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] | 9851 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 9852 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9853 | else |
| 9854 | |
| 9855 | # These are sane defaults that work on at least a few old systems. |
| 9856 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 9857 | |
| 9858 | # Character class describing NM global symbol codes. |
| 9859 | symcode='[BCDEGRST]' |
| 9860 | |
| 9861 | # Regexp to match symbols that can be accessed directly from C. |
| 9862 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 9863 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9864 | # Transform an extracted symbol line into a proper C declaration |
| 9865 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 9866 | |
| 9867 | # Transform an extracted symbol line into symbol name and symbol address |
| 9868 | 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'" |
| 9869 | |
| 9870 | # Define system-specific variables. |
| 9871 | case $host_os in |
| 9872 | aix*) |
| 9873 | symcode='[BCDT]' |
| 9874 | ;; |
| 9875 | cygwin* | mingw* | pw32*) |
| 9876 | symcode='[ABCDGISTW]' |
| 9877 | ;; |
| 9878 | hpux*) # Its linker distinguishes data from code symbols |
| 9879 | if test "$host_cpu" = ia64; then |
| 9880 | symcode='[ABCDEGRST]' |
| 9881 | fi |
| 9882 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 9883 | 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'" |
| 9884 | ;; |
| 9885 | linux*) |
| 9886 | if test "$host_cpu" = ia64; then |
| 9887 | symcode='[ABCDGIRSTW]' |
| 9888 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 9889 | 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'" |
| 9890 | fi |
| 9891 | ;; |
| 9892 | irix* | nonstopux*) |
| 9893 | symcode='[BCDEGRST]' |
| 9894 | ;; |
| 9895 | osf*) |
| 9896 | symcode='[BCDEGQRST]' |
| 9897 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9898 | solaris*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9899 | symcode='[BDRT]' |
| 9900 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9901 | sco3.2v5*) |
| 9902 | symcode='[DT]' |
| 9903 | ;; |
| 9904 | sysv4.2uw2*) |
| 9905 | symcode='[DT]' |
| 9906 | ;; |
| 9907 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 9908 | symcode='[ABDT]' |
| 9909 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9910 | sysv4) |
| 9911 | symcode='[DFNSTU]' |
| 9912 | ;; |
| 9913 | esac |
| 9914 | |
| 9915 | # Handle CRLF in mingw tool chain |
| 9916 | opt_cr= |
| 9917 | case $build_os in |
| 9918 | mingw*) |
| 9919 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 9920 | ;; |
| 9921 | esac |
| 9922 | |
| 9923 | # If we're using GNU nm, then use its standard symbol codes. |
| 9924 | case `$NM -V 2>&1` in |
| 9925 | *GNU* | *'with BFD'*) |
| 9926 | symcode='[ABCDGIRSTW]' ;; |
| 9927 | esac |
| 9928 | |
| 9929 | # Try without a prefix undercore, then with it. |
| 9930 | for ac_symprfx in "" "_"; do |
| 9931 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9932 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 9933 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 9934 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9935 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9936 | 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] | 9937 | |
| 9938 | # Check to see that the pipe works correctly. |
| 9939 | pipe_works=no |
| 9940 | |
| 9941 | rm -f conftest* |
| 9942 | cat > conftest.$ac_ext <<EOF |
| 9943 | #ifdef __cplusplus |
| 9944 | extern "C" { |
| 9945 | #endif |
| 9946 | char nm_test_var; |
| 9947 | void nm_test_func(){} |
| 9948 | #ifdef __cplusplus |
| 9949 | } |
| 9950 | #endif |
| 9951 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 9952 | EOF |
| 9953 | |
| 9954 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9955 | (eval $ac_compile) 2>&5 |
| 9956 | ac_status=$? |
| 9957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9958 | (exit $ac_status); }; then |
| 9959 | # Now try to grab the symbols. |
| 9960 | nlist=conftest.nm |
| 9961 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 9962 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 9963 | ac_status=$? |
| 9964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9965 | (exit $ac_status); } && test -s "$nlist"; then |
| 9966 | # Try sorting and uniquifying the output. |
| 9967 | if sort "$nlist" | uniq > "$nlist"T; then |
| 9968 | mv -f "$nlist"T "$nlist" |
| 9969 | else |
| 9970 | rm -f "$nlist"T |
| 9971 | fi |
| 9972 | |
| 9973 | # Make sure that we snagged all the symbols we need. |
| 9974 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 9975 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 9976 | cat <<EOF > conftest.$ac_ext |
| 9977 | #ifdef __cplusplus |
| 9978 | extern "C" { |
| 9979 | #endif |
| 9980 | |
| 9981 | EOF |
| 9982 | # Now generate the symbol file. |
| 9983 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 9984 | |
| 9985 | cat <<EOF >> conftest.$ac_ext |
| 9986 | #if defined (__STDC__) && __STDC__ |
| 9987 | # define lt_ptr_t void * |
| 9988 | #else |
| 9989 | # define lt_ptr_t char * |
| 9990 | # define const |
| 9991 | #endif |
| 9992 | |
| 9993 | /* The mapping between symbol names and symbols. */ |
| 9994 | const struct { |
| 9995 | const char *name; |
| 9996 | lt_ptr_t address; |
| 9997 | } |
| 9998 | lt_preloaded_symbols[] = |
| 9999 | { |
| 10000 | EOF |
| 10001 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 10002 | cat <<\EOF >> conftest.$ac_ext |
| 10003 | {0, (lt_ptr_t) 0} |
| 10004 | }; |
| 10005 | |
| 10006 | #ifdef __cplusplus |
| 10007 | } |
| 10008 | #endif |
| 10009 | EOF |
| 10010 | # Now try linking the two files. |
| 10011 | mv conftest.$ac_objext conftstm.$ac_objext |
| 10012 | lt_save_LIBS="$LIBS" |
| 10013 | lt_save_CFLAGS="$CFLAGS" |
| 10014 | LIBS="conftstm.$ac_objext" |
| 10015 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 10016 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10017 | (eval $ac_link) 2>&5 |
| 10018 | ac_status=$? |
| 10019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10020 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 10021 | pipe_works=yes |
| 10022 | fi |
| 10023 | LIBS="$lt_save_LIBS" |
| 10024 | CFLAGS="$lt_save_CFLAGS" |
| 10025 | else |
| 10026 | echo "cannot find nm_test_func in $nlist" >&5 |
| 10027 | fi |
| 10028 | else |
| 10029 | echo "cannot find nm_test_var in $nlist" >&5 |
| 10030 | fi |
| 10031 | else |
| 10032 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 10033 | fi |
| 10034 | else |
| 10035 | echo "$progname: failed program was:" >&5 |
| 10036 | cat conftest.$ac_ext >&5 |
| 10037 | fi |
| 10038 | rm -f conftest* conftst* |
| 10039 | |
| 10040 | # Do not use the global_symbol_pipe unless it works. |
| 10041 | if test "$pipe_works" = yes; then |
| 10042 | break |
| 10043 | else |
| 10044 | lt_cv_sys_global_symbol_pipe= |
| 10045 | fi |
| 10046 | done |
| 10047 | |
| 10048 | fi |
| 10049 | |
| 10050 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 10051 | lt_cv_sys_global_symbol_to_cdecl= |
| 10052 | fi |
| 10053 | 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] | 10054 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 10055 | echo "${ECHO_T}failed" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10056 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10057 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 10058 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10059 | fi |
| 10060 | |
| 10061 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10062 | { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
| 10063 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10064 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then |
| 10065 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10066 | else |
| 10067 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
| 10068 | libltdl_cv_preloaded_symbols=yes |
| 10069 | else |
| 10070 | libltdl_cv_preloaded_symbols=no |
| 10071 | fi |
| 10072 | |
| 10073 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10074 | { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 |
| 10075 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10076 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 10077 | |
| 10078 | cat >>confdefs.h <<\_ACEOF |
| 10079 | #define HAVE_PRELOADED_SYMBOLS 1 |
| 10080 | _ACEOF |
| 10081 | |
| 10082 | fi |
| 10083 | |
| 10084 | LIBADD_DL= |
| 10085 | |
| 10086 | ac_ext=c |
| 10087 | ac_cpp='$CPP $CPPFLAGS' |
| 10088 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10089 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10090 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10091 | |
| 10092 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10093 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 10094 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10095 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 10096 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10097 | else |
| 10098 | cat >conftest.$ac_ext <<_ACEOF |
| 10099 | /* confdefs.h. */ |
| 10100 | _ACEOF |
| 10101 | cat confdefs.h >>conftest.$ac_ext |
| 10102 | cat >>conftest.$ac_ext <<_ACEOF |
| 10103 | /* end confdefs.h. */ |
| 10104 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 10105 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10106 | #define shl_load innocuous_shl_load |
| 10107 | |
| 10108 | /* System header to define __stub macros and hopefully few prototypes, |
| 10109 | which can conflict with char shl_load (); below. |
| 10110 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10111 | <limits.h> exists even on freestanding compilers. */ |
| 10112 | |
| 10113 | #ifdef __STDC__ |
| 10114 | # include <limits.h> |
| 10115 | #else |
| 10116 | # include <assert.h> |
| 10117 | #endif |
| 10118 | |
| 10119 | #undef shl_load |
| 10120 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10121 | /* Override any GCC internal prototype to avoid an error. |
| 10122 | Use char because int might match the return type of a GCC |
| 10123 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10124 | #ifdef __cplusplus |
| 10125 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10126 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10127 | char shl_load (); |
| 10128 | /* The GNU C library defines this for functions which it implements |
| 10129 | to always fail with ENOSYS. Some functions are actually named |
| 10130 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10131 | #if defined __stub_shl_load || defined __stub___shl_load |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10132 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10133 | #endif |
| 10134 | |
| 10135 | int |
| 10136 | main () |
| 10137 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10138 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10139 | ; |
| 10140 | return 0; |
| 10141 | } |
| 10142 | _ACEOF |
| 10143 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10144 | if { (ac_try="$ac_link" |
| 10145 | case "(($ac_try" in |
| 10146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10147 | *) ac_try_echo=$ac_try;; |
| 10148 | esac |
| 10149 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10150 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10151 | ac_status=$? |
| 10152 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10153 | rm -f conftest.er1 |
| 10154 | cat conftest.err >&5 |
| 10155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10156 | (exit $ac_status); } && |
| 10157 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10158 | { (case "(($ac_try" in |
| 10159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10160 | *) ac_try_echo=$ac_try;; |
| 10161 | esac |
| 10162 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10163 | (eval "$ac_try") 2>&5 |
| 10164 | ac_status=$? |
| 10165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10166 | (exit $ac_status); }; } && |
| 10167 | { ac_try='test -s conftest$ac_exeext' |
| 10168 | { (case "(($ac_try" in |
| 10169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10170 | *) ac_try_echo=$ac_try;; |
| 10171 | esac |
| 10172 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10173 | (eval "$ac_try") 2>&5 |
| 10174 | ac_status=$? |
| 10175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10176 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10177 | ac_cv_func_shl_load=yes |
| 10178 | else |
| 10179 | echo "$as_me: failed program was:" >&5 |
| 10180 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10181 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10182 | ac_cv_func_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10183 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10184 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10185 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10186 | conftest$ac_exeext conftest.$ac_ext |
| 10187 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10188 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 10189 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10190 | if test $ac_cv_func_shl_load = yes; then |
| 10191 | |
| 10192 | cat >>confdefs.h <<\_ACEOF |
| 10193 | #define HAVE_SHL_LOAD 1 |
| 10194 | _ACEOF |
| 10195 | |
| 10196 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10197 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 10198 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10199 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 10200 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10201 | else |
| 10202 | ac_check_lib_save_LIBS=$LIBS |
| 10203 | LIBS="-ldld $LIBS" |
| 10204 | cat >conftest.$ac_ext <<_ACEOF |
| 10205 | /* confdefs.h. */ |
| 10206 | _ACEOF |
| 10207 | cat confdefs.h >>conftest.$ac_ext |
| 10208 | cat >>conftest.$ac_ext <<_ACEOF |
| 10209 | /* end confdefs.h. */ |
| 10210 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10211 | /* Override any GCC internal prototype to avoid an error. |
| 10212 | Use char because int might match the return type of a GCC |
| 10213 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10214 | #ifdef __cplusplus |
| 10215 | extern "C" |
| 10216 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10217 | char shl_load (); |
| 10218 | int |
| 10219 | main () |
| 10220 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10221 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10222 | ; |
| 10223 | return 0; |
| 10224 | } |
| 10225 | _ACEOF |
| 10226 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10227 | if { (ac_try="$ac_link" |
| 10228 | case "(($ac_try" in |
| 10229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10230 | *) ac_try_echo=$ac_try;; |
| 10231 | esac |
| 10232 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10233 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10234 | ac_status=$? |
| 10235 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10236 | rm -f conftest.er1 |
| 10237 | cat conftest.err >&5 |
| 10238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10239 | (exit $ac_status); } && |
| 10240 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10241 | { (case "(($ac_try" in |
| 10242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10243 | *) ac_try_echo=$ac_try;; |
| 10244 | esac |
| 10245 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10246 | (eval "$ac_try") 2>&5 |
| 10247 | ac_status=$? |
| 10248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10249 | (exit $ac_status); }; } && |
| 10250 | { ac_try='test -s conftest$ac_exeext' |
| 10251 | { (case "(($ac_try" in |
| 10252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10253 | *) ac_try_echo=$ac_try;; |
| 10254 | esac |
| 10255 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10256 | (eval "$ac_try") 2>&5 |
| 10257 | ac_status=$? |
| 10258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10259 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10260 | ac_cv_lib_dld_shl_load=yes |
| 10261 | else |
| 10262 | echo "$as_me: failed program was:" >&5 |
| 10263 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10264 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10265 | ac_cv_lib_dld_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10266 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10267 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10268 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10269 | conftest$ac_exeext conftest.$ac_ext |
| 10270 | LIBS=$ac_check_lib_save_LIBS |
| 10271 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10272 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 10273 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10274 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 10275 | |
| 10276 | cat >>confdefs.h <<\_ACEOF |
| 10277 | #define HAVE_SHL_LOAD 1 |
| 10278 | _ACEOF |
| 10279 | |
| 10280 | LIBADD_DL="$LIBADD_DL -ldld" |
| 10281 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10282 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 10283 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10284 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 10285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10286 | else |
| 10287 | ac_check_lib_save_LIBS=$LIBS |
| 10288 | LIBS="-ldl $LIBS" |
| 10289 | cat >conftest.$ac_ext <<_ACEOF |
| 10290 | /* confdefs.h. */ |
| 10291 | _ACEOF |
| 10292 | cat confdefs.h >>conftest.$ac_ext |
| 10293 | cat >>conftest.$ac_ext <<_ACEOF |
| 10294 | /* end confdefs.h. */ |
| 10295 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10296 | /* Override any GCC internal prototype to avoid an error. |
| 10297 | Use char because int might match the return type of a GCC |
| 10298 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10299 | #ifdef __cplusplus |
| 10300 | extern "C" |
| 10301 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10302 | char dlopen (); |
| 10303 | int |
| 10304 | main () |
| 10305 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10306 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10307 | ; |
| 10308 | return 0; |
| 10309 | } |
| 10310 | _ACEOF |
| 10311 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10312 | if { (ac_try="$ac_link" |
| 10313 | case "(($ac_try" in |
| 10314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10315 | *) ac_try_echo=$ac_try;; |
| 10316 | esac |
| 10317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10318 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10319 | ac_status=$? |
| 10320 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10321 | rm -f conftest.er1 |
| 10322 | cat conftest.err >&5 |
| 10323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10324 | (exit $ac_status); } && |
| 10325 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10326 | { (case "(($ac_try" in |
| 10327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10328 | *) ac_try_echo=$ac_try;; |
| 10329 | esac |
| 10330 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10331 | (eval "$ac_try") 2>&5 |
| 10332 | ac_status=$? |
| 10333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10334 | (exit $ac_status); }; } && |
| 10335 | { ac_try='test -s conftest$ac_exeext' |
| 10336 | { (case "(($ac_try" in |
| 10337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10338 | *) ac_try_echo=$ac_try;; |
| 10339 | esac |
| 10340 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10341 | (eval "$ac_try") 2>&5 |
| 10342 | ac_status=$? |
| 10343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10344 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10345 | ac_cv_lib_dl_dlopen=yes |
| 10346 | else |
| 10347 | echo "$as_me: failed program was:" >&5 |
| 10348 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10349 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10350 | ac_cv_lib_dl_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10351 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10352 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10353 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10354 | conftest$ac_exeext conftest.$ac_ext |
| 10355 | LIBS=$ac_check_lib_save_LIBS |
| 10356 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10357 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10358 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10359 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 10360 | |
| 10361 | cat >>confdefs.h <<\_ACEOF |
| 10362 | #define HAVE_LIBDL 1 |
| 10363 | _ACEOF |
| 10364 | |
| 10365 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" |
| 10366 | else |
| 10367 | cat >conftest.$ac_ext <<_ACEOF |
| 10368 | /* confdefs.h. */ |
| 10369 | _ACEOF |
| 10370 | cat confdefs.h >>conftest.$ac_ext |
| 10371 | cat >>conftest.$ac_ext <<_ACEOF |
| 10372 | /* end confdefs.h. */ |
| 10373 | #if HAVE_DLFCN_H |
| 10374 | # include <dlfcn.h> |
| 10375 | #endif |
| 10376 | |
| 10377 | int |
| 10378 | main () |
| 10379 | { |
| 10380 | dlopen(0, 0); |
| 10381 | ; |
| 10382 | return 0; |
| 10383 | } |
| 10384 | _ACEOF |
| 10385 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10386 | if { (ac_try="$ac_link" |
| 10387 | case "(($ac_try" in |
| 10388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10389 | *) ac_try_echo=$ac_try;; |
| 10390 | esac |
| 10391 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10392 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10393 | ac_status=$? |
| 10394 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10395 | rm -f conftest.er1 |
| 10396 | cat conftest.err >&5 |
| 10397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10398 | (exit $ac_status); } && |
| 10399 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10400 | { (case "(($ac_try" in |
| 10401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10402 | *) ac_try_echo=$ac_try;; |
| 10403 | esac |
| 10404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10405 | (eval "$ac_try") 2>&5 |
| 10406 | ac_status=$? |
| 10407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10408 | (exit $ac_status); }; } && |
| 10409 | { ac_try='test -s conftest$ac_exeext' |
| 10410 | { (case "(($ac_try" in |
| 10411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10412 | *) ac_try_echo=$ac_try;; |
| 10413 | esac |
| 10414 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10415 | (eval "$ac_try") 2>&5 |
| 10416 | ac_status=$? |
| 10417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10418 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10419 | |
| 10420 | cat >>confdefs.h <<\_ACEOF |
| 10421 | #define HAVE_LIBDL 1 |
| 10422 | _ACEOF |
| 10423 | libltdl_cv_func_dlopen="yes" |
| 10424 | else |
| 10425 | echo "$as_me: failed program was:" >&5 |
| 10426 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10427 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10428 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 10429 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10430 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 10431 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10432 | else |
| 10433 | ac_check_lib_save_LIBS=$LIBS |
| 10434 | LIBS="-lsvld $LIBS" |
| 10435 | cat >conftest.$ac_ext <<_ACEOF |
| 10436 | /* confdefs.h. */ |
| 10437 | _ACEOF |
| 10438 | cat confdefs.h >>conftest.$ac_ext |
| 10439 | cat >>conftest.$ac_ext <<_ACEOF |
| 10440 | /* end confdefs.h. */ |
| 10441 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10442 | /* Override any GCC internal prototype to avoid an error. |
| 10443 | Use char because int might match the return type of a GCC |
| 10444 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10445 | #ifdef __cplusplus |
| 10446 | extern "C" |
| 10447 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10448 | char dlopen (); |
| 10449 | int |
| 10450 | main () |
| 10451 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10452 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10453 | ; |
| 10454 | return 0; |
| 10455 | } |
| 10456 | _ACEOF |
| 10457 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10458 | if { (ac_try="$ac_link" |
| 10459 | case "(($ac_try" in |
| 10460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10461 | *) ac_try_echo=$ac_try;; |
| 10462 | esac |
| 10463 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10464 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10465 | ac_status=$? |
| 10466 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10467 | rm -f conftest.er1 |
| 10468 | cat conftest.err >&5 |
| 10469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10470 | (exit $ac_status); } && |
| 10471 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10472 | { (case "(($ac_try" in |
| 10473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10474 | *) ac_try_echo=$ac_try;; |
| 10475 | esac |
| 10476 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10477 | (eval "$ac_try") 2>&5 |
| 10478 | ac_status=$? |
| 10479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10480 | (exit $ac_status); }; } && |
| 10481 | { ac_try='test -s conftest$ac_exeext' |
| 10482 | { (case "(($ac_try" in |
| 10483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10484 | *) ac_try_echo=$ac_try;; |
| 10485 | esac |
| 10486 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10487 | (eval "$ac_try") 2>&5 |
| 10488 | ac_status=$? |
| 10489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10490 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10491 | ac_cv_lib_svld_dlopen=yes |
| 10492 | else |
| 10493 | echo "$as_me: failed program was:" >&5 |
| 10494 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10495 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10496 | ac_cv_lib_svld_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10497 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10498 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10499 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10500 | conftest$ac_exeext conftest.$ac_ext |
| 10501 | LIBS=$ac_check_lib_save_LIBS |
| 10502 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10503 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 10504 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10505 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 10506 | |
| 10507 | cat >>confdefs.h <<\_ACEOF |
| 10508 | #define HAVE_LIBDL 1 |
| 10509 | _ACEOF |
| 10510 | |
| 10511 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" |
| 10512 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10513 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 10514 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10515 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 10516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10517 | else |
| 10518 | ac_check_lib_save_LIBS=$LIBS |
| 10519 | LIBS="-ldld $LIBS" |
| 10520 | cat >conftest.$ac_ext <<_ACEOF |
| 10521 | /* confdefs.h. */ |
| 10522 | _ACEOF |
| 10523 | cat confdefs.h >>conftest.$ac_ext |
| 10524 | cat >>conftest.$ac_ext <<_ACEOF |
| 10525 | /* end confdefs.h. */ |
| 10526 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10527 | /* Override any GCC internal prototype to avoid an error. |
| 10528 | Use char because int might match the return type of a GCC |
| 10529 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10530 | #ifdef __cplusplus |
| 10531 | extern "C" |
| 10532 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10533 | char dld_link (); |
| 10534 | int |
| 10535 | main () |
| 10536 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10537 | return dld_link (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10538 | ; |
| 10539 | return 0; |
| 10540 | } |
| 10541 | _ACEOF |
| 10542 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10543 | if { (ac_try="$ac_link" |
| 10544 | case "(($ac_try" in |
| 10545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10546 | *) ac_try_echo=$ac_try;; |
| 10547 | esac |
| 10548 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10549 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10550 | ac_status=$? |
| 10551 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10552 | rm -f conftest.er1 |
| 10553 | cat conftest.err >&5 |
| 10554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10555 | (exit $ac_status); } && |
| 10556 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10557 | { (case "(($ac_try" in |
| 10558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10559 | *) ac_try_echo=$ac_try;; |
| 10560 | esac |
| 10561 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10562 | (eval "$ac_try") 2>&5 |
| 10563 | ac_status=$? |
| 10564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10565 | (exit $ac_status); }; } && |
| 10566 | { ac_try='test -s conftest$ac_exeext' |
| 10567 | { (case "(($ac_try" in |
| 10568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10569 | *) ac_try_echo=$ac_try;; |
| 10570 | esac |
| 10571 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10572 | (eval "$ac_try") 2>&5 |
| 10573 | ac_status=$? |
| 10574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10575 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10576 | ac_cv_lib_dld_dld_link=yes |
| 10577 | else |
| 10578 | echo "$as_me: failed program was:" >&5 |
| 10579 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10580 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10581 | ac_cv_lib_dld_dld_link=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10582 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10583 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10584 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10585 | conftest$ac_exeext conftest.$ac_ext |
| 10586 | LIBS=$ac_check_lib_save_LIBS |
| 10587 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10588 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 10589 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10590 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 10591 | |
| 10592 | cat >>confdefs.h <<\_ACEOF |
| 10593 | #define HAVE_DLD 1 |
| 10594 | _ACEOF |
| 10595 | |
| 10596 | LIBADD_DL="$LIBADD_DL -ldld" |
| 10597 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10598 | { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 |
| 10599 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10600 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then |
| 10601 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10602 | else |
| 10603 | cat >conftest.$ac_ext <<_ACEOF |
| 10604 | /* confdefs.h. */ |
| 10605 | _ACEOF |
| 10606 | cat confdefs.h >>conftest.$ac_ext |
| 10607 | cat >>conftest.$ac_ext <<_ACEOF |
| 10608 | /* end confdefs.h. */ |
| 10609 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. |
| 10610 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10611 | #define _dyld_func_lookup innocuous__dyld_func_lookup |
| 10612 | |
| 10613 | /* System header to define __stub macros and hopefully few prototypes, |
| 10614 | which can conflict with char _dyld_func_lookup (); below. |
| 10615 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10616 | <limits.h> exists even on freestanding compilers. */ |
| 10617 | |
| 10618 | #ifdef __STDC__ |
| 10619 | # include <limits.h> |
| 10620 | #else |
| 10621 | # include <assert.h> |
| 10622 | #endif |
| 10623 | |
| 10624 | #undef _dyld_func_lookup |
| 10625 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10626 | /* Override any GCC internal prototype to avoid an error. |
| 10627 | Use char because int might match the return type of a GCC |
| 10628 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10629 | #ifdef __cplusplus |
| 10630 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10631 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10632 | char _dyld_func_lookup (); |
| 10633 | /* The GNU C library defines this for functions which it implements |
| 10634 | to always fail with ENOSYS. Some functions are actually named |
| 10635 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10636 | #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10637 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10638 | #endif |
| 10639 | |
| 10640 | int |
| 10641 | main () |
| 10642 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10643 | return _dyld_func_lookup (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10644 | ; |
| 10645 | return 0; |
| 10646 | } |
| 10647 | _ACEOF |
| 10648 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10649 | if { (ac_try="$ac_link" |
| 10650 | case "(($ac_try" in |
| 10651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10652 | *) ac_try_echo=$ac_try;; |
| 10653 | esac |
| 10654 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10655 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10656 | ac_status=$? |
| 10657 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10658 | rm -f conftest.er1 |
| 10659 | cat conftest.err >&5 |
| 10660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10661 | (exit $ac_status); } && |
| 10662 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10663 | { (case "(($ac_try" in |
| 10664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10665 | *) ac_try_echo=$ac_try;; |
| 10666 | esac |
| 10667 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10668 | (eval "$ac_try") 2>&5 |
| 10669 | ac_status=$? |
| 10670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10671 | (exit $ac_status); }; } && |
| 10672 | { ac_try='test -s conftest$ac_exeext' |
| 10673 | { (case "(($ac_try" in |
| 10674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10675 | *) ac_try_echo=$ac_try;; |
| 10676 | esac |
| 10677 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10678 | (eval "$ac_try") 2>&5 |
| 10679 | ac_status=$? |
| 10680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10681 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10682 | ac_cv_func__dyld_func_lookup=yes |
| 10683 | else |
| 10684 | echo "$as_me: failed program was:" >&5 |
| 10685 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10686 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10687 | ac_cv_func__dyld_func_lookup=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10688 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10689 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10690 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10691 | conftest$ac_exeext conftest.$ac_ext |
| 10692 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10693 | { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 |
| 10694 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10695 | if test $ac_cv_func__dyld_func_lookup = yes; then |
| 10696 | |
| 10697 | cat >>confdefs.h <<\_ACEOF |
| 10698 | #define HAVE_DYLD 1 |
| 10699 | _ACEOF |
| 10700 | |
| 10701 | fi |
| 10702 | |
| 10703 | |
| 10704 | fi |
| 10705 | |
| 10706 | |
| 10707 | fi |
| 10708 | |
| 10709 | |
| 10710 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10711 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10712 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10713 | conftest$ac_exeext conftest.$ac_ext |
| 10714 | |
| 10715 | fi |
| 10716 | |
| 10717 | |
| 10718 | fi |
| 10719 | |
| 10720 | |
| 10721 | fi |
| 10722 | |
| 10723 | |
| 10724 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 10725 | then |
| 10726 | lt_save_LIBS="$LIBS" |
| 10727 | LIBS="$LIBS $LIBADD_DL" |
| 10728 | |
| 10729 | for ac_func in dlerror |
| 10730 | do |
| 10731 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10732 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10733 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 10734 | 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] | 10735 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10736 | else |
| 10737 | cat >conftest.$ac_ext <<_ACEOF |
| 10738 | /* confdefs.h. */ |
| 10739 | _ACEOF |
| 10740 | cat confdefs.h >>conftest.$ac_ext |
| 10741 | cat >>conftest.$ac_ext <<_ACEOF |
| 10742 | /* end confdefs.h. */ |
| 10743 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10744 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10745 | #define $ac_func innocuous_$ac_func |
| 10746 | |
| 10747 | /* System header to define __stub macros and hopefully few prototypes, |
| 10748 | which can conflict with char $ac_func (); below. |
| 10749 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10750 | <limits.h> exists even on freestanding compilers. */ |
| 10751 | |
| 10752 | #ifdef __STDC__ |
| 10753 | # include <limits.h> |
| 10754 | #else |
| 10755 | # include <assert.h> |
| 10756 | #endif |
| 10757 | |
| 10758 | #undef $ac_func |
| 10759 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10760 | /* Override any GCC internal prototype to avoid an error. |
| 10761 | Use char because int might match the return type of a GCC |
| 10762 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10763 | #ifdef __cplusplus |
| 10764 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10765 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10766 | char $ac_func (); |
| 10767 | /* The GNU C library defines this for functions which it implements |
| 10768 | to always fail with ENOSYS. Some functions are actually named |
| 10769 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10770 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10771 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10772 | #endif |
| 10773 | |
| 10774 | int |
| 10775 | main () |
| 10776 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10777 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10778 | ; |
| 10779 | return 0; |
| 10780 | } |
| 10781 | _ACEOF |
| 10782 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10783 | if { (ac_try="$ac_link" |
| 10784 | case "(($ac_try" in |
| 10785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10786 | *) ac_try_echo=$ac_try;; |
| 10787 | esac |
| 10788 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10789 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10790 | ac_status=$? |
| 10791 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10792 | rm -f conftest.er1 |
| 10793 | cat conftest.err >&5 |
| 10794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10795 | (exit $ac_status); } && |
| 10796 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10797 | { (case "(($ac_try" in |
| 10798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10799 | *) ac_try_echo=$ac_try;; |
| 10800 | esac |
| 10801 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10802 | (eval "$ac_try") 2>&5 |
| 10803 | ac_status=$? |
| 10804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10805 | (exit $ac_status); }; } && |
| 10806 | { ac_try='test -s conftest$ac_exeext' |
| 10807 | { (case "(($ac_try" in |
| 10808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10809 | *) ac_try_echo=$ac_try;; |
| 10810 | esac |
| 10811 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10812 | (eval "$ac_try") 2>&5 |
| 10813 | ac_status=$? |
| 10814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10815 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10816 | eval "$as_ac_var=yes" |
| 10817 | else |
| 10818 | echo "$as_me: failed program was:" >&5 |
| 10819 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10820 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10821 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10822 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10823 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10824 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10825 | conftest$ac_exeext conftest.$ac_ext |
| 10826 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10827 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 10828 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10829 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10830 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 10831 | cat >>confdefs.h <<_ACEOF |
| 10832 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10833 | _ACEOF |
| 10834 | |
| 10835 | fi |
| 10836 | done |
| 10837 | |
| 10838 | LIBS="$lt_save_LIBS" |
| 10839 | fi |
| 10840 | ac_ext=c |
| 10841 | ac_cpp='$CPP $CPPFLAGS' |
| 10842 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10843 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10844 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10845 | |
| 10846 | |
| 10847 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10848 | { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 |
| 10849 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10850 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then |
| 10851 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10852 | else |
| 10853 | ac_cv_sys_symbol_underscore=no |
| 10854 | cat > conftest.$ac_ext <<EOF |
| 10855 | void nm_test_func(){} |
| 10856 | int main(){nm_test_func;return 0;} |
| 10857 | EOF |
| 10858 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10859 | (eval $ac_compile) 2>&5 |
| 10860 | ac_status=$? |
| 10861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10862 | (exit $ac_status); }; then |
| 10863 | # Now try to grab the symbols. |
| 10864 | ac_nlist=conftest.nm |
| 10865 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 |
| 10866 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
| 10867 | ac_status=$? |
| 10868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10869 | (exit $ac_status); } && test -s "$ac_nlist"; then |
| 10870 | # See whether the symbols have a leading underscore. |
| 10871 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
| 10872 | ac_cv_sys_symbol_underscore=yes |
| 10873 | else |
| 10874 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
| 10875 | : |
| 10876 | else |
| 10877 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
| 10878 | fi |
| 10879 | fi |
| 10880 | else |
| 10881 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 10882 | fi |
| 10883 | else |
| 10884 | echo "configure: failed program was:" >&5 |
| 10885 | cat conftest.c >&5 |
| 10886 | fi |
| 10887 | rm -rf conftest* |
| 10888 | |
| 10889 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10890 | { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 |
| 10891 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10892 | |
| 10893 | |
| 10894 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then |
| 10895 | if test x"$libltdl_cv_func_dlopen" = xyes || |
| 10896 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10897 | { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 |
| 10898 | 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] | 10899 | if test "${libltdl_cv_need_uscore+set}" = set; then |
| 10900 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10901 | else |
| 10902 | libltdl_cv_need_uscore=unknown |
| 10903 | save_LIBS="$LIBS" |
| 10904 | LIBS="$LIBS $LIBADD_DL" |
| 10905 | if test "$cross_compiling" = yes; then : |
| 10906 | libltdl_cv_need_uscore=cross |
| 10907 | else |
| 10908 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 10909 | lt_status=$lt_dlunknown |
| 10910 | cat > conftest.$ac_ext <<EOF |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 10911 | #line 10916 "configure" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10912 | #include "confdefs.h" |
| 10913 | |
| 10914 | #if HAVE_DLFCN_H |
| 10915 | #include <dlfcn.h> |
| 10916 | #endif |
| 10917 | |
| 10918 | #include <stdio.h> |
| 10919 | |
| 10920 | #ifdef RTLD_GLOBAL |
| 10921 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 10922 | #else |
| 10923 | # ifdef DL_GLOBAL |
| 10924 | # define LT_DLGLOBAL DL_GLOBAL |
| 10925 | # else |
| 10926 | # define LT_DLGLOBAL 0 |
| 10927 | # endif |
| 10928 | #endif |
| 10929 | |
| 10930 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 10931 | find out it does not work in some platform. */ |
| 10932 | #ifndef LT_DLLAZY_OR_NOW |
| 10933 | # ifdef RTLD_LAZY |
| 10934 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 10935 | # else |
| 10936 | # ifdef DL_LAZY |
| 10937 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 10938 | # else |
| 10939 | # ifdef RTLD_NOW |
| 10940 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 10941 | # else |
| 10942 | # ifdef DL_NOW |
| 10943 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 10944 | # else |
| 10945 | # define LT_DLLAZY_OR_NOW 0 |
| 10946 | # endif |
| 10947 | # endif |
| 10948 | # endif |
| 10949 | # endif |
| 10950 | #endif |
| 10951 | |
| 10952 | #ifdef __cplusplus |
| 10953 | extern "C" void exit (int); |
| 10954 | #endif |
| 10955 | |
| 10956 | void fnord() { int i=42;} |
| 10957 | int main () |
| 10958 | { |
| 10959 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 10960 | int status = $lt_dlunknown; |
| 10961 | |
| 10962 | if (self) |
| 10963 | { |
| 10964 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 10965 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 10966 | /* dlclose (self); */ |
| 10967 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10968 | else |
| 10969 | puts (dlerror ()); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10970 | |
| 10971 | exit (status); |
| 10972 | } |
| 10973 | EOF |
| 10974 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10975 | (eval $ac_link) 2>&5 |
| 10976 | ac_status=$? |
| 10977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10978 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10979 | (./conftest; exit; ) >&5 2>/dev/null |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10980 | lt_status=$? |
| 10981 | case x$lt_status in |
| 10982 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 10983 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10984 | x$lt_dlunknown|x*) ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10985 | esac |
| 10986 | else : |
| 10987 | # compilation failed |
| 10988 | |
| 10989 | fi |
| 10990 | fi |
| 10991 | rm -fr conftest* |
| 10992 | |
| 10993 | LIBS="$save_LIBS" |
| 10994 | |
| 10995 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10996 | { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 |
| 10997 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10998 | fi |
| 10999 | fi |
| 11000 | |
| 11001 | if test x"$libltdl_cv_need_uscore" = xyes; then |
| 11002 | |
| 11003 | cat >>confdefs.h <<\_ACEOF |
| 11004 | #define NEED_USCORE 1 |
| 11005 | _ACEOF |
| 11006 | |
| 11007 | fi |
| 11008 | |
| 11009 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11010 | { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 |
| 11011 | 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] | 11012 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then |
| 11013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11014 | else |
| 11015 | # PORTME does your system automatically load deplibs for dlopen? |
| 11016 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) |
| 11017 | # For now, we just catch OSes we know something about -- in the |
| 11018 | # future, we'll try test this programmatically. |
| 11019 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11020 | case "$host_os" in |
| 11021 | aix3*|aix4.1.*|aix4.2.*) |
| 11022 | # Unknown whether this is true for these versions of AIX, but |
| 11023 | # we want this `case' here to explicitly catch those versions. |
| 11024 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11025 | ;; |
| 11026 | aix[45]*) |
| 11027 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11028 | ;; |
| 11029 | darwin*) |
| 11030 | # Assuming the user has installed a libdl from somewhere, this is true |
| 11031 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 11032 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11033 | ;; |
| 11034 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) |
| 11035 | # GNU and its variants, using gnu ld.so (Glibc) |
| 11036 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11037 | ;; |
| 11038 | hpux10*|hpux11*) |
| 11039 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11040 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11041 | interix*) |
| 11042 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11043 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11044 | irix[12345]*|irix6.[01]*) |
| 11045 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
| 11046 | # know how it worked for any of those versions. |
| 11047 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11048 | ;; |
| 11049 | irix*) |
| 11050 | # The case above catches anything before 6.2, and it's known that |
| 11051 | # at 6.2 and later dlopen does load deplibs. |
| 11052 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11053 | ;; |
| 11054 | netbsd*) |
| 11055 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11056 | ;; |
| 11057 | openbsd*) |
| 11058 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11059 | ;; |
| 11060 | osf[1234]*) |
| 11061 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 11062 | # it did *not* use an RPATH in a shared library to find objects the |
| 11063 | # library depends on, so we explictly say `no'. |
| 11064 | libltdl_cv_sys_dlopen_deplibs=no |
| 11065 | ;; |
| 11066 | osf5.0|osf5.0a|osf5.1) |
| 11067 | # dlopen *does* load deplibs and with the right loader patch applied |
| 11068 | # it even uses RPATH in a shared library to search for shared objects |
| 11069 | # that the library depends on, but there's no easy way to know if that |
| 11070 | # patch is installed. Since this is the case, all we can really |
| 11071 | # say is unknown -- it depends on the patch being installed. If |
| 11072 | # it is, this changes to `yes'. Without it, it would be `no'. |
| 11073 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11074 | ;; |
| 11075 | osf*) |
| 11076 | # the two cases above should catch all versions of osf <= 5.1. Read |
| 11077 | # the comments above for what we know about them. |
| 11078 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 11079 | # is used to find them so we can finally say `yes'. |
| 11080 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11081 | ;; |
| 11082 | solaris*) |
| 11083 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11084 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11085 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 11086 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11087 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11088 | esac |
| 11089 | |
| 11090 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11091 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 |
| 11092 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11093 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then |
| 11094 | |
| 11095 | cat >>confdefs.h <<\_ACEOF |
| 11096 | #define LTDL_DLOPEN_DEPLIBS 1 |
| 11097 | _ACEOF |
| 11098 | |
| 11099 | fi |
| 11100 | |
| 11101 | |
| 11102 | for ac_header in argz.h |
| 11103 | do |
| 11104 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11105 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11106 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11107 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11108 | 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] | 11109 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11110 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11111 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11112 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11113 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11114 | else |
| 11115 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11116 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11117 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11118 | cat >conftest.$ac_ext <<_ACEOF |
| 11119 | /* confdefs.h. */ |
| 11120 | _ACEOF |
| 11121 | cat confdefs.h >>conftest.$ac_ext |
| 11122 | cat >>conftest.$ac_ext <<_ACEOF |
| 11123 | /* end confdefs.h. */ |
| 11124 | $ac_includes_default |
| 11125 | #include <$ac_header> |
| 11126 | _ACEOF |
| 11127 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11128 | if { (ac_try="$ac_compile" |
| 11129 | case "(($ac_try" in |
| 11130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11131 | *) ac_try_echo=$ac_try;; |
| 11132 | esac |
| 11133 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11134 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11135 | ac_status=$? |
| 11136 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11137 | rm -f conftest.er1 |
| 11138 | cat conftest.err >&5 |
| 11139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11140 | (exit $ac_status); } && |
| 11141 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11142 | { (case "(($ac_try" in |
| 11143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11144 | *) ac_try_echo=$ac_try;; |
| 11145 | esac |
| 11146 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11147 | (eval "$ac_try") 2>&5 |
| 11148 | ac_status=$? |
| 11149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11150 | (exit $ac_status); }; } && |
| 11151 | { ac_try='test -s conftest.$ac_objext' |
| 11152 | { (case "(($ac_try" in |
| 11153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11154 | *) ac_try_echo=$ac_try;; |
| 11155 | esac |
| 11156 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11157 | (eval "$ac_try") 2>&5 |
| 11158 | ac_status=$? |
| 11159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11160 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11161 | ac_header_compiler=yes |
| 11162 | else |
| 11163 | echo "$as_me: failed program was:" >&5 |
| 11164 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11165 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11166 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11167 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11168 | |
| 11169 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11170 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11171 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11172 | |
| 11173 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11174 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11175 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11176 | cat >conftest.$ac_ext <<_ACEOF |
| 11177 | /* confdefs.h. */ |
| 11178 | _ACEOF |
| 11179 | cat confdefs.h >>conftest.$ac_ext |
| 11180 | cat >>conftest.$ac_ext <<_ACEOF |
| 11181 | /* end confdefs.h. */ |
| 11182 | #include <$ac_header> |
| 11183 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11184 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11185 | case "(($ac_try" in |
| 11186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11187 | *) ac_try_echo=$ac_try;; |
| 11188 | esac |
| 11189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11190 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11191 | ac_status=$? |
| 11192 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11193 | rm -f conftest.er1 |
| 11194 | cat conftest.err >&5 |
| 11195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11196 | (exit $ac_status); } >/dev/null; then |
| 11197 | if test -s conftest.err; then |
| 11198 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11199 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11200 | else |
| 11201 | ac_cpp_err= |
| 11202 | fi |
| 11203 | else |
| 11204 | ac_cpp_err=yes |
| 11205 | fi |
| 11206 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11207 | ac_header_preproc=yes |
| 11208 | else |
| 11209 | echo "$as_me: failed program was:" >&5 |
| 11210 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11211 | |
| 11212 | ac_header_preproc=no |
| 11213 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11214 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11215 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11216 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11217 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11218 | |
| 11219 | # So? What about this header? |
| 11220 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11221 | yes:no: ) |
| 11222 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11223 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11224 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11225 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11226 | ac_header_preproc=yes |
| 11227 | ;; |
| 11228 | no:yes:* ) |
| 11229 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11230 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11231 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11232 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11233 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11234 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11235 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11236 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11237 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11238 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11239 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11240 | 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] | 11241 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11242 | ## ----------------------------------- ## |
| 11243 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11244 | ## ----------------------------------- ## |
| 11245 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11246 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11247 | ;; |
| 11248 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11249 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11250 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11251 | 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] | 11252 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11253 | else |
| 11254 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11255 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11256 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11257 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11258 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11259 | |
| 11260 | fi |
| 11261 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11262 | cat >>confdefs.h <<_ACEOF |
| 11263 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11264 | _ACEOF |
| 11265 | |
| 11266 | fi |
| 11267 | |
| 11268 | done |
| 11269 | |
| 11270 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11271 | { echo "$as_me:$LINENO: checking for error_t" >&5 |
| 11272 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11273 | if test "${ac_cv_type_error_t+set}" = set; then |
| 11274 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11275 | else |
| 11276 | cat >conftest.$ac_ext <<_ACEOF |
| 11277 | /* confdefs.h. */ |
| 11278 | _ACEOF |
| 11279 | cat confdefs.h >>conftest.$ac_ext |
| 11280 | cat >>conftest.$ac_ext <<_ACEOF |
| 11281 | /* end confdefs.h. */ |
| 11282 | #if HAVE_ARGZ_H |
| 11283 | # include <argz.h> |
| 11284 | #endif |
| 11285 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11286 | typedef error_t ac__type_new_; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11287 | int |
| 11288 | main () |
| 11289 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11290 | if ((ac__type_new_ *) 0) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11291 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11292 | if (sizeof (ac__type_new_)) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11293 | return 0; |
| 11294 | ; |
| 11295 | return 0; |
| 11296 | } |
| 11297 | _ACEOF |
| 11298 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11299 | if { (ac_try="$ac_compile" |
| 11300 | case "(($ac_try" in |
| 11301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11302 | *) ac_try_echo=$ac_try;; |
| 11303 | esac |
| 11304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11305 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11306 | ac_status=$? |
| 11307 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11308 | rm -f conftest.er1 |
| 11309 | cat conftest.err >&5 |
| 11310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11311 | (exit $ac_status); } && |
| 11312 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11313 | { (case "(($ac_try" in |
| 11314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11315 | *) ac_try_echo=$ac_try;; |
| 11316 | esac |
| 11317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11318 | (eval "$ac_try") 2>&5 |
| 11319 | ac_status=$? |
| 11320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11321 | (exit $ac_status); }; } && |
| 11322 | { ac_try='test -s conftest.$ac_objext' |
| 11323 | { (case "(($ac_try" in |
| 11324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11325 | *) ac_try_echo=$ac_try;; |
| 11326 | esac |
| 11327 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11328 | (eval "$ac_try") 2>&5 |
| 11329 | ac_status=$? |
| 11330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11331 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11332 | ac_cv_type_error_t=yes |
| 11333 | else |
| 11334 | echo "$as_me: failed program was:" >&5 |
| 11335 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11336 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11337 | ac_cv_type_error_t=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11338 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11339 | |
| 11340 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11341 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11342 | { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 |
| 11343 | echo "${ECHO_T}$ac_cv_type_error_t" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11344 | if test $ac_cv_type_error_t = yes; then |
| 11345 | |
| 11346 | cat >>confdefs.h <<_ACEOF |
| 11347 | #define HAVE_ERROR_T 1 |
| 11348 | _ACEOF |
| 11349 | |
| 11350 | |
| 11351 | else |
| 11352 | |
| 11353 | cat >>confdefs.h <<\_ACEOF |
| 11354 | #define error_t int |
| 11355 | _ACEOF |
| 11356 | |
| 11357 | fi |
| 11358 | |
| 11359 | |
| 11360 | |
| 11361 | |
| 11362 | |
| 11363 | |
| 11364 | |
| 11365 | for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify |
| 11366 | do |
| 11367 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11368 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11369 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11370 | 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] | 11371 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11372 | else |
| 11373 | cat >conftest.$ac_ext <<_ACEOF |
| 11374 | /* confdefs.h. */ |
| 11375 | _ACEOF |
| 11376 | cat confdefs.h >>conftest.$ac_ext |
| 11377 | cat >>conftest.$ac_ext <<_ACEOF |
| 11378 | /* end confdefs.h. */ |
| 11379 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11380 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11381 | #define $ac_func innocuous_$ac_func |
| 11382 | |
| 11383 | /* System header to define __stub macros and hopefully few prototypes, |
| 11384 | which can conflict with char $ac_func (); below. |
| 11385 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11386 | <limits.h> exists even on freestanding compilers. */ |
| 11387 | |
| 11388 | #ifdef __STDC__ |
| 11389 | # include <limits.h> |
| 11390 | #else |
| 11391 | # include <assert.h> |
| 11392 | #endif |
| 11393 | |
| 11394 | #undef $ac_func |
| 11395 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11396 | /* Override any GCC internal prototype to avoid an error. |
| 11397 | Use char because int might match the return type of a GCC |
| 11398 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11399 | #ifdef __cplusplus |
| 11400 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11401 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11402 | char $ac_func (); |
| 11403 | /* The GNU C library defines this for functions which it implements |
| 11404 | to always fail with ENOSYS. Some functions are actually named |
| 11405 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11406 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11407 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11408 | #endif |
| 11409 | |
| 11410 | int |
| 11411 | main () |
| 11412 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11413 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11414 | ; |
| 11415 | return 0; |
| 11416 | } |
| 11417 | _ACEOF |
| 11418 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11419 | if { (ac_try="$ac_link" |
| 11420 | case "(($ac_try" in |
| 11421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11422 | *) ac_try_echo=$ac_try;; |
| 11423 | esac |
| 11424 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11425 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11426 | ac_status=$? |
| 11427 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11428 | rm -f conftest.er1 |
| 11429 | cat conftest.err >&5 |
| 11430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11431 | (exit $ac_status); } && |
| 11432 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11433 | { (case "(($ac_try" in |
| 11434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11435 | *) ac_try_echo=$ac_try;; |
| 11436 | esac |
| 11437 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11438 | (eval "$ac_try") 2>&5 |
| 11439 | ac_status=$? |
| 11440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11441 | (exit $ac_status); }; } && |
| 11442 | { ac_try='test -s conftest$ac_exeext' |
| 11443 | { (case "(($ac_try" in |
| 11444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11445 | *) ac_try_echo=$ac_try;; |
| 11446 | esac |
| 11447 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11448 | (eval "$ac_try") 2>&5 |
| 11449 | ac_status=$? |
| 11450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11451 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11452 | eval "$as_ac_var=yes" |
| 11453 | else |
| 11454 | echo "$as_me: failed program was:" >&5 |
| 11455 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11456 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11457 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11458 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11459 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11460 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11461 | conftest$ac_exeext conftest.$ac_ext |
| 11462 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11463 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11464 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11465 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11466 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11467 | cat >>confdefs.h <<_ACEOF |
| 11468 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11469 | _ACEOF |
| 11470 | |
| 11471 | fi |
| 11472 | done |
| 11473 | |
| 11474 | |
| 11475 | |
| 11476 | |
| 11477 | |
| 11478 | |
| 11479 | |
| 11480 | |
| 11481 | |
| 11482 | |
| 11483 | |
| 11484 | |
| 11485 | |
| 11486 | |
| 11487 | |
| 11488 | |
| 11489 | |
| 11490 | |
| 11491 | |
| 11492 | |
| 11493 | |
| 11494 | |
| 11495 | |
| 11496 | |
| 11497 | |
| 11498 | |
| 11499 | |
| 11500 | |
| 11501 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ |
| 11502 | stdio.h unistd.h |
| 11503 | do |
| 11504 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11505 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11506 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11507 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11508 | 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] | 11509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11510 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11511 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11512 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11513 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11514 | else |
| 11515 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11516 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11517 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11518 | cat >conftest.$ac_ext <<_ACEOF |
| 11519 | /* confdefs.h. */ |
| 11520 | _ACEOF |
| 11521 | cat confdefs.h >>conftest.$ac_ext |
| 11522 | cat >>conftest.$ac_ext <<_ACEOF |
| 11523 | /* end confdefs.h. */ |
| 11524 | $ac_includes_default |
| 11525 | #include <$ac_header> |
| 11526 | _ACEOF |
| 11527 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11528 | if { (ac_try="$ac_compile" |
| 11529 | case "(($ac_try" in |
| 11530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11531 | *) ac_try_echo=$ac_try;; |
| 11532 | esac |
| 11533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11534 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11535 | ac_status=$? |
| 11536 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11537 | rm -f conftest.er1 |
| 11538 | cat conftest.err >&5 |
| 11539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11540 | (exit $ac_status); } && |
| 11541 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11542 | { (case "(($ac_try" in |
| 11543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11544 | *) ac_try_echo=$ac_try;; |
| 11545 | esac |
| 11546 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11547 | (eval "$ac_try") 2>&5 |
| 11548 | ac_status=$? |
| 11549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11550 | (exit $ac_status); }; } && |
| 11551 | { ac_try='test -s conftest.$ac_objext' |
| 11552 | { (case "(($ac_try" in |
| 11553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11554 | *) ac_try_echo=$ac_try;; |
| 11555 | esac |
| 11556 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11557 | (eval "$ac_try") 2>&5 |
| 11558 | ac_status=$? |
| 11559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11560 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11561 | ac_header_compiler=yes |
| 11562 | else |
| 11563 | echo "$as_me: failed program was:" >&5 |
| 11564 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11565 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11566 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11567 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11568 | |
| 11569 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11570 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11571 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11572 | |
| 11573 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11574 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11575 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11576 | cat >conftest.$ac_ext <<_ACEOF |
| 11577 | /* confdefs.h. */ |
| 11578 | _ACEOF |
| 11579 | cat confdefs.h >>conftest.$ac_ext |
| 11580 | cat >>conftest.$ac_ext <<_ACEOF |
| 11581 | /* end confdefs.h. */ |
| 11582 | #include <$ac_header> |
| 11583 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11584 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11585 | case "(($ac_try" in |
| 11586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11587 | *) ac_try_echo=$ac_try;; |
| 11588 | esac |
| 11589 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11590 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11591 | ac_status=$? |
| 11592 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11593 | rm -f conftest.er1 |
| 11594 | cat conftest.err >&5 |
| 11595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11596 | (exit $ac_status); } >/dev/null; then |
| 11597 | if test -s conftest.err; then |
| 11598 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11599 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11600 | else |
| 11601 | ac_cpp_err= |
| 11602 | fi |
| 11603 | else |
| 11604 | ac_cpp_err=yes |
| 11605 | fi |
| 11606 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11607 | ac_header_preproc=yes |
| 11608 | else |
| 11609 | echo "$as_me: failed program was:" >&5 |
| 11610 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11611 | |
| 11612 | ac_header_preproc=no |
| 11613 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11614 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11615 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11616 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11617 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11618 | |
| 11619 | # So? What about this header? |
| 11620 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11621 | yes:no: ) |
| 11622 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11623 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11624 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11625 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11626 | ac_header_preproc=yes |
| 11627 | ;; |
| 11628 | no:yes:* ) |
| 11629 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11630 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11631 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11632 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11633 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11634 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11635 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11636 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11637 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11638 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11639 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11640 | 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] | 11641 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11642 | ## ----------------------------------- ## |
| 11643 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11644 | ## ----------------------------------- ## |
| 11645 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11646 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11647 | ;; |
| 11648 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11649 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11650 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11651 | 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] | 11652 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11653 | else |
| 11654 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11655 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11656 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11657 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11658 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11659 | |
| 11660 | fi |
| 11661 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11662 | cat >>confdefs.h <<_ACEOF |
| 11663 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11664 | _ACEOF |
| 11665 | |
| 11666 | fi |
| 11667 | |
| 11668 | done |
| 11669 | |
| 11670 | |
| 11671 | |
| 11672 | |
| 11673 | |
| 11674 | for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h |
| 11675 | do |
| 11676 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11677 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11678 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11679 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11680 | 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] | 11681 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11682 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11683 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11684 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11685 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11686 | else |
| 11687 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11688 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11689 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11690 | cat >conftest.$ac_ext <<_ACEOF |
| 11691 | /* confdefs.h. */ |
| 11692 | _ACEOF |
| 11693 | cat confdefs.h >>conftest.$ac_ext |
| 11694 | cat >>conftest.$ac_ext <<_ACEOF |
| 11695 | /* end confdefs.h. */ |
| 11696 | $ac_includes_default |
| 11697 | #include <$ac_header> |
| 11698 | _ACEOF |
| 11699 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11700 | if { (ac_try="$ac_compile" |
| 11701 | case "(($ac_try" in |
| 11702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11703 | *) ac_try_echo=$ac_try;; |
| 11704 | esac |
| 11705 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11706 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11707 | ac_status=$? |
| 11708 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11709 | rm -f conftest.er1 |
| 11710 | cat conftest.err >&5 |
| 11711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11712 | (exit $ac_status); } && |
| 11713 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11714 | { (case "(($ac_try" in |
| 11715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11716 | *) ac_try_echo=$ac_try;; |
| 11717 | esac |
| 11718 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11719 | (eval "$ac_try") 2>&5 |
| 11720 | ac_status=$? |
| 11721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11722 | (exit $ac_status); }; } && |
| 11723 | { ac_try='test -s conftest.$ac_objext' |
| 11724 | { (case "(($ac_try" in |
| 11725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11726 | *) ac_try_echo=$ac_try;; |
| 11727 | esac |
| 11728 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11729 | (eval "$ac_try") 2>&5 |
| 11730 | ac_status=$? |
| 11731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11732 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11733 | ac_header_compiler=yes |
| 11734 | else |
| 11735 | echo "$as_me: failed program was:" >&5 |
| 11736 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11737 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11738 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11739 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11740 | |
| 11741 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11742 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11743 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11744 | |
| 11745 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11746 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11747 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11748 | cat >conftest.$ac_ext <<_ACEOF |
| 11749 | /* confdefs.h. */ |
| 11750 | _ACEOF |
| 11751 | cat confdefs.h >>conftest.$ac_ext |
| 11752 | cat >>conftest.$ac_ext <<_ACEOF |
| 11753 | /* end confdefs.h. */ |
| 11754 | #include <$ac_header> |
| 11755 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11756 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11757 | case "(($ac_try" in |
| 11758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11759 | *) ac_try_echo=$ac_try;; |
| 11760 | esac |
| 11761 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11762 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11763 | ac_status=$? |
| 11764 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11765 | rm -f conftest.er1 |
| 11766 | cat conftest.err >&5 |
| 11767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11768 | (exit $ac_status); } >/dev/null; then |
| 11769 | if test -s conftest.err; then |
| 11770 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11771 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11772 | else |
| 11773 | ac_cpp_err= |
| 11774 | fi |
| 11775 | else |
| 11776 | ac_cpp_err=yes |
| 11777 | fi |
| 11778 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11779 | ac_header_preproc=yes |
| 11780 | else |
| 11781 | echo "$as_me: failed program was:" >&5 |
| 11782 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11783 | |
| 11784 | ac_header_preproc=no |
| 11785 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11786 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11787 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11788 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11789 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11790 | |
| 11791 | # So? What about this header? |
| 11792 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11793 | yes:no: ) |
| 11794 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11795 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11796 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11797 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11798 | ac_header_preproc=yes |
| 11799 | ;; |
| 11800 | no:yes:* ) |
| 11801 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11802 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11803 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11804 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11805 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11806 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11807 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11808 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11809 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11810 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11811 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11812 | 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] | 11813 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11814 | ## ----------------------------------- ## |
| 11815 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11816 | ## ----------------------------------- ## |
| 11817 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11818 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11819 | ;; |
| 11820 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11821 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11822 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11823 | 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] | 11824 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11825 | else |
| 11826 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11827 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11828 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11829 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11830 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11831 | |
| 11832 | fi |
| 11833 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11834 | cat >>confdefs.h <<_ACEOF |
| 11835 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11836 | _ACEOF |
| 11837 | |
| 11838 | fi |
| 11839 | |
| 11840 | done |
| 11841 | |
| 11842 | |
| 11843 | |
| 11844 | for ac_header in string.h strings.h |
| 11845 | do |
| 11846 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11847 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11848 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11849 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11850 | 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] | 11851 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11852 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11853 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11854 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11855 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11856 | else |
| 11857 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11858 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11859 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11860 | cat >conftest.$ac_ext <<_ACEOF |
| 11861 | /* confdefs.h. */ |
| 11862 | _ACEOF |
| 11863 | cat confdefs.h >>conftest.$ac_ext |
| 11864 | cat >>conftest.$ac_ext <<_ACEOF |
| 11865 | /* end confdefs.h. */ |
| 11866 | $ac_includes_default |
| 11867 | #include <$ac_header> |
| 11868 | _ACEOF |
| 11869 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11870 | if { (ac_try="$ac_compile" |
| 11871 | case "(($ac_try" in |
| 11872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11873 | *) ac_try_echo=$ac_try;; |
| 11874 | esac |
| 11875 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11876 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11877 | ac_status=$? |
| 11878 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11879 | rm -f conftest.er1 |
| 11880 | cat conftest.err >&5 |
| 11881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11882 | (exit $ac_status); } && |
| 11883 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11884 | { (case "(($ac_try" in |
| 11885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11886 | *) ac_try_echo=$ac_try;; |
| 11887 | esac |
| 11888 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11889 | (eval "$ac_try") 2>&5 |
| 11890 | ac_status=$? |
| 11891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11892 | (exit $ac_status); }; } && |
| 11893 | { ac_try='test -s conftest.$ac_objext' |
| 11894 | { (case "(($ac_try" in |
| 11895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11896 | *) ac_try_echo=$ac_try;; |
| 11897 | esac |
| 11898 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11899 | (eval "$ac_try") 2>&5 |
| 11900 | ac_status=$? |
| 11901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11902 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11903 | ac_header_compiler=yes |
| 11904 | else |
| 11905 | echo "$as_me: failed program was:" >&5 |
| 11906 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11907 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11908 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11909 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11910 | |
| 11911 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11912 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11913 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11914 | |
| 11915 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11916 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11917 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11918 | cat >conftest.$ac_ext <<_ACEOF |
| 11919 | /* confdefs.h. */ |
| 11920 | _ACEOF |
| 11921 | cat confdefs.h >>conftest.$ac_ext |
| 11922 | cat >>conftest.$ac_ext <<_ACEOF |
| 11923 | /* end confdefs.h. */ |
| 11924 | #include <$ac_header> |
| 11925 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11926 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11927 | case "(($ac_try" in |
| 11928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11929 | *) ac_try_echo=$ac_try;; |
| 11930 | esac |
| 11931 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11932 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11933 | ac_status=$? |
| 11934 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11935 | rm -f conftest.er1 |
| 11936 | cat conftest.err >&5 |
| 11937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11938 | (exit $ac_status); } >/dev/null; then |
| 11939 | if test -s conftest.err; then |
| 11940 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11941 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11942 | else |
| 11943 | ac_cpp_err= |
| 11944 | fi |
| 11945 | else |
| 11946 | ac_cpp_err=yes |
| 11947 | fi |
| 11948 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11949 | ac_header_preproc=yes |
| 11950 | else |
| 11951 | echo "$as_me: failed program was:" >&5 |
| 11952 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11953 | |
| 11954 | ac_header_preproc=no |
| 11955 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11956 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11957 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11958 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11959 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11960 | |
| 11961 | # So? What about this header? |
| 11962 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11963 | yes:no: ) |
| 11964 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11965 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11966 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11967 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11968 | ac_header_preproc=yes |
| 11969 | ;; |
| 11970 | no:yes:* ) |
| 11971 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11972 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11973 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11974 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11975 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11976 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11977 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11978 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11979 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11980 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11981 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11982 | 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] | 11983 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11984 | ## ----------------------------------- ## |
| 11985 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11986 | ## ----------------------------------- ## |
| 11987 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11988 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11989 | ;; |
| 11990 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11991 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11992 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11993 | 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] | 11994 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11995 | else |
| 11996 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11997 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11998 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11999 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12000 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12001 | |
| 12002 | fi |
| 12003 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12004 | cat >>confdefs.h <<_ACEOF |
| 12005 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12006 | _ACEOF |
| 12007 | break |
| 12008 | fi |
| 12009 | |
| 12010 | done |
| 12011 | |
| 12012 | |
| 12013 | |
| 12014 | |
| 12015 | for ac_func in strchr index |
| 12016 | do |
| 12017 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12018 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12019 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12020 | 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] | 12021 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12022 | else |
| 12023 | cat >conftest.$ac_ext <<_ACEOF |
| 12024 | /* confdefs.h. */ |
| 12025 | _ACEOF |
| 12026 | cat confdefs.h >>conftest.$ac_ext |
| 12027 | cat >>conftest.$ac_ext <<_ACEOF |
| 12028 | /* end confdefs.h. */ |
| 12029 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12030 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12031 | #define $ac_func innocuous_$ac_func |
| 12032 | |
| 12033 | /* System header to define __stub macros and hopefully few prototypes, |
| 12034 | which can conflict with char $ac_func (); below. |
| 12035 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12036 | <limits.h> exists even on freestanding compilers. */ |
| 12037 | |
| 12038 | #ifdef __STDC__ |
| 12039 | # include <limits.h> |
| 12040 | #else |
| 12041 | # include <assert.h> |
| 12042 | #endif |
| 12043 | |
| 12044 | #undef $ac_func |
| 12045 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12046 | /* Override any GCC internal prototype to avoid an error. |
| 12047 | Use char because int might match the return type of a GCC |
| 12048 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12049 | #ifdef __cplusplus |
| 12050 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12051 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12052 | char $ac_func (); |
| 12053 | /* The GNU C library defines this for functions which it implements |
| 12054 | to always fail with ENOSYS. Some functions are actually named |
| 12055 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12056 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12057 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12058 | #endif |
| 12059 | |
| 12060 | int |
| 12061 | main () |
| 12062 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12063 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12064 | ; |
| 12065 | return 0; |
| 12066 | } |
| 12067 | _ACEOF |
| 12068 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12069 | if { (ac_try="$ac_link" |
| 12070 | case "(($ac_try" in |
| 12071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12072 | *) ac_try_echo=$ac_try;; |
| 12073 | esac |
| 12074 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12075 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12076 | ac_status=$? |
| 12077 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12078 | rm -f conftest.er1 |
| 12079 | cat conftest.err >&5 |
| 12080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12081 | (exit $ac_status); } && |
| 12082 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12083 | { (case "(($ac_try" in |
| 12084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12085 | *) ac_try_echo=$ac_try;; |
| 12086 | esac |
| 12087 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12088 | (eval "$ac_try") 2>&5 |
| 12089 | ac_status=$? |
| 12090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12091 | (exit $ac_status); }; } && |
| 12092 | { ac_try='test -s conftest$ac_exeext' |
| 12093 | { (case "(($ac_try" in |
| 12094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12095 | *) ac_try_echo=$ac_try;; |
| 12096 | esac |
| 12097 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12098 | (eval "$ac_try") 2>&5 |
| 12099 | ac_status=$? |
| 12100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12101 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12102 | eval "$as_ac_var=yes" |
| 12103 | else |
| 12104 | echo "$as_me: failed program was:" >&5 |
| 12105 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12106 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12107 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12108 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12109 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12110 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12111 | conftest$ac_exeext conftest.$ac_ext |
| 12112 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12113 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12114 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12115 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12116 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12117 | cat >>confdefs.h <<_ACEOF |
| 12118 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12119 | _ACEOF |
| 12120 | break |
| 12121 | fi |
| 12122 | done |
| 12123 | |
| 12124 | |
| 12125 | |
| 12126 | for ac_func in strrchr rindex |
| 12127 | do |
| 12128 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12129 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12130 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12131 | 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] | 12132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12133 | else |
| 12134 | cat >conftest.$ac_ext <<_ACEOF |
| 12135 | /* confdefs.h. */ |
| 12136 | _ACEOF |
| 12137 | cat confdefs.h >>conftest.$ac_ext |
| 12138 | cat >>conftest.$ac_ext <<_ACEOF |
| 12139 | /* end confdefs.h. */ |
| 12140 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12141 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12142 | #define $ac_func innocuous_$ac_func |
| 12143 | |
| 12144 | /* System header to define __stub macros and hopefully few prototypes, |
| 12145 | which can conflict with char $ac_func (); below. |
| 12146 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12147 | <limits.h> exists even on freestanding compilers. */ |
| 12148 | |
| 12149 | #ifdef __STDC__ |
| 12150 | # include <limits.h> |
| 12151 | #else |
| 12152 | # include <assert.h> |
| 12153 | #endif |
| 12154 | |
| 12155 | #undef $ac_func |
| 12156 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12157 | /* Override any GCC internal prototype to avoid an error. |
| 12158 | Use char because int might match the return type of a GCC |
| 12159 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12160 | #ifdef __cplusplus |
| 12161 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12162 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12163 | char $ac_func (); |
| 12164 | /* The GNU C library defines this for functions which it implements |
| 12165 | to always fail with ENOSYS. Some functions are actually named |
| 12166 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12167 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12168 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12169 | #endif |
| 12170 | |
| 12171 | int |
| 12172 | main () |
| 12173 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12174 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12175 | ; |
| 12176 | return 0; |
| 12177 | } |
| 12178 | _ACEOF |
| 12179 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12180 | if { (ac_try="$ac_link" |
| 12181 | case "(($ac_try" in |
| 12182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12183 | *) ac_try_echo=$ac_try;; |
| 12184 | esac |
| 12185 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12186 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12187 | ac_status=$? |
| 12188 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12189 | rm -f conftest.er1 |
| 12190 | cat conftest.err >&5 |
| 12191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12192 | (exit $ac_status); } && |
| 12193 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12194 | { (case "(($ac_try" in |
| 12195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12196 | *) ac_try_echo=$ac_try;; |
| 12197 | esac |
| 12198 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12199 | (eval "$ac_try") 2>&5 |
| 12200 | ac_status=$? |
| 12201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12202 | (exit $ac_status); }; } && |
| 12203 | { ac_try='test -s conftest$ac_exeext' |
| 12204 | { (case "(($ac_try" in |
| 12205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12206 | *) ac_try_echo=$ac_try;; |
| 12207 | esac |
| 12208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12209 | (eval "$ac_try") 2>&5 |
| 12210 | ac_status=$? |
| 12211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12212 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12213 | eval "$as_ac_var=yes" |
| 12214 | else |
| 12215 | echo "$as_me: failed program was:" >&5 |
| 12216 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12217 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12218 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12219 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12220 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12221 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12222 | conftest$ac_exeext conftest.$ac_ext |
| 12223 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12224 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12225 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12226 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12227 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12228 | cat >>confdefs.h <<_ACEOF |
| 12229 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12230 | _ACEOF |
| 12231 | break |
| 12232 | fi |
| 12233 | done |
| 12234 | |
| 12235 | |
| 12236 | |
| 12237 | for ac_func in memcpy bcopy |
| 12238 | do |
| 12239 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12240 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12241 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12242 | 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] | 12243 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12244 | else |
| 12245 | cat >conftest.$ac_ext <<_ACEOF |
| 12246 | /* confdefs.h. */ |
| 12247 | _ACEOF |
| 12248 | cat confdefs.h >>conftest.$ac_ext |
| 12249 | cat >>conftest.$ac_ext <<_ACEOF |
| 12250 | /* end confdefs.h. */ |
| 12251 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12252 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12253 | #define $ac_func innocuous_$ac_func |
| 12254 | |
| 12255 | /* System header to define __stub macros and hopefully few prototypes, |
| 12256 | which can conflict with char $ac_func (); below. |
| 12257 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12258 | <limits.h> exists even on freestanding compilers. */ |
| 12259 | |
| 12260 | #ifdef __STDC__ |
| 12261 | # include <limits.h> |
| 12262 | #else |
| 12263 | # include <assert.h> |
| 12264 | #endif |
| 12265 | |
| 12266 | #undef $ac_func |
| 12267 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12268 | /* Override any GCC internal prototype to avoid an error. |
| 12269 | Use char because int might match the return type of a GCC |
| 12270 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12271 | #ifdef __cplusplus |
| 12272 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12273 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12274 | char $ac_func (); |
| 12275 | /* The GNU C library defines this for functions which it implements |
| 12276 | to always fail with ENOSYS. Some functions are actually named |
| 12277 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12278 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12279 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12280 | #endif |
| 12281 | |
| 12282 | int |
| 12283 | main () |
| 12284 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12285 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12286 | ; |
| 12287 | return 0; |
| 12288 | } |
| 12289 | _ACEOF |
| 12290 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12291 | if { (ac_try="$ac_link" |
| 12292 | case "(($ac_try" in |
| 12293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12294 | *) ac_try_echo=$ac_try;; |
| 12295 | esac |
| 12296 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12297 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12298 | ac_status=$? |
| 12299 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12300 | rm -f conftest.er1 |
| 12301 | cat conftest.err >&5 |
| 12302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12303 | (exit $ac_status); } && |
| 12304 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12305 | { (case "(($ac_try" in |
| 12306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12307 | *) ac_try_echo=$ac_try;; |
| 12308 | esac |
| 12309 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12310 | (eval "$ac_try") 2>&5 |
| 12311 | ac_status=$? |
| 12312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12313 | (exit $ac_status); }; } && |
| 12314 | { ac_try='test -s conftest$ac_exeext' |
| 12315 | { (case "(($ac_try" in |
| 12316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12317 | *) ac_try_echo=$ac_try;; |
| 12318 | esac |
| 12319 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12320 | (eval "$ac_try") 2>&5 |
| 12321 | ac_status=$? |
| 12322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12323 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12324 | eval "$as_ac_var=yes" |
| 12325 | else |
| 12326 | echo "$as_me: failed program was:" >&5 |
| 12327 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12328 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12329 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12330 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12331 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12332 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12333 | conftest$ac_exeext conftest.$ac_ext |
| 12334 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12335 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12336 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12337 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12338 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12339 | cat >>confdefs.h <<_ACEOF |
| 12340 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12341 | _ACEOF |
| 12342 | break |
| 12343 | fi |
| 12344 | done |
| 12345 | |
| 12346 | |
| 12347 | |
| 12348 | for ac_func in memmove strcmp |
| 12349 | do |
| 12350 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12351 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12352 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12353 | 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] | 12354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12355 | else |
| 12356 | cat >conftest.$ac_ext <<_ACEOF |
| 12357 | /* confdefs.h. */ |
| 12358 | _ACEOF |
| 12359 | cat confdefs.h >>conftest.$ac_ext |
| 12360 | cat >>conftest.$ac_ext <<_ACEOF |
| 12361 | /* end confdefs.h. */ |
| 12362 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12363 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12364 | #define $ac_func innocuous_$ac_func |
| 12365 | |
| 12366 | /* System header to define __stub macros and hopefully few prototypes, |
| 12367 | which can conflict with char $ac_func (); below. |
| 12368 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12369 | <limits.h> exists even on freestanding compilers. */ |
| 12370 | |
| 12371 | #ifdef __STDC__ |
| 12372 | # include <limits.h> |
| 12373 | #else |
| 12374 | # include <assert.h> |
| 12375 | #endif |
| 12376 | |
| 12377 | #undef $ac_func |
| 12378 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12379 | /* Override any GCC internal prototype to avoid an error. |
| 12380 | Use char because int might match the return type of a GCC |
| 12381 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12382 | #ifdef __cplusplus |
| 12383 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12384 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12385 | char $ac_func (); |
| 12386 | /* The GNU C library defines this for functions which it implements |
| 12387 | to always fail with ENOSYS. Some functions are actually named |
| 12388 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12389 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12390 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12391 | #endif |
| 12392 | |
| 12393 | int |
| 12394 | main () |
| 12395 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12396 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12397 | ; |
| 12398 | return 0; |
| 12399 | } |
| 12400 | _ACEOF |
| 12401 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12402 | if { (ac_try="$ac_link" |
| 12403 | case "(($ac_try" in |
| 12404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12405 | *) ac_try_echo=$ac_try;; |
| 12406 | esac |
| 12407 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12408 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12409 | ac_status=$? |
| 12410 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12411 | rm -f conftest.er1 |
| 12412 | cat conftest.err >&5 |
| 12413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12414 | (exit $ac_status); } && |
| 12415 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12416 | { (case "(($ac_try" in |
| 12417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12418 | *) ac_try_echo=$ac_try;; |
| 12419 | esac |
| 12420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12421 | (eval "$ac_try") 2>&5 |
| 12422 | ac_status=$? |
| 12423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12424 | (exit $ac_status); }; } && |
| 12425 | { ac_try='test -s conftest$ac_exeext' |
| 12426 | { (case "(($ac_try" in |
| 12427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12428 | *) ac_try_echo=$ac_try;; |
| 12429 | esac |
| 12430 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12431 | (eval "$ac_try") 2>&5 |
| 12432 | ac_status=$? |
| 12433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12434 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12435 | eval "$as_ac_var=yes" |
| 12436 | else |
| 12437 | echo "$as_me: failed program was:" >&5 |
| 12438 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12439 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12440 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12441 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12442 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12443 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12444 | conftest$ac_exeext conftest.$ac_ext |
| 12445 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12446 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12447 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12448 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12449 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12450 | cat >>confdefs.h <<_ACEOF |
| 12451 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12452 | _ACEOF |
| 12453 | |
| 12454 | fi |
| 12455 | done |
| 12456 | |
| 12457 | |
| 12458 | |
| 12459 | |
| 12460 | for ac_func in closedir opendir readdir |
| 12461 | do |
| 12462 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12463 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12464 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12465 | 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] | 12466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12467 | else |
| 12468 | cat >conftest.$ac_ext <<_ACEOF |
| 12469 | /* confdefs.h. */ |
| 12470 | _ACEOF |
| 12471 | cat confdefs.h >>conftest.$ac_ext |
| 12472 | cat >>conftest.$ac_ext <<_ACEOF |
| 12473 | /* end confdefs.h. */ |
| 12474 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12475 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12476 | #define $ac_func innocuous_$ac_func |
| 12477 | |
| 12478 | /* System header to define __stub macros and hopefully few prototypes, |
| 12479 | which can conflict with char $ac_func (); below. |
| 12480 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12481 | <limits.h> exists even on freestanding compilers. */ |
| 12482 | |
| 12483 | #ifdef __STDC__ |
| 12484 | # include <limits.h> |
| 12485 | #else |
| 12486 | # include <assert.h> |
| 12487 | #endif |
| 12488 | |
| 12489 | #undef $ac_func |
| 12490 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12491 | /* Override any GCC internal prototype to avoid an error. |
| 12492 | Use char because int might match the return type of a GCC |
| 12493 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12494 | #ifdef __cplusplus |
| 12495 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12496 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12497 | char $ac_func (); |
| 12498 | /* The GNU C library defines this for functions which it implements |
| 12499 | to always fail with ENOSYS. Some functions are actually named |
| 12500 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12501 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12502 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12503 | #endif |
| 12504 | |
| 12505 | int |
| 12506 | main () |
| 12507 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12508 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12509 | ; |
| 12510 | return 0; |
| 12511 | } |
| 12512 | _ACEOF |
| 12513 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12514 | if { (ac_try="$ac_link" |
| 12515 | case "(($ac_try" in |
| 12516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12517 | *) ac_try_echo=$ac_try;; |
| 12518 | esac |
| 12519 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12520 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12521 | ac_status=$? |
| 12522 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12523 | rm -f conftest.er1 |
| 12524 | cat conftest.err >&5 |
| 12525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12526 | (exit $ac_status); } && |
| 12527 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12528 | { (case "(($ac_try" in |
| 12529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12530 | *) ac_try_echo=$ac_try;; |
| 12531 | esac |
| 12532 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12533 | (eval "$ac_try") 2>&5 |
| 12534 | ac_status=$? |
| 12535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12536 | (exit $ac_status); }; } && |
| 12537 | { ac_try='test -s conftest$ac_exeext' |
| 12538 | { (case "(($ac_try" in |
| 12539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12540 | *) ac_try_echo=$ac_try;; |
| 12541 | esac |
| 12542 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12543 | (eval "$ac_try") 2>&5 |
| 12544 | ac_status=$? |
| 12545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12546 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12547 | eval "$as_ac_var=yes" |
| 12548 | else |
| 12549 | echo "$as_me: failed program was:" >&5 |
| 12550 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12551 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12552 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12553 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12554 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 12555 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12556 | conftest$ac_exeext conftest.$ac_ext |
| 12557 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12558 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12559 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12560 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12561 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12562 | cat >>confdefs.h <<_ACEOF |
| 12563 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12564 | _ACEOF |
| 12565 | |
| 12566 | fi |
| 12567 | done |
| 12568 | |
| 12569 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12570 | # Check whether --enable-shared was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12571 | if test "${enable_shared+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12572 | enableval=$enable_shared; p=${PACKAGE-default} |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12573 | case $enableval in |
| 12574 | yes) enable_shared=yes ;; |
| 12575 | no) enable_shared=no ;; |
| 12576 | *) |
| 12577 | enable_shared=no |
| 12578 | # Look at the argument we got. We use all the common list separators. |
| 12579 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 12580 | for pkg in $enableval; do |
| 12581 | IFS="$lt_save_ifs" |
| 12582 | if test "X$pkg" = "X$p"; then |
| 12583 | enable_shared=yes |
| 12584 | fi |
| 12585 | done |
| 12586 | IFS="$lt_save_ifs" |
| 12587 | ;; |
| 12588 | esac |
| 12589 | else |
| 12590 | enable_shared=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12591 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12592 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12593 | |
| 12594 | # Check whether --enable-static was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12595 | if test "${enable_static+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12596 | enableval=$enable_static; p=${PACKAGE-default} |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12597 | case $enableval in |
| 12598 | yes) enable_static=yes ;; |
| 12599 | no) enable_static=no ;; |
| 12600 | *) |
| 12601 | enable_static=no |
| 12602 | # Look at the argument we got. We use all the common list separators. |
| 12603 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 12604 | for pkg in $enableval; do |
| 12605 | IFS="$lt_save_ifs" |
| 12606 | if test "X$pkg" = "X$p"; then |
| 12607 | enable_static=yes |
| 12608 | fi |
| 12609 | done |
| 12610 | IFS="$lt_save_ifs" |
| 12611 | ;; |
| 12612 | esac |
| 12613 | else |
| 12614 | enable_static=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12615 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12616 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12617 | |
| 12618 | # Check whether --enable-fast-install was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12619 | if test "${enable_fast_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12620 | enableval=$enable_fast_install; p=${PACKAGE-default} |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12621 | case $enableval in |
| 12622 | yes) enable_fast_install=yes ;; |
| 12623 | no) enable_fast_install=no ;; |
| 12624 | *) |
| 12625 | enable_fast_install=no |
| 12626 | # Look at the argument we got. We use all the common list separators. |
| 12627 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 12628 | for pkg in $enableval; do |
| 12629 | IFS="$lt_save_ifs" |
| 12630 | if test "X$pkg" = "X$p"; then |
| 12631 | enable_fast_install=yes |
| 12632 | fi |
| 12633 | done |
| 12634 | IFS="$lt_save_ifs" |
| 12635 | ;; |
| 12636 | esac |
| 12637 | else |
| 12638 | enable_fast_install=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12639 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12640 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12641 | |
| 12642 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 12643 | 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] | 12644 | if test "${lt_cv_path_SED+set}" = set; then |
| 12645 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12646 | else |
| 12647 | # Loop through the user's path and test for sed and gsed. |
| 12648 | # Then use that list of sed's as ones to test for truncation. |
| 12649 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12650 | for as_dir in $PATH |
| 12651 | do |
| 12652 | IFS=$as_save_IFS |
| 12653 | test -z "$as_dir" && as_dir=. |
| 12654 | for lt_ac_prog in sed gsed; do |
| 12655 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12656 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
| 12657 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
| 12658 | fi |
| 12659 | done |
| 12660 | done |
| 12661 | done |
| 12662 | lt_ac_max=0 |
| 12663 | lt_ac_count=0 |
| 12664 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 12665 | # along with /bin/sed that truncates output. |
| 12666 | 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] | 12667 | test ! -f $lt_ac_sed && continue |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12668 | cat /dev/null > conftest.in |
| 12669 | lt_ac_count=0 |
| 12670 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| 12671 | # Check for GNU sed and select it if it is found. |
| 12672 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
| 12673 | lt_cv_path_SED=$lt_ac_sed |
| 12674 | break |
| 12675 | fi |
| 12676 | while true; do |
| 12677 | cat conftest.in conftest.in >conftest.tmp |
| 12678 | mv conftest.tmp conftest.in |
| 12679 | cp conftest.in conftest.nl |
| 12680 | echo >>conftest.nl |
| 12681 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
| 12682 | cmp -s conftest.out conftest.nl || break |
| 12683 | # 10000 chars as input seems more than enough |
| 12684 | test $lt_ac_count -gt 10 && break |
| 12685 | lt_ac_count=`expr $lt_ac_count + 1` |
| 12686 | if test $lt_ac_count -gt $lt_ac_max; then |
| 12687 | lt_ac_max=$lt_ac_count |
| 12688 | lt_cv_path_SED=$lt_ac_sed |
| 12689 | fi |
| 12690 | done |
| 12691 | done |
| 12692 | |
| 12693 | fi |
| 12694 | |
| 12695 | SED=$lt_cv_path_SED |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12696 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 12697 | echo "${ECHO_T}$SED" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12698 | |
| 12699 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12700 | # Check whether --with-gnu-ld was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12701 | if test "${with_gnu_ld+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12702 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12703 | else |
| 12704 | with_gnu_ld=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12705 | fi |
| 12706 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12707 | ac_prog=ld |
| 12708 | if test "$GCC" = yes; then |
| 12709 | # Check if gcc -print-prog-name=ld gives a path. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12710 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 12711 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12712 | case $host in |
| 12713 | *-*-mingw*) |
| 12714 | # gcc leaves a trailing carriage return which upsets mingw |
| 12715 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 12716 | *) |
| 12717 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 12718 | esac |
| 12719 | case $ac_prog in |
| 12720 | # Accept absolute paths. |
| 12721 | [\\/]* | ?:[\\/]*) |
| 12722 | re_direlt='/[^/][^/]*/\.\./' |
| 12723 | # Canonicalize the pathname of ld |
| 12724 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 12725 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 12726 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 12727 | done |
| 12728 | test -z "$LD" && LD="$ac_prog" |
| 12729 | ;; |
| 12730 | "") |
| 12731 | # If it fails, then pretend we aren't using GCC. |
| 12732 | ac_prog=ld |
| 12733 | ;; |
| 12734 | *) |
| 12735 | # If it is relative, then search for the first ld in PATH. |
| 12736 | with_gnu_ld=unknown |
| 12737 | ;; |
| 12738 | esac |
| 12739 | elif test "$with_gnu_ld" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12740 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 12741 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12742 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12743 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 12744 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12745 | fi |
| 12746 | if test "${lt_cv_path_LD+set}" = set; then |
| 12747 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12748 | else |
| 12749 | if test -z "$LD"; then |
| 12750 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 12751 | for ac_dir in $PATH; do |
| 12752 | IFS="$lt_save_ifs" |
| 12753 | test -z "$ac_dir" && ac_dir=. |
| 12754 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 12755 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 12756 | # 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] | 12757 | # but apparently some variants of GNU ld only accept -v. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12758 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 12759 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 12760 | *GNU* | *'with BFD'*) |
| 12761 | test "$with_gnu_ld" != no && break |
| 12762 | ;; |
| 12763 | *) |
| 12764 | test "$with_gnu_ld" != yes && break |
| 12765 | ;; |
| 12766 | esac |
| 12767 | fi |
| 12768 | done |
| 12769 | IFS="$lt_save_ifs" |
| 12770 | else |
| 12771 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 12772 | fi |
| 12773 | fi |
| 12774 | |
| 12775 | LD="$lt_cv_path_LD" |
| 12776 | if test -n "$LD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12777 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 12778 | echo "${ECHO_T}$LD" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12779 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12780 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12781 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12782 | fi |
| 12783 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 12784 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 12785 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12786 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 12787 | 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] | 12788 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 12789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12790 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12791 | # 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] | 12792 | case `$LD -v 2>&1 </dev/null` in |
| 12793 | *GNU* | *'with BFD'*) |
| 12794 | lt_cv_prog_gnu_ld=yes |
| 12795 | ;; |
| 12796 | *) |
| 12797 | lt_cv_prog_gnu_ld=no |
| 12798 | ;; |
| 12799 | esac |
| 12800 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12801 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 12802 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12803 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 12804 | |
| 12805 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12806 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 12807 | 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] | 12808 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 12809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12810 | else |
| 12811 | lt_cv_ld_reload_flag='-r' |
| 12812 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12813 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 12814 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12815 | reload_flag=$lt_cv_ld_reload_flag |
| 12816 | case $reload_flag in |
| 12817 | "" | " "*) ;; |
| 12818 | *) reload_flag=" $reload_flag" ;; |
| 12819 | esac |
| 12820 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 12821 | case $host_os in |
| 12822 | darwin*) |
| 12823 | if test "$GCC" = yes; then |
Evan Cheng | f4334c7 | 2006-08-09 05:40:14 +0000 | [diff] [blame] | 12824 | 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] | 12825 | else |
| 12826 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 12827 | fi |
| 12828 | ;; |
| 12829 | esac |
| 12830 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12831 | { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 12832 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12833 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 12834 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12835 | else |
| 12836 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 12837 | lt_cv_file_magic_test_file= |
| 12838 | lt_cv_deplibs_check_method='unknown' |
| 12839 | # Need to set the preceding variable on all platforms that support |
| 12840 | # interlibrary dependencies. |
| 12841 | # 'none' -- dependencies not supported. |
| 12842 | # `unknown' -- same as none, but documents that we really don't know. |
| 12843 | # 'pass_all' -- all dependencies passed with no checks. |
| 12844 | # 'test_compile' -- check by making test program. |
| 12845 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 12846 | # which responds to the $file_magic_cmd with a given extended regex. |
| 12847 | # If you have `file' or equivalent on your system and you're not sure |
| 12848 | # whether `pass_all' will *always* work, you probably want this one. |
| 12849 | |
| 12850 | case $host_os in |
| 12851 | aix4* | aix5*) |
| 12852 | lt_cv_deplibs_check_method=pass_all |
| 12853 | ;; |
| 12854 | |
| 12855 | beos*) |
| 12856 | lt_cv_deplibs_check_method=pass_all |
| 12857 | ;; |
| 12858 | |
| 12859 | bsdi[45]*) |
| 12860 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 12861 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 12862 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 12863 | ;; |
| 12864 | |
| 12865 | cygwin*) |
| 12866 | # func_win32_libid is a shell function defined in ltmain.sh |
| 12867 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 12868 | lt_cv_file_magic_cmd='func_win32_libid' |
| 12869 | ;; |
| 12870 | |
| 12871 | mingw* | pw32*) |
| 12872 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 12873 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
| 12874 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 12875 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 12876 | ;; |
| 12877 | |
| 12878 | darwin* | rhapsody*) |
| 12879 | lt_cv_deplibs_check_method=pass_all |
| 12880 | ;; |
| 12881 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12882 | freebsd* | kfreebsd*-gnu | dragonfly*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12883 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 12884 | case $host_cpu in |
| 12885 | i*86 ) |
| 12886 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 12887 | # Let's accept both of them until this is cleared up. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12888 | 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] | 12889 | lt_cv_file_magic_cmd=/usr/bin/file |
| 12890 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 12891 | ;; |
| 12892 | esac |
| 12893 | else |
| 12894 | lt_cv_deplibs_check_method=pass_all |
| 12895 | fi |
| 12896 | ;; |
| 12897 | |
| 12898 | gnu*) |
| 12899 | lt_cv_deplibs_check_method=pass_all |
| 12900 | ;; |
| 12901 | |
| 12902 | hpux10.20* | hpux11*) |
| 12903 | lt_cv_file_magic_cmd=/usr/bin/file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12904 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12905 | ia64*) |
| 12906 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 12907 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 12908 | ;; |
| 12909 | hppa*64*) |
| 12910 | 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]' |
| 12911 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 12912 | ;; |
| 12913 | *) |
| 12914 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 12915 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 12916 | ;; |
| 12917 | esac |
| 12918 | ;; |
| 12919 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12920 | interix3*) |
| 12921 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 12922 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 12923 | ;; |
| 12924 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12925 | irix5* | irix6* | nonstopux*) |
| 12926 | case $LD in |
| 12927 | *-32|*"-32 ") libmagic=32-bit;; |
| 12928 | *-n32|*"-n32 ") libmagic=N32;; |
| 12929 | *-64|*"-64 ") libmagic=64-bit;; |
| 12930 | *) libmagic=never-match;; |
| 12931 | esac |
| 12932 | lt_cv_deplibs_check_method=pass_all |
| 12933 | ;; |
| 12934 | |
| 12935 | # This must be Linux ELF. |
| 12936 | linux*) |
| 12937 | lt_cv_deplibs_check_method=pass_all |
| 12938 | ;; |
| 12939 | |
| 12940 | netbsd*) |
| 12941 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 12942 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 12943 | else |
| 12944 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 12945 | fi |
| 12946 | ;; |
| 12947 | |
| 12948 | newos6*) |
| 12949 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 12950 | lt_cv_file_magic_cmd=/usr/bin/file |
| 12951 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 12952 | ;; |
| 12953 | |
| 12954 | nto-qnx*) |
| 12955 | lt_cv_deplibs_check_method=unknown |
| 12956 | ;; |
| 12957 | |
| 12958 | openbsd*) |
| 12959 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 12960 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 12961 | else |
| 12962 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 12963 | fi |
| 12964 | ;; |
| 12965 | |
| 12966 | osf3* | osf4* | osf5*) |
| 12967 | lt_cv_deplibs_check_method=pass_all |
| 12968 | ;; |
| 12969 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12970 | solaris*) |
| 12971 | lt_cv_deplibs_check_method=pass_all |
| 12972 | ;; |
| 12973 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12974 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12975 | case $host_vendor in |
| 12976 | motorola) |
| 12977 | 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]' |
| 12978 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 12979 | ;; |
| 12980 | ncr) |
| 12981 | lt_cv_deplibs_check_method=pass_all |
| 12982 | ;; |
| 12983 | sequent) |
| 12984 | lt_cv_file_magic_cmd='/bin/file' |
| 12985 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 12986 | ;; |
| 12987 | sni) |
| 12988 | lt_cv_file_magic_cmd='/bin/file' |
| 12989 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 12990 | lt_cv_file_magic_test_file=/lib/libc.so |
| 12991 | ;; |
| 12992 | siemens) |
| 12993 | lt_cv_deplibs_check_method=pass_all |
| 12994 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12995 | pc) |
| 12996 | lt_cv_deplibs_check_method=pass_all |
| 12997 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12998 | esac |
| 12999 | ;; |
| 13000 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13001 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13002 | lt_cv_deplibs_check_method=pass_all |
| 13003 | ;; |
| 13004 | esac |
| 13005 | |
| 13006 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13007 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 13008 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13009 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 13010 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 13011 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 13012 | |
| 13013 | |
| 13014 | |
| 13015 | # If no C compiler was specified, use CC. |
| 13016 | LTCC=${LTCC-"$CC"} |
| 13017 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13018 | # If no C compiler flags were specified, use CFLAGS. |
| 13019 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 13020 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13021 | # Allow CC to be a program name with arguments. |
| 13022 | compiler=$CC |
| 13023 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13024 | # Check whether --enable-libtool-lock was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13025 | if test "${enable_libtool_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13026 | enableval=$enable_libtool_lock; |
| 13027 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13028 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13029 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 13030 | |
| 13031 | # Some flags need to be propagated to the compiler or linker for good |
| 13032 | # libtool support. |
| 13033 | case $host in |
| 13034 | ia64-*-hpux*) |
| 13035 | # Find out which ABI we are using. |
| 13036 | echo 'int i;' > conftest.$ac_ext |
| 13037 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13038 | (eval $ac_compile) 2>&5 |
| 13039 | ac_status=$? |
| 13040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13041 | (exit $ac_status); }; then |
| 13042 | case `/usr/bin/file conftest.$ac_objext` in |
| 13043 | *ELF-32*) |
| 13044 | HPUX_IA64_MODE="32" |
| 13045 | ;; |
| 13046 | *ELF-64*) |
| 13047 | HPUX_IA64_MODE="64" |
| 13048 | ;; |
| 13049 | esac |
| 13050 | fi |
| 13051 | rm -rf conftest* |
| 13052 | ;; |
| 13053 | *-*-irix6*) |
| 13054 | # Find out which ABI we are using. |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 13055 | echo '#line 13060 "configure"' > conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13056 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13057 | (eval $ac_compile) 2>&5 |
| 13058 | ac_status=$? |
| 13059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13060 | (exit $ac_status); }; then |
| 13061 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 13062 | case `/usr/bin/file conftest.$ac_objext` in |
| 13063 | *32-bit*) |
| 13064 | LD="${LD-ld} -melf32bsmip" |
| 13065 | ;; |
| 13066 | *N32*) |
| 13067 | LD="${LD-ld} -melf32bmipn32" |
| 13068 | ;; |
| 13069 | *64-bit*) |
| 13070 | LD="${LD-ld} -melf64bmip" |
| 13071 | ;; |
| 13072 | esac |
| 13073 | else |
| 13074 | case `/usr/bin/file conftest.$ac_objext` in |
| 13075 | *32-bit*) |
| 13076 | LD="${LD-ld} -32" |
| 13077 | ;; |
| 13078 | *N32*) |
| 13079 | LD="${LD-ld} -n32" |
| 13080 | ;; |
| 13081 | *64-bit*) |
| 13082 | LD="${LD-ld} -64" |
| 13083 | ;; |
| 13084 | esac |
| 13085 | fi |
| 13086 | fi |
| 13087 | rm -rf conftest* |
| 13088 | ;; |
| 13089 | |
| 13090 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| 13091 | # Find out which ABI we are using. |
| 13092 | echo 'int i;' > conftest.$ac_ext |
| 13093 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13094 | (eval $ac_compile) 2>&5 |
| 13095 | ac_status=$? |
| 13096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13097 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13098 | case `/usr/bin/file conftest.o` in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13099 | *32-bit*) |
| 13100 | case $host in |
| 13101 | x86_64-*linux*) |
| 13102 | LD="${LD-ld} -m elf_i386" |
| 13103 | ;; |
| 13104 | ppc64-*linux*|powerpc64-*linux*) |
| 13105 | LD="${LD-ld} -m elf32ppclinux" |
| 13106 | ;; |
| 13107 | s390x-*linux*) |
| 13108 | LD="${LD-ld} -m elf_s390" |
| 13109 | ;; |
| 13110 | sparc64-*linux*) |
| 13111 | LD="${LD-ld} -m elf32_sparc" |
| 13112 | ;; |
| 13113 | esac |
| 13114 | ;; |
| 13115 | *64-bit*) |
| 13116 | case $host in |
| 13117 | x86_64-*linux*) |
| 13118 | LD="${LD-ld} -m elf_x86_64" |
| 13119 | ;; |
| 13120 | ppc*-*linux*|powerpc*-*linux*) |
| 13121 | LD="${LD-ld} -m elf64ppc" |
| 13122 | ;; |
| 13123 | s390*-*linux*) |
| 13124 | LD="${LD-ld} -m elf64_s390" |
| 13125 | ;; |
| 13126 | sparc*-*linux*) |
| 13127 | LD="${LD-ld} -m elf64_sparc" |
| 13128 | ;; |
| 13129 | esac |
| 13130 | ;; |
| 13131 | esac |
| 13132 | fi |
| 13133 | rm -rf conftest* |
| 13134 | ;; |
| 13135 | |
| 13136 | *-*-sco3.2v5*) |
| 13137 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 13138 | SAVE_CFLAGS="$CFLAGS" |
| 13139 | CFLAGS="$CFLAGS -belf" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13140 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 13141 | 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] | 13142 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 13143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13144 | else |
| 13145 | ac_ext=c |
| 13146 | ac_cpp='$CPP $CPPFLAGS' |
| 13147 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13148 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13149 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 13150 | |
| 13151 | cat >conftest.$ac_ext <<_ACEOF |
| 13152 | /* confdefs.h. */ |
| 13153 | _ACEOF |
| 13154 | cat confdefs.h >>conftest.$ac_ext |
| 13155 | cat >>conftest.$ac_ext <<_ACEOF |
| 13156 | /* end confdefs.h. */ |
| 13157 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13158 | int |
| 13159 | main () |
| 13160 | { |
| 13161 | |
| 13162 | ; |
| 13163 | return 0; |
| 13164 | } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13165 | _ACEOF |
| 13166 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13167 | if { (ac_try="$ac_link" |
| 13168 | case "(($ac_try" in |
| 13169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13170 | *) ac_try_echo=$ac_try;; |
| 13171 | esac |
| 13172 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13173 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13174 | ac_status=$? |
| 13175 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13176 | rm -f conftest.er1 |
| 13177 | cat conftest.err >&5 |
| 13178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13179 | (exit $ac_status); } && |
| 13180 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13181 | { (case "(($ac_try" in |
| 13182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13183 | *) ac_try_echo=$ac_try;; |
| 13184 | esac |
| 13185 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13186 | (eval "$ac_try") 2>&5 |
| 13187 | ac_status=$? |
| 13188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13189 | (exit $ac_status); }; } && |
| 13190 | { ac_try='test -s conftest$ac_exeext' |
| 13191 | { (case "(($ac_try" in |
| 13192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13193 | *) ac_try_echo=$ac_try;; |
| 13194 | esac |
| 13195 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13196 | (eval "$ac_try") 2>&5 |
| 13197 | ac_status=$? |
| 13198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13199 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13200 | lt_cv_cc_needs_belf=yes |
| 13201 | else |
| 13202 | echo "$as_me: failed program was:" >&5 |
| 13203 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13204 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13205 | lt_cv_cc_needs_belf=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13206 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13207 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13208 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13209 | conftest$ac_exeext conftest.$ac_ext |
| 13210 | ac_ext=c |
| 13211 | ac_cpp='$CPP $CPPFLAGS' |
| 13212 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13213 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13214 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 13215 | |
| 13216 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13217 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 13218 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13219 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 13220 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 13221 | CFLAGS="$SAVE_CFLAGS" |
| 13222 | fi |
| 13223 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13224 | sparc*-*solaris*) |
| 13225 | # Find out which ABI we are using. |
| 13226 | echo 'int i;' > conftest.$ac_ext |
| 13227 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13228 | (eval $ac_compile) 2>&5 |
| 13229 | ac_status=$? |
| 13230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13231 | (exit $ac_status); }; then |
| 13232 | case `/usr/bin/file conftest.o` in |
| 13233 | *64-bit*) |
| 13234 | case $lt_cv_prog_gnu_ld in |
| 13235 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 13236 | *) LD="${LD-ld} -64" ;; |
| 13237 | esac |
| 13238 | ;; |
| 13239 | esac |
| 13240 | fi |
| 13241 | rm -rf conftest* |
| 13242 | ;; |
| 13243 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13244 | |
| 13245 | esac |
| 13246 | |
| 13247 | need_locks="$enable_libtool_lock" |
| 13248 | |
| 13249 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13250 | |
| 13251 | |
| 13252 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 13253 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 13254 | (test "X$CXX" != "Xg++"))) ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13255 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13256 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 13257 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13258 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13259 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13260 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 13261 | 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] | 13262 | if test -z "$CXXCPP"; then |
| 13263 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13264 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13265 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13266 | # Double quotes because CXXCPP needs to be expanded |
| 13267 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 13268 | do |
| 13269 | ac_preproc_ok=false |
| 13270 | for ac_cxx_preproc_warn_flag in '' yes |
| 13271 | do |
| 13272 | # Use a header file that comes with gcc, so configuring glibc |
| 13273 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13274 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13275 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13276 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 13277 | # not just through cpp. "Syntax error" is here to catch this case. |
| 13278 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13279 | /* confdefs.h. */ |
| 13280 | _ACEOF |
| 13281 | cat confdefs.h >>conftest.$ac_ext |
| 13282 | cat >>conftest.$ac_ext <<_ACEOF |
| 13283 | /* end confdefs.h. */ |
| 13284 | #ifdef __STDC__ |
| 13285 | # include <limits.h> |
| 13286 | #else |
| 13287 | # include <assert.h> |
| 13288 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13289 | Syntax error |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13290 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13291 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13292 | case "(($ac_try" in |
| 13293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13294 | *) ac_try_echo=$ac_try;; |
| 13295 | esac |
| 13296 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13297 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13298 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13299 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13300 | rm -f conftest.er1 |
| 13301 | cat conftest.err >&5 |
| 13302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13303 | (exit $ac_status); } >/dev/null; then |
| 13304 | if test -s conftest.err; then |
| 13305 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 13306 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 13307 | else |
| 13308 | ac_cpp_err= |
| 13309 | fi |
| 13310 | else |
| 13311 | ac_cpp_err=yes |
| 13312 | fi |
| 13313 | if test -z "$ac_cpp_err"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13314 | : |
| 13315 | else |
| 13316 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13317 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13318 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13319 | # Broken: fails on valid input. |
| 13320 | continue |
| 13321 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13322 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13323 | rm -f conftest.err conftest.$ac_ext |
| 13324 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13325 | # OK, works on sane cases. Now check whether nonexistent headers |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13326 | # can be detected and how. |
| 13327 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13328 | /* confdefs.h. */ |
| 13329 | _ACEOF |
| 13330 | cat confdefs.h >>conftest.$ac_ext |
| 13331 | cat >>conftest.$ac_ext <<_ACEOF |
| 13332 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13333 | #include <ac_nonexistent.h> |
| 13334 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13335 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13336 | case "(($ac_try" in |
| 13337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13338 | *) ac_try_echo=$ac_try;; |
| 13339 | esac |
| 13340 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13341 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13342 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13343 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13344 | rm -f conftest.er1 |
| 13345 | cat conftest.err >&5 |
| 13346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13347 | (exit $ac_status); } >/dev/null; then |
| 13348 | if test -s conftest.err; then |
| 13349 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 13350 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 13351 | else |
| 13352 | ac_cpp_err= |
| 13353 | fi |
| 13354 | else |
| 13355 | ac_cpp_err=yes |
| 13356 | fi |
| 13357 | if test -z "$ac_cpp_err"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13358 | # Broken: success on invalid input. |
| 13359 | continue |
| 13360 | else |
| 13361 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13362 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13363 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13364 | # Passes both tests. |
| 13365 | ac_preproc_ok=: |
| 13366 | break |
| 13367 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13368 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13369 | rm -f conftest.err conftest.$ac_ext |
| 13370 | |
| 13371 | done |
| 13372 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 13373 | rm -f conftest.err conftest.$ac_ext |
| 13374 | if $ac_preproc_ok; then |
| 13375 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13376 | fi |
| 13377 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13378 | done |
| 13379 | ac_cv_prog_CXXCPP=$CXXCPP |
| 13380 | |
| 13381 | fi |
| 13382 | CXXCPP=$ac_cv_prog_CXXCPP |
| 13383 | else |
| 13384 | ac_cv_prog_CXXCPP=$CXXCPP |
| 13385 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13386 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 13387 | echo "${ECHO_T}$CXXCPP" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13388 | ac_preproc_ok=false |
| 13389 | for ac_cxx_preproc_warn_flag in '' yes |
| 13390 | do |
| 13391 | # Use a header file that comes with gcc, so configuring glibc |
| 13392 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13393 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13394 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13395 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 13396 | # not just through cpp. "Syntax error" is here to catch this case. |
| 13397 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13398 | /* confdefs.h. */ |
| 13399 | _ACEOF |
| 13400 | cat confdefs.h >>conftest.$ac_ext |
| 13401 | cat >>conftest.$ac_ext <<_ACEOF |
| 13402 | /* end confdefs.h. */ |
| 13403 | #ifdef __STDC__ |
| 13404 | # include <limits.h> |
| 13405 | #else |
| 13406 | # include <assert.h> |
| 13407 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13408 | Syntax error |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13409 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13410 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13411 | case "(($ac_try" in |
| 13412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13413 | *) ac_try_echo=$ac_try;; |
| 13414 | esac |
| 13415 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13416 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13417 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13418 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13419 | rm -f conftest.er1 |
| 13420 | cat conftest.err >&5 |
| 13421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13422 | (exit $ac_status); } >/dev/null; then |
| 13423 | if test -s conftest.err; then |
| 13424 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 13425 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 13426 | else |
| 13427 | ac_cpp_err= |
| 13428 | fi |
| 13429 | else |
| 13430 | ac_cpp_err=yes |
| 13431 | fi |
| 13432 | if test -z "$ac_cpp_err"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13433 | : |
| 13434 | else |
| 13435 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13436 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13437 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13438 | # Broken: fails on valid input. |
| 13439 | continue |
| 13440 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13441 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13442 | rm -f conftest.err conftest.$ac_ext |
| 13443 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13444 | # OK, works on sane cases. Now check whether nonexistent headers |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13445 | # can be detected and how. |
| 13446 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13447 | /* confdefs.h. */ |
| 13448 | _ACEOF |
| 13449 | cat confdefs.h >>conftest.$ac_ext |
| 13450 | cat >>conftest.$ac_ext <<_ACEOF |
| 13451 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13452 | #include <ac_nonexistent.h> |
| 13453 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13454 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13455 | case "(($ac_try" in |
| 13456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13457 | *) ac_try_echo=$ac_try;; |
| 13458 | esac |
| 13459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13460 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13461 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13462 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13463 | rm -f conftest.er1 |
| 13464 | cat conftest.err >&5 |
| 13465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13466 | (exit $ac_status); } >/dev/null; then |
| 13467 | if test -s conftest.err; then |
| 13468 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 13469 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 13470 | else |
| 13471 | ac_cpp_err= |
| 13472 | fi |
| 13473 | else |
| 13474 | ac_cpp_err=yes |
| 13475 | fi |
| 13476 | if test -z "$ac_cpp_err"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13477 | # Broken: success on invalid input. |
| 13478 | continue |
| 13479 | else |
| 13480 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13481 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13482 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13483 | # Passes both tests. |
| 13484 | ac_preproc_ok=: |
| 13485 | break |
| 13486 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13487 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13488 | rm -f conftest.err conftest.$ac_ext |
| 13489 | |
| 13490 | done |
| 13491 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 13492 | rm -f conftest.err conftest.$ac_ext |
| 13493 | if $ac_preproc_ok; then |
| 13494 | : |
| 13495 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13496 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 13497 | See \`config.log' for more details." >&5 |
| 13498 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 13499 | See \`config.log' for more details." >&2;} |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13500 | { (exit 1); exit 1; }; } |
| 13501 | fi |
| 13502 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13503 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13504 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 13505 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13506 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13507 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 13508 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13509 | fi |
| 13510 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13511 | |
| 13512 | ac_ext=f |
| 13513 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 13514 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13515 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 13516 | if test -n "$ac_tool_prefix"; then |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13517 | 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] | 13518 | do |
| 13519 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 13520 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13521 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13522 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13523 | if test "${ac_cv_prog_F77+set}" = set; then |
| 13524 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13525 | else |
| 13526 | if test -n "$F77"; then |
| 13527 | ac_cv_prog_F77="$F77" # Let the user override the test. |
| 13528 | else |
| 13529 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13530 | for as_dir in $PATH |
| 13531 | do |
| 13532 | IFS=$as_save_IFS |
| 13533 | test -z "$as_dir" && as_dir=. |
| 13534 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13535 | 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] | 13536 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
| 13537 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13538 | break 2 |
| 13539 | fi |
| 13540 | done |
| 13541 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13542 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13543 | |
| 13544 | fi |
| 13545 | fi |
| 13546 | F77=$ac_cv_prog_F77 |
| 13547 | if test -n "$F77"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13548 | { echo "$as_me:$LINENO: result: $F77" >&5 |
| 13549 | echo "${ECHO_T}$F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13550 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13551 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13552 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13553 | fi |
| 13554 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13555 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13556 | test -n "$F77" && break |
| 13557 | done |
| 13558 | fi |
| 13559 | if test -z "$F77"; then |
| 13560 | ac_ct_F77=$F77 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13561 | 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] | 13562 | do |
| 13563 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 13564 | set dummy $ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13565 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13566 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13567 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
| 13568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13569 | else |
| 13570 | if test -n "$ac_ct_F77"; then |
| 13571 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
| 13572 | else |
| 13573 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13574 | for as_dir in $PATH |
| 13575 | do |
| 13576 | IFS=$as_save_IFS |
| 13577 | test -z "$as_dir" && as_dir=. |
| 13578 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13579 | 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] | 13580 | ac_cv_prog_ac_ct_F77="$ac_prog" |
| 13581 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13582 | break 2 |
| 13583 | fi |
| 13584 | done |
| 13585 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13586 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13587 | |
| 13588 | fi |
| 13589 | fi |
| 13590 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
| 13591 | if test -n "$ac_ct_F77"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13592 | { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
| 13593 | echo "${ECHO_T}$ac_ct_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13594 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13595 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13596 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13597 | fi |
| 13598 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13599 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13600 | test -n "$ac_ct_F77" && break |
| 13601 | done |
| 13602 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13603 | if test "x$ac_ct_F77" = x; then |
| 13604 | F77="" |
| 13605 | else |
| 13606 | case $cross_compiling:$ac_tool_warned in |
| 13607 | yes:) |
| 13608 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 13609 | whose name does not start with the host triplet. If you think this |
| 13610 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 13611 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 13612 | whose name does not start with the host triplet. If you think this |
| 13613 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 13614 | ac_tool_warned=yes ;; |
| 13615 | esac |
| 13616 | F77=$ac_ct_F77 |
| 13617 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13618 | fi |
| 13619 | |
| 13620 | |
| 13621 | # Provide some information about the compiler. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13622 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13623 | ac_compiler=`set X $ac_compile; echo $2` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13624 | { (ac_try="$ac_compiler --version >&5" |
| 13625 | case "(($ac_try" in |
| 13626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13627 | *) ac_try_echo=$ac_try;; |
| 13628 | esac |
| 13629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13630 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13631 | ac_status=$? |
| 13632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13633 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13634 | { (ac_try="$ac_compiler -v >&5" |
| 13635 | case "(($ac_try" in |
| 13636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13637 | *) ac_try_echo=$ac_try;; |
| 13638 | esac |
| 13639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13640 | (eval "$ac_compiler -v >&5") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13641 | ac_status=$? |
| 13642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13643 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13644 | { (ac_try="$ac_compiler -V >&5" |
| 13645 | case "(($ac_try" in |
| 13646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13647 | *) ac_try_echo=$ac_try;; |
| 13648 | esac |
| 13649 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13650 | (eval "$ac_compiler -V >&5") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13651 | ac_status=$? |
| 13652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13653 | (exit $ac_status); } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13654 | rm -f a.out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13655 | |
| 13656 | # 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] | 13657 | # input file. (Note that this only needs to work for GNU compilers.) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13658 | ac_save_ext=$ac_ext |
| 13659 | ac_ext=F |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13660 | { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
| 13661 | 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] | 13662 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
| 13663 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13664 | else |
| 13665 | cat >conftest.$ac_ext <<_ACEOF |
| 13666 | program main |
| 13667 | #ifndef __GNUC__ |
| 13668 | choke me |
| 13669 | #endif |
| 13670 | |
| 13671 | end |
| 13672 | _ACEOF |
| 13673 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13674 | if { (ac_try="$ac_compile" |
| 13675 | case "(($ac_try" in |
| 13676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13677 | *) ac_try_echo=$ac_try;; |
| 13678 | esac |
| 13679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13680 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13681 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13682 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13683 | rm -f conftest.er1 |
| 13684 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13686 | (exit $ac_status); } && |
| 13687 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 13688 | { (case "(($ac_try" in |
| 13689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13690 | *) ac_try_echo=$ac_try;; |
| 13691 | esac |
| 13692 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13693 | (eval "$ac_try") 2>&5 |
| 13694 | ac_status=$? |
| 13695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13696 | (exit $ac_status); }; } && |
| 13697 | { ac_try='test -s conftest.$ac_objext' |
| 13698 | { (case "(($ac_try" in |
| 13699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13700 | *) ac_try_echo=$ac_try;; |
| 13701 | esac |
| 13702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13703 | (eval "$ac_try") 2>&5 |
| 13704 | ac_status=$? |
| 13705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13706 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13707 | ac_compiler_gnu=yes |
| 13708 | else |
| 13709 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13710 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13711 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13712 | ac_compiler_gnu=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13713 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13714 | |
| 13715 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13716 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
| 13717 | |
| 13718 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13719 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
| 13720 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13721 | ac_ext=$ac_save_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13722 | ac_test_FFLAGS=${FFLAGS+set} |
| 13723 | ac_save_FFLAGS=$FFLAGS |
| 13724 | FFLAGS= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13725 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
| 13726 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13727 | if test "${ac_cv_prog_f77_g+set}" = set; then |
| 13728 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13729 | else |
| 13730 | FFLAGS=-g |
| 13731 | cat >conftest.$ac_ext <<_ACEOF |
| 13732 | program main |
| 13733 | |
| 13734 | end |
| 13735 | _ACEOF |
| 13736 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13737 | if { (ac_try="$ac_compile" |
| 13738 | case "(($ac_try" in |
| 13739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13740 | *) ac_try_echo=$ac_try;; |
| 13741 | esac |
| 13742 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13743 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13744 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13745 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13746 | rm -f conftest.er1 |
| 13747 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13749 | (exit $ac_status); } && |
| 13750 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 13751 | { (case "(($ac_try" in |
| 13752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13753 | *) ac_try_echo=$ac_try;; |
| 13754 | esac |
| 13755 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13756 | (eval "$ac_try") 2>&5 |
| 13757 | ac_status=$? |
| 13758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13759 | (exit $ac_status); }; } && |
| 13760 | { ac_try='test -s conftest.$ac_objext' |
| 13761 | { (case "(($ac_try" in |
| 13762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13763 | *) ac_try_echo=$ac_try;; |
| 13764 | esac |
| 13765 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13766 | (eval "$ac_try") 2>&5 |
| 13767 | ac_status=$? |
| 13768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13769 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13770 | ac_cv_prog_f77_g=yes |
| 13771 | else |
| 13772 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13773 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13774 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13775 | ac_cv_prog_f77_g=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13776 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13777 | |
| 13778 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13779 | |
| 13780 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13781 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
| 13782 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13783 | if test "$ac_test_FFLAGS" = set; then |
| 13784 | FFLAGS=$ac_save_FFLAGS |
| 13785 | elif test $ac_cv_prog_f77_g = yes; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13786 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13787 | FFLAGS="-g -O2" |
| 13788 | else |
| 13789 | FFLAGS="-g" |
| 13790 | fi |
| 13791 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13792 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13793 | FFLAGS="-O2" |
| 13794 | else |
| 13795 | FFLAGS= |
| 13796 | fi |
| 13797 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13798 | |
| 13799 | G77=`test $ac_compiler_gnu = yes && echo yes` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13800 | ac_ext=c |
| 13801 | ac_cpp='$CPP $CPPFLAGS' |
| 13802 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13803 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13804 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 13805 | |
| 13806 | |
| 13807 | |
| 13808 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| 13809 | |
| 13810 | # find the maximum length of command line arguments |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13811 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 13812 | 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] | 13813 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| 13814 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13815 | else |
| 13816 | i=0 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13817 | teststring="ABCD" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13818 | |
| 13819 | case $build_os in |
| 13820 | msdosdjgpp*) |
| 13821 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 13822 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 13823 | # during glob expansion). Even if it were fixed, the result of this |
| 13824 | # check would be larger than it should be. |
| 13825 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 13826 | ;; |
| 13827 | |
| 13828 | gnu*) |
| 13829 | # Under GNU Hurd, this test is not required because there is |
| 13830 | # no limit to the length of command line arguments. |
| 13831 | # Libtool will interpret -1 as no limit whatsoever |
| 13832 | lt_cv_sys_max_cmd_len=-1; |
| 13833 | ;; |
| 13834 | |
| 13835 | cygwin* | mingw*) |
| 13836 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 13837 | # about 5 minutes as the teststring grows exponentially. |
| 13838 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 13839 | # you end up with a "frozen" computer, even though with patience |
| 13840 | # the test eventually succeeds (with a max line length of 256k). |
| 13841 | # Instead, let's just punt: use the minimum linelength reported by |
| 13842 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 13843 | lt_cv_sys_max_cmd_len=8192; |
| 13844 | ;; |
| 13845 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13846 | amigaos*) |
| 13847 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 13848 | # So we just punt and use a minimum line length of 8192. |
| 13849 | lt_cv_sys_max_cmd_len=8192; |
| 13850 | ;; |
| 13851 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13852 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13853 | # This has been around since 386BSD, at least. Likely further. |
| 13854 | if test -x /sbin/sysctl; then |
| 13855 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 13856 | elif test -x /usr/sbin/sysctl; then |
| 13857 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 13858 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13859 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13860 | fi |
| 13861 | # And add a safety zone |
| 13862 | 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] | 13863 | 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] | 13864 | ;; |
| 13865 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13866 | interix*) |
| 13867 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 13868 | lt_cv_sys_max_cmd_len=196608 |
| 13869 | ;; |
| 13870 | |
| 13871 | osf*) |
| 13872 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 13873 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 13874 | # nice to cause kernel panics so lets avoid the loop below. |
| 13875 | # First set a reasonable default. |
| 13876 | lt_cv_sys_max_cmd_len=16384 |
| 13877 | # |
| 13878 | if test -x /sbin/sysconfig; then |
| 13879 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 13880 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 13881 | esac |
| 13882 | fi |
| 13883 | ;; |
| 13884 | sco3.2v5*) |
| 13885 | lt_cv_sys_max_cmd_len=102400 |
| 13886 | ;; |
| 13887 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 13888 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 13889 | if test -n "$kargmax"; then |
| 13890 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 13891 | else |
| 13892 | lt_cv_sys_max_cmd_len=32768 |
| 13893 | fi |
| 13894 | ;; |
| 13895 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13896 | # If test is not a shell built-in, we'll probably end up computing a |
| 13897 | # maximum length that is only half of the actual maximum length, but |
| 13898 | # we can't tell. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13899 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 13900 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
| 13901 | = "XX$teststring") >/dev/null 2>&1 && |
| 13902 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13903 | lt_cv_sys_max_cmd_len=$new_result && |
| 13904 | test $i != 17 # 1/2 MB should be enough |
| 13905 | do |
| 13906 | i=`expr $i + 1` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13907 | teststring=$teststring$teststring |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13908 | done |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13909 | teststring= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13910 | # Add a significant safety factor because C++ compilers can tack on massive |
| 13911 | # amounts of additional arguments before passing them to the linker. |
| 13912 | # It appears as though 1/2 is a usable value. |
| 13913 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 13914 | ;; |
| 13915 | esac |
| 13916 | |
| 13917 | fi |
| 13918 | |
| 13919 | if test -n $lt_cv_sys_max_cmd_len ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13920 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 13921 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13922 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13923 | { echo "$as_me:$LINENO: result: none" >&5 |
| 13924 | echo "${ECHO_T}none" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13925 | fi |
| 13926 | |
| 13927 | |
| 13928 | |
| 13929 | |
| 13930 | # 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] | 13931 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 13932 | 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] | 13933 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 13934 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13935 | else |
| 13936 | |
| 13937 | # These are sane defaults that work on at least a few old systems. |
| 13938 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 13939 | |
| 13940 | # Character class describing NM global symbol codes. |
| 13941 | symcode='[BCDEGRST]' |
| 13942 | |
| 13943 | # Regexp to match symbols that can be accessed directly from C. |
| 13944 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 13945 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13946 | # Transform an extracted symbol line into a proper C declaration |
| 13947 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 13948 | |
| 13949 | # Transform an extracted symbol line into symbol name and symbol address |
| 13950 | 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'" |
| 13951 | |
| 13952 | # Define system-specific variables. |
| 13953 | case $host_os in |
| 13954 | aix*) |
| 13955 | symcode='[BCDT]' |
| 13956 | ;; |
| 13957 | cygwin* | mingw* | pw32*) |
| 13958 | symcode='[ABCDGISTW]' |
| 13959 | ;; |
| 13960 | hpux*) # Its linker distinguishes data from code symbols |
| 13961 | if test "$host_cpu" = ia64; then |
| 13962 | symcode='[ABCDEGRST]' |
| 13963 | fi |
| 13964 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 13965 | 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'" |
| 13966 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13967 | linux*) |
| 13968 | if test "$host_cpu" = ia64; then |
| 13969 | symcode='[ABCDGIRSTW]' |
| 13970 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 13971 | 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'" |
| 13972 | fi |
| 13973 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13974 | irix* | nonstopux*) |
| 13975 | symcode='[BCDEGRST]' |
| 13976 | ;; |
| 13977 | osf*) |
| 13978 | symcode='[BCDEGQRST]' |
| 13979 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13980 | solaris*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13981 | symcode='[BDRT]' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13982 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13983 | sco3.2v5*) |
| 13984 | symcode='[DT]' |
| 13985 | ;; |
| 13986 | sysv4.2uw2*) |
| 13987 | symcode='[DT]' |
| 13988 | ;; |
| 13989 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 13990 | symcode='[ABDT]' |
| 13991 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13992 | sysv4) |
| 13993 | symcode='[DFNSTU]' |
| 13994 | ;; |
| 13995 | esac |
| 13996 | |
| 13997 | # Handle CRLF in mingw tool chain |
| 13998 | opt_cr= |
| 13999 | case $build_os in |
| 14000 | mingw*) |
| 14001 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 14002 | ;; |
| 14003 | esac |
| 14004 | |
| 14005 | # If we're using GNU nm, then use its standard symbol codes. |
| 14006 | case `$NM -V 2>&1` in |
| 14007 | *GNU* | *'with BFD'*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14008 | symcode='[ABCDGIRSTW]' ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14009 | esac |
| 14010 | |
| 14011 | # Try without a prefix undercore, then with it. |
| 14012 | for ac_symprfx in "" "_"; do |
| 14013 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14014 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 14015 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 14016 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14017 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14018 | 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] | 14019 | |
| 14020 | # Check to see that the pipe works correctly. |
| 14021 | pipe_works=no |
| 14022 | |
| 14023 | rm -f conftest* |
| 14024 | cat > conftest.$ac_ext <<EOF |
| 14025 | #ifdef __cplusplus |
| 14026 | extern "C" { |
| 14027 | #endif |
| 14028 | char nm_test_var; |
| 14029 | void nm_test_func(){} |
| 14030 | #ifdef __cplusplus |
| 14031 | } |
| 14032 | #endif |
| 14033 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 14034 | EOF |
| 14035 | |
| 14036 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14037 | (eval $ac_compile) 2>&5 |
| 14038 | ac_status=$? |
| 14039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14040 | (exit $ac_status); }; then |
| 14041 | # Now try to grab the symbols. |
| 14042 | nlist=conftest.nm |
| 14043 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 14044 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 14045 | ac_status=$? |
| 14046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14047 | (exit $ac_status); } && test -s "$nlist"; then |
| 14048 | # Try sorting and uniquifying the output. |
| 14049 | if sort "$nlist" | uniq > "$nlist"T; then |
| 14050 | mv -f "$nlist"T "$nlist" |
| 14051 | else |
| 14052 | rm -f "$nlist"T |
| 14053 | fi |
| 14054 | |
| 14055 | # Make sure that we snagged all the symbols we need. |
| 14056 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 14057 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 14058 | cat <<EOF > conftest.$ac_ext |
| 14059 | #ifdef __cplusplus |
| 14060 | extern "C" { |
| 14061 | #endif |
| 14062 | |
| 14063 | EOF |
| 14064 | # Now generate the symbol file. |
| 14065 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 14066 | |
| 14067 | cat <<EOF >> conftest.$ac_ext |
| 14068 | #if defined (__STDC__) && __STDC__ |
| 14069 | # define lt_ptr_t void * |
| 14070 | #else |
| 14071 | # define lt_ptr_t char * |
| 14072 | # define const |
| 14073 | #endif |
| 14074 | |
| 14075 | /* The mapping between symbol names and symbols. */ |
| 14076 | const struct { |
| 14077 | const char *name; |
| 14078 | lt_ptr_t address; |
| 14079 | } |
| 14080 | lt_preloaded_symbols[] = |
| 14081 | { |
| 14082 | EOF |
| 14083 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 14084 | cat <<\EOF >> conftest.$ac_ext |
| 14085 | {0, (lt_ptr_t) 0} |
| 14086 | }; |
| 14087 | |
| 14088 | #ifdef __cplusplus |
| 14089 | } |
| 14090 | #endif |
| 14091 | EOF |
| 14092 | # Now try linking the two files. |
| 14093 | mv conftest.$ac_objext conftstm.$ac_objext |
| 14094 | lt_save_LIBS="$LIBS" |
| 14095 | lt_save_CFLAGS="$CFLAGS" |
| 14096 | LIBS="conftstm.$ac_objext" |
| 14097 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 14098 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14099 | (eval $ac_link) 2>&5 |
| 14100 | ac_status=$? |
| 14101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14102 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 14103 | pipe_works=yes |
| 14104 | fi |
| 14105 | LIBS="$lt_save_LIBS" |
| 14106 | CFLAGS="$lt_save_CFLAGS" |
| 14107 | else |
| 14108 | echo "cannot find nm_test_func in $nlist" >&5 |
| 14109 | fi |
| 14110 | else |
| 14111 | echo "cannot find nm_test_var in $nlist" >&5 |
| 14112 | fi |
| 14113 | else |
| 14114 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 14115 | fi |
| 14116 | else |
| 14117 | echo "$progname: failed program was:" >&5 |
| 14118 | cat conftest.$ac_ext >&5 |
| 14119 | fi |
| 14120 | rm -f conftest* conftst* |
| 14121 | |
| 14122 | # Do not use the global_symbol_pipe unless it works. |
| 14123 | if test "$pipe_works" = yes; then |
| 14124 | break |
| 14125 | else |
| 14126 | lt_cv_sys_global_symbol_pipe= |
| 14127 | fi |
| 14128 | done |
| 14129 | |
| 14130 | fi |
| 14131 | |
| 14132 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 14133 | lt_cv_sys_global_symbol_to_cdecl= |
| 14134 | fi |
| 14135 | 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] | 14136 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 14137 | echo "${ECHO_T}failed" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14138 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14139 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 14140 | echo "${ECHO_T}ok" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14141 | fi |
| 14142 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14143 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 14144 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14145 | if test "${lt_cv_objdir+set}" = set; then |
| 14146 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14147 | else |
| 14148 | rm -f .libs 2>/dev/null |
| 14149 | mkdir .libs 2>/dev/null |
| 14150 | if test -d .libs; then |
| 14151 | lt_cv_objdir=.libs |
| 14152 | else |
| 14153 | # MS-DOS does not allow filenames that begin with a dot. |
| 14154 | lt_cv_objdir=_libs |
| 14155 | fi |
| 14156 | rmdir .libs 2>/dev/null |
| 14157 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14158 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
| 14159 | echo "${ECHO_T}$lt_cv_objdir" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14160 | objdir=$lt_cv_objdir |
| 14161 | |
| 14162 | |
| 14163 | |
| 14164 | |
| 14165 | |
| 14166 | case $host_os in |
| 14167 | aix3*) |
| 14168 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 14169 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 14170 | # vanish in a puff of smoke. |
| 14171 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 14172 | COLLECT_NAMES= |
| 14173 | export COLLECT_NAMES |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14174 | fi |
| 14175 | ;; |
| 14176 | esac |
| 14177 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14178 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 14179 | # metacharacters that are still active within double-quoted strings. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14180 | Xsed='sed -e 1s/^X//' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14181 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 14182 | |
| 14183 | # Same as above, but do not quote variable references. |
| 14184 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 14185 | |
| 14186 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 14187 | # double_quote_subst'ed string. |
| 14188 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 14189 | |
| 14190 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 14191 | no_glob_subst='s/\*/\\\*/g' |
| 14192 | |
| 14193 | # Constants: |
| 14194 | rm="rm -f" |
| 14195 | |
| 14196 | # Global variables: |
Reid Spencer | e4d18e4 | 2004-09-20 01:42:32 +0000 | [diff] [blame] | 14197 | default_ofile=mklib |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14198 | can_build_shared=yes |
| 14199 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14200 | # All known linkers require a `.a' archive for static linking (except MSVC, |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14201 | # which needs '.lib'). |
| 14202 | libext=a |
| 14203 | ltmain="$ac_aux_dir/ltmain.sh" |
| 14204 | ofile="$default_ofile" |
| 14205 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 14206 | |
| 14207 | if test -n "$ac_tool_prefix"; then |
| 14208 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 14209 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14210 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14211 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14212 | if test "${ac_cv_prog_AR+set}" = set; then |
| 14213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14214 | else |
| 14215 | if test -n "$AR"; then |
| 14216 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 14217 | else |
| 14218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14219 | for as_dir in $PATH |
| 14220 | do |
| 14221 | IFS=$as_save_IFS |
| 14222 | test -z "$as_dir" && as_dir=. |
| 14223 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14224 | 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] | 14225 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 14226 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14227 | break 2 |
| 14228 | fi |
| 14229 | done |
| 14230 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14231 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14232 | |
| 14233 | fi |
| 14234 | fi |
| 14235 | AR=$ac_cv_prog_AR |
| 14236 | if test -n "$AR"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14237 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 14238 | echo "${ECHO_T}$AR" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14239 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14240 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14241 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14242 | fi |
| 14243 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14244 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14245 | fi |
| 14246 | if test -z "$ac_cv_prog_AR"; then |
| 14247 | ac_ct_AR=$AR |
| 14248 | # Extract the first word of "ar", so it can be a program name with args. |
| 14249 | set dummy ar; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14250 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14251 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14252 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 14253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14254 | else |
| 14255 | if test -n "$ac_ct_AR"; then |
| 14256 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 14257 | else |
| 14258 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14259 | for as_dir in $PATH |
| 14260 | do |
| 14261 | IFS=$as_save_IFS |
| 14262 | test -z "$as_dir" && as_dir=. |
| 14263 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14264 | 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] | 14265 | ac_cv_prog_ac_ct_AR="ar" |
| 14266 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14267 | break 2 |
| 14268 | fi |
| 14269 | done |
| 14270 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14271 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14272 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14273 | fi |
| 14274 | fi |
| 14275 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 14276 | if test -n "$ac_ct_AR"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14277 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 14278 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14279 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14280 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14281 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14282 | fi |
| 14283 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14284 | if test "x$ac_ct_AR" = x; then |
| 14285 | AR="false" |
| 14286 | else |
| 14287 | case $cross_compiling:$ac_tool_warned in |
| 14288 | yes:) |
| 14289 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 14290 | whose name does not start with the host triplet. If you think this |
| 14291 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 14292 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 14293 | whose name does not start with the host triplet. If you think this |
| 14294 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 14295 | ac_tool_warned=yes ;; |
| 14296 | esac |
| 14297 | AR=$ac_ct_AR |
| 14298 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14299 | else |
| 14300 | AR="$ac_cv_prog_AR" |
| 14301 | fi |
| 14302 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14303 | if test -n "$ac_tool_prefix"; then |
| 14304 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 14305 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14306 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14307 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14308 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 14309 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14310 | else |
| 14311 | if test -n "$RANLIB"; then |
| 14312 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 14313 | else |
| 14314 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14315 | for as_dir in $PATH |
| 14316 | do |
| 14317 | IFS=$as_save_IFS |
| 14318 | test -z "$as_dir" && as_dir=. |
| 14319 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14320 | 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] | 14321 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 14322 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14323 | break 2 |
| 14324 | fi |
| 14325 | done |
| 14326 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14327 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14328 | |
| 14329 | fi |
| 14330 | fi |
| 14331 | RANLIB=$ac_cv_prog_RANLIB |
| 14332 | if test -n "$RANLIB"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14333 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 14334 | echo "${ECHO_T}$RANLIB" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14335 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14336 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14337 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14338 | fi |
| 14339 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14340 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14341 | fi |
| 14342 | if test -z "$ac_cv_prog_RANLIB"; then |
| 14343 | ac_ct_RANLIB=$RANLIB |
| 14344 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 14345 | set dummy ranlib; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14346 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14347 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14348 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 14349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14350 | else |
| 14351 | if test -n "$ac_ct_RANLIB"; then |
| 14352 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 14353 | else |
| 14354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14355 | for as_dir in $PATH |
| 14356 | do |
| 14357 | IFS=$as_save_IFS |
| 14358 | test -z "$as_dir" && as_dir=. |
| 14359 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14360 | 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] | 14361 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 14362 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14363 | break 2 |
| 14364 | fi |
| 14365 | done |
| 14366 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14367 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14368 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14369 | fi |
| 14370 | fi |
| 14371 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 14372 | if test -n "$ac_ct_RANLIB"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14373 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 14374 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14375 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14376 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14377 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14378 | fi |
| 14379 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14380 | if test "x$ac_ct_RANLIB" = x; then |
| 14381 | RANLIB=":" |
| 14382 | else |
| 14383 | case $cross_compiling:$ac_tool_warned in |
| 14384 | yes:) |
| 14385 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 14386 | whose name does not start with the host triplet. If you think this |
| 14387 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 14388 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 14389 | whose name does not start with the host triplet. If you think this |
| 14390 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 14391 | ac_tool_warned=yes ;; |
| 14392 | esac |
| 14393 | RANLIB=$ac_ct_RANLIB |
| 14394 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14395 | else |
| 14396 | RANLIB="$ac_cv_prog_RANLIB" |
| 14397 | fi |
| 14398 | |
| 14399 | if test -n "$ac_tool_prefix"; then |
| 14400 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 14401 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14402 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14403 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14404 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 14405 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14406 | else |
| 14407 | if test -n "$STRIP"; then |
| 14408 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 14409 | else |
| 14410 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14411 | for as_dir in $PATH |
| 14412 | do |
| 14413 | IFS=$as_save_IFS |
| 14414 | test -z "$as_dir" && as_dir=. |
| 14415 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14416 | 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] | 14417 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 14418 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14419 | break 2 |
| 14420 | fi |
| 14421 | done |
| 14422 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14423 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14424 | |
| 14425 | fi |
| 14426 | fi |
| 14427 | STRIP=$ac_cv_prog_STRIP |
| 14428 | if test -n "$STRIP"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14429 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 14430 | echo "${ECHO_T}$STRIP" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14431 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14432 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14433 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14434 | fi |
| 14435 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14436 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14437 | fi |
| 14438 | if test -z "$ac_cv_prog_STRIP"; then |
| 14439 | ac_ct_STRIP=$STRIP |
| 14440 | # Extract the first word of "strip", so it can be a program name with args. |
| 14441 | set dummy strip; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14442 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14443 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14444 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 14445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14446 | else |
| 14447 | if test -n "$ac_ct_STRIP"; then |
| 14448 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 14449 | else |
| 14450 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14451 | for as_dir in $PATH |
| 14452 | do |
| 14453 | IFS=$as_save_IFS |
| 14454 | test -z "$as_dir" && as_dir=. |
| 14455 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14456 | 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] | 14457 | ac_cv_prog_ac_ct_STRIP="strip" |
| 14458 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14459 | break 2 |
| 14460 | fi |
| 14461 | done |
| 14462 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14463 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14464 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14465 | fi |
| 14466 | fi |
| 14467 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 14468 | if test -n "$ac_ct_STRIP"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14469 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 14470 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14471 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14472 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14473 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14474 | fi |
| 14475 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14476 | if test "x$ac_ct_STRIP" = x; then |
| 14477 | STRIP=":" |
| 14478 | else |
| 14479 | case $cross_compiling:$ac_tool_warned in |
| 14480 | yes:) |
| 14481 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 14482 | whose name does not start with the host triplet. If you think this |
| 14483 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 14484 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 14485 | whose name does not start with the host triplet. If you think this |
| 14486 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 14487 | ac_tool_warned=yes ;; |
| 14488 | esac |
| 14489 | STRIP=$ac_ct_STRIP |
| 14490 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14491 | else |
| 14492 | STRIP="$ac_cv_prog_STRIP" |
| 14493 | fi |
| 14494 | |
| 14495 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14496 | old_CC="$CC" |
| 14497 | old_CFLAGS="$CFLAGS" |
| 14498 | |
| 14499 | # Set sane defaults for various variables |
| 14500 | test -z "$AR" && AR=ar |
| 14501 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 14502 | test -z "$AS" && AS=as |
| 14503 | test -z "$CC" && CC=cc |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14504 | test -z "$LTCC" && LTCC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14505 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14506 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 14507 | test -z "$LD" && LD=ld |
| 14508 | test -z "$LN_S" && LN_S="ln -s" |
| 14509 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 14510 | test -z "$NM" && NM=nm |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14511 | test -z "$SED" && SED=sed |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14512 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 14513 | test -z "$RANLIB" && RANLIB=: |
| 14514 | test -z "$STRIP" && STRIP=: |
| 14515 | test -z "$ac_objext" && ac_objext=o |
| 14516 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14517 | # Determine commands to create old-style static archives. |
| 14518 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 14519 | old_postinstall_cmds='chmod 644 $oldlib' |
| 14520 | old_postuninstall_cmds= |
| 14521 | |
| 14522 | if test -n "$RANLIB"; then |
| 14523 | case $host_os in |
| 14524 | openbsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14525 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14526 | ;; |
| 14527 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14528 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14529 | ;; |
| 14530 | esac |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14531 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14532 | fi |
| 14533 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14534 | for cc_temp in $compiler""; do |
| 14535 | case $cc_temp in |
| 14536 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 14537 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 14538 | \-*) ;; |
| 14539 | *) break;; |
| 14540 | esac |
| 14541 | done |
| 14542 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 14543 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14544 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14545 | # Only perform the check for file, if the check method requires it |
| 14546 | case $deplibs_check_method in |
| 14547 | file_magic*) |
| 14548 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14549 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 14550 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14551 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 14552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14553 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14554 | case $MAGIC_CMD in |
| 14555 | [\\/*] | ?:[\\/]*) |
| 14556 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 14557 | ;; |
| 14558 | *) |
| 14559 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 14560 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 14561 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 14562 | for ac_dir in $ac_dummy; do |
| 14563 | IFS="$lt_save_ifs" |
| 14564 | test -z "$ac_dir" && ac_dir=. |
| 14565 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 14566 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 14567 | if test -n "$file_magic_test_file"; then |
| 14568 | case $deplibs_check_method in |
| 14569 | "file_magic "*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14570 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14571 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14572 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 14573 | $EGREP "$file_magic_regex" > /dev/null; then |
| 14574 | : |
| 14575 | else |
| 14576 | cat <<EOF 1>&2 |
| 14577 | |
| 14578 | *** Warning: the command libtool uses to detect shared libraries, |
| 14579 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 14580 | *** The result is that libtool may fail to recognize shared libraries |
| 14581 | *** as such. This will affect the creation of libtool libraries that |
| 14582 | *** depend on shared libraries, but programs linked with such libtool |
| 14583 | *** libraries will work regardless of this problem. Nevertheless, you |
| 14584 | *** may want to report the problem to your system manager and/or to |
| 14585 | *** bug-libtool@gnu.org |
| 14586 | |
| 14587 | EOF |
| 14588 | fi ;; |
| 14589 | esac |
| 14590 | fi |
| 14591 | break |
| 14592 | fi |
| 14593 | done |
| 14594 | IFS="$lt_save_ifs" |
| 14595 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 14596 | ;; |
| 14597 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14598 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14599 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14600 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14601 | if test -n "$MAGIC_CMD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14602 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 14603 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14604 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14605 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14606 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14607 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14608 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14609 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 14610 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14611 | { echo "$as_me:$LINENO: checking for file" >&5 |
| 14612 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14613 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 14614 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14615 | else |
| 14616 | case $MAGIC_CMD in |
| 14617 | [\\/*] | ?:[\\/]*) |
| 14618 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 14619 | ;; |
| 14620 | *) |
| 14621 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 14622 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 14623 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 14624 | for ac_dir in $ac_dummy; do |
| 14625 | IFS="$lt_save_ifs" |
| 14626 | test -z "$ac_dir" && ac_dir=. |
| 14627 | if test -f $ac_dir/file; then |
| 14628 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 14629 | if test -n "$file_magic_test_file"; then |
| 14630 | case $deplibs_check_method in |
| 14631 | "file_magic "*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14632 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14633 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14634 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 14635 | $EGREP "$file_magic_regex" > /dev/null; then |
| 14636 | : |
| 14637 | else |
| 14638 | cat <<EOF 1>&2 |
| 14639 | |
| 14640 | *** Warning: the command libtool uses to detect shared libraries, |
| 14641 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 14642 | *** The result is that libtool may fail to recognize shared libraries |
| 14643 | *** as such. This will affect the creation of libtool libraries that |
| 14644 | *** depend on shared libraries, but programs linked with such libtool |
| 14645 | *** libraries will work regardless of this problem. Nevertheless, you |
| 14646 | *** may want to report the problem to your system manager and/or to |
| 14647 | *** bug-libtool@gnu.org |
| 14648 | |
| 14649 | EOF |
| 14650 | fi ;; |
| 14651 | esac |
| 14652 | fi |
| 14653 | break |
| 14654 | fi |
| 14655 | done |
| 14656 | IFS="$lt_save_ifs" |
| 14657 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 14658 | ;; |
| 14659 | esac |
| 14660 | fi |
| 14661 | |
| 14662 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14663 | if test -n "$MAGIC_CMD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14664 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 14665 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14666 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14667 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14668 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14669 | fi |
| 14670 | |
| 14671 | else |
| 14672 | MAGIC_CMD=: |
| 14673 | fi |
| 14674 | fi |
| 14675 | |
| 14676 | fi |
| 14677 | ;; |
| 14678 | esac |
| 14679 | |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 14680 | enable_dlopen=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14681 | enable_win32_dll=no |
| 14682 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14683 | # Check whether --enable-libtool-lock was given. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14684 | if test "${enable_libtool_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14685 | enableval=$enable_libtool_lock; |
| 14686 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14687 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14688 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 14689 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14690 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14691 | # Check whether --with-pic was given. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14692 | if test "${with_pic+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14693 | withval=$with_pic; pic_mode="$withval" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14694 | else |
| 14695 | pic_mode=default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14696 | fi |
| 14697 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14698 | test -z "$pic_mode" && pic_mode=default |
| 14699 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14700 | # Use C for the default configuration in the libtool script |
| 14701 | tagname= |
| 14702 | lt_save_CC="$CC" |
| 14703 | ac_ext=c |
| 14704 | ac_cpp='$CPP $CPPFLAGS' |
| 14705 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14706 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14707 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14708 | |
| 14709 | |
| 14710 | # Source file extension for C test sources. |
| 14711 | ac_ext=c |
| 14712 | |
| 14713 | # Object file extension for compiled C test sources. |
| 14714 | objext=o |
| 14715 | objext=$objext |
| 14716 | |
| 14717 | # Code to be used in simple compile tests |
| 14718 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 14719 | |
| 14720 | # Code to be used in simple link tests |
| 14721 | lt_simple_link_test_code='int main(){return(0);}\n' |
| 14722 | |
| 14723 | |
| 14724 | # If no C compiler was specified, use CC. |
| 14725 | LTCC=${LTCC-"$CC"} |
| 14726 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14727 | # If no C compiler flags were specified, use CFLAGS. |
| 14728 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 14729 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14730 | # Allow CC to be a program name with arguments. |
| 14731 | compiler=$CC |
| 14732 | |
| 14733 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14734 | # save warnings/boilerplate of simple test code |
| 14735 | ac_outfile=conftest.$ac_objext |
| 14736 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 14737 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14738 | _lt_compiler_boilerplate=`cat conftest.err` |
| 14739 | $rm conftest* |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14740 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14741 | ac_outfile=conftest.$ac_objext |
| 14742 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 14743 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14744 | _lt_linker_boilerplate=`cat conftest.err` |
| 14745 | $rm conftest* |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14746 | |
| 14747 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14748 | |
| 14749 | lt_prog_compiler_no_builtin_flag= |
| 14750 | |
| 14751 | if test "$GCC" = yes; then |
| 14752 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 14753 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14754 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14755 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 14756 | 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] | 14757 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 14758 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14759 | else |
| 14760 | lt_cv_prog_compiler_rtti_exceptions=no |
| 14761 | ac_outfile=conftest.$ac_objext |
| 14762 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14763 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 14764 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14765 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14766 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14767 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14768 | # The option is referenced via a variable to avoid confusing sed. |
| 14769 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14770 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14771 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14772 | -e 's:$: $lt_compiler_flag:'` |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 14773 | (eval echo "\"\$as_me:14778: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14774 | (eval "$lt_compile" 2>conftest.err) |
| 14775 | ac_status=$? |
| 14776 | cat conftest.err >&5 |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 14777 | echo "$as_me:14782: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14778 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14779 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14780 | # So say no if there are warnings other than the usual output. |
| 14781 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 14782 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14783 | 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] | 14784 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 14785 | fi |
| 14786 | fi |
| 14787 | $rm conftest* |
| 14788 | |
| 14789 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14790 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 14791 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14792 | |
| 14793 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 14794 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 14795 | else |
| 14796 | : |
| 14797 | fi |
| 14798 | |
| 14799 | fi |
| 14800 | |
| 14801 | lt_prog_compiler_wl= |
| 14802 | lt_prog_compiler_pic= |
| 14803 | lt_prog_compiler_static= |
| 14804 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14805 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 14806 | 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] | 14807 | |
| 14808 | if test "$GCC" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14809 | lt_prog_compiler_wl='-Wl,' |
| 14810 | lt_prog_compiler_static='-static' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14811 | |
| 14812 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14813 | aix*) |
| 14814 | # All AIX code is PIC. |
| 14815 | if test "$host_cpu" = ia64; then |
| 14816 | # AIX 5 now supports IA64 processor |
| 14817 | lt_prog_compiler_static='-Bstatic' |
| 14818 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14819 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14820 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14821 | amigaos*) |
| 14822 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 14823 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 14824 | # like `-m68040'. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14825 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14826 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14827 | |
| 14828 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14829 | # PIC is the default for these OSes. |
| 14830 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14831 | |
| 14832 | mingw* | pw32* | os2*) |
| 14833 | # This hack is so that the source file can tell whether it is being |
| 14834 | # built for inclusion in a dll (and should export symbols for example). |
| 14835 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 14836 | ;; |
| 14837 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14838 | darwin* | rhapsody*) |
| 14839 | # PIC is the default on this platform |
| 14840 | # Common symbols not allowed in MH_DYLIB files |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14841 | lt_prog_compiler_pic='-fno-common' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14842 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14843 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14844 | interix3*) |
| 14845 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 14846 | # Instead, we relocate shared libraries at runtime. |
| 14847 | ;; |
| 14848 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14849 | msdosdjgpp*) |
| 14850 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 14851 | # on systems that don't support them. |
| 14852 | lt_prog_compiler_can_build_shared=no |
| 14853 | enable_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14854 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14855 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14856 | sysv4*MP*) |
| 14857 | if test -d /usr/nec; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14858 | lt_prog_compiler_pic=-Kconform_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14859 | fi |
| 14860 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14861 | |
| 14862 | hpux*) |
| 14863 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14864 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14865 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14866 | hppa*64*|ia64*) |
| 14867 | # +Z the default |
| 14868 | ;; |
| 14869 | *) |
| 14870 | lt_prog_compiler_pic='-fPIC' |
| 14871 | ;; |
| 14872 | esac |
| 14873 | ;; |
| 14874 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14875 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14876 | lt_prog_compiler_pic='-fPIC' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14877 | ;; |
| 14878 | esac |
| 14879 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14880 | # PORTME Check for flag to pass linker flags through the system compiler. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14881 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14882 | aix*) |
| 14883 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14884 | if test "$host_cpu" = ia64; then |
| 14885 | # AIX 5 now supports IA64 processor |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14886 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14887 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14888 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14889 | fi |
| 14890 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14891 | darwin*) |
| 14892 | # PIC is the default on this platform |
| 14893 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14894 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14895 | xlc*) |
| 14896 | lt_prog_compiler_pic='-qnocommon' |
| 14897 | lt_prog_compiler_wl='-Wl,' |
| 14898 | ;; |
| 14899 | esac |
| 14900 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14901 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14902 | mingw* | pw32* | os2*) |
| 14903 | # This hack is so that the source file can tell whether it is being |
| 14904 | # built for inclusion in a dll (and should export symbols for example). |
| 14905 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 14906 | ;; |
| 14907 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14908 | hpux9* | hpux10* | hpux11*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14909 | lt_prog_compiler_wl='-Wl,' |
| 14910 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14911 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14912 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14913 | hppa*64*|ia64*) |
| 14914 | # +Z the default |
| 14915 | ;; |
| 14916 | *) |
| 14917 | lt_prog_compiler_pic='+Z' |
| 14918 | ;; |
| 14919 | esac |
| 14920 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 14921 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14922 | ;; |
| 14923 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14924 | irix5* | irix6* | nonstopux*) |
| 14925 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14926 | # PIC (with -KPIC) is the default. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14927 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14928 | ;; |
| 14929 | |
| 14930 | newsos6) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14931 | lt_prog_compiler_pic='-KPIC' |
| 14932 | lt_prog_compiler_static='-Bstatic' |
| 14933 | ;; |
| 14934 | |
| 14935 | linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14936 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14937 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14938 | lt_prog_compiler_wl='-Wl,' |
| 14939 | lt_prog_compiler_pic='-KPIC' |
| 14940 | lt_prog_compiler_static='-static' |
| 14941 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14942 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 14943 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 14944 | # which looks to be a dead project) |
| 14945 | lt_prog_compiler_wl='-Wl,' |
| 14946 | lt_prog_compiler_pic='-fpic' |
| 14947 | lt_prog_compiler_static='-Bstatic' |
| 14948 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14949 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14950 | lt_prog_compiler_wl='-Wl,' |
| 14951 | # All Alpha code is PIC. |
| 14952 | lt_prog_compiler_static='-non_shared' |
| 14953 | ;; |
| 14954 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14955 | ;; |
| 14956 | |
| 14957 | osf3* | osf4* | osf5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14958 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14959 | # All OSF/1 code is PIC. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14960 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14961 | ;; |
| 14962 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14963 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14964 | lt_prog_compiler_pic='-KPIC' |
| 14965 | lt_prog_compiler_static='-Bstatic' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14966 | case $cc_basename in |
| 14967 | f77* | f90* | f95*) |
| 14968 | lt_prog_compiler_wl='-Qoption ld ';; |
| 14969 | *) |
| 14970 | lt_prog_compiler_wl='-Wl,';; |
| 14971 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14972 | ;; |
| 14973 | |
| 14974 | sunos4*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14975 | lt_prog_compiler_wl='-Qoption ld ' |
| 14976 | lt_prog_compiler_pic='-PIC' |
| 14977 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14978 | ;; |
| 14979 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14980 | sysv4 | sysv4.2uw2* | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14981 | lt_prog_compiler_wl='-Wl,' |
| 14982 | lt_prog_compiler_pic='-KPIC' |
| 14983 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14984 | ;; |
| 14985 | |
| 14986 | sysv4*MP*) |
| 14987 | if test -d /usr/nec ;then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14988 | lt_prog_compiler_pic='-Kconform_pic' |
| 14989 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14990 | fi |
| 14991 | ;; |
| 14992 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14993 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 14994 | lt_prog_compiler_wl='-Wl,' |
| 14995 | lt_prog_compiler_pic='-KPIC' |
| 14996 | lt_prog_compiler_static='-Bstatic' |
| 14997 | ;; |
| 14998 | |
| 14999 | unicos*) |
| 15000 | lt_prog_compiler_wl='-Wl,' |
| 15001 | lt_prog_compiler_can_build_shared=no |
| 15002 | ;; |
| 15003 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15004 | uts4*) |
| 15005 | lt_prog_compiler_pic='-pic' |
| 15006 | lt_prog_compiler_static='-Bstatic' |
| 15007 | ;; |
| 15008 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15009 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15010 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15011 | ;; |
| 15012 | esac |
| 15013 | fi |
| 15014 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15015 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
| 15016 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15017 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15018 | # |
| 15019 | # Check to make sure the PIC flag actually works. |
| 15020 | # |
| 15021 | if test -n "$lt_prog_compiler_pic"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15022 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15023 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 15024 | 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] | 15025 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15027 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15028 | lt_prog_compiler_pic_works=no |
| 15029 | ac_outfile=conftest.$ac_objext |
| 15030 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15031 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 15032 | # Insert the option either (1) after the last *FLAGS variable, or |
| 15033 | # (2) before a word containing "conftest.", or (3) at the end. |
| 15034 | # Note that $ac_compile itself does not contain backslashes and begins |
| 15035 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 15036 | # The option is referenced via a variable to avoid confusing sed. |
| 15037 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15038 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15039 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 15040 | -e 's:$: $lt_compiler_flag:'` |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 15041 | (eval echo "\"\$as_me:15046: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15042 | (eval "$lt_compile" 2>conftest.err) |
| 15043 | ac_status=$? |
| 15044 | cat conftest.err >&5 |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 15045 | echo "$as_me:15050: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15046 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 15047 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15048 | # So say no if there are warnings other than the usual output. |
| 15049 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 15050 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 15051 | 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] | 15052 | lt_prog_compiler_pic_works=yes |
| 15053 | fi |
| 15054 | fi |
| 15055 | $rm conftest* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15056 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15057 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15058 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
| 15059 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15060 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15061 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
| 15062 | case $lt_prog_compiler_pic in |
| 15063 | "" | " "*) ;; |
| 15064 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 15065 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15066 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15067 | lt_prog_compiler_pic= |
| 15068 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15069 | fi |
| 15070 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15071 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15072 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15073 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 15074 | *djgpp*) |
| 15075 | lt_prog_compiler_pic= |
| 15076 | ;; |
| 15077 | *) |
| 15078 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 15079 | ;; |
| 15080 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15081 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15082 | # |
| 15083 | # Check to make sure the static flag actually works. |
| 15084 | # |
| 15085 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 15086 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 15087 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 15088 | if test "${lt_prog_compiler_static_works+set}" = set; then |
| 15089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15090 | else |
| 15091 | lt_prog_compiler_static_works=no |
| 15092 | save_LDFLAGS="$LDFLAGS" |
| 15093 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 15094 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 15095 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 15096 | # The linker can only warn and ignore the option if not recognized |
| 15097 | # So say no if there are warnings |
| 15098 | if test -s conftest.err; then |
| 15099 | # Append any errors to the config.log. |
| 15100 | cat conftest.err 1>&5 |
| 15101 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 15102 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 15103 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 15104 | lt_prog_compiler_static_works=yes |
| 15105 | fi |
| 15106 | else |
| 15107 | lt_prog_compiler_static_works=yes |
| 15108 | fi |
| 15109 | fi |
| 15110 | $rm conftest* |
| 15111 | LDFLAGS="$save_LDFLAGS" |
| 15112 | |
| 15113 | fi |
| 15114 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
| 15115 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } |
| 15116 | |
| 15117 | if test x"$lt_prog_compiler_static_works" = xyes; then |
| 15118 | : |
| 15119 | else |
| 15120 | lt_prog_compiler_static= |
| 15121 | fi |
| 15122 | |
| 15123 | |
| 15124 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 15125 | 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] | 15126 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15127 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15128 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15129 | lt_cv_prog_compiler_c_o=no |
| 15130 | $rm -r conftest 2>/dev/null |
| 15131 | mkdir conftest |
| 15132 | cd conftest |
| 15133 | mkdir out |
| 15134 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15135 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15136 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 15137 | # Insert the option either (1) after the last *FLAGS variable, or |
| 15138 | # (2) before a word containing "conftest.", or (3) at the end. |
| 15139 | # Note that $ac_compile itself does not contain backslashes and begins |
| 15140 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 15141 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15142 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15143 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 15144 | -e 's:$: $lt_compiler_flag:'` |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 15145 | (eval echo "\"\$as_me:15150: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15146 | (eval "$lt_compile" 2>out/conftest.err) |
| 15147 | ac_status=$? |
| 15148 | cat out/conftest.err >&5 |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 15149 | echo "$as_me:15154: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15150 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 15151 | then |
| 15152 | # The compiler can only warn and ignore the option if not recognized |
| 15153 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15154 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 15155 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 15156 | 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] | 15157 | lt_cv_prog_compiler_c_o=yes |
| 15158 | fi |
| 15159 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15160 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15161 | $rm conftest* |
| 15162 | # SGI C++ compiler will create directory out/ii_files/ for |
| 15163 | # template instantiation |
| 15164 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 15165 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15166 | cd .. |
| 15167 | rmdir conftest |
| 15168 | $rm conftest* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15169 | |
| 15170 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15171 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 15172 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15173 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15174 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15175 | hard_links="nottested" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15176 | 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] | 15177 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15178 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 15179 | 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] | 15180 | hard_links=yes |
| 15181 | $rm conftest* |
| 15182 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 15183 | touch conftest.a |
| 15184 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 15185 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15186 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 15187 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15188 | if test "$hard_links" = no; then |
| 15189 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 15190 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 15191 | need_locks=warn |
| 15192 | fi |
| 15193 | else |
| 15194 | need_locks=no |
| 15195 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15196 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15197 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 15198 | 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] | 15199 | |
| 15200 | runpath_var= |
| 15201 | allow_undefined_flag= |
| 15202 | enable_shared_with_static_runtimes=no |
| 15203 | archive_cmds= |
| 15204 | archive_expsym_cmds= |
| 15205 | old_archive_From_new_cmds= |
| 15206 | old_archive_from_expsyms_cmds= |
| 15207 | export_dynamic_flag_spec= |
| 15208 | whole_archive_flag_spec= |
| 15209 | thread_safe_flag_spec= |
| 15210 | hardcode_libdir_flag_spec= |
| 15211 | hardcode_libdir_flag_spec_ld= |
| 15212 | hardcode_libdir_separator= |
| 15213 | hardcode_direct=no |
| 15214 | hardcode_minus_L=no |
| 15215 | hardcode_shlibpath_var=unsupported |
| 15216 | link_all_deplibs=unknown |
| 15217 | hardcode_automatic=no |
| 15218 | module_cmds= |
| 15219 | module_expsym_cmds= |
| 15220 | always_export_symbols=no |
| 15221 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 15222 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 15223 | # included in the symbol list |
| 15224 | include_expsyms= |
| 15225 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 15226 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 15227 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 15228 | # as well as any symbol that contains `d'. |
| 15229 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 15230 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 15231 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 15232 | # the symbol is explicitly referenced. Since portable code cannot |
| 15233 | # rely on this symbol name, it's probably fine to never include it in |
| 15234 | # preloaded symbol tables. |
| 15235 | extract_expsyms_cmds= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15236 | # Just being paranoid about ensuring that cc_basename is set. |
| 15237 | for cc_temp in $compiler""; do |
| 15238 | case $cc_temp in |
| 15239 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 15240 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 15241 | \-*) ;; |
| 15242 | *) break;; |
| 15243 | esac |
| 15244 | done |
| 15245 | 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] | 15246 | |
| 15247 | case $host_os in |
| 15248 | cygwin* | mingw* | pw32*) |
| 15249 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 15250 | # When not using gcc, we currently assume that we are using |
| 15251 | # Microsoft Visual C++. |
| 15252 | if test "$GCC" != yes; then |
| 15253 | with_gnu_ld=no |
| 15254 | fi |
| 15255 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15256 | interix*) |
| 15257 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 15258 | with_gnu_ld=yes |
| 15259 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15260 | openbsd*) |
| 15261 | with_gnu_ld=no |
| 15262 | ;; |
| 15263 | esac |
| 15264 | |
| 15265 | ld_shlibs=yes |
| 15266 | if test "$with_gnu_ld" = yes; then |
| 15267 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 15268 | wlarc='${wl}' |
| 15269 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15270 | # Set some defaults for GNU ld with shared library support. These |
| 15271 | # are reset later if shared libraries are not supported. Putting them |
| 15272 | # here allows them to be overridden if necessary. |
| 15273 | runpath_var=LD_RUN_PATH |
| 15274 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 15275 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 15276 | # ancient GNU ld didn't support --whole-archive et. al. |
| 15277 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 15278 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 15279 | else |
| 15280 | whole_archive_flag_spec= |
| 15281 | fi |
| 15282 | supports_anon_versioning=no |
| 15283 | case `$LD -v 2>/dev/null` in |
| 15284 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 15285 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 15286 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 15287 | *\ 2.11.*) ;; # other 2.11 versions |
| 15288 | *) supports_anon_versioning=yes ;; |
| 15289 | esac |
| 15290 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15291 | # See if GNU ld supports shared libraries. |
| 15292 | case $host_os in |
| 15293 | aix3* | aix4* | aix5*) |
| 15294 | # On AIX/PPC, the GNU linker is very broken |
| 15295 | if test "$host_cpu" != ia64; then |
| 15296 | ld_shlibs=no |
| 15297 | cat <<EOF 1>&2 |
| 15298 | |
| 15299 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 15300 | *** to be unable to reliably create shared libraries on AIX. |
| 15301 | *** Therefore, libtool is disabling shared libraries support. If you |
| 15302 | *** really care for shared libraries, you may want to modify your PATH |
| 15303 | *** so that a non-GNU linker is found, and then restart. |
| 15304 | |
| 15305 | EOF |
| 15306 | fi |
| 15307 | ;; |
| 15308 | |
| 15309 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15310 | 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] | 15311 | hardcode_libdir_flag_spec='-L$libdir' |
| 15312 | hardcode_minus_L=yes |
| 15313 | |
| 15314 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 15315 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 15316 | # to version 4, is to share data among multiple programs linked |
| 15317 | # with the same dynamic library. Since this doesn't match the |
| 15318 | # behavior of shared libraries on other platforms, we can't use |
| 15319 | # them. |
| 15320 | ld_shlibs=no |
| 15321 | ;; |
| 15322 | |
| 15323 | beos*) |
| 15324 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15325 | allow_undefined_flag=unsupported |
| 15326 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 15327 | # support --undefined. This deserves some investigation. FIXME |
| 15328 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15329 | else |
| 15330 | ld_shlibs=no |
| 15331 | fi |
| 15332 | ;; |
| 15333 | |
| 15334 | cygwin* | mingw* | pw32*) |
| 15335 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 15336 | # as there is no search path for DLLs. |
| 15337 | hardcode_libdir_flag_spec='-L$libdir' |
| 15338 | allow_undefined_flag=unsupported |
| 15339 | always_export_symbols=no |
| 15340 | enable_shared_with_static_runtimes=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15341 | 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] | 15342 | |
| 15343 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15344 | 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] | 15345 | # If the export-symbols file already is a .def file (1st line |
| 15346 | # is EXPORTS), use it as is; otherwise, prepend... |
| 15347 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 15348 | cp $export_symbols $output_objdir/$soname.def; |
| 15349 | else |
| 15350 | echo EXPORTS > $output_objdir/$soname.def; |
| 15351 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15352 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15353 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 15354 | else |
| 15355 | ld_shlibs=no |
| 15356 | fi |
| 15357 | ;; |
| 15358 | |
| 15359 | interix3*) |
| 15360 | hardcode_direct=no |
| 15361 | hardcode_shlibpath_var=no |
| 15362 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 15363 | export_dynamic_flag_spec='${wl}-E' |
| 15364 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 15365 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 15366 | # default) and relocated if they conflict, which is a slow very memory |
| 15367 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 15368 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 15369 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 15370 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 15371 | 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' |
| 15372 | ;; |
| 15373 | |
| 15374 | linux*) |
| 15375 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15376 | tmp_addflag= |
| 15377 | case $cc_basename,$host_cpu in |
| 15378 | pgcc*) # Portland Group C compiler |
| 15379 | 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' |
| 15380 | tmp_addflag=' $pic_flag' |
| 15381 | ;; |
| 15382 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 15383 | 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' |
| 15384 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 15385 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 15386 | tmp_addflag=' -i_dynamic' ;; |
| 15387 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 15388 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 15389 | ifc* | ifort*) # Intel Fortran compiler |
| 15390 | tmp_addflag=' -nofor_main' ;; |
| 15391 | esac |
| 15392 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15393 | |
| 15394 | if test $supports_anon_versioning = yes; then |
| 15395 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 15396 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 15397 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 15398 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 15399 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15400 | else |
| 15401 | ld_shlibs=no |
| 15402 | fi |
| 15403 | ;; |
| 15404 | |
| 15405 | netbsd*) |
| 15406 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 15407 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 15408 | wlarc= |
| 15409 | else |
| 15410 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15411 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15412 | fi |
| 15413 | ;; |
| 15414 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15415 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15416 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 15417 | ld_shlibs=no |
| 15418 | cat <<EOF 1>&2 |
| 15419 | |
| 15420 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 15421 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 15422 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 15423 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 15424 | *** your PATH or compiler configuration so that the native linker is |
| 15425 | *** used, and then restart. |
| 15426 | |
| 15427 | EOF |
| 15428 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15429 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15430 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15431 | else |
| 15432 | ld_shlibs=no |
| 15433 | fi |
| 15434 | ;; |
| 15435 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15436 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 15437 | case `$LD -v 2>&1` in |
| 15438 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 15439 | ld_shlibs=no |
| 15440 | cat <<_LT_EOF 1>&2 |
| 15441 | |
| 15442 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 15443 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 15444 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 15445 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 15446 | *** your PATH or compiler configuration so that the native linker is |
| 15447 | *** used, and then restart. |
| 15448 | |
| 15449 | _LT_EOF |
| 15450 | ;; |
| 15451 | *) |
| 15452 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15453 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 15454 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 15455 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 15456 | else |
| 15457 | ld_shlibs=no |
| 15458 | fi |
| 15459 | ;; |
| 15460 | esac |
| 15461 | ;; |
| 15462 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15463 | sunos4*) |
| 15464 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15465 | wlarc= |
| 15466 | hardcode_direct=yes |
| 15467 | hardcode_shlibpath_var=no |
| 15468 | ;; |
| 15469 | |
| 15470 | *) |
| 15471 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15472 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15473 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15474 | else |
| 15475 | ld_shlibs=no |
| 15476 | fi |
| 15477 | ;; |
| 15478 | esac |
| 15479 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15480 | if test "$ld_shlibs" = no; then |
| 15481 | runpath_var= |
| 15482 | hardcode_libdir_flag_spec= |
| 15483 | export_dynamic_flag_spec= |
| 15484 | whole_archive_flag_spec= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15485 | fi |
| 15486 | else |
| 15487 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 15488 | case $host_os in |
| 15489 | aix3*) |
| 15490 | allow_undefined_flag=unsupported |
| 15491 | always_export_symbols=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15492 | 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] | 15493 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 15494 | # are no directories specified by -L. |
| 15495 | hardcode_minus_L=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15496 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15497 | # Neither direct hardcoding nor static linking is supported with a |
| 15498 | # broken collect2. |
| 15499 | hardcode_direct=unsupported |
| 15500 | fi |
| 15501 | ;; |
| 15502 | |
| 15503 | aix4* | aix5*) |
| 15504 | if test "$host_cpu" = ia64; then |
| 15505 | # On IA64, the linker does run time linking by default, so we don't |
| 15506 | # have to do anything special. |
| 15507 | aix_use_runtimelinking=no |
| 15508 | exp_sym_flag='-Bexport' |
| 15509 | no_entry_flag="" |
| 15510 | else |
| 15511 | # If we're using GNU nm, then we don't want the "-C" option. |
| 15512 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 15513 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 15514 | 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' |
| 15515 | else |
| 15516 | 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' |
| 15517 | fi |
| 15518 | aix_use_runtimelinking=no |
| 15519 | |
| 15520 | # Test if we are trying to use run time linking or normal |
| 15521 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 15522 | # need to do runtime linking. |
| 15523 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 15524 | for ld_flag in $LDFLAGS; do |
| 15525 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 15526 | aix_use_runtimelinking=yes |
| 15527 | break |
| 15528 | fi |
| 15529 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15530 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15531 | esac |
| 15532 | |
| 15533 | exp_sym_flag='-bexport' |
| 15534 | no_entry_flag='-bnoentry' |
| 15535 | fi |
| 15536 | |
| 15537 | # When large executables or shared objects are built, AIX ld can |
| 15538 | # have problems creating the table of contents. If linking a library |
| 15539 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 15540 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 15541 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 15542 | |
| 15543 | archive_cmds='' |
| 15544 | hardcode_direct=yes |
| 15545 | hardcode_libdir_separator=':' |
| 15546 | link_all_deplibs=yes |
| 15547 | |
| 15548 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15549 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15550 | # We only want to do this on AIX 4.2 and lower, the check |
| 15551 | # below for broken collect2 doesn't work under 4.3+ |
| 15552 | collect2name=`${CC} -print-prog-name=collect2` |
| 15553 | if test -f "$collect2name" && \ |
| 15554 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 15555 | then |
| 15556 | # We have reworked collect2 |
| 15557 | hardcode_direct=yes |
| 15558 | else |
| 15559 | # We have old collect2 |
| 15560 | hardcode_direct=unsupported |
| 15561 | # It fails to find uninstalled libraries when the uninstalled |
| 15562 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 15563 | # to unsupported forces relinking |
| 15564 | hardcode_minus_L=yes |
| 15565 | hardcode_libdir_flag_spec='-L$libdir' |
| 15566 | hardcode_libdir_separator= |
| 15567 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15568 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15569 | esac |
| 15570 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15571 | if test "$aix_use_runtimelinking" = yes; then |
| 15572 | shared_flag="$shared_flag "'${wl}-G' |
| 15573 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15574 | else |
| 15575 | # not using gcc |
| 15576 | if test "$host_cpu" = ia64; then |
| 15577 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 15578 | # chokes on -Wl,-G. The following line is correct: |
| 15579 | shared_flag='-G' |
| 15580 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15581 | if test "$aix_use_runtimelinking" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15582 | shared_flag='${wl}-G' |
| 15583 | else |
| 15584 | shared_flag='${wl}-bM:SRE' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15585 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15586 | fi |
| 15587 | fi |
| 15588 | |
| 15589 | # It seems that -bexpall does not export symbols beginning with |
| 15590 | # underscore (_), so it is better to generate a list of symbols to export. |
| 15591 | always_export_symbols=yes |
| 15592 | if test "$aix_use_runtimelinking" = yes; then |
| 15593 | # Warning - without using the other runtime loading flags (-brtl), |
| 15594 | # -berok will link without error, but may produce a broken library. |
| 15595 | allow_undefined_flag='-berok' |
| 15596 | # Determine the default libpath from the value encoded in an empty executable. |
| 15597 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15598 | /* confdefs.h. */ |
| 15599 | _ACEOF |
| 15600 | cat confdefs.h >>conftest.$ac_ext |
| 15601 | cat >>conftest.$ac_ext <<_ACEOF |
| 15602 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15603 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15604 | int |
| 15605 | main () |
| 15606 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15607 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15608 | ; |
| 15609 | return 0; |
| 15610 | } |
| 15611 | _ACEOF |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15612 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15613 | if { (ac_try="$ac_link" |
| 15614 | case "(($ac_try" in |
| 15615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15616 | *) ac_try_echo=$ac_try;; |
| 15617 | esac |
| 15618 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15619 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15620 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15621 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15622 | rm -f conftest.er1 |
| 15623 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 15625 | (exit $ac_status); } && |
| 15626 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15627 | { (case "(($ac_try" in |
| 15628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15629 | *) ac_try_echo=$ac_try;; |
| 15630 | esac |
| 15631 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15632 | (eval "$ac_try") 2>&5 |
| 15633 | ac_status=$? |
| 15634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15635 | (exit $ac_status); }; } && |
| 15636 | { ac_try='test -s conftest$ac_exeext' |
| 15637 | { (case "(($ac_try" in |
| 15638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15639 | *) ac_try_echo=$ac_try;; |
| 15640 | esac |
| 15641 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15642 | (eval "$ac_try") 2>&5 |
| 15643 | ac_status=$? |
| 15644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15645 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15646 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15647 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15648 | }'` |
| 15649 | # Check for a 64-bit object if we didn't find anything. |
| 15650 | 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; } |
| 15651 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15652 | else |
| 15653 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15654 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15655 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15656 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15657 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15658 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 15659 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15660 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15661 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15662 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15663 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15664 | 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] | 15665 | else |
| 15666 | if test "$host_cpu" = ia64; then |
| 15667 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 15668 | allow_undefined_flag="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15669 | 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] | 15670 | else |
| 15671 | # Determine the default libpath from the value encoded in an empty executable. |
| 15672 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15673 | /* confdefs.h. */ |
| 15674 | _ACEOF |
| 15675 | cat confdefs.h >>conftest.$ac_ext |
| 15676 | cat >>conftest.$ac_ext <<_ACEOF |
| 15677 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15678 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15679 | int |
| 15680 | main () |
| 15681 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15682 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15683 | ; |
| 15684 | return 0; |
| 15685 | } |
| 15686 | _ACEOF |
| 15687 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15688 | if { (ac_try="$ac_link" |
| 15689 | case "(($ac_try" in |
| 15690 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15691 | *) ac_try_echo=$ac_try;; |
| 15692 | esac |
| 15693 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15694 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15695 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15696 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15697 | rm -f conftest.er1 |
| 15698 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 15700 | (exit $ac_status); } && |
| 15701 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15702 | { (case "(($ac_try" in |
| 15703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15704 | *) ac_try_echo=$ac_try;; |
| 15705 | esac |
| 15706 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15707 | (eval "$ac_try") 2>&5 |
| 15708 | ac_status=$? |
| 15709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15710 | (exit $ac_status); }; } && |
| 15711 | { ac_try='test -s conftest$ac_exeext' |
| 15712 | { (case "(($ac_try" in |
| 15713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15714 | *) ac_try_echo=$ac_try;; |
| 15715 | esac |
| 15716 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15717 | (eval "$ac_try") 2>&5 |
| 15718 | ac_status=$? |
| 15719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15720 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15721 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15722 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15723 | }'` |
| 15724 | # Check for a 64-bit object if we didn't find anything. |
| 15725 | 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; } |
| 15726 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15727 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15728 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15729 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15730 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15731 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15732 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15733 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 15734 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15735 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15736 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15737 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15738 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 15739 | # Warning - without using the other run time loading flags, |
| 15740 | # -berok will link without error, but may produce a broken library. |
| 15741 | no_undefined_flag=' ${wl}-bernotok' |
| 15742 | allow_undefined_flag=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15743 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15744 | whole_archive_flag_spec='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15745 | archive_cmds_need_lc=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15746 | # This is similar to how AIX traditionally builds its shared libraries. |
| 15747 | 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] | 15748 | fi |
| 15749 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15750 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15751 | |
| 15752 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15753 | 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] | 15754 | hardcode_libdir_flag_spec='-L$libdir' |
| 15755 | hardcode_minus_L=yes |
| 15756 | # see comment about different semantics on the GNU ld section |
| 15757 | ld_shlibs=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15758 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15759 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15760 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15761 | export_dynamic_flag_spec=-rdynamic |
| 15762 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15763 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15764 | cygwin* | mingw* | pw32*) |
| 15765 | # When not using gcc, we currently assume that we are using |
| 15766 | # Microsoft Visual C++. |
| 15767 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 15768 | # no search path for DLLs. |
| 15769 | hardcode_libdir_flag_spec=' ' |
| 15770 | allow_undefined_flag=unsupported |
| 15771 | # Tell ltmain to make .lib files, not .a files. |
| 15772 | libext=lib |
| 15773 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15774 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15775 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15776 | 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] | 15777 | # The linker will automatically build a .lib file if we build a DLL. |
| 15778 | old_archive_From_new_cmds='true' |
| 15779 | # FIXME: Should let the user specify the lib program. |
| 15780 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 15781 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 15782 | enable_shared_with_static_runtimes=yes |
| 15783 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15784 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15785 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15786 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15787 | rhapsody* | darwin1.[012]) |
| 15788 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
| 15789 | ;; |
| 15790 | *) # Darwin 1.3 on |
| 15791 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 15792 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 15793 | else |
| 15794 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 15795 | 10.[012]) |
| 15796 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 15797 | ;; |
| 15798 | 10.*) |
| 15799 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
| 15800 | ;; |
| 15801 | esac |
| 15802 | fi |
| 15803 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15804 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15805 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15806 | hardcode_direct=no |
| 15807 | hardcode_automatic=yes |
| 15808 | hardcode_shlibpath_var=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15809 | whole_archive_flag_spec='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15810 | link_all_deplibs=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15811 | if test "$GCC" = yes ; then |
| 15812 | output_verbose_link_cmd='echo' |
| 15813 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 15814 | 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] | 15815 | # 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] | 15816 | 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}' |
| 15817 | 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] | 15818 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15819 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15820 | xlc*) |
| 15821 | output_verbose_link_cmd='echo' |
| 15822 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 15823 | 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] | 15824 | # 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] | 15825 | 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}' |
| 15826 | 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] | 15827 | ;; |
| 15828 | *) |
| 15829 | ld_shlibs=no |
| 15830 | ;; |
| 15831 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15832 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15833 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15834 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15835 | dgux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15836 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15837 | hardcode_libdir_flag_spec='-L$libdir' |
| 15838 | hardcode_shlibpath_var=no |
| 15839 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15840 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15841 | freebsd1*) |
| 15842 | ld_shlibs=no |
| 15843 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15844 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15845 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 15846 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 15847 | # does not break anything, and helps significantly (at the cost of a little |
| 15848 | # extra space). |
| 15849 | freebsd2.2*) |
| 15850 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 15851 | hardcode_libdir_flag_spec='-R$libdir' |
| 15852 | hardcode_direct=yes |
| 15853 | hardcode_shlibpath_var=no |
| 15854 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15855 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15856 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 15857 | freebsd2*) |
| 15858 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15859 | hardcode_direct=yes |
| 15860 | hardcode_minus_L=yes |
| 15861 | hardcode_shlibpath_var=no |
| 15862 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15863 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15864 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15865 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15866 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 15867 | hardcode_libdir_flag_spec='-R$libdir' |
| 15868 | hardcode_direct=yes |
| 15869 | hardcode_shlibpath_var=no |
| 15870 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15871 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15872 | hpux9*) |
| 15873 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15874 | 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] | 15875 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15876 | 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] | 15877 | fi |
| 15878 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 15879 | hardcode_libdir_separator=: |
| 15880 | hardcode_direct=yes |
| 15881 | |
| 15882 | # hardcode_minus_L: Not really in the search PATH, |
| 15883 | # but as the default location of the library. |
| 15884 | hardcode_minus_L=yes |
| 15885 | export_dynamic_flag_spec='${wl}-E' |
| 15886 | ;; |
| 15887 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15888 | hpux10*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15889 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15890 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 15891 | else |
| 15892 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 15893 | fi |
| 15894 | if test "$with_gnu_ld" = no; then |
| 15895 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 15896 | hardcode_libdir_separator=: |
| 15897 | |
| 15898 | hardcode_direct=yes |
| 15899 | export_dynamic_flag_spec='${wl}-E' |
| 15900 | |
| 15901 | # hardcode_minus_L: Not really in the search PATH, |
| 15902 | # but as the default location of the library. |
| 15903 | hardcode_minus_L=yes |
| 15904 | fi |
| 15905 | ;; |
| 15906 | |
| 15907 | hpux11*) |
| 15908 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 15909 | case $host_cpu in |
| 15910 | hppa*64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15911 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15912 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15913 | ia64*) |
| 15914 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 15915 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15916 | *) |
| 15917 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 15918 | ;; |
| 15919 | esac |
| 15920 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15921 | case $host_cpu in |
| 15922 | hppa*64*) |
| 15923 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15924 | ;; |
| 15925 | ia64*) |
| 15926 | 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] | 15927 | ;; |
| 15928 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15929 | 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] | 15930 | ;; |
| 15931 | esac |
| 15932 | fi |
| 15933 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15934 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 15935 | hardcode_libdir_separator=: |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15936 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15937 | case $host_cpu in |
| 15938 | hppa*64*|ia64*) |
| 15939 | hardcode_libdir_flag_spec_ld='+b $libdir' |
| 15940 | hardcode_direct=no |
| 15941 | hardcode_shlibpath_var=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15942 | ;; |
| 15943 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15944 | hardcode_direct=yes |
| 15945 | export_dynamic_flag_spec='${wl}-E' |
| 15946 | |
| 15947 | # hardcode_minus_L: Not really in the search PATH, |
| 15948 | # but as the default location of the library. |
| 15949 | hardcode_minus_L=yes |
| 15950 | ;; |
| 15951 | esac |
| 15952 | fi |
| 15953 | ;; |
| 15954 | |
| 15955 | irix5* | irix6* | nonstopux*) |
| 15956 | if test "$GCC" = yes; then |
| 15957 | 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' |
| 15958 | else |
| 15959 | 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' |
| 15960 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 15961 | fi |
| 15962 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 15963 | hardcode_libdir_separator=: |
| 15964 | link_all_deplibs=yes |
| 15965 | ;; |
| 15966 | |
| 15967 | netbsd*) |
| 15968 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 15969 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 15970 | else |
| 15971 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 15972 | fi |
| 15973 | hardcode_libdir_flag_spec='-R$libdir' |
| 15974 | hardcode_direct=yes |
| 15975 | hardcode_shlibpath_var=no |
| 15976 | ;; |
| 15977 | |
| 15978 | newsos6) |
| 15979 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15980 | hardcode_direct=yes |
| 15981 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 15982 | hardcode_libdir_separator=: |
| 15983 | hardcode_shlibpath_var=no |
| 15984 | ;; |
| 15985 | |
| 15986 | openbsd*) |
| 15987 | hardcode_direct=yes |
| 15988 | hardcode_shlibpath_var=no |
| 15989 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 15990 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15991 | 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] | 15992 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 15993 | export_dynamic_flag_spec='${wl}-E' |
| 15994 | else |
| 15995 | case $host_os in |
| 15996 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 15997 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15998 | hardcode_libdir_flag_spec='-R$libdir' |
| 15999 | ;; |
| 16000 | *) |
| 16001 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 16002 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 16003 | ;; |
| 16004 | esac |
| 16005 | fi |
| 16006 | ;; |
| 16007 | |
| 16008 | os2*) |
| 16009 | hardcode_libdir_flag_spec='-L$libdir' |
| 16010 | hardcode_minus_L=yes |
| 16011 | allow_undefined_flag=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16012 | 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] | 16013 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 16014 | ;; |
| 16015 | |
| 16016 | osf3*) |
| 16017 | if test "$GCC" = yes; then |
| 16018 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 16019 | 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' |
| 16020 | else |
| 16021 | allow_undefined_flag=' -expect_unresolved \*' |
| 16022 | 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' |
| 16023 | fi |
| 16024 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 16025 | hardcode_libdir_separator=: |
| 16026 | ;; |
| 16027 | |
| 16028 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 16029 | if test "$GCC" = yes; then |
| 16030 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 16031 | 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' |
| 16032 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 16033 | else |
| 16034 | allow_undefined_flag=' -expect_unresolved \*' |
| 16035 | 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] | 16036 | 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] | 16037 | $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] | 16038 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16039 | # Both c and cxx compiler support -rpath directly |
| 16040 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 16041 | fi |
| 16042 | hardcode_libdir_separator=: |
| 16043 | ;; |
| 16044 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16045 | solaris*) |
| 16046 | no_undefined_flag=' -z text' |
| 16047 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16048 | wlarc='${wl}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16049 | 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] | 16050 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 16051 | $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] | 16052 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16053 | wlarc='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16054 | 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] | 16055 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 16056 | $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] | 16057 | fi |
| 16058 | hardcode_libdir_flag_spec='-R$libdir' |
| 16059 | hardcode_shlibpath_var=no |
| 16060 | case $host_os in |
| 16061 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16062 | *) |
| 16063 | # The compiler driver will combine linker options so we |
| 16064 | # cannot just pass the convience library names through |
| 16065 | # without $wl, iff we do not link with $LD. |
| 16066 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 16067 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 16068 | case $wlarc in |
| 16069 | '') |
| 16070 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 16071 | *) |
| 16072 | 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' ;; |
| 16073 | esac ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16074 | esac |
| 16075 | link_all_deplibs=yes |
| 16076 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16077 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16078 | sunos4*) |
| 16079 | if test "x$host_vendor" = xsequent; then |
| 16080 | # Use $CC to link under sequent, because it throws in some extra .o |
| 16081 | # files that make .init and .fini sections work. |
| 16082 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16083 | else |
| 16084 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 16085 | fi |
| 16086 | hardcode_libdir_flag_spec='-L$libdir' |
| 16087 | hardcode_direct=yes |
| 16088 | hardcode_minus_L=yes |
| 16089 | hardcode_shlibpath_var=no |
| 16090 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16091 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16092 | sysv4) |
| 16093 | case $host_vendor in |
| 16094 | sni) |
| 16095 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16096 | hardcode_direct=yes # is this really true??? |
| 16097 | ;; |
| 16098 | siemens) |
| 16099 | ## LD is ld it makes a PLAMLIB |
| 16100 | ## CC just makes a GrossModule. |
| 16101 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 16102 | reload_cmds='$CC -r -o $output$reload_objs' |
| 16103 | hardcode_direct=no |
| 16104 | ;; |
| 16105 | motorola) |
| 16106 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16107 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 16108 | ;; |
| 16109 | esac |
| 16110 | runpath_var='LD_RUN_PATH' |
| 16111 | hardcode_shlibpath_var=no |
| 16112 | ;; |
| 16113 | |
| 16114 | sysv4.3*) |
| 16115 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16116 | hardcode_shlibpath_var=no |
| 16117 | export_dynamic_flag_spec='-Bexport' |
| 16118 | ;; |
| 16119 | |
| 16120 | sysv4*MP*) |
| 16121 | if test -d /usr/nec; then |
| 16122 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16123 | hardcode_shlibpath_var=no |
| 16124 | runpath_var=LD_RUN_PATH |
| 16125 | hardcode_runpath_var=yes |
| 16126 | ld_shlibs=yes |
| 16127 | fi |
| 16128 | ;; |
| 16129 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16130 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 16131 | no_undefined_flag='${wl}-z,text' |
| 16132 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16133 | hardcode_shlibpath_var=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16134 | runpath_var='LD_RUN_PATH' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16135 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16136 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16137 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16138 | 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] | 16139 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16140 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16141 | 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] | 16142 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16143 | ;; |
| 16144 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16145 | sysv5* | sco3.2v5* | sco5v6*) |
| 16146 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 16147 | # link with -lc, and that would cause any symbols used from libc to |
| 16148 | # always be unresolved, which means just about no library would |
| 16149 | # ever link correctly. If we're not using GNU ld we use -z text |
| 16150 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 16151 | # as -z defs. |
| 16152 | no_undefined_flag='${wl}-z,text' |
| 16153 | allow_undefined_flag='${wl}-z,nodefs' |
| 16154 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16155 | hardcode_shlibpath_var=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16156 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 16157 | hardcode_libdir_separator=':' |
| 16158 | link_all_deplibs=yes |
| 16159 | export_dynamic_flag_spec='${wl}-Bexport' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16160 | runpath_var='LD_RUN_PATH' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16161 | |
| 16162 | if test "$GCC" = yes; then |
| 16163 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16164 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16165 | else |
| 16166 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16167 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16168 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16169 | ;; |
| 16170 | |
| 16171 | uts4*) |
| 16172 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16173 | hardcode_libdir_flag_spec='-L$libdir' |
| 16174 | hardcode_shlibpath_var=no |
| 16175 | ;; |
| 16176 | |
| 16177 | *) |
| 16178 | ld_shlibs=no |
| 16179 | ;; |
| 16180 | esac |
| 16181 | fi |
| 16182 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16183 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 16184 | echo "${ECHO_T}$ld_shlibs" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16185 | test "$ld_shlibs" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16186 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16187 | # |
| 16188 | # Do we need to explicitly link libc? |
| 16189 | # |
| 16190 | case "x$archive_cmds_need_lc" in |
| 16191 | x|xyes) |
| 16192 | # Assume -lc should be added |
| 16193 | archive_cmds_need_lc=yes |
| 16194 | |
| 16195 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 16196 | case $archive_cmds in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16197 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16198 | # FIXME: we may have to deal with multi-command sequences. |
| 16199 | ;; |
| 16200 | '$CC '*) |
| 16201 | # Test whether the compiler implicitly links with -lc since on some |
| 16202 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 16203 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16204 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 16205 | 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] | 16206 | $rm conftest* |
| 16207 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16208 | |
| 16209 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16210 | (eval $ac_compile) 2>&5 |
| 16211 | ac_status=$? |
| 16212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16213 | (exit $ac_status); } 2>conftest.err; then |
| 16214 | soname=conftest |
| 16215 | lib=conftest |
| 16216 | libobjs=conftest.$ac_objext |
| 16217 | deplibs= |
| 16218 | wl=$lt_prog_compiler_wl |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16219 | pic_flag=$lt_prog_compiler_pic |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16220 | compiler_flags=-v |
| 16221 | linker_flags=-v |
| 16222 | verstring= |
| 16223 | output_objdir=. |
| 16224 | libname=conftest |
| 16225 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 16226 | allow_undefined_flag= |
| 16227 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 16228 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 16229 | ac_status=$? |
| 16230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16231 | (exit $ac_status); } |
| 16232 | then |
| 16233 | archive_cmds_need_lc=no |
| 16234 | else |
| 16235 | archive_cmds_need_lc=yes |
| 16236 | fi |
| 16237 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 16238 | else |
| 16239 | cat conftest.err 1>&5 |
| 16240 | fi |
| 16241 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16242 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
| 16243 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16244 | ;; |
| 16245 | esac |
| 16246 | fi |
| 16247 | ;; |
| 16248 | esac |
| 16249 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16250 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 16251 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16252 | library_names_spec= |
| 16253 | libname_spec='lib$name' |
| 16254 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16255 | shrext_cmds=".so" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16256 | postinstall_cmds= |
| 16257 | postuninstall_cmds= |
| 16258 | finish_cmds= |
| 16259 | finish_eval= |
| 16260 | shlibpath_var= |
| 16261 | shlibpath_overrides_runpath=unknown |
| 16262 | version_type=none |
| 16263 | dynamic_linker="$host_os ld.so" |
| 16264 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16265 | if test "$GCC" = yes; then |
| 16266 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 16267 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 16268 | # if the path contains ";" then we assume it to be the separator |
| 16269 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 16270 | # assumed that no part of a normal pathname contains ";" but that should |
| 16271 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 16272 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 16273 | else |
| 16274 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 16275 | fi |
| 16276 | else |
| 16277 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 16278 | fi |
| 16279 | need_lib_prefix=unknown |
| 16280 | hardcode_into_libs=no |
| 16281 | |
| 16282 | # when you set need_version to no, make sure it does not cause -set_version |
| 16283 | # flags to be left without arguments |
| 16284 | need_version=unknown |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16285 | |
| 16286 | case $host_os in |
| 16287 | aix3*) |
| 16288 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16289 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16290 | shlibpath_var=LIBPATH |
| 16291 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16292 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 16293 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16294 | ;; |
| 16295 | |
| 16296 | aix4* | aix5*) |
| 16297 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16298 | need_lib_prefix=no |
| 16299 | need_version=no |
| 16300 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16301 | if test "$host_cpu" = ia64; then |
| 16302 | # AIX 5 supports IA64 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16303 | 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] | 16304 | shlibpath_var=LD_LIBRARY_PATH |
| 16305 | else |
| 16306 | # With GCC up to 2.95.x, collect2 would create an import file |
| 16307 | # for dependence libraries. The import file would start with |
| 16308 | # the line `#! .'. This would cause the generated library to |
| 16309 | # depend on `.', always an invalid library. This was fixed in |
| 16310 | # development snapshots of GCC prior to 3.0. |
| 16311 | case $host_os in |
| 16312 | aix4 | aix4.[01] | aix4.[01].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16313 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 16314 | echo ' yes ' |
| 16315 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 16316 | : |
| 16317 | else |
| 16318 | can_build_shared=no |
| 16319 | fi |
| 16320 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16321 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16322 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 16323 | # soname into executable. Probably we can add versioning support to |
| 16324 | # collect2, so additional links can be useful in future. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16325 | if test "$aix_use_runtimelinking" = yes; then |
| 16326 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 16327 | # instead of lib<name>.a to let people know that these are not |
| 16328 | # typical AIX shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16329 | 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] | 16330 | else |
| 16331 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 16332 | # and later when we are not doing run time linking. |
| 16333 | library_names_spec='${libname}${release}.a $libname.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16334 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16335 | fi |
| 16336 | shlibpath_var=LIBPATH |
| 16337 | fi |
| 16338 | ;; |
| 16339 | |
| 16340 | amigaos*) |
| 16341 | library_names_spec='$libname.ixlibrary $libname.a' |
| 16342 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16343 | 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] | 16344 | ;; |
| 16345 | |
| 16346 | beos*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16347 | library_names_spec='${libname}${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16348 | dynamic_linker="$host_os ld.so" |
| 16349 | shlibpath_var=LIBRARY_PATH |
| 16350 | ;; |
| 16351 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16352 | bsdi[45]*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16353 | version_type=linux |
| 16354 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16355 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16356 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16357 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 16358 | shlibpath_var=LD_LIBRARY_PATH |
| 16359 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 16360 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16361 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 16362 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 16363 | # libtool to hard-code these into programs |
| 16364 | ;; |
| 16365 | |
| 16366 | cygwin* | mingw* | pw32*) |
| 16367 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16368 | shrext_cmds=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16369 | need_version=no |
| 16370 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16371 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16372 | case $GCC,$host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16373 | yes,cygwin* | yes,mingw* | yes,pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16374 | library_names_spec='$libname.dll.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16375 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16376 | postinstall_cmds='base_file=`basename \${file}`~ |
| 16377 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 16378 | dldir=$destdir/`dirname \$dlpath`~ |
| 16379 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16380 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 16381 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16382 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 16383 | dlpath=$dir/\$dldll~ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16384 | $rm \$dlpath' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16385 | shlibpath_overrides_runpath=yes |
| 16386 | |
| 16387 | case $host_os in |
| 16388 | cygwin*) |
| 16389 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 16390 | 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] | 16391 | 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] | 16392 | ;; |
| 16393 | mingw*) |
| 16394 | # MinGW DLLs use traditional 'lib' prefix |
| 16395 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 16396 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 16397 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 16398 | # It is most probably a Windows format PATH printed by |
| 16399 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 16400 | # path with ; separators, and with drive letters. We can handle the |
| 16401 | # drive letters (cygwin fileutils understands them), so leave them, |
| 16402 | # especially as we might pass files found there to a mingw objdump, |
| 16403 | # which wouldn't understand a cygwinified path. Ahh. |
| 16404 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 16405 | else |
| 16406 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 16407 | fi |
| 16408 | ;; |
| 16409 | pw32*) |
| 16410 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16411 | 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] | 16412 | ;; |
| 16413 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16414 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16415 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16416 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16417 | 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] | 16418 | ;; |
| 16419 | esac |
| 16420 | dynamic_linker='Win32 ld.exe' |
| 16421 | # FIXME: first we should search . and the directory the executable is in |
| 16422 | shlibpath_var=PATH |
| 16423 | ;; |
| 16424 | |
| 16425 | darwin* | rhapsody*) |
| 16426 | dynamic_linker="$host_os dyld" |
| 16427 | version_type=darwin |
| 16428 | need_lib_prefix=no |
| 16429 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16430 | 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] | 16431 | soname_spec='${libname}${release}${major}$shared_ext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16432 | shlibpath_overrides_runpath=yes |
| 16433 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 16434 | shrext_cmds='.dylib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16435 | # 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] | 16436 | if test "$GCC" = yes; then |
| 16437 | 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"` |
| 16438 | else |
| 16439 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16440 | fi |
| 16441 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 16442 | ;; |
| 16443 | |
| 16444 | dgux*) |
| 16445 | version_type=linux |
| 16446 | need_lib_prefix=no |
| 16447 | need_version=no |
| 16448 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 16449 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16450 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16451 | ;; |
| 16452 | |
| 16453 | freebsd1*) |
| 16454 | dynamic_linker=no |
| 16455 | ;; |
| 16456 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16457 | kfreebsd*-gnu) |
| 16458 | version_type=linux |
| 16459 | need_lib_prefix=no |
| 16460 | need_version=no |
| 16461 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16462 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16463 | shlibpath_var=LD_LIBRARY_PATH |
| 16464 | shlibpath_overrides_runpath=no |
| 16465 | hardcode_into_libs=yes |
| 16466 | dynamic_linker='GNU ld.so' |
| 16467 | ;; |
| 16468 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16469 | freebsd* | dragonfly*) |
| 16470 | # DragonFly does not have aout. When/if they implement a new |
| 16471 | # versioning mechanism, adjust this. |
| 16472 | if test -x /usr/bin/objformat; then |
| 16473 | objformat=`/usr/bin/objformat` |
| 16474 | else |
| 16475 | case $host_os in |
| 16476 | freebsd[123]*) objformat=aout ;; |
| 16477 | *) objformat=elf ;; |
| 16478 | esac |
| 16479 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16480 | version_type=freebsd-$objformat |
| 16481 | case $version_type in |
| 16482 | freebsd-elf*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16483 | 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] | 16484 | need_version=no |
| 16485 | need_lib_prefix=no |
| 16486 | ;; |
| 16487 | freebsd-*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16488 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16489 | need_version=yes |
| 16490 | ;; |
| 16491 | esac |
| 16492 | shlibpath_var=LD_LIBRARY_PATH |
| 16493 | case $host_os in |
| 16494 | freebsd2*) |
| 16495 | shlibpath_overrides_runpath=yes |
| 16496 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16497 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16498 | shlibpath_overrides_runpath=yes |
| 16499 | hardcode_into_libs=yes |
| 16500 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16501 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 16502 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16503 | shlibpath_overrides_runpath=no |
| 16504 | hardcode_into_libs=yes |
| 16505 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16506 | freebsd*) # from 4.6 on |
| 16507 | shlibpath_overrides_runpath=yes |
| 16508 | hardcode_into_libs=yes |
| 16509 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16510 | esac |
| 16511 | ;; |
| 16512 | |
| 16513 | gnu*) |
| 16514 | version_type=linux |
| 16515 | need_lib_prefix=no |
| 16516 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16517 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 16518 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16519 | shlibpath_var=LD_LIBRARY_PATH |
| 16520 | hardcode_into_libs=yes |
| 16521 | ;; |
| 16522 | |
| 16523 | hpux9* | hpux10* | hpux11*) |
| 16524 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 16525 | # link against other versions. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16526 | version_type=sunos |
| 16527 | need_lib_prefix=no |
| 16528 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16529 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16530 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16531 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16532 | hardcode_into_libs=yes |
| 16533 | dynamic_linker="$host_os dld.so" |
| 16534 | shlibpath_var=LD_LIBRARY_PATH |
| 16535 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 16536 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16537 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16538 | if test "X$HPUX_IA64_MODE" = X32; then |
| 16539 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 16540 | else |
| 16541 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 16542 | fi |
| 16543 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 16544 | ;; |
| 16545 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16546 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16547 | hardcode_into_libs=yes |
| 16548 | dynamic_linker="$host_os dld.sl" |
| 16549 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 16550 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 16551 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16552 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16553 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 16554 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 16555 | ;; |
| 16556 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16557 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16558 | dynamic_linker="$host_os dld.sl" |
| 16559 | shlibpath_var=SHLIB_PATH |
| 16560 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 16561 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16562 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16563 | ;; |
| 16564 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16565 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 16566 | postinstall_cmds='chmod 555 $lib' |
| 16567 | ;; |
| 16568 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16569 | interix3*) |
| 16570 | version_type=linux |
| 16571 | need_lib_prefix=no |
| 16572 | need_version=no |
| 16573 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16574 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16575 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 16576 | shlibpath_var=LD_LIBRARY_PATH |
| 16577 | shlibpath_overrides_runpath=no |
| 16578 | hardcode_into_libs=yes |
| 16579 | ;; |
| 16580 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16581 | irix5* | irix6* | nonstopux*) |
| 16582 | case $host_os in |
| 16583 | nonstopux*) version_type=nonstopux ;; |
| 16584 | *) |
| 16585 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 16586 | version_type=linux |
| 16587 | else |
| 16588 | version_type=irix |
| 16589 | fi ;; |
| 16590 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16591 | need_lib_prefix=no |
| 16592 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16593 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16594 | 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] | 16595 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16596 | irix5* | nonstopux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16597 | libsuff= shlibsuff= |
| 16598 | ;; |
| 16599 | *) |
| 16600 | 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] | 16601 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 16602 | libsuff= shlibsuff= libmagic=32-bit;; |
| 16603 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 16604 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 16605 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 16606 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16607 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 16608 | esac |
| 16609 | ;; |
| 16610 | esac |
| 16611 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 16612 | shlibpath_overrides_runpath=no |
| 16613 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 16614 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16615 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16616 | ;; |
| 16617 | |
| 16618 | # No shared lib support for Linux oldld, aout, or coff. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16619 | linux*oldld* | linux*aout* | linux*coff*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16620 | dynamic_linker=no |
| 16621 | ;; |
| 16622 | |
| 16623 | # This must be Linux ELF. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16624 | linux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16625 | version_type=linux |
| 16626 | need_lib_prefix=no |
| 16627 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16628 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16629 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16630 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 16631 | shlibpath_var=LD_LIBRARY_PATH |
| 16632 | shlibpath_overrides_runpath=no |
| 16633 | # This implies no fast_install, which is unacceptable. |
| 16634 | # Some rework will be needed to allow for fast_install |
| 16635 | # before this can be enabled. |
| 16636 | hardcode_into_libs=yes |
| 16637 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16638 | # Append ld.so.conf contents to the search path |
| 16639 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16640 | 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] | 16641 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 16642 | fi |
| 16643 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16644 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 16645 | # powerpc, because MkLinux only supported shared libraries with the |
| 16646 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 16647 | # most powerpc-linux boxes support dynamic linking these days and |
| 16648 | # people can always --disable-shared, the test was removed, and we |
| 16649 | # assume the GNU/Linux dynamic linker is in use. |
| 16650 | dynamic_linker='GNU/Linux ld.so' |
| 16651 | ;; |
| 16652 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16653 | knetbsd*-gnu) |
| 16654 | version_type=linux |
| 16655 | need_lib_prefix=no |
| 16656 | need_version=no |
| 16657 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16658 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16659 | shlibpath_var=LD_LIBRARY_PATH |
| 16660 | shlibpath_overrides_runpath=no |
| 16661 | hardcode_into_libs=yes |
| 16662 | dynamic_linker='GNU ld.so' |
| 16663 | ;; |
| 16664 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16665 | netbsd*) |
| 16666 | version_type=sunos |
| 16667 | need_lib_prefix=no |
| 16668 | need_version=no |
| 16669 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16670 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16671 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16672 | dynamic_linker='NetBSD (a.out) ld.so' |
| 16673 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16674 | 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] | 16675 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16676 | dynamic_linker='NetBSD ld.elf_so' |
| 16677 | fi |
| 16678 | shlibpath_var=LD_LIBRARY_PATH |
| 16679 | shlibpath_overrides_runpath=yes |
| 16680 | hardcode_into_libs=yes |
| 16681 | ;; |
| 16682 | |
| 16683 | newsos6) |
| 16684 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16685 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16686 | shlibpath_var=LD_LIBRARY_PATH |
| 16687 | shlibpath_overrides_runpath=yes |
| 16688 | ;; |
| 16689 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16690 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16691 | version_type=linux |
| 16692 | need_lib_prefix=no |
| 16693 | need_version=no |
| 16694 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16695 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16696 | shlibpath_var=LD_LIBRARY_PATH |
| 16697 | shlibpath_overrides_runpath=yes |
| 16698 | ;; |
| 16699 | |
| 16700 | openbsd*) |
| 16701 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16702 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16703 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16704 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 16705 | case $host_os in |
| 16706 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 16707 | *) need_version=no ;; |
| 16708 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16709 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16710 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16711 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16712 | 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] | 16713 | case $host_os in |
| 16714 | openbsd2.[89] | openbsd2.[89].*) |
| 16715 | shlibpath_overrides_runpath=no |
| 16716 | ;; |
| 16717 | *) |
| 16718 | shlibpath_overrides_runpath=yes |
| 16719 | ;; |
| 16720 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16721 | else |
| 16722 | shlibpath_overrides_runpath=yes |
| 16723 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16724 | ;; |
| 16725 | |
| 16726 | os2*) |
| 16727 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16728 | shrext_cmds=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16729 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16730 | library_names_spec='$libname${shared_ext} $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16731 | dynamic_linker='OS/2 ld.exe' |
| 16732 | shlibpath_var=LIBPATH |
| 16733 | ;; |
| 16734 | |
| 16735 | osf3* | osf4* | osf5*) |
| 16736 | version_type=osf |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16737 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16738 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16739 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16740 | 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] | 16741 | shlibpath_var=LD_LIBRARY_PATH |
| 16742 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 16743 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 16744 | ;; |
| 16745 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16746 | solaris*) |
| 16747 | version_type=linux |
| 16748 | need_lib_prefix=no |
| 16749 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16750 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16751 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16752 | shlibpath_var=LD_LIBRARY_PATH |
| 16753 | shlibpath_overrides_runpath=yes |
| 16754 | hardcode_into_libs=yes |
| 16755 | # ldd complains unless libraries are executable |
| 16756 | postinstall_cmds='chmod +x $lib' |
| 16757 | ;; |
| 16758 | |
| 16759 | sunos4*) |
| 16760 | version_type=sunos |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16761 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16762 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 16763 | shlibpath_var=LD_LIBRARY_PATH |
| 16764 | shlibpath_overrides_runpath=yes |
| 16765 | if test "$with_gnu_ld" = yes; then |
| 16766 | need_lib_prefix=no |
| 16767 | fi |
| 16768 | need_version=yes |
| 16769 | ;; |
| 16770 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16771 | sysv4 | sysv4.3*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16772 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16773 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16774 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16775 | shlibpath_var=LD_LIBRARY_PATH |
| 16776 | case $host_vendor in |
| 16777 | sni) |
| 16778 | shlibpath_overrides_runpath=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16779 | need_lib_prefix=no |
| 16780 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 16781 | runpath_var=LD_RUN_PATH |
| 16782 | ;; |
| 16783 | siemens) |
| 16784 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16785 | ;; |
| 16786 | motorola) |
| 16787 | need_lib_prefix=no |
| 16788 | need_version=no |
| 16789 | shlibpath_overrides_runpath=no |
| 16790 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 16791 | ;; |
| 16792 | esac |
| 16793 | ;; |
| 16794 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16795 | sysv4*MP*) |
| 16796 | if test -d /usr/nec ;then |
| 16797 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16798 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 16799 | soname_spec='$libname${shared_ext}.$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16800 | shlibpath_var=LD_LIBRARY_PATH |
| 16801 | fi |
| 16802 | ;; |
| 16803 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16804 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 16805 | version_type=freebsd-elf |
| 16806 | need_lib_prefix=no |
| 16807 | need_version=no |
| 16808 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 16809 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16810 | shlibpath_var=LD_LIBRARY_PATH |
| 16811 | hardcode_into_libs=yes |
| 16812 | if test "$with_gnu_ld" = yes; then |
| 16813 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 16814 | shlibpath_overrides_runpath=no |
| 16815 | else |
| 16816 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 16817 | shlibpath_overrides_runpath=yes |
| 16818 | case $host_os in |
| 16819 | sco3.2v5*) |
| 16820 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 16821 | ;; |
| 16822 | esac |
| 16823 | fi |
| 16824 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 16825 | ;; |
| 16826 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16827 | uts4*) |
| 16828 | version_type=linux |
| 16829 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16830 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16831 | shlibpath_var=LD_LIBRARY_PATH |
| 16832 | ;; |
| 16833 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16834 | *) |
| 16835 | dynamic_linker=no |
| 16836 | ;; |
| 16837 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16838 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 16839 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16840 | test "$dynamic_linker" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16841 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16842 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 16843 | if test "$GCC" = yes; then |
| 16844 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 16845 | fi |
| 16846 | |
| 16847 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 16848 | 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] | 16849 | hardcode_action= |
| 16850 | if test -n "$hardcode_libdir_flag_spec" || \ |
| 16851 | test -n "$runpath_var" || \ |
| 16852 | test "X$hardcode_automatic" = "Xyes" ; then |
| 16853 | |
| 16854 | # We can hardcode non-existant directories. |
| 16855 | if test "$hardcode_direct" != no && |
| 16856 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 16857 | # have to relink, otherwise we might link with an installed library |
| 16858 | # when we should be linking with a yet-to-be-installed one |
| 16859 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 16860 | test "$hardcode_minus_L" != no; then |
| 16861 | # Linking always hardcodes the temporary library directory. |
| 16862 | hardcode_action=relink |
| 16863 | else |
| 16864 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 16865 | hardcode_action=immediate |
| 16866 | fi |
| 16867 | else |
| 16868 | # We cannot hardcode anything, or else we can only hardcode existing |
| 16869 | # directories. |
| 16870 | hardcode_action=unsupported |
| 16871 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16872 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 16873 | echo "${ECHO_T}$hardcode_action" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16874 | |
| 16875 | if test "$hardcode_action" = relink; then |
| 16876 | # Fast installation is not supported |
| 16877 | enable_fast_install=no |
| 16878 | elif test "$shlibpath_overrides_runpath" = yes || |
| 16879 | test "$enable_shared" = no; then |
| 16880 | # Fast installation is not necessary |
| 16881 | enable_fast_install=needless |
| 16882 | fi |
| 16883 | |
| 16884 | striplib= |
| 16885 | old_striplib= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16886 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 16887 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16888 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 16889 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 16890 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16891 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16892 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16893 | else |
| 16894 | # FIXME - insert some real tests, host_os isn't really good enough |
| 16895 | case $host_os in |
| 16896 | darwin*) |
| 16897 | if test -n "$STRIP" ; then |
| 16898 | striplib="$STRIP -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16899 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16900 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16901 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16902 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16903 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16904 | fi |
| 16905 | ;; |
| 16906 | *) |
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 | ;; |
| 16910 | esac |
| 16911 | fi |
| 16912 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16913 | if test "x$enable_dlopen" != xyes; then |
| 16914 | enable_dlopen=unknown |
| 16915 | enable_dlopen_self=unknown |
| 16916 | enable_dlopen_self_static=unknown |
| 16917 | else |
| 16918 | lt_cv_dlopen=no |
| 16919 | lt_cv_dlopen_libs= |
| 16920 | |
| 16921 | case $host_os in |
| 16922 | beos*) |
| 16923 | lt_cv_dlopen="load_add_on" |
| 16924 | lt_cv_dlopen_libs= |
| 16925 | lt_cv_dlopen_self=yes |
| 16926 | ;; |
| 16927 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16928 | mingw* | pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16929 | lt_cv_dlopen="LoadLibrary" |
| 16930 | lt_cv_dlopen_libs= |
| 16931 | ;; |
| 16932 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16933 | cygwin*) |
| 16934 | lt_cv_dlopen="dlopen" |
| 16935 | lt_cv_dlopen_libs= |
| 16936 | ;; |
| 16937 | |
| 16938 | darwin*) |
| 16939 | # if libdl is installed we need to link against it |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16940 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 16941 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16942 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 16943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16944 | else |
| 16945 | ac_check_lib_save_LIBS=$LIBS |
| 16946 | LIBS="-ldl $LIBS" |
| 16947 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16948 | /* confdefs.h. */ |
| 16949 | _ACEOF |
| 16950 | cat confdefs.h >>conftest.$ac_ext |
| 16951 | cat >>conftest.$ac_ext <<_ACEOF |
| 16952 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16953 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16954 | /* Override any GCC internal prototype to avoid an error. |
| 16955 | Use char because int might match the return type of a GCC |
| 16956 | builtin and then its argument prototype would still apply. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16957 | #ifdef __cplusplus |
| 16958 | extern "C" |
| 16959 | #endif |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16960 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16961 | int |
| 16962 | main () |
| 16963 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16964 | return dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16965 | ; |
| 16966 | return 0; |
| 16967 | } |
| 16968 | _ACEOF |
| 16969 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16970 | if { (ac_try="$ac_link" |
| 16971 | case "(($ac_try" in |
| 16972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16973 | *) ac_try_echo=$ac_try;; |
| 16974 | esac |
| 16975 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16976 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16977 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16978 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16979 | rm -f conftest.er1 |
| 16980 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 16982 | (exit $ac_status); } && |
| 16983 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16984 | { (case "(($ac_try" in |
| 16985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16986 | *) ac_try_echo=$ac_try;; |
| 16987 | esac |
| 16988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16989 | (eval "$ac_try") 2>&5 |
| 16990 | ac_status=$? |
| 16991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16992 | (exit $ac_status); }; } && |
| 16993 | { ac_try='test -s conftest$ac_exeext' |
| 16994 | { (case "(($ac_try" in |
| 16995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16996 | *) ac_try_echo=$ac_try;; |
| 16997 | esac |
| 16998 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16999 | (eval "$ac_try") 2>&5 |
| 17000 | ac_status=$? |
| 17001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17002 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17003 | ac_cv_lib_dl_dlopen=yes |
| 17004 | else |
| 17005 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17006 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17007 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17008 | ac_cv_lib_dl_dlopen=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17009 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17010 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17011 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17012 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17013 | LIBS=$ac_check_lib_save_LIBS |
| 17014 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17015 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 17016 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17017 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 17018 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 17019 | else |
| 17020 | |
| 17021 | lt_cv_dlopen="dyld" |
| 17022 | lt_cv_dlopen_libs= |
| 17023 | lt_cv_dlopen_self=yes |
| 17024 | |
| 17025 | fi |
| 17026 | |
| 17027 | ;; |
| 17028 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17029 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17030 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 17031 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17032 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 17033 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17034 | else |
| 17035 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17036 | /* confdefs.h. */ |
| 17037 | _ACEOF |
| 17038 | cat confdefs.h >>conftest.$ac_ext |
| 17039 | cat >>conftest.$ac_ext <<_ACEOF |
| 17040 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17041 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 17042 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17043 | #define shl_load innocuous_shl_load |
| 17044 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17045 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17046 | which can conflict with char shl_load (); below. |
| 17047 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17048 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17049 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17050 | #ifdef __STDC__ |
| 17051 | # include <limits.h> |
| 17052 | #else |
| 17053 | # include <assert.h> |
| 17054 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17055 | |
| 17056 | #undef shl_load |
| 17057 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17058 | /* Override any GCC internal prototype to avoid an error. |
| 17059 | Use char because int might match the return type of a GCC |
| 17060 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17061 | #ifdef __cplusplus |
| 17062 | extern "C" |
| 17063 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17064 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17065 | /* The GNU C library defines this for functions which it implements |
| 17066 | to always fail with ENOSYS. Some functions are actually named |
| 17067 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17068 | #if defined __stub_shl_load || defined __stub___shl_load |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17069 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17070 | #endif |
| 17071 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17072 | int |
| 17073 | main () |
| 17074 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17075 | return shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17076 | ; |
| 17077 | return 0; |
| 17078 | } |
| 17079 | _ACEOF |
| 17080 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17081 | if { (ac_try="$ac_link" |
| 17082 | case "(($ac_try" in |
| 17083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17084 | *) ac_try_echo=$ac_try;; |
| 17085 | esac |
| 17086 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17087 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17088 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17089 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17090 | rm -f conftest.er1 |
| 17091 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17093 | (exit $ac_status); } && |
| 17094 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17095 | { (case "(($ac_try" in |
| 17096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17097 | *) ac_try_echo=$ac_try;; |
| 17098 | esac |
| 17099 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17100 | (eval "$ac_try") 2>&5 |
| 17101 | ac_status=$? |
| 17102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17103 | (exit $ac_status); }; } && |
| 17104 | { ac_try='test -s conftest$ac_exeext' |
| 17105 | { (case "(($ac_try" in |
| 17106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17107 | *) ac_try_echo=$ac_try;; |
| 17108 | esac |
| 17109 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17110 | (eval "$ac_try") 2>&5 |
| 17111 | ac_status=$? |
| 17112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17113 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17114 | ac_cv_func_shl_load=yes |
| 17115 | else |
| 17116 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17117 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17118 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17119 | ac_cv_func_shl_load=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17120 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17121 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17122 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17123 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17124 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17125 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 17126 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17127 | if test $ac_cv_func_shl_load = yes; then |
| 17128 | lt_cv_dlopen="shl_load" |
| 17129 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17130 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 17131 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17132 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 17133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17134 | else |
| 17135 | ac_check_lib_save_LIBS=$LIBS |
| 17136 | LIBS="-ldld $LIBS" |
| 17137 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17138 | /* confdefs.h. */ |
| 17139 | _ACEOF |
| 17140 | cat confdefs.h >>conftest.$ac_ext |
| 17141 | cat >>conftest.$ac_ext <<_ACEOF |
| 17142 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17143 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17144 | /* Override any GCC internal prototype to avoid an error. |
| 17145 | Use char because int might match the return type of a GCC |
| 17146 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17147 | #ifdef __cplusplus |
| 17148 | extern "C" |
| 17149 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17150 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17151 | int |
| 17152 | main () |
| 17153 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17154 | return shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17155 | ; |
| 17156 | return 0; |
| 17157 | } |
| 17158 | _ACEOF |
| 17159 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17160 | if { (ac_try="$ac_link" |
| 17161 | case "(($ac_try" in |
| 17162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17163 | *) ac_try_echo=$ac_try;; |
| 17164 | esac |
| 17165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17166 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17167 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17168 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17169 | rm -f conftest.er1 |
| 17170 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17172 | (exit $ac_status); } && |
| 17173 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17174 | { (case "(($ac_try" in |
| 17175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17176 | *) ac_try_echo=$ac_try;; |
| 17177 | esac |
| 17178 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17179 | (eval "$ac_try") 2>&5 |
| 17180 | ac_status=$? |
| 17181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17182 | (exit $ac_status); }; } && |
| 17183 | { ac_try='test -s conftest$ac_exeext' |
| 17184 | { (case "(($ac_try" in |
| 17185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17186 | *) ac_try_echo=$ac_try;; |
| 17187 | esac |
| 17188 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17189 | (eval "$ac_try") 2>&5 |
| 17190 | ac_status=$? |
| 17191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17192 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17193 | ac_cv_lib_dld_shl_load=yes |
| 17194 | else |
| 17195 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17196 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17197 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17198 | ac_cv_lib_dld_shl_load=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17199 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17200 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17201 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17202 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17203 | LIBS=$ac_check_lib_save_LIBS |
| 17204 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17205 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 17206 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17207 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 17208 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 17209 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17210 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 17211 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17212 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 17213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17214 | else |
| 17215 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17216 | /* confdefs.h. */ |
| 17217 | _ACEOF |
| 17218 | cat confdefs.h >>conftest.$ac_ext |
| 17219 | cat >>conftest.$ac_ext <<_ACEOF |
| 17220 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17221 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 17222 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17223 | #define dlopen innocuous_dlopen |
| 17224 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17225 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17226 | which can conflict with char dlopen (); below. |
| 17227 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17228 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17229 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17230 | #ifdef __STDC__ |
| 17231 | # include <limits.h> |
| 17232 | #else |
| 17233 | # include <assert.h> |
| 17234 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17235 | |
| 17236 | #undef dlopen |
| 17237 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17238 | /* Override any GCC internal prototype to avoid an error. |
| 17239 | Use char because int might match the return type of a GCC |
| 17240 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17241 | #ifdef __cplusplus |
| 17242 | extern "C" |
| 17243 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17244 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17245 | /* The GNU C library defines this for functions which it implements |
| 17246 | to always fail with ENOSYS. Some functions are actually named |
| 17247 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17248 | #if defined __stub_dlopen || defined __stub___dlopen |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17249 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17250 | #endif |
| 17251 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17252 | int |
| 17253 | main () |
| 17254 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17255 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17256 | ; |
| 17257 | return 0; |
| 17258 | } |
| 17259 | _ACEOF |
| 17260 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17261 | if { (ac_try="$ac_link" |
| 17262 | case "(($ac_try" in |
| 17263 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17264 | *) ac_try_echo=$ac_try;; |
| 17265 | esac |
| 17266 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17267 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17268 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17269 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17270 | rm -f conftest.er1 |
| 17271 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17273 | (exit $ac_status); } && |
| 17274 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17275 | { (case "(($ac_try" in |
| 17276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17277 | *) ac_try_echo=$ac_try;; |
| 17278 | esac |
| 17279 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17280 | (eval "$ac_try") 2>&5 |
| 17281 | ac_status=$? |
| 17282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17283 | (exit $ac_status); }; } && |
| 17284 | { ac_try='test -s conftest$ac_exeext' |
| 17285 | { (case "(($ac_try" in |
| 17286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17287 | *) ac_try_echo=$ac_try;; |
| 17288 | esac |
| 17289 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17290 | (eval "$ac_try") 2>&5 |
| 17291 | ac_status=$? |
| 17292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17293 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17294 | ac_cv_func_dlopen=yes |
| 17295 | else |
| 17296 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17297 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17298 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17299 | ac_cv_func_dlopen=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17300 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17301 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17302 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17303 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17304 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17305 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 17306 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17307 | if test $ac_cv_func_dlopen = yes; then |
| 17308 | lt_cv_dlopen="dlopen" |
| 17309 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17310 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 17311 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17312 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 17313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17314 | else |
| 17315 | ac_check_lib_save_LIBS=$LIBS |
| 17316 | LIBS="-ldl $LIBS" |
| 17317 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17318 | /* confdefs.h. */ |
| 17319 | _ACEOF |
| 17320 | cat confdefs.h >>conftest.$ac_ext |
| 17321 | cat >>conftest.$ac_ext <<_ACEOF |
| 17322 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17323 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17324 | /* Override any GCC internal prototype to avoid an error. |
| 17325 | Use char because int might match the return type of a GCC |
| 17326 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17327 | #ifdef __cplusplus |
| 17328 | extern "C" |
| 17329 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17330 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17331 | int |
| 17332 | main () |
| 17333 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17334 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17335 | ; |
| 17336 | return 0; |
| 17337 | } |
| 17338 | _ACEOF |
| 17339 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17340 | if { (ac_try="$ac_link" |
| 17341 | case "(($ac_try" in |
| 17342 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17343 | *) ac_try_echo=$ac_try;; |
| 17344 | esac |
| 17345 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17346 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17347 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17348 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17349 | rm -f conftest.er1 |
| 17350 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17352 | (exit $ac_status); } && |
| 17353 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17354 | { (case "(($ac_try" in |
| 17355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17356 | *) ac_try_echo=$ac_try;; |
| 17357 | esac |
| 17358 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17359 | (eval "$ac_try") 2>&5 |
| 17360 | ac_status=$? |
| 17361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17362 | (exit $ac_status); }; } && |
| 17363 | { ac_try='test -s conftest$ac_exeext' |
| 17364 | { (case "(($ac_try" in |
| 17365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17366 | *) ac_try_echo=$ac_try;; |
| 17367 | esac |
| 17368 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17369 | (eval "$ac_try") 2>&5 |
| 17370 | ac_status=$? |
| 17371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17372 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17373 | ac_cv_lib_dl_dlopen=yes |
| 17374 | else |
| 17375 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17376 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17377 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17378 | ac_cv_lib_dl_dlopen=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17379 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17380 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17381 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17382 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17383 | LIBS=$ac_check_lib_save_LIBS |
| 17384 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17385 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 17386 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17387 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 17388 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 17389 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17390 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 17391 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17392 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 17393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17394 | else |
| 17395 | ac_check_lib_save_LIBS=$LIBS |
| 17396 | LIBS="-lsvld $LIBS" |
| 17397 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17398 | /* confdefs.h. */ |
| 17399 | _ACEOF |
| 17400 | cat confdefs.h >>conftest.$ac_ext |
| 17401 | cat >>conftest.$ac_ext <<_ACEOF |
| 17402 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17403 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17404 | /* Override any GCC internal prototype to avoid an error. |
| 17405 | Use char because int might match the return type of a GCC |
| 17406 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17407 | #ifdef __cplusplus |
| 17408 | extern "C" |
| 17409 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17410 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17411 | int |
| 17412 | main () |
| 17413 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17414 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17415 | ; |
| 17416 | return 0; |
| 17417 | } |
| 17418 | _ACEOF |
| 17419 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17420 | if { (ac_try="$ac_link" |
| 17421 | case "(($ac_try" in |
| 17422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17423 | *) ac_try_echo=$ac_try;; |
| 17424 | esac |
| 17425 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17426 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17427 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17428 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17429 | rm -f conftest.er1 |
| 17430 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17432 | (exit $ac_status); } && |
| 17433 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17434 | { (case "(($ac_try" in |
| 17435 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17436 | *) ac_try_echo=$ac_try;; |
| 17437 | esac |
| 17438 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17439 | (eval "$ac_try") 2>&5 |
| 17440 | ac_status=$? |
| 17441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17442 | (exit $ac_status); }; } && |
| 17443 | { ac_try='test -s conftest$ac_exeext' |
| 17444 | { (case "(($ac_try" in |
| 17445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17446 | *) ac_try_echo=$ac_try;; |
| 17447 | esac |
| 17448 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17449 | (eval "$ac_try") 2>&5 |
| 17450 | ac_status=$? |
| 17451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17452 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17453 | ac_cv_lib_svld_dlopen=yes |
| 17454 | else |
| 17455 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17456 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17457 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17458 | ac_cv_lib_svld_dlopen=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17459 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17460 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17461 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17462 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17463 | LIBS=$ac_check_lib_save_LIBS |
| 17464 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17465 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 17466 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17467 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 17468 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 17469 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17470 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 17471 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17472 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 17473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17474 | else |
| 17475 | ac_check_lib_save_LIBS=$LIBS |
| 17476 | LIBS="-ldld $LIBS" |
| 17477 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17478 | /* confdefs.h. */ |
| 17479 | _ACEOF |
| 17480 | cat confdefs.h >>conftest.$ac_ext |
| 17481 | cat >>conftest.$ac_ext <<_ACEOF |
| 17482 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17483 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17484 | /* Override any GCC internal prototype to avoid an error. |
| 17485 | Use char because int might match the return type of a GCC |
| 17486 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17487 | #ifdef __cplusplus |
| 17488 | extern "C" |
| 17489 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17490 | char dld_link (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17491 | int |
| 17492 | main () |
| 17493 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17494 | return dld_link (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17495 | ; |
| 17496 | return 0; |
| 17497 | } |
| 17498 | _ACEOF |
| 17499 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17500 | if { (ac_try="$ac_link" |
| 17501 | case "(($ac_try" in |
| 17502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17503 | *) ac_try_echo=$ac_try;; |
| 17504 | esac |
| 17505 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17506 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17507 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17508 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17509 | rm -f conftest.er1 |
| 17510 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17512 | (exit $ac_status); } && |
| 17513 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17514 | { (case "(($ac_try" in |
| 17515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17516 | *) ac_try_echo=$ac_try;; |
| 17517 | esac |
| 17518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17519 | (eval "$ac_try") 2>&5 |
| 17520 | ac_status=$? |
| 17521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17522 | (exit $ac_status); }; } && |
| 17523 | { ac_try='test -s conftest$ac_exeext' |
| 17524 | { (case "(($ac_try" in |
| 17525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17526 | *) ac_try_echo=$ac_try;; |
| 17527 | esac |
| 17528 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17529 | (eval "$ac_try") 2>&5 |
| 17530 | ac_status=$? |
| 17531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17532 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17533 | ac_cv_lib_dld_dld_link=yes |
| 17534 | else |
| 17535 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17536 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17537 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17538 | ac_cv_lib_dld_dld_link=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17539 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17540 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 17541 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17542 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17543 | LIBS=$ac_check_lib_save_LIBS |
| 17544 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17545 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 17546 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17547 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 17548 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 17549 | fi |
| 17550 | |
| 17551 | |
| 17552 | fi |
| 17553 | |
| 17554 | |
| 17555 | fi |
| 17556 | |
| 17557 | |
| 17558 | fi |
| 17559 | |
| 17560 | |
| 17561 | fi |
| 17562 | |
| 17563 | |
| 17564 | fi |
| 17565 | |
| 17566 | ;; |
| 17567 | esac |
| 17568 | |
| 17569 | if test "x$lt_cv_dlopen" != xno; then |
| 17570 | enable_dlopen=yes |
| 17571 | else |
| 17572 | enable_dlopen=no |
| 17573 | fi |
| 17574 | |
| 17575 | case $lt_cv_dlopen in |
| 17576 | dlopen) |
| 17577 | save_CPPFLAGS="$CPPFLAGS" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17578 | 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] | 17579 | |
| 17580 | save_LDFLAGS="$LDFLAGS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17581 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17582 | |
| 17583 | save_LIBS="$LIBS" |
| 17584 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 17585 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17586 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 17587 | 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] | 17588 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 17589 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17590 | else |
| 17591 | if test "$cross_compiling" = yes; then : |
| 17592 | lt_cv_dlopen_self=cross |
| 17593 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17594 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17595 | lt_status=$lt_dlunknown |
| 17596 | cat > conftest.$ac_ext <<EOF |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 17597 | #line 17602 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17598 | #include "confdefs.h" |
| 17599 | |
| 17600 | #if HAVE_DLFCN_H |
| 17601 | #include <dlfcn.h> |
| 17602 | #endif |
| 17603 | |
| 17604 | #include <stdio.h> |
| 17605 | |
| 17606 | #ifdef RTLD_GLOBAL |
| 17607 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 17608 | #else |
| 17609 | # ifdef DL_GLOBAL |
| 17610 | # define LT_DLGLOBAL DL_GLOBAL |
| 17611 | # else |
| 17612 | # define LT_DLGLOBAL 0 |
| 17613 | # endif |
| 17614 | #endif |
| 17615 | |
| 17616 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 17617 | find out it does not work in some platform. */ |
| 17618 | #ifndef LT_DLLAZY_OR_NOW |
| 17619 | # ifdef RTLD_LAZY |
| 17620 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 17621 | # else |
| 17622 | # ifdef DL_LAZY |
| 17623 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 17624 | # else |
| 17625 | # ifdef RTLD_NOW |
| 17626 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 17627 | # else |
| 17628 | # ifdef DL_NOW |
| 17629 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 17630 | # else |
| 17631 | # define LT_DLLAZY_OR_NOW 0 |
| 17632 | # endif |
| 17633 | # endif |
| 17634 | # endif |
| 17635 | # endif |
| 17636 | #endif |
| 17637 | |
| 17638 | #ifdef __cplusplus |
| 17639 | extern "C" void exit (int); |
| 17640 | #endif |
| 17641 | |
| 17642 | void fnord() { int i=42;} |
| 17643 | int main () |
| 17644 | { |
| 17645 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 17646 | int status = $lt_dlunknown; |
| 17647 | |
| 17648 | if (self) |
| 17649 | { |
| 17650 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 17651 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 17652 | /* dlclose (self); */ |
| 17653 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17654 | else |
| 17655 | puts (dlerror ()); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17656 | |
| 17657 | exit (status); |
| 17658 | } |
| 17659 | EOF |
| 17660 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17661 | (eval $ac_link) 2>&5 |
| 17662 | ac_status=$? |
| 17663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17664 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17665 | (./conftest; exit; ) >&5 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17666 | lt_status=$? |
| 17667 | case x$lt_status in |
| 17668 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 17669 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17670 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17671 | esac |
| 17672 | else : |
| 17673 | # compilation failed |
| 17674 | lt_cv_dlopen_self=no |
| 17675 | fi |
| 17676 | fi |
| 17677 | rm -fr conftest* |
| 17678 | |
| 17679 | |
| 17680 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17681 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 17682 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17683 | |
| 17684 | if test "x$lt_cv_dlopen_self" = xyes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17685 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 17686 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 17687 | 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] | 17688 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 17689 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17690 | else |
| 17691 | if test "$cross_compiling" = yes; then : |
| 17692 | lt_cv_dlopen_self_static=cross |
| 17693 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17694 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17695 | lt_status=$lt_dlunknown |
| 17696 | cat > conftest.$ac_ext <<EOF |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 17697 | #line 17702 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17698 | #include "confdefs.h" |
| 17699 | |
| 17700 | #if HAVE_DLFCN_H |
| 17701 | #include <dlfcn.h> |
| 17702 | #endif |
| 17703 | |
| 17704 | #include <stdio.h> |
| 17705 | |
| 17706 | #ifdef RTLD_GLOBAL |
| 17707 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 17708 | #else |
| 17709 | # ifdef DL_GLOBAL |
| 17710 | # define LT_DLGLOBAL DL_GLOBAL |
| 17711 | # else |
| 17712 | # define LT_DLGLOBAL 0 |
| 17713 | # endif |
| 17714 | #endif |
| 17715 | |
| 17716 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 17717 | find out it does not work in some platform. */ |
| 17718 | #ifndef LT_DLLAZY_OR_NOW |
| 17719 | # ifdef RTLD_LAZY |
| 17720 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 17721 | # else |
| 17722 | # ifdef DL_LAZY |
| 17723 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 17724 | # else |
| 17725 | # ifdef RTLD_NOW |
| 17726 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 17727 | # else |
| 17728 | # ifdef DL_NOW |
| 17729 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 17730 | # else |
| 17731 | # define LT_DLLAZY_OR_NOW 0 |
| 17732 | # endif |
| 17733 | # endif |
| 17734 | # endif |
| 17735 | # endif |
| 17736 | #endif |
| 17737 | |
| 17738 | #ifdef __cplusplus |
| 17739 | extern "C" void exit (int); |
| 17740 | #endif |
| 17741 | |
| 17742 | void fnord() { int i=42;} |
| 17743 | int main () |
| 17744 | { |
| 17745 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 17746 | int status = $lt_dlunknown; |
| 17747 | |
| 17748 | if (self) |
| 17749 | { |
| 17750 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 17751 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 17752 | /* dlclose (self); */ |
| 17753 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17754 | else |
| 17755 | puts (dlerror ()); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17756 | |
| 17757 | exit (status); |
| 17758 | } |
| 17759 | EOF |
| 17760 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17761 | (eval $ac_link) 2>&5 |
| 17762 | ac_status=$? |
| 17763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17764 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17765 | (./conftest; exit; ) >&5 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17766 | lt_status=$? |
| 17767 | case x$lt_status in |
| 17768 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 17769 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17770 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17771 | esac |
| 17772 | else : |
| 17773 | # compilation failed |
| 17774 | lt_cv_dlopen_self_static=no |
| 17775 | fi |
| 17776 | fi |
| 17777 | rm -fr conftest* |
| 17778 | |
| 17779 | |
| 17780 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17781 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 17782 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17783 | fi |
| 17784 | |
| 17785 | CPPFLAGS="$save_CPPFLAGS" |
| 17786 | LDFLAGS="$save_LDFLAGS" |
| 17787 | LIBS="$save_LIBS" |
| 17788 | ;; |
| 17789 | esac |
| 17790 | |
| 17791 | case $lt_cv_dlopen_self in |
| 17792 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 17793 | *) enable_dlopen_self=unknown ;; |
| 17794 | esac |
| 17795 | |
| 17796 | case $lt_cv_dlopen_self_static in |
| 17797 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 17798 | *) enable_dlopen_self_static=unknown ;; |
| 17799 | esac |
| 17800 | fi |
| 17801 | |
| 17802 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17803 | # Report which library types will actually be built |
| 17804 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 17805 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
| 17806 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 17807 | echo "${ECHO_T}$can_build_shared" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17808 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17809 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 17810 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17811 | test "$can_build_shared" = "no" && enable_shared=no |
| 17812 | |
| 17813 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 17814 | # are all built from PIC. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17815 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17816 | aix3*) |
| 17817 | test "$enable_shared" = yes && enable_static=no |
| 17818 | if test -n "$RANLIB"; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 17819 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17820 | postinstall_cmds='$RANLIB $lib' |
| 17821 | fi |
| 17822 | ;; |
| 17823 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17824 | aix4* | aix5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17825 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 17826 | test "$enable_shared" = yes && enable_static=no |
| 17827 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17828 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17829 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17830 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 17831 | echo "${ECHO_T}$enable_shared" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17832 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17833 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 17834 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17835 | # Make sure either enable_shared or enable_static is yes. |
| 17836 | test "$enable_shared" = yes || enable_static=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17837 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 17838 | echo "${ECHO_T}$enable_static" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17839 | |
| 17840 | # The else clause should only fire when bootstrapping the |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17841 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 17842 | # with your package, and you will get complaints that there are |
| 17843 | # no rules to generate ltmain.sh. |
| 17844 | if test -f "$ltmain"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17845 | # See if we are running on zsh, and set the options which allow our commands through |
| 17846 | # without removal of \ escapes. |
| 17847 | if test -n "${ZSH_VERSION+set}" ; then |
| 17848 | setopt NO_GLOB_SUBST |
| 17849 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17850 | # Now quote all the things that may contain metacharacters while being |
| 17851 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 17852 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17853 | 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] | 17854 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17855 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 17856 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 17857 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 17858 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 17859 | lt_cv_sys_global_symbol_to_c_name_address \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17860 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17861 | old_postinstall_cmds old_postuninstall_cmds \ |
| 17862 | compiler \ |
| 17863 | CC \ |
| 17864 | LD \ |
| 17865 | lt_prog_compiler_wl \ |
| 17866 | lt_prog_compiler_pic \ |
| 17867 | lt_prog_compiler_static \ |
| 17868 | lt_prog_compiler_no_builtin_flag \ |
| 17869 | export_dynamic_flag_spec \ |
| 17870 | thread_safe_flag_spec \ |
| 17871 | whole_archive_flag_spec \ |
| 17872 | enable_shared_with_static_runtimes \ |
| 17873 | old_archive_cmds \ |
| 17874 | old_archive_from_new_cmds \ |
| 17875 | predep_objects \ |
| 17876 | postdep_objects \ |
| 17877 | predeps \ |
| 17878 | postdeps \ |
| 17879 | compiler_lib_search_path \ |
| 17880 | archive_cmds \ |
| 17881 | archive_expsym_cmds \ |
| 17882 | postinstall_cmds \ |
| 17883 | postuninstall_cmds \ |
| 17884 | old_archive_from_expsyms_cmds \ |
| 17885 | allow_undefined_flag \ |
| 17886 | no_undefined_flag \ |
| 17887 | export_symbols_cmds \ |
| 17888 | hardcode_libdir_flag_spec \ |
| 17889 | hardcode_libdir_flag_spec_ld \ |
| 17890 | hardcode_libdir_separator \ |
| 17891 | hardcode_automatic \ |
| 17892 | module_cmds \ |
| 17893 | module_expsym_cmds \ |
| 17894 | lt_cv_prog_compiler_c_o \ |
| 17895 | exclude_expsyms \ |
| 17896 | include_expsyms; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17897 | |
| 17898 | case $var in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17899 | old_archive_cmds | \ |
| 17900 | old_archive_from_new_cmds | \ |
| 17901 | archive_cmds | \ |
| 17902 | archive_expsym_cmds | \ |
| 17903 | module_cmds | \ |
| 17904 | module_expsym_cmds | \ |
| 17905 | old_archive_from_expsyms_cmds | \ |
| 17906 | export_symbols_cmds | \ |
| 17907 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17908 | postinstall_cmds | postuninstall_cmds | \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17909 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 17910 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17911 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17912 | 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] | 17913 | ;; |
| 17914 | *) |
| 17915 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 17916 | ;; |
| 17917 | esac |
| 17918 | done |
| 17919 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17920 | case $lt_echo in |
| 17921 | *'\$0 --fallback-echo"') |
| 17922 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 17923 | ;; |
| 17924 | esac |
| 17925 | |
| 17926 | cfgfile="${ofile}T" |
| 17927 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
| 17928 | $rm -f "$cfgfile" |
| 17929 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
| 17930 | echo "$as_me: creating $ofile" >&6;} |
| 17931 | |
| 17932 | cat <<__EOF__ >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17933 | #! $SHELL |
| 17934 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17935 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17936 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 17937 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 17938 | # |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17939 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
| 17940 | # Free Software Foundation, Inc. |
| 17941 | # |
| 17942 | # This file is part of GNU Libtool: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17943 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 17944 | # |
| 17945 | # This program is free software; you can redistribute it and/or modify |
| 17946 | # it under the terms of the GNU General Public License as published by |
| 17947 | # the Free Software Foundation; either version 2 of the License, or |
| 17948 | # (at your option) any later version. |
| 17949 | # |
| 17950 | # This program is distributed in the hope that it will be useful, but |
| 17951 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17952 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17953 | # General Public License for more details. |
| 17954 | # |
| 17955 | # You should have received a copy of the GNU General Public License |
| 17956 | # along with this program; if not, write to the Free Software |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17957 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17958 | # |
| 17959 | # As a special exception to the GNU General Public License, if you |
| 17960 | # distribute this file as part of a program that contains a |
| 17961 | # configuration script generated by Autoconf, you may include it under |
| 17962 | # the same distribution terms that you use for the rest of that program. |
| 17963 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17964 | # A sed program that does not truncate output. |
| 17965 | SED=$lt_SED |
| 17966 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17967 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17968 | Xsed="$SED -e 1s/^X//" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17969 | |
| 17970 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 17971 | # if CDPATH is set. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17972 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17973 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17974 | # The names of the tagged configurations supported by this script. |
| 17975 | available_tags= |
| 17976 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17977 | # ### BEGIN LIBTOOL CONFIG |
| 17978 | |
| 17979 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 17980 | |
| 17981 | # Shell to use when invoking shell scripts. |
| 17982 | SHELL=$lt_SHELL |
| 17983 | |
| 17984 | # Whether or not to build shared libraries. |
| 17985 | build_libtool_libs=$enable_shared |
| 17986 | |
| 17987 | # Whether or not to build static libraries. |
| 17988 | build_old_libs=$enable_static |
| 17989 | |
| 17990 | # Whether or not to add -lc for building shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17991 | build_libtool_need_lc=$archive_cmds_need_lc |
| 17992 | |
| 17993 | # Whether or not to disallow shared libs when runtime libs are static |
| 17994 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17995 | |
| 17996 | # Whether or not to optimize for fast installation. |
| 17997 | fast_install=$enable_fast_install |
| 17998 | |
| 17999 | # The host system. |
| 18000 | host_alias=$host_alias |
| 18001 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18002 | host_os=$host_os |
| 18003 | |
| 18004 | # The build system. |
| 18005 | build_alias=$build_alias |
| 18006 | build=$build |
| 18007 | build_os=$build_os |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18008 | |
| 18009 | # An echo program that does not interpret backslashes. |
| 18010 | echo=$lt_echo |
| 18011 | |
| 18012 | # The archiver. |
| 18013 | AR=$lt_AR |
| 18014 | AR_FLAGS=$lt_AR_FLAGS |
| 18015 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18016 | # A C compiler. |
| 18017 | LTCC=$lt_LTCC |
| 18018 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18019 | # LTCC compiler flags. |
| 18020 | LTCFLAGS=$lt_LTCFLAGS |
| 18021 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18022 | # A language-specific compiler. |
| 18023 | CC=$lt_compiler |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18024 | |
| 18025 | # Is the compiler the GNU C compiler? |
| 18026 | with_gcc=$GCC |
| 18027 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18028 | # An ERE matcher. |
| 18029 | EGREP=$lt_EGREP |
| 18030 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18031 | # The linker used to build libraries. |
| 18032 | LD=$lt_LD |
| 18033 | |
| 18034 | # Whether we need hard or soft links. |
| 18035 | LN_S=$lt_LN_S |
| 18036 | |
| 18037 | # A BSD-compatible nm program. |
| 18038 | NM=$lt_NM |
| 18039 | |
| 18040 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18041 | STRIP=$lt_STRIP |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18042 | |
| 18043 | # Used to examine libraries when file_magic_cmd begins "file" |
| 18044 | MAGIC_CMD=$MAGIC_CMD |
| 18045 | |
| 18046 | # Used on cygwin: DLL creation program. |
| 18047 | DLLTOOL="$DLLTOOL" |
| 18048 | |
| 18049 | # Used on cygwin: object dumper. |
| 18050 | OBJDUMP="$OBJDUMP" |
| 18051 | |
| 18052 | # Used on cygwin: assembler. |
| 18053 | AS="$AS" |
| 18054 | |
| 18055 | # The name of the directory that contains temporary libtool files. |
| 18056 | objdir=$objdir |
| 18057 | |
| 18058 | # How to create reloadable object files. |
| 18059 | reload_flag=$lt_reload_flag |
| 18060 | reload_cmds=$lt_reload_cmds |
| 18061 | |
| 18062 | # How to pass a linker flag through the compiler. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18063 | wl=$lt_lt_prog_compiler_wl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18064 | |
| 18065 | # Object file suffix (normally "o"). |
| 18066 | objext="$ac_objext" |
| 18067 | |
| 18068 | # Old archive suffix (normally "a"). |
| 18069 | libext="$libext" |
| 18070 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18071 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18072 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18073 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18074 | # Executable file suffix (normally ""). |
| 18075 | exeext="$exeext" |
| 18076 | |
| 18077 | # Additional compiler flags for building library objects. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18078 | pic_flag=$lt_lt_prog_compiler_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18079 | pic_mode=$pic_mode |
| 18080 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18081 | # What is the maximum length of a command? |
| 18082 | max_cmd_len=$lt_cv_sys_max_cmd_len |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18083 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18084 | # Does compiler simultaneously support -c and -o options? |
| 18085 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18086 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18087 | # Must we lock files when doing compilation? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18088 | need_locks=$lt_need_locks |
| 18089 | |
| 18090 | # Do we need the lib prefix for modules? |
| 18091 | need_lib_prefix=$need_lib_prefix |
| 18092 | |
| 18093 | # Do we need a version for libraries? |
| 18094 | need_version=$need_version |
| 18095 | |
| 18096 | # Whether dlopen is supported. |
| 18097 | dlopen_support=$enable_dlopen |
| 18098 | |
| 18099 | # Whether dlopen of programs is supported. |
| 18100 | dlopen_self=$enable_dlopen_self |
| 18101 | |
| 18102 | # Whether dlopen of statically linked programs is supported. |
| 18103 | dlopen_self_static=$enable_dlopen_self_static |
| 18104 | |
| 18105 | # Compiler flag to prevent dynamic linking. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18106 | link_static_flag=$lt_lt_prog_compiler_static |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18107 | |
| 18108 | # Compiler flag to turn off builtin functions. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18109 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18110 | |
| 18111 | # Compiler flag to allow reflexive dlopens. |
| 18112 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 18113 | |
| 18114 | # Compiler flag to generate shared objects directly from archives. |
| 18115 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 18116 | |
| 18117 | # Compiler flag to generate thread-safe objects. |
| 18118 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 18119 | |
| 18120 | # Library versioning type. |
| 18121 | version_type=$version_type |
| 18122 | |
| 18123 | # Format of library name prefix. |
| 18124 | libname_spec=$lt_libname_spec |
| 18125 | |
| 18126 | # List of archive names. First name is the real one, the rest are links. |
| 18127 | # The last name is the one that the linker finds with -lNAME. |
| 18128 | library_names_spec=$lt_library_names_spec |
| 18129 | |
| 18130 | # The coded name of the library, if different from the real name. |
| 18131 | soname_spec=$lt_soname_spec |
| 18132 | |
| 18133 | # Commands used to build and install an old-style archive. |
| 18134 | RANLIB=$lt_RANLIB |
| 18135 | old_archive_cmds=$lt_old_archive_cmds |
| 18136 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 18137 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 18138 | |
| 18139 | # Create an old-style archive from a shared archive. |
| 18140 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 18141 | |
| 18142 | # Create a temporary old-style archive to link instead of a shared archive. |
| 18143 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 18144 | |
| 18145 | # Commands used to build and install a shared archive. |
| 18146 | archive_cmds=$lt_archive_cmds |
| 18147 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 18148 | postinstall_cmds=$lt_postinstall_cmds |
| 18149 | postuninstall_cmds=$lt_postuninstall_cmds |
| 18150 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18151 | # Commands used to build a loadable module (assumed same as above if empty) |
| 18152 | module_cmds=$lt_module_cmds |
| 18153 | module_expsym_cmds=$lt_module_expsym_cmds |
| 18154 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18155 | # Commands to strip libraries. |
| 18156 | old_striplib=$lt_old_striplib |
| 18157 | striplib=$lt_striplib |
| 18158 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18159 | # Dependencies to place before the objects being linked to create a |
| 18160 | # shared library. |
| 18161 | predep_objects=$lt_predep_objects |
| 18162 | |
| 18163 | # Dependencies to place after the objects being linked to create a |
| 18164 | # shared library. |
| 18165 | postdep_objects=$lt_postdep_objects |
| 18166 | |
| 18167 | # Dependencies to place before the objects being linked to create a |
| 18168 | # shared library. |
| 18169 | predeps=$lt_predeps |
| 18170 | |
| 18171 | # Dependencies to place after the objects being linked to create a |
| 18172 | # shared library. |
| 18173 | postdeps=$lt_postdeps |
| 18174 | |
| 18175 | # The library search path used internally by the compiler when linking |
| 18176 | # a shared library. |
| 18177 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 18178 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18179 | # Method to check whether dependent libraries are shared objects. |
| 18180 | deplibs_check_method=$lt_deplibs_check_method |
| 18181 | |
| 18182 | # Command to use when deplibs_check_method == file_magic. |
| 18183 | file_magic_cmd=$lt_file_magic_cmd |
| 18184 | |
| 18185 | # Flag that allows shared libraries with undefined symbols to be built. |
| 18186 | allow_undefined_flag=$lt_allow_undefined_flag |
| 18187 | |
| 18188 | # Flag that forces no undefined symbols. |
| 18189 | no_undefined_flag=$lt_no_undefined_flag |
| 18190 | |
| 18191 | # Commands used to finish a libtool library installation in a directory. |
| 18192 | finish_cmds=$lt_finish_cmds |
| 18193 | |
| 18194 | # Same as above, but a single script fragment to be evaled but not shown. |
| 18195 | finish_eval=$lt_finish_eval |
| 18196 | |
| 18197 | # 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] | 18198 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18199 | |
| 18200 | # Transform the output of nm in a proper C declaration |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18201 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18202 | |
| 18203 | # Transform the output of nm in a C name address pair |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18204 | 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] | 18205 | |
| 18206 | # This is the shared library runtime path variable. |
| 18207 | runpath_var=$runpath_var |
| 18208 | |
| 18209 | # This is the shared library path variable. |
| 18210 | shlibpath_var=$shlibpath_var |
| 18211 | |
| 18212 | # Is shlibpath searched before the hard-coded library search path? |
| 18213 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 18214 | |
| 18215 | # How to hardcode a shared library path into an executable. |
| 18216 | hardcode_action=$hardcode_action |
| 18217 | |
| 18218 | # Whether we should hardcode library paths into libraries. |
| 18219 | hardcode_into_libs=$hardcode_into_libs |
| 18220 | |
| 18221 | # Flag to hardcode \$libdir into a binary during linking. |
| 18222 | # This must work even if \$libdir does not exist. |
| 18223 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 18224 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18225 | # If ld is used when linking, flag to hardcode \$libdir into |
| 18226 | # a binary during linking. This must work even if \$libdir does |
| 18227 | # not exist. |
| 18228 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 18229 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18230 | # Whether we need a single -rpath flag with a separated argument. |
| 18231 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 18232 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18233 | # 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] | 18234 | # resulting binary. |
| 18235 | hardcode_direct=$hardcode_direct |
| 18236 | |
| 18237 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 18238 | # resulting binary. |
| 18239 | hardcode_minus_L=$hardcode_minus_L |
| 18240 | |
| 18241 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 18242 | # the resulting binary. |
| 18243 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 18244 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18245 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 18246 | # and all subsequent libraries and executables linked against it. |
| 18247 | hardcode_automatic=$hardcode_automatic |
| 18248 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18249 | # Variables whose values should be saved in libtool wrapper scripts and |
| 18250 | # restored at relink time. |
| 18251 | variables_saved_for_relink="$variables_saved_for_relink" |
| 18252 | |
| 18253 | # Whether libtool must link a program against all its dependency libraries. |
| 18254 | link_all_deplibs=$link_all_deplibs |
| 18255 | |
| 18256 | # Compile-time system search path for libraries |
| 18257 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 18258 | |
| 18259 | # Run-time system search path for libraries |
| 18260 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 18261 | |
| 18262 | # Fix the shell variable \$srcfile for the compiler. |
| 18263 | fix_srcfile_path="$fix_srcfile_path" |
| 18264 | |
| 18265 | # Set to yes if exported symbols are required. |
| 18266 | always_export_symbols=$always_export_symbols |
| 18267 | |
| 18268 | # The commands to list exported symbols. |
| 18269 | export_symbols_cmds=$lt_export_symbols_cmds |
| 18270 | |
| 18271 | # The commands to extract the exported symbol list from a shared archive. |
| 18272 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 18273 | |
| 18274 | # Symbols that should not be listed in the preloaded symbols. |
| 18275 | exclude_expsyms=$lt_exclude_expsyms |
| 18276 | |
| 18277 | # Symbols that must always be exported. |
| 18278 | include_expsyms=$lt_include_expsyms |
| 18279 | |
| 18280 | # ### END LIBTOOL CONFIG |
| 18281 | |
| 18282 | __EOF__ |
| 18283 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18284 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18285 | case $host_os in |
| 18286 | aix3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18287 | cat <<\EOF >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18288 | |
| 18289 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 18290 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 18291 | # vanish in a puff of smoke. |
| 18292 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 18293 | COLLECT_NAMES= |
| 18294 | export COLLECT_NAMES |
| 18295 | fi |
| 18296 | EOF |
| 18297 | ;; |
| 18298 | esac |
| 18299 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18300 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 18301 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 18302 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 18303 | # is reportedly fixed, but why not run on old versions too? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18304 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18305 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18306 | mv -f "$cfgfile" "$ofile" || \ |
| 18307 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18308 | chmod +x "$ofile" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18309 | |
| 18310 | else |
| 18311 | # If there is no Makefile yet, we rely on a make rule to execute |
| 18312 | # `config.status --recheck' to rerun these tests and create the |
| 18313 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18314 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 18315 | if test -f "$ltmain_in"; then |
| 18316 | test -f Makefile && make "$ltmain" |
| 18317 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18318 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18319 | |
| 18320 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18321 | ac_ext=c |
| 18322 | ac_cpp='$CPP $CPPFLAGS' |
| 18323 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18324 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18325 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18326 | |
| 18327 | CC="$lt_save_CC" |
| 18328 | |
| 18329 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18330 | # Check whether --with-tags was given. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18331 | if test "${with_tags+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18332 | withval=$with_tags; tagnames="$withval" |
| 18333 | fi |
| 18334 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18335 | |
| 18336 | if test -f "$ltmain" && test -n "$tagnames"; then |
| 18337 | if test ! -f "${ofile}"; then |
| 18338 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
| 18339 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
| 18340 | fi |
| 18341 | |
| 18342 | if test -z "$LTCC"; then |
| 18343 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
| 18344 | if test -z "$LTCC"; then |
| 18345 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
| 18346 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
| 18347 | else |
| 18348 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
| 18349 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
| 18350 | fi |
| 18351 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18352 | if test -z "$LTCFLAGS"; then |
| 18353 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
| 18354 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18355 | |
| 18356 | # Extract list of available tagged configurations in $ofile. |
| 18357 | # Note that this assumes the entire list is on one line. |
| 18358 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
| 18359 | |
| 18360 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 18361 | for tagname in $tagnames; do |
| 18362 | IFS="$lt_save_ifs" |
| 18363 | # Check whether tagname contains only valid characters |
| 18364 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
| 18365 | "") ;; |
| 18366 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
| 18367 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
| 18368 | { (exit 1); exit 1; }; } |
| 18369 | ;; |
| 18370 | esac |
| 18371 | |
| 18372 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
| 18373 | then |
| 18374 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
| 18375 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
| 18376 | { (exit 1); exit 1; }; } |
| 18377 | fi |
| 18378 | |
| 18379 | # Update the list of available tags. |
| 18380 | if test -n "$tagname"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18381 | echo appending configuration tag \"$tagname\" to $ofile |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18382 | |
| 18383 | case $tagname in |
| 18384 | CXX) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18385 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 18386 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 18387 | (test "X$CXX" != "Xg++"))) ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18388 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18389 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18390 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18391 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18392 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18393 | |
| 18394 | |
| 18395 | |
| 18396 | |
| 18397 | archive_cmds_need_lc_CXX=no |
| 18398 | allow_undefined_flag_CXX= |
| 18399 | always_export_symbols_CXX=no |
| 18400 | archive_expsym_cmds_CXX= |
| 18401 | export_dynamic_flag_spec_CXX= |
| 18402 | hardcode_direct_CXX=no |
| 18403 | hardcode_libdir_flag_spec_CXX= |
| 18404 | hardcode_libdir_flag_spec_ld_CXX= |
| 18405 | hardcode_libdir_separator_CXX= |
| 18406 | hardcode_minus_L_CXX=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18407 | hardcode_shlibpath_var_CXX=unsupported |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18408 | hardcode_automatic_CXX=no |
| 18409 | module_cmds_CXX= |
| 18410 | module_expsym_cmds_CXX= |
| 18411 | link_all_deplibs_CXX=unknown |
| 18412 | old_archive_cmds_CXX=$old_archive_cmds |
| 18413 | no_undefined_flag_CXX= |
| 18414 | whole_archive_flag_spec_CXX= |
| 18415 | enable_shared_with_static_runtimes_CXX=no |
| 18416 | |
| 18417 | # Dependencies to place before and after the object being linked: |
| 18418 | predep_objects_CXX= |
| 18419 | postdep_objects_CXX= |
| 18420 | predeps_CXX= |
| 18421 | postdeps_CXX= |
| 18422 | compiler_lib_search_path_CXX= |
| 18423 | |
| 18424 | # Source file extension for C++ test sources. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18425 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18426 | |
| 18427 | # Object file extension for compiled C++ test sources. |
| 18428 | objext=o |
| 18429 | objext_CXX=$objext |
| 18430 | |
| 18431 | # Code to be used in simple compile tests |
| 18432 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 18433 | |
| 18434 | # Code to be used in simple link tests |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18435 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18436 | |
| 18437 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 18438 | |
| 18439 | # If no C compiler was specified, use CC. |
| 18440 | LTCC=${LTCC-"$CC"} |
| 18441 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18442 | # If no C compiler flags were specified, use CFLAGS. |
| 18443 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 18444 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18445 | # Allow CC to be a program name with arguments. |
| 18446 | compiler=$CC |
| 18447 | |
| 18448 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18449 | # save warnings/boilerplate of simple test code |
| 18450 | ac_outfile=conftest.$ac_objext |
| 18451 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 18452 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 18453 | _lt_compiler_boilerplate=`cat conftest.err` |
| 18454 | $rm conftest* |
| 18455 | |
| 18456 | ac_outfile=conftest.$ac_objext |
| 18457 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 18458 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 18459 | _lt_linker_boilerplate=`cat conftest.err` |
| 18460 | $rm conftest* |
| 18461 | |
| 18462 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18463 | # Allow CC to be a program name with arguments. |
| 18464 | lt_save_CC=$CC |
| 18465 | lt_save_LD=$LD |
| 18466 | lt_save_GCC=$GCC |
| 18467 | GCC=$GXX |
| 18468 | lt_save_with_gnu_ld=$with_gnu_ld |
| 18469 | lt_save_path_LD=$lt_cv_path_LD |
| 18470 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 18471 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 18472 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18473 | $as_unset lt_cv_prog_gnu_ld |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18474 | fi |
| 18475 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 18476 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 18477 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18478 | $as_unset lt_cv_path_LD |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18479 | fi |
| 18480 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 18481 | CC=${CXX-"c++"} |
| 18482 | compiler=$CC |
| 18483 | compiler_CXX=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18484 | for cc_temp in $compiler""; do |
| 18485 | case $cc_temp in |
| 18486 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 18487 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 18488 | \-*) ;; |
| 18489 | *) break;; |
| 18490 | esac |
| 18491 | done |
| 18492 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 18493 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18494 | |
| 18495 | # We don't want -fno-exception wen compiling C++ code, so set the |
| 18496 | # no_builtin_flag separately |
| 18497 | if test "$GXX" = yes; then |
| 18498 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 18499 | else |
| 18500 | lt_prog_compiler_no_builtin_flag_CXX= |
| 18501 | fi |
| 18502 | |
| 18503 | if test "$GXX" = yes; then |
| 18504 | # Set up default GNU C++ configuration |
| 18505 | |
| 18506 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18507 | # Check whether --with-gnu-ld was given. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18508 | if test "${with_gnu_ld+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18509 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18510 | else |
| 18511 | with_gnu_ld=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18512 | fi |
| 18513 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18514 | ac_prog=ld |
| 18515 | if test "$GCC" = yes; then |
| 18516 | # Check if gcc -print-prog-name=ld gives a path. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18517 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 18518 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18519 | case $host in |
| 18520 | *-*-mingw*) |
| 18521 | # gcc leaves a trailing carriage return which upsets mingw |
| 18522 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 18523 | *) |
| 18524 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 18525 | esac |
| 18526 | case $ac_prog in |
| 18527 | # Accept absolute paths. |
| 18528 | [\\/]* | ?:[\\/]*) |
| 18529 | re_direlt='/[^/][^/]*/\.\./' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18530 | # Canonicalize the pathname of ld |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18531 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 18532 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 18533 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 18534 | done |
| 18535 | test -z "$LD" && LD="$ac_prog" |
| 18536 | ;; |
| 18537 | "") |
| 18538 | # If it fails, then pretend we aren't using GCC. |
| 18539 | ac_prog=ld |
| 18540 | ;; |
| 18541 | *) |
| 18542 | # If it is relative, then search for the first ld in PATH. |
| 18543 | with_gnu_ld=unknown |
| 18544 | ;; |
| 18545 | esac |
| 18546 | elif test "$with_gnu_ld" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18547 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 18548 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18549 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18550 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 18551 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18552 | fi |
| 18553 | if test "${lt_cv_path_LD+set}" = set; then |
| 18554 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18555 | else |
| 18556 | if test -z "$LD"; then |
| 18557 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 18558 | for ac_dir in $PATH; do |
| 18559 | IFS="$lt_save_ifs" |
| 18560 | test -z "$ac_dir" && ac_dir=. |
| 18561 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 18562 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 18563 | # 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] | 18564 | # but apparently some variants of GNU ld only accept -v. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18565 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 18566 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 18567 | *GNU* | *'with BFD'*) |
| 18568 | test "$with_gnu_ld" != no && break |
| 18569 | ;; |
| 18570 | *) |
| 18571 | test "$with_gnu_ld" != yes && break |
| 18572 | ;; |
| 18573 | esac |
| 18574 | fi |
| 18575 | done |
| 18576 | IFS="$lt_save_ifs" |
| 18577 | else |
| 18578 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 18579 | fi |
| 18580 | fi |
| 18581 | |
| 18582 | LD="$lt_cv_path_LD" |
| 18583 | if test -n "$LD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18584 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 18585 | echo "${ECHO_T}$LD" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18586 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18587 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18588 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18589 | fi |
| 18590 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 18591 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 18592 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18593 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 18594 | 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] | 18595 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 18596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18597 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18598 | # 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] | 18599 | case `$LD -v 2>&1 </dev/null` in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18600 | *GNU* | *'with BFD'*) |
| 18601 | lt_cv_prog_gnu_ld=yes |
| 18602 | ;; |
| 18603 | *) |
| 18604 | lt_cv_prog_gnu_ld=no |
| 18605 | ;; |
| 18606 | esac |
| 18607 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18608 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 18609 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18610 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 18611 | |
| 18612 | |
| 18613 | |
| 18614 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 18615 | # archiving commands below assume that GNU ld is being used. |
| 18616 | if test "$with_gnu_ld" = yes; then |
| 18617 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18618 | 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' |
| 18619 | |
| 18620 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 18621 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 18622 | |
| 18623 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 18624 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 18625 | # investigate it a little bit more. (MM) |
| 18626 | wlarc='${wl}' |
| 18627 | |
| 18628 | # ancient GNU ld didn't support --whole-archive et. al. |
| 18629 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
| 18630 | grep 'no-whole-archive' > /dev/null; then |
| 18631 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 18632 | else |
| 18633 | whole_archive_flag_spec_CXX= |
| 18634 | fi |
| 18635 | else |
| 18636 | with_gnu_ld=no |
| 18637 | wlarc= |
| 18638 | |
| 18639 | # A generic and very simple default shared library creation |
| 18640 | # command for GNU C++ for the case where it uses the native |
| 18641 | # linker, instead of GNU ld. If possible, this setting should |
| 18642 | # overridden to take advantage of the native linker features on |
| 18643 | # the platform it is being used on. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18644 | 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] | 18645 | fi |
| 18646 | |
| 18647 | # Commands to make compiler produce verbose output that lists |
| 18648 | # what "hidden" libraries, object files and flags are used when |
| 18649 | # linking a shared library. |
| 18650 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 18651 | |
| 18652 | else |
| 18653 | GXX=no |
| 18654 | with_gnu_ld=no |
| 18655 | wlarc= |
| 18656 | fi |
| 18657 | |
| 18658 | # PORTME: fill in a description of your system's C++ link characteristics |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18659 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 18660 | 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] | 18661 | ld_shlibs_CXX=yes |
| 18662 | case $host_os in |
| 18663 | aix3*) |
| 18664 | # FIXME: insert proper C++ library support |
| 18665 | ld_shlibs_CXX=no |
| 18666 | ;; |
| 18667 | aix4* | aix5*) |
| 18668 | if test "$host_cpu" = ia64; then |
| 18669 | # On IA64, the linker does run time linking by default, so we don't |
| 18670 | # have to do anything special. |
| 18671 | aix_use_runtimelinking=no |
| 18672 | exp_sym_flag='-Bexport' |
| 18673 | no_entry_flag="" |
| 18674 | else |
| 18675 | aix_use_runtimelinking=no |
| 18676 | |
| 18677 | # Test if we are trying to use run time linking or normal |
| 18678 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 18679 | # need to do runtime linking. |
| 18680 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 18681 | for ld_flag in $LDFLAGS; do |
| 18682 | case $ld_flag in |
| 18683 | *-brtl*) |
| 18684 | aix_use_runtimelinking=yes |
| 18685 | break |
| 18686 | ;; |
| 18687 | esac |
| 18688 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18689 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18690 | esac |
| 18691 | |
| 18692 | exp_sym_flag='-bexport' |
| 18693 | no_entry_flag='-bnoentry' |
| 18694 | fi |
| 18695 | |
| 18696 | # When large executables or shared objects are built, AIX ld can |
| 18697 | # have problems creating the table of contents. If linking a library |
| 18698 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 18699 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 18700 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 18701 | |
| 18702 | archive_cmds_CXX='' |
| 18703 | hardcode_direct_CXX=yes |
| 18704 | hardcode_libdir_separator_CXX=':' |
| 18705 | link_all_deplibs_CXX=yes |
| 18706 | |
| 18707 | if test "$GXX" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18708 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18709 | # We only want to do this on AIX 4.2 and lower, the check |
| 18710 | # below for broken collect2 doesn't work under 4.3+ |
| 18711 | collect2name=`${CC} -print-prog-name=collect2` |
| 18712 | if test -f "$collect2name" && \ |
| 18713 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 18714 | then |
| 18715 | # We have reworked collect2 |
| 18716 | hardcode_direct_CXX=yes |
| 18717 | else |
| 18718 | # We have old collect2 |
| 18719 | hardcode_direct_CXX=unsupported |
| 18720 | # It fails to find uninstalled libraries when the uninstalled |
| 18721 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 18722 | # to unsupported forces relinking |
| 18723 | hardcode_minus_L_CXX=yes |
| 18724 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 18725 | hardcode_libdir_separator_CXX= |
| 18726 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18727 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18728 | esac |
| 18729 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18730 | if test "$aix_use_runtimelinking" = yes; then |
| 18731 | shared_flag="$shared_flag "'${wl}-G' |
| 18732 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18733 | else |
| 18734 | # not using gcc |
| 18735 | if test "$host_cpu" = ia64; then |
| 18736 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 18737 | # chokes on -Wl,-G. The following line is correct: |
| 18738 | shared_flag='-G' |
| 18739 | else |
| 18740 | if test "$aix_use_runtimelinking" = yes; then |
| 18741 | shared_flag='${wl}-G' |
| 18742 | else |
| 18743 | shared_flag='${wl}-bM:SRE' |
| 18744 | fi |
| 18745 | fi |
| 18746 | fi |
| 18747 | |
| 18748 | # It seems that -bexpall does not export symbols beginning with |
| 18749 | # underscore (_), so it is better to generate a list of symbols to export. |
| 18750 | always_export_symbols_CXX=yes |
| 18751 | if test "$aix_use_runtimelinking" = yes; then |
| 18752 | # Warning - without using the other runtime loading flags (-brtl), |
| 18753 | # -berok will link without error, but may produce a broken library. |
| 18754 | allow_undefined_flag_CXX='-berok' |
| 18755 | # Determine the default libpath from the value encoded in an empty executable. |
| 18756 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18757 | /* confdefs.h. */ |
| 18758 | _ACEOF |
| 18759 | cat confdefs.h >>conftest.$ac_ext |
| 18760 | cat >>conftest.$ac_ext <<_ACEOF |
| 18761 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18762 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18763 | int |
| 18764 | main () |
| 18765 | { |
| 18766 | |
| 18767 | ; |
| 18768 | return 0; |
| 18769 | } |
| 18770 | _ACEOF |
| 18771 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18772 | if { (ac_try="$ac_link" |
| 18773 | case "(($ac_try" in |
| 18774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18775 | *) ac_try_echo=$ac_try;; |
| 18776 | esac |
| 18777 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18778 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18779 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18780 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18781 | rm -f conftest.er1 |
| 18782 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 18784 | (exit $ac_status); } && |
| 18785 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18786 | { (case "(($ac_try" in |
| 18787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18788 | *) ac_try_echo=$ac_try;; |
| 18789 | esac |
| 18790 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18791 | (eval "$ac_try") 2>&5 |
| 18792 | ac_status=$? |
| 18793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18794 | (exit $ac_status); }; } && |
| 18795 | { ac_try='test -s conftest$ac_exeext' |
| 18796 | { (case "(($ac_try" in |
| 18797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18798 | *) ac_try_echo=$ac_try;; |
| 18799 | esac |
| 18800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18801 | (eval "$ac_try") 2>&5 |
| 18802 | ac_status=$? |
| 18803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18804 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18805 | |
| 18806 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 18807 | }'` |
| 18808 | # Check for a 64-bit object if we didn't find anything. |
| 18809 | 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; } |
| 18810 | }'`; fi |
| 18811 | else |
| 18812 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18813 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18814 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18815 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18816 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18817 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 18818 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18819 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18820 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 18821 | |
| 18822 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 18823 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18824 | 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] | 18825 | else |
| 18826 | if test "$host_cpu" = ia64; then |
| 18827 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 18828 | allow_undefined_flag_CXX="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18829 | 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] | 18830 | else |
| 18831 | # Determine the default libpath from the value encoded in an empty executable. |
| 18832 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18833 | /* confdefs.h. */ |
| 18834 | _ACEOF |
| 18835 | cat confdefs.h >>conftest.$ac_ext |
| 18836 | cat >>conftest.$ac_ext <<_ACEOF |
| 18837 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18838 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18839 | int |
| 18840 | main () |
| 18841 | { |
| 18842 | |
| 18843 | ; |
| 18844 | return 0; |
| 18845 | } |
| 18846 | _ACEOF |
| 18847 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18848 | if { (ac_try="$ac_link" |
| 18849 | case "(($ac_try" in |
| 18850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18851 | *) ac_try_echo=$ac_try;; |
| 18852 | esac |
| 18853 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18854 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18855 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18856 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18857 | rm -f conftest.er1 |
| 18858 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 18860 | (exit $ac_status); } && |
| 18861 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18862 | { (case "(($ac_try" in |
| 18863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18864 | *) ac_try_echo=$ac_try;; |
| 18865 | esac |
| 18866 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18867 | (eval "$ac_try") 2>&5 |
| 18868 | ac_status=$? |
| 18869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18870 | (exit $ac_status); }; } && |
| 18871 | { ac_try='test -s conftest$ac_exeext' |
| 18872 | { (case "(($ac_try" in |
| 18873 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18874 | *) ac_try_echo=$ac_try;; |
| 18875 | esac |
| 18876 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18877 | (eval "$ac_try") 2>&5 |
| 18878 | ac_status=$? |
| 18879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18880 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18881 | |
| 18882 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 18883 | }'` |
| 18884 | # Check for a 64-bit object if we didn't find anything. |
| 18885 | 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; } |
| 18886 | }'`; fi |
| 18887 | else |
| 18888 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18889 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18890 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18891 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18892 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18893 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 18894 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18895 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18896 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 18897 | |
| 18898 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 18899 | # Warning - without using the other run time loading flags, |
| 18900 | # -berok will link without error, but may produce a broken library. |
| 18901 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 18902 | allow_undefined_flag_CXX=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18903 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18904 | whole_archive_flag_spec_CXX='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18905 | archive_cmds_need_lc_CXX=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18906 | # This is similar to how AIX traditionally builds its shared libraries. |
| 18907 | 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] | 18908 | fi |
| 18909 | fi |
| 18910 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18911 | |
| 18912 | beos*) |
| 18913 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 18914 | allow_undefined_flag_CXX=unsupported |
| 18915 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 18916 | # support --undefined. This deserves some investigation. FIXME |
| 18917 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18918 | else |
| 18919 | ld_shlibs_CXX=no |
| 18920 | fi |
| 18921 | ;; |
| 18922 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18923 | chorus*) |
| 18924 | case $cc_basename in |
| 18925 | *) |
| 18926 | # FIXME: insert proper C++ library support |
| 18927 | ld_shlibs_CXX=no |
| 18928 | ;; |
| 18929 | esac |
| 18930 | ;; |
| 18931 | |
| 18932 | cygwin* | mingw* | pw32*) |
| 18933 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 18934 | # as there is no search path for DLLs. |
| 18935 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 18936 | allow_undefined_flag_CXX=unsupported |
| 18937 | always_export_symbols_CXX=no |
| 18938 | enable_shared_with_static_runtimes_CXX=yes |
| 18939 | |
| 18940 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18941 | 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] | 18942 | # If the export-symbols file already is a .def file (1st line |
| 18943 | # is EXPORTS), use it as is; otherwise, prepend... |
| 18944 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 18945 | cp $export_symbols $output_objdir/$soname.def; |
| 18946 | else |
| 18947 | echo EXPORTS > $output_objdir/$soname.def; |
| 18948 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18949 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18950 | $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] | 18951 | else |
| 18952 | ld_shlibs_CXX=no |
| 18953 | fi |
| 18954 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18955 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18956 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18957 | rhapsody* | darwin1.[012]) |
| 18958 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
| 18959 | ;; |
| 18960 | *) # Darwin 1.3 on |
| 18961 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 18962 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 18963 | else |
| 18964 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 18965 | 10.[012]) |
| 18966 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 18967 | ;; |
| 18968 | 10.*) |
| 18969 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
| 18970 | ;; |
| 18971 | esac |
| 18972 | fi |
| 18973 | ;; |
| 18974 | esac |
| 18975 | archive_cmds_need_lc_CXX=no |
| 18976 | hardcode_direct_CXX=no |
| 18977 | hardcode_automatic_CXX=yes |
| 18978 | hardcode_shlibpath_var_CXX=unsupported |
| 18979 | whole_archive_flag_spec_CXX='' |
| 18980 | link_all_deplibs_CXX=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18981 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18982 | if test "$GXX" = yes ; then |
| 18983 | lt_int_apple_cc_single_mod=no |
| 18984 | output_verbose_link_cmd='echo' |
| 18985 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
| 18986 | lt_int_apple_cc_single_mod=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 18987 | fi |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 18988 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18989 | 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] | 18990 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18991 | 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] | 18992 | fi |
| 18993 | 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] | 18994 | # 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] | 18995 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18996 | 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] | 18997 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18998 | 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] | 18999 | fi |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19000 | 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] | 19001 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19002 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19003 | xlc*) |
| 19004 | output_verbose_link_cmd='echo' |
| 19005 | 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' |
| 19006 | 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] | 19007 | # 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] | 19008 | 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}' |
| 19009 | 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] | 19010 | ;; |
| 19011 | *) |
| 19012 | ld_shlibs_CXX=no |
| 19013 | ;; |
| 19014 | esac |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 19015 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19016 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19017 | |
| 19018 | dgux*) |
| 19019 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19020 | ec++*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19021 | # FIXME: insert proper C++ library support |
| 19022 | ld_shlibs_CXX=no |
| 19023 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19024 | ghcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19025 | # Green Hills C++ Compiler |
| 19026 | # FIXME: insert proper C++ library support |
| 19027 | ld_shlibs_CXX=no |
| 19028 | ;; |
| 19029 | *) |
| 19030 | # FIXME: insert proper C++ library support |
| 19031 | ld_shlibs_CXX=no |
| 19032 | ;; |
| 19033 | esac |
| 19034 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19035 | freebsd[12]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19036 | # C++ shared libraries reported to be fairly broken before switch to ELF |
| 19037 | ld_shlibs_CXX=no |
| 19038 | ;; |
| 19039 | freebsd-elf*) |
| 19040 | archive_cmds_need_lc_CXX=no |
| 19041 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19042 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19043 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 19044 | # conventions |
| 19045 | ld_shlibs_CXX=yes |
| 19046 | ;; |
| 19047 | gnu*) |
| 19048 | ;; |
| 19049 | hpux9*) |
| 19050 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 19051 | hardcode_libdir_separator_CXX=: |
| 19052 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 19053 | hardcode_direct_CXX=yes |
| 19054 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 19055 | # but as the default |
| 19056 | # location of the library. |
| 19057 | |
| 19058 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19059 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19060 | # FIXME: insert proper C++ library support |
| 19061 | ld_shlibs_CXX=no |
| 19062 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19063 | aCC*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19064 | 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] | 19065 | # Commands to make compiler produce verbose output that lists |
| 19066 | # what "hidden" libraries, object files and flags are used when |
| 19067 | # linking a shared library. |
| 19068 | # |
| 19069 | # There doesn't appear to be a way to prevent this compiler from |
| 19070 | # explicitly linking system object files so we need to strip them |
| 19071 | # from the output so that they don't get included in the library |
| 19072 | # dependencies. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19073 | 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] | 19074 | ;; |
| 19075 | *) |
| 19076 | if test "$GXX" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19077 | 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] | 19078 | else |
| 19079 | # FIXME: insert proper C++ library support |
| 19080 | ld_shlibs_CXX=no |
| 19081 | fi |
| 19082 | ;; |
| 19083 | esac |
| 19084 | ;; |
| 19085 | hpux10*|hpux11*) |
| 19086 | if test $with_gnu_ld = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19087 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 19088 | hardcode_libdir_separator_CXX=: |
| 19089 | |
| 19090 | case $host_cpu in |
| 19091 | hppa*64*|ia64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19092 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19093 | ;; |
| 19094 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19095 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 19096 | ;; |
| 19097 | esac |
| 19098 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19099 | case $host_cpu in |
| 19100 | hppa*64*|ia64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19101 | hardcode_direct_CXX=no |
| 19102 | hardcode_shlibpath_var_CXX=no |
| 19103 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19104 | *) |
| 19105 | hardcode_direct_CXX=yes |
| 19106 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 19107 | # but as the default |
| 19108 | # location of the library. |
| 19109 | ;; |
| 19110 | esac |
| 19111 | |
| 19112 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19113 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19114 | # FIXME: insert proper C++ library support |
| 19115 | ld_shlibs_CXX=no |
| 19116 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19117 | aCC*) |
| 19118 | case $host_cpu in |
| 19119 | hppa*64*) |
| 19120 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 19121 | ;; |
| 19122 | ia64*) |
| 19123 | 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] | 19124 | ;; |
| 19125 | *) |
| 19126 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 19127 | ;; |
| 19128 | esac |
| 19129 | # Commands to make compiler produce verbose output that lists |
| 19130 | # what "hidden" libraries, object files and flags are used when |
| 19131 | # linking a shared library. |
| 19132 | # |
| 19133 | # There doesn't appear to be a way to prevent this compiler from |
| 19134 | # explicitly linking system object files so we need to strip them |
| 19135 | # from the output so that they don't get included in the library |
| 19136 | # dependencies. |
| 19137 | 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' |
| 19138 | ;; |
| 19139 | *) |
| 19140 | if test "$GXX" = yes; then |
| 19141 | if test $with_gnu_ld = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19142 | case $host_cpu in |
| 19143 | hppa*64*) |
| 19144 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 19145 | ;; |
| 19146 | ia64*) |
| 19147 | 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] | 19148 | ;; |
| 19149 | *) |
| 19150 | 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' |
| 19151 | ;; |
| 19152 | esac |
| 19153 | fi |
| 19154 | else |
| 19155 | # FIXME: insert proper C++ library support |
| 19156 | ld_shlibs_CXX=no |
| 19157 | fi |
| 19158 | ;; |
| 19159 | esac |
| 19160 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19161 | interix3*) |
| 19162 | hardcode_direct_CXX=no |
| 19163 | hardcode_shlibpath_var_CXX=no |
| 19164 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 19165 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 19166 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 19167 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 19168 | # default) and relocated if they conflict, which is a slow very memory |
| 19169 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 19170 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 19171 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 19172 | 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' |
| 19173 | 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' |
| 19174 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19175 | irix5* | irix6*) |
| 19176 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19177 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19178 | # SGI C++ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19179 | 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] | 19180 | |
| 19181 | # Archives containing C++ object files must be created using |
| 19182 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 19183 | # necessary to make sure instantiated templates are included |
| 19184 | # in the archive. |
| 19185 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 19186 | ;; |
| 19187 | *) |
| 19188 | if test "$GXX" = yes; then |
| 19189 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19190 | 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] | 19191 | else |
| 19192 | 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' |
| 19193 | fi |
| 19194 | fi |
| 19195 | link_all_deplibs_CXX=yes |
| 19196 | ;; |
| 19197 | esac |
| 19198 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 19199 | hardcode_libdir_separator_CXX=: |
| 19200 | ;; |
| 19201 | linux*) |
| 19202 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19203 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19204 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 19205 | |
| 19206 | # KCC will only create a shared library if the output file |
| 19207 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 19208 | # to its proper name (with version) after linking. |
| 19209 | 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' |
| 19210 | 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' |
| 19211 | # Commands to make compiler produce verbose output that lists |
| 19212 | # what "hidden" libraries, object files and flags are used when |
| 19213 | # linking a shared library. |
| 19214 | # |
| 19215 | # There doesn't appear to be a way to prevent this compiler from |
| 19216 | # explicitly linking system object files so we need to strip them |
| 19217 | # from the output so that they don't get included in the library |
| 19218 | # dependencies. |
| 19219 | 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' |
| 19220 | |
| 19221 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
| 19222 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 19223 | |
| 19224 | # Archives containing C++ object files must be created using |
| 19225 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 19226 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 19227 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19228 | icpc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19229 | # Intel C++ |
| 19230 | with_gnu_ld=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19231 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 19232 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 19233 | # earlier do not add the objects themselves. |
| 19234 | case `$CC -V 2>&1` in |
| 19235 | *"Version 7."*) |
| 19236 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 19237 | 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' |
| 19238 | ;; |
| 19239 | *) # Version 8.0 or newer |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19240 | tmp_idyn= |
| 19241 | case $host_cpu in |
| 19242 | ia64*) tmp_idyn=' -i_dynamic';; |
| 19243 | esac |
| 19244 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 19245 | 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] | 19246 | ;; |
| 19247 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19248 | archive_cmds_need_lc_CXX=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19249 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 19250 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 19251 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 19252 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19253 | pgCC*) |
| 19254 | # Portland Group C++ compiler |
| 19255 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 19256 | 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' |
| 19257 | |
| 19258 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 19259 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 19260 | 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' |
| 19261 | ;; |
| 19262 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19263 | # Compaq C++ |
| 19264 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 19265 | 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' |
| 19266 | |
| 19267 | runpath_var=LD_RUN_PATH |
| 19268 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 19269 | hardcode_libdir_separator_CXX=: |
| 19270 | |
| 19271 | # Commands to make compiler produce verbose output that lists |
| 19272 | # what "hidden" libraries, object files and flags are used when |
| 19273 | # linking a shared library. |
| 19274 | # |
| 19275 | # There doesn't appear to be a way to prevent this compiler from |
| 19276 | # explicitly linking system object files so we need to strip them |
| 19277 | # from the output so that they don't get included in the library |
| 19278 | # dependencies. |
| 19279 | 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' |
| 19280 | ;; |
| 19281 | esac |
| 19282 | ;; |
| 19283 | lynxos*) |
| 19284 | # FIXME: insert proper C++ library support |
| 19285 | ld_shlibs_CXX=no |
| 19286 | ;; |
| 19287 | m88k*) |
| 19288 | # FIXME: insert proper C++ library support |
| 19289 | ld_shlibs_CXX=no |
| 19290 | ;; |
| 19291 | mvs*) |
| 19292 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19293 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19294 | # FIXME: insert proper C++ library support |
| 19295 | ld_shlibs_CXX=no |
| 19296 | ;; |
| 19297 | *) |
| 19298 | # FIXME: insert proper C++ library support |
| 19299 | ld_shlibs_CXX=no |
| 19300 | ;; |
| 19301 | esac |
| 19302 | ;; |
| 19303 | netbsd*) |
| 19304 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 19305 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 19306 | wlarc= |
| 19307 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 19308 | hardcode_direct_CXX=yes |
| 19309 | hardcode_shlibpath_var_CXX=no |
| 19310 | fi |
| 19311 | # Workaround some broken pre-1.5 toolchains |
| 19312 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 19313 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19314 | openbsd2*) |
| 19315 | # C++ shared libraries are fairly broken |
| 19316 | ld_shlibs_CXX=no |
| 19317 | ;; |
| 19318 | openbsd*) |
| 19319 | hardcode_direct_CXX=yes |
| 19320 | hardcode_shlibpath_var_CXX=no |
| 19321 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 19322 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 19323 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 19324 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| 19325 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 19326 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 19327 | fi |
| 19328 | output_verbose_link_cmd='echo' |
| 19329 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19330 | osf3*) |
| 19331 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19332 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19333 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 19334 | |
| 19335 | # KCC will only create a shared library if the output file |
| 19336 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 19337 | # to its proper name (with version) after linking. |
| 19338 | 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' |
| 19339 | |
| 19340 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 19341 | hardcode_libdir_separator_CXX=: |
| 19342 | |
| 19343 | # Archives containing C++ object files must be created using |
| 19344 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 19345 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 19346 | |
| 19347 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19348 | RCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19349 | # Rational C++ 2.4.1 |
| 19350 | # FIXME: insert proper C++ library support |
| 19351 | ld_shlibs_CXX=no |
| 19352 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19353 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19354 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19355 | 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] | 19356 | |
| 19357 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 19358 | hardcode_libdir_separator_CXX=: |
| 19359 | |
| 19360 | # Commands to make compiler produce verbose output that lists |
| 19361 | # what "hidden" libraries, object files and flags are used when |
| 19362 | # linking a shared library. |
| 19363 | # |
| 19364 | # There doesn't appear to be a way to prevent this compiler from |
| 19365 | # explicitly linking system object files so we need to strip them |
| 19366 | # from the output so that they don't get included in the library |
| 19367 | # dependencies. |
| 19368 | 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' |
| 19369 | ;; |
| 19370 | *) |
| 19371 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 19372 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19373 | 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] | 19374 | |
| 19375 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 19376 | hardcode_libdir_separator_CXX=: |
| 19377 | |
| 19378 | # Commands to make compiler produce verbose output that lists |
| 19379 | # what "hidden" libraries, object files and flags are used when |
| 19380 | # linking a shared library. |
| 19381 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 19382 | |
| 19383 | else |
| 19384 | # FIXME: insert proper C++ library support |
| 19385 | ld_shlibs_CXX=no |
| 19386 | fi |
| 19387 | ;; |
| 19388 | esac |
| 19389 | ;; |
| 19390 | osf4* | osf5*) |
| 19391 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19392 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19393 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 19394 | |
| 19395 | # KCC will only create a shared library if the output file |
| 19396 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 19397 | # to its proper name (with version) after linking. |
| 19398 | 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' |
| 19399 | |
| 19400 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 19401 | hardcode_libdir_separator_CXX=: |
| 19402 | |
| 19403 | # Archives containing C++ object files must be created using |
| 19404 | # the KAI C++ compiler. |
| 19405 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
| 19406 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19407 | RCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19408 | # Rational C++ 2.4.1 |
| 19409 | # FIXME: insert proper C++ library support |
| 19410 | ld_shlibs_CXX=no |
| 19411 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19412 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19413 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19414 | 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] | 19415 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 19416 | echo "-hidden">> $lib.exp~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19417 | $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] | 19418 | $rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19419 | |
| 19420 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 19421 | hardcode_libdir_separator_CXX=: |
| 19422 | |
| 19423 | # Commands to make compiler produce verbose output that lists |
| 19424 | # what "hidden" libraries, object files and flags are used when |
| 19425 | # linking a shared library. |
| 19426 | # |
| 19427 | # There doesn't appear to be a way to prevent this compiler from |
| 19428 | # explicitly linking system object files so we need to strip them |
| 19429 | # from the output so that they don't get included in the library |
| 19430 | # dependencies. |
| 19431 | 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' |
| 19432 | ;; |
| 19433 | *) |
| 19434 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 19435 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19436 | 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] | 19437 | |
| 19438 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 19439 | hardcode_libdir_separator_CXX=: |
| 19440 | |
| 19441 | # Commands to make compiler produce verbose output that lists |
| 19442 | # what "hidden" libraries, object files and flags are used when |
| 19443 | # linking a shared library. |
| 19444 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 19445 | |
| 19446 | else |
| 19447 | # FIXME: insert proper C++ library support |
| 19448 | ld_shlibs_CXX=no |
| 19449 | fi |
| 19450 | ;; |
| 19451 | esac |
| 19452 | ;; |
| 19453 | psos*) |
| 19454 | # FIXME: insert proper C++ library support |
| 19455 | ld_shlibs_CXX=no |
| 19456 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19457 | sunos4*) |
| 19458 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19459 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19460 | # Sun C++ 4.x |
| 19461 | # FIXME: insert proper C++ library support |
| 19462 | ld_shlibs_CXX=no |
| 19463 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19464 | lcc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19465 | # Lucid |
| 19466 | # FIXME: insert proper C++ library support |
| 19467 | ld_shlibs_CXX=no |
| 19468 | ;; |
| 19469 | *) |
| 19470 | # FIXME: insert proper C++ library support |
| 19471 | ld_shlibs_CXX=no |
| 19472 | ;; |
| 19473 | esac |
| 19474 | ;; |
| 19475 | solaris*) |
| 19476 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19477 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19478 | # Sun C++ 4.2, 5.x and Centerline C++ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19479 | archive_cmds_need_lc_CXX=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19480 | no_undefined_flag_CXX=' -zdefs' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19481 | 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] | 19482 | 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] | 19483 | $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] | 19484 | |
| 19485 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 19486 | hardcode_shlibpath_var_CXX=no |
| 19487 | case $host_os in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19488 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19489 | *) |
| 19490 | # The C++ compiler is used as linker so we must use $wl |
| 19491 | # flag to pass the commands to the underlying system |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19492 | # linker. We must also pass each convience library through |
| 19493 | # to the system linker between allextract/defaultextract. |
| 19494 | # The C++ compiler will combine linker options so we |
| 19495 | # cannot just pass the convience library names through |
| 19496 | # without $wl. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19497 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19498 | 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] | 19499 | ;; |
| 19500 | esac |
| 19501 | link_all_deplibs_CXX=yes |
| 19502 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19503 | output_verbose_link_cmd='echo' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19504 | |
| 19505 | # Archives containing C++ object files must be created using |
| 19506 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 19507 | # necessary to make sure instantiated templates are included |
| 19508 | # in the archive. |
| 19509 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 19510 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19511 | gcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19512 | # Green Hills C++ Compiler |
| 19513 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 19514 | |
| 19515 | # The C++ compiler must be used to create the archive. |
| 19516 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 19517 | ;; |
| 19518 | *) |
| 19519 | # GNU C++ compiler with Solaris linker |
| 19520 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 19521 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 19522 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 19523 | 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] | 19524 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 19525 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 19526 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19527 | # Commands to make compiler produce verbose output that lists |
| 19528 | # what "hidden" libraries, object files and flags are used when |
| 19529 | # linking a shared library. |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 19530 | 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] | 19531 | else |
| 19532 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 19533 | # platform. |
| 19534 | 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] | 19535 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 19536 | $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] | 19537 | |
| 19538 | # Commands to make compiler produce verbose output that lists |
| 19539 | # what "hidden" libraries, object files and flags are used when |
| 19540 | # linking a shared library. |
| 19541 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 19542 | fi |
| 19543 | |
| 19544 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 19545 | fi |
| 19546 | ;; |
| 19547 | esac |
| 19548 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19549 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 19550 | no_undefined_flag_CXX='${wl}-z,text' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19551 | archive_cmds_need_lc_CXX=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19552 | hardcode_shlibpath_var_CXX=no |
| 19553 | runpath_var='LD_RUN_PATH' |
| 19554 | |
| 19555 | case $cc_basename in |
| 19556 | CC*) |
| 19557 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19558 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19559 | ;; |
| 19560 | *) |
| 19561 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19562 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19563 | ;; |
| 19564 | esac |
| 19565 | ;; |
| 19566 | sysv5* | sco3.2v5* | sco5v6*) |
| 19567 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 19568 | # link with -lc, and that would cause any symbols used from libc to |
| 19569 | # always be unresolved, which means just about no library would |
| 19570 | # ever link correctly. If we're not using GNU ld we use -z text |
| 19571 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 19572 | # as -z defs. |
| 19573 | # For security reasons, it is highly recommended that you always |
| 19574 | # use absolute paths for naming shared libraries, and exclude the |
| 19575 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 19576 | # requires that you compile everything twice, which is a pain. |
| 19577 | # So that behaviour is only enabled if SCOABSPATH is set to a |
| 19578 | # non-empty value in the environment. Most likely only useful for |
| 19579 | # creating official distributions of packages. |
| 19580 | # This is a hack until libtool officially supports absolute path |
| 19581 | # names for shared libraries. |
| 19582 | no_undefined_flag_CXX='${wl}-z,text' |
| 19583 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
| 19584 | archive_cmds_need_lc_CXX=no |
| 19585 | hardcode_shlibpath_var_CXX=no |
| 19586 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 19587 | hardcode_libdir_separator_CXX=':' |
| 19588 | link_all_deplibs_CXX=yes |
| 19589 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
| 19590 | runpath_var='LD_RUN_PATH' |
| 19591 | |
| 19592 | case $cc_basename in |
| 19593 | CC*) |
| 19594 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19595 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19596 | ;; |
| 19597 | *) |
| 19598 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19599 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19600 | ;; |
| 19601 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19602 | ;; |
| 19603 | tandem*) |
| 19604 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19605 | NCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19606 | # NonStop-UX NCC 3.20 |
| 19607 | # FIXME: insert proper C++ library support |
| 19608 | ld_shlibs_CXX=no |
| 19609 | ;; |
| 19610 | *) |
| 19611 | # FIXME: insert proper C++ library support |
| 19612 | ld_shlibs_CXX=no |
| 19613 | ;; |
| 19614 | esac |
| 19615 | ;; |
| 19616 | vxworks*) |
| 19617 | # FIXME: insert proper C++ library support |
| 19618 | ld_shlibs_CXX=no |
| 19619 | ;; |
| 19620 | *) |
| 19621 | # FIXME: insert proper C++ library support |
| 19622 | ld_shlibs_CXX=no |
| 19623 | ;; |
| 19624 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19625 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 19626 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19627 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 19628 | |
| 19629 | GCC_CXX="$GXX" |
| 19630 | LD_CXX="$LD" |
| 19631 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19632 | |
| 19633 | cat > conftest.$ac_ext <<EOF |
| 19634 | class Foo |
| 19635 | { |
| 19636 | public: |
| 19637 | Foo (void) { a = 0; } |
| 19638 | private: |
| 19639 | int a; |
| 19640 | }; |
| 19641 | EOF |
| 19642 | |
| 19643 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19644 | (eval $ac_compile) 2>&5 |
| 19645 | ac_status=$? |
| 19646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19647 | (exit $ac_status); }; then |
| 19648 | # Parse the compiler output and extract the necessary |
| 19649 | # objects, libraries and library flags. |
| 19650 | |
| 19651 | # Sentinel used to keep track of whether or not we are before |
| 19652 | # the conftest object file. |
| 19653 | pre_test_object_deps_done=no |
| 19654 | |
| 19655 | # The `*' in the case matches for architectures that use `case' in |
| 19656 | # $output_verbose_cmd can trigger glob expansion during the loop |
| 19657 | # eval without this substitution. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19658 | 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] | 19659 | |
| 19660 | for p in `eval $output_verbose_link_cmd`; do |
| 19661 | case $p in |
| 19662 | |
| 19663 | -L* | -R* | -l*) |
| 19664 | # Some compilers place space between "-{L,R}" and the path. |
| 19665 | # Remove the space. |
| 19666 | if test $p = "-L" \ |
| 19667 | || test $p = "-R"; then |
| 19668 | prev=$p |
| 19669 | continue |
| 19670 | else |
| 19671 | prev= |
| 19672 | fi |
| 19673 | |
| 19674 | if test "$pre_test_object_deps_done" = no; then |
| 19675 | case $p in |
| 19676 | -L* | -R*) |
| 19677 | # Internal compiler library paths should come after those |
| 19678 | # provided the user. The postdeps already come after the |
| 19679 | # user supplied libs so there is no need to process them. |
| 19680 | if test -z "$compiler_lib_search_path_CXX"; then |
| 19681 | compiler_lib_search_path_CXX="${prev}${p}" |
| 19682 | else |
| 19683 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 19684 | fi |
| 19685 | ;; |
| 19686 | # The "-l" case would never come before the object being |
| 19687 | # linked, so don't bother handling this case. |
| 19688 | esac |
| 19689 | else |
| 19690 | if test -z "$postdeps_CXX"; then |
| 19691 | postdeps_CXX="${prev}${p}" |
| 19692 | else |
| 19693 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 19694 | fi |
| 19695 | fi |
| 19696 | ;; |
| 19697 | |
| 19698 | *.$objext) |
| 19699 | # This assumes that the test object file only shows up |
| 19700 | # once in the compiler output. |
| 19701 | if test "$p" = "conftest.$objext"; then |
| 19702 | pre_test_object_deps_done=yes |
| 19703 | continue |
| 19704 | fi |
| 19705 | |
| 19706 | if test "$pre_test_object_deps_done" = no; then |
| 19707 | if test -z "$predep_objects_CXX"; then |
| 19708 | predep_objects_CXX="$p" |
| 19709 | else |
| 19710 | predep_objects_CXX="$predep_objects_CXX $p" |
| 19711 | fi |
| 19712 | else |
| 19713 | if test -z "$postdep_objects_CXX"; then |
| 19714 | postdep_objects_CXX="$p" |
| 19715 | else |
| 19716 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 19717 | fi |
| 19718 | fi |
| 19719 | ;; |
| 19720 | |
| 19721 | *) ;; # Ignore the rest. |
| 19722 | |
| 19723 | esac |
| 19724 | done |
| 19725 | |
| 19726 | # Clean up. |
| 19727 | rm -f a.out a.exe |
| 19728 | else |
| 19729 | echo "libtool.m4: error: problem compiling CXX test program" |
| 19730 | fi |
| 19731 | |
| 19732 | $rm -f confest.$objext |
| 19733 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19734 | # PORTME: override above test on systems where it is broken |
| 19735 | case $host_os in |
| 19736 | interix3*) |
| 19737 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 19738 | # hack all around it, let's just trust "g++" to DTRT. |
| 19739 | predep_objects_CXX= |
| 19740 | postdep_objects_CXX= |
| 19741 | postdeps_CXX= |
| 19742 | ;; |
| 19743 | |
| 19744 | solaris*) |
| 19745 | case $cc_basename in |
| 19746 | CC*) |
| 19747 | # Adding this requires a known-good setup of shared libraries for |
| 19748 | # Sun compiler versions before 5.6, else PIC objects from an old |
| 19749 | # archive will be linked into the output, leading to subtle bugs. |
| 19750 | postdeps_CXX='-lCstd -lCrun' |
| 19751 | ;; |
| 19752 | esac |
| 19753 | ;; |
| 19754 | esac |
| 19755 | |
| 19756 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19757 | case " $postdeps_CXX " in |
| 19758 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 19759 | esac |
| 19760 | |
| 19761 | lt_prog_compiler_wl_CXX= |
| 19762 | lt_prog_compiler_pic_CXX= |
| 19763 | lt_prog_compiler_static_CXX= |
| 19764 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19765 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 19766 | 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] | 19767 | |
| 19768 | # C++ specific cases for pic, static, wl, etc. |
| 19769 | if test "$GXX" = yes; then |
| 19770 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19771 | lt_prog_compiler_static_CXX='-static' |
| 19772 | |
| 19773 | case $host_os in |
| 19774 | aix*) |
| 19775 | # All AIX code is PIC. |
| 19776 | if test "$host_cpu" = ia64; then |
| 19777 | # AIX 5 now supports IA64 processor |
| 19778 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19779 | fi |
| 19780 | ;; |
| 19781 | amigaos*) |
| 19782 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 19783 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 19784 | # like `-m68040'. |
| 19785 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 19786 | ;; |
| 19787 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 19788 | # PIC is the default for these OSes. |
| 19789 | ;; |
| 19790 | mingw* | os2* | pw32*) |
| 19791 | # This hack is so that the source file can tell whether it is being |
| 19792 | # built for inclusion in a dll (and should export symbols for example). |
| 19793 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 19794 | ;; |
| 19795 | darwin* | rhapsody*) |
| 19796 | # PIC is the default on this platform |
| 19797 | # Common symbols not allowed in MH_DYLIB files |
| 19798 | lt_prog_compiler_pic_CXX='-fno-common' |
| 19799 | ;; |
| 19800 | *djgpp*) |
| 19801 | # DJGPP does not support shared libraries at all |
| 19802 | lt_prog_compiler_pic_CXX= |
| 19803 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19804 | interix3*) |
| 19805 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 19806 | # Instead, we relocate shared libraries at runtime. |
| 19807 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19808 | sysv4*MP*) |
| 19809 | if test -d /usr/nec; then |
| 19810 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 19811 | fi |
| 19812 | ;; |
| 19813 | hpux*) |
| 19814 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 19815 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19816 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19817 | hppa*64*|ia64*) |
| 19818 | ;; |
| 19819 | *) |
| 19820 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19821 | ;; |
| 19822 | esac |
| 19823 | ;; |
| 19824 | *) |
| 19825 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19826 | ;; |
| 19827 | esac |
| 19828 | else |
| 19829 | case $host_os in |
| 19830 | aix4* | aix5*) |
| 19831 | # All AIX code is PIC. |
| 19832 | if test "$host_cpu" = ia64; then |
| 19833 | # AIX 5 now supports IA64 processor |
| 19834 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19835 | else |
| 19836 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 19837 | fi |
| 19838 | ;; |
| 19839 | chorus*) |
| 19840 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19841 | cxch68*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19842 | # Green Hills C++ Compiler |
| 19843 | # _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" |
| 19844 | ;; |
| 19845 | esac |
| 19846 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19847 | darwin*) |
| 19848 | # PIC is the default on this platform |
| 19849 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19850 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19851 | xlc*) |
| 19852 | lt_prog_compiler_pic_CXX='-qnocommon' |
| 19853 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19854 | ;; |
| 19855 | esac |
| 19856 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19857 | dgux*) |
| 19858 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19859 | ec++*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19860 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19861 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19862 | ghcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19863 | # Green Hills C++ Compiler |
| 19864 | lt_prog_compiler_pic_CXX='-pic' |
| 19865 | ;; |
| 19866 | *) |
| 19867 | ;; |
| 19868 | esac |
| 19869 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19870 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19871 | # FreeBSD uses GNU C++ |
| 19872 | ;; |
| 19873 | hpux9* | hpux10* | hpux11*) |
| 19874 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19875 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19876 | lt_prog_compiler_wl_CXX='-Wl,' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19877 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19878 | if test "$host_cpu" != ia64; then |
| 19879 | lt_prog_compiler_pic_CXX='+Z' |
| 19880 | fi |
| 19881 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19882 | aCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19883 | lt_prog_compiler_wl_CXX='-Wl,' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19884 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 19885 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19886 | hppa*64*|ia64*) |
| 19887 | # +Z the default |
| 19888 | ;; |
| 19889 | *) |
| 19890 | lt_prog_compiler_pic_CXX='+Z' |
| 19891 | ;; |
| 19892 | esac |
| 19893 | ;; |
| 19894 | *) |
| 19895 | ;; |
| 19896 | esac |
| 19897 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19898 | interix*) |
| 19899 | # This is c89, which is MS Visual C++ (no shared libs) |
| 19900 | # Anyone wants to do a port? |
| 19901 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19902 | irix5* | irix6* | nonstopux*) |
| 19903 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19904 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19905 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19906 | lt_prog_compiler_static_CXX='-non_shared' |
| 19907 | # CC pic flag -KPIC is the default. |
| 19908 | ;; |
| 19909 | *) |
| 19910 | ;; |
| 19911 | esac |
| 19912 | ;; |
| 19913 | linux*) |
| 19914 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19915 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19916 | # KAI C++ Compiler |
| 19917 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 19918 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19919 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19920 | icpc* | ecpc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19921 | # Intel C++ |
| 19922 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19923 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19924 | lt_prog_compiler_static_CXX='-static' |
| 19925 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19926 | pgCC*) |
| 19927 | # Portland Group C++ compiler. |
| 19928 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19929 | lt_prog_compiler_pic_CXX='-fpic' |
| 19930 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19931 | ;; |
| 19932 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19933 | # Compaq C++ |
| 19934 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 19935 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 19936 | lt_prog_compiler_pic_CXX= |
| 19937 | lt_prog_compiler_static_CXX='-non_shared' |
| 19938 | ;; |
| 19939 | *) |
| 19940 | ;; |
| 19941 | esac |
| 19942 | ;; |
| 19943 | lynxos*) |
| 19944 | ;; |
| 19945 | m88k*) |
| 19946 | ;; |
| 19947 | mvs*) |
| 19948 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19949 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19950 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 19951 | ;; |
| 19952 | *) |
| 19953 | ;; |
| 19954 | esac |
| 19955 | ;; |
| 19956 | netbsd*) |
| 19957 | ;; |
| 19958 | osf3* | osf4* | osf5*) |
| 19959 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19960 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19961 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 19962 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19963 | RCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19964 | # Rational C++ 2.4.1 |
| 19965 | lt_prog_compiler_pic_CXX='-pic' |
| 19966 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19967 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19968 | # Digital/Compaq C++ |
| 19969 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19970 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 19971 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 19972 | lt_prog_compiler_pic_CXX= |
| 19973 | lt_prog_compiler_static_CXX='-non_shared' |
| 19974 | ;; |
| 19975 | *) |
| 19976 | ;; |
| 19977 | esac |
| 19978 | ;; |
| 19979 | psos*) |
| 19980 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19981 | solaris*) |
| 19982 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19983 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19984 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 19985 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19986 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19987 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 19988 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19989 | gcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19990 | # Green Hills C++ Compiler |
| 19991 | lt_prog_compiler_pic_CXX='-PIC' |
| 19992 | ;; |
| 19993 | *) |
| 19994 | ;; |
| 19995 | esac |
| 19996 | ;; |
| 19997 | sunos4*) |
| 19998 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19999 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20000 | # Sun C++ 4.x |
| 20001 | lt_prog_compiler_pic_CXX='-pic' |
| 20002 | lt_prog_compiler_static_CXX='-Bstatic' |
| 20003 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20004 | lcc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20005 | # Lucid |
| 20006 | lt_prog_compiler_pic_CXX='-pic' |
| 20007 | ;; |
| 20008 | *) |
| 20009 | ;; |
| 20010 | esac |
| 20011 | ;; |
| 20012 | tandem*) |
| 20013 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20014 | NCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20015 | # NonStop-UX NCC 3.20 |
| 20016 | lt_prog_compiler_pic_CXX='-KPIC' |
| 20017 | ;; |
| 20018 | *) |
| 20019 | ;; |
| 20020 | esac |
| 20021 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20022 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 20023 | case $cc_basename in |
| 20024 | CC*) |
| 20025 | lt_prog_compiler_wl_CXX='-Wl,' |
| 20026 | lt_prog_compiler_pic_CXX='-KPIC' |
| 20027 | lt_prog_compiler_static_CXX='-Bstatic' |
| 20028 | ;; |
| 20029 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20030 | ;; |
| 20031 | vxworks*) |
| 20032 | ;; |
| 20033 | *) |
| 20034 | lt_prog_compiler_can_build_shared_CXX=no |
| 20035 | ;; |
| 20036 | esac |
| 20037 | fi |
| 20038 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20039 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
| 20040 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20041 | |
| 20042 | # |
| 20043 | # Check to make sure the PIC flag actually works. |
| 20044 | # |
| 20045 | if test -n "$lt_prog_compiler_pic_CXX"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20046 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20047 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 20048 | 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] | 20049 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
| 20050 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20051 | else |
| 20052 | lt_prog_compiler_pic_works_CXX=no |
| 20053 | ac_outfile=conftest.$ac_objext |
| 20054 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 20055 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 20056 | # Insert the option either (1) after the last *FLAGS variable, or |
| 20057 | # (2) before a word containing "conftest.", or (3) at the end. |
| 20058 | # Note that $ac_compile itself does not contain backslashes and begins |
| 20059 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 20060 | # The option is referenced via a variable to avoid confusing sed. |
| 20061 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20062 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20063 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 20064 | -e 's:$: $lt_compiler_flag:'` |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 20065 | (eval echo "\"\$as_me:20070: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20066 | (eval "$lt_compile" 2>conftest.err) |
| 20067 | ac_status=$? |
| 20068 | cat conftest.err >&5 |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 20069 | echo "$as_me:20074: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20070 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 20071 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20072 | # So say no if there are warnings other than the usual output. |
| 20073 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 20074 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 20075 | 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] | 20076 | lt_prog_compiler_pic_works_CXX=yes |
| 20077 | fi |
| 20078 | fi |
| 20079 | $rm conftest* |
| 20080 | |
| 20081 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20082 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
| 20083 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20084 | |
| 20085 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
| 20086 | case $lt_prog_compiler_pic_CXX in |
| 20087 | "" | " "*) ;; |
| 20088 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 20089 | esac |
| 20090 | else |
| 20091 | lt_prog_compiler_pic_CXX= |
| 20092 | lt_prog_compiler_can_build_shared_CXX=no |
| 20093 | fi |
| 20094 | |
| 20095 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20096 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20097 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 20098 | *djgpp*) |
| 20099 | lt_prog_compiler_pic_CXX= |
| 20100 | ;; |
| 20101 | *) |
| 20102 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 20103 | ;; |
| 20104 | esac |
| 20105 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20106 | # |
| 20107 | # Check to make sure the static flag actually works. |
| 20108 | # |
| 20109 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
| 20110 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 20111 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 20112 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
| 20113 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20114 | else |
| 20115 | lt_prog_compiler_static_works_CXX=no |
| 20116 | save_LDFLAGS="$LDFLAGS" |
| 20117 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 20118 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 20119 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 20120 | # The linker can only warn and ignore the option if not recognized |
| 20121 | # So say no if there are warnings |
| 20122 | if test -s conftest.err; then |
| 20123 | # Append any errors to the config.log. |
| 20124 | cat conftest.err 1>&5 |
| 20125 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 20126 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 20127 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 20128 | lt_prog_compiler_static_works_CXX=yes |
| 20129 | fi |
| 20130 | else |
| 20131 | lt_prog_compiler_static_works_CXX=yes |
| 20132 | fi |
| 20133 | fi |
| 20134 | $rm conftest* |
| 20135 | LDFLAGS="$save_LDFLAGS" |
| 20136 | |
| 20137 | fi |
| 20138 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
| 20139 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } |
| 20140 | |
| 20141 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
| 20142 | : |
| 20143 | else |
| 20144 | lt_prog_compiler_static_CXX= |
| 20145 | fi |
| 20146 | |
| 20147 | |
| 20148 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 20149 | 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] | 20150 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
| 20151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20152 | else |
| 20153 | lt_cv_prog_compiler_c_o_CXX=no |
| 20154 | $rm -r conftest 2>/dev/null |
| 20155 | mkdir conftest |
| 20156 | cd conftest |
| 20157 | mkdir out |
| 20158 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 20159 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20160 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 20161 | # Insert the option either (1) after the last *FLAGS variable, or |
| 20162 | # (2) before a word containing "conftest.", or (3) at the end. |
| 20163 | # Note that $ac_compile itself does not contain backslashes and begins |
| 20164 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 20165 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20166 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20167 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 20168 | -e 's:$: $lt_compiler_flag:'` |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 20169 | (eval echo "\"\$as_me:20174: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20170 | (eval "$lt_compile" 2>out/conftest.err) |
| 20171 | ac_status=$? |
| 20172 | cat out/conftest.err >&5 |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 20173 | echo "$as_me:20178: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20174 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 20175 | then |
| 20176 | # The compiler can only warn and ignore the option if not recognized |
| 20177 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20178 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 20179 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 20180 | 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] | 20181 | lt_cv_prog_compiler_c_o_CXX=yes |
| 20182 | fi |
| 20183 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20184 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20185 | $rm conftest* |
| 20186 | # SGI C++ compiler will create directory out/ii_files/ for |
| 20187 | # template instantiation |
| 20188 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 20189 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20190 | cd .. |
| 20191 | rmdir conftest |
| 20192 | $rm conftest* |
| 20193 | |
| 20194 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20195 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 20196 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20197 | |
| 20198 | |
| 20199 | hard_links="nottested" |
| 20200 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 20201 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20202 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 20203 | 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] | 20204 | hard_links=yes |
| 20205 | $rm conftest* |
| 20206 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 20207 | touch conftest.a |
| 20208 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 20209 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20210 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 20211 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20212 | if test "$hard_links" = no; then |
| 20213 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 20214 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 20215 | need_locks=warn |
| 20216 | fi |
| 20217 | else |
| 20218 | need_locks=no |
| 20219 | fi |
| 20220 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20221 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 20222 | 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] | 20223 | |
| 20224 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 20225 | case $host_os in |
| 20226 | aix4* | aix5*) |
| 20227 | # If we're using GNU nm, then we don't want the "-C" option. |
| 20228 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 20229 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 20230 | 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' |
| 20231 | else |
| 20232 | 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' |
| 20233 | fi |
| 20234 | ;; |
| 20235 | pw32*) |
| 20236 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 20237 | ;; |
| 20238 | cygwin* | mingw*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20239 | 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] | 20240 | ;; |
| 20241 | *) |
| 20242 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 20243 | ;; |
| 20244 | esac |
| 20245 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20246 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 20247 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20248 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 20249 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20250 | # |
| 20251 | # Do we need to explicitly link libc? |
| 20252 | # |
| 20253 | case "x$archive_cmds_need_lc_CXX" in |
| 20254 | x|xyes) |
| 20255 | # Assume -lc should be added |
| 20256 | archive_cmds_need_lc_CXX=yes |
| 20257 | |
| 20258 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 20259 | case $archive_cmds_CXX in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20260 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20261 | # FIXME: we may have to deal with multi-command sequences. |
| 20262 | ;; |
| 20263 | '$CC '*) |
| 20264 | # Test whether the compiler implicitly links with -lc since on some |
| 20265 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 20266 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20267 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 20268 | 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] | 20269 | $rm conftest* |
| 20270 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 20271 | |
| 20272 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20273 | (eval $ac_compile) 2>&5 |
| 20274 | ac_status=$? |
| 20275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20276 | (exit $ac_status); } 2>conftest.err; then |
| 20277 | soname=conftest |
| 20278 | lib=conftest |
| 20279 | libobjs=conftest.$ac_objext |
| 20280 | deplibs= |
| 20281 | wl=$lt_prog_compiler_wl_CXX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20282 | pic_flag=$lt_prog_compiler_pic_CXX |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20283 | compiler_flags=-v |
| 20284 | linker_flags=-v |
| 20285 | verstring= |
| 20286 | output_objdir=. |
| 20287 | libname=conftest |
| 20288 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 20289 | allow_undefined_flag_CXX= |
| 20290 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 20291 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 20292 | ac_status=$? |
| 20293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20294 | (exit $ac_status); } |
| 20295 | then |
| 20296 | archive_cmds_need_lc_CXX=no |
| 20297 | else |
| 20298 | archive_cmds_need_lc_CXX=yes |
| 20299 | fi |
| 20300 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 20301 | else |
| 20302 | cat conftest.err 1>&5 |
| 20303 | fi |
| 20304 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20305 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
| 20306 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20307 | ;; |
| 20308 | esac |
| 20309 | fi |
| 20310 | ;; |
| 20311 | esac |
| 20312 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20313 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 20314 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20315 | library_names_spec= |
| 20316 | libname_spec='lib$name' |
| 20317 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20318 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20319 | postinstall_cmds= |
| 20320 | postuninstall_cmds= |
| 20321 | finish_cmds= |
| 20322 | finish_eval= |
| 20323 | shlibpath_var= |
| 20324 | shlibpath_overrides_runpath=unknown |
| 20325 | version_type=none |
| 20326 | dynamic_linker="$host_os ld.so" |
| 20327 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 20328 | if test "$GCC" = yes; then |
| 20329 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 20330 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 20331 | # if the path contains ";" then we assume it to be the separator |
| 20332 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 20333 | # assumed that no part of a normal pathname contains ";" but that should |
| 20334 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 20335 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 20336 | else |
| 20337 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 20338 | fi |
| 20339 | else |
| 20340 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 20341 | fi |
| 20342 | need_lib_prefix=unknown |
| 20343 | hardcode_into_libs=no |
| 20344 | |
| 20345 | # when you set need_version to no, make sure it does not cause -set_version |
| 20346 | # flags to be left without arguments |
| 20347 | need_version=unknown |
| 20348 | |
| 20349 | case $host_os in |
| 20350 | aix3*) |
| 20351 | version_type=linux |
| 20352 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 20353 | shlibpath_var=LIBPATH |
| 20354 | |
| 20355 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 20356 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20357 | ;; |
| 20358 | |
| 20359 | aix4* | aix5*) |
| 20360 | version_type=linux |
| 20361 | need_lib_prefix=no |
| 20362 | need_version=no |
| 20363 | hardcode_into_libs=yes |
| 20364 | if test "$host_cpu" = ia64; then |
| 20365 | # AIX 5 supports IA64 |
| 20366 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 20367 | shlibpath_var=LD_LIBRARY_PATH |
| 20368 | else |
| 20369 | # With GCC up to 2.95.x, collect2 would create an import file |
| 20370 | # for dependence libraries. The import file would start with |
| 20371 | # the line `#! .'. This would cause the generated library to |
| 20372 | # depend on `.', always an invalid library. This was fixed in |
| 20373 | # development snapshots of GCC prior to 3.0. |
| 20374 | case $host_os in |
| 20375 | aix4 | aix4.[01] | aix4.[01].*) |
| 20376 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 20377 | echo ' yes ' |
| 20378 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 20379 | : |
| 20380 | else |
| 20381 | can_build_shared=no |
| 20382 | fi |
| 20383 | ;; |
| 20384 | esac |
| 20385 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 20386 | # soname into executable. Probably we can add versioning support to |
| 20387 | # collect2, so additional links can be useful in future. |
| 20388 | if test "$aix_use_runtimelinking" = yes; then |
| 20389 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 20390 | # instead of lib<name>.a to let people know that these are not |
| 20391 | # typical AIX shared libraries. |
| 20392 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20393 | else |
| 20394 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 20395 | # and later when we are not doing run time linking. |
| 20396 | library_names_spec='${libname}${release}.a $libname.a' |
| 20397 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20398 | fi |
| 20399 | shlibpath_var=LIBPATH |
| 20400 | fi |
| 20401 | ;; |
| 20402 | |
| 20403 | amigaos*) |
| 20404 | library_names_spec='$libname.ixlibrary $libname.a' |
| 20405 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20406 | 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] | 20407 | ;; |
| 20408 | |
| 20409 | beos*) |
| 20410 | library_names_spec='${libname}${shared_ext}' |
| 20411 | dynamic_linker="$host_os ld.so" |
| 20412 | shlibpath_var=LIBRARY_PATH |
| 20413 | ;; |
| 20414 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20415 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20416 | version_type=linux |
| 20417 | need_version=no |
| 20418 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20419 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20420 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 20421 | shlibpath_var=LD_LIBRARY_PATH |
| 20422 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 20423 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 20424 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 20425 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 20426 | # libtool to hard-code these into programs |
| 20427 | ;; |
| 20428 | |
| 20429 | cygwin* | mingw* | pw32*) |
| 20430 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20431 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20432 | need_version=no |
| 20433 | need_lib_prefix=no |
| 20434 | |
| 20435 | case $GCC,$host_os in |
| 20436 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 20437 | library_names_spec='$libname.dll.a' |
| 20438 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20439 | postinstall_cmds='base_file=`basename \${file}`~ |
| 20440 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 20441 | dldir=$destdir/`dirname \$dlpath`~ |
| 20442 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20443 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 20444 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20445 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 20446 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20447 | $rm \$dlpath' |
| 20448 | shlibpath_overrides_runpath=yes |
| 20449 | |
| 20450 | case $host_os in |
| 20451 | cygwin*) |
| 20452 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 20453 | 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] | 20454 | 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] | 20455 | ;; |
| 20456 | mingw*) |
| 20457 | # MinGW DLLs use traditional 'lib' prefix |
| 20458 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 20459 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 20460 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 20461 | # It is most probably a Windows format PATH printed by |
| 20462 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 20463 | # path with ; separators, and with drive letters. We can handle the |
| 20464 | # drive letters (cygwin fileutils understands them), so leave them, |
| 20465 | # especially as we might pass files found there to a mingw objdump, |
| 20466 | # which wouldn't understand a cygwinified path. Ahh. |
| 20467 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 20468 | else |
| 20469 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 20470 | fi |
| 20471 | ;; |
| 20472 | pw32*) |
| 20473 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20474 | 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] | 20475 | ;; |
| 20476 | esac |
| 20477 | ;; |
| 20478 | |
| 20479 | *) |
| 20480 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 20481 | ;; |
| 20482 | esac |
| 20483 | dynamic_linker='Win32 ld.exe' |
| 20484 | # FIXME: first we should search . and the directory the executable is in |
| 20485 | shlibpath_var=PATH |
| 20486 | ;; |
| 20487 | |
| 20488 | darwin* | rhapsody*) |
| 20489 | dynamic_linker="$host_os dyld" |
| 20490 | version_type=darwin |
| 20491 | need_lib_prefix=no |
| 20492 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20493 | 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] | 20494 | soname_spec='${libname}${release}${major}$shared_ext' |
| 20495 | shlibpath_overrides_runpath=yes |
| 20496 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 20497 | shrext_cmds='.dylib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20498 | # 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] | 20499 | if test "$GCC" = yes; then |
| 20500 | 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"` |
| 20501 | else |
| 20502 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20503 | fi |
| 20504 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 20505 | ;; |
| 20506 | |
| 20507 | dgux*) |
| 20508 | version_type=linux |
| 20509 | need_lib_prefix=no |
| 20510 | need_version=no |
| 20511 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 20512 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20513 | shlibpath_var=LD_LIBRARY_PATH |
| 20514 | ;; |
| 20515 | |
| 20516 | freebsd1*) |
| 20517 | dynamic_linker=no |
| 20518 | ;; |
| 20519 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20520 | kfreebsd*-gnu) |
| 20521 | version_type=linux |
| 20522 | need_lib_prefix=no |
| 20523 | need_version=no |
| 20524 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 20525 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20526 | shlibpath_var=LD_LIBRARY_PATH |
| 20527 | shlibpath_overrides_runpath=no |
| 20528 | hardcode_into_libs=yes |
| 20529 | dynamic_linker='GNU ld.so' |
| 20530 | ;; |
| 20531 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20532 | freebsd* | dragonfly*) |
| 20533 | # DragonFly does not have aout. When/if they implement a new |
| 20534 | # versioning mechanism, adjust this. |
| 20535 | if test -x /usr/bin/objformat; then |
| 20536 | objformat=`/usr/bin/objformat` |
| 20537 | else |
| 20538 | case $host_os in |
| 20539 | freebsd[123]*) objformat=aout ;; |
| 20540 | *) objformat=elf ;; |
| 20541 | esac |
| 20542 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20543 | version_type=freebsd-$objformat |
| 20544 | case $version_type in |
| 20545 | freebsd-elf*) |
| 20546 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20547 | need_version=no |
| 20548 | need_lib_prefix=no |
| 20549 | ;; |
| 20550 | freebsd-*) |
| 20551 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 20552 | need_version=yes |
| 20553 | ;; |
| 20554 | esac |
| 20555 | shlibpath_var=LD_LIBRARY_PATH |
| 20556 | case $host_os in |
| 20557 | freebsd2*) |
| 20558 | shlibpath_overrides_runpath=yes |
| 20559 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20560 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20561 | shlibpath_overrides_runpath=yes |
| 20562 | hardcode_into_libs=yes |
| 20563 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20564 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 20565 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20566 | shlibpath_overrides_runpath=no |
| 20567 | hardcode_into_libs=yes |
| 20568 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20569 | freebsd*) # from 4.6 on |
| 20570 | shlibpath_overrides_runpath=yes |
| 20571 | hardcode_into_libs=yes |
| 20572 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20573 | esac |
| 20574 | ;; |
| 20575 | |
| 20576 | gnu*) |
| 20577 | version_type=linux |
| 20578 | need_lib_prefix=no |
| 20579 | need_version=no |
| 20580 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 20581 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20582 | shlibpath_var=LD_LIBRARY_PATH |
| 20583 | hardcode_into_libs=yes |
| 20584 | ;; |
| 20585 | |
| 20586 | hpux9* | hpux10* | hpux11*) |
| 20587 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 20588 | # link against other versions. |
| 20589 | version_type=sunos |
| 20590 | need_lib_prefix=no |
| 20591 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20592 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20593 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20594 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20595 | hardcode_into_libs=yes |
| 20596 | dynamic_linker="$host_os dld.so" |
| 20597 | shlibpath_var=LD_LIBRARY_PATH |
| 20598 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 20599 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20600 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20601 | if test "X$HPUX_IA64_MODE" = X32; then |
| 20602 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 20603 | else |
| 20604 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 20605 | fi |
| 20606 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 20607 | ;; |
| 20608 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20609 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20610 | hardcode_into_libs=yes |
| 20611 | dynamic_linker="$host_os dld.sl" |
| 20612 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 20613 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 20614 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20615 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20616 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 20617 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 20618 | ;; |
| 20619 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20620 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20621 | dynamic_linker="$host_os dld.sl" |
| 20622 | shlibpath_var=SHLIB_PATH |
| 20623 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 20624 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20625 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20626 | ;; |
| 20627 | esac |
| 20628 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 20629 | postinstall_cmds='chmod 555 $lib' |
| 20630 | ;; |
| 20631 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20632 | interix3*) |
| 20633 | version_type=linux |
| 20634 | need_lib_prefix=no |
| 20635 | need_version=no |
| 20636 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 20637 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20638 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 20639 | shlibpath_var=LD_LIBRARY_PATH |
| 20640 | shlibpath_overrides_runpath=no |
| 20641 | hardcode_into_libs=yes |
| 20642 | ;; |
| 20643 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20644 | irix5* | irix6* | nonstopux*) |
| 20645 | case $host_os in |
| 20646 | nonstopux*) version_type=nonstopux ;; |
| 20647 | *) |
| 20648 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 20649 | version_type=linux |
| 20650 | else |
| 20651 | version_type=irix |
| 20652 | fi ;; |
| 20653 | esac |
| 20654 | need_lib_prefix=no |
| 20655 | need_version=no |
| 20656 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20657 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20658 | case $host_os in |
| 20659 | irix5* | nonstopux*) |
| 20660 | libsuff= shlibsuff= |
| 20661 | ;; |
| 20662 | *) |
| 20663 | case $LD in # libtool.m4 will add one of these switches to LD |
| 20664 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 20665 | libsuff= shlibsuff= libmagic=32-bit;; |
| 20666 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 20667 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 20668 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 20669 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 20670 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 20671 | esac |
| 20672 | ;; |
| 20673 | esac |
| 20674 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 20675 | shlibpath_overrides_runpath=no |
| 20676 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 20677 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 20678 | hardcode_into_libs=yes |
| 20679 | ;; |
| 20680 | |
| 20681 | # No shared lib support for Linux oldld, aout, or coff. |
| 20682 | linux*oldld* | linux*aout* | linux*coff*) |
| 20683 | dynamic_linker=no |
| 20684 | ;; |
| 20685 | |
| 20686 | # This must be Linux ELF. |
| 20687 | linux*) |
| 20688 | version_type=linux |
| 20689 | need_lib_prefix=no |
| 20690 | need_version=no |
| 20691 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20692 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20693 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 20694 | shlibpath_var=LD_LIBRARY_PATH |
| 20695 | shlibpath_overrides_runpath=no |
| 20696 | # This implies no fast_install, which is unacceptable. |
| 20697 | # Some rework will be needed to allow for fast_install |
| 20698 | # before this can be enabled. |
| 20699 | hardcode_into_libs=yes |
| 20700 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20701 | # Append ld.so.conf contents to the search path |
| 20702 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20703 | 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] | 20704 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 20705 | fi |
| 20706 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20707 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 20708 | # powerpc, because MkLinux only supported shared libraries with the |
| 20709 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 20710 | # most powerpc-linux boxes support dynamic linking these days and |
| 20711 | # people can always --disable-shared, the test was removed, and we |
| 20712 | # assume the GNU/Linux dynamic linker is in use. |
| 20713 | dynamic_linker='GNU/Linux ld.so' |
| 20714 | ;; |
| 20715 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20716 | knetbsd*-gnu) |
| 20717 | version_type=linux |
| 20718 | need_lib_prefix=no |
| 20719 | need_version=no |
| 20720 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 20721 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20722 | shlibpath_var=LD_LIBRARY_PATH |
| 20723 | shlibpath_overrides_runpath=no |
| 20724 | hardcode_into_libs=yes |
| 20725 | dynamic_linker='GNU ld.so' |
| 20726 | ;; |
| 20727 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20728 | netbsd*) |
| 20729 | version_type=sunos |
| 20730 | need_lib_prefix=no |
| 20731 | need_version=no |
| 20732 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 20733 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20734 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 20735 | dynamic_linker='NetBSD (a.out) ld.so' |
| 20736 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20737 | 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] | 20738 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20739 | dynamic_linker='NetBSD ld.elf_so' |
| 20740 | fi |
| 20741 | shlibpath_var=LD_LIBRARY_PATH |
| 20742 | shlibpath_overrides_runpath=yes |
| 20743 | hardcode_into_libs=yes |
| 20744 | ;; |
| 20745 | |
| 20746 | newsos6) |
| 20747 | version_type=linux |
| 20748 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20749 | shlibpath_var=LD_LIBRARY_PATH |
| 20750 | shlibpath_overrides_runpath=yes |
| 20751 | ;; |
| 20752 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20753 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20754 | version_type=linux |
| 20755 | need_lib_prefix=no |
| 20756 | need_version=no |
| 20757 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20758 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20759 | shlibpath_var=LD_LIBRARY_PATH |
| 20760 | shlibpath_overrides_runpath=yes |
| 20761 | ;; |
| 20762 | |
| 20763 | openbsd*) |
| 20764 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20765 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20766 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20767 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 20768 | case $host_os in |
| 20769 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 20770 | *) need_version=no ;; |
| 20771 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20772 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20773 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 20774 | shlibpath_var=LD_LIBRARY_PATH |
| 20775 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 20776 | case $host_os in |
| 20777 | openbsd2.[89] | openbsd2.[89].*) |
| 20778 | shlibpath_overrides_runpath=no |
| 20779 | ;; |
| 20780 | *) |
| 20781 | shlibpath_overrides_runpath=yes |
| 20782 | ;; |
| 20783 | esac |
| 20784 | else |
| 20785 | shlibpath_overrides_runpath=yes |
| 20786 | fi |
| 20787 | ;; |
| 20788 | |
| 20789 | os2*) |
| 20790 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20791 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20792 | need_lib_prefix=no |
| 20793 | library_names_spec='$libname${shared_ext} $libname.a' |
| 20794 | dynamic_linker='OS/2 ld.exe' |
| 20795 | shlibpath_var=LIBPATH |
| 20796 | ;; |
| 20797 | |
| 20798 | osf3* | osf4* | osf5*) |
| 20799 | version_type=osf |
| 20800 | need_lib_prefix=no |
| 20801 | need_version=no |
| 20802 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20803 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20804 | shlibpath_var=LD_LIBRARY_PATH |
| 20805 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 20806 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 20807 | ;; |
| 20808 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20809 | solaris*) |
| 20810 | version_type=linux |
| 20811 | need_lib_prefix=no |
| 20812 | need_version=no |
| 20813 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20814 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20815 | shlibpath_var=LD_LIBRARY_PATH |
| 20816 | shlibpath_overrides_runpath=yes |
| 20817 | hardcode_into_libs=yes |
| 20818 | # ldd complains unless libraries are executable |
| 20819 | postinstall_cmds='chmod +x $lib' |
| 20820 | ;; |
| 20821 | |
| 20822 | sunos4*) |
| 20823 | version_type=sunos |
| 20824 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20825 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 20826 | shlibpath_var=LD_LIBRARY_PATH |
| 20827 | shlibpath_overrides_runpath=yes |
| 20828 | if test "$with_gnu_ld" = yes; then |
| 20829 | need_lib_prefix=no |
| 20830 | fi |
| 20831 | need_version=yes |
| 20832 | ;; |
| 20833 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20834 | sysv4 | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20835 | version_type=linux |
| 20836 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20837 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20838 | shlibpath_var=LD_LIBRARY_PATH |
| 20839 | case $host_vendor in |
| 20840 | sni) |
| 20841 | shlibpath_overrides_runpath=no |
| 20842 | need_lib_prefix=no |
| 20843 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 20844 | runpath_var=LD_RUN_PATH |
| 20845 | ;; |
| 20846 | siemens) |
| 20847 | need_lib_prefix=no |
| 20848 | ;; |
| 20849 | motorola) |
| 20850 | need_lib_prefix=no |
| 20851 | need_version=no |
| 20852 | shlibpath_overrides_runpath=no |
| 20853 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 20854 | ;; |
| 20855 | esac |
| 20856 | ;; |
| 20857 | |
| 20858 | sysv4*MP*) |
| 20859 | if test -d /usr/nec ;then |
| 20860 | version_type=linux |
| 20861 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 20862 | soname_spec='$libname${shared_ext}.$major' |
| 20863 | shlibpath_var=LD_LIBRARY_PATH |
| 20864 | fi |
| 20865 | ;; |
| 20866 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20867 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 20868 | version_type=freebsd-elf |
| 20869 | need_lib_prefix=no |
| 20870 | need_version=no |
| 20871 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20872 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20873 | shlibpath_var=LD_LIBRARY_PATH |
| 20874 | hardcode_into_libs=yes |
| 20875 | if test "$with_gnu_ld" = yes; then |
| 20876 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 20877 | shlibpath_overrides_runpath=no |
| 20878 | else |
| 20879 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 20880 | shlibpath_overrides_runpath=yes |
| 20881 | case $host_os in |
| 20882 | sco3.2v5*) |
| 20883 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 20884 | ;; |
| 20885 | esac |
| 20886 | fi |
| 20887 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 20888 | ;; |
| 20889 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20890 | uts4*) |
| 20891 | version_type=linux |
| 20892 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20893 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20894 | shlibpath_var=LD_LIBRARY_PATH |
| 20895 | ;; |
| 20896 | |
| 20897 | *) |
| 20898 | dynamic_linker=no |
| 20899 | ;; |
| 20900 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20901 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 20902 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20903 | test "$dynamic_linker" = no && can_build_shared=no |
| 20904 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20905 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 20906 | if test "$GCC" = yes; then |
| 20907 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 20908 | fi |
| 20909 | |
| 20910 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 20911 | 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] | 20912 | hardcode_action_CXX= |
| 20913 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
| 20914 | test -n "$runpath_var_CXX" || \ |
| 20915 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
| 20916 | |
| 20917 | # We can hardcode non-existant directories. |
| 20918 | if test "$hardcode_direct_CXX" != no && |
| 20919 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 20920 | # have to relink, otherwise we might link with an installed library |
| 20921 | # when we should be linking with a yet-to-be-installed one |
| 20922 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 20923 | test "$hardcode_minus_L_CXX" != no; then |
| 20924 | # Linking always hardcodes the temporary library directory. |
| 20925 | hardcode_action_CXX=relink |
| 20926 | else |
| 20927 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 20928 | hardcode_action_CXX=immediate |
| 20929 | fi |
| 20930 | else |
| 20931 | # We cannot hardcode anything, or else we can only hardcode existing |
| 20932 | # directories. |
| 20933 | hardcode_action_CXX=unsupported |
| 20934 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20935 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
| 20936 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20937 | |
| 20938 | if test "$hardcode_action_CXX" = relink; then |
| 20939 | # Fast installation is not supported |
| 20940 | enable_fast_install=no |
| 20941 | elif test "$shlibpath_overrides_runpath" = yes || |
| 20942 | test "$enable_shared" = no; then |
| 20943 | # Fast installation is not necessary |
| 20944 | enable_fast_install=needless |
| 20945 | fi |
| 20946 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20947 | |
| 20948 | # The else clause should only fire when bootstrapping the |
| 20949 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 20950 | # with your package, and you will get complaints that there are |
| 20951 | # no rules to generate ltmain.sh. |
| 20952 | if test -f "$ltmain"; then |
| 20953 | # See if we are running on zsh, and set the options which allow our commands through |
| 20954 | # without removal of \ escapes. |
| 20955 | if test -n "${ZSH_VERSION+set}" ; then |
| 20956 | setopt NO_GLOB_SUBST |
| 20957 | fi |
| 20958 | # Now quote all the things that may contain metacharacters while being |
| 20959 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 20960 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20961 | 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] | 20962 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20963 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 20964 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 20965 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 20966 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 20967 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 20968 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 20969 | old_postinstall_cmds old_postuninstall_cmds \ |
| 20970 | compiler_CXX \ |
| 20971 | CC_CXX \ |
| 20972 | LD_CXX \ |
| 20973 | lt_prog_compiler_wl_CXX \ |
| 20974 | lt_prog_compiler_pic_CXX \ |
| 20975 | lt_prog_compiler_static_CXX \ |
| 20976 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 20977 | export_dynamic_flag_spec_CXX \ |
| 20978 | thread_safe_flag_spec_CXX \ |
| 20979 | whole_archive_flag_spec_CXX \ |
| 20980 | enable_shared_with_static_runtimes_CXX \ |
| 20981 | old_archive_cmds_CXX \ |
| 20982 | old_archive_from_new_cmds_CXX \ |
| 20983 | predep_objects_CXX \ |
| 20984 | postdep_objects_CXX \ |
| 20985 | predeps_CXX \ |
| 20986 | postdeps_CXX \ |
| 20987 | compiler_lib_search_path_CXX \ |
| 20988 | archive_cmds_CXX \ |
| 20989 | archive_expsym_cmds_CXX \ |
| 20990 | postinstall_cmds_CXX \ |
| 20991 | postuninstall_cmds_CXX \ |
| 20992 | old_archive_from_expsyms_cmds_CXX \ |
| 20993 | allow_undefined_flag_CXX \ |
| 20994 | no_undefined_flag_CXX \ |
| 20995 | export_symbols_cmds_CXX \ |
| 20996 | hardcode_libdir_flag_spec_CXX \ |
| 20997 | hardcode_libdir_flag_spec_ld_CXX \ |
| 20998 | hardcode_libdir_separator_CXX \ |
| 20999 | hardcode_automatic_CXX \ |
| 21000 | module_cmds_CXX \ |
| 21001 | module_expsym_cmds_CXX \ |
| 21002 | lt_cv_prog_compiler_c_o_CXX \ |
| 21003 | exclude_expsyms_CXX \ |
| 21004 | include_expsyms_CXX; do |
| 21005 | |
| 21006 | case $var in |
| 21007 | old_archive_cmds_CXX | \ |
| 21008 | old_archive_from_new_cmds_CXX | \ |
| 21009 | archive_cmds_CXX | \ |
| 21010 | archive_expsym_cmds_CXX | \ |
| 21011 | module_cmds_CXX | \ |
| 21012 | module_expsym_cmds_CXX | \ |
| 21013 | old_archive_from_expsyms_cmds_CXX | \ |
| 21014 | export_symbols_cmds_CXX | \ |
| 21015 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 21016 | postinstall_cmds | postuninstall_cmds | \ |
| 21017 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 21018 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 21019 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21020 | 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] | 21021 | ;; |
| 21022 | *) |
| 21023 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 21024 | ;; |
| 21025 | esac |
| 21026 | done |
| 21027 | |
| 21028 | case $lt_echo in |
| 21029 | *'\$0 --fallback-echo"') |
| 21030 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 21031 | ;; |
| 21032 | esac |
| 21033 | |
| 21034 | cfgfile="$ofile" |
| 21035 | |
| 21036 | cat <<__EOF__ >> "$cfgfile" |
| 21037 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 21038 | |
| 21039 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 21040 | |
| 21041 | # Shell to use when invoking shell scripts. |
| 21042 | SHELL=$lt_SHELL |
| 21043 | |
| 21044 | # Whether or not to build shared libraries. |
| 21045 | build_libtool_libs=$enable_shared |
| 21046 | |
| 21047 | # Whether or not to build static libraries. |
| 21048 | build_old_libs=$enable_static |
| 21049 | |
| 21050 | # Whether or not to add -lc for building shared libraries. |
| 21051 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 21052 | |
| 21053 | # Whether or not to disallow shared libs when runtime libs are static |
| 21054 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 21055 | |
| 21056 | # Whether or not to optimize for fast installation. |
| 21057 | fast_install=$enable_fast_install |
| 21058 | |
| 21059 | # The host system. |
| 21060 | host_alias=$host_alias |
| 21061 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21062 | host_os=$host_os |
| 21063 | |
| 21064 | # The build system. |
| 21065 | build_alias=$build_alias |
| 21066 | build=$build |
| 21067 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21068 | |
| 21069 | # An echo program that does not interpret backslashes. |
| 21070 | echo=$lt_echo |
| 21071 | |
| 21072 | # The archiver. |
| 21073 | AR=$lt_AR |
| 21074 | AR_FLAGS=$lt_AR_FLAGS |
| 21075 | |
| 21076 | # A C compiler. |
| 21077 | LTCC=$lt_LTCC |
| 21078 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21079 | # LTCC compiler flags. |
| 21080 | LTCFLAGS=$lt_LTCFLAGS |
| 21081 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21082 | # A language-specific compiler. |
| 21083 | CC=$lt_compiler_CXX |
| 21084 | |
| 21085 | # Is the compiler the GNU C compiler? |
| 21086 | with_gcc=$GCC_CXX |
| 21087 | |
| 21088 | # An ERE matcher. |
| 21089 | EGREP=$lt_EGREP |
| 21090 | |
| 21091 | # The linker used to build libraries. |
| 21092 | LD=$lt_LD_CXX |
| 21093 | |
| 21094 | # Whether we need hard or soft links. |
| 21095 | LN_S=$lt_LN_S |
| 21096 | |
| 21097 | # A BSD-compatible nm program. |
| 21098 | NM=$lt_NM |
| 21099 | |
| 21100 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21101 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21102 | |
| 21103 | # Used to examine libraries when file_magic_cmd begins "file" |
| 21104 | MAGIC_CMD=$MAGIC_CMD |
| 21105 | |
| 21106 | # Used on cygwin: DLL creation program. |
| 21107 | DLLTOOL="$DLLTOOL" |
| 21108 | |
| 21109 | # Used on cygwin: object dumper. |
| 21110 | OBJDUMP="$OBJDUMP" |
| 21111 | |
| 21112 | # Used on cygwin: assembler. |
| 21113 | AS="$AS" |
| 21114 | |
| 21115 | # The name of the directory that contains temporary libtool files. |
| 21116 | objdir=$objdir |
| 21117 | |
| 21118 | # How to create reloadable object files. |
| 21119 | reload_flag=$lt_reload_flag |
| 21120 | reload_cmds=$lt_reload_cmds |
| 21121 | |
| 21122 | # How to pass a linker flag through the compiler. |
| 21123 | wl=$lt_lt_prog_compiler_wl_CXX |
| 21124 | |
| 21125 | # Object file suffix (normally "o"). |
| 21126 | objext="$ac_objext" |
| 21127 | |
| 21128 | # Old archive suffix (normally "a"). |
| 21129 | libext="$libext" |
| 21130 | |
| 21131 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21132 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21133 | |
| 21134 | # Executable file suffix (normally ""). |
| 21135 | exeext="$exeext" |
| 21136 | |
| 21137 | # Additional compiler flags for building library objects. |
| 21138 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 21139 | pic_mode=$pic_mode |
| 21140 | |
| 21141 | # What is the maximum length of a command? |
| 21142 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 21143 | |
| 21144 | # Does compiler simultaneously support -c and -o options? |
| 21145 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 21146 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21147 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21148 | need_locks=$lt_need_locks |
| 21149 | |
| 21150 | # Do we need the lib prefix for modules? |
| 21151 | need_lib_prefix=$need_lib_prefix |
| 21152 | |
| 21153 | # Do we need a version for libraries? |
| 21154 | need_version=$need_version |
| 21155 | |
| 21156 | # Whether dlopen is supported. |
| 21157 | dlopen_support=$enable_dlopen |
| 21158 | |
| 21159 | # Whether dlopen of programs is supported. |
| 21160 | dlopen_self=$enable_dlopen_self |
| 21161 | |
| 21162 | # Whether dlopen of statically linked programs is supported. |
| 21163 | dlopen_self_static=$enable_dlopen_self_static |
| 21164 | |
| 21165 | # Compiler flag to prevent dynamic linking. |
| 21166 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 21167 | |
| 21168 | # Compiler flag to turn off builtin functions. |
| 21169 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 21170 | |
| 21171 | # Compiler flag to allow reflexive dlopens. |
| 21172 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 21173 | |
| 21174 | # Compiler flag to generate shared objects directly from archives. |
| 21175 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 21176 | |
| 21177 | # Compiler flag to generate thread-safe objects. |
| 21178 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
| 21179 | |
| 21180 | # Library versioning type. |
| 21181 | version_type=$version_type |
| 21182 | |
| 21183 | # Format of library name prefix. |
| 21184 | libname_spec=$lt_libname_spec |
| 21185 | |
| 21186 | # List of archive names. First name is the real one, the rest are links. |
| 21187 | # The last name is the one that the linker finds with -lNAME. |
| 21188 | library_names_spec=$lt_library_names_spec |
| 21189 | |
| 21190 | # The coded name of the library, if different from the real name. |
| 21191 | soname_spec=$lt_soname_spec |
| 21192 | |
| 21193 | # Commands used to build and install an old-style archive. |
| 21194 | RANLIB=$lt_RANLIB |
| 21195 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 21196 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 21197 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 21198 | |
| 21199 | # Create an old-style archive from a shared archive. |
| 21200 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 21201 | |
| 21202 | # Create a temporary old-style archive to link instead of a shared archive. |
| 21203 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 21204 | |
| 21205 | # Commands used to build and install a shared archive. |
| 21206 | archive_cmds=$lt_archive_cmds_CXX |
| 21207 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 21208 | postinstall_cmds=$lt_postinstall_cmds |
| 21209 | postuninstall_cmds=$lt_postuninstall_cmds |
| 21210 | |
| 21211 | # Commands used to build a loadable module (assumed same as above if empty) |
| 21212 | module_cmds=$lt_module_cmds_CXX |
| 21213 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 21214 | |
| 21215 | # Commands to strip libraries. |
| 21216 | old_striplib=$lt_old_striplib |
| 21217 | striplib=$lt_striplib |
| 21218 | |
| 21219 | # Dependencies to place before the objects being linked to create a |
| 21220 | # shared library. |
| 21221 | predep_objects=$lt_predep_objects_CXX |
| 21222 | |
| 21223 | # Dependencies to place after the objects being linked to create a |
| 21224 | # shared library. |
| 21225 | postdep_objects=$lt_postdep_objects_CXX |
| 21226 | |
| 21227 | # Dependencies to place before the objects being linked to create a |
| 21228 | # shared library. |
| 21229 | predeps=$lt_predeps_CXX |
| 21230 | |
| 21231 | # Dependencies to place after the objects being linked to create a |
| 21232 | # shared library. |
| 21233 | postdeps=$lt_postdeps_CXX |
| 21234 | |
| 21235 | # The library search path used internally by the compiler when linking |
| 21236 | # a shared library. |
| 21237 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 21238 | |
| 21239 | # Method to check whether dependent libraries are shared objects. |
| 21240 | deplibs_check_method=$lt_deplibs_check_method |
| 21241 | |
| 21242 | # Command to use when deplibs_check_method == file_magic. |
| 21243 | file_magic_cmd=$lt_file_magic_cmd |
| 21244 | |
| 21245 | # Flag that allows shared libraries with undefined symbols to be built. |
| 21246 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 21247 | |
| 21248 | # Flag that forces no undefined symbols. |
| 21249 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 21250 | |
| 21251 | # Commands used to finish a libtool library installation in a directory. |
| 21252 | finish_cmds=$lt_finish_cmds |
| 21253 | |
| 21254 | # Same as above, but a single script fragment to be evaled but not shown. |
| 21255 | finish_eval=$lt_finish_eval |
| 21256 | |
| 21257 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 21258 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 21259 | |
| 21260 | # Transform the output of nm in a proper C declaration |
| 21261 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 21262 | |
| 21263 | # Transform the output of nm in a C name address pair |
| 21264 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 21265 | |
| 21266 | # This is the shared library runtime path variable. |
| 21267 | runpath_var=$runpath_var |
| 21268 | |
| 21269 | # This is the shared library path variable. |
| 21270 | shlibpath_var=$shlibpath_var |
| 21271 | |
| 21272 | # Is shlibpath searched before the hard-coded library search path? |
| 21273 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 21274 | |
| 21275 | # How to hardcode a shared library path into an executable. |
| 21276 | hardcode_action=$hardcode_action_CXX |
| 21277 | |
| 21278 | # Whether we should hardcode library paths into libraries. |
| 21279 | hardcode_into_libs=$hardcode_into_libs |
| 21280 | |
| 21281 | # Flag to hardcode \$libdir into a binary during linking. |
| 21282 | # This must work even if \$libdir does not exist. |
| 21283 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 21284 | |
| 21285 | # If ld is used when linking, flag to hardcode \$libdir into |
| 21286 | # a binary during linking. This must work even if \$libdir does |
| 21287 | # not exist. |
| 21288 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 21289 | |
| 21290 | # Whether we need a single -rpath flag with a separated argument. |
| 21291 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 21292 | |
| 21293 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 21294 | # resulting binary. |
| 21295 | hardcode_direct=$hardcode_direct_CXX |
| 21296 | |
| 21297 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 21298 | # resulting binary. |
| 21299 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 21300 | |
| 21301 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 21302 | # the resulting binary. |
| 21303 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 21304 | |
| 21305 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 21306 | # and all subsequent libraries and executables linked against it. |
| 21307 | hardcode_automatic=$hardcode_automatic_CXX |
| 21308 | |
| 21309 | # Variables whose values should be saved in libtool wrapper scripts and |
| 21310 | # restored at relink time. |
| 21311 | variables_saved_for_relink="$variables_saved_for_relink" |
| 21312 | |
| 21313 | # Whether libtool must link a program against all its dependency libraries. |
| 21314 | link_all_deplibs=$link_all_deplibs_CXX |
| 21315 | |
| 21316 | # Compile-time system search path for libraries |
| 21317 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 21318 | |
| 21319 | # Run-time system search path for libraries |
| 21320 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 21321 | |
| 21322 | # Fix the shell variable \$srcfile for the compiler. |
| 21323 | fix_srcfile_path="$fix_srcfile_path_CXX" |
| 21324 | |
| 21325 | # Set to yes if exported symbols are required. |
| 21326 | always_export_symbols=$always_export_symbols_CXX |
| 21327 | |
| 21328 | # The commands to list exported symbols. |
| 21329 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 21330 | |
| 21331 | # The commands to extract the exported symbol list from a shared archive. |
| 21332 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 21333 | |
| 21334 | # Symbols that should not be listed in the preloaded symbols. |
| 21335 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 21336 | |
| 21337 | # Symbols that must always be exported. |
| 21338 | include_expsyms=$lt_include_expsyms_CXX |
| 21339 | |
| 21340 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 21341 | |
| 21342 | __EOF__ |
| 21343 | |
| 21344 | |
| 21345 | else |
| 21346 | # If there is no Makefile yet, we rely on a make rule to execute |
| 21347 | # `config.status --recheck' to rerun these tests and create the |
| 21348 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21349 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 21350 | if test -f "$ltmain_in"; then |
| 21351 | test -f Makefile && make "$ltmain" |
| 21352 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21353 | fi |
| 21354 | |
| 21355 | |
| 21356 | ac_ext=c |
| 21357 | ac_cpp='$CPP $CPPFLAGS' |
| 21358 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21359 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21360 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21361 | |
| 21362 | CC=$lt_save_CC |
| 21363 | LDCXX=$LD |
| 21364 | LD=$lt_save_LD |
| 21365 | GCC=$lt_save_GCC |
| 21366 | with_gnu_ldcxx=$with_gnu_ld |
| 21367 | with_gnu_ld=$lt_save_with_gnu_ld |
| 21368 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 21369 | lt_cv_path_LD=$lt_save_path_LD |
| 21370 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 21371 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 21372 | |
| 21373 | else |
| 21374 | tagname="" |
| 21375 | fi |
| 21376 | ;; |
| 21377 | |
| 21378 | F77) |
| 21379 | if test -n "$F77" && test "X$F77" != "Xno"; then |
| 21380 | |
| 21381 | ac_ext=f |
| 21382 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 21383 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21384 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 21385 | |
| 21386 | |
| 21387 | archive_cmds_need_lc_F77=no |
| 21388 | allow_undefined_flag_F77= |
| 21389 | always_export_symbols_F77=no |
| 21390 | archive_expsym_cmds_F77= |
| 21391 | export_dynamic_flag_spec_F77= |
| 21392 | hardcode_direct_F77=no |
| 21393 | hardcode_libdir_flag_spec_F77= |
| 21394 | hardcode_libdir_flag_spec_ld_F77= |
| 21395 | hardcode_libdir_separator_F77= |
| 21396 | hardcode_minus_L_F77=no |
| 21397 | hardcode_automatic_F77=no |
| 21398 | module_cmds_F77= |
| 21399 | module_expsym_cmds_F77= |
| 21400 | link_all_deplibs_F77=unknown |
| 21401 | old_archive_cmds_F77=$old_archive_cmds |
| 21402 | no_undefined_flag_F77= |
| 21403 | whole_archive_flag_spec_F77= |
| 21404 | enable_shared_with_static_runtimes_F77=no |
| 21405 | |
| 21406 | # Source file extension for f77 test sources. |
| 21407 | ac_ext=f |
| 21408 | |
| 21409 | # Object file extension for compiled f77 test sources. |
| 21410 | objext=o |
| 21411 | objext_F77=$objext |
| 21412 | |
| 21413 | # Code to be used in simple compile tests |
| 21414 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
| 21415 | |
| 21416 | # Code to be used in simple link tests |
| 21417 | lt_simple_link_test_code=" program t\n end\n" |
| 21418 | |
| 21419 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 21420 | |
| 21421 | # If no C compiler was specified, use CC. |
| 21422 | LTCC=${LTCC-"$CC"} |
| 21423 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21424 | # If no C compiler flags were specified, use CFLAGS. |
| 21425 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 21426 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21427 | # Allow CC to be a program name with arguments. |
| 21428 | compiler=$CC |
| 21429 | |
| 21430 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21431 | # save warnings/boilerplate of simple test code |
| 21432 | ac_outfile=conftest.$ac_objext |
| 21433 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 21434 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 21435 | _lt_compiler_boilerplate=`cat conftest.err` |
| 21436 | $rm conftest* |
| 21437 | |
| 21438 | ac_outfile=conftest.$ac_objext |
| 21439 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 21440 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 21441 | _lt_linker_boilerplate=`cat conftest.err` |
| 21442 | $rm conftest* |
| 21443 | |
| 21444 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21445 | # Allow CC to be a program name with arguments. |
| 21446 | lt_save_CC="$CC" |
| 21447 | CC=${F77-"f77"} |
| 21448 | compiler=$CC |
| 21449 | compiler_F77=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21450 | for cc_temp in $compiler""; do |
| 21451 | case $cc_temp in |
| 21452 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 21453 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 21454 | \-*) ;; |
| 21455 | *) break;; |
| 21456 | esac |
| 21457 | done |
| 21458 | 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] | 21459 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21460 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21461 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 21462 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
| 21463 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 21464 | echo "${ECHO_T}$can_build_shared" >&6; } |
| 21465 | |
| 21466 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 21467 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21468 | test "$can_build_shared" = "no" && enable_shared=no |
| 21469 | |
| 21470 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 21471 | # are all built from PIC. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21472 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21473 | aix3*) |
| 21474 | test "$enable_shared" = yes && enable_static=no |
| 21475 | if test -n "$RANLIB"; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21476 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21477 | postinstall_cmds='$RANLIB $lib' |
| 21478 | fi |
| 21479 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21480 | aix4* | aix5*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21481 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 21482 | test "$enable_shared" = yes && enable_static=no |
| 21483 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21484 | ;; |
| 21485 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21486 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 21487 | echo "${ECHO_T}$enable_shared" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21488 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21489 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 21490 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21491 | # Make sure either enable_shared or enable_static is yes. |
| 21492 | test "$enable_shared" = yes || enable_static=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21493 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 21494 | echo "${ECHO_T}$enable_static" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21495 | |
| 21496 | GCC_F77="$G77" |
| 21497 | LD_F77="$LD" |
| 21498 | |
| 21499 | lt_prog_compiler_wl_F77= |
| 21500 | lt_prog_compiler_pic_F77= |
| 21501 | lt_prog_compiler_static_F77= |
| 21502 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21503 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 21504 | 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] | 21505 | |
| 21506 | if test "$GCC" = yes; then |
| 21507 | lt_prog_compiler_wl_F77='-Wl,' |
| 21508 | lt_prog_compiler_static_F77='-static' |
| 21509 | |
| 21510 | case $host_os in |
| 21511 | aix*) |
| 21512 | # All AIX code is PIC. |
| 21513 | if test "$host_cpu" = ia64; then |
| 21514 | # AIX 5 now supports IA64 processor |
| 21515 | lt_prog_compiler_static_F77='-Bstatic' |
| 21516 | fi |
| 21517 | ;; |
| 21518 | |
| 21519 | amigaos*) |
| 21520 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 21521 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 21522 | # like `-m68040'. |
| 21523 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
| 21524 | ;; |
| 21525 | |
| 21526 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 21527 | # PIC is the default for these OSes. |
| 21528 | ;; |
| 21529 | |
| 21530 | mingw* | pw32* | os2*) |
| 21531 | # This hack is so that the source file can tell whether it is being |
| 21532 | # built for inclusion in a dll (and should export symbols for example). |
| 21533 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 21534 | ;; |
| 21535 | |
| 21536 | darwin* | rhapsody*) |
| 21537 | # PIC is the default on this platform |
| 21538 | # Common symbols not allowed in MH_DYLIB files |
| 21539 | lt_prog_compiler_pic_F77='-fno-common' |
| 21540 | ;; |
| 21541 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21542 | interix3*) |
| 21543 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 21544 | # Instead, we relocate shared libraries at runtime. |
| 21545 | ;; |
| 21546 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21547 | msdosdjgpp*) |
| 21548 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 21549 | # on systems that don't support them. |
| 21550 | lt_prog_compiler_can_build_shared_F77=no |
| 21551 | enable_shared=no |
| 21552 | ;; |
| 21553 | |
| 21554 | sysv4*MP*) |
| 21555 | if test -d /usr/nec; then |
| 21556 | lt_prog_compiler_pic_F77=-Kconform_pic |
| 21557 | fi |
| 21558 | ;; |
| 21559 | |
| 21560 | hpux*) |
| 21561 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 21562 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21563 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21564 | hppa*64*|ia64*) |
| 21565 | # +Z the default |
| 21566 | ;; |
| 21567 | *) |
| 21568 | lt_prog_compiler_pic_F77='-fPIC' |
| 21569 | ;; |
| 21570 | esac |
| 21571 | ;; |
| 21572 | |
| 21573 | *) |
| 21574 | lt_prog_compiler_pic_F77='-fPIC' |
| 21575 | ;; |
| 21576 | esac |
| 21577 | else |
| 21578 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 21579 | case $host_os in |
| 21580 | aix*) |
| 21581 | lt_prog_compiler_wl_F77='-Wl,' |
| 21582 | if test "$host_cpu" = ia64; then |
| 21583 | # AIX 5 now supports IA64 processor |
| 21584 | lt_prog_compiler_static_F77='-Bstatic' |
| 21585 | else |
| 21586 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
| 21587 | fi |
| 21588 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21589 | darwin*) |
| 21590 | # PIC is the default on this platform |
| 21591 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21592 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21593 | xlc*) |
| 21594 | lt_prog_compiler_pic_F77='-qnocommon' |
| 21595 | lt_prog_compiler_wl_F77='-Wl,' |
| 21596 | ;; |
| 21597 | esac |
| 21598 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21599 | |
| 21600 | mingw* | pw32* | os2*) |
| 21601 | # This hack is so that the source file can tell whether it is being |
| 21602 | # built for inclusion in a dll (and should export symbols for example). |
| 21603 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 21604 | ;; |
| 21605 | |
| 21606 | hpux9* | hpux10* | hpux11*) |
| 21607 | lt_prog_compiler_wl_F77='-Wl,' |
| 21608 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 21609 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21610 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21611 | hppa*64*|ia64*) |
| 21612 | # +Z the default |
| 21613 | ;; |
| 21614 | *) |
| 21615 | lt_prog_compiler_pic_F77='+Z' |
| 21616 | ;; |
| 21617 | esac |
| 21618 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 21619 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
| 21620 | ;; |
| 21621 | |
| 21622 | irix5* | irix6* | nonstopux*) |
| 21623 | lt_prog_compiler_wl_F77='-Wl,' |
| 21624 | # PIC (with -KPIC) is the default. |
| 21625 | lt_prog_compiler_static_F77='-non_shared' |
| 21626 | ;; |
| 21627 | |
| 21628 | newsos6) |
| 21629 | lt_prog_compiler_pic_F77='-KPIC' |
| 21630 | lt_prog_compiler_static_F77='-Bstatic' |
| 21631 | ;; |
| 21632 | |
| 21633 | linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21634 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21635 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21636 | lt_prog_compiler_wl_F77='-Wl,' |
| 21637 | lt_prog_compiler_pic_F77='-KPIC' |
| 21638 | lt_prog_compiler_static_F77='-static' |
| 21639 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21640 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 21641 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 21642 | # which looks to be a dead project) |
| 21643 | lt_prog_compiler_wl_F77='-Wl,' |
| 21644 | lt_prog_compiler_pic_F77='-fpic' |
| 21645 | lt_prog_compiler_static_F77='-Bstatic' |
| 21646 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21647 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21648 | lt_prog_compiler_wl_F77='-Wl,' |
| 21649 | # All Alpha code is PIC. |
| 21650 | lt_prog_compiler_static_F77='-non_shared' |
| 21651 | ;; |
| 21652 | esac |
| 21653 | ;; |
| 21654 | |
| 21655 | osf3* | osf4* | osf5*) |
| 21656 | lt_prog_compiler_wl_F77='-Wl,' |
| 21657 | # All OSF/1 code is PIC. |
| 21658 | lt_prog_compiler_static_F77='-non_shared' |
| 21659 | ;; |
| 21660 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21661 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21662 | lt_prog_compiler_pic_F77='-KPIC' |
| 21663 | lt_prog_compiler_static_F77='-Bstatic' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21664 | case $cc_basename in |
| 21665 | f77* | f90* | f95*) |
| 21666 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
| 21667 | *) |
| 21668 | lt_prog_compiler_wl_F77='-Wl,';; |
| 21669 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21670 | ;; |
| 21671 | |
| 21672 | sunos4*) |
| 21673 | lt_prog_compiler_wl_F77='-Qoption ld ' |
| 21674 | lt_prog_compiler_pic_F77='-PIC' |
| 21675 | lt_prog_compiler_static_F77='-Bstatic' |
| 21676 | ;; |
| 21677 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21678 | sysv4 | sysv4.2uw2* | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21679 | lt_prog_compiler_wl_F77='-Wl,' |
| 21680 | lt_prog_compiler_pic_F77='-KPIC' |
| 21681 | lt_prog_compiler_static_F77='-Bstatic' |
| 21682 | ;; |
| 21683 | |
| 21684 | sysv4*MP*) |
| 21685 | if test -d /usr/nec ;then |
| 21686 | lt_prog_compiler_pic_F77='-Kconform_pic' |
| 21687 | lt_prog_compiler_static_F77='-Bstatic' |
| 21688 | fi |
| 21689 | ;; |
| 21690 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21691 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 21692 | lt_prog_compiler_wl_F77='-Wl,' |
| 21693 | lt_prog_compiler_pic_F77='-KPIC' |
| 21694 | lt_prog_compiler_static_F77='-Bstatic' |
| 21695 | ;; |
| 21696 | |
| 21697 | unicos*) |
| 21698 | lt_prog_compiler_wl_F77='-Wl,' |
| 21699 | lt_prog_compiler_can_build_shared_F77=no |
| 21700 | ;; |
| 21701 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21702 | uts4*) |
| 21703 | lt_prog_compiler_pic_F77='-pic' |
| 21704 | lt_prog_compiler_static_F77='-Bstatic' |
| 21705 | ;; |
| 21706 | |
| 21707 | *) |
| 21708 | lt_prog_compiler_can_build_shared_F77=no |
| 21709 | ;; |
| 21710 | esac |
| 21711 | fi |
| 21712 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21713 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
| 21714 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21715 | |
| 21716 | # |
| 21717 | # Check to make sure the PIC flag actually works. |
| 21718 | # |
| 21719 | if test -n "$lt_prog_compiler_pic_F77"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21720 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21721 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
| 21722 | 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] | 21723 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
| 21724 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21725 | else |
| 21726 | lt_prog_compiler_pic_works_F77=no |
| 21727 | ac_outfile=conftest.$ac_objext |
| 21728 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 21729 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
| 21730 | # Insert the option either (1) after the last *FLAGS variable, or |
| 21731 | # (2) before a word containing "conftest.", or (3) at the end. |
| 21732 | # Note that $ac_compile itself does not contain backslashes and begins |
| 21733 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 21734 | # The option is referenced via a variable to avoid confusing sed. |
| 21735 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21736 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21737 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 21738 | -e 's:$: $lt_compiler_flag:'` |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 21739 | (eval echo "\"\$as_me:21744: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21740 | (eval "$lt_compile" 2>conftest.err) |
| 21741 | ac_status=$? |
| 21742 | cat conftest.err >&5 |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 21743 | echo "$as_me:21748: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21744 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 21745 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21746 | # So say no if there are warnings other than the usual output. |
| 21747 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 21748 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 21749 | 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] | 21750 | lt_prog_compiler_pic_works_F77=yes |
| 21751 | fi |
| 21752 | fi |
| 21753 | $rm conftest* |
| 21754 | |
| 21755 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21756 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
| 21757 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21758 | |
| 21759 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
| 21760 | case $lt_prog_compiler_pic_F77 in |
| 21761 | "" | " "*) ;; |
| 21762 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
| 21763 | esac |
| 21764 | else |
| 21765 | lt_prog_compiler_pic_F77= |
| 21766 | lt_prog_compiler_can_build_shared_F77=no |
| 21767 | fi |
| 21768 | |
| 21769 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21770 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21771 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 21772 | *djgpp*) |
| 21773 | lt_prog_compiler_pic_F77= |
| 21774 | ;; |
| 21775 | *) |
| 21776 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
| 21777 | ;; |
| 21778 | esac |
| 21779 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21780 | # |
| 21781 | # Check to make sure the static flag actually works. |
| 21782 | # |
| 21783 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
| 21784 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 21785 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 21786 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
| 21787 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21788 | else |
| 21789 | lt_prog_compiler_static_works_F77=no |
| 21790 | save_LDFLAGS="$LDFLAGS" |
| 21791 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 21792 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 21793 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 21794 | # The linker can only warn and ignore the option if not recognized |
| 21795 | # So say no if there are warnings |
| 21796 | if test -s conftest.err; then |
| 21797 | # Append any errors to the config.log. |
| 21798 | cat conftest.err 1>&5 |
| 21799 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 21800 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 21801 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 21802 | lt_prog_compiler_static_works_F77=yes |
| 21803 | fi |
| 21804 | else |
| 21805 | lt_prog_compiler_static_works_F77=yes |
| 21806 | fi |
| 21807 | fi |
| 21808 | $rm conftest* |
| 21809 | LDFLAGS="$save_LDFLAGS" |
| 21810 | |
| 21811 | fi |
| 21812 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
| 21813 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } |
| 21814 | |
| 21815 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
| 21816 | : |
| 21817 | else |
| 21818 | lt_prog_compiler_static_F77= |
| 21819 | fi |
| 21820 | |
| 21821 | |
| 21822 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 21823 | 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] | 21824 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
| 21825 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21826 | else |
| 21827 | lt_cv_prog_compiler_c_o_F77=no |
| 21828 | $rm -r conftest 2>/dev/null |
| 21829 | mkdir conftest |
| 21830 | cd conftest |
| 21831 | mkdir out |
| 21832 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 21833 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21834 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 21835 | # Insert the option either (1) after the last *FLAGS variable, or |
| 21836 | # (2) before a word containing "conftest.", or (3) at the end. |
| 21837 | # Note that $ac_compile itself does not contain backslashes and begins |
| 21838 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 21839 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21840 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21841 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 21842 | -e 's:$: $lt_compiler_flag:'` |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 21843 | (eval echo "\"\$as_me:21848: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21844 | (eval "$lt_compile" 2>out/conftest.err) |
| 21845 | ac_status=$? |
| 21846 | cat out/conftest.err >&5 |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 21847 | echo "$as_me:21852: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21848 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 21849 | then |
| 21850 | # The compiler can only warn and ignore the option if not recognized |
| 21851 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21852 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 21853 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 21854 | 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] | 21855 | lt_cv_prog_compiler_c_o_F77=yes |
| 21856 | fi |
| 21857 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21858 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21859 | $rm conftest* |
| 21860 | # SGI C++ compiler will create directory out/ii_files/ for |
| 21861 | # template instantiation |
| 21862 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 21863 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21864 | cd .. |
| 21865 | rmdir conftest |
| 21866 | $rm conftest* |
| 21867 | |
| 21868 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21869 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
| 21870 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21871 | |
| 21872 | |
| 21873 | hard_links="nottested" |
| 21874 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
| 21875 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21876 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 21877 | 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] | 21878 | hard_links=yes |
| 21879 | $rm conftest* |
| 21880 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 21881 | touch conftest.a |
| 21882 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 21883 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21884 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 21885 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21886 | if test "$hard_links" = no; then |
| 21887 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 21888 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 21889 | need_locks=warn |
| 21890 | fi |
| 21891 | else |
| 21892 | need_locks=no |
| 21893 | fi |
| 21894 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21895 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 21896 | 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] | 21897 | |
| 21898 | runpath_var= |
| 21899 | allow_undefined_flag_F77= |
| 21900 | enable_shared_with_static_runtimes_F77=no |
| 21901 | archive_cmds_F77= |
| 21902 | archive_expsym_cmds_F77= |
| 21903 | old_archive_From_new_cmds_F77= |
| 21904 | old_archive_from_expsyms_cmds_F77= |
| 21905 | export_dynamic_flag_spec_F77= |
| 21906 | whole_archive_flag_spec_F77= |
| 21907 | thread_safe_flag_spec_F77= |
| 21908 | hardcode_libdir_flag_spec_F77= |
| 21909 | hardcode_libdir_flag_spec_ld_F77= |
| 21910 | hardcode_libdir_separator_F77= |
| 21911 | hardcode_direct_F77=no |
| 21912 | hardcode_minus_L_F77=no |
| 21913 | hardcode_shlibpath_var_F77=unsupported |
| 21914 | link_all_deplibs_F77=unknown |
| 21915 | hardcode_automatic_F77=no |
| 21916 | module_cmds_F77= |
| 21917 | module_expsym_cmds_F77= |
| 21918 | always_export_symbols_F77=no |
| 21919 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 21920 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 21921 | # included in the symbol list |
| 21922 | include_expsyms_F77= |
| 21923 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 21924 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 21925 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 21926 | # as well as any symbol that contains `d'. |
| 21927 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
| 21928 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 21929 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 21930 | # the symbol is explicitly referenced. Since portable code cannot |
| 21931 | # rely on this symbol name, it's probably fine to never include it in |
| 21932 | # preloaded symbol tables. |
| 21933 | extract_expsyms_cmds= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21934 | # Just being paranoid about ensuring that cc_basename is set. |
| 21935 | for cc_temp in $compiler""; do |
| 21936 | case $cc_temp in |
| 21937 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 21938 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 21939 | \-*) ;; |
| 21940 | *) break;; |
| 21941 | esac |
| 21942 | done |
| 21943 | 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] | 21944 | |
| 21945 | case $host_os in |
| 21946 | cygwin* | mingw* | pw32*) |
| 21947 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 21948 | # When not using gcc, we currently assume that we are using |
| 21949 | # Microsoft Visual C++. |
| 21950 | if test "$GCC" != yes; then |
| 21951 | with_gnu_ld=no |
| 21952 | fi |
| 21953 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21954 | interix*) |
| 21955 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 21956 | with_gnu_ld=yes |
| 21957 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21958 | openbsd*) |
| 21959 | with_gnu_ld=no |
| 21960 | ;; |
| 21961 | esac |
| 21962 | |
| 21963 | ld_shlibs_F77=yes |
| 21964 | if test "$with_gnu_ld" = yes; then |
| 21965 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 21966 | wlarc='${wl}' |
| 21967 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21968 | # Set some defaults for GNU ld with shared library support. These |
| 21969 | # are reset later if shared libraries are not supported. Putting them |
| 21970 | # here allows them to be overridden if necessary. |
| 21971 | runpath_var=LD_RUN_PATH |
| 21972 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
| 21973 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
| 21974 | # ancient GNU ld didn't support --whole-archive et. al. |
| 21975 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 21976 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 21977 | else |
| 21978 | whole_archive_flag_spec_F77= |
| 21979 | fi |
| 21980 | supports_anon_versioning=no |
| 21981 | case `$LD -v 2>/dev/null` in |
| 21982 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 21983 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 21984 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 21985 | *\ 2.11.*) ;; # other 2.11 versions |
| 21986 | *) supports_anon_versioning=yes ;; |
| 21987 | esac |
| 21988 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21989 | # See if GNU ld supports shared libraries. |
| 21990 | case $host_os in |
| 21991 | aix3* | aix4* | aix5*) |
| 21992 | # On AIX/PPC, the GNU linker is very broken |
| 21993 | if test "$host_cpu" != ia64; then |
| 21994 | ld_shlibs_F77=no |
| 21995 | cat <<EOF 1>&2 |
| 21996 | |
| 21997 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 21998 | *** to be unable to reliably create shared libraries on AIX. |
| 21999 | *** Therefore, libtool is disabling shared libraries support. If you |
| 22000 | *** really care for shared libraries, you may want to modify your PATH |
| 22001 | *** so that a non-GNU linker is found, and then restart. |
| 22002 | |
| 22003 | EOF |
| 22004 | fi |
| 22005 | ;; |
| 22006 | |
| 22007 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22008 | 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] | 22009 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22010 | hardcode_minus_L_F77=yes |
| 22011 | |
| 22012 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 22013 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 22014 | # to version 4, is to share data among multiple programs linked |
| 22015 | # with the same dynamic library. Since this doesn't match the |
| 22016 | # behavior of shared libraries on other platforms, we can't use |
| 22017 | # them. |
| 22018 | ld_shlibs_F77=no |
| 22019 | ;; |
| 22020 | |
| 22021 | beos*) |
| 22022 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 22023 | allow_undefined_flag_F77=unsupported |
| 22024 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 22025 | # support --undefined. This deserves some investigation. FIXME |
| 22026 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 22027 | else |
| 22028 | ld_shlibs_F77=no |
| 22029 | fi |
| 22030 | ;; |
| 22031 | |
| 22032 | cygwin* | mingw* | pw32*) |
| 22033 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
| 22034 | # as there is no search path for DLLs. |
| 22035 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22036 | allow_undefined_flag_F77=unsupported |
| 22037 | always_export_symbols_F77=no |
| 22038 | enable_shared_with_static_runtimes_F77=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22039 | 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] | 22040 | |
| 22041 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22042 | 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] | 22043 | # If the export-symbols file already is a .def file (1st line |
| 22044 | # is EXPORTS), use it as is; otherwise, prepend... |
| 22045 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 22046 | cp $export_symbols $output_objdir/$soname.def; |
| 22047 | else |
| 22048 | echo EXPORTS > $output_objdir/$soname.def; |
| 22049 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22050 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22051 | $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] | 22052 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22053 | ld_shlibs_F77=no |
| 22054 | fi |
| 22055 | ;; |
| 22056 | |
| 22057 | interix3*) |
| 22058 | hardcode_direct_F77=no |
| 22059 | hardcode_shlibpath_var_F77=no |
| 22060 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 22061 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22062 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 22063 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 22064 | # default) and relocated if they conflict, which is a slow very memory |
| 22065 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 22066 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 22067 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 22068 | 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' |
| 22069 | 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' |
| 22070 | ;; |
| 22071 | |
| 22072 | linux*) |
| 22073 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 22074 | tmp_addflag= |
| 22075 | case $cc_basename,$host_cpu in |
| 22076 | pgcc*) # Portland Group C compiler |
| 22077 | 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' |
| 22078 | tmp_addflag=' $pic_flag' |
| 22079 | ;; |
| 22080 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 22081 | 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' |
| 22082 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 22083 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 22084 | tmp_addflag=' -i_dynamic' ;; |
| 22085 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 22086 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 22087 | ifc* | ifort*) # Intel Fortran compiler |
| 22088 | tmp_addflag=' -nofor_main' ;; |
| 22089 | esac |
| 22090 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 22091 | |
| 22092 | if test $supports_anon_versioning = yes; then |
| 22093 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 22094 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 22095 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 22096 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 22097 | fi |
| 22098 | else |
| 22099 | ld_shlibs_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22100 | fi |
| 22101 | ;; |
| 22102 | |
| 22103 | netbsd*) |
| 22104 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 22105 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 22106 | wlarc= |
| 22107 | else |
| 22108 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 22109 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 22110 | fi |
| 22111 | ;; |
| 22112 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22113 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22114 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 22115 | ld_shlibs_F77=no |
| 22116 | cat <<EOF 1>&2 |
| 22117 | |
| 22118 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 22119 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 22120 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 22121 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 22122 | *** your PATH or compiler configuration so that the native linker is |
| 22123 | *** used, and then restart. |
| 22124 | |
| 22125 | EOF |
| 22126 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 22127 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 22128 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 22129 | else |
| 22130 | ld_shlibs_F77=no |
| 22131 | fi |
| 22132 | ;; |
| 22133 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22134 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 22135 | case `$LD -v 2>&1` in |
| 22136 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 22137 | ld_shlibs_F77=no |
| 22138 | cat <<_LT_EOF 1>&2 |
| 22139 | |
| 22140 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 22141 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 22142 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 22143 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 22144 | *** your PATH or compiler configuration so that the native linker is |
| 22145 | *** used, and then restart. |
| 22146 | |
| 22147 | _LT_EOF |
| 22148 | ;; |
| 22149 | *) |
| 22150 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 22151 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 22152 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 22153 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 22154 | else |
| 22155 | ld_shlibs_F77=no |
| 22156 | fi |
| 22157 | ;; |
| 22158 | esac |
| 22159 | ;; |
| 22160 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22161 | sunos4*) |
| 22162 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 22163 | wlarc= |
| 22164 | hardcode_direct_F77=yes |
| 22165 | hardcode_shlibpath_var_F77=no |
| 22166 | ;; |
| 22167 | |
| 22168 | *) |
| 22169 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 22170 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 22171 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 22172 | else |
| 22173 | ld_shlibs_F77=no |
| 22174 | fi |
| 22175 | ;; |
| 22176 | esac |
| 22177 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22178 | if test "$ld_shlibs_F77" = no; then |
| 22179 | runpath_var= |
| 22180 | hardcode_libdir_flag_spec_F77= |
| 22181 | export_dynamic_flag_spec_F77= |
| 22182 | whole_archive_flag_spec_F77= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22183 | fi |
| 22184 | else |
| 22185 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 22186 | case $host_os in |
| 22187 | aix3*) |
| 22188 | allow_undefined_flag_F77=unsupported |
| 22189 | always_export_symbols_F77=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22190 | 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] | 22191 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 22192 | # are no directories specified by -L. |
| 22193 | hardcode_minus_L_F77=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22194 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22195 | # Neither direct hardcoding nor static linking is supported with a |
| 22196 | # broken collect2. |
| 22197 | hardcode_direct_F77=unsupported |
| 22198 | fi |
| 22199 | ;; |
| 22200 | |
| 22201 | aix4* | aix5*) |
| 22202 | if test "$host_cpu" = ia64; then |
| 22203 | # On IA64, the linker does run time linking by default, so we don't |
| 22204 | # have to do anything special. |
| 22205 | aix_use_runtimelinking=no |
| 22206 | exp_sym_flag='-Bexport' |
| 22207 | no_entry_flag="" |
| 22208 | else |
| 22209 | # If we're using GNU nm, then we don't want the "-C" option. |
| 22210 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 22211 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 22212 | 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' |
| 22213 | else |
| 22214 | 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' |
| 22215 | fi |
| 22216 | aix_use_runtimelinking=no |
| 22217 | |
| 22218 | # Test if we are trying to use run time linking or normal |
| 22219 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 22220 | # need to do runtime linking. |
| 22221 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 22222 | for ld_flag in $LDFLAGS; do |
| 22223 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 22224 | aix_use_runtimelinking=yes |
| 22225 | break |
| 22226 | fi |
| 22227 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22228 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22229 | esac |
| 22230 | |
| 22231 | exp_sym_flag='-bexport' |
| 22232 | no_entry_flag='-bnoentry' |
| 22233 | fi |
| 22234 | |
| 22235 | # When large executables or shared objects are built, AIX ld can |
| 22236 | # have problems creating the table of contents. If linking a library |
| 22237 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 22238 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 22239 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 22240 | |
| 22241 | archive_cmds_F77='' |
| 22242 | hardcode_direct_F77=yes |
| 22243 | hardcode_libdir_separator_F77=':' |
| 22244 | link_all_deplibs_F77=yes |
| 22245 | |
| 22246 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22247 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22248 | # We only want to do this on AIX 4.2 and lower, the check |
| 22249 | # below for broken collect2 doesn't work under 4.3+ |
| 22250 | collect2name=`${CC} -print-prog-name=collect2` |
| 22251 | if test -f "$collect2name" && \ |
| 22252 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 22253 | then |
| 22254 | # We have reworked collect2 |
| 22255 | hardcode_direct_F77=yes |
| 22256 | else |
| 22257 | # We have old collect2 |
| 22258 | hardcode_direct_F77=unsupported |
| 22259 | # It fails to find uninstalled libraries when the uninstalled |
| 22260 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 22261 | # to unsupported forces relinking |
| 22262 | hardcode_minus_L_F77=yes |
| 22263 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22264 | hardcode_libdir_separator_F77= |
| 22265 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22266 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22267 | esac |
| 22268 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22269 | if test "$aix_use_runtimelinking" = yes; then |
| 22270 | shared_flag="$shared_flag "'${wl}-G' |
| 22271 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22272 | else |
| 22273 | # not using gcc |
| 22274 | if test "$host_cpu" = ia64; then |
| 22275 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 22276 | # chokes on -Wl,-G. The following line is correct: |
| 22277 | shared_flag='-G' |
| 22278 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22279 | if test "$aix_use_runtimelinking" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22280 | shared_flag='${wl}-G' |
| 22281 | else |
| 22282 | shared_flag='${wl}-bM:SRE' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22283 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22284 | fi |
| 22285 | fi |
| 22286 | |
| 22287 | # It seems that -bexpall does not export symbols beginning with |
| 22288 | # underscore (_), so it is better to generate a list of symbols to export. |
| 22289 | always_export_symbols_F77=yes |
| 22290 | if test "$aix_use_runtimelinking" = yes; then |
| 22291 | # Warning - without using the other runtime loading flags (-brtl), |
| 22292 | # -berok will link without error, but may produce a broken library. |
| 22293 | allow_undefined_flag_F77='-berok' |
| 22294 | # Determine the default libpath from the value encoded in an empty executable. |
| 22295 | cat >conftest.$ac_ext <<_ACEOF |
| 22296 | program main |
| 22297 | |
| 22298 | end |
| 22299 | _ACEOF |
| 22300 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22301 | if { (ac_try="$ac_link" |
| 22302 | case "(($ac_try" in |
| 22303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22304 | *) ac_try_echo=$ac_try;; |
| 22305 | esac |
| 22306 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22307 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22308 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22309 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22310 | rm -f conftest.er1 |
| 22311 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 22313 | (exit $ac_status); } && |
| 22314 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 22315 | { (case "(($ac_try" in |
| 22316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22317 | *) ac_try_echo=$ac_try;; |
| 22318 | esac |
| 22319 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22320 | (eval "$ac_try") 2>&5 |
| 22321 | ac_status=$? |
| 22322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22323 | (exit $ac_status); }; } && |
| 22324 | { ac_try='test -s conftest$ac_exeext' |
| 22325 | { (case "(($ac_try" in |
| 22326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22327 | *) ac_try_echo=$ac_try;; |
| 22328 | esac |
| 22329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22330 | (eval "$ac_try") 2>&5 |
| 22331 | ac_status=$? |
| 22332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22333 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22334 | |
| 22335 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 22336 | }'` |
| 22337 | # Check for a 64-bit object if we didn't find anything. |
| 22338 | 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; } |
| 22339 | }'`; fi |
| 22340 | else |
| 22341 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22342 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22343 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22344 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22345 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22346 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 22347 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22348 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22349 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 22350 | |
| 22351 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22352 | 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] | 22353 | else |
| 22354 | if test "$host_cpu" = ia64; then |
| 22355 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
| 22356 | allow_undefined_flag_F77="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22357 | 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] | 22358 | else |
| 22359 | # Determine the default libpath from the value encoded in an empty executable. |
| 22360 | cat >conftest.$ac_ext <<_ACEOF |
| 22361 | program main |
| 22362 | |
| 22363 | end |
| 22364 | _ACEOF |
| 22365 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22366 | if { (ac_try="$ac_link" |
| 22367 | case "(($ac_try" in |
| 22368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22369 | *) ac_try_echo=$ac_try;; |
| 22370 | esac |
| 22371 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22372 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22373 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22374 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22375 | rm -f conftest.er1 |
| 22376 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 22378 | (exit $ac_status); } && |
| 22379 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 22380 | { (case "(($ac_try" in |
| 22381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22382 | *) ac_try_echo=$ac_try;; |
| 22383 | esac |
| 22384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22385 | (eval "$ac_try") 2>&5 |
| 22386 | ac_status=$? |
| 22387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22388 | (exit $ac_status); }; } && |
| 22389 | { ac_try='test -s conftest$ac_exeext' |
| 22390 | { (case "(($ac_try" in |
| 22391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22392 | *) ac_try_echo=$ac_try;; |
| 22393 | esac |
| 22394 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22395 | (eval "$ac_try") 2>&5 |
| 22396 | ac_status=$? |
| 22397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22398 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22399 | |
| 22400 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 22401 | }'` |
| 22402 | # Check for a 64-bit object if we didn't find anything. |
| 22403 | 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; } |
| 22404 | }'`; fi |
| 22405 | else |
| 22406 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22407 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22408 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22409 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22410 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22411 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 22412 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22413 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22414 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 22415 | |
| 22416 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 22417 | # Warning - without using the other run time loading flags, |
| 22418 | # -berok will link without error, but may produce a broken library. |
| 22419 | no_undefined_flag_F77=' ${wl}-bernotok' |
| 22420 | allow_undefined_flag_F77=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22421 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22422 | whole_archive_flag_spec_F77='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22423 | archive_cmds_need_lc_F77=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22424 | # This is similar to how AIX traditionally builds its shared libraries. |
| 22425 | 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] | 22426 | fi |
| 22427 | fi |
| 22428 | ;; |
| 22429 | |
| 22430 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22431 | 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] | 22432 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22433 | hardcode_minus_L_F77=yes |
| 22434 | # see comment about different semantics on the GNU ld section |
| 22435 | ld_shlibs_F77=no |
| 22436 | ;; |
| 22437 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22438 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22439 | export_dynamic_flag_spec_F77=-rdynamic |
| 22440 | ;; |
| 22441 | |
| 22442 | cygwin* | mingw* | pw32*) |
| 22443 | # When not using gcc, we currently assume that we are using |
| 22444 | # Microsoft Visual C++. |
| 22445 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 22446 | # no search path for DLLs. |
| 22447 | hardcode_libdir_flag_spec_F77=' ' |
| 22448 | allow_undefined_flag_F77=unsupported |
| 22449 | # Tell ltmain to make .lib files, not .a files. |
| 22450 | libext=lib |
| 22451 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22452 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22453 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22454 | 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] | 22455 | # The linker will automatically build a .lib file if we build a DLL. |
| 22456 | old_archive_From_new_cmds_F77='true' |
| 22457 | # FIXME: Should let the user specify the lib program. |
| 22458 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22459 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22460 | enable_shared_with_static_runtimes_F77=yes |
| 22461 | ;; |
| 22462 | |
| 22463 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22464 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22465 | rhapsody* | darwin1.[012]) |
| 22466 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
| 22467 | ;; |
| 22468 | *) # Darwin 1.3 on |
| 22469 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 22470 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 22471 | else |
| 22472 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 22473 | 10.[012]) |
| 22474 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 22475 | ;; |
| 22476 | 10.*) |
| 22477 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
| 22478 | ;; |
| 22479 | esac |
| 22480 | fi |
| 22481 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22482 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22483 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22484 | hardcode_direct_F77=no |
| 22485 | hardcode_automatic_F77=yes |
| 22486 | hardcode_shlibpath_var_F77=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22487 | whole_archive_flag_spec_F77='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22488 | link_all_deplibs_F77=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22489 | if test "$GCC" = yes ; then |
| 22490 | output_verbose_link_cmd='echo' |
| 22491 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 22492 | 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] | 22493 | # 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] | 22494 | 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}' |
| 22495 | 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] | 22496 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22497 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22498 | xlc*) |
| 22499 | output_verbose_link_cmd='echo' |
| 22500 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 22501 | 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] | 22502 | # 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] | 22503 | 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}' |
| 22504 | 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] | 22505 | ;; |
| 22506 | *) |
| 22507 | ld_shlibs_F77=no |
| 22508 | ;; |
| 22509 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22510 | fi |
| 22511 | ;; |
| 22512 | |
| 22513 | dgux*) |
| 22514 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22515 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22516 | hardcode_shlibpath_var_F77=no |
| 22517 | ;; |
| 22518 | |
| 22519 | freebsd1*) |
| 22520 | ld_shlibs_F77=no |
| 22521 | ;; |
| 22522 | |
| 22523 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 22524 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 22525 | # does not break anything, and helps significantly (at the cost of a little |
| 22526 | # extra space). |
| 22527 | freebsd2.2*) |
| 22528 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 22529 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22530 | hardcode_direct_F77=yes |
| 22531 | hardcode_shlibpath_var_F77=no |
| 22532 | ;; |
| 22533 | |
| 22534 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 22535 | freebsd2*) |
| 22536 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 22537 | hardcode_direct_F77=yes |
| 22538 | hardcode_minus_L_F77=yes |
| 22539 | hardcode_shlibpath_var_F77=no |
| 22540 | ;; |
| 22541 | |
| 22542 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22543 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22544 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 22545 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22546 | hardcode_direct_F77=yes |
| 22547 | hardcode_shlibpath_var_F77=no |
| 22548 | ;; |
| 22549 | |
| 22550 | hpux9*) |
| 22551 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22552 | 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] | 22553 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22554 | 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] | 22555 | fi |
| 22556 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 22557 | hardcode_libdir_separator_F77=: |
| 22558 | hardcode_direct_F77=yes |
| 22559 | |
| 22560 | # hardcode_minus_L: Not really in the search PATH, |
| 22561 | # but as the default location of the library. |
| 22562 | hardcode_minus_L_F77=yes |
| 22563 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22564 | ;; |
| 22565 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22566 | hpux10*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22567 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22568 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 22569 | else |
| 22570 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 22571 | fi |
| 22572 | if test "$with_gnu_ld" = no; then |
| 22573 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 22574 | hardcode_libdir_separator_F77=: |
| 22575 | |
| 22576 | hardcode_direct_F77=yes |
| 22577 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22578 | |
| 22579 | # hardcode_minus_L: Not really in the search PATH, |
| 22580 | # but as the default location of the library. |
| 22581 | hardcode_minus_L_F77=yes |
| 22582 | fi |
| 22583 | ;; |
| 22584 | |
| 22585 | hpux11*) |
| 22586 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 22587 | case $host_cpu in |
| 22588 | hppa*64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22589 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22590 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22591 | ia64*) |
| 22592 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 22593 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22594 | *) |
| 22595 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 22596 | ;; |
| 22597 | esac |
| 22598 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22599 | case $host_cpu in |
| 22600 | hppa*64*) |
| 22601 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22602 | ;; |
| 22603 | ia64*) |
| 22604 | 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] | 22605 | ;; |
| 22606 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22607 | 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] | 22608 | ;; |
| 22609 | esac |
| 22610 | fi |
| 22611 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22612 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 22613 | hardcode_libdir_separator_F77=: |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22614 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22615 | case $host_cpu in |
| 22616 | hppa*64*|ia64*) |
| 22617 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
| 22618 | hardcode_direct_F77=no |
| 22619 | hardcode_shlibpath_var_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22620 | ;; |
| 22621 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22622 | hardcode_direct_F77=yes |
| 22623 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22624 | |
| 22625 | # hardcode_minus_L: Not really in the search PATH, |
| 22626 | # but as the default location of the library. |
| 22627 | hardcode_minus_L_F77=yes |
| 22628 | ;; |
| 22629 | esac |
| 22630 | fi |
| 22631 | ;; |
| 22632 | |
| 22633 | irix5* | irix6* | nonstopux*) |
| 22634 | if test "$GCC" = yes; then |
| 22635 | 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' |
| 22636 | else |
| 22637 | 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' |
| 22638 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
| 22639 | fi |
| 22640 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22641 | hardcode_libdir_separator_F77=: |
| 22642 | link_all_deplibs_F77=yes |
| 22643 | ;; |
| 22644 | |
| 22645 | netbsd*) |
| 22646 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 22647 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 22648 | else |
| 22649 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 22650 | fi |
| 22651 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22652 | hardcode_direct_F77=yes |
| 22653 | hardcode_shlibpath_var_F77=no |
| 22654 | ;; |
| 22655 | |
| 22656 | newsos6) |
| 22657 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22658 | hardcode_direct_F77=yes |
| 22659 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22660 | hardcode_libdir_separator_F77=: |
| 22661 | hardcode_shlibpath_var_F77=no |
| 22662 | ;; |
| 22663 | |
| 22664 | openbsd*) |
| 22665 | hardcode_direct_F77=yes |
| 22666 | hardcode_shlibpath_var_F77=no |
| 22667 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 22668 | 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] | 22669 | 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] | 22670 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 22671 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22672 | else |
| 22673 | case $host_os in |
| 22674 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 22675 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 22676 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22677 | ;; |
| 22678 | *) |
| 22679 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 22680 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 22681 | ;; |
| 22682 | esac |
| 22683 | fi |
| 22684 | ;; |
| 22685 | |
| 22686 | os2*) |
| 22687 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22688 | hardcode_minus_L_F77=yes |
| 22689 | allow_undefined_flag_F77=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22690 | 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] | 22691 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 22692 | ;; |
| 22693 | |
| 22694 | osf3*) |
| 22695 | if test "$GCC" = yes; then |
| 22696 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 22697 | 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' |
| 22698 | else |
| 22699 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 22700 | 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' |
| 22701 | fi |
| 22702 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22703 | hardcode_libdir_separator_F77=: |
| 22704 | ;; |
| 22705 | |
| 22706 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 22707 | if test "$GCC" = yes; then |
| 22708 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 22709 | 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' |
| 22710 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22711 | else |
| 22712 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 22713 | 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] | 22714 | 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] | 22715 | $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] | 22716 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22717 | # Both c and cxx compiler support -rpath directly |
| 22718 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
| 22719 | fi |
| 22720 | hardcode_libdir_separator_F77=: |
| 22721 | ;; |
| 22722 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22723 | solaris*) |
| 22724 | no_undefined_flag_F77=' -z text' |
| 22725 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22726 | wlarc='${wl}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22727 | 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] | 22728 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 22729 | $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] | 22730 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22731 | wlarc='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22732 | 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] | 22733 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 22734 | $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] | 22735 | fi |
| 22736 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22737 | hardcode_shlibpath_var_F77=no |
| 22738 | case $host_os in |
| 22739 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22740 | *) |
| 22741 | # The compiler driver will combine linker options so we |
| 22742 | # cannot just pass the convience library names through |
| 22743 | # without $wl, iff we do not link with $LD. |
| 22744 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 22745 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 22746 | case $wlarc in |
| 22747 | '') |
| 22748 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
| 22749 | *) |
| 22750 | 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' ;; |
| 22751 | esac ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22752 | esac |
| 22753 | link_all_deplibs_F77=yes |
| 22754 | ;; |
| 22755 | |
| 22756 | sunos4*) |
| 22757 | if test "x$host_vendor" = xsequent; then |
| 22758 | # Use $CC to link under sequent, because it throws in some extra .o |
| 22759 | # files that make .init and .fini sections work. |
| 22760 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22761 | else |
| 22762 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 22763 | fi |
| 22764 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22765 | hardcode_direct_F77=yes |
| 22766 | hardcode_minus_L_F77=yes |
| 22767 | hardcode_shlibpath_var_F77=no |
| 22768 | ;; |
| 22769 | |
| 22770 | sysv4) |
| 22771 | case $host_vendor in |
| 22772 | sni) |
| 22773 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22774 | hardcode_direct_F77=yes # is this really true??? |
| 22775 | ;; |
| 22776 | siemens) |
| 22777 | ## LD is ld it makes a PLAMLIB |
| 22778 | ## CC just makes a GrossModule. |
| 22779 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 22780 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
| 22781 | hardcode_direct_F77=no |
| 22782 | ;; |
| 22783 | motorola) |
| 22784 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22785 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
| 22786 | ;; |
| 22787 | esac |
| 22788 | runpath_var='LD_RUN_PATH' |
| 22789 | hardcode_shlibpath_var_F77=no |
| 22790 | ;; |
| 22791 | |
| 22792 | sysv4.3*) |
| 22793 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22794 | hardcode_shlibpath_var_F77=no |
| 22795 | export_dynamic_flag_spec_F77='-Bexport' |
| 22796 | ;; |
| 22797 | |
| 22798 | sysv4*MP*) |
| 22799 | if test -d /usr/nec; then |
| 22800 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22801 | hardcode_shlibpath_var_F77=no |
| 22802 | runpath_var=LD_RUN_PATH |
| 22803 | hardcode_runpath_var=yes |
| 22804 | ld_shlibs_F77=yes |
| 22805 | fi |
| 22806 | ;; |
| 22807 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22808 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 22809 | no_undefined_flag_F77='${wl}-z,text' |
| 22810 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22811 | hardcode_shlibpath_var_F77=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22812 | runpath_var='LD_RUN_PATH' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22813 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22814 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22815 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22816 | 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] | 22817 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22818 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22819 | 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] | 22820 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22821 | ;; |
| 22822 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22823 | sysv5* | sco3.2v5* | sco5v6*) |
| 22824 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 22825 | # link with -lc, and that would cause any symbols used from libc to |
| 22826 | # always be unresolved, which means just about no library would |
| 22827 | # ever link correctly. If we're not using GNU ld we use -z text |
| 22828 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 22829 | # as -z defs. |
| 22830 | no_undefined_flag_F77='${wl}-z,text' |
| 22831 | allow_undefined_flag_F77='${wl}-z,nodefs' |
| 22832 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22833 | hardcode_shlibpath_var_F77=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22834 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 22835 | hardcode_libdir_separator_F77=':' |
| 22836 | link_all_deplibs_F77=yes |
| 22837 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22838 | runpath_var='LD_RUN_PATH' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22839 | |
| 22840 | if test "$GCC" = yes; then |
| 22841 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22842 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22843 | else |
| 22844 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22845 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22846 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22847 | ;; |
| 22848 | |
| 22849 | uts4*) |
| 22850 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22851 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22852 | hardcode_shlibpath_var_F77=no |
| 22853 | ;; |
| 22854 | |
| 22855 | *) |
| 22856 | ld_shlibs_F77=no |
| 22857 | ;; |
| 22858 | esac |
| 22859 | fi |
| 22860 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22861 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
| 22862 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22863 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 22864 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22865 | # |
| 22866 | # Do we need to explicitly link libc? |
| 22867 | # |
| 22868 | case "x$archive_cmds_need_lc_F77" in |
| 22869 | x|xyes) |
| 22870 | # Assume -lc should be added |
| 22871 | archive_cmds_need_lc_F77=yes |
| 22872 | |
| 22873 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 22874 | case $archive_cmds_F77 in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22875 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22876 | # FIXME: we may have to deal with multi-command sequences. |
| 22877 | ;; |
| 22878 | '$CC '*) |
| 22879 | # Test whether the compiler implicitly links with -lc since on some |
| 22880 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 22881 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22882 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 22883 | 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] | 22884 | $rm conftest* |
| 22885 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 22886 | |
| 22887 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 22888 | (eval $ac_compile) 2>&5 |
| 22889 | ac_status=$? |
| 22890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22891 | (exit $ac_status); } 2>conftest.err; then |
| 22892 | soname=conftest |
| 22893 | lib=conftest |
| 22894 | libobjs=conftest.$ac_objext |
| 22895 | deplibs= |
| 22896 | wl=$lt_prog_compiler_wl_F77 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22897 | pic_flag=$lt_prog_compiler_pic_F77 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22898 | compiler_flags=-v |
| 22899 | linker_flags=-v |
| 22900 | verstring= |
| 22901 | output_objdir=. |
| 22902 | libname=conftest |
| 22903 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
| 22904 | allow_undefined_flag_F77= |
| 22905 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 22906 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 22907 | ac_status=$? |
| 22908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22909 | (exit $ac_status); } |
| 22910 | then |
| 22911 | archive_cmds_need_lc_F77=no |
| 22912 | else |
| 22913 | archive_cmds_need_lc_F77=yes |
| 22914 | fi |
| 22915 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
| 22916 | else |
| 22917 | cat conftest.err 1>&5 |
| 22918 | fi |
| 22919 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22920 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
| 22921 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22922 | ;; |
| 22923 | esac |
| 22924 | fi |
| 22925 | ;; |
| 22926 | esac |
| 22927 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22928 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 22929 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22930 | library_names_spec= |
| 22931 | libname_spec='lib$name' |
| 22932 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22933 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22934 | postinstall_cmds= |
| 22935 | postuninstall_cmds= |
| 22936 | finish_cmds= |
| 22937 | finish_eval= |
| 22938 | shlibpath_var= |
| 22939 | shlibpath_overrides_runpath=unknown |
| 22940 | version_type=none |
| 22941 | dynamic_linker="$host_os ld.so" |
| 22942 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 22943 | if test "$GCC" = yes; then |
| 22944 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 22945 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 22946 | # if the path contains ";" then we assume it to be the separator |
| 22947 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 22948 | # assumed that no part of a normal pathname contains ";" but that should |
| 22949 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 22950 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 22951 | else |
| 22952 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 22953 | fi |
| 22954 | else |
| 22955 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 22956 | fi |
| 22957 | need_lib_prefix=unknown |
| 22958 | hardcode_into_libs=no |
| 22959 | |
| 22960 | # when you set need_version to no, make sure it does not cause -set_version |
| 22961 | # flags to be left without arguments |
| 22962 | need_version=unknown |
| 22963 | |
| 22964 | case $host_os in |
| 22965 | aix3*) |
| 22966 | version_type=linux |
| 22967 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 22968 | shlibpath_var=LIBPATH |
| 22969 | |
| 22970 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 22971 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22972 | ;; |
| 22973 | |
| 22974 | aix4* | aix5*) |
| 22975 | version_type=linux |
| 22976 | need_lib_prefix=no |
| 22977 | need_version=no |
| 22978 | hardcode_into_libs=yes |
| 22979 | if test "$host_cpu" = ia64; then |
| 22980 | # AIX 5 supports IA64 |
| 22981 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 22982 | shlibpath_var=LD_LIBRARY_PATH |
| 22983 | else |
| 22984 | # With GCC up to 2.95.x, collect2 would create an import file |
| 22985 | # for dependence libraries. The import file would start with |
| 22986 | # the line `#! .'. This would cause the generated library to |
| 22987 | # depend on `.', always an invalid library. This was fixed in |
| 22988 | # development snapshots of GCC prior to 3.0. |
| 22989 | case $host_os in |
| 22990 | aix4 | aix4.[01] | aix4.[01].*) |
| 22991 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 22992 | echo ' yes ' |
| 22993 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 22994 | : |
| 22995 | else |
| 22996 | can_build_shared=no |
| 22997 | fi |
| 22998 | ;; |
| 22999 | esac |
| 23000 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 23001 | # soname into executable. Probably we can add versioning support to |
| 23002 | # collect2, so additional links can be useful in future. |
| 23003 | if test "$aix_use_runtimelinking" = yes; then |
| 23004 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 23005 | # instead of lib<name>.a to let people know that these are not |
| 23006 | # typical AIX shared libraries. |
| 23007 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23008 | else |
| 23009 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 23010 | # and later when we are not doing run time linking. |
| 23011 | library_names_spec='${libname}${release}.a $libname.a' |
| 23012 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23013 | fi |
| 23014 | shlibpath_var=LIBPATH |
| 23015 | fi |
| 23016 | ;; |
| 23017 | |
| 23018 | amigaos*) |
| 23019 | library_names_spec='$libname.ixlibrary $libname.a' |
| 23020 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23021 | 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] | 23022 | ;; |
| 23023 | |
| 23024 | beos*) |
| 23025 | library_names_spec='${libname}${shared_ext}' |
| 23026 | dynamic_linker="$host_os ld.so" |
| 23027 | shlibpath_var=LIBRARY_PATH |
| 23028 | ;; |
| 23029 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23030 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23031 | version_type=linux |
| 23032 | need_version=no |
| 23033 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23034 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23035 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 23036 | shlibpath_var=LD_LIBRARY_PATH |
| 23037 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 23038 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 23039 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 23040 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 23041 | # libtool to hard-code these into programs |
| 23042 | ;; |
| 23043 | |
| 23044 | cygwin* | mingw* | pw32*) |
| 23045 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23046 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23047 | need_version=no |
| 23048 | need_lib_prefix=no |
| 23049 | |
| 23050 | case $GCC,$host_os in |
| 23051 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 23052 | library_names_spec='$libname.dll.a' |
| 23053 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 23054 | postinstall_cmds='base_file=`basename \${file}`~ |
| 23055 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 23056 | dldir=$destdir/`dirname \$dlpath`~ |
| 23057 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23058 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 23059 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 23060 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 23061 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23062 | $rm \$dlpath' |
| 23063 | shlibpath_overrides_runpath=yes |
| 23064 | |
| 23065 | case $host_os in |
| 23066 | cygwin*) |
| 23067 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 23068 | 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] | 23069 | 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] | 23070 | ;; |
| 23071 | mingw*) |
| 23072 | # MinGW DLLs use traditional 'lib' prefix |
| 23073 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 23074 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 23075 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 23076 | # It is most probably a Windows format PATH printed by |
| 23077 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 23078 | # path with ; separators, and with drive letters. We can handle the |
| 23079 | # drive letters (cygwin fileutils understands them), so leave them, |
| 23080 | # especially as we might pass files found there to a mingw objdump, |
| 23081 | # which wouldn't understand a cygwinified path. Ahh. |
| 23082 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 23083 | else |
| 23084 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 23085 | fi |
| 23086 | ;; |
| 23087 | pw32*) |
| 23088 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23089 | 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] | 23090 | ;; |
| 23091 | esac |
| 23092 | ;; |
| 23093 | |
| 23094 | *) |
| 23095 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 23096 | ;; |
| 23097 | esac |
| 23098 | dynamic_linker='Win32 ld.exe' |
| 23099 | # FIXME: first we should search . and the directory the executable is in |
| 23100 | shlibpath_var=PATH |
| 23101 | ;; |
| 23102 | |
| 23103 | darwin* | rhapsody*) |
| 23104 | dynamic_linker="$host_os dyld" |
| 23105 | version_type=darwin |
| 23106 | need_lib_prefix=no |
| 23107 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23108 | 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] | 23109 | soname_spec='${libname}${release}${major}$shared_ext' |
| 23110 | shlibpath_overrides_runpath=yes |
| 23111 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 23112 | shrext_cmds='.dylib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23113 | # 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] | 23114 | if test "$GCC" = yes; then |
| 23115 | 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"` |
| 23116 | else |
| 23117 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23118 | fi |
| 23119 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 23120 | ;; |
| 23121 | |
| 23122 | dgux*) |
| 23123 | version_type=linux |
| 23124 | need_lib_prefix=no |
| 23125 | need_version=no |
| 23126 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 23127 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23128 | shlibpath_var=LD_LIBRARY_PATH |
| 23129 | ;; |
| 23130 | |
| 23131 | freebsd1*) |
| 23132 | dynamic_linker=no |
| 23133 | ;; |
| 23134 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23135 | kfreebsd*-gnu) |
| 23136 | version_type=linux |
| 23137 | need_lib_prefix=no |
| 23138 | need_version=no |
| 23139 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 23140 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23141 | shlibpath_var=LD_LIBRARY_PATH |
| 23142 | shlibpath_overrides_runpath=no |
| 23143 | hardcode_into_libs=yes |
| 23144 | dynamic_linker='GNU ld.so' |
| 23145 | ;; |
| 23146 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23147 | freebsd* | dragonfly*) |
| 23148 | # DragonFly does not have aout. When/if they implement a new |
| 23149 | # versioning mechanism, adjust this. |
| 23150 | if test -x /usr/bin/objformat; then |
| 23151 | objformat=`/usr/bin/objformat` |
| 23152 | else |
| 23153 | case $host_os in |
| 23154 | freebsd[123]*) objformat=aout ;; |
| 23155 | *) objformat=elf ;; |
| 23156 | esac |
| 23157 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23158 | version_type=freebsd-$objformat |
| 23159 | case $version_type in |
| 23160 | freebsd-elf*) |
| 23161 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 23162 | need_version=no |
| 23163 | need_lib_prefix=no |
| 23164 | ;; |
| 23165 | freebsd-*) |
| 23166 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 23167 | need_version=yes |
| 23168 | ;; |
| 23169 | esac |
| 23170 | shlibpath_var=LD_LIBRARY_PATH |
| 23171 | case $host_os in |
| 23172 | freebsd2*) |
| 23173 | shlibpath_overrides_runpath=yes |
| 23174 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23175 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23176 | shlibpath_overrides_runpath=yes |
| 23177 | hardcode_into_libs=yes |
| 23178 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23179 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 23180 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23181 | shlibpath_overrides_runpath=no |
| 23182 | hardcode_into_libs=yes |
| 23183 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23184 | freebsd*) # from 4.6 on |
| 23185 | shlibpath_overrides_runpath=yes |
| 23186 | hardcode_into_libs=yes |
| 23187 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23188 | esac |
| 23189 | ;; |
| 23190 | |
| 23191 | gnu*) |
| 23192 | version_type=linux |
| 23193 | need_lib_prefix=no |
| 23194 | need_version=no |
| 23195 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 23196 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23197 | shlibpath_var=LD_LIBRARY_PATH |
| 23198 | hardcode_into_libs=yes |
| 23199 | ;; |
| 23200 | |
| 23201 | hpux9* | hpux10* | hpux11*) |
| 23202 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 23203 | # link against other versions. |
| 23204 | version_type=sunos |
| 23205 | need_lib_prefix=no |
| 23206 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23207 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23208 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23209 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23210 | hardcode_into_libs=yes |
| 23211 | dynamic_linker="$host_os dld.so" |
| 23212 | shlibpath_var=LD_LIBRARY_PATH |
| 23213 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 23214 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23215 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23216 | if test "X$HPUX_IA64_MODE" = X32; then |
| 23217 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 23218 | else |
| 23219 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 23220 | fi |
| 23221 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 23222 | ;; |
| 23223 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23224 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23225 | hardcode_into_libs=yes |
| 23226 | dynamic_linker="$host_os dld.sl" |
| 23227 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 23228 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 23229 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23230 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23231 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 23232 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 23233 | ;; |
| 23234 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23235 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23236 | dynamic_linker="$host_os dld.sl" |
| 23237 | shlibpath_var=SHLIB_PATH |
| 23238 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 23239 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23240 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23241 | ;; |
| 23242 | esac |
| 23243 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 23244 | postinstall_cmds='chmod 555 $lib' |
| 23245 | ;; |
| 23246 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23247 | interix3*) |
| 23248 | version_type=linux |
| 23249 | need_lib_prefix=no |
| 23250 | need_version=no |
| 23251 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 23252 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23253 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 23254 | shlibpath_var=LD_LIBRARY_PATH |
| 23255 | shlibpath_overrides_runpath=no |
| 23256 | hardcode_into_libs=yes |
| 23257 | ;; |
| 23258 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23259 | irix5* | irix6* | nonstopux*) |
| 23260 | case $host_os in |
| 23261 | nonstopux*) version_type=nonstopux ;; |
| 23262 | *) |
| 23263 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 23264 | version_type=linux |
| 23265 | else |
| 23266 | version_type=irix |
| 23267 | fi ;; |
| 23268 | esac |
| 23269 | need_lib_prefix=no |
| 23270 | need_version=no |
| 23271 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23272 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 23273 | case $host_os in |
| 23274 | irix5* | nonstopux*) |
| 23275 | libsuff= shlibsuff= |
| 23276 | ;; |
| 23277 | *) |
| 23278 | case $LD in # libtool.m4 will add one of these switches to LD |
| 23279 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 23280 | libsuff= shlibsuff= libmagic=32-bit;; |
| 23281 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 23282 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 23283 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 23284 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 23285 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 23286 | esac |
| 23287 | ;; |
| 23288 | esac |
| 23289 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 23290 | shlibpath_overrides_runpath=no |
| 23291 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 23292 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 23293 | hardcode_into_libs=yes |
| 23294 | ;; |
| 23295 | |
| 23296 | # No shared lib support for Linux oldld, aout, or coff. |
| 23297 | linux*oldld* | linux*aout* | linux*coff*) |
| 23298 | dynamic_linker=no |
| 23299 | ;; |
| 23300 | |
| 23301 | # This must be Linux ELF. |
| 23302 | linux*) |
| 23303 | version_type=linux |
| 23304 | need_lib_prefix=no |
| 23305 | need_version=no |
| 23306 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23307 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23308 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 23309 | shlibpath_var=LD_LIBRARY_PATH |
| 23310 | shlibpath_overrides_runpath=no |
| 23311 | # This implies no fast_install, which is unacceptable. |
| 23312 | # Some rework will be needed to allow for fast_install |
| 23313 | # before this can be enabled. |
| 23314 | hardcode_into_libs=yes |
| 23315 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23316 | # Append ld.so.conf contents to the search path |
| 23317 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23318 | 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] | 23319 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 23320 | fi |
| 23321 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23322 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 23323 | # powerpc, because MkLinux only supported shared libraries with the |
| 23324 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 23325 | # most powerpc-linux boxes support dynamic linking these days and |
| 23326 | # people can always --disable-shared, the test was removed, and we |
| 23327 | # assume the GNU/Linux dynamic linker is in use. |
| 23328 | dynamic_linker='GNU/Linux ld.so' |
| 23329 | ;; |
| 23330 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23331 | knetbsd*-gnu) |
| 23332 | version_type=linux |
| 23333 | need_lib_prefix=no |
| 23334 | need_version=no |
| 23335 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 23336 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23337 | shlibpath_var=LD_LIBRARY_PATH |
| 23338 | shlibpath_overrides_runpath=no |
| 23339 | hardcode_into_libs=yes |
| 23340 | dynamic_linker='GNU ld.so' |
| 23341 | ;; |
| 23342 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23343 | netbsd*) |
| 23344 | version_type=sunos |
| 23345 | need_lib_prefix=no |
| 23346 | need_version=no |
| 23347 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 23348 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 23349 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 23350 | dynamic_linker='NetBSD (a.out) ld.so' |
| 23351 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23352 | 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] | 23353 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23354 | dynamic_linker='NetBSD ld.elf_so' |
| 23355 | fi |
| 23356 | shlibpath_var=LD_LIBRARY_PATH |
| 23357 | shlibpath_overrides_runpath=yes |
| 23358 | hardcode_into_libs=yes |
| 23359 | ;; |
| 23360 | |
| 23361 | newsos6) |
| 23362 | version_type=linux |
| 23363 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23364 | shlibpath_var=LD_LIBRARY_PATH |
| 23365 | shlibpath_overrides_runpath=yes |
| 23366 | ;; |
| 23367 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23368 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23369 | version_type=linux |
| 23370 | need_lib_prefix=no |
| 23371 | need_version=no |
| 23372 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23373 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23374 | shlibpath_var=LD_LIBRARY_PATH |
| 23375 | shlibpath_overrides_runpath=yes |
| 23376 | ;; |
| 23377 | |
| 23378 | openbsd*) |
| 23379 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23380 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23381 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23382 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 23383 | case $host_os in |
| 23384 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 23385 | *) need_version=no ;; |
| 23386 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23387 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 23388 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 23389 | shlibpath_var=LD_LIBRARY_PATH |
| 23390 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 23391 | case $host_os in |
| 23392 | openbsd2.[89] | openbsd2.[89].*) |
| 23393 | shlibpath_overrides_runpath=no |
| 23394 | ;; |
| 23395 | *) |
| 23396 | shlibpath_overrides_runpath=yes |
| 23397 | ;; |
| 23398 | esac |
| 23399 | else |
| 23400 | shlibpath_overrides_runpath=yes |
| 23401 | fi |
| 23402 | ;; |
| 23403 | |
| 23404 | os2*) |
| 23405 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23406 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23407 | need_lib_prefix=no |
| 23408 | library_names_spec='$libname${shared_ext} $libname.a' |
| 23409 | dynamic_linker='OS/2 ld.exe' |
| 23410 | shlibpath_var=LIBPATH |
| 23411 | ;; |
| 23412 | |
| 23413 | osf3* | osf4* | osf5*) |
| 23414 | version_type=osf |
| 23415 | need_lib_prefix=no |
| 23416 | need_version=no |
| 23417 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23418 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23419 | shlibpath_var=LD_LIBRARY_PATH |
| 23420 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 23421 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 23422 | ;; |
| 23423 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23424 | solaris*) |
| 23425 | version_type=linux |
| 23426 | need_lib_prefix=no |
| 23427 | need_version=no |
| 23428 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23429 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23430 | shlibpath_var=LD_LIBRARY_PATH |
| 23431 | shlibpath_overrides_runpath=yes |
| 23432 | hardcode_into_libs=yes |
| 23433 | # ldd complains unless libraries are executable |
| 23434 | postinstall_cmds='chmod +x $lib' |
| 23435 | ;; |
| 23436 | |
| 23437 | sunos4*) |
| 23438 | version_type=sunos |
| 23439 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 23440 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 23441 | shlibpath_var=LD_LIBRARY_PATH |
| 23442 | shlibpath_overrides_runpath=yes |
| 23443 | if test "$with_gnu_ld" = yes; then |
| 23444 | need_lib_prefix=no |
| 23445 | fi |
| 23446 | need_version=yes |
| 23447 | ;; |
| 23448 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23449 | sysv4 | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23450 | version_type=linux |
| 23451 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23452 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23453 | shlibpath_var=LD_LIBRARY_PATH |
| 23454 | case $host_vendor in |
| 23455 | sni) |
| 23456 | shlibpath_overrides_runpath=no |
| 23457 | need_lib_prefix=no |
| 23458 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 23459 | runpath_var=LD_RUN_PATH |
| 23460 | ;; |
| 23461 | siemens) |
| 23462 | need_lib_prefix=no |
| 23463 | ;; |
| 23464 | motorola) |
| 23465 | need_lib_prefix=no |
| 23466 | need_version=no |
| 23467 | shlibpath_overrides_runpath=no |
| 23468 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 23469 | ;; |
| 23470 | esac |
| 23471 | ;; |
| 23472 | |
| 23473 | sysv4*MP*) |
| 23474 | if test -d /usr/nec ;then |
| 23475 | version_type=linux |
| 23476 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 23477 | soname_spec='$libname${shared_ext}.$major' |
| 23478 | shlibpath_var=LD_LIBRARY_PATH |
| 23479 | fi |
| 23480 | ;; |
| 23481 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23482 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 23483 | version_type=freebsd-elf |
| 23484 | need_lib_prefix=no |
| 23485 | need_version=no |
| 23486 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 23487 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23488 | shlibpath_var=LD_LIBRARY_PATH |
| 23489 | hardcode_into_libs=yes |
| 23490 | if test "$with_gnu_ld" = yes; then |
| 23491 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 23492 | shlibpath_overrides_runpath=no |
| 23493 | else |
| 23494 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 23495 | shlibpath_overrides_runpath=yes |
| 23496 | case $host_os in |
| 23497 | sco3.2v5*) |
| 23498 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 23499 | ;; |
| 23500 | esac |
| 23501 | fi |
| 23502 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 23503 | ;; |
| 23504 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23505 | uts4*) |
| 23506 | version_type=linux |
| 23507 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 23508 | soname_spec='${libname}${release}${shared_ext}$major' |
| 23509 | shlibpath_var=LD_LIBRARY_PATH |
| 23510 | ;; |
| 23511 | |
| 23512 | *) |
| 23513 | dynamic_linker=no |
| 23514 | ;; |
| 23515 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23516 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 23517 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23518 | test "$dynamic_linker" = no && can_build_shared=no |
| 23519 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23520 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 23521 | if test "$GCC" = yes; then |
| 23522 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 23523 | fi |
| 23524 | |
| 23525 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 23526 | 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] | 23527 | hardcode_action_F77= |
| 23528 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
| 23529 | test -n "$runpath_var_F77" || \ |
| 23530 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
| 23531 | |
| 23532 | # We can hardcode non-existant directories. |
| 23533 | if test "$hardcode_direct_F77" != no && |
| 23534 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 23535 | # have to relink, otherwise we might link with an installed library |
| 23536 | # when we should be linking with a yet-to-be-installed one |
| 23537 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
| 23538 | test "$hardcode_minus_L_F77" != no; then |
| 23539 | # Linking always hardcodes the temporary library directory. |
| 23540 | hardcode_action_F77=relink |
| 23541 | else |
| 23542 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 23543 | hardcode_action_F77=immediate |
| 23544 | fi |
| 23545 | else |
| 23546 | # We cannot hardcode anything, or else we can only hardcode existing |
| 23547 | # directories. |
| 23548 | hardcode_action_F77=unsupported |
| 23549 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23550 | { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
| 23551 | echo "${ECHO_T}$hardcode_action_F77" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23552 | |
| 23553 | if test "$hardcode_action_F77" = relink; then |
| 23554 | # Fast installation is not supported |
| 23555 | enable_fast_install=no |
| 23556 | elif test "$shlibpath_overrides_runpath" = yes || |
| 23557 | test "$enable_shared" = no; then |
| 23558 | # Fast installation is not necessary |
| 23559 | enable_fast_install=needless |
| 23560 | fi |
| 23561 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23562 | |
| 23563 | # The else clause should only fire when bootstrapping the |
| 23564 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 23565 | # with your package, and you will get complaints that there are |
| 23566 | # no rules to generate ltmain.sh. |
| 23567 | if test -f "$ltmain"; then |
| 23568 | # See if we are running on zsh, and set the options which allow our commands through |
| 23569 | # without removal of \ escapes. |
| 23570 | if test -n "${ZSH_VERSION+set}" ; then |
| 23571 | setopt NO_GLOB_SUBST |
| 23572 | fi |
| 23573 | # Now quote all the things that may contain metacharacters while being |
| 23574 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 23575 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23576 | 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] | 23577 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23578 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 23579 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 23580 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 23581 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 23582 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 23583 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 23584 | old_postinstall_cmds old_postuninstall_cmds \ |
| 23585 | compiler_F77 \ |
| 23586 | CC_F77 \ |
| 23587 | LD_F77 \ |
| 23588 | lt_prog_compiler_wl_F77 \ |
| 23589 | lt_prog_compiler_pic_F77 \ |
| 23590 | lt_prog_compiler_static_F77 \ |
| 23591 | lt_prog_compiler_no_builtin_flag_F77 \ |
| 23592 | export_dynamic_flag_spec_F77 \ |
| 23593 | thread_safe_flag_spec_F77 \ |
| 23594 | whole_archive_flag_spec_F77 \ |
| 23595 | enable_shared_with_static_runtimes_F77 \ |
| 23596 | old_archive_cmds_F77 \ |
| 23597 | old_archive_from_new_cmds_F77 \ |
| 23598 | predep_objects_F77 \ |
| 23599 | postdep_objects_F77 \ |
| 23600 | predeps_F77 \ |
| 23601 | postdeps_F77 \ |
| 23602 | compiler_lib_search_path_F77 \ |
| 23603 | archive_cmds_F77 \ |
| 23604 | archive_expsym_cmds_F77 \ |
| 23605 | postinstall_cmds_F77 \ |
| 23606 | postuninstall_cmds_F77 \ |
| 23607 | old_archive_from_expsyms_cmds_F77 \ |
| 23608 | allow_undefined_flag_F77 \ |
| 23609 | no_undefined_flag_F77 \ |
| 23610 | export_symbols_cmds_F77 \ |
| 23611 | hardcode_libdir_flag_spec_F77 \ |
| 23612 | hardcode_libdir_flag_spec_ld_F77 \ |
| 23613 | hardcode_libdir_separator_F77 \ |
| 23614 | hardcode_automatic_F77 \ |
| 23615 | module_cmds_F77 \ |
| 23616 | module_expsym_cmds_F77 \ |
| 23617 | lt_cv_prog_compiler_c_o_F77 \ |
| 23618 | exclude_expsyms_F77 \ |
| 23619 | include_expsyms_F77; do |
| 23620 | |
| 23621 | case $var in |
| 23622 | old_archive_cmds_F77 | \ |
| 23623 | old_archive_from_new_cmds_F77 | \ |
| 23624 | archive_cmds_F77 | \ |
| 23625 | archive_expsym_cmds_F77 | \ |
| 23626 | module_cmds_F77 | \ |
| 23627 | module_expsym_cmds_F77 | \ |
| 23628 | old_archive_from_expsyms_cmds_F77 | \ |
| 23629 | export_symbols_cmds_F77 | \ |
| 23630 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 23631 | postinstall_cmds | postuninstall_cmds | \ |
| 23632 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 23633 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 23634 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23635 | 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] | 23636 | ;; |
| 23637 | *) |
| 23638 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 23639 | ;; |
| 23640 | esac |
| 23641 | done |
| 23642 | |
| 23643 | case $lt_echo in |
| 23644 | *'\$0 --fallback-echo"') |
| 23645 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 23646 | ;; |
| 23647 | esac |
| 23648 | |
| 23649 | cfgfile="$ofile" |
| 23650 | |
| 23651 | cat <<__EOF__ >> "$cfgfile" |
| 23652 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 23653 | |
| 23654 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 23655 | |
| 23656 | # Shell to use when invoking shell scripts. |
| 23657 | SHELL=$lt_SHELL |
| 23658 | |
| 23659 | # Whether or not to build shared libraries. |
| 23660 | build_libtool_libs=$enable_shared |
| 23661 | |
| 23662 | # Whether or not to build static libraries. |
| 23663 | build_old_libs=$enable_static |
| 23664 | |
| 23665 | # Whether or not to add -lc for building shared libraries. |
| 23666 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
| 23667 | |
| 23668 | # Whether or not to disallow shared libs when runtime libs are static |
| 23669 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
| 23670 | |
| 23671 | # Whether or not to optimize for fast installation. |
| 23672 | fast_install=$enable_fast_install |
| 23673 | |
| 23674 | # The host system. |
| 23675 | host_alias=$host_alias |
| 23676 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23677 | host_os=$host_os |
| 23678 | |
| 23679 | # The build system. |
| 23680 | build_alias=$build_alias |
| 23681 | build=$build |
| 23682 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23683 | |
| 23684 | # An echo program that does not interpret backslashes. |
| 23685 | echo=$lt_echo |
| 23686 | |
| 23687 | # The archiver. |
| 23688 | AR=$lt_AR |
| 23689 | AR_FLAGS=$lt_AR_FLAGS |
| 23690 | |
| 23691 | # A C compiler. |
| 23692 | LTCC=$lt_LTCC |
| 23693 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23694 | # LTCC compiler flags. |
| 23695 | LTCFLAGS=$lt_LTCFLAGS |
| 23696 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23697 | # A language-specific compiler. |
| 23698 | CC=$lt_compiler_F77 |
| 23699 | |
| 23700 | # Is the compiler the GNU C compiler? |
| 23701 | with_gcc=$GCC_F77 |
| 23702 | |
| 23703 | # An ERE matcher. |
| 23704 | EGREP=$lt_EGREP |
| 23705 | |
| 23706 | # The linker used to build libraries. |
| 23707 | LD=$lt_LD_F77 |
| 23708 | |
| 23709 | # Whether we need hard or soft links. |
| 23710 | LN_S=$lt_LN_S |
| 23711 | |
| 23712 | # A BSD-compatible nm program. |
| 23713 | NM=$lt_NM |
| 23714 | |
| 23715 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23716 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23717 | |
| 23718 | # Used to examine libraries when file_magic_cmd begins "file" |
| 23719 | MAGIC_CMD=$MAGIC_CMD |
| 23720 | |
| 23721 | # Used on cygwin: DLL creation program. |
| 23722 | DLLTOOL="$DLLTOOL" |
| 23723 | |
| 23724 | # Used on cygwin: object dumper. |
| 23725 | OBJDUMP="$OBJDUMP" |
| 23726 | |
| 23727 | # Used on cygwin: assembler. |
| 23728 | AS="$AS" |
| 23729 | |
| 23730 | # The name of the directory that contains temporary libtool files. |
| 23731 | objdir=$objdir |
| 23732 | |
| 23733 | # How to create reloadable object files. |
| 23734 | reload_flag=$lt_reload_flag |
| 23735 | reload_cmds=$lt_reload_cmds |
| 23736 | |
| 23737 | # How to pass a linker flag through the compiler. |
| 23738 | wl=$lt_lt_prog_compiler_wl_F77 |
| 23739 | |
| 23740 | # Object file suffix (normally "o"). |
| 23741 | objext="$ac_objext" |
| 23742 | |
| 23743 | # Old archive suffix (normally "a"). |
| 23744 | libext="$libext" |
| 23745 | |
| 23746 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23747 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23748 | |
| 23749 | # Executable file suffix (normally ""). |
| 23750 | exeext="$exeext" |
| 23751 | |
| 23752 | # Additional compiler flags for building library objects. |
| 23753 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
| 23754 | pic_mode=$pic_mode |
| 23755 | |
| 23756 | # What is the maximum length of a command? |
| 23757 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 23758 | |
| 23759 | # Does compiler simultaneously support -c and -o options? |
| 23760 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
| 23761 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23762 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23763 | need_locks=$lt_need_locks |
| 23764 | |
| 23765 | # Do we need the lib prefix for modules? |
| 23766 | need_lib_prefix=$need_lib_prefix |
| 23767 | |
| 23768 | # Do we need a version for libraries? |
| 23769 | need_version=$need_version |
| 23770 | |
| 23771 | # Whether dlopen is supported. |
| 23772 | dlopen_support=$enable_dlopen |
| 23773 | |
| 23774 | # Whether dlopen of programs is supported. |
| 23775 | dlopen_self=$enable_dlopen_self |
| 23776 | |
| 23777 | # Whether dlopen of statically linked programs is supported. |
| 23778 | dlopen_self_static=$enable_dlopen_self_static |
| 23779 | |
| 23780 | # Compiler flag to prevent dynamic linking. |
| 23781 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
| 23782 | |
| 23783 | # Compiler flag to turn off builtin functions. |
| 23784 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
| 23785 | |
| 23786 | # Compiler flag to allow reflexive dlopens. |
| 23787 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
| 23788 | |
| 23789 | # Compiler flag to generate shared objects directly from archives. |
| 23790 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
| 23791 | |
| 23792 | # Compiler flag to generate thread-safe objects. |
| 23793 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
| 23794 | |
| 23795 | # Library versioning type. |
| 23796 | version_type=$version_type |
| 23797 | |
| 23798 | # Format of library name prefix. |
| 23799 | libname_spec=$lt_libname_spec |
| 23800 | |
| 23801 | # List of archive names. First name is the real one, the rest are links. |
| 23802 | # The last name is the one that the linker finds with -lNAME. |
| 23803 | library_names_spec=$lt_library_names_spec |
| 23804 | |
| 23805 | # The coded name of the library, if different from the real name. |
| 23806 | soname_spec=$lt_soname_spec |
| 23807 | |
| 23808 | # Commands used to build and install an old-style archive. |
| 23809 | RANLIB=$lt_RANLIB |
| 23810 | old_archive_cmds=$lt_old_archive_cmds_F77 |
| 23811 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 23812 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 23813 | |
| 23814 | # Create an old-style archive from a shared archive. |
| 23815 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
| 23816 | |
| 23817 | # Create a temporary old-style archive to link instead of a shared archive. |
| 23818 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
| 23819 | |
| 23820 | # Commands used to build and install a shared archive. |
| 23821 | archive_cmds=$lt_archive_cmds_F77 |
| 23822 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
| 23823 | postinstall_cmds=$lt_postinstall_cmds |
| 23824 | postuninstall_cmds=$lt_postuninstall_cmds |
| 23825 | |
| 23826 | # Commands used to build a loadable module (assumed same as above if empty) |
| 23827 | module_cmds=$lt_module_cmds_F77 |
| 23828 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
| 23829 | |
| 23830 | # Commands to strip libraries. |
| 23831 | old_striplib=$lt_old_striplib |
| 23832 | striplib=$lt_striplib |
| 23833 | |
| 23834 | # Dependencies to place before the objects being linked to create a |
| 23835 | # shared library. |
| 23836 | predep_objects=$lt_predep_objects_F77 |
| 23837 | |
| 23838 | # Dependencies to place after the objects being linked to create a |
| 23839 | # shared library. |
| 23840 | postdep_objects=$lt_postdep_objects_F77 |
| 23841 | |
| 23842 | # Dependencies to place before the objects being linked to create a |
| 23843 | # shared library. |
| 23844 | predeps=$lt_predeps_F77 |
| 23845 | |
| 23846 | # Dependencies to place after the objects being linked to create a |
| 23847 | # shared library. |
| 23848 | postdeps=$lt_postdeps_F77 |
| 23849 | |
| 23850 | # The library search path used internally by the compiler when linking |
| 23851 | # a shared library. |
| 23852 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
| 23853 | |
| 23854 | # Method to check whether dependent libraries are shared objects. |
| 23855 | deplibs_check_method=$lt_deplibs_check_method |
| 23856 | |
| 23857 | # Command to use when deplibs_check_method == file_magic. |
| 23858 | file_magic_cmd=$lt_file_magic_cmd |
| 23859 | |
| 23860 | # Flag that allows shared libraries with undefined symbols to be built. |
| 23861 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
| 23862 | |
| 23863 | # Flag that forces no undefined symbols. |
| 23864 | no_undefined_flag=$lt_no_undefined_flag_F77 |
| 23865 | |
| 23866 | # Commands used to finish a libtool library installation in a directory. |
| 23867 | finish_cmds=$lt_finish_cmds |
| 23868 | |
| 23869 | # Same as above, but a single script fragment to be evaled but not shown. |
| 23870 | finish_eval=$lt_finish_eval |
| 23871 | |
| 23872 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 23873 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 23874 | |
| 23875 | # Transform the output of nm in a proper C declaration |
| 23876 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 23877 | |
| 23878 | # Transform the output of nm in a C name address pair |
| 23879 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 23880 | |
| 23881 | # This is the shared library runtime path variable. |
| 23882 | runpath_var=$runpath_var |
| 23883 | |
| 23884 | # This is the shared library path variable. |
| 23885 | shlibpath_var=$shlibpath_var |
| 23886 | |
| 23887 | # Is shlibpath searched before the hard-coded library search path? |
| 23888 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 23889 | |
| 23890 | # How to hardcode a shared library path into an executable. |
| 23891 | hardcode_action=$hardcode_action_F77 |
| 23892 | |
| 23893 | # Whether we should hardcode library paths into libraries. |
| 23894 | hardcode_into_libs=$hardcode_into_libs |
| 23895 | |
| 23896 | # Flag to hardcode \$libdir into a binary during linking. |
| 23897 | # This must work even if \$libdir does not exist. |
| 23898 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
| 23899 | |
| 23900 | # If ld is used when linking, flag to hardcode \$libdir into |
| 23901 | # a binary during linking. This must work even if \$libdir does |
| 23902 | # not exist. |
| 23903 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
| 23904 | |
| 23905 | # Whether we need a single -rpath flag with a separated argument. |
| 23906 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
| 23907 | |
| 23908 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 23909 | # resulting binary. |
| 23910 | hardcode_direct=$hardcode_direct_F77 |
| 23911 | |
| 23912 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 23913 | # resulting binary. |
| 23914 | hardcode_minus_L=$hardcode_minus_L_F77 |
| 23915 | |
| 23916 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 23917 | # the resulting binary. |
| 23918 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
| 23919 | |
| 23920 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 23921 | # and all subsequent libraries and executables linked against it. |
| 23922 | hardcode_automatic=$hardcode_automatic_F77 |
| 23923 | |
| 23924 | # Variables whose values should be saved in libtool wrapper scripts and |
| 23925 | # restored at relink time. |
| 23926 | variables_saved_for_relink="$variables_saved_for_relink" |
| 23927 | |
| 23928 | # Whether libtool must link a program against all its dependency libraries. |
| 23929 | link_all_deplibs=$link_all_deplibs_F77 |
| 23930 | |
| 23931 | # Compile-time system search path for libraries |
| 23932 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 23933 | |
| 23934 | # Run-time system search path for libraries |
| 23935 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 23936 | |
| 23937 | # Fix the shell variable \$srcfile for the compiler. |
| 23938 | fix_srcfile_path="$fix_srcfile_path_F77" |
| 23939 | |
| 23940 | # Set to yes if exported symbols are required. |
| 23941 | always_export_symbols=$always_export_symbols_F77 |
| 23942 | |
| 23943 | # The commands to list exported symbols. |
| 23944 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
| 23945 | |
| 23946 | # The commands to extract the exported symbol list from a shared archive. |
| 23947 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 23948 | |
| 23949 | # Symbols that should not be listed in the preloaded symbols. |
| 23950 | exclude_expsyms=$lt_exclude_expsyms_F77 |
| 23951 | |
| 23952 | # Symbols that must always be exported. |
| 23953 | include_expsyms=$lt_include_expsyms_F77 |
| 23954 | |
| 23955 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 23956 | |
| 23957 | __EOF__ |
| 23958 | |
| 23959 | |
| 23960 | else |
| 23961 | # If there is no Makefile yet, we rely on a make rule to execute |
| 23962 | # `config.status --recheck' to rerun these tests and create the |
| 23963 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23964 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 23965 | if test -f "$ltmain_in"; then |
| 23966 | test -f Makefile && make "$ltmain" |
| 23967 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23968 | fi |
| 23969 | |
| 23970 | |
| 23971 | ac_ext=c |
| 23972 | ac_cpp='$CPP $CPPFLAGS' |
| 23973 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23974 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23975 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 23976 | |
| 23977 | CC="$lt_save_CC" |
| 23978 | |
| 23979 | else |
| 23980 | tagname="" |
| 23981 | fi |
| 23982 | ;; |
| 23983 | |
| 23984 | GCJ) |
| 23985 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23986 | ac_ext=c |
| 23987 | ac_cpp='$CPP $CPPFLAGS' |
| 23988 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23989 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23990 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23991 | |
| 23992 | |
| 23993 | # Source file extension for Java test sources. |
| 23994 | ac_ext=java |
| 23995 | |
| 23996 | # Object file extension for compiled Java test sources. |
| 23997 | objext=o |
| 23998 | objext_GCJ=$objext |
| 23999 | |
| 24000 | # Code to be used in simple compile tests |
| 24001 | lt_simple_compile_test_code="class foo {}\n" |
| 24002 | |
| 24003 | # Code to be used in simple link tests |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24004 | 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] | 24005 | |
| 24006 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 24007 | |
| 24008 | # If no C compiler was specified, use CC. |
| 24009 | LTCC=${LTCC-"$CC"} |
| 24010 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24011 | # If no C compiler flags were specified, use CFLAGS. |
| 24012 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 24013 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24014 | # Allow CC to be a program name with arguments. |
| 24015 | compiler=$CC |
| 24016 | |
| 24017 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24018 | # save warnings/boilerplate of simple test code |
| 24019 | ac_outfile=conftest.$ac_objext |
| 24020 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 24021 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 24022 | _lt_compiler_boilerplate=`cat conftest.err` |
| 24023 | $rm conftest* |
| 24024 | |
| 24025 | ac_outfile=conftest.$ac_objext |
| 24026 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 24027 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 24028 | _lt_linker_boilerplate=`cat conftest.err` |
| 24029 | $rm conftest* |
| 24030 | |
| 24031 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24032 | # Allow CC to be a program name with arguments. |
| 24033 | lt_save_CC="$CC" |
| 24034 | CC=${GCJ-"gcj"} |
| 24035 | compiler=$CC |
| 24036 | compiler_GCJ=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24037 | for cc_temp in $compiler""; do |
| 24038 | case $cc_temp in |
| 24039 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 24040 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 24041 | \-*) ;; |
| 24042 | *) break;; |
| 24043 | esac |
| 24044 | done |
| 24045 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 24046 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24047 | |
| 24048 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
| 24049 | archive_cmds_need_lc_GCJ=no |
| 24050 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24051 | old_archive_cmds_GCJ=$old_archive_cmds |
| 24052 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24053 | |
| 24054 | lt_prog_compiler_no_builtin_flag_GCJ= |
| 24055 | |
| 24056 | if test "$GCC" = yes; then |
| 24057 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
| 24058 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24059 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24060 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 24061 | 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] | 24062 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 24063 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24064 | else |
| 24065 | lt_cv_prog_compiler_rtti_exceptions=no |
| 24066 | ac_outfile=conftest.$ac_objext |
| 24067 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 24068 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 24069 | # Insert the option either (1) after the last *FLAGS variable, or |
| 24070 | # (2) before a word containing "conftest.", or (3) at the end. |
| 24071 | # Note that $ac_compile itself does not contain backslashes and begins |
| 24072 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 24073 | # The option is referenced via a variable to avoid confusing sed. |
| 24074 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24075 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24076 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 24077 | -e 's:$: $lt_compiler_flag:'` |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 24078 | (eval echo "\"\$as_me:24083: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24079 | (eval "$lt_compile" 2>conftest.err) |
| 24080 | ac_status=$? |
| 24081 | cat conftest.err >&5 |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 24082 | echo "$as_me:24087: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24083 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 24084 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24085 | # So say no if there are warnings other than the usual output. |
| 24086 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 24087 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 24088 | 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] | 24089 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 24090 | fi |
| 24091 | fi |
| 24092 | $rm conftest* |
| 24093 | |
| 24094 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24095 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 24096 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24097 | |
| 24098 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 24099 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
| 24100 | else |
| 24101 | : |
| 24102 | fi |
| 24103 | |
| 24104 | fi |
| 24105 | |
| 24106 | lt_prog_compiler_wl_GCJ= |
| 24107 | lt_prog_compiler_pic_GCJ= |
| 24108 | lt_prog_compiler_static_GCJ= |
| 24109 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24110 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 24111 | 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] | 24112 | |
| 24113 | if test "$GCC" = yes; then |
| 24114 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24115 | lt_prog_compiler_static_GCJ='-static' |
| 24116 | |
| 24117 | case $host_os in |
| 24118 | aix*) |
| 24119 | # All AIX code is PIC. |
| 24120 | if test "$host_cpu" = ia64; then |
| 24121 | # AIX 5 now supports IA64 processor |
| 24122 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24123 | fi |
| 24124 | ;; |
| 24125 | |
| 24126 | amigaos*) |
| 24127 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 24128 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 24129 | # like `-m68040'. |
| 24130 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
| 24131 | ;; |
| 24132 | |
| 24133 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 24134 | # PIC is the default for these OSes. |
| 24135 | ;; |
| 24136 | |
| 24137 | mingw* | pw32* | os2*) |
| 24138 | # This hack is so that the source file can tell whether it is being |
| 24139 | # built for inclusion in a dll (and should export symbols for example). |
| 24140 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 24141 | ;; |
| 24142 | |
| 24143 | darwin* | rhapsody*) |
| 24144 | # PIC is the default on this platform |
| 24145 | # Common symbols not allowed in MH_DYLIB files |
| 24146 | lt_prog_compiler_pic_GCJ='-fno-common' |
| 24147 | ;; |
| 24148 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24149 | interix3*) |
| 24150 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 24151 | # Instead, we relocate shared libraries at runtime. |
| 24152 | ;; |
| 24153 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24154 | msdosdjgpp*) |
| 24155 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 24156 | # on systems that don't support them. |
| 24157 | lt_prog_compiler_can_build_shared_GCJ=no |
| 24158 | enable_shared=no |
| 24159 | ;; |
| 24160 | |
| 24161 | sysv4*MP*) |
| 24162 | if test -d /usr/nec; then |
| 24163 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
| 24164 | fi |
| 24165 | ;; |
| 24166 | |
| 24167 | hpux*) |
| 24168 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 24169 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24170 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24171 | hppa*64*|ia64*) |
| 24172 | # +Z the default |
| 24173 | ;; |
| 24174 | *) |
| 24175 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 24176 | ;; |
| 24177 | esac |
| 24178 | ;; |
| 24179 | |
| 24180 | *) |
| 24181 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 24182 | ;; |
| 24183 | esac |
| 24184 | else |
| 24185 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 24186 | case $host_os in |
| 24187 | aix*) |
| 24188 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24189 | if test "$host_cpu" = ia64; then |
| 24190 | # AIX 5 now supports IA64 processor |
| 24191 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24192 | else |
| 24193 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
| 24194 | fi |
| 24195 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24196 | darwin*) |
| 24197 | # PIC is the default on this platform |
| 24198 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24199 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24200 | xlc*) |
| 24201 | lt_prog_compiler_pic_GCJ='-qnocommon' |
| 24202 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24203 | ;; |
| 24204 | esac |
| 24205 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24206 | |
| 24207 | mingw* | pw32* | os2*) |
| 24208 | # This hack is so that the source file can tell whether it is being |
| 24209 | # built for inclusion in a dll (and should export symbols for example). |
| 24210 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 24211 | ;; |
| 24212 | |
| 24213 | hpux9* | hpux10* | hpux11*) |
| 24214 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24215 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 24216 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24217 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24218 | hppa*64*|ia64*) |
| 24219 | # +Z the default |
| 24220 | ;; |
| 24221 | *) |
| 24222 | lt_prog_compiler_pic_GCJ='+Z' |
| 24223 | ;; |
| 24224 | esac |
| 24225 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 24226 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
| 24227 | ;; |
| 24228 | |
| 24229 | irix5* | irix6* | nonstopux*) |
| 24230 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24231 | # PIC (with -KPIC) is the default. |
| 24232 | lt_prog_compiler_static_GCJ='-non_shared' |
| 24233 | ;; |
| 24234 | |
| 24235 | newsos6) |
| 24236 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 24237 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24238 | ;; |
| 24239 | |
| 24240 | linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24241 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24242 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24243 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24244 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 24245 | lt_prog_compiler_static_GCJ='-static' |
| 24246 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24247 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 24248 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 24249 | # which looks to be a dead project) |
| 24250 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24251 | lt_prog_compiler_pic_GCJ='-fpic' |
| 24252 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24253 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24254 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24255 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24256 | # All Alpha code is PIC. |
| 24257 | lt_prog_compiler_static_GCJ='-non_shared' |
| 24258 | ;; |
| 24259 | esac |
| 24260 | ;; |
| 24261 | |
| 24262 | osf3* | osf4* | osf5*) |
| 24263 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24264 | # All OSF/1 code is PIC. |
| 24265 | lt_prog_compiler_static_GCJ='-non_shared' |
| 24266 | ;; |
| 24267 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24268 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24269 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 24270 | lt_prog_compiler_static_GCJ='-Bstatic' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24271 | case $cc_basename in |
| 24272 | f77* | f90* | f95*) |
| 24273 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
| 24274 | *) |
| 24275 | lt_prog_compiler_wl_GCJ='-Wl,';; |
| 24276 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24277 | ;; |
| 24278 | |
| 24279 | sunos4*) |
| 24280 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
| 24281 | lt_prog_compiler_pic_GCJ='-PIC' |
| 24282 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24283 | ;; |
| 24284 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24285 | sysv4 | sysv4.2uw2* | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24286 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24287 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 24288 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24289 | ;; |
| 24290 | |
| 24291 | sysv4*MP*) |
| 24292 | if test -d /usr/nec ;then |
| 24293 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
| 24294 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24295 | fi |
| 24296 | ;; |
| 24297 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24298 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 24299 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24300 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 24301 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24302 | ;; |
| 24303 | |
| 24304 | unicos*) |
| 24305 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 24306 | lt_prog_compiler_can_build_shared_GCJ=no |
| 24307 | ;; |
| 24308 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24309 | uts4*) |
| 24310 | lt_prog_compiler_pic_GCJ='-pic' |
| 24311 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 24312 | ;; |
| 24313 | |
| 24314 | *) |
| 24315 | lt_prog_compiler_can_build_shared_GCJ=no |
| 24316 | ;; |
| 24317 | esac |
| 24318 | fi |
| 24319 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24320 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
| 24321 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24322 | |
| 24323 | # |
| 24324 | # Check to make sure the PIC flag actually works. |
| 24325 | # |
| 24326 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24327 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24328 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
| 24329 | 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] | 24330 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
| 24331 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24332 | else |
| 24333 | lt_prog_compiler_pic_works_GCJ=no |
| 24334 | ac_outfile=conftest.$ac_objext |
| 24335 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 24336 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
| 24337 | # Insert the option either (1) after the last *FLAGS variable, or |
| 24338 | # (2) before a word containing "conftest.", or (3) at the end. |
| 24339 | # Note that $ac_compile itself does not contain backslashes and begins |
| 24340 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 24341 | # The option is referenced via a variable to avoid confusing sed. |
| 24342 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24343 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24344 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 24345 | -e 's:$: $lt_compiler_flag:'` |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 24346 | (eval echo "\"\$as_me:24351: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24347 | (eval "$lt_compile" 2>conftest.err) |
| 24348 | ac_status=$? |
| 24349 | cat conftest.err >&5 |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 24350 | echo "$as_me:24355: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24351 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 24352 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24353 | # So say no if there are warnings other than the usual output. |
| 24354 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 24355 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 24356 | 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] | 24357 | lt_prog_compiler_pic_works_GCJ=yes |
| 24358 | fi |
| 24359 | fi |
| 24360 | $rm conftest* |
| 24361 | |
| 24362 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24363 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
| 24364 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24365 | |
| 24366 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
| 24367 | case $lt_prog_compiler_pic_GCJ in |
| 24368 | "" | " "*) ;; |
| 24369 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
| 24370 | esac |
| 24371 | else |
| 24372 | lt_prog_compiler_pic_GCJ= |
| 24373 | lt_prog_compiler_can_build_shared_GCJ=no |
| 24374 | fi |
| 24375 | |
| 24376 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24377 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24378 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 24379 | *djgpp*) |
| 24380 | lt_prog_compiler_pic_GCJ= |
| 24381 | ;; |
| 24382 | *) |
| 24383 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
| 24384 | ;; |
| 24385 | esac |
| 24386 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24387 | # |
| 24388 | # Check to make sure the static flag actually works. |
| 24389 | # |
| 24390 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
| 24391 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 24392 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 24393 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
| 24394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24395 | else |
| 24396 | lt_prog_compiler_static_works_GCJ=no |
| 24397 | save_LDFLAGS="$LDFLAGS" |
| 24398 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 24399 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 24400 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 24401 | # The linker can only warn and ignore the option if not recognized |
| 24402 | # So say no if there are warnings |
| 24403 | if test -s conftest.err; then |
| 24404 | # Append any errors to the config.log. |
| 24405 | cat conftest.err 1>&5 |
| 24406 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 24407 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 24408 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 24409 | lt_prog_compiler_static_works_GCJ=yes |
| 24410 | fi |
| 24411 | else |
| 24412 | lt_prog_compiler_static_works_GCJ=yes |
| 24413 | fi |
| 24414 | fi |
| 24415 | $rm conftest* |
| 24416 | LDFLAGS="$save_LDFLAGS" |
| 24417 | |
| 24418 | fi |
| 24419 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
| 24420 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } |
| 24421 | |
| 24422 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
| 24423 | : |
| 24424 | else |
| 24425 | lt_prog_compiler_static_GCJ= |
| 24426 | fi |
| 24427 | |
| 24428 | |
| 24429 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 24430 | 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] | 24431 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
| 24432 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 24433 | else |
| 24434 | lt_cv_prog_compiler_c_o_GCJ=no |
| 24435 | $rm -r conftest 2>/dev/null |
| 24436 | mkdir conftest |
| 24437 | cd conftest |
| 24438 | mkdir out |
| 24439 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 24440 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24441 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 24442 | # Insert the option either (1) after the last *FLAGS variable, or |
| 24443 | # (2) before a word containing "conftest.", or (3) at the end. |
| 24444 | # Note that $ac_compile itself does not contain backslashes and begins |
| 24445 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 24446 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24447 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24448 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 24449 | -e 's:$: $lt_compiler_flag:'` |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 24450 | (eval echo "\"\$as_me:24455: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24451 | (eval "$lt_compile" 2>out/conftest.err) |
| 24452 | ac_status=$? |
| 24453 | cat out/conftest.err >&5 |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 24454 | echo "$as_me:24459: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24455 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 24456 | then |
| 24457 | # The compiler can only warn and ignore the option if not recognized |
| 24458 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24459 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 24460 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 24461 | 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] | 24462 | lt_cv_prog_compiler_c_o_GCJ=yes |
| 24463 | fi |
| 24464 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24465 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24466 | $rm conftest* |
| 24467 | # SGI C++ compiler will create directory out/ii_files/ for |
| 24468 | # template instantiation |
| 24469 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 24470 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24471 | cd .. |
| 24472 | rmdir conftest |
| 24473 | $rm conftest* |
| 24474 | |
| 24475 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24476 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
| 24477 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24478 | |
| 24479 | |
| 24480 | hard_links="nottested" |
| 24481 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
| 24482 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24483 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 24484 | 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] | 24485 | hard_links=yes |
| 24486 | $rm conftest* |
| 24487 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 24488 | touch conftest.a |
| 24489 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 24490 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24491 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 24492 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24493 | if test "$hard_links" = no; then |
| 24494 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 24495 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 24496 | need_locks=warn |
| 24497 | fi |
| 24498 | else |
| 24499 | need_locks=no |
| 24500 | fi |
| 24501 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24502 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 24503 | 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] | 24504 | |
| 24505 | runpath_var= |
| 24506 | allow_undefined_flag_GCJ= |
| 24507 | enable_shared_with_static_runtimes_GCJ=no |
| 24508 | archive_cmds_GCJ= |
| 24509 | archive_expsym_cmds_GCJ= |
| 24510 | old_archive_From_new_cmds_GCJ= |
| 24511 | old_archive_from_expsyms_cmds_GCJ= |
| 24512 | export_dynamic_flag_spec_GCJ= |
| 24513 | whole_archive_flag_spec_GCJ= |
| 24514 | thread_safe_flag_spec_GCJ= |
| 24515 | hardcode_libdir_flag_spec_GCJ= |
| 24516 | hardcode_libdir_flag_spec_ld_GCJ= |
| 24517 | hardcode_libdir_separator_GCJ= |
| 24518 | hardcode_direct_GCJ=no |
| 24519 | hardcode_minus_L_GCJ=no |
| 24520 | hardcode_shlibpath_var_GCJ=unsupported |
| 24521 | link_all_deplibs_GCJ=unknown |
| 24522 | hardcode_automatic_GCJ=no |
| 24523 | module_cmds_GCJ= |
| 24524 | module_expsym_cmds_GCJ= |
| 24525 | always_export_symbols_GCJ=no |
| 24526 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 24527 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 24528 | # included in the symbol list |
| 24529 | include_expsyms_GCJ= |
| 24530 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 24531 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 24532 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 24533 | # as well as any symbol that contains `d'. |
| 24534 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
| 24535 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 24536 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 24537 | # the symbol is explicitly referenced. Since portable code cannot |
| 24538 | # rely on this symbol name, it's probably fine to never include it in |
| 24539 | # preloaded symbol tables. |
| 24540 | extract_expsyms_cmds= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24541 | # Just being paranoid about ensuring that cc_basename is set. |
| 24542 | for cc_temp in $compiler""; do |
| 24543 | case $cc_temp in |
| 24544 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 24545 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 24546 | \-*) ;; |
| 24547 | *) break;; |
| 24548 | esac |
| 24549 | done |
| 24550 | 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] | 24551 | |
| 24552 | case $host_os in |
| 24553 | cygwin* | mingw* | pw32*) |
| 24554 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 24555 | # When not using gcc, we currently assume that we are using |
| 24556 | # Microsoft Visual C++. |
| 24557 | if test "$GCC" != yes; then |
| 24558 | with_gnu_ld=no |
| 24559 | fi |
| 24560 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24561 | interix*) |
| 24562 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 24563 | with_gnu_ld=yes |
| 24564 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24565 | openbsd*) |
| 24566 | with_gnu_ld=no |
| 24567 | ;; |
| 24568 | esac |
| 24569 | |
| 24570 | ld_shlibs_GCJ=yes |
| 24571 | if test "$with_gnu_ld" = yes; then |
| 24572 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 24573 | wlarc='${wl}' |
| 24574 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24575 | # Set some defaults for GNU ld with shared library support. These |
| 24576 | # are reset later if shared libraries are not supported. Putting them |
| 24577 | # here allows them to be overridden if necessary. |
| 24578 | runpath_var=LD_RUN_PATH |
| 24579 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
| 24580 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
| 24581 | # ancient GNU ld didn't support --whole-archive et. al. |
| 24582 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 24583 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 24584 | else |
| 24585 | whole_archive_flag_spec_GCJ= |
| 24586 | fi |
| 24587 | supports_anon_versioning=no |
| 24588 | case `$LD -v 2>/dev/null` in |
| 24589 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 24590 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 24591 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 24592 | *\ 2.11.*) ;; # other 2.11 versions |
| 24593 | *) supports_anon_versioning=yes ;; |
| 24594 | esac |
| 24595 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24596 | # See if GNU ld supports shared libraries. |
| 24597 | case $host_os in |
| 24598 | aix3* | aix4* | aix5*) |
| 24599 | # On AIX/PPC, the GNU linker is very broken |
| 24600 | if test "$host_cpu" != ia64; then |
| 24601 | ld_shlibs_GCJ=no |
| 24602 | cat <<EOF 1>&2 |
| 24603 | |
| 24604 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 24605 | *** to be unable to reliably create shared libraries on AIX. |
| 24606 | *** Therefore, libtool is disabling shared libraries support. If you |
| 24607 | *** really care for shared libraries, you may want to modify your PATH |
| 24608 | *** so that a non-GNU linker is found, and then restart. |
| 24609 | |
| 24610 | EOF |
| 24611 | fi |
| 24612 | ;; |
| 24613 | |
| 24614 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24615 | 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] | 24616 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24617 | hardcode_minus_L_GCJ=yes |
| 24618 | |
| 24619 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 24620 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 24621 | # to version 4, is to share data among multiple programs linked |
| 24622 | # with the same dynamic library. Since this doesn't match the |
| 24623 | # behavior of shared libraries on other platforms, we can't use |
| 24624 | # them. |
| 24625 | ld_shlibs_GCJ=no |
| 24626 | ;; |
| 24627 | |
| 24628 | beos*) |
| 24629 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24630 | allow_undefined_flag_GCJ=unsupported |
| 24631 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 24632 | # support --undefined. This deserves some investigation. FIXME |
| 24633 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24634 | else |
| 24635 | ld_shlibs_GCJ=no |
| 24636 | fi |
| 24637 | ;; |
| 24638 | |
| 24639 | cygwin* | mingw* | pw32*) |
| 24640 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
| 24641 | # as there is no search path for DLLs. |
| 24642 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24643 | allow_undefined_flag_GCJ=unsupported |
| 24644 | always_export_symbols_GCJ=no |
| 24645 | enable_shared_with_static_runtimes_GCJ=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24646 | 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] | 24647 | |
| 24648 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24649 | 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] | 24650 | # If the export-symbols file already is a .def file (1st line |
| 24651 | # is EXPORTS), use it as is; otherwise, prepend... |
| 24652 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 24653 | cp $export_symbols $output_objdir/$soname.def; |
| 24654 | else |
| 24655 | echo EXPORTS > $output_objdir/$soname.def; |
| 24656 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24657 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24658 | $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] | 24659 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24660 | ld_shlibs_GCJ=no |
| 24661 | fi |
| 24662 | ;; |
| 24663 | |
| 24664 | interix3*) |
| 24665 | hardcode_direct_GCJ=no |
| 24666 | hardcode_shlibpath_var_GCJ=no |
| 24667 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 24668 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 24669 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 24670 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 24671 | # default) and relocated if they conflict, which is a slow very memory |
| 24672 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 24673 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 24674 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 24675 | 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' |
| 24676 | 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' |
| 24677 | ;; |
| 24678 | |
| 24679 | linux*) |
| 24680 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24681 | tmp_addflag= |
| 24682 | case $cc_basename,$host_cpu in |
| 24683 | pgcc*) # Portland Group C compiler |
| 24684 | 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' |
| 24685 | tmp_addflag=' $pic_flag' |
| 24686 | ;; |
| 24687 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 24688 | 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' |
| 24689 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 24690 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 24691 | tmp_addflag=' -i_dynamic' ;; |
| 24692 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 24693 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 24694 | ifc* | ifort*) # Intel Fortran compiler |
| 24695 | tmp_addflag=' -nofor_main' ;; |
| 24696 | esac |
| 24697 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24698 | |
| 24699 | if test $supports_anon_versioning = yes; then |
| 24700 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 24701 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 24702 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 24703 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 24704 | fi |
| 24705 | else |
| 24706 | ld_shlibs_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24707 | fi |
| 24708 | ;; |
| 24709 | |
| 24710 | netbsd*) |
| 24711 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 24712 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 24713 | wlarc= |
| 24714 | else |
| 24715 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24716 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 24717 | fi |
| 24718 | ;; |
| 24719 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24720 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24721 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 24722 | ld_shlibs_GCJ=no |
| 24723 | cat <<EOF 1>&2 |
| 24724 | |
| 24725 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 24726 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 24727 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 24728 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 24729 | *** your PATH or compiler configuration so that the native linker is |
| 24730 | *** used, and then restart. |
| 24731 | |
| 24732 | EOF |
| 24733 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24734 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24735 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 24736 | else |
| 24737 | ld_shlibs_GCJ=no |
| 24738 | fi |
| 24739 | ;; |
| 24740 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24741 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 24742 | case `$LD -v 2>&1` in |
| 24743 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 24744 | ld_shlibs_GCJ=no |
| 24745 | cat <<_LT_EOF 1>&2 |
| 24746 | |
| 24747 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 24748 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 24749 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 24750 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 24751 | *** your PATH or compiler configuration so that the native linker is |
| 24752 | *** used, and then restart. |
| 24753 | |
| 24754 | _LT_EOF |
| 24755 | ;; |
| 24756 | *) |
| 24757 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24758 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 24759 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 24760 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 24761 | else |
| 24762 | ld_shlibs_GCJ=no |
| 24763 | fi |
| 24764 | ;; |
| 24765 | esac |
| 24766 | ;; |
| 24767 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24768 | sunos4*) |
| 24769 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 24770 | wlarc= |
| 24771 | hardcode_direct_GCJ=yes |
| 24772 | hardcode_shlibpath_var_GCJ=no |
| 24773 | ;; |
| 24774 | |
| 24775 | *) |
| 24776 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24777 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24778 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 24779 | else |
| 24780 | ld_shlibs_GCJ=no |
| 24781 | fi |
| 24782 | ;; |
| 24783 | esac |
| 24784 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24785 | if test "$ld_shlibs_GCJ" = no; then |
| 24786 | runpath_var= |
| 24787 | hardcode_libdir_flag_spec_GCJ= |
| 24788 | export_dynamic_flag_spec_GCJ= |
| 24789 | whole_archive_flag_spec_GCJ= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24790 | fi |
| 24791 | else |
| 24792 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 24793 | case $host_os in |
| 24794 | aix3*) |
| 24795 | allow_undefined_flag_GCJ=unsupported |
| 24796 | always_export_symbols_GCJ=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24797 | 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] | 24798 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 24799 | # are no directories specified by -L. |
| 24800 | hardcode_minus_L_GCJ=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24801 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24802 | # Neither direct hardcoding nor static linking is supported with a |
| 24803 | # broken collect2. |
| 24804 | hardcode_direct_GCJ=unsupported |
| 24805 | fi |
| 24806 | ;; |
| 24807 | |
| 24808 | aix4* | aix5*) |
| 24809 | if test "$host_cpu" = ia64; then |
| 24810 | # On IA64, the linker does run time linking by default, so we don't |
| 24811 | # have to do anything special. |
| 24812 | aix_use_runtimelinking=no |
| 24813 | exp_sym_flag='-Bexport' |
| 24814 | no_entry_flag="" |
| 24815 | else |
| 24816 | # If we're using GNU nm, then we don't want the "-C" option. |
| 24817 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 24818 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 24819 | 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' |
| 24820 | else |
| 24821 | 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' |
| 24822 | fi |
| 24823 | aix_use_runtimelinking=no |
| 24824 | |
| 24825 | # Test if we are trying to use run time linking or normal |
| 24826 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 24827 | # need to do runtime linking. |
| 24828 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 24829 | for ld_flag in $LDFLAGS; do |
| 24830 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 24831 | aix_use_runtimelinking=yes |
| 24832 | break |
| 24833 | fi |
| 24834 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24835 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24836 | esac |
| 24837 | |
| 24838 | exp_sym_flag='-bexport' |
| 24839 | no_entry_flag='-bnoentry' |
| 24840 | fi |
| 24841 | |
| 24842 | # When large executables or shared objects are built, AIX ld can |
| 24843 | # have problems creating the table of contents. If linking a library |
| 24844 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 24845 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 24846 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 24847 | |
| 24848 | archive_cmds_GCJ='' |
| 24849 | hardcode_direct_GCJ=yes |
| 24850 | hardcode_libdir_separator_GCJ=':' |
| 24851 | link_all_deplibs_GCJ=yes |
| 24852 | |
| 24853 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24854 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24855 | # We only want to do this on AIX 4.2 and lower, the check |
| 24856 | # below for broken collect2 doesn't work under 4.3+ |
| 24857 | collect2name=`${CC} -print-prog-name=collect2` |
| 24858 | if test -f "$collect2name" && \ |
| 24859 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 24860 | then |
| 24861 | # We have reworked collect2 |
| 24862 | hardcode_direct_GCJ=yes |
| 24863 | else |
| 24864 | # We have old collect2 |
| 24865 | hardcode_direct_GCJ=unsupported |
| 24866 | # It fails to find uninstalled libraries when the uninstalled |
| 24867 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 24868 | # to unsupported forces relinking |
| 24869 | hardcode_minus_L_GCJ=yes |
| 24870 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24871 | hardcode_libdir_separator_GCJ= |
| 24872 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24873 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24874 | esac |
| 24875 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24876 | if test "$aix_use_runtimelinking" = yes; then |
| 24877 | shared_flag="$shared_flag "'${wl}-G' |
| 24878 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24879 | else |
| 24880 | # not using gcc |
| 24881 | if test "$host_cpu" = ia64; then |
| 24882 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 24883 | # chokes on -Wl,-G. The following line is correct: |
| 24884 | shared_flag='-G' |
| 24885 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24886 | if test "$aix_use_runtimelinking" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24887 | shared_flag='${wl}-G' |
| 24888 | else |
| 24889 | shared_flag='${wl}-bM:SRE' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24890 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24891 | fi |
| 24892 | fi |
| 24893 | |
| 24894 | # It seems that -bexpall does not export symbols beginning with |
| 24895 | # underscore (_), so it is better to generate a list of symbols to export. |
| 24896 | always_export_symbols_GCJ=yes |
| 24897 | if test "$aix_use_runtimelinking" = yes; then |
| 24898 | # Warning - without using the other runtime loading flags (-brtl), |
| 24899 | # -berok will link without error, but may produce a broken library. |
| 24900 | allow_undefined_flag_GCJ='-berok' |
| 24901 | # Determine the default libpath from the value encoded in an empty executable. |
| 24902 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24903 | /* confdefs.h. */ |
| 24904 | _ACEOF |
| 24905 | cat confdefs.h >>conftest.$ac_ext |
| 24906 | cat >>conftest.$ac_ext <<_ACEOF |
| 24907 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24908 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24909 | int |
| 24910 | main () |
| 24911 | { |
| 24912 | |
| 24913 | ; |
| 24914 | return 0; |
| 24915 | } |
| 24916 | _ACEOF |
| 24917 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24918 | if { (ac_try="$ac_link" |
| 24919 | case "(($ac_try" in |
| 24920 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24921 | *) ac_try_echo=$ac_try;; |
| 24922 | esac |
| 24923 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24924 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24925 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24926 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24927 | rm -f conftest.er1 |
| 24928 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 24930 | (exit $ac_status); } && |
| 24931 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 24932 | { (case "(($ac_try" in |
| 24933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24934 | *) ac_try_echo=$ac_try;; |
| 24935 | esac |
| 24936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24937 | (eval "$ac_try") 2>&5 |
| 24938 | ac_status=$? |
| 24939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24940 | (exit $ac_status); }; } && |
| 24941 | { ac_try='test -s conftest$ac_exeext' |
| 24942 | { (case "(($ac_try" in |
| 24943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24944 | *) ac_try_echo=$ac_try;; |
| 24945 | esac |
| 24946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24947 | (eval "$ac_try") 2>&5 |
| 24948 | ac_status=$? |
| 24949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24950 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24951 | |
| 24952 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 24953 | }'` |
| 24954 | # Check for a 64-bit object if we didn't find anything. |
| 24955 | 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; } |
| 24956 | }'`; fi |
| 24957 | else |
| 24958 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24959 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24960 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24961 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24962 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24963 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 24964 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24965 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24966 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 24967 | |
| 24968 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24969 | 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] | 24970 | else |
| 24971 | if test "$host_cpu" = ia64; then |
| 24972 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
| 24973 | allow_undefined_flag_GCJ="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24974 | 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] | 24975 | else |
| 24976 | # Determine the default libpath from the value encoded in an empty executable. |
| 24977 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24978 | /* confdefs.h. */ |
| 24979 | _ACEOF |
| 24980 | cat confdefs.h >>conftest.$ac_ext |
| 24981 | cat >>conftest.$ac_ext <<_ACEOF |
| 24982 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24983 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24984 | int |
| 24985 | main () |
| 24986 | { |
| 24987 | |
| 24988 | ; |
| 24989 | return 0; |
| 24990 | } |
| 24991 | _ACEOF |
| 24992 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24993 | if { (ac_try="$ac_link" |
| 24994 | case "(($ac_try" in |
| 24995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24996 | *) ac_try_echo=$ac_try;; |
| 24997 | esac |
| 24998 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24999 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25000 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25001 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25002 | rm -f conftest.er1 |
| 25003 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 25005 | (exit $ac_status); } && |
| 25006 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 25007 | { (case "(($ac_try" in |
| 25008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25009 | *) ac_try_echo=$ac_try;; |
| 25010 | esac |
| 25011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 25012 | (eval "$ac_try") 2>&5 |
| 25013 | ac_status=$? |
| 25014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25015 | (exit $ac_status); }; } && |
| 25016 | { ac_try='test -s conftest$ac_exeext' |
| 25017 | { (case "(($ac_try" in |
| 25018 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25019 | *) ac_try_echo=$ac_try;; |
| 25020 | esac |
| 25021 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 25022 | (eval "$ac_try") 2>&5 |
| 25023 | ac_status=$? |
| 25024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25025 | (exit $ac_status); }; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25026 | |
| 25027 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 25028 | }'` |
| 25029 | # Check for a 64-bit object if we didn't find anything. |
| 25030 | 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; } |
| 25031 | }'`; fi |
| 25032 | else |
| 25033 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25034 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25035 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25036 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25037 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25038 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 25039 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25040 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25041 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 25042 | |
| 25043 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 25044 | # Warning - without using the other run time loading flags, |
| 25045 | # -berok will link without error, but may produce a broken library. |
| 25046 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
| 25047 | allow_undefined_flag_GCJ=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25048 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25049 | whole_archive_flag_spec_GCJ='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25050 | archive_cmds_need_lc_GCJ=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25051 | # This is similar to how AIX traditionally builds its shared libraries. |
| 25052 | 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] | 25053 | fi |
| 25054 | fi |
| 25055 | ;; |
| 25056 | |
| 25057 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25058 | 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] | 25059 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 25060 | hardcode_minus_L_GCJ=yes |
| 25061 | # see comment about different semantics on the GNU ld section |
| 25062 | ld_shlibs_GCJ=no |
| 25063 | ;; |
| 25064 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25065 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25066 | export_dynamic_flag_spec_GCJ=-rdynamic |
| 25067 | ;; |
| 25068 | |
| 25069 | cygwin* | mingw* | pw32*) |
| 25070 | # When not using gcc, we currently assume that we are using |
| 25071 | # Microsoft Visual C++. |
| 25072 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 25073 | # no search path for DLLs. |
| 25074 | hardcode_libdir_flag_spec_GCJ=' ' |
| 25075 | allow_undefined_flag_GCJ=unsupported |
| 25076 | # Tell ltmain to make .lib files, not .a files. |
| 25077 | libext=lib |
| 25078 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25079 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25080 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25081 | 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] | 25082 | # The linker will automatically build a .lib file if we build a DLL. |
| 25083 | old_archive_From_new_cmds_GCJ='true' |
| 25084 | # FIXME: Should let the user specify the lib program. |
| 25085 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25086 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25087 | enable_shared_with_static_runtimes_GCJ=yes |
| 25088 | ;; |
| 25089 | |
| 25090 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25091 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25092 | rhapsody* | darwin1.[012]) |
| 25093 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
| 25094 | ;; |
| 25095 | *) # Darwin 1.3 on |
| 25096 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 25097 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 25098 | else |
| 25099 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 25100 | 10.[012]) |
| 25101 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 25102 | ;; |
| 25103 | 10.*) |
| 25104 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
| 25105 | ;; |
| 25106 | esac |
| 25107 | fi |
| 25108 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25109 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25110 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25111 | hardcode_direct_GCJ=no |
| 25112 | hardcode_automatic_GCJ=yes |
| 25113 | hardcode_shlibpath_var_GCJ=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25114 | whole_archive_flag_spec_GCJ='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25115 | link_all_deplibs_GCJ=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25116 | if test "$GCC" = yes ; then |
| 25117 | output_verbose_link_cmd='echo' |
| 25118 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 25119 | 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] | 25120 | # 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] | 25121 | 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}' |
| 25122 | 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] | 25123 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25124 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25125 | xlc*) |
| 25126 | output_verbose_link_cmd='echo' |
| 25127 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 25128 | 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] | 25129 | # 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] | 25130 | 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}' |
| 25131 | 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] | 25132 | ;; |
| 25133 | *) |
| 25134 | ld_shlibs_GCJ=no |
| 25135 | ;; |
| 25136 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25137 | fi |
| 25138 | ;; |
| 25139 | |
| 25140 | dgux*) |
| 25141 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25142 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 25143 | hardcode_shlibpath_var_GCJ=no |
| 25144 | ;; |
| 25145 | |
| 25146 | freebsd1*) |
| 25147 | ld_shlibs_GCJ=no |
| 25148 | ;; |
| 25149 | |
| 25150 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 25151 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 25152 | # does not break anything, and helps significantly (at the cost of a little |
| 25153 | # extra space). |
| 25154 | freebsd2.2*) |
| 25155 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 25156 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 25157 | hardcode_direct_GCJ=yes |
| 25158 | hardcode_shlibpath_var_GCJ=no |
| 25159 | ;; |
| 25160 | |
| 25161 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 25162 | freebsd2*) |
| 25163 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 25164 | hardcode_direct_GCJ=yes |
| 25165 | hardcode_minus_L_GCJ=yes |
| 25166 | hardcode_shlibpath_var_GCJ=no |
| 25167 | ;; |
| 25168 | |
| 25169 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25170 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25171 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 25172 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 25173 | hardcode_direct_GCJ=yes |
| 25174 | hardcode_shlibpath_var_GCJ=no |
| 25175 | ;; |
| 25176 | |
| 25177 | hpux9*) |
| 25178 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25179 | 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] | 25180 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25181 | 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] | 25182 | fi |
| 25183 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 25184 | hardcode_libdir_separator_GCJ=: |
| 25185 | hardcode_direct_GCJ=yes |
| 25186 | |
| 25187 | # hardcode_minus_L: Not really in the search PATH, |
| 25188 | # but as the default location of the library. |
| 25189 | hardcode_minus_L_GCJ=yes |
| 25190 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 25191 | ;; |
| 25192 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25193 | hpux10*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25194 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25195 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 25196 | else |
| 25197 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 25198 | fi |
| 25199 | if test "$with_gnu_ld" = no; then |
| 25200 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 25201 | hardcode_libdir_separator_GCJ=: |
| 25202 | |
| 25203 | hardcode_direct_GCJ=yes |
| 25204 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 25205 | |
| 25206 | # hardcode_minus_L: Not really in the search PATH, |
| 25207 | # but as the default location of the library. |
| 25208 | hardcode_minus_L_GCJ=yes |
| 25209 | fi |
| 25210 | ;; |
| 25211 | |
| 25212 | hpux11*) |
| 25213 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 25214 | case $host_cpu in |
| 25215 | hppa*64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25216 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25217 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25218 | ia64*) |
| 25219 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 25220 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25221 | *) |
| 25222 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 25223 | ;; |
| 25224 | esac |
| 25225 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25226 | case $host_cpu in |
| 25227 | hppa*64*) |
| 25228 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25229 | ;; |
| 25230 | ia64*) |
| 25231 | 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] | 25232 | ;; |
| 25233 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25234 | 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] | 25235 | ;; |
| 25236 | esac |
| 25237 | fi |
| 25238 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25239 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 25240 | hardcode_libdir_separator_GCJ=: |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25241 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25242 | case $host_cpu in |
| 25243 | hppa*64*|ia64*) |
| 25244 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
| 25245 | hardcode_direct_GCJ=no |
| 25246 | hardcode_shlibpath_var_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25247 | ;; |
| 25248 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25249 | hardcode_direct_GCJ=yes |
| 25250 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 25251 | |
| 25252 | # hardcode_minus_L: Not really in the search PATH, |
| 25253 | # but as the default location of the library. |
| 25254 | hardcode_minus_L_GCJ=yes |
| 25255 | ;; |
| 25256 | esac |
| 25257 | fi |
| 25258 | ;; |
| 25259 | |
| 25260 | irix5* | irix6* | nonstopux*) |
| 25261 | if test "$GCC" = yes; then |
| 25262 | 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' |
| 25263 | else |
| 25264 | 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' |
| 25265 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
| 25266 | fi |
| 25267 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 25268 | hardcode_libdir_separator_GCJ=: |
| 25269 | link_all_deplibs_GCJ=yes |
| 25270 | ;; |
| 25271 | |
| 25272 | netbsd*) |
| 25273 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 25274 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 25275 | else |
| 25276 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 25277 | fi |
| 25278 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 25279 | hardcode_direct_GCJ=yes |
| 25280 | hardcode_shlibpath_var_GCJ=no |
| 25281 | ;; |
| 25282 | |
| 25283 | newsos6) |
| 25284 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25285 | hardcode_direct_GCJ=yes |
| 25286 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 25287 | hardcode_libdir_separator_GCJ=: |
| 25288 | hardcode_shlibpath_var_GCJ=no |
| 25289 | ;; |
| 25290 | |
| 25291 | openbsd*) |
| 25292 | hardcode_direct_GCJ=yes |
| 25293 | hardcode_shlibpath_var_GCJ=no |
| 25294 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 25295 | 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] | 25296 | 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] | 25297 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 25298 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 25299 | else |
| 25300 | case $host_os in |
| 25301 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 25302 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 25303 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 25304 | ;; |
| 25305 | *) |
| 25306 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 25307 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 25308 | ;; |
| 25309 | esac |
| 25310 | fi |
| 25311 | ;; |
| 25312 | |
| 25313 | os2*) |
| 25314 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 25315 | hardcode_minus_L_GCJ=yes |
| 25316 | allow_undefined_flag_GCJ=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25317 | 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] | 25318 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 25319 | ;; |
| 25320 | |
| 25321 | osf3*) |
| 25322 | if test "$GCC" = yes; then |
| 25323 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 25324 | 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' |
| 25325 | else |
| 25326 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 25327 | 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' |
| 25328 | fi |
| 25329 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 25330 | hardcode_libdir_separator_GCJ=: |
| 25331 | ;; |
| 25332 | |
| 25333 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 25334 | if test "$GCC" = yes; then |
| 25335 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 25336 | 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' |
| 25337 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 25338 | else |
| 25339 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 25340 | 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] | 25341 | 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] | 25342 | $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] | 25343 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25344 | # Both c and cxx compiler support -rpath directly |
| 25345 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
| 25346 | fi |
| 25347 | hardcode_libdir_separator_GCJ=: |
| 25348 | ;; |
| 25349 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25350 | solaris*) |
| 25351 | no_undefined_flag_GCJ=' -z text' |
| 25352 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25353 | wlarc='${wl}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25354 | 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] | 25355 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 25356 | $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] | 25357 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25358 | wlarc='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25359 | 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] | 25360 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 25361 | $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] | 25362 | fi |
| 25363 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 25364 | hardcode_shlibpath_var_GCJ=no |
| 25365 | case $host_os in |
| 25366 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25367 | *) |
| 25368 | # The compiler driver will combine linker options so we |
| 25369 | # cannot just pass the convience library names through |
| 25370 | # without $wl, iff we do not link with $LD. |
| 25371 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 25372 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 25373 | case $wlarc in |
| 25374 | '') |
| 25375 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
| 25376 | *) |
| 25377 | 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' ;; |
| 25378 | esac ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25379 | esac |
| 25380 | link_all_deplibs_GCJ=yes |
| 25381 | ;; |
| 25382 | |
| 25383 | sunos4*) |
| 25384 | if test "x$host_vendor" = xsequent; then |
| 25385 | # Use $CC to link under sequent, because it throws in some extra .o |
| 25386 | # files that make .init and .fini sections work. |
| 25387 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25388 | else |
| 25389 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 25390 | fi |
| 25391 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 25392 | hardcode_direct_GCJ=yes |
| 25393 | hardcode_minus_L_GCJ=yes |
| 25394 | hardcode_shlibpath_var_GCJ=no |
| 25395 | ;; |
| 25396 | |
| 25397 | sysv4) |
| 25398 | case $host_vendor in |
| 25399 | sni) |
| 25400 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25401 | hardcode_direct_GCJ=yes # is this really true??? |
| 25402 | ;; |
| 25403 | siemens) |
| 25404 | ## LD is ld it makes a PLAMLIB |
| 25405 | ## CC just makes a GrossModule. |
| 25406 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 25407 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
| 25408 | hardcode_direct_GCJ=no |
| 25409 | ;; |
| 25410 | motorola) |
| 25411 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25412 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
| 25413 | ;; |
| 25414 | esac |
| 25415 | runpath_var='LD_RUN_PATH' |
| 25416 | hardcode_shlibpath_var_GCJ=no |
| 25417 | ;; |
| 25418 | |
| 25419 | sysv4.3*) |
| 25420 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25421 | hardcode_shlibpath_var_GCJ=no |
| 25422 | export_dynamic_flag_spec_GCJ='-Bexport' |
| 25423 | ;; |
| 25424 | |
| 25425 | sysv4*MP*) |
| 25426 | if test -d /usr/nec; then |
| 25427 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25428 | hardcode_shlibpath_var_GCJ=no |
| 25429 | runpath_var=LD_RUN_PATH |
| 25430 | hardcode_runpath_var=yes |
| 25431 | ld_shlibs_GCJ=yes |
| 25432 | fi |
| 25433 | ;; |
| 25434 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25435 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 25436 | no_undefined_flag_GCJ='${wl}-z,text' |
| 25437 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25438 | hardcode_shlibpath_var_GCJ=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25439 | runpath_var='LD_RUN_PATH' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25440 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25441 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25442 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25443 | 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] | 25444 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25445 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25446 | 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] | 25447 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25448 | ;; |
| 25449 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25450 | sysv5* | sco3.2v5* | sco5v6*) |
| 25451 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 25452 | # link with -lc, and that would cause any symbols used from libc to |
| 25453 | # always be unresolved, which means just about no library would |
| 25454 | # ever link correctly. If we're not using GNU ld we use -z text |
| 25455 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 25456 | # as -z defs. |
| 25457 | no_undefined_flag_GCJ='${wl}-z,text' |
| 25458 | allow_undefined_flag_GCJ='${wl}-z,nodefs' |
| 25459 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25460 | hardcode_shlibpath_var_GCJ=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25461 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 25462 | hardcode_libdir_separator_GCJ=':' |
| 25463 | link_all_deplibs_GCJ=yes |
| 25464 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25465 | runpath_var='LD_RUN_PATH' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25466 | |
| 25467 | if test "$GCC" = yes; then |
| 25468 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25469 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25470 | else |
| 25471 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25472 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25473 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25474 | ;; |
| 25475 | |
| 25476 | uts4*) |
| 25477 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25478 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 25479 | hardcode_shlibpath_var_GCJ=no |
| 25480 | ;; |
| 25481 | |
| 25482 | *) |
| 25483 | ld_shlibs_GCJ=no |
| 25484 | ;; |
| 25485 | esac |
| 25486 | fi |
| 25487 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25488 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
| 25489 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25490 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
| 25491 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25492 | # |
| 25493 | # Do we need to explicitly link libc? |
| 25494 | # |
| 25495 | case "x$archive_cmds_need_lc_GCJ" in |
| 25496 | x|xyes) |
| 25497 | # Assume -lc should be added |
| 25498 | archive_cmds_need_lc_GCJ=yes |
| 25499 | |
| 25500 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 25501 | case $archive_cmds_GCJ in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25502 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25503 | # FIXME: we may have to deal with multi-command sequences. |
| 25504 | ;; |
| 25505 | '$CC '*) |
| 25506 | # Test whether the compiler implicitly links with -lc since on some |
| 25507 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 25508 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25509 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 25510 | 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] | 25511 | $rm conftest* |
| 25512 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 25513 | |
| 25514 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 25515 | (eval $ac_compile) 2>&5 |
| 25516 | ac_status=$? |
| 25517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25518 | (exit $ac_status); } 2>conftest.err; then |
| 25519 | soname=conftest |
| 25520 | lib=conftest |
| 25521 | libobjs=conftest.$ac_objext |
| 25522 | deplibs= |
| 25523 | wl=$lt_prog_compiler_wl_GCJ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25524 | pic_flag=$lt_prog_compiler_pic_GCJ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25525 | compiler_flags=-v |
| 25526 | linker_flags=-v |
| 25527 | verstring= |
| 25528 | output_objdir=. |
| 25529 | libname=conftest |
| 25530 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
| 25531 | allow_undefined_flag_GCJ= |
| 25532 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 25533 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 25534 | ac_status=$? |
| 25535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25536 | (exit $ac_status); } |
| 25537 | then |
| 25538 | archive_cmds_need_lc_GCJ=no |
| 25539 | else |
| 25540 | archive_cmds_need_lc_GCJ=yes |
| 25541 | fi |
| 25542 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
| 25543 | else |
| 25544 | cat conftest.err 1>&5 |
| 25545 | fi |
| 25546 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25547 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
| 25548 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25549 | ;; |
| 25550 | esac |
| 25551 | fi |
| 25552 | ;; |
| 25553 | esac |
| 25554 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25555 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 25556 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25557 | library_names_spec= |
| 25558 | libname_spec='lib$name' |
| 25559 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25560 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25561 | postinstall_cmds= |
| 25562 | postuninstall_cmds= |
| 25563 | finish_cmds= |
| 25564 | finish_eval= |
| 25565 | shlibpath_var= |
| 25566 | shlibpath_overrides_runpath=unknown |
| 25567 | version_type=none |
| 25568 | dynamic_linker="$host_os ld.so" |
| 25569 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 25570 | if test "$GCC" = yes; then |
| 25571 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 25572 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 25573 | # if the path contains ";" then we assume it to be the separator |
| 25574 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 25575 | # assumed that no part of a normal pathname contains ";" but that should |
| 25576 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 25577 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 25578 | else |
| 25579 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 25580 | fi |
| 25581 | else |
| 25582 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 25583 | fi |
| 25584 | need_lib_prefix=unknown |
| 25585 | hardcode_into_libs=no |
| 25586 | |
| 25587 | # when you set need_version to no, make sure it does not cause -set_version |
| 25588 | # flags to be left without arguments |
| 25589 | need_version=unknown |
| 25590 | |
| 25591 | case $host_os in |
| 25592 | aix3*) |
| 25593 | version_type=linux |
| 25594 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 25595 | shlibpath_var=LIBPATH |
| 25596 | |
| 25597 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 25598 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25599 | ;; |
| 25600 | |
| 25601 | aix4* | aix5*) |
| 25602 | version_type=linux |
| 25603 | need_lib_prefix=no |
| 25604 | need_version=no |
| 25605 | hardcode_into_libs=yes |
| 25606 | if test "$host_cpu" = ia64; then |
| 25607 | # AIX 5 supports IA64 |
| 25608 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 25609 | shlibpath_var=LD_LIBRARY_PATH |
| 25610 | else |
| 25611 | # With GCC up to 2.95.x, collect2 would create an import file |
| 25612 | # for dependence libraries. The import file would start with |
| 25613 | # the line `#! .'. This would cause the generated library to |
| 25614 | # depend on `.', always an invalid library. This was fixed in |
| 25615 | # development snapshots of GCC prior to 3.0. |
| 25616 | case $host_os in |
| 25617 | aix4 | aix4.[01] | aix4.[01].*) |
| 25618 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 25619 | echo ' yes ' |
| 25620 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 25621 | : |
| 25622 | else |
| 25623 | can_build_shared=no |
| 25624 | fi |
| 25625 | ;; |
| 25626 | esac |
| 25627 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 25628 | # soname into executable. Probably we can add versioning support to |
| 25629 | # collect2, so additional links can be useful in future. |
| 25630 | if test "$aix_use_runtimelinking" = yes; then |
| 25631 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 25632 | # instead of lib<name>.a to let people know that these are not |
| 25633 | # typical AIX shared libraries. |
| 25634 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25635 | else |
| 25636 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 25637 | # and later when we are not doing run time linking. |
| 25638 | library_names_spec='${libname}${release}.a $libname.a' |
| 25639 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25640 | fi |
| 25641 | shlibpath_var=LIBPATH |
| 25642 | fi |
| 25643 | ;; |
| 25644 | |
| 25645 | amigaos*) |
| 25646 | library_names_spec='$libname.ixlibrary $libname.a' |
| 25647 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25648 | 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] | 25649 | ;; |
| 25650 | |
| 25651 | beos*) |
| 25652 | library_names_spec='${libname}${shared_ext}' |
| 25653 | dynamic_linker="$host_os ld.so" |
| 25654 | shlibpath_var=LIBRARY_PATH |
| 25655 | ;; |
| 25656 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25657 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25658 | version_type=linux |
| 25659 | need_version=no |
| 25660 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25661 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25662 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 25663 | shlibpath_var=LD_LIBRARY_PATH |
| 25664 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 25665 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 25666 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 25667 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 25668 | # libtool to hard-code these into programs |
| 25669 | ;; |
| 25670 | |
| 25671 | cygwin* | mingw* | pw32*) |
| 25672 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25673 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25674 | need_version=no |
| 25675 | need_lib_prefix=no |
| 25676 | |
| 25677 | case $GCC,$host_os in |
| 25678 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 25679 | library_names_spec='$libname.dll.a' |
| 25680 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25681 | postinstall_cmds='base_file=`basename \${file}`~ |
| 25682 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 25683 | dldir=$destdir/`dirname \$dlpath`~ |
| 25684 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25685 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 25686 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25687 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 25688 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25689 | $rm \$dlpath' |
| 25690 | shlibpath_overrides_runpath=yes |
| 25691 | |
| 25692 | case $host_os in |
| 25693 | cygwin*) |
| 25694 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 25695 | 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] | 25696 | 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] | 25697 | ;; |
| 25698 | mingw*) |
| 25699 | # MinGW DLLs use traditional 'lib' prefix |
| 25700 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 25701 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 25702 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 25703 | # It is most probably a Windows format PATH printed by |
| 25704 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 25705 | # path with ; separators, and with drive letters. We can handle the |
| 25706 | # drive letters (cygwin fileutils understands them), so leave them, |
| 25707 | # especially as we might pass files found there to a mingw objdump, |
| 25708 | # which wouldn't understand a cygwinified path. Ahh. |
| 25709 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 25710 | else |
| 25711 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 25712 | fi |
| 25713 | ;; |
| 25714 | pw32*) |
| 25715 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25716 | 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] | 25717 | ;; |
| 25718 | esac |
| 25719 | ;; |
| 25720 | |
| 25721 | *) |
| 25722 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 25723 | ;; |
| 25724 | esac |
| 25725 | dynamic_linker='Win32 ld.exe' |
| 25726 | # FIXME: first we should search . and the directory the executable is in |
| 25727 | shlibpath_var=PATH |
| 25728 | ;; |
| 25729 | |
| 25730 | darwin* | rhapsody*) |
| 25731 | dynamic_linker="$host_os dyld" |
| 25732 | version_type=darwin |
| 25733 | need_lib_prefix=no |
| 25734 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25735 | 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] | 25736 | soname_spec='${libname}${release}${major}$shared_ext' |
| 25737 | shlibpath_overrides_runpath=yes |
| 25738 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 25739 | shrext_cmds='.dylib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25740 | # 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] | 25741 | if test "$GCC" = yes; then |
| 25742 | 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"` |
| 25743 | else |
| 25744 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25745 | fi |
| 25746 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 25747 | ;; |
| 25748 | |
| 25749 | dgux*) |
| 25750 | version_type=linux |
| 25751 | need_lib_prefix=no |
| 25752 | need_version=no |
| 25753 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 25754 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25755 | shlibpath_var=LD_LIBRARY_PATH |
| 25756 | ;; |
| 25757 | |
| 25758 | freebsd1*) |
| 25759 | dynamic_linker=no |
| 25760 | ;; |
| 25761 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25762 | kfreebsd*-gnu) |
| 25763 | version_type=linux |
| 25764 | need_lib_prefix=no |
| 25765 | need_version=no |
| 25766 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 25767 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25768 | shlibpath_var=LD_LIBRARY_PATH |
| 25769 | shlibpath_overrides_runpath=no |
| 25770 | hardcode_into_libs=yes |
| 25771 | dynamic_linker='GNU ld.so' |
| 25772 | ;; |
| 25773 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25774 | freebsd* | dragonfly*) |
| 25775 | # DragonFly does not have aout. When/if they implement a new |
| 25776 | # versioning mechanism, adjust this. |
| 25777 | if test -x /usr/bin/objformat; then |
| 25778 | objformat=`/usr/bin/objformat` |
| 25779 | else |
| 25780 | case $host_os in |
| 25781 | freebsd[123]*) objformat=aout ;; |
| 25782 | *) objformat=elf ;; |
| 25783 | esac |
| 25784 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25785 | version_type=freebsd-$objformat |
| 25786 | case $version_type in |
| 25787 | freebsd-elf*) |
| 25788 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 25789 | need_version=no |
| 25790 | need_lib_prefix=no |
| 25791 | ;; |
| 25792 | freebsd-*) |
| 25793 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 25794 | need_version=yes |
| 25795 | ;; |
| 25796 | esac |
| 25797 | shlibpath_var=LD_LIBRARY_PATH |
| 25798 | case $host_os in |
| 25799 | freebsd2*) |
| 25800 | shlibpath_overrides_runpath=yes |
| 25801 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25802 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25803 | shlibpath_overrides_runpath=yes |
| 25804 | hardcode_into_libs=yes |
| 25805 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25806 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 25807 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25808 | shlibpath_overrides_runpath=no |
| 25809 | hardcode_into_libs=yes |
| 25810 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25811 | freebsd*) # from 4.6 on |
| 25812 | shlibpath_overrides_runpath=yes |
| 25813 | hardcode_into_libs=yes |
| 25814 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25815 | esac |
| 25816 | ;; |
| 25817 | |
| 25818 | gnu*) |
| 25819 | version_type=linux |
| 25820 | need_lib_prefix=no |
| 25821 | need_version=no |
| 25822 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 25823 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25824 | shlibpath_var=LD_LIBRARY_PATH |
| 25825 | hardcode_into_libs=yes |
| 25826 | ;; |
| 25827 | |
| 25828 | hpux9* | hpux10* | hpux11*) |
| 25829 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 25830 | # link against other versions. |
| 25831 | version_type=sunos |
| 25832 | need_lib_prefix=no |
| 25833 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25834 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25835 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25836 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25837 | hardcode_into_libs=yes |
| 25838 | dynamic_linker="$host_os dld.so" |
| 25839 | shlibpath_var=LD_LIBRARY_PATH |
| 25840 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 25841 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25842 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25843 | if test "X$HPUX_IA64_MODE" = X32; then |
| 25844 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 25845 | else |
| 25846 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 25847 | fi |
| 25848 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 25849 | ;; |
| 25850 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25851 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25852 | hardcode_into_libs=yes |
| 25853 | dynamic_linker="$host_os dld.sl" |
| 25854 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 25855 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 25856 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25857 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25858 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 25859 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 25860 | ;; |
| 25861 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25862 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25863 | dynamic_linker="$host_os dld.sl" |
| 25864 | shlibpath_var=SHLIB_PATH |
| 25865 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 25866 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25867 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25868 | ;; |
| 25869 | esac |
| 25870 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 25871 | postinstall_cmds='chmod 555 $lib' |
| 25872 | ;; |
| 25873 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25874 | interix3*) |
| 25875 | version_type=linux |
| 25876 | need_lib_prefix=no |
| 25877 | need_version=no |
| 25878 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 25879 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25880 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 25881 | shlibpath_var=LD_LIBRARY_PATH |
| 25882 | shlibpath_overrides_runpath=no |
| 25883 | hardcode_into_libs=yes |
| 25884 | ;; |
| 25885 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25886 | irix5* | irix6* | nonstopux*) |
| 25887 | case $host_os in |
| 25888 | nonstopux*) version_type=nonstopux ;; |
| 25889 | *) |
| 25890 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 25891 | version_type=linux |
| 25892 | else |
| 25893 | version_type=irix |
| 25894 | fi ;; |
| 25895 | esac |
| 25896 | need_lib_prefix=no |
| 25897 | need_version=no |
| 25898 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25899 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 25900 | case $host_os in |
| 25901 | irix5* | nonstopux*) |
| 25902 | libsuff= shlibsuff= |
| 25903 | ;; |
| 25904 | *) |
| 25905 | case $LD in # libtool.m4 will add one of these switches to LD |
| 25906 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 25907 | libsuff= shlibsuff= libmagic=32-bit;; |
| 25908 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 25909 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 25910 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 25911 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 25912 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 25913 | esac |
| 25914 | ;; |
| 25915 | esac |
| 25916 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 25917 | shlibpath_overrides_runpath=no |
| 25918 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 25919 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 25920 | hardcode_into_libs=yes |
| 25921 | ;; |
| 25922 | |
| 25923 | # No shared lib support for Linux oldld, aout, or coff. |
| 25924 | linux*oldld* | linux*aout* | linux*coff*) |
| 25925 | dynamic_linker=no |
| 25926 | ;; |
| 25927 | |
| 25928 | # This must be Linux ELF. |
| 25929 | linux*) |
| 25930 | version_type=linux |
| 25931 | need_lib_prefix=no |
| 25932 | need_version=no |
| 25933 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25934 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25935 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 25936 | shlibpath_var=LD_LIBRARY_PATH |
| 25937 | shlibpath_overrides_runpath=no |
| 25938 | # This implies no fast_install, which is unacceptable. |
| 25939 | # Some rework will be needed to allow for fast_install |
| 25940 | # before this can be enabled. |
| 25941 | hardcode_into_libs=yes |
| 25942 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25943 | # Append ld.so.conf contents to the search path |
| 25944 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25945 | 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] | 25946 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 25947 | fi |
| 25948 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25949 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 25950 | # powerpc, because MkLinux only supported shared libraries with the |
| 25951 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 25952 | # most powerpc-linux boxes support dynamic linking these days and |
| 25953 | # people can always --disable-shared, the test was removed, and we |
| 25954 | # assume the GNU/Linux dynamic linker is in use. |
| 25955 | dynamic_linker='GNU/Linux ld.so' |
| 25956 | ;; |
| 25957 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25958 | knetbsd*-gnu) |
| 25959 | version_type=linux |
| 25960 | need_lib_prefix=no |
| 25961 | need_version=no |
| 25962 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 25963 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25964 | shlibpath_var=LD_LIBRARY_PATH |
| 25965 | shlibpath_overrides_runpath=no |
| 25966 | hardcode_into_libs=yes |
| 25967 | dynamic_linker='GNU ld.so' |
| 25968 | ;; |
| 25969 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25970 | netbsd*) |
| 25971 | version_type=sunos |
| 25972 | need_lib_prefix=no |
| 25973 | need_version=no |
| 25974 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 25975 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 25976 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 25977 | dynamic_linker='NetBSD (a.out) ld.so' |
| 25978 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25979 | 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] | 25980 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25981 | dynamic_linker='NetBSD ld.elf_so' |
| 25982 | fi |
| 25983 | shlibpath_var=LD_LIBRARY_PATH |
| 25984 | shlibpath_overrides_runpath=yes |
| 25985 | hardcode_into_libs=yes |
| 25986 | ;; |
| 25987 | |
| 25988 | newsos6) |
| 25989 | version_type=linux |
| 25990 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25991 | shlibpath_var=LD_LIBRARY_PATH |
| 25992 | shlibpath_overrides_runpath=yes |
| 25993 | ;; |
| 25994 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25995 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25996 | version_type=linux |
| 25997 | need_lib_prefix=no |
| 25998 | need_version=no |
| 25999 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 26000 | soname_spec='${libname}${release}${shared_ext}$major' |
| 26001 | shlibpath_var=LD_LIBRARY_PATH |
| 26002 | shlibpath_overrides_runpath=yes |
| 26003 | ;; |
| 26004 | |
| 26005 | openbsd*) |
| 26006 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26007 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26008 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26009 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 26010 | case $host_os in |
| 26011 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 26012 | *) need_version=no ;; |
| 26013 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26014 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 26015 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 26016 | shlibpath_var=LD_LIBRARY_PATH |
| 26017 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 26018 | case $host_os in |
| 26019 | openbsd2.[89] | openbsd2.[89].*) |
| 26020 | shlibpath_overrides_runpath=no |
| 26021 | ;; |
| 26022 | *) |
| 26023 | shlibpath_overrides_runpath=yes |
| 26024 | ;; |
| 26025 | esac |
| 26026 | else |
| 26027 | shlibpath_overrides_runpath=yes |
| 26028 | fi |
| 26029 | ;; |
| 26030 | |
| 26031 | os2*) |
| 26032 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26033 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26034 | need_lib_prefix=no |
| 26035 | library_names_spec='$libname${shared_ext} $libname.a' |
| 26036 | dynamic_linker='OS/2 ld.exe' |
| 26037 | shlibpath_var=LIBPATH |
| 26038 | ;; |
| 26039 | |
| 26040 | osf3* | osf4* | osf5*) |
| 26041 | version_type=osf |
| 26042 | need_lib_prefix=no |
| 26043 | need_version=no |
| 26044 | soname_spec='${libname}${release}${shared_ext}$major' |
| 26045 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 26046 | shlibpath_var=LD_LIBRARY_PATH |
| 26047 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 26048 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 26049 | ;; |
| 26050 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26051 | solaris*) |
| 26052 | version_type=linux |
| 26053 | need_lib_prefix=no |
| 26054 | need_version=no |
| 26055 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 26056 | soname_spec='${libname}${release}${shared_ext}$major' |
| 26057 | shlibpath_var=LD_LIBRARY_PATH |
| 26058 | shlibpath_overrides_runpath=yes |
| 26059 | hardcode_into_libs=yes |
| 26060 | # ldd complains unless libraries are executable |
| 26061 | postinstall_cmds='chmod +x $lib' |
| 26062 | ;; |
| 26063 | |
| 26064 | sunos4*) |
| 26065 | version_type=sunos |
| 26066 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 26067 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 26068 | shlibpath_var=LD_LIBRARY_PATH |
| 26069 | shlibpath_overrides_runpath=yes |
| 26070 | if test "$with_gnu_ld" = yes; then |
| 26071 | need_lib_prefix=no |
| 26072 | fi |
| 26073 | need_version=yes |
| 26074 | ;; |
| 26075 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26076 | sysv4 | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26077 | version_type=linux |
| 26078 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 26079 | soname_spec='${libname}${release}${shared_ext}$major' |
| 26080 | shlibpath_var=LD_LIBRARY_PATH |
| 26081 | case $host_vendor in |
| 26082 | sni) |
| 26083 | shlibpath_overrides_runpath=no |
| 26084 | need_lib_prefix=no |
| 26085 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 26086 | runpath_var=LD_RUN_PATH |
| 26087 | ;; |
| 26088 | siemens) |
| 26089 | need_lib_prefix=no |
| 26090 | ;; |
| 26091 | motorola) |
| 26092 | need_lib_prefix=no |
| 26093 | need_version=no |
| 26094 | shlibpath_overrides_runpath=no |
| 26095 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 26096 | ;; |
| 26097 | esac |
| 26098 | ;; |
| 26099 | |
| 26100 | sysv4*MP*) |
| 26101 | if test -d /usr/nec ;then |
| 26102 | version_type=linux |
| 26103 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 26104 | soname_spec='$libname${shared_ext}.$major' |
| 26105 | shlibpath_var=LD_LIBRARY_PATH |
| 26106 | fi |
| 26107 | ;; |
| 26108 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26109 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 26110 | version_type=freebsd-elf |
| 26111 | need_lib_prefix=no |
| 26112 | need_version=no |
| 26113 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 26114 | soname_spec='${libname}${release}${shared_ext}$major' |
| 26115 | shlibpath_var=LD_LIBRARY_PATH |
| 26116 | hardcode_into_libs=yes |
| 26117 | if test "$with_gnu_ld" = yes; then |
| 26118 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 26119 | shlibpath_overrides_runpath=no |
| 26120 | else |
| 26121 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 26122 | shlibpath_overrides_runpath=yes |
| 26123 | case $host_os in |
| 26124 | sco3.2v5*) |
| 26125 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 26126 | ;; |
| 26127 | esac |
| 26128 | fi |
| 26129 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 26130 | ;; |
| 26131 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26132 | uts4*) |
| 26133 | version_type=linux |
| 26134 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 26135 | soname_spec='${libname}${release}${shared_ext}$major' |
| 26136 | shlibpath_var=LD_LIBRARY_PATH |
| 26137 | ;; |
| 26138 | |
| 26139 | *) |
| 26140 | dynamic_linker=no |
| 26141 | ;; |
| 26142 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26143 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 26144 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26145 | test "$dynamic_linker" = no && can_build_shared=no |
| 26146 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26147 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 26148 | if test "$GCC" = yes; then |
| 26149 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 26150 | fi |
| 26151 | |
| 26152 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 26153 | 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] | 26154 | hardcode_action_GCJ= |
| 26155 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
| 26156 | test -n "$runpath_var_GCJ" || \ |
| 26157 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
| 26158 | |
| 26159 | # We can hardcode non-existant directories. |
| 26160 | if test "$hardcode_direct_GCJ" != no && |
| 26161 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 26162 | # have to relink, otherwise we might link with an installed library |
| 26163 | # when we should be linking with a yet-to-be-installed one |
| 26164 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
| 26165 | test "$hardcode_minus_L_GCJ" != no; then |
| 26166 | # Linking always hardcodes the temporary library directory. |
| 26167 | hardcode_action_GCJ=relink |
| 26168 | else |
| 26169 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 26170 | hardcode_action_GCJ=immediate |
| 26171 | fi |
| 26172 | else |
| 26173 | # We cannot hardcode anything, or else we can only hardcode existing |
| 26174 | # directories. |
| 26175 | hardcode_action_GCJ=unsupported |
| 26176 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26177 | { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
| 26178 | echo "${ECHO_T}$hardcode_action_GCJ" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26179 | |
| 26180 | if test "$hardcode_action_GCJ" = relink; then |
| 26181 | # Fast installation is not supported |
| 26182 | enable_fast_install=no |
| 26183 | elif test "$shlibpath_overrides_runpath" = yes || |
| 26184 | test "$enable_shared" = no; then |
| 26185 | # Fast installation is not necessary |
| 26186 | enable_fast_install=needless |
| 26187 | fi |
| 26188 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26189 | |
| 26190 | # The else clause should only fire when bootstrapping the |
| 26191 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 26192 | # with your package, and you will get complaints that there are |
| 26193 | # no rules to generate ltmain.sh. |
| 26194 | if test -f "$ltmain"; then |
| 26195 | # See if we are running on zsh, and set the options which allow our commands through |
| 26196 | # without removal of \ escapes. |
| 26197 | if test -n "${ZSH_VERSION+set}" ; then |
| 26198 | setopt NO_GLOB_SUBST |
| 26199 | fi |
| 26200 | # Now quote all the things that may contain metacharacters while being |
| 26201 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 26202 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26203 | 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] | 26204 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26205 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 26206 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 26207 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 26208 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 26209 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 26210 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 26211 | old_postinstall_cmds old_postuninstall_cmds \ |
| 26212 | compiler_GCJ \ |
| 26213 | CC_GCJ \ |
| 26214 | LD_GCJ \ |
| 26215 | lt_prog_compiler_wl_GCJ \ |
| 26216 | lt_prog_compiler_pic_GCJ \ |
| 26217 | lt_prog_compiler_static_GCJ \ |
| 26218 | lt_prog_compiler_no_builtin_flag_GCJ \ |
| 26219 | export_dynamic_flag_spec_GCJ \ |
| 26220 | thread_safe_flag_spec_GCJ \ |
| 26221 | whole_archive_flag_spec_GCJ \ |
| 26222 | enable_shared_with_static_runtimes_GCJ \ |
| 26223 | old_archive_cmds_GCJ \ |
| 26224 | old_archive_from_new_cmds_GCJ \ |
| 26225 | predep_objects_GCJ \ |
| 26226 | postdep_objects_GCJ \ |
| 26227 | predeps_GCJ \ |
| 26228 | postdeps_GCJ \ |
| 26229 | compiler_lib_search_path_GCJ \ |
| 26230 | archive_cmds_GCJ \ |
| 26231 | archive_expsym_cmds_GCJ \ |
| 26232 | postinstall_cmds_GCJ \ |
| 26233 | postuninstall_cmds_GCJ \ |
| 26234 | old_archive_from_expsyms_cmds_GCJ \ |
| 26235 | allow_undefined_flag_GCJ \ |
| 26236 | no_undefined_flag_GCJ \ |
| 26237 | export_symbols_cmds_GCJ \ |
| 26238 | hardcode_libdir_flag_spec_GCJ \ |
| 26239 | hardcode_libdir_flag_spec_ld_GCJ \ |
| 26240 | hardcode_libdir_separator_GCJ \ |
| 26241 | hardcode_automatic_GCJ \ |
| 26242 | module_cmds_GCJ \ |
| 26243 | module_expsym_cmds_GCJ \ |
| 26244 | lt_cv_prog_compiler_c_o_GCJ \ |
| 26245 | exclude_expsyms_GCJ \ |
| 26246 | include_expsyms_GCJ; do |
| 26247 | |
| 26248 | case $var in |
| 26249 | old_archive_cmds_GCJ | \ |
| 26250 | old_archive_from_new_cmds_GCJ | \ |
| 26251 | archive_cmds_GCJ | \ |
| 26252 | archive_expsym_cmds_GCJ | \ |
| 26253 | module_cmds_GCJ | \ |
| 26254 | module_expsym_cmds_GCJ | \ |
| 26255 | old_archive_from_expsyms_cmds_GCJ | \ |
| 26256 | export_symbols_cmds_GCJ | \ |
| 26257 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 26258 | postinstall_cmds | postuninstall_cmds | \ |
| 26259 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 26260 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 26261 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26262 | 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] | 26263 | ;; |
| 26264 | *) |
| 26265 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 26266 | ;; |
| 26267 | esac |
| 26268 | done |
| 26269 | |
| 26270 | case $lt_echo in |
| 26271 | *'\$0 --fallback-echo"') |
| 26272 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 26273 | ;; |
| 26274 | esac |
| 26275 | |
| 26276 | cfgfile="$ofile" |
| 26277 | |
| 26278 | cat <<__EOF__ >> "$cfgfile" |
| 26279 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 26280 | |
| 26281 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 26282 | |
| 26283 | # Shell to use when invoking shell scripts. |
| 26284 | SHELL=$lt_SHELL |
| 26285 | |
| 26286 | # Whether or not to build shared libraries. |
| 26287 | build_libtool_libs=$enable_shared |
| 26288 | |
| 26289 | # Whether or not to build static libraries. |
| 26290 | build_old_libs=$enable_static |
| 26291 | |
| 26292 | # Whether or not to add -lc for building shared libraries. |
| 26293 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
| 26294 | |
| 26295 | # Whether or not to disallow shared libs when runtime libs are static |
| 26296 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
| 26297 | |
| 26298 | # Whether or not to optimize for fast installation. |
| 26299 | fast_install=$enable_fast_install |
| 26300 | |
| 26301 | # The host system. |
| 26302 | host_alias=$host_alias |
| 26303 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26304 | host_os=$host_os |
| 26305 | |
| 26306 | # The build system. |
| 26307 | build_alias=$build_alias |
| 26308 | build=$build |
| 26309 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26310 | |
| 26311 | # An echo program that does not interpret backslashes. |
| 26312 | echo=$lt_echo |
| 26313 | |
| 26314 | # The archiver. |
| 26315 | AR=$lt_AR |
| 26316 | AR_FLAGS=$lt_AR_FLAGS |
| 26317 | |
| 26318 | # A C compiler. |
| 26319 | LTCC=$lt_LTCC |
| 26320 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26321 | # LTCC compiler flags. |
| 26322 | LTCFLAGS=$lt_LTCFLAGS |
| 26323 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26324 | # A language-specific compiler. |
| 26325 | CC=$lt_compiler_GCJ |
| 26326 | |
| 26327 | # Is the compiler the GNU C compiler? |
| 26328 | with_gcc=$GCC_GCJ |
| 26329 | |
| 26330 | # An ERE matcher. |
| 26331 | EGREP=$lt_EGREP |
| 26332 | |
| 26333 | # The linker used to build libraries. |
| 26334 | LD=$lt_LD_GCJ |
| 26335 | |
| 26336 | # Whether we need hard or soft links. |
| 26337 | LN_S=$lt_LN_S |
| 26338 | |
| 26339 | # A BSD-compatible nm program. |
| 26340 | NM=$lt_NM |
| 26341 | |
| 26342 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26343 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26344 | |
| 26345 | # Used to examine libraries when file_magic_cmd begins "file" |
| 26346 | MAGIC_CMD=$MAGIC_CMD |
| 26347 | |
| 26348 | # Used on cygwin: DLL creation program. |
| 26349 | DLLTOOL="$DLLTOOL" |
| 26350 | |
| 26351 | # Used on cygwin: object dumper. |
| 26352 | OBJDUMP="$OBJDUMP" |
| 26353 | |
| 26354 | # Used on cygwin: assembler. |
| 26355 | AS="$AS" |
| 26356 | |
| 26357 | # The name of the directory that contains temporary libtool files. |
| 26358 | objdir=$objdir |
| 26359 | |
| 26360 | # How to create reloadable object files. |
| 26361 | reload_flag=$lt_reload_flag |
| 26362 | reload_cmds=$lt_reload_cmds |
| 26363 | |
| 26364 | # How to pass a linker flag through the compiler. |
| 26365 | wl=$lt_lt_prog_compiler_wl_GCJ |
| 26366 | |
| 26367 | # Object file suffix (normally "o"). |
| 26368 | objext="$ac_objext" |
| 26369 | |
| 26370 | # Old archive suffix (normally "a"). |
| 26371 | libext="$libext" |
| 26372 | |
| 26373 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26374 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26375 | |
| 26376 | # Executable file suffix (normally ""). |
| 26377 | exeext="$exeext" |
| 26378 | |
| 26379 | # Additional compiler flags for building library objects. |
| 26380 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
| 26381 | pic_mode=$pic_mode |
| 26382 | |
| 26383 | # What is the maximum length of a command? |
| 26384 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 26385 | |
| 26386 | # Does compiler simultaneously support -c and -o options? |
| 26387 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
| 26388 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26389 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26390 | need_locks=$lt_need_locks |
| 26391 | |
| 26392 | # Do we need the lib prefix for modules? |
| 26393 | need_lib_prefix=$need_lib_prefix |
| 26394 | |
| 26395 | # Do we need a version for libraries? |
| 26396 | need_version=$need_version |
| 26397 | |
| 26398 | # Whether dlopen is supported. |
| 26399 | dlopen_support=$enable_dlopen |
| 26400 | |
| 26401 | # Whether dlopen of programs is supported. |
| 26402 | dlopen_self=$enable_dlopen_self |
| 26403 | |
| 26404 | # Whether dlopen of statically linked programs is supported. |
| 26405 | dlopen_self_static=$enable_dlopen_self_static |
| 26406 | |
| 26407 | # Compiler flag to prevent dynamic linking. |
| 26408 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
| 26409 | |
| 26410 | # Compiler flag to turn off builtin functions. |
| 26411 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
| 26412 | |
| 26413 | # Compiler flag to allow reflexive dlopens. |
| 26414 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
| 26415 | |
| 26416 | # Compiler flag to generate shared objects directly from archives. |
| 26417 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
| 26418 | |
| 26419 | # Compiler flag to generate thread-safe objects. |
| 26420 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
| 26421 | |
| 26422 | # Library versioning type. |
| 26423 | version_type=$version_type |
| 26424 | |
| 26425 | # Format of library name prefix. |
| 26426 | libname_spec=$lt_libname_spec |
| 26427 | |
| 26428 | # List of archive names. First name is the real one, the rest are links. |
| 26429 | # The last name is the one that the linker finds with -lNAME. |
| 26430 | library_names_spec=$lt_library_names_spec |
| 26431 | |
| 26432 | # The coded name of the library, if different from the real name. |
| 26433 | soname_spec=$lt_soname_spec |
| 26434 | |
| 26435 | # Commands used to build and install an old-style archive. |
| 26436 | RANLIB=$lt_RANLIB |
| 26437 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
| 26438 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 26439 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 26440 | |
| 26441 | # Create an old-style archive from a shared archive. |
| 26442 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
| 26443 | |
| 26444 | # Create a temporary old-style archive to link instead of a shared archive. |
| 26445 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
| 26446 | |
| 26447 | # Commands used to build and install a shared archive. |
| 26448 | archive_cmds=$lt_archive_cmds_GCJ |
| 26449 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
| 26450 | postinstall_cmds=$lt_postinstall_cmds |
| 26451 | postuninstall_cmds=$lt_postuninstall_cmds |
| 26452 | |
| 26453 | # Commands used to build a loadable module (assumed same as above if empty) |
| 26454 | module_cmds=$lt_module_cmds_GCJ |
| 26455 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
| 26456 | |
| 26457 | # Commands to strip libraries. |
| 26458 | old_striplib=$lt_old_striplib |
| 26459 | striplib=$lt_striplib |
| 26460 | |
| 26461 | # Dependencies to place before the objects being linked to create a |
| 26462 | # shared library. |
| 26463 | predep_objects=$lt_predep_objects_GCJ |
| 26464 | |
| 26465 | # Dependencies to place after the objects being linked to create a |
| 26466 | # shared library. |
| 26467 | postdep_objects=$lt_postdep_objects_GCJ |
| 26468 | |
| 26469 | # Dependencies to place before the objects being linked to create a |
| 26470 | # shared library. |
| 26471 | predeps=$lt_predeps_GCJ |
| 26472 | |
| 26473 | # Dependencies to place after the objects being linked to create a |
| 26474 | # shared library. |
| 26475 | postdeps=$lt_postdeps_GCJ |
| 26476 | |
| 26477 | # The library search path used internally by the compiler when linking |
| 26478 | # a shared library. |
| 26479 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
| 26480 | |
| 26481 | # Method to check whether dependent libraries are shared objects. |
| 26482 | deplibs_check_method=$lt_deplibs_check_method |
| 26483 | |
| 26484 | # Command to use when deplibs_check_method == file_magic. |
| 26485 | file_magic_cmd=$lt_file_magic_cmd |
| 26486 | |
| 26487 | # Flag that allows shared libraries with undefined symbols to be built. |
| 26488 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
| 26489 | |
| 26490 | # Flag that forces no undefined symbols. |
| 26491 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
| 26492 | |
| 26493 | # Commands used to finish a libtool library installation in a directory. |
| 26494 | finish_cmds=$lt_finish_cmds |
| 26495 | |
| 26496 | # Same as above, but a single script fragment to be evaled but not shown. |
| 26497 | finish_eval=$lt_finish_eval |
| 26498 | |
| 26499 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 26500 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 26501 | |
| 26502 | # Transform the output of nm in a proper C declaration |
| 26503 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 26504 | |
| 26505 | # Transform the output of nm in a C name address pair |
| 26506 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 26507 | |
| 26508 | # This is the shared library runtime path variable. |
| 26509 | runpath_var=$runpath_var |
| 26510 | |
| 26511 | # This is the shared library path variable. |
| 26512 | shlibpath_var=$shlibpath_var |
| 26513 | |
| 26514 | # Is shlibpath searched before the hard-coded library search path? |
| 26515 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 26516 | |
| 26517 | # How to hardcode a shared library path into an executable. |
| 26518 | hardcode_action=$hardcode_action_GCJ |
| 26519 | |
| 26520 | # Whether we should hardcode library paths into libraries. |
| 26521 | hardcode_into_libs=$hardcode_into_libs |
| 26522 | |
| 26523 | # Flag to hardcode \$libdir into a binary during linking. |
| 26524 | # This must work even if \$libdir does not exist. |
| 26525 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
| 26526 | |
| 26527 | # If ld is used when linking, flag to hardcode \$libdir into |
| 26528 | # a binary during linking. This must work even if \$libdir does |
| 26529 | # not exist. |
| 26530 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
| 26531 | |
| 26532 | # Whether we need a single -rpath flag with a separated argument. |
| 26533 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
| 26534 | |
| 26535 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 26536 | # resulting binary. |
| 26537 | hardcode_direct=$hardcode_direct_GCJ |
| 26538 | |
| 26539 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 26540 | # resulting binary. |
| 26541 | hardcode_minus_L=$hardcode_minus_L_GCJ |
| 26542 | |
| 26543 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 26544 | # the resulting binary. |
| 26545 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
| 26546 | |
| 26547 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 26548 | # and all subsequent libraries and executables linked against it. |
| 26549 | hardcode_automatic=$hardcode_automatic_GCJ |
| 26550 | |
| 26551 | # Variables whose values should be saved in libtool wrapper scripts and |
| 26552 | # restored at relink time. |
| 26553 | variables_saved_for_relink="$variables_saved_for_relink" |
| 26554 | |
| 26555 | # Whether libtool must link a program against all its dependency libraries. |
| 26556 | link_all_deplibs=$link_all_deplibs_GCJ |
| 26557 | |
| 26558 | # Compile-time system search path for libraries |
| 26559 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 26560 | |
| 26561 | # Run-time system search path for libraries |
| 26562 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 26563 | |
| 26564 | # Fix the shell variable \$srcfile for the compiler. |
| 26565 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
| 26566 | |
| 26567 | # Set to yes if exported symbols are required. |
| 26568 | always_export_symbols=$always_export_symbols_GCJ |
| 26569 | |
| 26570 | # The commands to list exported symbols. |
| 26571 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
| 26572 | |
| 26573 | # The commands to extract the exported symbol list from a shared archive. |
| 26574 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 26575 | |
| 26576 | # Symbols that should not be listed in the preloaded symbols. |
| 26577 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
| 26578 | |
| 26579 | # Symbols that must always be exported. |
| 26580 | include_expsyms=$lt_include_expsyms_GCJ |
| 26581 | |
| 26582 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 26583 | |
| 26584 | __EOF__ |
| 26585 | |
| 26586 | |
| 26587 | else |
| 26588 | # If there is no Makefile yet, we rely on a make rule to execute |
| 26589 | # `config.status --recheck' to rerun these tests and create the |
| 26590 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26591 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 26592 | if test -f "$ltmain_in"; then |
| 26593 | test -f Makefile && make "$ltmain" |
| 26594 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26595 | fi |
| 26596 | |
| 26597 | |
| 26598 | ac_ext=c |
| 26599 | ac_cpp='$CPP $CPPFLAGS' |
| 26600 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26601 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26602 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 26603 | |
| 26604 | CC="$lt_save_CC" |
| 26605 | |
| 26606 | else |
| 26607 | tagname="" |
| 26608 | fi |
| 26609 | ;; |
| 26610 | |
| 26611 | RC) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26612 | ac_ext=c |
| 26613 | ac_cpp='$CPP $CPPFLAGS' |
| 26614 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26615 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26616 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26617 | |
| 26618 | |
| 26619 | # Source file extension for RC test sources. |
| 26620 | ac_ext=rc |
| 26621 | |
| 26622 | # Object file extension for compiled RC test sources. |
| 26623 | objext=o |
| 26624 | objext_RC=$objext |
| 26625 | |
| 26626 | # Code to be used in simple compile tests |
| 26627 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
| 26628 | |
| 26629 | # Code to be used in simple link tests |
| 26630 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
| 26631 | |
| 26632 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 26633 | |
| 26634 | # If no C compiler was specified, use CC. |
| 26635 | LTCC=${LTCC-"$CC"} |
| 26636 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26637 | # If no C compiler flags were specified, use CFLAGS. |
| 26638 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 26639 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26640 | # Allow CC to be a program name with arguments. |
| 26641 | compiler=$CC |
| 26642 | |
| 26643 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26644 | # save warnings/boilerplate of simple test code |
| 26645 | ac_outfile=conftest.$ac_objext |
| 26646 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 26647 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 26648 | _lt_compiler_boilerplate=`cat conftest.err` |
| 26649 | $rm conftest* |
| 26650 | |
| 26651 | ac_outfile=conftest.$ac_objext |
| 26652 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 26653 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 26654 | _lt_linker_boilerplate=`cat conftest.err` |
| 26655 | $rm conftest* |
| 26656 | |
| 26657 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26658 | # Allow CC to be a program name with arguments. |
| 26659 | lt_save_CC="$CC" |
| 26660 | CC=${RC-"windres"} |
| 26661 | compiler=$CC |
| 26662 | compiler_RC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26663 | for cc_temp in $compiler""; do |
| 26664 | case $cc_temp in |
| 26665 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 26666 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 26667 | \-*) ;; |
| 26668 | *) break;; |
| 26669 | esac |
| 26670 | done |
| 26671 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 26672 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26673 | lt_cv_prog_compiler_c_o_RC=yes |
| 26674 | |
| 26675 | # The else clause should only fire when bootstrapping the |
| 26676 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 26677 | # with your package, and you will get complaints that there are |
| 26678 | # no rules to generate ltmain.sh. |
| 26679 | if test -f "$ltmain"; then |
| 26680 | # See if we are running on zsh, and set the options which allow our commands through |
| 26681 | # without removal of \ escapes. |
| 26682 | if test -n "${ZSH_VERSION+set}" ; then |
| 26683 | setopt NO_GLOB_SUBST |
| 26684 | fi |
| 26685 | # Now quote all the things that may contain metacharacters while being |
| 26686 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 26687 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26688 | 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] | 26689 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26690 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 26691 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 26692 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 26693 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 26694 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 26695 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 26696 | old_postinstall_cmds old_postuninstall_cmds \ |
| 26697 | compiler_RC \ |
| 26698 | CC_RC \ |
| 26699 | LD_RC \ |
| 26700 | lt_prog_compiler_wl_RC \ |
| 26701 | lt_prog_compiler_pic_RC \ |
| 26702 | lt_prog_compiler_static_RC \ |
| 26703 | lt_prog_compiler_no_builtin_flag_RC \ |
| 26704 | export_dynamic_flag_spec_RC \ |
| 26705 | thread_safe_flag_spec_RC \ |
| 26706 | whole_archive_flag_spec_RC \ |
| 26707 | enable_shared_with_static_runtimes_RC \ |
| 26708 | old_archive_cmds_RC \ |
| 26709 | old_archive_from_new_cmds_RC \ |
| 26710 | predep_objects_RC \ |
| 26711 | postdep_objects_RC \ |
| 26712 | predeps_RC \ |
| 26713 | postdeps_RC \ |
| 26714 | compiler_lib_search_path_RC \ |
| 26715 | archive_cmds_RC \ |
| 26716 | archive_expsym_cmds_RC \ |
| 26717 | postinstall_cmds_RC \ |
| 26718 | postuninstall_cmds_RC \ |
| 26719 | old_archive_from_expsyms_cmds_RC \ |
| 26720 | allow_undefined_flag_RC \ |
| 26721 | no_undefined_flag_RC \ |
| 26722 | export_symbols_cmds_RC \ |
| 26723 | hardcode_libdir_flag_spec_RC \ |
| 26724 | hardcode_libdir_flag_spec_ld_RC \ |
| 26725 | hardcode_libdir_separator_RC \ |
| 26726 | hardcode_automatic_RC \ |
| 26727 | module_cmds_RC \ |
| 26728 | module_expsym_cmds_RC \ |
| 26729 | lt_cv_prog_compiler_c_o_RC \ |
| 26730 | exclude_expsyms_RC \ |
| 26731 | include_expsyms_RC; do |
| 26732 | |
| 26733 | case $var in |
| 26734 | old_archive_cmds_RC | \ |
| 26735 | old_archive_from_new_cmds_RC | \ |
| 26736 | archive_cmds_RC | \ |
| 26737 | archive_expsym_cmds_RC | \ |
| 26738 | module_cmds_RC | \ |
| 26739 | module_expsym_cmds_RC | \ |
| 26740 | old_archive_from_expsyms_cmds_RC | \ |
| 26741 | export_symbols_cmds_RC | \ |
| 26742 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 26743 | postinstall_cmds | postuninstall_cmds | \ |
| 26744 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 26745 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 26746 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26747 | 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] | 26748 | ;; |
| 26749 | *) |
| 26750 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 26751 | ;; |
| 26752 | esac |
| 26753 | done |
| 26754 | |
| 26755 | case $lt_echo in |
| 26756 | *'\$0 --fallback-echo"') |
| 26757 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 26758 | ;; |
| 26759 | esac |
| 26760 | |
| 26761 | cfgfile="$ofile" |
| 26762 | |
| 26763 | cat <<__EOF__ >> "$cfgfile" |
| 26764 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 26765 | |
| 26766 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 26767 | |
| 26768 | # Shell to use when invoking shell scripts. |
| 26769 | SHELL=$lt_SHELL |
| 26770 | |
| 26771 | # Whether or not to build shared libraries. |
| 26772 | build_libtool_libs=$enable_shared |
| 26773 | |
| 26774 | # Whether or not to build static libraries. |
| 26775 | build_old_libs=$enable_static |
| 26776 | |
| 26777 | # Whether or not to add -lc for building shared libraries. |
| 26778 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
| 26779 | |
| 26780 | # Whether or not to disallow shared libs when runtime libs are static |
| 26781 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
| 26782 | |
| 26783 | # Whether or not to optimize for fast installation. |
| 26784 | fast_install=$enable_fast_install |
| 26785 | |
| 26786 | # The host system. |
| 26787 | host_alias=$host_alias |
| 26788 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26789 | host_os=$host_os |
| 26790 | |
| 26791 | # The build system. |
| 26792 | build_alias=$build_alias |
| 26793 | build=$build |
| 26794 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26795 | |
| 26796 | # An echo program that does not interpret backslashes. |
| 26797 | echo=$lt_echo |
| 26798 | |
| 26799 | # The archiver. |
| 26800 | AR=$lt_AR |
| 26801 | AR_FLAGS=$lt_AR_FLAGS |
| 26802 | |
| 26803 | # A C compiler. |
| 26804 | LTCC=$lt_LTCC |
| 26805 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26806 | # LTCC compiler flags. |
| 26807 | LTCFLAGS=$lt_LTCFLAGS |
| 26808 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26809 | # A language-specific compiler. |
| 26810 | CC=$lt_compiler_RC |
| 26811 | |
| 26812 | # Is the compiler the GNU C compiler? |
| 26813 | with_gcc=$GCC_RC |
| 26814 | |
| 26815 | # An ERE matcher. |
| 26816 | EGREP=$lt_EGREP |
| 26817 | |
| 26818 | # The linker used to build libraries. |
| 26819 | LD=$lt_LD_RC |
| 26820 | |
| 26821 | # Whether we need hard or soft links. |
| 26822 | LN_S=$lt_LN_S |
| 26823 | |
| 26824 | # A BSD-compatible nm program. |
| 26825 | NM=$lt_NM |
| 26826 | |
| 26827 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26828 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26829 | |
| 26830 | # Used to examine libraries when file_magic_cmd begins "file" |
| 26831 | MAGIC_CMD=$MAGIC_CMD |
| 26832 | |
| 26833 | # Used on cygwin: DLL creation program. |
| 26834 | DLLTOOL="$DLLTOOL" |
| 26835 | |
| 26836 | # Used on cygwin: object dumper. |
| 26837 | OBJDUMP="$OBJDUMP" |
| 26838 | |
| 26839 | # Used on cygwin: assembler. |
| 26840 | AS="$AS" |
| 26841 | |
| 26842 | # The name of the directory that contains temporary libtool files. |
| 26843 | objdir=$objdir |
| 26844 | |
| 26845 | # How to create reloadable object files. |
| 26846 | reload_flag=$lt_reload_flag |
| 26847 | reload_cmds=$lt_reload_cmds |
| 26848 | |
| 26849 | # How to pass a linker flag through the compiler. |
| 26850 | wl=$lt_lt_prog_compiler_wl_RC |
| 26851 | |
| 26852 | # Object file suffix (normally "o"). |
| 26853 | objext="$ac_objext" |
| 26854 | |
| 26855 | # Old archive suffix (normally "a"). |
| 26856 | libext="$libext" |
| 26857 | |
| 26858 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26859 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26860 | |
| 26861 | # Executable file suffix (normally ""). |
| 26862 | exeext="$exeext" |
| 26863 | |
| 26864 | # Additional compiler flags for building library objects. |
| 26865 | pic_flag=$lt_lt_prog_compiler_pic_RC |
| 26866 | pic_mode=$pic_mode |
| 26867 | |
| 26868 | # What is the maximum length of a command? |
| 26869 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 26870 | |
| 26871 | # Does compiler simultaneously support -c and -o options? |
| 26872 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
| 26873 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26874 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26875 | need_locks=$lt_need_locks |
| 26876 | |
| 26877 | # Do we need the lib prefix for modules? |
| 26878 | need_lib_prefix=$need_lib_prefix |
| 26879 | |
| 26880 | # Do we need a version for libraries? |
| 26881 | need_version=$need_version |
| 26882 | |
| 26883 | # Whether dlopen is supported. |
| 26884 | dlopen_support=$enable_dlopen |
| 26885 | |
| 26886 | # Whether dlopen of programs is supported. |
| 26887 | dlopen_self=$enable_dlopen_self |
| 26888 | |
| 26889 | # Whether dlopen of statically linked programs is supported. |
| 26890 | dlopen_self_static=$enable_dlopen_self_static |
| 26891 | |
| 26892 | # Compiler flag to prevent dynamic linking. |
| 26893 | link_static_flag=$lt_lt_prog_compiler_static_RC |
| 26894 | |
| 26895 | # Compiler flag to turn off builtin functions. |
| 26896 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
| 26897 | |
| 26898 | # Compiler flag to allow reflexive dlopens. |
| 26899 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
| 26900 | |
| 26901 | # Compiler flag to generate shared objects directly from archives. |
| 26902 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
| 26903 | |
| 26904 | # Compiler flag to generate thread-safe objects. |
| 26905 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
| 26906 | |
| 26907 | # Library versioning type. |
| 26908 | version_type=$version_type |
| 26909 | |
| 26910 | # Format of library name prefix. |
| 26911 | libname_spec=$lt_libname_spec |
| 26912 | |
| 26913 | # List of archive names. First name is the real one, the rest are links. |
| 26914 | # The last name is the one that the linker finds with -lNAME. |
| 26915 | library_names_spec=$lt_library_names_spec |
| 26916 | |
| 26917 | # The coded name of the library, if different from the real name. |
| 26918 | soname_spec=$lt_soname_spec |
| 26919 | |
| 26920 | # Commands used to build and install an old-style archive. |
| 26921 | RANLIB=$lt_RANLIB |
| 26922 | old_archive_cmds=$lt_old_archive_cmds_RC |
| 26923 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 26924 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 26925 | |
| 26926 | # Create an old-style archive from a shared archive. |
| 26927 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
| 26928 | |
| 26929 | # Create a temporary old-style archive to link instead of a shared archive. |
| 26930 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
| 26931 | |
| 26932 | # Commands used to build and install a shared archive. |
| 26933 | archive_cmds=$lt_archive_cmds_RC |
| 26934 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
| 26935 | postinstall_cmds=$lt_postinstall_cmds |
| 26936 | postuninstall_cmds=$lt_postuninstall_cmds |
| 26937 | |
| 26938 | # Commands used to build a loadable module (assumed same as above if empty) |
| 26939 | module_cmds=$lt_module_cmds_RC |
| 26940 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
| 26941 | |
| 26942 | # Commands to strip libraries. |
| 26943 | old_striplib=$lt_old_striplib |
| 26944 | striplib=$lt_striplib |
| 26945 | |
| 26946 | # Dependencies to place before the objects being linked to create a |
| 26947 | # shared library. |
| 26948 | predep_objects=$lt_predep_objects_RC |
| 26949 | |
| 26950 | # Dependencies to place after the objects being linked to create a |
| 26951 | # shared library. |
| 26952 | postdep_objects=$lt_postdep_objects_RC |
| 26953 | |
| 26954 | # Dependencies to place before the objects being linked to create a |
| 26955 | # shared library. |
| 26956 | predeps=$lt_predeps_RC |
| 26957 | |
| 26958 | # Dependencies to place after the objects being linked to create a |
| 26959 | # shared library. |
| 26960 | postdeps=$lt_postdeps_RC |
| 26961 | |
| 26962 | # The library search path used internally by the compiler when linking |
| 26963 | # a shared library. |
| 26964 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
| 26965 | |
| 26966 | # Method to check whether dependent libraries are shared objects. |
| 26967 | deplibs_check_method=$lt_deplibs_check_method |
| 26968 | |
| 26969 | # Command to use when deplibs_check_method == file_magic. |
| 26970 | file_magic_cmd=$lt_file_magic_cmd |
| 26971 | |
| 26972 | # Flag that allows shared libraries with undefined symbols to be built. |
| 26973 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
| 26974 | |
| 26975 | # Flag that forces no undefined symbols. |
| 26976 | no_undefined_flag=$lt_no_undefined_flag_RC |
| 26977 | |
| 26978 | # Commands used to finish a libtool library installation in a directory. |
| 26979 | finish_cmds=$lt_finish_cmds |
| 26980 | |
| 26981 | # Same as above, but a single script fragment to be evaled but not shown. |
| 26982 | finish_eval=$lt_finish_eval |
| 26983 | |
| 26984 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 26985 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 26986 | |
| 26987 | # Transform the output of nm in a proper C declaration |
| 26988 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 26989 | |
| 26990 | # Transform the output of nm in a C name address pair |
| 26991 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 26992 | |
| 26993 | # This is the shared library runtime path variable. |
| 26994 | runpath_var=$runpath_var |
| 26995 | |
| 26996 | # This is the shared library path variable. |
| 26997 | shlibpath_var=$shlibpath_var |
| 26998 | |
| 26999 | # Is shlibpath searched before the hard-coded library search path? |
| 27000 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 27001 | |
| 27002 | # How to hardcode a shared library path into an executable. |
| 27003 | hardcode_action=$hardcode_action_RC |
| 27004 | |
| 27005 | # Whether we should hardcode library paths into libraries. |
| 27006 | hardcode_into_libs=$hardcode_into_libs |
| 27007 | |
| 27008 | # Flag to hardcode \$libdir into a binary during linking. |
| 27009 | # This must work even if \$libdir does not exist. |
| 27010 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
| 27011 | |
| 27012 | # If ld is used when linking, flag to hardcode \$libdir into |
| 27013 | # a binary during linking. This must work even if \$libdir does |
| 27014 | # not exist. |
| 27015 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
| 27016 | |
| 27017 | # Whether we need a single -rpath flag with a separated argument. |
| 27018 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
| 27019 | |
| 27020 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 27021 | # resulting binary. |
| 27022 | hardcode_direct=$hardcode_direct_RC |
| 27023 | |
| 27024 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 27025 | # resulting binary. |
| 27026 | hardcode_minus_L=$hardcode_minus_L_RC |
| 27027 | |
| 27028 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 27029 | # the resulting binary. |
| 27030 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
| 27031 | |
| 27032 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 27033 | # and all subsequent libraries and executables linked against it. |
| 27034 | hardcode_automatic=$hardcode_automatic_RC |
| 27035 | |
| 27036 | # Variables whose values should be saved in libtool wrapper scripts and |
| 27037 | # restored at relink time. |
| 27038 | variables_saved_for_relink="$variables_saved_for_relink" |
| 27039 | |
| 27040 | # Whether libtool must link a program against all its dependency libraries. |
| 27041 | link_all_deplibs=$link_all_deplibs_RC |
| 27042 | |
| 27043 | # Compile-time system search path for libraries |
| 27044 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 27045 | |
| 27046 | # Run-time system search path for libraries |
| 27047 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 27048 | |
| 27049 | # Fix the shell variable \$srcfile for the compiler. |
| 27050 | fix_srcfile_path="$fix_srcfile_path_RC" |
| 27051 | |
| 27052 | # Set to yes if exported symbols are required. |
| 27053 | always_export_symbols=$always_export_symbols_RC |
| 27054 | |
| 27055 | # The commands to list exported symbols. |
| 27056 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
| 27057 | |
| 27058 | # The commands to extract the exported symbol list from a shared archive. |
| 27059 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 27060 | |
| 27061 | # Symbols that should not be listed in the preloaded symbols. |
| 27062 | exclude_expsyms=$lt_exclude_expsyms_RC |
| 27063 | |
| 27064 | # Symbols that must always be exported. |
| 27065 | include_expsyms=$lt_include_expsyms_RC |
| 27066 | |
| 27067 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 27068 | |
| 27069 | __EOF__ |
| 27070 | |
| 27071 | |
| 27072 | else |
| 27073 | # If there is no Makefile yet, we rely on a make rule to execute |
| 27074 | # `config.status --recheck' to rerun these tests and create the |
| 27075 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27076 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 27077 | if test -f "$ltmain_in"; then |
| 27078 | test -f Makefile && make "$ltmain" |
| 27079 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 27080 | fi |
| 27081 | |
| 27082 | |
| 27083 | ac_ext=c |
| 27084 | ac_cpp='$CPP $CPPFLAGS' |
| 27085 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 27086 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 27087 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 27088 | |
| 27089 | CC="$lt_save_CC" |
| 27090 | |
| 27091 | ;; |
| 27092 | |
| 27093 | *) |
| 27094 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
| 27095 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
| 27096 | { (exit 1); exit 1; }; } |
| 27097 | ;; |
| 27098 | esac |
| 27099 | |
| 27100 | # Append the new tag name to the list of available tags. |
| 27101 | if test -n "$tagname" ; then |
| 27102 | available_tags="$available_tags $tagname" |
| 27103 | fi |
| 27104 | fi |
| 27105 | done |
| 27106 | IFS="$lt_save_ifs" |
| 27107 | |
| 27108 | # Now substitute the updated list of available tags. |
| 27109 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
| 27110 | mv "${ofile}T" "$ofile" |
| 27111 | chmod +x "$ofile" |
| 27112 | else |
| 27113 | rm -f "${ofile}T" |
| 27114 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
| 27115 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
| 27116 | { (exit 1); exit 1; }; } |
| 27117 | fi |
| 27118 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27119 | |
| 27120 | |
| 27121 | |
| 27122 | # This can be used to rebuild libtool when needed |
| 27123 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 27124 | |
| 27125 | # Always use our own libtool. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27126 | LIBTOOL='$(SHELL) $(top_builddir)/mklib' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27127 | |
| 27128 | # Prevent multiple expansion |
| 27129 | |
| 27130 | |
| 27131 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 27132 | |
| 27133 | |
| 27134 | |
| 27135 | |
| 27136 | |
| 27137 | |
| 27138 | |
| 27139 | |
| 27140 | |
| 27141 | |
| 27142 | |
| 27143 | |
| 27144 | |
| 27145 | |
| 27146 | |
| 27147 | |
| 27148 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27149 | |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 27150 | if test "$lt_cv_dlopen_self" = "yes" ; then |
| 27151 | |
| 27152 | cat >>confdefs.h <<\_ACEOF |
| 27153 | #define CAN_DLOPEN_SELF 1 |
| 27154 | _ACEOF |
| 27155 | |
| 27156 | fi |
| 27157 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 27158 | |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 27159 | if test "$WITH_LLVMGCCDIR" = "default" ; then |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 27160 | LLVMGCC="llvm-gcc${EXEEXT}" |
| 27161 | LLVMGXX="llvm-g++${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 27162 | LLVMGCCCOMMAND="$LLVMGCC" |
| 27163 | LLVMGXXCOMMAND="$LLVMGXX" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 27164 | LLVMGCCCOMMAND=$LLVMGCCCOMMAND |
| 27165 | |
| 27166 | LLVMGXXCOMMAND=$LLVMGXXCOMMAND |
| 27167 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 27168 | # Extract the first word of "$LLVMGCC", so it can be a program name with args. |
| 27169 | set dummy $LLVMGCC; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27170 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 27171 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27172 | if test "${ac_cv_path_LLVMGCC+set}" = set; then |
| 27173 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27174 | else |
| 27175 | case $LLVMGCC in |
| 27176 | [\\/]* | ?:[\\/]*) |
| 27177 | ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path. |
| 27178 | ;; |
| 27179 | *) |
| 27180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 27181 | for as_dir in $PATH |
| 27182 | do |
| 27183 | IFS=$as_save_IFS |
| 27184 | test -z "$as_dir" && as_dir=. |
| 27185 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27186 | 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] | 27187 | ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext" |
| 27188 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 27189 | break 2 |
| 27190 | fi |
| 27191 | done |
| 27192 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27193 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27194 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27195 | ;; |
| 27196 | esac |
| 27197 | fi |
| 27198 | LLVMGCC=$ac_cv_path_LLVMGCC |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27199 | if test -n "$LLVMGCC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27200 | { echo "$as_me:$LINENO: result: $LLVMGCC" >&5 |
| 27201 | echo "${ECHO_T}$LLVMGCC" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27202 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27203 | { echo "$as_me:$LINENO: result: no" >&5 |
| 27204 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27205 | fi |
| 27206 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27207 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 27208 | # Extract the first word of "$LLVMGXX", so it can be a program name with args. |
| 27209 | set dummy $LLVMGXX; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27210 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 27211 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27212 | if test "${ac_cv_path_LLVMGXX+set}" = set; then |
| 27213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27214 | else |
| 27215 | case $LLVMGXX in |
| 27216 | [\\/]* | ?:[\\/]*) |
| 27217 | ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path. |
| 27218 | ;; |
| 27219 | *) |
| 27220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 27221 | for as_dir in $PATH |
| 27222 | do |
| 27223 | IFS=$as_save_IFS |
| 27224 | test -z "$as_dir" && as_dir=. |
| 27225 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27226 | 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] | 27227 | ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext" |
| 27228 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 27229 | break 2 |
| 27230 | fi |
| 27231 | done |
| 27232 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27233 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27234 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27235 | ;; |
| 27236 | esac |
| 27237 | fi |
| 27238 | LLVMGXX=$ac_cv_path_LLVMGXX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27239 | if test -n "$LLVMGXX"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27240 | { echo "$as_me:$LINENO: result: $LLVMGXX" >&5 |
| 27241 | echo "${ECHO_T}$LLVMGXX" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27242 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27243 | { echo "$as_me:$LINENO: result: no" >&5 |
| 27244 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27245 | fi |
| 27246 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27247 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27248 | else |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 27249 | if test -z "$LLVMGCC"; then |
| 27250 | LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 27251 | LLVMGCCCOMMAND="$LLVMGCC" |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 27252 | fi |
| 27253 | if test -z "$LLVMGXX"; then |
| 27254 | LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 27255 | LLVMGXXCOMMAND="$LLVMGXX" |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 27256 | fi |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 27257 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27258 | LLVMGCC=$LLVMGCC |
| 27259 | |
| 27260 | LLVMGXX=$LLVMGXX |
| 27261 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 27262 | LLVMGCCCOMMAND=$LLVMGCCCOMMAND |
| 27263 | |
| 27264 | LLVMGXXCOMMAND=$LLVMGXXCOMMAND |
| 27265 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27266 | fi |
| 27267 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 27268 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27269 | { echo "$as_me:$LINENO: checking tool compatibility" >&5 |
| 27270 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27271 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 27272 | ICC=no |
| 27273 | IXX=no |
| 27274 | case $CC in |
| 27275 | icc*|icpc*) |
| 27276 | ICC=yes |
| 27277 | IXX=yes |
| 27278 | ;; |
| 27279 | *) |
| 27280 | ;; |
| 27281 | esac |
| 27282 | |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 27283 | if test "$GCC" != "yes" && test "$ICC" != "yes" |
| 27284 | then |
| 27285 | { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 |
| 27286 | echo "$as_me: error: gcc|icc required but not found" >&2;} |
| 27287 | { (exit 1); exit 1; }; } |
| 27288 | fi |
| 27289 | |
| 27290 | if test "$GXX" != "yes" && test "$IXX" != "yes" |
| 27291 | then |
| 27292 | { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5 |
| 27293 | echo "$as_me: error: g++|icc required but not found" >&2;} |
| 27294 | { (exit 1); exit 1; }; } |
| 27295 | fi |
| 27296 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 27297 | if test "$GCC" = "yes" |
| 27298 | then |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 27299 | cat >conftest.$ac_ext <<_ACEOF |
| 27300 | #if !defined(__GNUC__) || __GNUC__ < 3 |
| 27301 | #error Unsupported GCC version |
| 27302 | #endif |
| 27303 | |
| 27304 | _ACEOF |
| 27305 | rm -f conftest.$ac_objext |
| 27306 | if { (ac_try="$ac_compile" |
| 27307 | case "(($ac_try" in |
| 27308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27309 | *) ac_try_echo=$ac_try;; |
| 27310 | esac |
| 27311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27312 | (eval "$ac_compile") 2>conftest.er1 |
| 27313 | ac_status=$? |
| 27314 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27315 | rm -f conftest.er1 |
| 27316 | cat conftest.err >&5 |
| 27317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27318 | (exit $ac_status); } && |
| 27319 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27320 | { (case "(($ac_try" in |
| 27321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27322 | *) ac_try_echo=$ac_try;; |
| 27323 | esac |
| 27324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27325 | (eval "$ac_try") 2>&5 |
| 27326 | ac_status=$? |
| 27327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27328 | (exit $ac_status); }; } && |
| 27329 | { ac_try='test -s conftest.$ac_objext' |
| 27330 | { (case "(($ac_try" in |
| 27331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27332 | *) ac_try_echo=$ac_try;; |
| 27333 | esac |
| 27334 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27335 | (eval "$ac_try") 2>&5 |
| 27336 | ac_status=$? |
| 27337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27338 | (exit $ac_status); }; }; then |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 27339 | : |
| 27340 | else |
| 27341 | echo "$as_me: failed program was:" >&5 |
| 27342 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27343 | |
| 27344 | { { 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] | 27345 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} |
| 27346 | { (exit 1); exit 1; }; } |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 27347 | fi |
| 27348 | |
| 27349 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27350 | fi |
| 27351 | |
| 27352 | if test -z "$llvm_cv_gnu_make_command" |
| 27353 | then |
| 27354 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 |
| 27355 | echo "$as_me: error: GNU Make required but not found" >&2;} |
| 27356 | { (exit 1); exit 1; }; } |
| 27357 | fi |
| 27358 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27359 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 27360 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27361 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 27362 | |
| 27363 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27364 | { echo "$as_me:$LINENO: checking for sin in -lm" >&5 |
| 27365 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27366 | if test "${ac_cv_lib_m_sin+set}" = set; then |
| 27367 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27368 | else |
| 27369 | ac_check_lib_save_LIBS=$LIBS |
| 27370 | LIBS="-lm $LIBS" |
| 27371 | cat >conftest.$ac_ext <<_ACEOF |
| 27372 | /* confdefs.h. */ |
| 27373 | _ACEOF |
| 27374 | cat confdefs.h >>conftest.$ac_ext |
| 27375 | cat >>conftest.$ac_ext <<_ACEOF |
| 27376 | /* end confdefs.h. */ |
| 27377 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27378 | /* Override any GCC internal prototype to avoid an error. |
| 27379 | Use char because int might match the return type of a GCC |
| 27380 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27381 | #ifdef __cplusplus |
| 27382 | extern "C" |
| 27383 | #endif |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27384 | char sin (); |
| 27385 | int |
| 27386 | main () |
| 27387 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27388 | return sin (); |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27389 | ; |
| 27390 | return 0; |
| 27391 | } |
| 27392 | _ACEOF |
| 27393 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27394 | if { (ac_try="$ac_link" |
| 27395 | case "(($ac_try" in |
| 27396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27397 | *) ac_try_echo=$ac_try;; |
| 27398 | esac |
| 27399 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27400 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27401 | ac_status=$? |
| 27402 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27403 | rm -f conftest.er1 |
| 27404 | cat conftest.err >&5 |
| 27405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27406 | (exit $ac_status); } && |
| 27407 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27408 | { (case "(($ac_try" in |
| 27409 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27410 | *) ac_try_echo=$ac_try;; |
| 27411 | esac |
| 27412 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27413 | (eval "$ac_try") 2>&5 |
| 27414 | ac_status=$? |
| 27415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27416 | (exit $ac_status); }; } && |
| 27417 | { ac_try='test -s conftest$ac_exeext' |
| 27418 | { (case "(($ac_try" in |
| 27419 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27420 | *) ac_try_echo=$ac_try;; |
| 27421 | esac |
| 27422 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27423 | (eval "$ac_try") 2>&5 |
| 27424 | ac_status=$? |
| 27425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27426 | (exit $ac_status); }; }; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27427 | ac_cv_lib_m_sin=yes |
| 27428 | else |
| 27429 | echo "$as_me: failed program was:" >&5 |
| 27430 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27431 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27432 | ac_cv_lib_m_sin=no |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27433 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27434 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27435 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27436 | conftest$ac_exeext conftest.$ac_ext |
| 27437 | LIBS=$ac_check_lib_save_LIBS |
| 27438 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27439 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 |
| 27440 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 27441 | if test $ac_cv_lib_m_sin = yes; then |
| 27442 | cat >>confdefs.h <<_ACEOF |
| 27443 | #define HAVE_LIBM 1 |
| 27444 | _ACEOF |
| 27445 | |
| 27446 | LIBS="-lm $LIBS" |
| 27447 | |
| 27448 | fi |
| 27449 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 27450 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27451 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27452 | { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 |
| 27453 | echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27454 | if test "${ac_cv_lib_imagehlp_main+set}" = set; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27455 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27456 | else |
| 27457 | ac_check_lib_save_LIBS=$LIBS |
| 27458 | LIBS="-limagehlp $LIBS" |
| 27459 | cat >conftest.$ac_ext <<_ACEOF |
| 27460 | /* confdefs.h. */ |
| 27461 | _ACEOF |
| 27462 | cat confdefs.h >>conftest.$ac_ext |
| 27463 | cat >>conftest.$ac_ext <<_ACEOF |
| 27464 | /* end confdefs.h. */ |
| 27465 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27466 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27467 | int |
| 27468 | main () |
| 27469 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27470 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27471 | ; |
| 27472 | return 0; |
| 27473 | } |
| 27474 | _ACEOF |
| 27475 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27476 | if { (ac_try="$ac_link" |
| 27477 | case "(($ac_try" in |
| 27478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27479 | *) ac_try_echo=$ac_try;; |
| 27480 | esac |
| 27481 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27482 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27483 | ac_status=$? |
| 27484 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27485 | rm -f conftest.er1 |
| 27486 | cat conftest.err >&5 |
| 27487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27488 | (exit $ac_status); } && |
| 27489 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27490 | { (case "(($ac_try" in |
| 27491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27492 | *) ac_try_echo=$ac_try;; |
| 27493 | esac |
| 27494 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27495 | (eval "$ac_try") 2>&5 |
| 27496 | ac_status=$? |
| 27497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27498 | (exit $ac_status); }; } && |
| 27499 | { ac_try='test -s conftest$ac_exeext' |
| 27500 | { (case "(($ac_try" in |
| 27501 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27502 | *) ac_try_echo=$ac_try;; |
| 27503 | esac |
| 27504 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27505 | (eval "$ac_try") 2>&5 |
| 27506 | ac_status=$? |
| 27507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27508 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27509 | ac_cv_lib_imagehlp_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27510 | else |
| 27511 | echo "$as_me: failed program was:" >&5 |
| 27512 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27513 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27514 | ac_cv_lib_imagehlp_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27515 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27516 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27517 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27518 | conftest$ac_exeext conftest.$ac_ext |
| 27519 | LIBS=$ac_check_lib_save_LIBS |
| 27520 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27521 | { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 |
| 27522 | echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27523 | if test $ac_cv_lib_imagehlp_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27524 | cat >>confdefs.h <<_ACEOF |
| 27525 | #define HAVE_LIBIMAGEHLP 1 |
| 27526 | _ACEOF |
| 27527 | |
| 27528 | LIBS="-limagehlp $LIBS" |
| 27529 | |
| 27530 | fi |
| 27531 | |
| 27532 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27533 | { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 |
| 27534 | echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27535 | if test "${ac_cv_lib_psapi_main+set}" = set; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27537 | else |
| 27538 | ac_check_lib_save_LIBS=$LIBS |
| 27539 | LIBS="-lpsapi $LIBS" |
| 27540 | cat >conftest.$ac_ext <<_ACEOF |
| 27541 | /* confdefs.h. */ |
| 27542 | _ACEOF |
| 27543 | cat confdefs.h >>conftest.$ac_ext |
| 27544 | cat >>conftest.$ac_ext <<_ACEOF |
| 27545 | /* end confdefs.h. */ |
| 27546 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27547 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27548 | int |
| 27549 | main () |
| 27550 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27551 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27552 | ; |
| 27553 | return 0; |
| 27554 | } |
| 27555 | _ACEOF |
| 27556 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27557 | if { (ac_try="$ac_link" |
| 27558 | case "(($ac_try" in |
| 27559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27560 | *) ac_try_echo=$ac_try;; |
| 27561 | esac |
| 27562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27563 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27564 | ac_status=$? |
| 27565 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27566 | rm -f conftest.er1 |
| 27567 | cat conftest.err >&5 |
| 27568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27569 | (exit $ac_status); } && |
| 27570 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27571 | { (case "(($ac_try" in |
| 27572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27573 | *) ac_try_echo=$ac_try;; |
| 27574 | esac |
| 27575 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27576 | (eval "$ac_try") 2>&5 |
| 27577 | ac_status=$? |
| 27578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27579 | (exit $ac_status); }; } && |
| 27580 | { ac_try='test -s conftest$ac_exeext' |
| 27581 | { (case "(($ac_try" in |
| 27582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27583 | *) ac_try_echo=$ac_try;; |
| 27584 | esac |
| 27585 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27586 | (eval "$ac_try") 2>&5 |
| 27587 | ac_status=$? |
| 27588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27589 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27590 | ac_cv_lib_psapi_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27591 | else |
| 27592 | echo "$as_me: failed program was:" >&5 |
| 27593 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27594 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27595 | ac_cv_lib_psapi_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27596 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27597 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27598 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27599 | conftest$ac_exeext conftest.$ac_ext |
| 27600 | LIBS=$ac_check_lib_save_LIBS |
| 27601 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27602 | { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 |
| 27603 | echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27604 | if test $ac_cv_lib_psapi_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27605 | cat >>confdefs.h <<_ACEOF |
| 27606 | #define HAVE_LIBPSAPI 1 |
| 27607 | _ACEOF |
| 27608 | |
| 27609 | LIBS="-lpsapi $LIBS" |
| 27610 | |
| 27611 | fi |
| 27612 | |
| 27613 | fi |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27614 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27615 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
| 27616 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27617 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 27618 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27619 | else |
| 27620 | ac_func_search_save_LIBS=$LIBS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27621 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27622 | /* confdefs.h. */ |
| 27623 | _ACEOF |
| 27624 | cat confdefs.h >>conftest.$ac_ext |
| 27625 | cat >>conftest.$ac_ext <<_ACEOF |
| 27626 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27627 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27628 | /* Override any GCC internal prototype to avoid an error. |
| 27629 | Use char because int might match the return type of a GCC |
| 27630 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27631 | #ifdef __cplusplus |
| 27632 | extern "C" |
| 27633 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27634 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27635 | int |
| 27636 | main () |
| 27637 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27638 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27639 | ; |
| 27640 | return 0; |
| 27641 | } |
| 27642 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27643 | for ac_lib in '' dl; do |
| 27644 | if test -z "$ac_lib"; then |
| 27645 | ac_res="none required" |
| 27646 | else |
| 27647 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27648 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27649 | fi |
| 27650 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27651 | if { (ac_try="$ac_link" |
| 27652 | case "(($ac_try" in |
| 27653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27654 | *) ac_try_echo=$ac_try;; |
| 27655 | esac |
| 27656 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27657 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27658 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27659 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27660 | rm -f conftest.er1 |
| 27661 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27663 | (exit $ac_status); } && |
| 27664 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27665 | { (case "(($ac_try" in |
| 27666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27667 | *) ac_try_echo=$ac_try;; |
| 27668 | esac |
| 27669 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27670 | (eval "$ac_try") 2>&5 |
| 27671 | ac_status=$? |
| 27672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27673 | (exit $ac_status); }; } && |
| 27674 | { ac_try='test -s conftest$ac_exeext' |
| 27675 | { (case "(($ac_try" in |
| 27676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27677 | *) ac_try_echo=$ac_try;; |
| 27678 | esac |
| 27679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27680 | (eval "$ac_try") 2>&5 |
| 27681 | ac_status=$? |
| 27682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27683 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27684 | ac_cv_search_dlopen=$ac_res |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27685 | else |
| 27686 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27687 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27688 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27689 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27690 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27691 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27692 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27693 | conftest$ac_exeext |
| 27694 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 27695 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27696 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27697 | done |
| 27698 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 27699 | : |
| 27700 | else |
| 27701 | ac_cv_search_dlopen=no |
| 27702 | fi |
| 27703 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27704 | LIBS=$ac_func_search_save_LIBS |
| 27705 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27706 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
| 27707 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } |
| 27708 | ac_res=$ac_cv_search_dlopen |
| 27709 | if test "$ac_res" != no; then |
| 27710 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 27711 | |
| 27712 | cat >>confdefs.h <<\_ACEOF |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 27713 | #define HAVE_DLOPEN 1 |
| 27714 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27715 | |
| 27716 | else |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 27717 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 |
| 27718 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27719 | fi |
| 27720 | |
| 27721 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 27722 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
| 27723 | { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 27724 | echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } |
| 27725 | if test "${ac_cv_search_ffi_call+set}" = set; then |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 27726 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27727 | else |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 27728 | ac_func_search_save_LIBS=$LIBS |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 27729 | cat >conftest.$ac_ext <<_ACEOF |
| 27730 | /* confdefs.h. */ |
| 27731 | _ACEOF |
| 27732 | cat confdefs.h >>conftest.$ac_ext |
| 27733 | cat >>conftest.$ac_ext <<_ACEOF |
| 27734 | /* end confdefs.h. */ |
| 27735 | |
| 27736 | /* Override any GCC internal prototype to avoid an error. |
| 27737 | Use char because int might match the return type of a GCC |
| 27738 | builtin and then its argument prototype would still apply. */ |
| 27739 | #ifdef __cplusplus |
| 27740 | extern "C" |
| 27741 | #endif |
| 27742 | char ffi_call (); |
| 27743 | int |
| 27744 | main () |
| 27745 | { |
| 27746 | return ffi_call (); |
| 27747 | ; |
| 27748 | return 0; |
| 27749 | } |
| 27750 | _ACEOF |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 27751 | for ac_lib in '' ffi; do |
| 27752 | if test -z "$ac_lib"; then |
| 27753 | ac_res="none required" |
| 27754 | else |
| 27755 | ac_res=-l$ac_lib |
| 27756 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 27757 | fi |
| 27758 | rm -f conftest.$ac_objext conftest$ac_exeext |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 27759 | if { (ac_try="$ac_link" |
| 27760 | case "(($ac_try" in |
| 27761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27762 | *) ac_try_echo=$ac_try;; |
| 27763 | esac |
| 27764 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27765 | (eval "$ac_link") 2>conftest.er1 |
| 27766 | ac_status=$? |
| 27767 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27768 | rm -f conftest.er1 |
| 27769 | cat conftest.err >&5 |
| 27770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27771 | (exit $ac_status); } && |
| 27772 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27773 | { (case "(($ac_try" in |
| 27774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27775 | *) ac_try_echo=$ac_try;; |
| 27776 | esac |
| 27777 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27778 | (eval "$ac_try") 2>&5 |
| 27779 | ac_status=$? |
| 27780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27781 | (exit $ac_status); }; } && |
| 27782 | { ac_try='test -s conftest$ac_exeext' |
| 27783 | { (case "(($ac_try" in |
| 27784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27785 | *) ac_try_echo=$ac_try;; |
| 27786 | esac |
| 27787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27788 | (eval "$ac_try") 2>&5 |
| 27789 | ac_status=$? |
| 27790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27791 | (exit $ac_status); }; }; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 27792 | ac_cv_search_ffi_call=$ac_res |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 27793 | else |
| 27794 | echo "$as_me: failed program was:" >&5 |
| 27795 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27796 | |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 27797 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 27798 | fi |
| 27799 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27800 | rm -f core conftest.err conftest.$ac_objext \ |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 27801 | conftest$ac_exeext |
| 27802 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 27803 | break |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 27804 | fi |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 27805 | done |
| 27806 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 27807 | : |
| 27808 | else |
| 27809 | ac_cv_search_ffi_call=no |
| 27810 | fi |
| 27811 | rm conftest.$ac_ext |
| 27812 | LIBS=$ac_func_search_save_LIBS |
| 27813 | fi |
| 27814 | { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 |
| 27815 | echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } |
| 27816 | ac_res=$ac_cv_search_ffi_call |
| 27817 | if test "$ac_res" != no; then |
| 27818 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 27819 | |
| 27820 | cat >>confdefs.h <<\_ACEOF |
| 27821 | #define HAVE_FFI_CALL 1 |
| 27822 | _ACEOF |
| 27823 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 27824 | else |
| 27825 | { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5 |
| 27826 | echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;} |
| 27827 | fi |
| 27828 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 27829 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 27830 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27831 | { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 |
| 27832 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27833 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 27834 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27835 | else |
| 27836 | ac_func_search_save_LIBS=$LIBS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27837 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27838 | /* confdefs.h. */ |
| 27839 | _ACEOF |
| 27840 | cat confdefs.h >>conftest.$ac_ext |
| 27841 | cat >>conftest.$ac_ext <<_ACEOF |
| 27842 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27843 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27844 | /* Override any GCC internal prototype to avoid an error. |
| 27845 | Use char because int might match the return type of a GCC |
| 27846 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27847 | #ifdef __cplusplus |
| 27848 | extern "C" |
| 27849 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27850 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27851 | int |
| 27852 | main () |
| 27853 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27854 | return mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27855 | ; |
| 27856 | return 0; |
| 27857 | } |
| 27858 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27859 | for ac_lib in '' malloc; do |
| 27860 | if test -z "$ac_lib"; then |
| 27861 | ac_res="none required" |
| 27862 | else |
| 27863 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27864 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27865 | fi |
| 27866 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27867 | if { (ac_try="$ac_link" |
| 27868 | case "(($ac_try" in |
| 27869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27870 | *) ac_try_echo=$ac_try;; |
| 27871 | esac |
| 27872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27873 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27874 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27875 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27876 | rm -f conftest.er1 |
| 27877 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27879 | (exit $ac_status); } && |
| 27880 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27881 | { (case "(($ac_try" in |
| 27882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27883 | *) ac_try_echo=$ac_try;; |
| 27884 | esac |
| 27885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27886 | (eval "$ac_try") 2>&5 |
| 27887 | ac_status=$? |
| 27888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27889 | (exit $ac_status); }; } && |
| 27890 | { ac_try='test -s conftest$ac_exeext' |
| 27891 | { (case "(($ac_try" in |
| 27892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27893 | *) ac_try_echo=$ac_try;; |
| 27894 | esac |
| 27895 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27896 | (eval "$ac_try") 2>&5 |
| 27897 | ac_status=$? |
| 27898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27899 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27900 | ac_cv_search_mallinfo=$ac_res |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27901 | else |
| 27902 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27903 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27904 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27905 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27906 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27907 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27908 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27909 | conftest$ac_exeext |
| 27910 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 27911 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27912 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27913 | done |
| 27914 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 27915 | : |
| 27916 | else |
| 27917 | ac_cv_search_mallinfo=no |
| 27918 | fi |
| 27919 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27920 | LIBS=$ac_func_search_save_LIBS |
| 27921 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27922 | { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 |
| 27923 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } |
| 27924 | ac_res=$ac_cv_search_mallinfo |
| 27925 | if test "$ac_res" != no; then |
| 27926 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 27927 | |
| 27928 | cat >>confdefs.h <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27929 | #define HAVE_MALLINFO 1 |
| 27930 | _ACEOF |
| 27931 | |
| 27932 | fi |
| 27933 | |
| 27934 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 27935 | if test "$ENABLE_THREADS" -eq 1 ; then |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27936 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27937 | { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 |
| 27938 | 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] | 27939 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then |
| 27940 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27941 | else |
| 27942 | ac_check_lib_save_LIBS=$LIBS |
| 27943 | LIBS="-lpthread $LIBS" |
| 27944 | cat >conftest.$ac_ext <<_ACEOF |
| 27945 | /* confdefs.h. */ |
| 27946 | _ACEOF |
| 27947 | cat confdefs.h >>conftest.$ac_ext |
| 27948 | cat >>conftest.$ac_ext <<_ACEOF |
| 27949 | /* end confdefs.h. */ |
| 27950 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27951 | /* Override any GCC internal prototype to avoid an error. |
| 27952 | Use char because int might match the return type of a GCC |
| 27953 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27954 | #ifdef __cplusplus |
| 27955 | extern "C" |
| 27956 | #endif |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27957 | char pthread_mutex_init (); |
| 27958 | int |
| 27959 | main () |
| 27960 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27961 | return pthread_mutex_init (); |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27962 | ; |
| 27963 | return 0; |
| 27964 | } |
| 27965 | _ACEOF |
| 27966 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27967 | if { (ac_try="$ac_link" |
| 27968 | case "(($ac_try" in |
| 27969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27970 | *) ac_try_echo=$ac_try;; |
| 27971 | esac |
| 27972 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27973 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27974 | ac_status=$? |
| 27975 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27976 | rm -f conftest.er1 |
| 27977 | cat conftest.err >&5 |
| 27978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 27979 | (exit $ac_status); } && |
| 27980 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27981 | { (case "(($ac_try" in |
| 27982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27983 | *) ac_try_echo=$ac_try;; |
| 27984 | esac |
| 27985 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27986 | (eval "$ac_try") 2>&5 |
| 27987 | ac_status=$? |
| 27988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27989 | (exit $ac_status); }; } && |
| 27990 | { ac_try='test -s conftest$ac_exeext' |
| 27991 | { (case "(($ac_try" in |
| 27992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27993 | *) ac_try_echo=$ac_try;; |
| 27994 | esac |
| 27995 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27996 | (eval "$ac_try") 2>&5 |
| 27997 | ac_status=$? |
| 27998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27999 | (exit $ac_status); }; }; then |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 28000 | ac_cv_lib_pthread_pthread_mutex_init=yes |
| 28001 | else |
| 28002 | echo "$as_me: failed program was:" >&5 |
| 28003 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28004 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28005 | ac_cv_lib_pthread_pthread_mutex_init=no |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 28006 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28007 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 28008 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 28009 | conftest$ac_exeext conftest.$ac_ext |
| 28010 | LIBS=$ac_check_lib_save_LIBS |
| 28011 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28012 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 |
| 28013 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 28014 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then |
| 28015 | cat >>confdefs.h <<_ACEOF |
| 28016 | #define HAVE_LIBPTHREAD 1 |
| 28017 | _ACEOF |
| 28018 | |
| 28019 | LIBS="-lpthread $LIBS" |
| 28020 | |
| 28021 | fi |
| 28022 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28023 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
| 28024 | 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] | 28025 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 28026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28027 | else |
| 28028 | ac_func_search_save_LIBS=$LIBS |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28029 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28030 | /* confdefs.h. */ |
| 28031 | _ACEOF |
| 28032 | cat confdefs.h >>conftest.$ac_ext |
| 28033 | cat >>conftest.$ac_ext <<_ACEOF |
| 28034 | /* end confdefs.h. */ |
| 28035 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28036 | /* Override any GCC internal prototype to avoid an error. |
| 28037 | Use char because int might match the return type of a GCC |
| 28038 | builtin and then its argument prototype would still apply. */ |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28039 | #ifdef __cplusplus |
| 28040 | extern "C" |
| 28041 | #endif |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28042 | char pthread_mutex_lock (); |
| 28043 | int |
| 28044 | main () |
| 28045 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28046 | return pthread_mutex_lock (); |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28047 | ; |
| 28048 | return 0; |
| 28049 | } |
| 28050 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28051 | for ac_lib in '' pthread; do |
| 28052 | if test -z "$ac_lib"; then |
| 28053 | ac_res="none required" |
| 28054 | else |
| 28055 | ac_res=-l$ac_lib |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28056 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28057 | fi |
| 28058 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28059 | if { (ac_try="$ac_link" |
| 28060 | case "(($ac_try" in |
| 28061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28062 | *) ac_try_echo=$ac_try;; |
| 28063 | esac |
| 28064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28065 | (eval "$ac_link") 2>conftest.er1 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28066 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28067 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28068 | rm -f conftest.er1 |
| 28069 | cat conftest.err >&5 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 28071 | (exit $ac_status); } && |
| 28072 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28073 | { (case "(($ac_try" in |
| 28074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28075 | *) ac_try_echo=$ac_try;; |
| 28076 | esac |
| 28077 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28078 | (eval "$ac_try") 2>&5 |
| 28079 | ac_status=$? |
| 28080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28081 | (exit $ac_status); }; } && |
| 28082 | { ac_try='test -s conftest$ac_exeext' |
| 28083 | { (case "(($ac_try" in |
| 28084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28085 | *) ac_try_echo=$ac_try;; |
| 28086 | esac |
| 28087 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28088 | (eval "$ac_try") 2>&5 |
| 28089 | ac_status=$? |
| 28090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28091 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28092 | ac_cv_search_pthread_mutex_lock=$ac_res |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28093 | else |
| 28094 | echo "$as_me: failed program was:" >&5 |
| 28095 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28096 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28097 | |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28098 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28099 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 28100 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28101 | conftest$ac_exeext |
| 28102 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 28103 | break |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28104 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28105 | done |
| 28106 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 28107 | : |
| 28108 | else |
| 28109 | ac_cv_search_pthread_mutex_lock=no |
| 28110 | fi |
| 28111 | rm conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28112 | LIBS=$ac_func_search_save_LIBS |
| 28113 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28114 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
| 28115 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } |
| 28116 | ac_res=$ac_cv_search_pthread_mutex_lock |
| 28117 | if test "$ac_res" != no; then |
| 28118 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28119 | |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 28120 | cat >>confdefs.h <<\_ACEOF |
| 28121 | #define HAVE_PTHREAD_MUTEX_LOCK 1 |
| 28122 | _ACEOF |
| 28123 | |
| 28124 | fi |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 28125 | |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 28126 | { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 |
| 28127 | echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } |
| 28128 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 28129 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28130 | else |
| 28131 | ac_func_search_save_LIBS=$LIBS |
| 28132 | cat >conftest.$ac_ext <<_ACEOF |
| 28133 | /* confdefs.h. */ |
| 28134 | _ACEOF |
| 28135 | cat confdefs.h >>conftest.$ac_ext |
| 28136 | cat >>conftest.$ac_ext <<_ACEOF |
| 28137 | /* end confdefs.h. */ |
| 28138 | |
| 28139 | /* Override any GCC internal prototype to avoid an error. |
| 28140 | Use char because int might match the return type of a GCC |
| 28141 | builtin and then its argument prototype would still apply. */ |
| 28142 | #ifdef __cplusplus |
| 28143 | extern "C" |
| 28144 | #endif |
| 28145 | char pthread_rwlock_init (); |
| 28146 | int |
| 28147 | main () |
| 28148 | { |
| 28149 | return pthread_rwlock_init (); |
| 28150 | ; |
| 28151 | return 0; |
| 28152 | } |
| 28153 | _ACEOF |
| 28154 | for ac_lib in '' pthread; do |
| 28155 | if test -z "$ac_lib"; then |
| 28156 | ac_res="none required" |
| 28157 | else |
| 28158 | ac_res=-l$ac_lib |
| 28159 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 28160 | fi |
| 28161 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28162 | if { (ac_try="$ac_link" |
| 28163 | case "(($ac_try" in |
| 28164 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28165 | *) ac_try_echo=$ac_try;; |
| 28166 | esac |
| 28167 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28168 | (eval "$ac_link") 2>conftest.er1 |
| 28169 | ac_status=$? |
| 28170 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28171 | rm -f conftest.er1 |
| 28172 | cat conftest.err >&5 |
| 28173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28174 | (exit $ac_status); } && |
| 28175 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28176 | { (case "(($ac_try" in |
| 28177 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28178 | *) ac_try_echo=$ac_try;; |
| 28179 | esac |
| 28180 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28181 | (eval "$ac_try") 2>&5 |
| 28182 | ac_status=$? |
| 28183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28184 | (exit $ac_status); }; } && |
| 28185 | { ac_try='test -s conftest$ac_exeext' |
| 28186 | { (case "(($ac_try" in |
| 28187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28188 | *) ac_try_echo=$ac_try;; |
| 28189 | esac |
| 28190 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28191 | (eval "$ac_try") 2>&5 |
| 28192 | ac_status=$? |
| 28193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28194 | (exit $ac_status); }; }; then |
| 28195 | ac_cv_search_pthread_rwlock_init=$ac_res |
| 28196 | else |
| 28197 | echo "$as_me: failed program was:" >&5 |
| 28198 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28199 | |
| 28200 | |
| 28201 | fi |
| 28202 | |
| 28203 | rm -f core conftest.err conftest.$ac_objext \ |
| 28204 | conftest$ac_exeext |
| 28205 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 28206 | break |
| 28207 | fi |
| 28208 | done |
| 28209 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 28210 | : |
| 28211 | else |
| 28212 | ac_cv_search_pthread_rwlock_init=no |
| 28213 | fi |
| 28214 | rm conftest.$ac_ext |
| 28215 | LIBS=$ac_func_search_save_LIBS |
| 28216 | fi |
| 28217 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 |
| 28218 | echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } |
| 28219 | ac_res=$ac_cv_search_pthread_rwlock_init |
| 28220 | if test "$ac_res" != no; then |
| 28221 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 28222 | |
| 28223 | cat >>confdefs.h <<\_ACEOF |
| 28224 | #define HAVE_PTHREAD_RWLOCK_INIT 1 |
| 28225 | _ACEOF |
| 28226 | |
| 28227 | fi |
| 28228 | |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 28229 | { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 |
| 28230 | echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } |
| 28231 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 28232 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28233 | else |
| 28234 | ac_func_search_save_LIBS=$LIBS |
| 28235 | cat >conftest.$ac_ext <<_ACEOF |
| 28236 | /* confdefs.h. */ |
| 28237 | _ACEOF |
| 28238 | cat confdefs.h >>conftest.$ac_ext |
| 28239 | cat >>conftest.$ac_ext <<_ACEOF |
| 28240 | /* end confdefs.h. */ |
| 28241 | |
| 28242 | /* Override any GCC internal prototype to avoid an error. |
| 28243 | Use char because int might match the return type of a GCC |
| 28244 | builtin and then its argument prototype would still apply. */ |
| 28245 | #ifdef __cplusplus |
| 28246 | extern "C" |
| 28247 | #endif |
| 28248 | char pthread_getspecific (); |
| 28249 | int |
| 28250 | main () |
| 28251 | { |
| 28252 | return pthread_getspecific (); |
| 28253 | ; |
| 28254 | return 0; |
| 28255 | } |
| 28256 | _ACEOF |
| 28257 | for ac_lib in '' pthread; do |
| 28258 | if test -z "$ac_lib"; then |
| 28259 | ac_res="none required" |
| 28260 | else |
| 28261 | ac_res=-l$ac_lib |
| 28262 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 28263 | fi |
| 28264 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28265 | if { (ac_try="$ac_link" |
| 28266 | case "(($ac_try" in |
| 28267 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28268 | *) ac_try_echo=$ac_try;; |
| 28269 | esac |
| 28270 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28271 | (eval "$ac_link") 2>conftest.er1 |
| 28272 | ac_status=$? |
| 28273 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28274 | rm -f conftest.er1 |
| 28275 | cat conftest.err >&5 |
| 28276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28277 | (exit $ac_status); } && |
| 28278 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28279 | { (case "(($ac_try" in |
| 28280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28281 | *) ac_try_echo=$ac_try;; |
| 28282 | esac |
| 28283 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28284 | (eval "$ac_try") 2>&5 |
| 28285 | ac_status=$? |
| 28286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28287 | (exit $ac_status); }; } && |
| 28288 | { ac_try='test -s conftest$ac_exeext' |
| 28289 | { (case "(($ac_try" in |
| 28290 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28291 | *) ac_try_echo=$ac_try;; |
| 28292 | esac |
| 28293 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28294 | (eval "$ac_try") 2>&5 |
| 28295 | ac_status=$? |
| 28296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28297 | (exit $ac_status); }; }; then |
| 28298 | ac_cv_search_pthread_getspecific=$ac_res |
| 28299 | else |
| 28300 | echo "$as_me: failed program was:" >&5 |
| 28301 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28302 | |
| 28303 | |
| 28304 | fi |
| 28305 | |
| 28306 | rm -f core conftest.err conftest.$ac_objext \ |
| 28307 | conftest$ac_exeext |
| 28308 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 28309 | break |
| 28310 | fi |
| 28311 | done |
| 28312 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 28313 | : |
| 28314 | else |
| 28315 | ac_cv_search_pthread_getspecific=no |
| 28316 | fi |
| 28317 | rm conftest.$ac_ext |
| 28318 | LIBS=$ac_func_search_save_LIBS |
| 28319 | fi |
| 28320 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 |
| 28321 | echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } |
| 28322 | ac_res=$ac_cv_search_pthread_getspecific |
| 28323 | if test "$ac_res" != no; then |
| 28324 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 28325 | |
| 28326 | cat >>confdefs.h <<\_ACEOF |
| 28327 | #define HAVE_PTHREAD_GETSPECIFIC 1 |
| 28328 | _ACEOF |
| 28329 | |
| 28330 | fi |
| 28331 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 28332 | fi |
Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 28333 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28334 | |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 28335 | # Check whether --with-udis86 was given. |
| 28336 | if test "${with_udis86+set}" = set; then |
| 28337 | withval=$with_udis86; |
| 28338 | USE_UDIS86=1 |
| 28339 | |
| 28340 | case "$withval" in |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 28341 | /usr/lib|yes) ;; |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 28342 | *) LDFLAGS="$LDFLAGS -L${withval}" ;; |
| 28343 | esac |
| 28344 | |
| 28345 | { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 |
| 28346 | echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } |
| 28347 | if test "${ac_cv_lib_udis86_ud_init+set}" = set; then |
| 28348 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28349 | else |
| 28350 | ac_check_lib_save_LIBS=$LIBS |
| 28351 | LIBS="-ludis86 $LIBS" |
| 28352 | cat >conftest.$ac_ext <<_ACEOF |
| 28353 | /* confdefs.h. */ |
| 28354 | _ACEOF |
| 28355 | cat confdefs.h >>conftest.$ac_ext |
| 28356 | cat >>conftest.$ac_ext <<_ACEOF |
| 28357 | /* end confdefs.h. */ |
| 28358 | |
| 28359 | /* Override any GCC internal prototype to avoid an error. |
| 28360 | Use char because int might match the return type of a GCC |
| 28361 | builtin and then its argument prototype would still apply. */ |
| 28362 | #ifdef __cplusplus |
| 28363 | extern "C" |
| 28364 | #endif |
| 28365 | char ud_init (); |
| 28366 | int |
| 28367 | main () |
| 28368 | { |
| 28369 | return ud_init (); |
| 28370 | ; |
| 28371 | return 0; |
| 28372 | } |
| 28373 | _ACEOF |
| 28374 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28375 | if { (ac_try="$ac_link" |
| 28376 | case "(($ac_try" in |
| 28377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28378 | *) ac_try_echo=$ac_try;; |
| 28379 | esac |
| 28380 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28381 | (eval "$ac_link") 2>conftest.er1 |
| 28382 | ac_status=$? |
| 28383 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28384 | rm -f conftest.er1 |
| 28385 | cat conftest.err >&5 |
| 28386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 28387 | (exit $ac_status); } && |
| 28388 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28389 | { (case "(($ac_try" in |
| 28390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28391 | *) ac_try_echo=$ac_try;; |
| 28392 | esac |
| 28393 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28394 | (eval "$ac_try") 2>&5 |
| 28395 | ac_status=$? |
| 28396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28397 | (exit $ac_status); }; } && |
| 28398 | { ac_try='test -s conftest$ac_exeext' |
| 28399 | { (case "(($ac_try" in |
| 28400 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28401 | *) ac_try_echo=$ac_try;; |
| 28402 | esac |
| 28403 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28404 | (eval "$ac_try") 2>&5 |
| 28405 | ac_status=$? |
| 28406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28407 | (exit $ac_status); }; }; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 28408 | ac_cv_lib_udis86_ud_init=yes |
| 28409 | else |
| 28410 | echo "$as_me: failed program was:" >&5 |
| 28411 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28412 | |
| 28413 | ac_cv_lib_udis86_ud_init=no |
| 28414 | fi |
| 28415 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 28416 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 28417 | conftest$ac_exeext conftest.$ac_ext |
| 28418 | LIBS=$ac_check_lib_save_LIBS |
| 28419 | fi |
| 28420 | { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 |
| 28421 | echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } |
| 28422 | if test $ac_cv_lib_udis86_ud_init = yes; then |
| 28423 | cat >>confdefs.h <<_ACEOF |
| 28424 | #define HAVE_LIBUDIS86 1 |
| 28425 | _ACEOF |
| 28426 | |
| 28427 | LIBS="-ludis86 $LIBS" |
| 28428 | |
| 28429 | else |
| 28430 | |
| 28431 | echo "Error! You need to have libudis86 around." |
| 28432 | exit -1 |
| 28433 | |
| 28434 | fi |
| 28435 | |
| 28436 | |
| 28437 | else |
| 28438 | USE_UDIS86=0 |
| 28439 | |
| 28440 | fi |
| 28441 | |
| 28442 | |
| 28443 | cat >>confdefs.h <<_ACEOF |
| 28444 | #define USE_UDIS86 $USE_UDIS86 |
| 28445 | _ACEOF |
| 28446 | |
| 28447 | |
| 28448 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 28449 | # Check whether --with-oprofile was given. |
| 28450 | if test "${with_oprofile+set}" = set; then |
| 28451 | withval=$with_oprofile; |
| 28452 | USE_OPROFILE=1 |
| 28453 | |
| 28454 | case "$withval" in |
| 28455 | /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; |
| 28456 | *) llvm_cv_oppath="${withval}/lib/oprofile" |
| 28457 | CPPFLAGS="-I${withval}/include";; |
| 28458 | esac |
| 28459 | LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" |
| 28460 | { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 |
| 28461 | echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } |
| 28462 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 28463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28464 | else |
| 28465 | ac_func_search_save_LIBS=$LIBS |
| 28466 | cat >conftest.$ac_ext <<_ACEOF |
| 28467 | /* confdefs.h. */ |
| 28468 | _ACEOF |
| 28469 | cat confdefs.h >>conftest.$ac_ext |
| 28470 | cat >>conftest.$ac_ext <<_ACEOF |
| 28471 | /* end confdefs.h. */ |
| 28472 | |
| 28473 | /* Override any GCC internal prototype to avoid an error. |
| 28474 | Use char because int might match the return type of a GCC |
| 28475 | builtin and then its argument prototype would still apply. */ |
| 28476 | #ifdef __cplusplus |
| 28477 | extern "C" |
| 28478 | #endif |
| 28479 | char op_open_agent (); |
| 28480 | int |
| 28481 | main () |
| 28482 | { |
| 28483 | return op_open_agent (); |
| 28484 | ; |
| 28485 | return 0; |
| 28486 | } |
| 28487 | _ACEOF |
| 28488 | for ac_lib in '' opagent; do |
| 28489 | if test -z "$ac_lib"; then |
| 28490 | ac_res="none required" |
| 28491 | else |
| 28492 | ac_res=-l$ac_lib |
| 28493 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 28494 | fi |
| 28495 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28496 | if { (ac_try="$ac_link" |
| 28497 | case "(($ac_try" in |
| 28498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28499 | *) ac_try_echo=$ac_try;; |
| 28500 | esac |
| 28501 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28502 | (eval "$ac_link") 2>conftest.er1 |
| 28503 | ac_status=$? |
| 28504 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28505 | rm -f conftest.er1 |
| 28506 | cat conftest.err >&5 |
| 28507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28508 | (exit $ac_status); } && |
| 28509 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28510 | { (case "(($ac_try" in |
| 28511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28512 | *) ac_try_echo=$ac_try;; |
| 28513 | esac |
| 28514 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28515 | (eval "$ac_try") 2>&5 |
| 28516 | ac_status=$? |
| 28517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28518 | (exit $ac_status); }; } && |
| 28519 | { ac_try='test -s conftest$ac_exeext' |
| 28520 | { (case "(($ac_try" in |
| 28521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28522 | *) ac_try_echo=$ac_try;; |
| 28523 | esac |
| 28524 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28525 | (eval "$ac_try") 2>&5 |
| 28526 | ac_status=$? |
| 28527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28528 | (exit $ac_status); }; }; then |
| 28529 | ac_cv_search_op_open_agent=$ac_res |
| 28530 | else |
| 28531 | echo "$as_me: failed program was:" >&5 |
| 28532 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28533 | |
| 28534 | |
| 28535 | fi |
| 28536 | |
| 28537 | rm -f core conftest.err conftest.$ac_objext \ |
| 28538 | conftest$ac_exeext |
| 28539 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 28540 | break |
| 28541 | fi |
| 28542 | done |
| 28543 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 28544 | : |
| 28545 | else |
| 28546 | ac_cv_search_op_open_agent=no |
| 28547 | fi |
| 28548 | rm conftest.$ac_ext |
| 28549 | LIBS=$ac_func_search_save_LIBS |
| 28550 | fi |
| 28551 | { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 |
| 28552 | echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } |
| 28553 | ac_res=$ac_cv_search_op_open_agent |
| 28554 | if test "$ac_res" != no; then |
| 28555 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 28556 | |
| 28557 | else |
| 28558 | |
| 28559 | echo "Error! You need to have libopagent around." |
| 28560 | exit -1 |
| 28561 | |
| 28562 | fi |
| 28563 | |
| 28564 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 28565 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 28566 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 28567 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 28568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28569 | fi |
| 28570 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 28571 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 28572 | else |
| 28573 | # Is the header compilable? |
| 28574 | { echo "$as_me:$LINENO: checking opagent.h usability" >&5 |
| 28575 | echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } |
| 28576 | cat >conftest.$ac_ext <<_ACEOF |
| 28577 | /* confdefs.h. */ |
| 28578 | _ACEOF |
| 28579 | cat confdefs.h >>conftest.$ac_ext |
| 28580 | cat >>conftest.$ac_ext <<_ACEOF |
| 28581 | /* end confdefs.h. */ |
| 28582 | $ac_includes_default |
| 28583 | #include <opagent.h> |
| 28584 | _ACEOF |
| 28585 | rm -f conftest.$ac_objext |
| 28586 | if { (ac_try="$ac_compile" |
| 28587 | case "(($ac_try" in |
| 28588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28589 | *) ac_try_echo=$ac_try;; |
| 28590 | esac |
| 28591 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28592 | (eval "$ac_compile") 2>conftest.er1 |
| 28593 | ac_status=$? |
| 28594 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28595 | rm -f conftest.er1 |
| 28596 | cat conftest.err >&5 |
| 28597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28598 | (exit $ac_status); } && |
| 28599 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28600 | { (case "(($ac_try" in |
| 28601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28602 | *) ac_try_echo=$ac_try;; |
| 28603 | esac |
| 28604 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28605 | (eval "$ac_try") 2>&5 |
| 28606 | ac_status=$? |
| 28607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28608 | (exit $ac_status); }; } && |
| 28609 | { ac_try='test -s conftest.$ac_objext' |
| 28610 | { (case "(($ac_try" in |
| 28611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28612 | *) ac_try_echo=$ac_try;; |
| 28613 | esac |
| 28614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28615 | (eval "$ac_try") 2>&5 |
| 28616 | ac_status=$? |
| 28617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28618 | (exit $ac_status); }; }; then |
| 28619 | ac_header_compiler=yes |
| 28620 | else |
| 28621 | echo "$as_me: failed program was:" >&5 |
| 28622 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28623 | |
| 28624 | ac_header_compiler=no |
| 28625 | fi |
| 28626 | |
| 28627 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28628 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 28629 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 28630 | |
| 28631 | # Is the header present? |
| 28632 | { echo "$as_me:$LINENO: checking opagent.h presence" >&5 |
| 28633 | echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } |
| 28634 | cat >conftest.$ac_ext <<_ACEOF |
| 28635 | /* confdefs.h. */ |
| 28636 | _ACEOF |
| 28637 | cat confdefs.h >>conftest.$ac_ext |
| 28638 | cat >>conftest.$ac_ext <<_ACEOF |
| 28639 | /* end confdefs.h. */ |
| 28640 | #include <opagent.h> |
| 28641 | _ACEOF |
| 28642 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 28643 | case "(($ac_try" in |
| 28644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28645 | *) ac_try_echo=$ac_try;; |
| 28646 | esac |
| 28647 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28648 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 28649 | ac_status=$? |
| 28650 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28651 | rm -f conftest.er1 |
| 28652 | cat conftest.err >&5 |
| 28653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28654 | (exit $ac_status); } >/dev/null; then |
| 28655 | if test -s conftest.err; then |
| 28656 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 28657 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 28658 | else |
| 28659 | ac_cpp_err= |
| 28660 | fi |
| 28661 | else |
| 28662 | ac_cpp_err=yes |
| 28663 | fi |
| 28664 | if test -z "$ac_cpp_err"; then |
| 28665 | ac_header_preproc=yes |
| 28666 | else |
| 28667 | echo "$as_me: failed program was:" >&5 |
| 28668 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28669 | |
| 28670 | ac_header_preproc=no |
| 28671 | fi |
| 28672 | |
| 28673 | rm -f conftest.err conftest.$ac_ext |
| 28674 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 28675 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 28676 | |
| 28677 | # So? What about this header? |
| 28678 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 28679 | yes:no: ) |
| 28680 | { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 28681 | echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 28682 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 |
| 28683 | echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} |
| 28684 | ac_header_preproc=yes |
| 28685 | ;; |
| 28686 | no:yes:* ) |
| 28687 | { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 |
| 28688 | echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} |
| 28689 | { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 |
| 28690 | echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} |
| 28691 | { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 |
| 28692 | echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} |
| 28693 | { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 28694 | echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 28695 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 |
| 28696 | echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} |
| 28697 | { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 |
| 28698 | echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} |
| 28699 | ( cat <<\_ASBOX |
| 28700 | ## ----------------------------------- ## |
| 28701 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 28702 | ## ----------------------------------- ## |
| 28703 | _ASBOX |
| 28704 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 28705 | ;; |
| 28706 | esac |
| 28707 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 28708 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 28709 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 28710 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28711 | else |
| 28712 | ac_cv_header_opagent_h=$ac_header_preproc |
| 28713 | fi |
| 28714 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 28715 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 28716 | |
| 28717 | fi |
| 28718 | if test $ac_cv_header_opagent_h = yes; then |
| 28719 | : |
| 28720 | else |
| 28721 | |
| 28722 | echo "Error! You need to have opagent.h around." |
| 28723 | exit -1 |
| 28724 | |
| 28725 | fi |
| 28726 | |
| 28727 | |
| 28728 | |
| 28729 | else |
| 28730 | |
| 28731 | llvm_cv_old_LIBS="$LIBS" |
| 28732 | LIBS="$LIBS -L/usr/lib/oprofile -Wl,-rpath,/usr/lib/oprofile" |
| 28733 | { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 |
| 28734 | echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } |
| 28735 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 28736 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28737 | else |
| 28738 | ac_func_search_save_LIBS=$LIBS |
| 28739 | cat >conftest.$ac_ext <<_ACEOF |
| 28740 | /* confdefs.h. */ |
| 28741 | _ACEOF |
| 28742 | cat confdefs.h >>conftest.$ac_ext |
| 28743 | cat >>conftest.$ac_ext <<_ACEOF |
| 28744 | /* end confdefs.h. */ |
| 28745 | |
| 28746 | /* Override any GCC internal prototype to avoid an error. |
| 28747 | Use char because int might match the return type of a GCC |
| 28748 | builtin and then its argument prototype would still apply. */ |
| 28749 | #ifdef __cplusplus |
| 28750 | extern "C" |
| 28751 | #endif |
| 28752 | char op_open_agent (); |
| 28753 | int |
| 28754 | main () |
| 28755 | { |
| 28756 | return op_open_agent (); |
| 28757 | ; |
| 28758 | return 0; |
| 28759 | } |
| 28760 | _ACEOF |
| 28761 | for ac_lib in '' opagent; do |
| 28762 | if test -z "$ac_lib"; then |
| 28763 | ac_res="none required" |
| 28764 | else |
| 28765 | ac_res=-l$ac_lib |
| 28766 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 28767 | fi |
| 28768 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28769 | if { (ac_try="$ac_link" |
| 28770 | case "(($ac_try" in |
| 28771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28772 | *) ac_try_echo=$ac_try;; |
| 28773 | esac |
| 28774 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28775 | (eval "$ac_link") 2>conftest.er1 |
| 28776 | ac_status=$? |
| 28777 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28778 | rm -f conftest.er1 |
| 28779 | cat conftest.err >&5 |
| 28780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28781 | (exit $ac_status); } && |
| 28782 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28783 | { (case "(($ac_try" in |
| 28784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28785 | *) ac_try_echo=$ac_try;; |
| 28786 | esac |
| 28787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28788 | (eval "$ac_try") 2>&5 |
| 28789 | ac_status=$? |
| 28790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28791 | (exit $ac_status); }; } && |
| 28792 | { ac_try='test -s conftest$ac_exeext' |
| 28793 | { (case "(($ac_try" in |
| 28794 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28795 | *) ac_try_echo=$ac_try;; |
| 28796 | esac |
| 28797 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28798 | (eval "$ac_try") 2>&5 |
| 28799 | ac_status=$? |
| 28800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28801 | (exit $ac_status); }; }; then |
| 28802 | ac_cv_search_op_open_agent=$ac_res |
| 28803 | else |
| 28804 | echo "$as_me: failed program was:" >&5 |
| 28805 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28806 | |
| 28807 | |
| 28808 | fi |
| 28809 | |
| 28810 | rm -f core conftest.err conftest.$ac_objext \ |
| 28811 | conftest$ac_exeext |
| 28812 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 28813 | break |
| 28814 | fi |
| 28815 | done |
| 28816 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 28817 | : |
| 28818 | else |
| 28819 | ac_cv_search_op_open_agent=no |
| 28820 | fi |
| 28821 | rm conftest.$ac_ext |
| 28822 | LIBS=$ac_func_search_save_LIBS |
| 28823 | fi |
| 28824 | { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 |
| 28825 | echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } |
| 28826 | ac_res=$ac_cv_search_op_open_agent |
| 28827 | if test "$ac_res" != no; then |
| 28828 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 28829 | USE_OPROFILE=1 |
| 28830 | |
| 28831 | else |
| 28832 | LIBS="$llvm_cv_old_LIBS" |
| 28833 | USE_OPROFILE=0 |
| 28834 | |
| 28835 | fi |
| 28836 | |
| 28837 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 28838 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 28839 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 28840 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 28841 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28842 | fi |
| 28843 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 28844 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 28845 | else |
| 28846 | # Is the header compilable? |
| 28847 | { echo "$as_me:$LINENO: checking opagent.h usability" >&5 |
| 28848 | echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } |
| 28849 | cat >conftest.$ac_ext <<_ACEOF |
| 28850 | /* confdefs.h. */ |
| 28851 | _ACEOF |
| 28852 | cat confdefs.h >>conftest.$ac_ext |
| 28853 | cat >>conftest.$ac_ext <<_ACEOF |
| 28854 | /* end confdefs.h. */ |
| 28855 | $ac_includes_default |
| 28856 | #include <opagent.h> |
| 28857 | _ACEOF |
| 28858 | rm -f conftest.$ac_objext |
| 28859 | if { (ac_try="$ac_compile" |
| 28860 | case "(($ac_try" in |
| 28861 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28862 | *) ac_try_echo=$ac_try;; |
| 28863 | esac |
| 28864 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28865 | (eval "$ac_compile") 2>conftest.er1 |
| 28866 | ac_status=$? |
| 28867 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28868 | rm -f conftest.er1 |
| 28869 | cat conftest.err >&5 |
| 28870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28871 | (exit $ac_status); } && |
| 28872 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28873 | { (case "(($ac_try" in |
| 28874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28875 | *) ac_try_echo=$ac_try;; |
| 28876 | esac |
| 28877 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28878 | (eval "$ac_try") 2>&5 |
| 28879 | ac_status=$? |
| 28880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28881 | (exit $ac_status); }; } && |
| 28882 | { ac_try='test -s conftest.$ac_objext' |
| 28883 | { (case "(($ac_try" in |
| 28884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28885 | *) ac_try_echo=$ac_try;; |
| 28886 | esac |
| 28887 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28888 | (eval "$ac_try") 2>&5 |
| 28889 | ac_status=$? |
| 28890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28891 | (exit $ac_status); }; }; then |
| 28892 | ac_header_compiler=yes |
| 28893 | else |
| 28894 | echo "$as_me: failed program was:" >&5 |
| 28895 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28896 | |
| 28897 | ac_header_compiler=no |
| 28898 | fi |
| 28899 | |
| 28900 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28901 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 28902 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 28903 | |
| 28904 | # Is the header present? |
| 28905 | { echo "$as_me:$LINENO: checking opagent.h presence" >&5 |
| 28906 | echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } |
| 28907 | cat >conftest.$ac_ext <<_ACEOF |
| 28908 | /* confdefs.h. */ |
| 28909 | _ACEOF |
| 28910 | cat confdefs.h >>conftest.$ac_ext |
| 28911 | cat >>conftest.$ac_ext <<_ACEOF |
| 28912 | /* end confdefs.h. */ |
| 28913 | #include <opagent.h> |
| 28914 | _ACEOF |
| 28915 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 28916 | case "(($ac_try" in |
| 28917 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28918 | *) ac_try_echo=$ac_try;; |
| 28919 | esac |
| 28920 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28921 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 28922 | ac_status=$? |
| 28923 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28924 | rm -f conftest.er1 |
| 28925 | cat conftest.err >&5 |
| 28926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28927 | (exit $ac_status); } >/dev/null; then |
| 28928 | if test -s conftest.err; then |
| 28929 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 28930 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 28931 | else |
| 28932 | ac_cpp_err= |
| 28933 | fi |
| 28934 | else |
| 28935 | ac_cpp_err=yes |
| 28936 | fi |
| 28937 | if test -z "$ac_cpp_err"; then |
| 28938 | ac_header_preproc=yes |
| 28939 | else |
| 28940 | echo "$as_me: failed program was:" >&5 |
| 28941 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28942 | |
| 28943 | ac_header_preproc=no |
| 28944 | fi |
| 28945 | |
| 28946 | rm -f conftest.err conftest.$ac_ext |
| 28947 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 28948 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 28949 | |
| 28950 | # So? What about this header? |
| 28951 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 28952 | yes:no: ) |
| 28953 | { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 28954 | echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 28955 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 |
| 28956 | echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} |
| 28957 | ac_header_preproc=yes |
| 28958 | ;; |
| 28959 | no:yes:* ) |
| 28960 | { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 |
| 28961 | echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} |
| 28962 | { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 |
| 28963 | echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} |
| 28964 | { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 |
| 28965 | echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} |
| 28966 | { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 28967 | echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 28968 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 |
| 28969 | echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} |
| 28970 | { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 |
| 28971 | echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} |
| 28972 | ( cat <<\_ASBOX |
| 28973 | ## ----------------------------------- ## |
| 28974 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 28975 | ## ----------------------------------- ## |
| 28976 | _ASBOX |
| 28977 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 28978 | ;; |
| 28979 | esac |
| 28980 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 28981 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 28982 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 28983 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28984 | else |
| 28985 | ac_cv_header_opagent_h=$ac_header_preproc |
| 28986 | fi |
| 28987 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 28988 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 28989 | |
| 28990 | fi |
| 28991 | if test $ac_cv_header_opagent_h = yes; then |
| 28992 | : |
| 28993 | else |
| 28994 | |
| 28995 | LIBS="$llvm_cv_old_LIBS" |
| 28996 | USE_OPROFILE=0 |
| 28997 | |
| 28998 | |
| 28999 | fi |
| 29000 | |
| 29001 | |
| 29002 | |
| 29003 | fi |
| 29004 | |
| 29005 | |
| 29006 | cat >>confdefs.h <<_ACEOF |
| 29007 | #define USE_OPROFILE $USE_OPROFILE |
| 29008 | _ACEOF |
| 29009 | |
| 29010 | |
| 29011 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29012 | |
| 29013 | |
| 29014 | |
| 29015 | |
| 29016 | |
| 29017 | ac_header_dirent=no |
| 29018 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 29019 | 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] | 29020 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 29021 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 29022 | 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] | 29023 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29024 | else |
| 29025 | cat >conftest.$ac_ext <<_ACEOF |
| 29026 | /* confdefs.h. */ |
| 29027 | _ACEOF |
| 29028 | cat confdefs.h >>conftest.$ac_ext |
| 29029 | cat >>conftest.$ac_ext <<_ACEOF |
| 29030 | /* end confdefs.h. */ |
| 29031 | #include <sys/types.h> |
| 29032 | #include <$ac_hdr> |
| 29033 | |
| 29034 | int |
| 29035 | main () |
| 29036 | { |
| 29037 | if ((DIR *) 0) |
| 29038 | return 0; |
| 29039 | ; |
| 29040 | return 0; |
| 29041 | } |
| 29042 | _ACEOF |
| 29043 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29044 | if { (ac_try="$ac_compile" |
| 29045 | case "(($ac_try" in |
| 29046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29047 | *) ac_try_echo=$ac_try;; |
| 29048 | esac |
| 29049 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29050 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29051 | ac_status=$? |
| 29052 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29053 | rm -f conftest.er1 |
| 29054 | cat conftest.err >&5 |
| 29055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29056 | (exit $ac_status); } && |
| 29057 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29058 | { (case "(($ac_try" in |
| 29059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29060 | *) ac_try_echo=$ac_try;; |
| 29061 | esac |
| 29062 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29063 | (eval "$ac_try") 2>&5 |
| 29064 | ac_status=$? |
| 29065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29066 | (exit $ac_status); }; } && |
| 29067 | { ac_try='test -s conftest.$ac_objext' |
| 29068 | { (case "(($ac_try" in |
| 29069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29070 | *) ac_try_echo=$ac_try;; |
| 29071 | esac |
| 29072 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29073 | (eval "$ac_try") 2>&5 |
| 29074 | ac_status=$? |
| 29075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29076 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29077 | eval "$as_ac_Header=yes" |
| 29078 | else |
| 29079 | echo "$as_me: failed program was:" >&5 |
| 29080 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29081 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29082 | eval "$as_ac_Header=no" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29083 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29084 | |
| 29085 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29086 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29087 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29088 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29089 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29090 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 29091 | cat >>confdefs.h <<_ACEOF |
| 29092 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 29093 | _ACEOF |
| 29094 | |
| 29095 | ac_header_dirent=$ac_hdr; break |
| 29096 | fi |
| 29097 | |
| 29098 | done |
| 29099 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 29100 | if test $ac_header_dirent = dirent.h; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29101 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 29102 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29103 | if test "${ac_cv_search_opendir+set}" = set; then |
| 29104 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29105 | else |
| 29106 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29107 | cat >conftest.$ac_ext <<_ACEOF |
| 29108 | /* confdefs.h. */ |
| 29109 | _ACEOF |
| 29110 | cat confdefs.h >>conftest.$ac_ext |
| 29111 | cat >>conftest.$ac_ext <<_ACEOF |
| 29112 | /* end confdefs.h. */ |
| 29113 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29114 | /* Override any GCC internal prototype to avoid an error. |
| 29115 | Use char because int might match the return type of a GCC |
| 29116 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29117 | #ifdef __cplusplus |
| 29118 | extern "C" |
| 29119 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29120 | char opendir (); |
| 29121 | int |
| 29122 | main () |
| 29123 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29124 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29125 | ; |
| 29126 | return 0; |
| 29127 | } |
| 29128 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29129 | for ac_lib in '' dir; do |
| 29130 | if test -z "$ac_lib"; then |
| 29131 | ac_res="none required" |
| 29132 | else |
| 29133 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29134 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29135 | fi |
| 29136 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 29137 | if { (ac_try="$ac_link" |
| 29138 | case "(($ac_try" in |
| 29139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29140 | *) ac_try_echo=$ac_try;; |
| 29141 | esac |
| 29142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29143 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29144 | ac_status=$? |
| 29145 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29146 | rm -f conftest.er1 |
| 29147 | cat conftest.err >&5 |
| 29148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29149 | (exit $ac_status); } && |
| 29150 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29151 | { (case "(($ac_try" in |
| 29152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29153 | *) ac_try_echo=$ac_try;; |
| 29154 | esac |
| 29155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29156 | (eval "$ac_try") 2>&5 |
| 29157 | ac_status=$? |
| 29158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29159 | (exit $ac_status); }; } && |
| 29160 | { ac_try='test -s conftest$ac_exeext' |
| 29161 | { (case "(($ac_try" in |
| 29162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29163 | *) ac_try_echo=$ac_try;; |
| 29164 | esac |
| 29165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29166 | (eval "$ac_try") 2>&5 |
| 29167 | ac_status=$? |
| 29168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29169 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29170 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29171 | else |
| 29172 | echo "$as_me: failed program was:" >&5 |
| 29173 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29174 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29175 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29176 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29177 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29178 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29179 | conftest$ac_exeext |
| 29180 | if test "${ac_cv_search_opendir+set}" = set; then |
| 29181 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29182 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29183 | done |
| 29184 | if test "${ac_cv_search_opendir+set}" = set; then |
| 29185 | : |
| 29186 | else |
| 29187 | ac_cv_search_opendir=no |
| 29188 | fi |
| 29189 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29190 | LIBS=$ac_func_search_save_LIBS |
| 29191 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29192 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 29193 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 29194 | ac_res=$ac_cv_search_opendir |
| 29195 | if test "$ac_res" != no; then |
| 29196 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29197 | |
| 29198 | fi |
| 29199 | |
| 29200 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29201 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 29202 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29203 | if test "${ac_cv_search_opendir+set}" = set; then |
| 29204 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29205 | else |
| 29206 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29207 | cat >conftest.$ac_ext <<_ACEOF |
| 29208 | /* confdefs.h. */ |
| 29209 | _ACEOF |
| 29210 | cat confdefs.h >>conftest.$ac_ext |
| 29211 | cat >>conftest.$ac_ext <<_ACEOF |
| 29212 | /* end confdefs.h. */ |
| 29213 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29214 | /* Override any GCC internal prototype to avoid an error. |
| 29215 | Use char because int might match the return type of a GCC |
| 29216 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29217 | #ifdef __cplusplus |
| 29218 | extern "C" |
| 29219 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29220 | char opendir (); |
| 29221 | int |
| 29222 | main () |
| 29223 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29224 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29225 | ; |
| 29226 | return 0; |
| 29227 | } |
| 29228 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29229 | for ac_lib in '' x; do |
| 29230 | if test -z "$ac_lib"; then |
| 29231 | ac_res="none required" |
| 29232 | else |
| 29233 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29234 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29235 | fi |
| 29236 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 29237 | if { (ac_try="$ac_link" |
| 29238 | case "(($ac_try" in |
| 29239 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29240 | *) ac_try_echo=$ac_try;; |
| 29241 | esac |
| 29242 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29243 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29244 | ac_status=$? |
| 29245 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29246 | rm -f conftest.er1 |
| 29247 | cat conftest.err >&5 |
| 29248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29249 | (exit $ac_status); } && |
| 29250 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29251 | { (case "(($ac_try" in |
| 29252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29253 | *) ac_try_echo=$ac_try;; |
| 29254 | esac |
| 29255 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29256 | (eval "$ac_try") 2>&5 |
| 29257 | ac_status=$? |
| 29258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29259 | (exit $ac_status); }; } && |
| 29260 | { ac_try='test -s conftest$ac_exeext' |
| 29261 | { (case "(($ac_try" in |
| 29262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29263 | *) ac_try_echo=$ac_try;; |
| 29264 | esac |
| 29265 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29266 | (eval "$ac_try") 2>&5 |
| 29267 | ac_status=$? |
| 29268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29269 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29270 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29271 | else |
| 29272 | echo "$as_me: failed program was:" >&5 |
| 29273 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29274 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29275 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29276 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29277 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29278 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29279 | conftest$ac_exeext |
| 29280 | if test "${ac_cv_search_opendir+set}" = set; then |
| 29281 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29282 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29283 | done |
| 29284 | if test "${ac_cv_search_opendir+set}" = set; then |
| 29285 | : |
| 29286 | else |
| 29287 | ac_cv_search_opendir=no |
| 29288 | fi |
| 29289 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29290 | LIBS=$ac_func_search_save_LIBS |
| 29291 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29292 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 29293 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 29294 | ac_res=$ac_cv_search_opendir |
| 29295 | if test "$ac_res" != no; then |
| 29296 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29297 | |
| 29298 | fi |
| 29299 | |
| 29300 | fi |
| 29301 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29302 | { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 |
| 29303 | 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] | 29304 | if test "${ac_cv_header_mmap_anon+set}" = set; then |
| 29305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29306 | else |
| 29307 | ac_ext=c |
| 29308 | ac_cpp='$CPP $CPPFLAGS' |
| 29309 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29310 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29311 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29312 | |
| 29313 | cat >conftest.$ac_ext <<_ACEOF |
| 29314 | /* confdefs.h. */ |
| 29315 | _ACEOF |
| 29316 | cat confdefs.h >>conftest.$ac_ext |
| 29317 | cat >>conftest.$ac_ext <<_ACEOF |
| 29318 | /* end confdefs.h. */ |
| 29319 | #include <sys/mman.h> |
| 29320 | #include <unistd.h> |
| 29321 | #include <fcntl.h> |
| 29322 | int |
| 29323 | main () |
| 29324 | { |
| 29325 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); |
| 29326 | ; |
| 29327 | return 0; |
| 29328 | } |
| 29329 | _ACEOF |
| 29330 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29331 | if { (ac_try="$ac_compile" |
| 29332 | case "(($ac_try" in |
| 29333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29334 | *) ac_try_echo=$ac_try;; |
| 29335 | esac |
| 29336 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29337 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29338 | ac_status=$? |
| 29339 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29340 | rm -f conftest.er1 |
| 29341 | cat conftest.err >&5 |
| 29342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29343 | (exit $ac_status); } && |
| 29344 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29345 | { (case "(($ac_try" in |
| 29346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29347 | *) ac_try_echo=$ac_try;; |
| 29348 | esac |
| 29349 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29350 | (eval "$ac_try") 2>&5 |
| 29351 | ac_status=$? |
| 29352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29353 | (exit $ac_status); }; } && |
| 29354 | { ac_try='test -s conftest.$ac_objext' |
| 29355 | { (case "(($ac_try" in |
| 29356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29357 | *) ac_try_echo=$ac_try;; |
| 29358 | esac |
| 29359 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29360 | (eval "$ac_try") 2>&5 |
| 29361 | ac_status=$? |
| 29362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29363 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29364 | ac_cv_header_mmap_anon=yes |
| 29365 | else |
| 29366 | echo "$as_me: failed program was:" >&5 |
| 29367 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29368 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29369 | ac_cv_header_mmap_anon=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29370 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29371 | |
| 29372 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29373 | ac_ext=c |
| 29374 | ac_cpp='$CPP $CPPFLAGS' |
| 29375 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29376 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29377 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29378 | |
| 29379 | |
| 29380 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29381 | { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 |
| 29382 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29383 | if test "$ac_cv_header_mmap_anon" = yes; then |
| 29384 | |
| 29385 | cat >>confdefs.h <<\_ACEOF |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 29386 | #define HAVE_MMAP_ANONYMOUS 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29387 | _ACEOF |
| 29388 | |
| 29389 | fi |
| 29390 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29391 | { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 29392 | 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] | 29393 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 29394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29395 | else |
| 29396 | cat >conftest.$ac_ext <<_ACEOF |
| 29397 | /* confdefs.h. */ |
| 29398 | _ACEOF |
| 29399 | cat confdefs.h >>conftest.$ac_ext |
| 29400 | cat >>conftest.$ac_ext <<_ACEOF |
| 29401 | /* end confdefs.h. */ |
| 29402 | #include <sys/types.h> |
| 29403 | #include <sys/stat.h> |
| 29404 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29405 | #if defined S_ISBLK && defined S_IFDIR |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29406 | # if S_ISBLK (S_IFDIR) |
| 29407 | You lose. |
| 29408 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29409 | #endif |
| 29410 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29411 | #if defined S_ISBLK && defined S_IFCHR |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29412 | # if S_ISBLK (S_IFCHR) |
| 29413 | You lose. |
| 29414 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29415 | #endif |
| 29416 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29417 | #if defined S_ISLNK && defined S_IFREG |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29418 | # if S_ISLNK (S_IFREG) |
| 29419 | You lose. |
| 29420 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29421 | #endif |
| 29422 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29423 | #if defined S_ISSOCK && defined S_IFREG |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29424 | # if S_ISSOCK (S_IFREG) |
| 29425 | You lose. |
| 29426 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29427 | #endif |
| 29428 | |
| 29429 | _ACEOF |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29430 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 29431 | $EGREP "You lose" >/dev/null 2>&1; then |
| 29432 | ac_cv_header_stat_broken=yes |
Mikhail Glushenkov | e850146 | 2009-04-18 09:59:26 +0000 | [diff] [blame] | 29433 | else |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29434 | ac_cv_header_stat_broken=no |
Mikhail Glushenkov | e850146 | 2009-04-18 09:59:26 +0000 | [diff] [blame] | 29435 | fi |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29436 | rm -f conftest* |
Mikhail Glushenkov | e850146 | 2009-04-18 09:59:26 +0000 | [diff] [blame] | 29437 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29438 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29439 | { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 29440 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29441 | if test $ac_cv_header_stat_broken = yes; then |
| 29442 | |
| 29443 | cat >>confdefs.h <<\_ACEOF |
| 29444 | #define STAT_MACROS_BROKEN 1 |
| 29445 | _ACEOF |
| 29446 | |
| 29447 | fi |
| 29448 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29449 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 29450 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29451 | if test "${ac_cv_header_stdc+set}" = set; then |
| 29452 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29453 | else |
| 29454 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29455 | /* confdefs.h. */ |
| 29456 | _ACEOF |
| 29457 | cat confdefs.h >>conftest.$ac_ext |
| 29458 | cat >>conftest.$ac_ext <<_ACEOF |
| 29459 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29460 | #include <stdlib.h> |
| 29461 | #include <stdarg.h> |
| 29462 | #include <string.h> |
| 29463 | #include <float.h> |
| 29464 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29465 | int |
| 29466 | main () |
| 29467 | { |
| 29468 | |
| 29469 | ; |
| 29470 | return 0; |
| 29471 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29472 | _ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29473 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29474 | if { (ac_try="$ac_compile" |
| 29475 | case "(($ac_try" in |
| 29476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29477 | *) ac_try_echo=$ac_try;; |
| 29478 | esac |
| 29479 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29480 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29481 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29482 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29483 | rm -f conftest.er1 |
| 29484 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29486 | (exit $ac_status); } && |
| 29487 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29488 | { (case "(($ac_try" in |
| 29489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29490 | *) ac_try_echo=$ac_try;; |
| 29491 | esac |
| 29492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29493 | (eval "$ac_try") 2>&5 |
| 29494 | ac_status=$? |
| 29495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29496 | (exit $ac_status); }; } && |
| 29497 | { ac_try='test -s conftest.$ac_objext' |
| 29498 | { (case "(($ac_try" in |
| 29499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29500 | *) ac_try_echo=$ac_try;; |
| 29501 | esac |
| 29502 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29503 | (eval "$ac_try") 2>&5 |
| 29504 | ac_status=$? |
| 29505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29506 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29507 | ac_cv_header_stdc=yes |
| 29508 | else |
| 29509 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29510 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29511 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29512 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29513 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29514 | |
| 29515 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29516 | |
| 29517 | if test $ac_cv_header_stdc = yes; then |
| 29518 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 29519 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29520 | /* confdefs.h. */ |
| 29521 | _ACEOF |
| 29522 | cat confdefs.h >>conftest.$ac_ext |
| 29523 | cat >>conftest.$ac_ext <<_ACEOF |
| 29524 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29525 | #include <string.h> |
| 29526 | |
| 29527 | _ACEOF |
| 29528 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29529 | $EGREP "memchr" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29530 | : |
| 29531 | else |
| 29532 | ac_cv_header_stdc=no |
| 29533 | fi |
| 29534 | rm -f conftest* |
| 29535 | |
| 29536 | fi |
| 29537 | |
| 29538 | if test $ac_cv_header_stdc = yes; then |
| 29539 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 29540 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29541 | /* confdefs.h. */ |
| 29542 | _ACEOF |
| 29543 | cat confdefs.h >>conftest.$ac_ext |
| 29544 | cat >>conftest.$ac_ext <<_ACEOF |
| 29545 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29546 | #include <stdlib.h> |
| 29547 | |
| 29548 | _ACEOF |
| 29549 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29550 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29551 | : |
| 29552 | else |
| 29553 | ac_cv_header_stdc=no |
| 29554 | fi |
| 29555 | rm -f conftest* |
| 29556 | |
| 29557 | fi |
| 29558 | |
| 29559 | if test $ac_cv_header_stdc = yes; then |
| 29560 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 29561 | if test "$cross_compiling" = yes; then |
| 29562 | : |
| 29563 | else |
| 29564 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29565 | /* confdefs.h. */ |
| 29566 | _ACEOF |
| 29567 | cat confdefs.h >>conftest.$ac_ext |
| 29568 | cat >>conftest.$ac_ext <<_ACEOF |
| 29569 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29570 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29571 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29572 | #if ((' ' & 0x0FF) == 0x020) |
| 29573 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 29574 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 29575 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29576 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29577 | (('a' <= (c) && (c) <= 'i') \ |
| 29578 | || ('j' <= (c) && (c) <= 'r') \ |
| 29579 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29580 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 29581 | #endif |
| 29582 | |
| 29583 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 29584 | int |
| 29585 | main () |
| 29586 | { |
| 29587 | int i; |
| 29588 | for (i = 0; i < 256; i++) |
| 29589 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29590 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29591 | return 2; |
| 29592 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29593 | } |
| 29594 | _ACEOF |
| 29595 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29596 | if { (ac_try="$ac_link" |
| 29597 | case "(($ac_try" in |
| 29598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29599 | *) ac_try_echo=$ac_try;; |
| 29600 | esac |
| 29601 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29602 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29603 | ac_status=$? |
| 29604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29605 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29606 | { (case "(($ac_try" in |
| 29607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29608 | *) ac_try_echo=$ac_try;; |
| 29609 | esac |
| 29610 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29611 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29612 | ac_status=$? |
| 29613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29614 | (exit $ac_status); }; }; then |
| 29615 | : |
| 29616 | else |
| 29617 | echo "$as_me: program exited with status $ac_status" >&5 |
| 29618 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29619 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29620 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29621 | ( exit $ac_status ) |
| 29622 | ac_cv_header_stdc=no |
| 29623 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29624 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 29625 | fi |
| 29626 | |
| 29627 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29628 | fi |
| 29629 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29630 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 29631 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29632 | if test $ac_cv_header_stdc = yes; then |
| 29633 | |
| 29634 | cat >>confdefs.h <<\_ACEOF |
| 29635 | #define STDC_HEADERS 1 |
| 29636 | _ACEOF |
| 29637 | |
| 29638 | fi |
| 29639 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29640 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 29641 | 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] | 29642 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 29643 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29644 | else |
| 29645 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29646 | /* confdefs.h. */ |
| 29647 | _ACEOF |
| 29648 | cat confdefs.h >>conftest.$ac_ext |
| 29649 | cat >>conftest.$ac_ext <<_ACEOF |
| 29650 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29651 | #include <sys/types.h> |
| 29652 | #include <sys/wait.h> |
| 29653 | #ifndef WEXITSTATUS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29654 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29655 | #endif |
| 29656 | #ifndef WIFEXITED |
| 29657 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 29658 | #endif |
| 29659 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29660 | int |
| 29661 | main () |
| 29662 | { |
| 29663 | int s; |
| 29664 | wait (&s); |
| 29665 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 29666 | ; |
| 29667 | return 0; |
| 29668 | } |
| 29669 | _ACEOF |
| 29670 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29671 | if { (ac_try="$ac_compile" |
| 29672 | case "(($ac_try" in |
| 29673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29674 | *) ac_try_echo=$ac_try;; |
| 29675 | esac |
| 29676 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29677 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29678 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29679 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29680 | rm -f conftest.er1 |
| 29681 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29683 | (exit $ac_status); } && |
| 29684 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29685 | { (case "(($ac_try" in |
| 29686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29687 | *) ac_try_echo=$ac_try;; |
| 29688 | esac |
| 29689 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29690 | (eval "$ac_try") 2>&5 |
| 29691 | ac_status=$? |
| 29692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29693 | (exit $ac_status); }; } && |
| 29694 | { ac_try='test -s conftest.$ac_objext' |
| 29695 | { (case "(($ac_try" in |
| 29696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29697 | *) ac_try_echo=$ac_try;; |
| 29698 | esac |
| 29699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29700 | (eval "$ac_try") 2>&5 |
| 29701 | ac_status=$? |
| 29702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29703 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29704 | ac_cv_header_sys_wait_h=yes |
| 29705 | else |
| 29706 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29707 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29708 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29709 | ac_cv_header_sys_wait_h=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29710 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29711 | |
| 29712 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29713 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29714 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 29715 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29716 | if test $ac_cv_header_sys_wait_h = yes; then |
| 29717 | |
| 29718 | cat >>confdefs.h <<\_ACEOF |
| 29719 | #define HAVE_SYS_WAIT_H 1 |
| 29720 | _ACEOF |
| 29721 | |
| 29722 | fi |
| 29723 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29724 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 29725 | 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] | 29726 | if test "${ac_cv_header_time+set}" = set; then |
| 29727 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29728 | else |
| 29729 | cat >conftest.$ac_ext <<_ACEOF |
| 29730 | /* confdefs.h. */ |
| 29731 | _ACEOF |
| 29732 | cat confdefs.h >>conftest.$ac_ext |
| 29733 | cat >>conftest.$ac_ext <<_ACEOF |
| 29734 | /* end confdefs.h. */ |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29735 | #include <sys/types.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29736 | #include <sys/time.h> |
| 29737 | #include <time.h> |
| 29738 | |
| 29739 | int |
| 29740 | main () |
| 29741 | { |
| 29742 | if ((struct tm *) 0) |
| 29743 | return 0; |
| 29744 | ; |
| 29745 | return 0; |
| 29746 | } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29747 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29748 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29749 | if { (ac_try="$ac_compile" |
| 29750 | case "(($ac_try" in |
| 29751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29752 | *) ac_try_echo=$ac_try;; |
| 29753 | esac |
| 29754 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29755 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29756 | ac_status=$? |
| 29757 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29758 | rm -f conftest.er1 |
| 29759 | cat conftest.err >&5 |
| 29760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29761 | (exit $ac_status); } && |
| 29762 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29763 | { (case "(($ac_try" in |
| 29764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29765 | *) ac_try_echo=$ac_try;; |
| 29766 | esac |
| 29767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29768 | (eval "$ac_try") 2>&5 |
| 29769 | ac_status=$? |
| 29770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29771 | (exit $ac_status); }; } && |
| 29772 | { ac_try='test -s conftest.$ac_objext' |
| 29773 | { (case "(($ac_try" in |
| 29774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29775 | *) ac_try_echo=$ac_try;; |
| 29776 | esac |
| 29777 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29778 | (eval "$ac_try") 2>&5 |
| 29779 | ac_status=$? |
| 29780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29781 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29782 | ac_cv_header_time=yes |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29783 | else |
| 29784 | echo "$as_me: failed program was:" >&5 |
| 29785 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29786 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29787 | ac_cv_header_time=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29788 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29789 | |
| 29790 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29791 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29792 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 29793 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29794 | if test $ac_cv_header_time = yes; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29795 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29796 | cat >>confdefs.h <<\_ACEOF |
| 29797 | #define TIME_WITH_SYS_TIME 1 |
| 29798 | _ACEOF |
| 29799 | |
| 29800 | fi |
| 29801 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29802 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29803 | |
| 29804 | |
| 29805 | |
| 29806 | |
| 29807 | |
| 29808 | |
| 29809 | for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h |
| 29810 | do |
| 29811 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29812 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29813 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29814 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29815 | 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] | 29816 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29817 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29818 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29819 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29820 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29821 | else |
| 29822 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29823 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 29824 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29825 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29826 | /* confdefs.h. */ |
| 29827 | _ACEOF |
| 29828 | cat confdefs.h >>conftest.$ac_ext |
| 29829 | cat >>conftest.$ac_ext <<_ACEOF |
| 29830 | /* end confdefs.h. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29831 | $ac_includes_default |
| 29832 | #include <$ac_header> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29833 | _ACEOF |
| 29834 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29835 | if { (ac_try="$ac_compile" |
| 29836 | case "(($ac_try" in |
| 29837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29838 | *) ac_try_echo=$ac_try;; |
| 29839 | esac |
| 29840 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29841 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29842 | ac_status=$? |
| 29843 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29844 | rm -f conftest.er1 |
| 29845 | cat conftest.err >&5 |
| 29846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29847 | (exit $ac_status); } && |
| 29848 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29849 | { (case "(($ac_try" in |
| 29850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29851 | *) ac_try_echo=$ac_try;; |
| 29852 | esac |
| 29853 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29854 | (eval "$ac_try") 2>&5 |
| 29855 | ac_status=$? |
| 29856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29857 | (exit $ac_status); }; } && |
| 29858 | { ac_try='test -s conftest.$ac_objext' |
| 29859 | { (case "(($ac_try" in |
| 29860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29861 | *) ac_try_echo=$ac_try;; |
| 29862 | esac |
| 29863 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29864 | (eval "$ac_try") 2>&5 |
| 29865 | ac_status=$? |
| 29866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29867 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29868 | ac_header_compiler=yes |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29869 | else |
| 29870 | echo "$as_me: failed program was:" >&5 |
| 29871 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29872 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29873 | ac_header_compiler=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29874 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29875 | |
| 29876 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 29877 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 29878 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29879 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29880 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29881 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 29882 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29883 | cat >conftest.$ac_ext <<_ACEOF |
| 29884 | /* confdefs.h. */ |
| 29885 | _ACEOF |
| 29886 | cat confdefs.h >>conftest.$ac_ext |
| 29887 | cat >>conftest.$ac_ext <<_ACEOF |
| 29888 | /* end confdefs.h. */ |
| 29889 | #include <$ac_header> |
| 29890 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29891 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 29892 | case "(($ac_try" in |
| 29893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29894 | *) ac_try_echo=$ac_try;; |
| 29895 | esac |
| 29896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29897 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29898 | ac_status=$? |
| 29899 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29900 | rm -f conftest.er1 |
| 29901 | cat conftest.err >&5 |
| 29902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 29903 | (exit $ac_status); } >/dev/null; then |
| 29904 | if test -s conftest.err; then |
| 29905 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 29906 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 29907 | else |
| 29908 | ac_cpp_err= |
| 29909 | fi |
| 29910 | else |
| 29911 | ac_cpp_err=yes |
| 29912 | fi |
| 29913 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29914 | ac_header_preproc=yes |
| 29915 | else |
| 29916 | echo "$as_me: failed program was:" >&5 |
| 29917 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29918 | |
| 29919 | ac_header_preproc=no |
| 29920 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29921 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29922 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29923 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 29924 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29925 | |
| 29926 | # So? What about this header? |
| 29927 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 29928 | yes:no: ) |
| 29929 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 29930 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 29931 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 29932 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 29933 | ac_header_preproc=yes |
| 29934 | ;; |
| 29935 | no:yes:* ) |
| 29936 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 29937 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 29938 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 29939 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 29940 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 29941 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 29942 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 29943 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 29944 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 29945 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 29946 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 29947 | 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] | 29948 | ( cat <<\_ASBOX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29949 | ## ----------------------------------- ## |
| 29950 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 29951 | ## ----------------------------------- ## |
| 29952 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29953 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29954 | ;; |
| 29955 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29956 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29957 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29958 | 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] | 29959 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29960 | else |
| 29961 | eval "$as_ac_Header=\$ac_header_preproc" |
| 29962 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29963 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29964 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29965 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29966 | |
| 29967 | fi |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29968 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 29969 | cat >>confdefs.h <<_ACEOF |
| 29970 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29971 | _ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29972 | |
| 29973 | fi |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29974 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29975 | done |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29976 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29977 | |
| 29978 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29979 | |
| 29980 | |
| 29981 | |
| 29982 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 29983 | 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] | 29984 | do |
| 29985 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29986 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29987 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29988 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29989 | 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] | 29990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29991 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29992 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29993 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29994 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29995 | else |
| 29996 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29997 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 29998 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29999 | cat >conftest.$ac_ext <<_ACEOF |
| 30000 | /* confdefs.h. */ |
| 30001 | _ACEOF |
| 30002 | cat confdefs.h >>conftest.$ac_ext |
| 30003 | cat >>conftest.$ac_ext <<_ACEOF |
| 30004 | /* end confdefs.h. */ |
| 30005 | $ac_includes_default |
| 30006 | #include <$ac_header> |
| 30007 | _ACEOF |
| 30008 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30009 | if { (ac_try="$ac_compile" |
| 30010 | case "(($ac_try" in |
| 30011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30012 | *) ac_try_echo=$ac_try;; |
| 30013 | esac |
| 30014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30015 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30016 | ac_status=$? |
| 30017 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30018 | rm -f conftest.er1 |
| 30019 | cat conftest.err >&5 |
| 30020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30021 | (exit $ac_status); } && |
| 30022 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30023 | { (case "(($ac_try" in |
| 30024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30025 | *) ac_try_echo=$ac_try;; |
| 30026 | esac |
| 30027 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30028 | (eval "$ac_try") 2>&5 |
| 30029 | ac_status=$? |
| 30030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30031 | (exit $ac_status); }; } && |
| 30032 | { ac_try='test -s conftest.$ac_objext' |
| 30033 | { (case "(($ac_try" in |
| 30034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30035 | *) ac_try_echo=$ac_try;; |
| 30036 | esac |
| 30037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30038 | (eval "$ac_try") 2>&5 |
| 30039 | ac_status=$? |
| 30040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30041 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30042 | ac_header_compiler=yes |
| 30043 | else |
| 30044 | echo "$as_me: failed program was:" >&5 |
| 30045 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30046 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30047 | ac_header_compiler=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30048 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30049 | |
| 30050 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 30051 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 30052 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30053 | |
| 30054 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30055 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 30056 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30057 | cat >conftest.$ac_ext <<_ACEOF |
| 30058 | /* confdefs.h. */ |
| 30059 | _ACEOF |
| 30060 | cat confdefs.h >>conftest.$ac_ext |
| 30061 | cat >>conftest.$ac_ext <<_ACEOF |
| 30062 | /* end confdefs.h. */ |
| 30063 | #include <$ac_header> |
| 30064 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30065 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 30066 | case "(($ac_try" in |
| 30067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30068 | *) ac_try_echo=$ac_try;; |
| 30069 | esac |
| 30070 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30071 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30072 | ac_status=$? |
| 30073 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30074 | rm -f conftest.er1 |
| 30075 | cat conftest.err >&5 |
| 30076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30077 | (exit $ac_status); } >/dev/null; then |
| 30078 | if test -s conftest.err; then |
| 30079 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 30080 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 30081 | else |
| 30082 | ac_cpp_err= |
| 30083 | fi |
| 30084 | else |
| 30085 | ac_cpp_err=yes |
| 30086 | fi |
| 30087 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30088 | ac_header_preproc=yes |
| 30089 | else |
| 30090 | echo "$as_me: failed program was:" >&5 |
| 30091 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30092 | |
| 30093 | ac_header_preproc=no |
| 30094 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30095 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30096 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30097 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 30098 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30099 | |
| 30100 | # So? What about this header? |
| 30101 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 30102 | yes:no: ) |
| 30103 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 30104 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 30105 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 30106 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 30107 | ac_header_preproc=yes |
| 30108 | ;; |
| 30109 | no:yes:* ) |
| 30110 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 30111 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 30112 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 30113 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 30114 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 30115 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 30116 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 30117 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 30118 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 30119 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 30120 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 30121 | 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] | 30122 | ( cat <<\_ASBOX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30123 | ## ----------------------------------- ## |
| 30124 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 30125 | ## ----------------------------------- ## |
| 30126 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30127 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30128 | ;; |
| 30129 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30130 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30131 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30132 | 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] | 30133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30134 | else |
| 30135 | eval "$as_ac_Header=\$ac_header_preproc" |
| 30136 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30137 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30138 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30139 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30140 | |
| 30141 | fi |
| 30142 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 30143 | cat >>confdefs.h <<_ACEOF |
| 30144 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 30145 | _ACEOF |
| 30146 | |
| 30147 | fi |
| 30148 | |
| 30149 | done |
| 30150 | |
| 30151 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 30152 | |
| 30153 | for ac_header in utime.h windows.h |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30154 | do |
| 30155 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 30156 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30157 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30158 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30159 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30160 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30161 | fi |
| 30162 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30163 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30164 | echo "${ECHO_T}$ac_res" >&6; } |
| 30165 | else |
| 30166 | # Is the header compilable? |
| 30167 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 30168 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 30169 | cat >conftest.$ac_ext <<_ACEOF |
| 30170 | /* confdefs.h. */ |
| 30171 | _ACEOF |
| 30172 | cat confdefs.h >>conftest.$ac_ext |
| 30173 | cat >>conftest.$ac_ext <<_ACEOF |
| 30174 | /* end confdefs.h. */ |
| 30175 | $ac_includes_default |
| 30176 | #include <$ac_header> |
| 30177 | _ACEOF |
| 30178 | rm -f conftest.$ac_objext |
| 30179 | if { (ac_try="$ac_compile" |
| 30180 | case "(($ac_try" in |
| 30181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30182 | *) ac_try_echo=$ac_try;; |
| 30183 | esac |
| 30184 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30185 | (eval "$ac_compile") 2>conftest.er1 |
| 30186 | ac_status=$? |
| 30187 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30188 | rm -f conftest.er1 |
| 30189 | cat conftest.err >&5 |
| 30190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30191 | (exit $ac_status); } && |
| 30192 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30193 | { (case "(($ac_try" in |
| 30194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30195 | *) ac_try_echo=$ac_try;; |
| 30196 | esac |
| 30197 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30198 | (eval "$ac_try") 2>&5 |
| 30199 | ac_status=$? |
| 30200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30201 | (exit $ac_status); }; } && |
| 30202 | { ac_try='test -s conftest.$ac_objext' |
| 30203 | { (case "(($ac_try" in |
| 30204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30205 | *) ac_try_echo=$ac_try;; |
| 30206 | esac |
| 30207 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30208 | (eval "$ac_try") 2>&5 |
| 30209 | ac_status=$? |
| 30210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30211 | (exit $ac_status); }; }; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30212 | ac_header_compiler=yes |
| 30213 | else |
| 30214 | echo "$as_me: failed program was:" >&5 |
| 30215 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30216 | |
| 30217 | ac_header_compiler=no |
| 30218 | fi |
| 30219 | |
| 30220 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 30221 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 30222 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 30223 | |
| 30224 | # Is the header present? |
| 30225 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 30226 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 30227 | cat >conftest.$ac_ext <<_ACEOF |
| 30228 | /* confdefs.h. */ |
| 30229 | _ACEOF |
| 30230 | cat confdefs.h >>conftest.$ac_ext |
| 30231 | cat >>conftest.$ac_ext <<_ACEOF |
| 30232 | /* end confdefs.h. */ |
| 30233 | #include <$ac_header> |
| 30234 | _ACEOF |
| 30235 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 30236 | case "(($ac_try" in |
| 30237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30238 | *) ac_try_echo=$ac_try;; |
| 30239 | esac |
| 30240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30241 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 30242 | ac_status=$? |
| 30243 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30244 | rm -f conftest.er1 |
| 30245 | cat conftest.err >&5 |
| 30246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30247 | (exit $ac_status); } >/dev/null; then |
| 30248 | if test -s conftest.err; then |
| 30249 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 30250 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 30251 | else |
| 30252 | ac_cpp_err= |
| 30253 | fi |
| 30254 | else |
| 30255 | ac_cpp_err=yes |
| 30256 | fi |
| 30257 | if test -z "$ac_cpp_err"; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30258 | ac_header_preproc=yes |
| 30259 | else |
| 30260 | echo "$as_me: failed program was:" >&5 |
| 30261 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30262 | |
| 30263 | ac_header_preproc=no |
| 30264 | fi |
| 30265 | |
| 30266 | rm -f conftest.err conftest.$ac_ext |
| 30267 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 30268 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 30269 | |
| 30270 | # So? What about this header? |
| 30271 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 30272 | yes:no: ) |
| 30273 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 30274 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 30275 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 30276 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 30277 | ac_header_preproc=yes |
| 30278 | ;; |
| 30279 | no:yes:* ) |
| 30280 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 30281 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 30282 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 30283 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 30284 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 30285 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 30286 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 30287 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 30288 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 30289 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 30290 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 30291 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 30292 | ( cat <<\_ASBOX |
| 30293 | ## ----------------------------------- ## |
| 30294 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 30295 | ## ----------------------------------- ## |
| 30296 | _ASBOX |
| 30297 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 30298 | ;; |
| 30299 | esac |
| 30300 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30301 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30302 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30304 | else |
| 30305 | eval "$as_ac_Header=\$ac_header_preproc" |
| 30306 | fi |
| 30307 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30308 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30309 | echo "${ECHO_T}$ac_res" >&6; } |
| 30310 | |
| 30311 | fi |
| 30312 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 30313 | cat >>confdefs.h <<_ACEOF |
| 30314 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 30315 | _ACEOF |
| 30316 | |
| 30317 | fi |
| 30318 | |
| 30319 | done |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30320 | |
| 30321 | |
| 30322 | |
| 30323 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30324 | |
| 30325 | 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] | 30326 | do |
| 30327 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30328 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30329 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30330 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30331 | 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] | 30332 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30333 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30334 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30335 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30336 | echo "${ECHO_T}$ac_res" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30337 | else |
| 30338 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30339 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 30340 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30341 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30342 | /* confdefs.h. */ |
| 30343 | _ACEOF |
| 30344 | cat confdefs.h >>conftest.$ac_ext |
| 30345 | cat >>conftest.$ac_ext <<_ACEOF |
| 30346 | /* end confdefs.h. */ |
| 30347 | $ac_includes_default |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30348 | #include <$ac_header> |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30349 | _ACEOF |
| 30350 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30351 | if { (ac_try="$ac_compile" |
| 30352 | case "(($ac_try" in |
| 30353 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30354 | *) ac_try_echo=$ac_try;; |
| 30355 | esac |
| 30356 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30357 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30358 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30359 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30360 | rm -f conftest.er1 |
| 30361 | cat conftest.err >&5 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30363 | (exit $ac_status); } && |
| 30364 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30365 | { (case "(($ac_try" in |
| 30366 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30367 | *) ac_try_echo=$ac_try;; |
| 30368 | esac |
| 30369 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30370 | (eval "$ac_try") 2>&5 |
| 30371 | ac_status=$? |
| 30372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30373 | (exit $ac_status); }; } && |
| 30374 | { ac_try='test -s conftest.$ac_objext' |
| 30375 | { (case "(($ac_try" in |
| 30376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30377 | *) ac_try_echo=$ac_try;; |
| 30378 | esac |
| 30379 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30380 | (eval "$ac_try") 2>&5 |
| 30381 | ac_status=$? |
| 30382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30383 | (exit $ac_status); }; }; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30384 | ac_header_compiler=yes |
| 30385 | else |
| 30386 | echo "$as_me: failed program was:" >&5 |
| 30387 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30388 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30389 | ac_header_compiler=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30390 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30391 | |
| 30392 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 30393 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 30394 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30395 | |
| 30396 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30397 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 30398 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30399 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30400 | /* confdefs.h. */ |
| 30401 | _ACEOF |
| 30402 | cat confdefs.h >>conftest.$ac_ext |
| 30403 | cat >>conftest.$ac_ext <<_ACEOF |
| 30404 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30405 | #include <$ac_header> |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30406 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30407 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 30408 | case "(($ac_try" in |
| 30409 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30410 | *) ac_try_echo=$ac_try;; |
| 30411 | esac |
| 30412 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30413 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30414 | ac_status=$? |
| 30415 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30416 | rm -f conftest.er1 |
| 30417 | cat conftest.err >&5 |
| 30418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30419 | (exit $ac_status); } >/dev/null; then |
| 30420 | if test -s conftest.err; then |
| 30421 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 30422 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 30423 | else |
| 30424 | ac_cpp_err= |
| 30425 | fi |
| 30426 | else |
| 30427 | ac_cpp_err=yes |
| 30428 | fi |
| 30429 | if test -z "$ac_cpp_err"; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30430 | ac_header_preproc=yes |
| 30431 | else |
| 30432 | echo "$as_me: failed program was:" >&5 |
| 30433 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30434 | |
| 30435 | ac_header_preproc=no |
| 30436 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30437 | |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30438 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30439 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 30440 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30441 | |
| 30442 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30443 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 30444 | yes:no: ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30445 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 30446 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 30447 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 30448 | 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] | 30449 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 30450 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30451 | no:yes:* ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30452 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 30453 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 30454 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 30455 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 30456 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 30457 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 30458 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 30459 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 30460 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 30461 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 30462 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 30463 | 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] | 30464 | ( cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30465 | ## ----------------------------------- ## |
| 30466 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 30467 | ## ----------------------------------- ## |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30468 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30469 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30470 | ;; |
| 30471 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30472 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30473 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30474 | 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] | 30475 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30476 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30477 | eval "$as_ac_Header=\$ac_header_preproc" |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30478 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30479 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30480 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30481 | echo "${ECHO_T}$ac_res" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 30482 | |
| 30483 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30484 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 30485 | cat >>confdefs.h <<_ACEOF |
| 30486 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 30487 | _ACEOF |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 30488 | |
| 30489 | fi |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 30490 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30491 | done |
| 30492 | |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 30493 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30494 | |
Reid Spencer | a6d990a | 2006-09-14 06:17:21 +0000 | [diff] [blame] | 30495 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 30496 | |
| 30497 | 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] | 30498 | do |
| 30499 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30500 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30501 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30502 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30503 | 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] | 30504 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30505 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30506 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30507 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30508 | echo "${ECHO_T}$ac_res" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30509 | else |
| 30510 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30511 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 30512 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30513 | cat >conftest.$ac_ext <<_ACEOF |
| 30514 | /* confdefs.h. */ |
| 30515 | _ACEOF |
| 30516 | cat confdefs.h >>conftest.$ac_ext |
| 30517 | cat >>conftest.$ac_ext <<_ACEOF |
| 30518 | /* end confdefs.h. */ |
| 30519 | $ac_includes_default |
| 30520 | #include <$ac_header> |
| 30521 | _ACEOF |
| 30522 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30523 | if { (ac_try="$ac_compile" |
| 30524 | case "(($ac_try" in |
| 30525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30526 | *) ac_try_echo=$ac_try;; |
| 30527 | esac |
| 30528 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30529 | (eval "$ac_compile") 2>conftest.er1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30530 | ac_status=$? |
| 30531 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30532 | rm -f conftest.er1 |
| 30533 | cat conftest.err >&5 |
| 30534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30535 | (exit $ac_status); } && |
| 30536 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30537 | { (case "(($ac_try" in |
| 30538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30539 | *) ac_try_echo=$ac_try;; |
| 30540 | esac |
| 30541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30542 | (eval "$ac_try") 2>&5 |
| 30543 | ac_status=$? |
| 30544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30545 | (exit $ac_status); }; } && |
| 30546 | { ac_try='test -s conftest.$ac_objext' |
| 30547 | { (case "(($ac_try" in |
| 30548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30549 | *) ac_try_echo=$ac_try;; |
| 30550 | esac |
| 30551 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30552 | (eval "$ac_try") 2>&5 |
| 30553 | ac_status=$? |
| 30554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30555 | (exit $ac_status); }; }; then |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30556 | ac_header_compiler=yes |
| 30557 | else |
| 30558 | echo "$as_me: failed program was:" >&5 |
| 30559 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30560 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30561 | ac_header_compiler=no |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30562 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30563 | |
| 30564 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 30565 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 30566 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30567 | |
| 30568 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30569 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 30570 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30571 | cat >conftest.$ac_ext <<_ACEOF |
| 30572 | /* confdefs.h. */ |
| 30573 | _ACEOF |
| 30574 | cat confdefs.h >>conftest.$ac_ext |
| 30575 | cat >>conftest.$ac_ext <<_ACEOF |
| 30576 | /* end confdefs.h. */ |
| 30577 | #include <$ac_header> |
| 30578 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30579 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 30580 | case "(($ac_try" in |
| 30581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30582 | *) ac_try_echo=$ac_try;; |
| 30583 | esac |
| 30584 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30585 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30586 | ac_status=$? |
| 30587 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30588 | rm -f conftest.er1 |
| 30589 | cat conftest.err >&5 |
| 30590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30591 | (exit $ac_status); } >/dev/null; then |
| 30592 | if test -s conftest.err; then |
| 30593 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 30594 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 30595 | else |
| 30596 | ac_cpp_err= |
| 30597 | fi |
| 30598 | else |
| 30599 | ac_cpp_err=yes |
| 30600 | fi |
| 30601 | if test -z "$ac_cpp_err"; then |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30602 | ac_header_preproc=yes |
| 30603 | else |
| 30604 | echo "$as_me: failed program was:" >&5 |
| 30605 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30606 | |
| 30607 | ac_header_preproc=no |
| 30608 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30609 | |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30610 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30611 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 30612 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30613 | |
| 30614 | # So? What about this header? |
| 30615 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 30616 | yes:no: ) |
| 30617 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 30618 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 30619 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 30620 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 30621 | ac_header_preproc=yes |
| 30622 | ;; |
| 30623 | no:yes:* ) |
| 30624 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 30625 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 30626 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 30627 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 30628 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 30629 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 30630 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 30631 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 30632 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 30633 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 30634 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 30635 | 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] | 30636 | ( cat <<\_ASBOX |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30637 | ## ----------------------------------- ## |
| 30638 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 30639 | ## ----------------------------------- ## |
| 30640 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30641 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30642 | ;; |
| 30643 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30644 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30645 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30646 | 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] | 30647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30648 | else |
| 30649 | eval "$as_ac_Header=\$ac_header_preproc" |
| 30650 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30651 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30652 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30653 | echo "${ECHO_T}$ac_res" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30654 | |
| 30655 | fi |
| 30656 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 30657 | cat >>confdefs.h <<_ACEOF |
| 30658 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 30659 | _ACEOF |
| 30660 | |
| 30661 | fi |
| 30662 | |
| 30663 | done |
| 30664 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30665 | if test "$ENABLE_THREADS" -eq 1 ; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30666 | |
| 30667 | for ac_header in pthread.h |
| 30668 | do |
| 30669 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 30670 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30671 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30672 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30673 | 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] | 30674 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30675 | fi |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30676 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30677 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30678 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30679 | else |
| 30680 | # Is the header compilable? |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30681 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 30682 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30683 | cat >conftest.$ac_ext <<_ACEOF |
| 30684 | /* confdefs.h. */ |
| 30685 | _ACEOF |
| 30686 | cat confdefs.h >>conftest.$ac_ext |
| 30687 | cat >>conftest.$ac_ext <<_ACEOF |
| 30688 | /* end confdefs.h. */ |
| 30689 | $ac_includes_default |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30690 | #include <$ac_header> |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30691 | _ACEOF |
| 30692 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30693 | if { (ac_try="$ac_compile" |
| 30694 | case "(($ac_try" in |
| 30695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30696 | *) ac_try_echo=$ac_try;; |
| 30697 | esac |
| 30698 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30699 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30700 | ac_status=$? |
| 30701 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30702 | rm -f conftest.er1 |
| 30703 | cat conftest.err >&5 |
| 30704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30705 | (exit $ac_status); } && |
| 30706 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30707 | { (case "(($ac_try" in |
| 30708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30709 | *) ac_try_echo=$ac_try;; |
| 30710 | esac |
| 30711 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30712 | (eval "$ac_try") 2>&5 |
| 30713 | ac_status=$? |
| 30714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30715 | (exit $ac_status); }; } && |
| 30716 | { ac_try='test -s conftest.$ac_objext' |
| 30717 | { (case "(($ac_try" in |
| 30718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30719 | *) ac_try_echo=$ac_try;; |
| 30720 | esac |
| 30721 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30722 | (eval "$ac_try") 2>&5 |
| 30723 | ac_status=$? |
| 30724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30725 | (exit $ac_status); }; }; then |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30726 | ac_header_compiler=yes |
| 30727 | else |
| 30728 | echo "$as_me: failed program was:" >&5 |
| 30729 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30730 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30731 | ac_header_compiler=no |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30732 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30733 | |
| 30734 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 30735 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 30736 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30737 | |
| 30738 | # Is the header present? |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30739 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 30740 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30741 | cat >conftest.$ac_ext <<_ACEOF |
| 30742 | /* confdefs.h. */ |
| 30743 | _ACEOF |
| 30744 | cat confdefs.h >>conftest.$ac_ext |
| 30745 | cat >>conftest.$ac_ext <<_ACEOF |
| 30746 | /* end confdefs.h. */ |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30747 | #include <$ac_header> |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30748 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30749 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 30750 | case "(($ac_try" in |
| 30751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30752 | *) ac_try_echo=$ac_try;; |
| 30753 | esac |
| 30754 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30755 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30756 | ac_status=$? |
| 30757 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30758 | rm -f conftest.er1 |
| 30759 | cat conftest.err >&5 |
| 30760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30761 | (exit $ac_status); } >/dev/null; then |
| 30762 | if test -s conftest.err; then |
| 30763 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 30764 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 30765 | else |
| 30766 | ac_cpp_err= |
| 30767 | fi |
| 30768 | else |
| 30769 | ac_cpp_err=yes |
| 30770 | fi |
| 30771 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30772 | ac_header_preproc=yes |
| 30773 | else |
| 30774 | echo "$as_me: failed program was:" >&5 |
| 30775 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30776 | |
| 30777 | ac_header_preproc=no |
| 30778 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30779 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30780 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30781 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 30782 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30783 | |
| 30784 | # So? What about this header? |
| 30785 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 30786 | yes:no: ) |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30787 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 30788 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 30789 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 30790 | 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] | 30791 | ac_header_preproc=yes |
| 30792 | ;; |
| 30793 | no:yes:* ) |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30794 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 30795 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 30796 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 30797 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 30798 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 30799 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 30800 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 30801 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 30802 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 30803 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 30804 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 30805 | 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] | 30806 | ( cat <<\_ASBOX |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30807 | ## ----------------------------------- ## |
| 30808 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 30809 | ## ----------------------------------- ## |
| 30810 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30811 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30812 | ;; |
| 30813 | esac |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30814 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30815 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30816 | 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] | 30817 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30818 | else |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30819 | eval "$as_ac_Header=\$ac_header_preproc" |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30820 | fi |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30821 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30822 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30823 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30824 | |
| 30825 | fi |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30826 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 30827 | cat >>confdefs.h <<_ACEOF |
| 30828 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 30829 | _ACEOF |
| 30830 | HAVE_PTHREAD=1 |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 30831 | |
| 30832 | else |
| 30833 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30834 | |
| 30835 | fi |
| 30836 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 30837 | done |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 30838 | |
| 30839 | else |
| 30840 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 30841 | |
| 30842 | fi |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 30843 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 30844 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 30845 | |
| 30846 | |
| 30847 | for ac_header in ffi.h ffi/ffi.h |
| 30848 | do |
| 30849 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 30850 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30851 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30852 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30853 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30854 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30855 | fi |
| 30856 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 30857 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30858 | echo "${ECHO_T}$ac_res" >&6; } |
| 30859 | else |
| 30860 | # Is the header compilable? |
| 30861 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 30862 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 30863 | cat >conftest.$ac_ext <<_ACEOF |
| 30864 | /* confdefs.h. */ |
| 30865 | _ACEOF |
| 30866 | cat confdefs.h >>conftest.$ac_ext |
| 30867 | cat >>conftest.$ac_ext <<_ACEOF |
| 30868 | /* end confdefs.h. */ |
| 30869 | $ac_includes_default |
| 30870 | #include <$ac_header> |
| 30871 | _ACEOF |
| 30872 | rm -f conftest.$ac_objext |
| 30873 | if { (ac_try="$ac_compile" |
| 30874 | case "(($ac_try" in |
| 30875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30876 | *) ac_try_echo=$ac_try;; |
| 30877 | esac |
| 30878 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30879 | (eval "$ac_compile") 2>conftest.er1 |
| 30880 | ac_status=$? |
| 30881 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30882 | rm -f conftest.er1 |
| 30883 | cat conftest.err >&5 |
| 30884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30885 | (exit $ac_status); } && |
| 30886 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30887 | { (case "(($ac_try" in |
| 30888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30889 | *) ac_try_echo=$ac_try;; |
| 30890 | esac |
| 30891 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30892 | (eval "$ac_try") 2>&5 |
| 30893 | ac_status=$? |
| 30894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30895 | (exit $ac_status); }; } && |
| 30896 | { ac_try='test -s conftest.$ac_objext' |
| 30897 | { (case "(($ac_try" in |
| 30898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30899 | *) ac_try_echo=$ac_try;; |
| 30900 | esac |
| 30901 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30902 | (eval "$ac_try") 2>&5 |
| 30903 | ac_status=$? |
| 30904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30905 | (exit $ac_status); }; }; then |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 30906 | ac_header_compiler=yes |
| 30907 | else |
| 30908 | echo "$as_me: failed program was:" >&5 |
| 30909 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30910 | |
| 30911 | ac_header_compiler=no |
| 30912 | fi |
| 30913 | |
| 30914 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 30915 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 30916 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 30917 | |
| 30918 | # Is the header present? |
| 30919 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 30920 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 30921 | cat >conftest.$ac_ext <<_ACEOF |
| 30922 | /* confdefs.h. */ |
| 30923 | _ACEOF |
| 30924 | cat confdefs.h >>conftest.$ac_ext |
| 30925 | cat >>conftest.$ac_ext <<_ACEOF |
| 30926 | /* end confdefs.h. */ |
| 30927 | #include <$ac_header> |
| 30928 | _ACEOF |
| 30929 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 30930 | case "(($ac_try" in |
| 30931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30932 | *) ac_try_echo=$ac_try;; |
| 30933 | esac |
| 30934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30935 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 30936 | ac_status=$? |
| 30937 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30938 | rm -f conftest.er1 |
| 30939 | cat conftest.err >&5 |
| 30940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 30941 | (exit $ac_status); } >/dev/null; then |
| 30942 | if test -s conftest.err; then |
| 30943 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 30944 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 30945 | else |
| 30946 | ac_cpp_err= |
| 30947 | fi |
| 30948 | else |
| 30949 | ac_cpp_err=yes |
| 30950 | fi |
| 30951 | if test -z "$ac_cpp_err"; then |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 30952 | ac_header_preproc=yes |
| 30953 | else |
| 30954 | echo "$as_me: failed program was:" >&5 |
| 30955 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30956 | |
| 30957 | ac_header_preproc=no |
| 30958 | fi |
| 30959 | |
| 30960 | rm -f conftest.err conftest.$ac_ext |
| 30961 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 30962 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 30963 | |
| 30964 | # So? What about this header? |
| 30965 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 30966 | yes:no: ) |
| 30967 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 30968 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 30969 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 30970 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 30971 | ac_header_preproc=yes |
| 30972 | ;; |
| 30973 | no:yes:* ) |
| 30974 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 30975 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 30976 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 30977 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 30978 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 30979 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 30980 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 30981 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 30982 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 30983 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 30984 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 30985 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 30986 | ( cat <<\_ASBOX |
| 30987 | ## ----------------------------------- ## |
| 30988 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 30989 | ## ----------------------------------- ## |
| 30990 | _ASBOX |
| 30991 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 30992 | ;; |
| 30993 | esac |
| 30994 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 30995 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 30996 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30998 | else |
| 30999 | eval "$as_ac_Header=\$ac_header_preproc" |
| 31000 | fi |
| 31001 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 31002 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 31003 | echo "${ECHO_T}$ac_res" >&6; } |
| 31004 | |
| 31005 | fi |
| 31006 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 31007 | cat >>confdefs.h <<_ACEOF |
| 31008 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 31009 | _ACEOF |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 31010 | |
| 31011 | fi |
| 31012 | |
| 31013 | done |
| 31014 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 31015 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 31016 | |
Nick Lewycky | 2ab1d86 | 2009-01-20 00:52:24 +0000 | [diff] [blame] | 31017 | |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 31018 | |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 31019 | { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 |
| 31020 | echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } |
| 31021 | if test "${ac_cv_huge_val_sanity+set}" = set; then |
| 31022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31023 | else |
| 31024 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 31025 | ac_ext=cpp |
| 31026 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31027 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31028 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31029 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 31030 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 31031 | CXXFLAGS=-pedantic |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 31032 | if test "$cross_compiling" = yes; then |
| 31033 | ac_cv_huge_val_sanity=yes |
| 31034 | else |
| 31035 | cat >conftest.$ac_ext <<_ACEOF |
| 31036 | /* confdefs.h. */ |
| 31037 | _ACEOF |
| 31038 | cat confdefs.h >>conftest.$ac_ext |
| 31039 | cat >>conftest.$ac_ext <<_ACEOF |
| 31040 | /* end confdefs.h. */ |
| 31041 | #include <math.h> |
| 31042 | int |
| 31043 | main () |
| 31044 | { |
| 31045 | double x = HUGE_VAL; return x != x; |
| 31046 | ; |
| 31047 | return 0; |
| 31048 | } |
| 31049 | _ACEOF |
| 31050 | rm -f conftest$ac_exeext |
| 31051 | if { (ac_try="$ac_link" |
| 31052 | case "(($ac_try" in |
| 31053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31054 | *) ac_try_echo=$ac_try;; |
| 31055 | esac |
| 31056 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31057 | (eval "$ac_link") 2>&5 |
| 31058 | ac_status=$? |
| 31059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31060 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 31061 | { (case "(($ac_try" in |
| 31062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31063 | *) ac_try_echo=$ac_try;; |
| 31064 | esac |
| 31065 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31066 | (eval "$ac_try") 2>&5 |
| 31067 | ac_status=$? |
| 31068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31069 | (exit $ac_status); }; }; then |
| 31070 | ac_cv_huge_val_sanity=yes |
| 31071 | else |
| 31072 | echo "$as_me: program exited with status $ac_status" >&5 |
| 31073 | echo "$as_me: failed program was:" >&5 |
| 31074 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31075 | |
| 31076 | ( exit $ac_status ) |
| 31077 | ac_cv_huge_val_sanity=no |
| 31078 | fi |
| 31079 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 31080 | fi |
| 31081 | |
| 31082 | |
| 31083 | ac_ext=c |
| 31084 | ac_cpp='$CPP $CPPFLAGS' |
| 31085 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31086 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31087 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31088 | |
| 31089 | |
| 31090 | fi |
| 31091 | { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 |
| 31092 | echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } |
| 31093 | HUGE_VAL_SANITY=$ac_cv_huge_val_sanity |
| 31094 | |
| 31095 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31096 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 31097 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31098 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 31099 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31100 | else |
| 31101 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31102 | /* confdefs.h. */ |
| 31103 | _ACEOF |
| 31104 | cat confdefs.h >>conftest.$ac_ext |
| 31105 | cat >>conftest.$ac_ext <<_ACEOF |
| 31106 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31107 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31108 | typedef pid_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31109 | int |
| 31110 | main () |
| 31111 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31112 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31113 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31114 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31115 | return 0; |
| 31116 | ; |
| 31117 | return 0; |
| 31118 | } |
| 31119 | _ACEOF |
| 31120 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31121 | if { (ac_try="$ac_compile" |
| 31122 | case "(($ac_try" in |
| 31123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31124 | *) ac_try_echo=$ac_try;; |
| 31125 | esac |
| 31126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31127 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31128 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31129 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31130 | rm -f conftest.er1 |
| 31131 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31133 | (exit $ac_status); } && |
| 31134 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31135 | { (case "(($ac_try" in |
| 31136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31137 | *) ac_try_echo=$ac_try;; |
| 31138 | esac |
| 31139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31140 | (eval "$ac_try") 2>&5 |
| 31141 | ac_status=$? |
| 31142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31143 | (exit $ac_status); }; } && |
| 31144 | { ac_try='test -s conftest.$ac_objext' |
| 31145 | { (case "(($ac_try" in |
| 31146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31147 | *) ac_try_echo=$ac_try;; |
| 31148 | esac |
| 31149 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31150 | (eval "$ac_try") 2>&5 |
| 31151 | ac_status=$? |
| 31152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31153 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31154 | ac_cv_type_pid_t=yes |
| 31155 | else |
| 31156 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31157 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31158 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31159 | ac_cv_type_pid_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31160 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31161 | |
| 31162 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31163 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31164 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 31165 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31166 | if test $ac_cv_type_pid_t = yes; then |
| 31167 | : |
| 31168 | else |
| 31169 | |
| 31170 | cat >>confdefs.h <<_ACEOF |
| 31171 | #define pid_t int |
| 31172 | _ACEOF |
| 31173 | |
| 31174 | fi |
| 31175 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31176 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 31177 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31178 | if test "${ac_cv_type_size_t+set}" = set; then |
| 31179 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31180 | else |
| 31181 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31182 | /* confdefs.h. */ |
| 31183 | _ACEOF |
| 31184 | cat confdefs.h >>conftest.$ac_ext |
| 31185 | cat >>conftest.$ac_ext <<_ACEOF |
| 31186 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31187 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31188 | typedef size_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31189 | int |
| 31190 | main () |
| 31191 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31192 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31193 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31194 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31195 | return 0; |
| 31196 | ; |
| 31197 | return 0; |
| 31198 | } |
| 31199 | _ACEOF |
| 31200 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31201 | if { (ac_try="$ac_compile" |
| 31202 | case "(($ac_try" in |
| 31203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31204 | *) ac_try_echo=$ac_try;; |
| 31205 | esac |
| 31206 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31207 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31208 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31209 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31210 | rm -f conftest.er1 |
| 31211 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31213 | (exit $ac_status); } && |
| 31214 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31215 | { (case "(($ac_try" in |
| 31216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31217 | *) ac_try_echo=$ac_try;; |
| 31218 | esac |
| 31219 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31220 | (eval "$ac_try") 2>&5 |
| 31221 | ac_status=$? |
| 31222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31223 | (exit $ac_status); }; } && |
| 31224 | { ac_try='test -s conftest.$ac_objext' |
| 31225 | { (case "(($ac_try" in |
| 31226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31227 | *) ac_try_echo=$ac_try;; |
| 31228 | esac |
| 31229 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31230 | (eval "$ac_try") 2>&5 |
| 31231 | ac_status=$? |
| 31232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31233 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31234 | ac_cv_type_size_t=yes |
| 31235 | else |
| 31236 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31237 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31238 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31239 | ac_cv_type_size_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31240 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31241 | |
| 31242 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31243 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31244 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 31245 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31246 | if test $ac_cv_type_size_t = yes; then |
| 31247 | : |
| 31248 | else |
| 31249 | |
| 31250 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31251 | #define size_t unsigned int |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31252 | _ACEOF |
| 31253 | |
| 31254 | fi |
| 31255 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31256 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 31257 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31258 | if test "${ac_cv_type_signal+set}" = set; then |
| 31259 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31260 | else |
| 31261 | cat >conftest.$ac_ext <<_ACEOF |
| 31262 | /* confdefs.h. */ |
| 31263 | _ACEOF |
| 31264 | cat confdefs.h >>conftest.$ac_ext |
| 31265 | cat >>conftest.$ac_ext <<_ACEOF |
| 31266 | /* end confdefs.h. */ |
| 31267 | #include <sys/types.h> |
| 31268 | #include <signal.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31269 | |
| 31270 | int |
| 31271 | main () |
| 31272 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31273 | return *(signal (0, 0)) (0) == 1; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31274 | ; |
| 31275 | return 0; |
| 31276 | } |
| 31277 | _ACEOF |
| 31278 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31279 | if { (ac_try="$ac_compile" |
| 31280 | case "(($ac_try" in |
| 31281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31282 | *) ac_try_echo=$ac_try;; |
| 31283 | esac |
| 31284 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31285 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31286 | ac_status=$? |
| 31287 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31288 | rm -f conftest.er1 |
| 31289 | cat conftest.err >&5 |
| 31290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31291 | (exit $ac_status); } && |
| 31292 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31293 | { (case "(($ac_try" in |
| 31294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31295 | *) ac_try_echo=$ac_try;; |
| 31296 | esac |
| 31297 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31298 | (eval "$ac_try") 2>&5 |
| 31299 | ac_status=$? |
| 31300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31301 | (exit $ac_status); }; } && |
| 31302 | { ac_try='test -s conftest.$ac_objext' |
| 31303 | { (case "(($ac_try" in |
| 31304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31305 | *) ac_try_echo=$ac_try;; |
| 31306 | esac |
| 31307 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31308 | (eval "$ac_try") 2>&5 |
| 31309 | ac_status=$? |
| 31310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31311 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31312 | ac_cv_type_signal=int |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31313 | else |
| 31314 | echo "$as_me: failed program was:" >&5 |
| 31315 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31316 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31317 | ac_cv_type_signal=void |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31318 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31319 | |
| 31320 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31321 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31322 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 31323 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31324 | |
| 31325 | cat >>confdefs.h <<_ACEOF |
| 31326 | #define RETSIGTYPE $ac_cv_type_signal |
| 31327 | _ACEOF |
| 31328 | |
| 31329 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31330 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 31331 | 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] | 31332 | if test "${ac_cv_struct_tm+set}" = set; then |
| 31333 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31334 | else |
| 31335 | cat >conftest.$ac_ext <<_ACEOF |
| 31336 | /* confdefs.h. */ |
| 31337 | _ACEOF |
| 31338 | cat confdefs.h >>conftest.$ac_ext |
| 31339 | cat >>conftest.$ac_ext <<_ACEOF |
| 31340 | /* end confdefs.h. */ |
| 31341 | #include <sys/types.h> |
| 31342 | #include <time.h> |
| 31343 | |
| 31344 | int |
| 31345 | main () |
| 31346 | { |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31347 | struct tm *tp; tp->tm_sec; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31348 | ; |
| 31349 | return 0; |
| 31350 | } |
| 31351 | _ACEOF |
| 31352 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31353 | if { (ac_try="$ac_compile" |
| 31354 | case "(($ac_try" in |
| 31355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31356 | *) ac_try_echo=$ac_try;; |
| 31357 | esac |
| 31358 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31359 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31360 | ac_status=$? |
| 31361 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31362 | rm -f conftest.er1 |
| 31363 | cat conftest.err >&5 |
| 31364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31365 | (exit $ac_status); } && |
| 31366 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31367 | { (case "(($ac_try" in |
| 31368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31369 | *) ac_try_echo=$ac_try;; |
| 31370 | esac |
| 31371 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31372 | (eval "$ac_try") 2>&5 |
| 31373 | ac_status=$? |
| 31374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31375 | (exit $ac_status); }; } && |
| 31376 | { ac_try='test -s conftest.$ac_objext' |
| 31377 | { (case "(($ac_try" in |
| 31378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31379 | *) ac_try_echo=$ac_try;; |
| 31380 | esac |
| 31381 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31382 | (eval "$ac_try") 2>&5 |
| 31383 | ac_status=$? |
| 31384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31385 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31386 | ac_cv_struct_tm=time.h |
| 31387 | else |
| 31388 | echo "$as_me: failed program was:" >&5 |
| 31389 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31390 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31391 | ac_cv_struct_tm=sys/time.h |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31392 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31393 | |
| 31394 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31395 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31396 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 31397 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31398 | if test $ac_cv_struct_tm = sys/time.h; then |
| 31399 | |
| 31400 | cat >>confdefs.h <<\_ACEOF |
| 31401 | #define TM_IN_SYS_TIME 1 |
| 31402 | _ACEOF |
| 31403 | |
| 31404 | fi |
| 31405 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31406 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 31407 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31408 | if test "${ac_cv_type_int64_t+set}" = set; then |
| 31409 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31410 | else |
| 31411 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31412 | /* confdefs.h. */ |
| 31413 | _ACEOF |
| 31414 | cat confdefs.h >>conftest.$ac_ext |
| 31415 | cat >>conftest.$ac_ext <<_ACEOF |
| 31416 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31417 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31418 | typedef int64_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31419 | int |
| 31420 | main () |
| 31421 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31422 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31423 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31424 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31425 | return 0; |
| 31426 | ; |
| 31427 | return 0; |
| 31428 | } |
| 31429 | _ACEOF |
| 31430 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31431 | if { (ac_try="$ac_compile" |
| 31432 | case "(($ac_try" in |
| 31433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31434 | *) ac_try_echo=$ac_try;; |
| 31435 | esac |
| 31436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31437 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31438 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31439 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31440 | rm -f conftest.er1 |
| 31441 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31443 | (exit $ac_status); } && |
| 31444 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31445 | { (case "(($ac_try" in |
| 31446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31447 | *) ac_try_echo=$ac_try;; |
| 31448 | esac |
| 31449 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31450 | (eval "$ac_try") 2>&5 |
| 31451 | ac_status=$? |
| 31452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31453 | (exit $ac_status); }; } && |
| 31454 | { ac_try='test -s conftest.$ac_objext' |
| 31455 | { (case "(($ac_try" in |
| 31456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31457 | *) ac_try_echo=$ac_try;; |
| 31458 | esac |
| 31459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31460 | (eval "$ac_try") 2>&5 |
| 31461 | ac_status=$? |
| 31462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31463 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31464 | ac_cv_type_int64_t=yes |
| 31465 | else |
| 31466 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31467 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31468 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31469 | ac_cv_type_int64_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31470 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31471 | |
| 31472 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31473 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31474 | { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 31475 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31476 | if test $ac_cv_type_int64_t = yes; then |
| 31477 | |
| 31478 | cat >>confdefs.h <<_ACEOF |
| 31479 | #define HAVE_INT64_T 1 |
| 31480 | _ACEOF |
| 31481 | |
| 31482 | |
| 31483 | else |
| 31484 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 |
| 31485 | echo "$as_me: error: Type int64_t required but not found" >&2;} |
| 31486 | { (exit 1); exit 1; }; } |
| 31487 | fi |
| 31488 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31489 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 31490 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31491 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 31492 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31493 | else |
| 31494 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31495 | /* confdefs.h. */ |
| 31496 | _ACEOF |
| 31497 | cat confdefs.h >>conftest.$ac_ext |
| 31498 | cat >>conftest.$ac_ext <<_ACEOF |
| 31499 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31500 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31501 | typedef uint64_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31502 | int |
| 31503 | main () |
| 31504 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31505 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31506 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31507 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31508 | return 0; |
| 31509 | ; |
| 31510 | return 0; |
| 31511 | } |
| 31512 | _ACEOF |
| 31513 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31514 | if { (ac_try="$ac_compile" |
| 31515 | case "(($ac_try" in |
| 31516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31517 | *) ac_try_echo=$ac_try;; |
| 31518 | esac |
| 31519 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31520 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31521 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31522 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31523 | rm -f conftest.er1 |
| 31524 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31526 | (exit $ac_status); } && |
| 31527 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31528 | { (case "(($ac_try" in |
| 31529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31530 | *) ac_try_echo=$ac_try;; |
| 31531 | esac |
| 31532 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31533 | (eval "$ac_try") 2>&5 |
| 31534 | ac_status=$? |
| 31535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31536 | (exit $ac_status); }; } && |
| 31537 | { ac_try='test -s conftest.$ac_objext' |
| 31538 | { (case "(($ac_try" in |
| 31539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31540 | *) ac_try_echo=$ac_try;; |
| 31541 | esac |
| 31542 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31543 | (eval "$ac_try") 2>&5 |
| 31544 | ac_status=$? |
| 31545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31546 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31547 | ac_cv_type_uint64_t=yes |
| 31548 | else |
| 31549 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31550 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31551 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31552 | ac_cv_type_uint64_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31553 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31554 | |
| 31555 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31556 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31557 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 31558 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31559 | if test $ac_cv_type_uint64_t = yes; then |
| 31560 | |
| 31561 | cat >>confdefs.h <<_ACEOF |
| 31562 | #define HAVE_UINT64_T 1 |
| 31563 | _ACEOF |
| 31564 | |
| 31565 | |
| 31566 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31567 | { echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
| 31568 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31569 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
| 31570 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31571 | else |
| 31572 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31573 | /* confdefs.h. */ |
| 31574 | _ACEOF |
| 31575 | cat confdefs.h >>conftest.$ac_ext |
| 31576 | cat >>conftest.$ac_ext <<_ACEOF |
| 31577 | /* end confdefs.h. */ |
| 31578 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31579 | typedef u_int64_t ac__type_new_; |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31580 | int |
| 31581 | main () |
| 31582 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31583 | if ((ac__type_new_ *) 0) |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31584 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31585 | if (sizeof (ac__type_new_)) |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31586 | return 0; |
| 31587 | ; |
| 31588 | return 0; |
| 31589 | } |
| 31590 | _ACEOF |
| 31591 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31592 | if { (ac_try="$ac_compile" |
| 31593 | case "(($ac_try" in |
| 31594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31595 | *) ac_try_echo=$ac_try;; |
| 31596 | esac |
| 31597 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31598 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31599 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31600 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31601 | rm -f conftest.er1 |
| 31602 | cat conftest.err >&5 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31604 | (exit $ac_status); } && |
| 31605 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31606 | { (case "(($ac_try" in |
| 31607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31608 | *) ac_try_echo=$ac_try;; |
| 31609 | esac |
| 31610 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31611 | (eval "$ac_try") 2>&5 |
| 31612 | ac_status=$? |
| 31613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31614 | (exit $ac_status); }; } && |
| 31615 | { ac_try='test -s conftest.$ac_objext' |
| 31616 | { (case "(($ac_try" in |
| 31617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31618 | *) ac_try_echo=$ac_try;; |
| 31619 | esac |
| 31620 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31621 | (eval "$ac_try") 2>&5 |
| 31622 | ac_status=$? |
| 31623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31624 | (exit $ac_status); }; }; then |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31625 | ac_cv_type_u_int64_t=yes |
| 31626 | else |
| 31627 | echo "$as_me: failed program was:" >&5 |
| 31628 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31629 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31630 | ac_cv_type_u_int64_t=no |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31631 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31632 | |
| 31633 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31634 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31635 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
| 31636 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31637 | if test $ac_cv_type_u_int64_t = yes; then |
| 31638 | |
| 31639 | cat >>confdefs.h <<_ACEOF |
| 31640 | #define HAVE_U_INT64_T 1 |
| 31641 | _ACEOF |
| 31642 | |
| 31643 | |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 31644 | else |
| 31645 | { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 |
| 31646 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} |
| 31647 | { (exit 1); exit 1; }; } |
| 31648 | fi |
| 31649 | |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 31650 | fi |
| 31651 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31652 | |
| 31653 | |
| 31654 | |
| 31655 | |
| 31656 | |
| 31657 | |
| 31658 | |
Reid Spencer | f4bb9b1 | 2006-01-19 08:22:40 +0000 | [diff] [blame] | 31659 | |
| 31660 | |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 31661 | for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31662 | do |
| 31663 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31664 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 31665 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 31666 | 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] | 31667 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31668 | else |
| 31669 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31670 | /* confdefs.h. */ |
| 31671 | _ACEOF |
| 31672 | cat confdefs.h >>conftest.$ac_ext |
| 31673 | cat >>conftest.$ac_ext <<_ACEOF |
| 31674 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31675 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 31676 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 31677 | #define $ac_func innocuous_$ac_func |
| 31678 | |
| 31679 | /* System header to define __stub macros and hopefully few prototypes, |
| 31680 | which can conflict with char $ac_func (); below. |
| 31681 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 31682 | <limits.h> exists even on freestanding compilers. */ |
| 31683 | |
| 31684 | #ifdef __STDC__ |
| 31685 | # include <limits.h> |
| 31686 | #else |
| 31687 | # include <assert.h> |
| 31688 | #endif |
| 31689 | |
| 31690 | #undef $ac_func |
| 31691 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31692 | /* Override any GCC internal prototype to avoid an error. |
| 31693 | Use char because int might match the return type of a GCC |
| 31694 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31695 | #ifdef __cplusplus |
| 31696 | extern "C" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31697 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31698 | char $ac_func (); |
| 31699 | /* The GNU C library defines this for functions which it implements |
| 31700 | to always fail with ENOSYS. Some functions are actually named |
| 31701 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31702 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31703 | choke me |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31704 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31705 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31706 | int |
| 31707 | main () |
| 31708 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31709 | return $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31710 | ; |
| 31711 | return 0; |
| 31712 | } |
| 31713 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31714 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31715 | if { (ac_try="$ac_link" |
| 31716 | case "(($ac_try" in |
| 31717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31718 | *) ac_try_echo=$ac_try;; |
| 31719 | esac |
| 31720 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31721 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31722 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31723 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31724 | rm -f conftest.er1 |
| 31725 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31727 | (exit $ac_status); } && |
| 31728 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31729 | { (case "(($ac_try" in |
| 31730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31731 | *) ac_try_echo=$ac_try;; |
| 31732 | esac |
| 31733 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31734 | (eval "$ac_try") 2>&5 |
| 31735 | ac_status=$? |
| 31736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31737 | (exit $ac_status); }; } && |
| 31738 | { ac_try='test -s conftest$ac_exeext' |
| 31739 | { (case "(($ac_try" in |
| 31740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31741 | *) ac_try_echo=$ac_try;; |
| 31742 | esac |
| 31743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31744 | (eval "$ac_try") 2>&5 |
| 31745 | ac_status=$? |
| 31746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31747 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31748 | eval "$as_ac_var=yes" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31749 | else |
| 31750 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31751 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31752 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31753 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31754 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31755 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31756 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31757 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31758 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31759 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 31760 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 31761 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31762 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 31763 | cat >>confdefs.h <<_ACEOF |
| 31764 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31765 | _ACEOF |
| 31766 | |
| 31767 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31768 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31769 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31770 | |
| 31771 | |
| 31772 | |
Reid Spencer | 6af3d26 | 2004-12-15 04:01:48 +0000 | [diff] [blame] | 31773 | |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 31774 | for ac_func in powf fmodf strtof round |
| 31775 | do |
| 31776 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 31777 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 31778 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 31779 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 31780 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31781 | else |
| 31782 | cat >conftest.$ac_ext <<_ACEOF |
| 31783 | /* confdefs.h. */ |
| 31784 | _ACEOF |
| 31785 | cat confdefs.h >>conftest.$ac_ext |
| 31786 | cat >>conftest.$ac_ext <<_ACEOF |
| 31787 | /* end confdefs.h. */ |
| 31788 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 31789 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 31790 | #define $ac_func innocuous_$ac_func |
| 31791 | |
| 31792 | /* System header to define __stub macros and hopefully few prototypes, |
| 31793 | which can conflict with char $ac_func (); below. |
| 31794 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 31795 | <limits.h> exists even on freestanding compilers. */ |
| 31796 | |
| 31797 | #ifdef __STDC__ |
| 31798 | # include <limits.h> |
| 31799 | #else |
| 31800 | # include <assert.h> |
| 31801 | #endif |
| 31802 | |
| 31803 | #undef $ac_func |
| 31804 | |
| 31805 | /* Override any GCC internal prototype to avoid an error. |
| 31806 | Use char because int might match the return type of a GCC |
| 31807 | builtin and then its argument prototype would still apply. */ |
| 31808 | #ifdef __cplusplus |
| 31809 | extern "C" |
| 31810 | #endif |
| 31811 | char $ac_func (); |
| 31812 | /* The GNU C library defines this for functions which it implements |
| 31813 | to always fail with ENOSYS. Some functions are actually named |
| 31814 | something starting with __ and the normal name is an alias. */ |
| 31815 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 31816 | choke me |
| 31817 | #endif |
| 31818 | |
| 31819 | int |
| 31820 | main () |
| 31821 | { |
| 31822 | return $ac_func (); |
| 31823 | ; |
| 31824 | return 0; |
| 31825 | } |
| 31826 | _ACEOF |
| 31827 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 31828 | if { (ac_try="$ac_link" |
| 31829 | case "(($ac_try" in |
| 31830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31831 | *) ac_try_echo=$ac_try;; |
| 31832 | esac |
| 31833 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31834 | (eval "$ac_link") 2>conftest.er1 |
| 31835 | ac_status=$? |
| 31836 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31837 | rm -f conftest.er1 |
| 31838 | cat conftest.err >&5 |
| 31839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31840 | (exit $ac_status); } && |
| 31841 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31842 | { (case "(($ac_try" in |
| 31843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31844 | *) ac_try_echo=$ac_try;; |
| 31845 | esac |
| 31846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31847 | (eval "$ac_try") 2>&5 |
| 31848 | ac_status=$? |
| 31849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31850 | (exit $ac_status); }; } && |
| 31851 | { ac_try='test -s conftest$ac_exeext' |
| 31852 | { (case "(($ac_try" in |
| 31853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31854 | *) ac_try_echo=$ac_try;; |
| 31855 | esac |
| 31856 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31857 | (eval "$ac_try") 2>&5 |
| 31858 | ac_status=$? |
| 31859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31860 | (exit $ac_status); }; }; then |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 31861 | eval "$as_ac_var=yes" |
| 31862 | else |
| 31863 | echo "$as_me: failed program was:" >&5 |
| 31864 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31865 | |
| 31866 | eval "$as_ac_var=no" |
| 31867 | fi |
| 31868 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31869 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 31870 | conftest$ac_exeext conftest.$ac_ext |
| 31871 | fi |
| 31872 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 31873 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 31874 | echo "${ECHO_T}$ac_res" >&6; } |
| 31875 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 31876 | cat >>confdefs.h <<_ACEOF |
| 31877 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 31878 | _ACEOF |
| 31879 | |
| 31880 | fi |
| 31881 | done |
| 31882 | |
| 31883 | |
| 31884 | |
| 31885 | |
| 31886 | |
Reid Spencer | 6af3d26 | 2004-12-15 04:01:48 +0000 | [diff] [blame] | 31887 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 31888 | for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday |
| 31889 | do |
| 31890 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 31891 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 31892 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 31893 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 31894 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31895 | else |
| 31896 | cat >conftest.$ac_ext <<_ACEOF |
| 31897 | /* confdefs.h. */ |
| 31898 | _ACEOF |
| 31899 | cat confdefs.h >>conftest.$ac_ext |
| 31900 | cat >>conftest.$ac_ext <<_ACEOF |
| 31901 | /* end confdefs.h. */ |
| 31902 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 31903 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 31904 | #define $ac_func innocuous_$ac_func |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 31905 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 31906 | /* System header to define __stub macros and hopefully few prototypes, |
| 31907 | which can conflict with char $ac_func (); below. |
| 31908 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 31909 | <limits.h> exists even on freestanding compilers. */ |
| 31910 | |
| 31911 | #ifdef __STDC__ |
| 31912 | # include <limits.h> |
| 31913 | #else |
| 31914 | # include <assert.h> |
| 31915 | #endif |
| 31916 | |
| 31917 | #undef $ac_func |
| 31918 | |
| 31919 | /* Override any GCC internal prototype to avoid an error. |
| 31920 | Use char because int might match the return type of a GCC |
| 31921 | builtin and then its argument prototype would still apply. */ |
| 31922 | #ifdef __cplusplus |
| 31923 | extern "C" |
| 31924 | #endif |
| 31925 | char $ac_func (); |
| 31926 | /* The GNU C library defines this for functions which it implements |
| 31927 | to always fail with ENOSYS. Some functions are actually named |
| 31928 | something starting with __ and the normal name is an alias. */ |
| 31929 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 31930 | choke me |
| 31931 | #endif |
| 31932 | |
| 31933 | int |
| 31934 | main () |
| 31935 | { |
| 31936 | return $ac_func (); |
| 31937 | ; |
| 31938 | return 0; |
| 31939 | } |
| 31940 | _ACEOF |
| 31941 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 31942 | if { (ac_try="$ac_link" |
| 31943 | case "(($ac_try" in |
| 31944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31945 | *) ac_try_echo=$ac_try;; |
| 31946 | esac |
| 31947 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31948 | (eval "$ac_link") 2>conftest.er1 |
| 31949 | ac_status=$? |
| 31950 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31951 | rm -f conftest.er1 |
| 31952 | cat conftest.err >&5 |
| 31953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31954 | (exit $ac_status); } && |
| 31955 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31956 | { (case "(($ac_try" in |
| 31957 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31958 | *) ac_try_echo=$ac_try;; |
| 31959 | esac |
| 31960 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31961 | (eval "$ac_try") 2>&5 |
| 31962 | ac_status=$? |
| 31963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31964 | (exit $ac_status); }; } && |
| 31965 | { ac_try='test -s conftest$ac_exeext' |
| 31966 | { (case "(($ac_try" in |
| 31967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31968 | *) ac_try_echo=$ac_try;; |
| 31969 | esac |
| 31970 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31971 | (eval "$ac_try") 2>&5 |
| 31972 | ac_status=$? |
| 31973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31974 | (exit $ac_status); }; }; then |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 31975 | eval "$as_ac_var=yes" |
| 31976 | else |
| 31977 | echo "$as_me: failed program was:" >&5 |
| 31978 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31979 | |
| 31980 | eval "$as_ac_var=no" |
| 31981 | fi |
| 31982 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 31983 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 31984 | conftest$ac_exeext conftest.$ac_ext |
| 31985 | fi |
| 31986 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 31987 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 31988 | echo "${ECHO_T}$ac_res" >&6; } |
| 31989 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 31990 | cat >>confdefs.h <<_ACEOF |
| 31991 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 31992 | _ACEOF |
| 31993 | |
| 31994 | fi |
| 31995 | done |
| 31996 | |
| 31997 | |
| 31998 | |
| 31999 | |
| 32000 | for ac_func in isatty mkdtemp mkstemp |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32001 | do |
| 32002 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32003 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 32004 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 32005 | 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] | 32006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32007 | else |
| 32008 | cat >conftest.$ac_ext <<_ACEOF |
| 32009 | /* confdefs.h. */ |
| 32010 | _ACEOF |
| 32011 | cat confdefs.h >>conftest.$ac_ext |
| 32012 | cat >>conftest.$ac_ext <<_ACEOF |
| 32013 | /* end confdefs.h. */ |
| 32014 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 32015 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 32016 | #define $ac_func innocuous_$ac_func |
| 32017 | |
| 32018 | /* System header to define __stub macros and hopefully few prototypes, |
| 32019 | which can conflict with char $ac_func (); below. |
| 32020 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 32021 | <limits.h> exists even on freestanding compilers. */ |
| 32022 | |
| 32023 | #ifdef __STDC__ |
| 32024 | # include <limits.h> |
| 32025 | #else |
| 32026 | # include <assert.h> |
| 32027 | #endif |
| 32028 | |
| 32029 | #undef $ac_func |
| 32030 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32031 | /* Override any GCC internal prototype to avoid an error. |
| 32032 | Use char because int might match the return type of a GCC |
| 32033 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32034 | #ifdef __cplusplus |
| 32035 | extern "C" |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32036 | #endif |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32037 | char $ac_func (); |
| 32038 | /* The GNU C library defines this for functions which it implements |
| 32039 | to always fail with ENOSYS. Some functions are actually named |
| 32040 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32041 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32042 | choke me |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32043 | #endif |
| 32044 | |
| 32045 | int |
| 32046 | main () |
| 32047 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32048 | return $ac_func (); |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32049 | ; |
| 32050 | return 0; |
| 32051 | } |
| 32052 | _ACEOF |
| 32053 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32054 | if { (ac_try="$ac_link" |
| 32055 | case "(($ac_try" in |
| 32056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32057 | *) ac_try_echo=$ac_try;; |
| 32058 | esac |
| 32059 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32060 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32061 | ac_status=$? |
| 32062 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32063 | rm -f conftest.er1 |
| 32064 | cat conftest.err >&5 |
| 32065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32066 | (exit $ac_status); } && |
| 32067 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32068 | { (case "(($ac_try" in |
| 32069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32070 | *) ac_try_echo=$ac_try;; |
| 32071 | esac |
| 32072 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32073 | (eval "$ac_try") 2>&5 |
| 32074 | ac_status=$? |
| 32075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32076 | (exit $ac_status); }; } && |
| 32077 | { ac_try='test -s conftest$ac_exeext' |
| 32078 | { (case "(($ac_try" in |
| 32079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32080 | *) ac_try_echo=$ac_try;; |
| 32081 | esac |
| 32082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32083 | (eval "$ac_try") 2>&5 |
| 32084 | ac_status=$? |
| 32085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32086 | (exit $ac_status); }; }; then |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32087 | eval "$as_ac_var=yes" |
| 32088 | else |
| 32089 | echo "$as_me: failed program was:" >&5 |
| 32090 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32091 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32092 | eval "$as_ac_var=no" |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32093 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32094 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32095 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32096 | conftest$ac_exeext conftest.$ac_ext |
| 32097 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32098 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 32099 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 32100 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32101 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 32102 | cat >>confdefs.h <<_ACEOF |
| 32103 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 32104 | _ACEOF |
| 32105 | |
| 32106 | fi |
| 32107 | done |
| 32108 | |
| 32109 | |
| 32110 | |
| 32111 | |
| 32112 | |
| 32113 | |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 32114 | for ac_func in mktemp realpath sbrk setrlimit strdup |
| 32115 | do |
| 32116 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 32117 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 32118 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 32119 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 32120 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32121 | else |
| 32122 | cat >conftest.$ac_ext <<_ACEOF |
| 32123 | /* confdefs.h. */ |
| 32124 | _ACEOF |
| 32125 | cat confdefs.h >>conftest.$ac_ext |
| 32126 | cat >>conftest.$ac_ext <<_ACEOF |
| 32127 | /* end confdefs.h. */ |
| 32128 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 32129 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 32130 | #define $ac_func innocuous_$ac_func |
| 32131 | |
| 32132 | /* System header to define __stub macros and hopefully few prototypes, |
| 32133 | which can conflict with char $ac_func (); below. |
| 32134 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 32135 | <limits.h> exists even on freestanding compilers. */ |
| 32136 | |
| 32137 | #ifdef __STDC__ |
| 32138 | # include <limits.h> |
| 32139 | #else |
| 32140 | # include <assert.h> |
| 32141 | #endif |
| 32142 | |
| 32143 | #undef $ac_func |
| 32144 | |
| 32145 | /* Override any GCC internal prototype to avoid an error. |
| 32146 | Use char because int might match the return type of a GCC |
| 32147 | builtin and then its argument prototype would still apply. */ |
| 32148 | #ifdef __cplusplus |
| 32149 | extern "C" |
| 32150 | #endif |
| 32151 | char $ac_func (); |
| 32152 | /* The GNU C library defines this for functions which it implements |
| 32153 | to always fail with ENOSYS. Some functions are actually named |
| 32154 | something starting with __ and the normal name is an alias. */ |
| 32155 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 32156 | choke me |
| 32157 | #endif |
| 32158 | |
| 32159 | int |
| 32160 | main () |
| 32161 | { |
| 32162 | return $ac_func (); |
| 32163 | ; |
| 32164 | return 0; |
| 32165 | } |
| 32166 | _ACEOF |
| 32167 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 32168 | if { (ac_try="$ac_link" |
| 32169 | case "(($ac_try" in |
| 32170 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32171 | *) ac_try_echo=$ac_try;; |
| 32172 | esac |
| 32173 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32174 | (eval "$ac_link") 2>conftest.er1 |
| 32175 | ac_status=$? |
| 32176 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32177 | rm -f conftest.er1 |
| 32178 | cat conftest.err >&5 |
| 32179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32180 | (exit $ac_status); } && |
| 32181 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32182 | { (case "(($ac_try" in |
| 32183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32184 | *) ac_try_echo=$ac_try;; |
| 32185 | esac |
| 32186 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32187 | (eval "$ac_try") 2>&5 |
| 32188 | ac_status=$? |
| 32189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32190 | (exit $ac_status); }; } && |
| 32191 | { ac_try='test -s conftest$ac_exeext' |
| 32192 | { (case "(($ac_try" in |
| 32193 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32194 | *) ac_try_echo=$ac_try;; |
| 32195 | esac |
| 32196 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32197 | (eval "$ac_try") 2>&5 |
| 32198 | ac_status=$? |
| 32199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32200 | (exit $ac_status); }; }; then |
| 32201 | eval "$as_ac_var=yes" |
| 32202 | else |
| 32203 | echo "$as_me: failed program was:" >&5 |
| 32204 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32205 | |
| 32206 | eval "$as_ac_var=no" |
| 32207 | fi |
| 32208 | |
| 32209 | rm -f core conftest.err conftest.$ac_objext \ |
| 32210 | conftest$ac_exeext conftest.$ac_ext |
| 32211 | fi |
| 32212 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 32213 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 32214 | echo "${ECHO_T}$ac_res" >&6; } |
| 32215 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 32216 | cat >>confdefs.h <<_ACEOF |
| 32217 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 32218 | _ACEOF |
| 32219 | |
| 32220 | fi |
| 32221 | done |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 32222 | |
| 32223 | |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 32224 | |
| 32225 | |
| 32226 | for ac_func in strerror strerror_r strerror_s |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32227 | do |
| 32228 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32229 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 32230 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 32231 | 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] | 32232 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32233 | else |
| 32234 | cat >conftest.$ac_ext <<_ACEOF |
| 32235 | /* confdefs.h. */ |
| 32236 | _ACEOF |
| 32237 | cat confdefs.h >>conftest.$ac_ext |
| 32238 | cat >>conftest.$ac_ext <<_ACEOF |
| 32239 | /* end confdefs.h. */ |
| 32240 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 32241 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 32242 | #define $ac_func innocuous_$ac_func |
| 32243 | |
| 32244 | /* System header to define __stub macros and hopefully few prototypes, |
| 32245 | which can conflict with char $ac_func (); below. |
| 32246 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 32247 | <limits.h> exists even on freestanding compilers. */ |
| 32248 | |
| 32249 | #ifdef __STDC__ |
| 32250 | # include <limits.h> |
| 32251 | #else |
| 32252 | # include <assert.h> |
| 32253 | #endif |
| 32254 | |
| 32255 | #undef $ac_func |
| 32256 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32257 | /* Override any GCC internal prototype to avoid an error. |
| 32258 | Use char because int might match the return type of a GCC |
| 32259 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32260 | #ifdef __cplusplus |
| 32261 | extern "C" |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32262 | #endif |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32263 | char $ac_func (); |
| 32264 | /* The GNU C library defines this for functions which it implements |
| 32265 | to always fail with ENOSYS. Some functions are actually named |
| 32266 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32267 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32268 | choke me |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32269 | #endif |
| 32270 | |
| 32271 | int |
| 32272 | main () |
| 32273 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32274 | return $ac_func (); |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32275 | ; |
| 32276 | return 0; |
| 32277 | } |
| 32278 | _ACEOF |
| 32279 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32280 | if { (ac_try="$ac_link" |
| 32281 | case "(($ac_try" in |
| 32282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32283 | *) ac_try_echo=$ac_try;; |
| 32284 | esac |
| 32285 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32286 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32287 | ac_status=$? |
| 32288 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32289 | rm -f conftest.er1 |
| 32290 | cat conftest.err >&5 |
| 32291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32292 | (exit $ac_status); } && |
| 32293 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32294 | { (case "(($ac_try" in |
| 32295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32296 | *) ac_try_echo=$ac_try;; |
| 32297 | esac |
| 32298 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32299 | (eval "$ac_try") 2>&5 |
| 32300 | ac_status=$? |
| 32301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32302 | (exit $ac_status); }; } && |
| 32303 | { ac_try='test -s conftest$ac_exeext' |
| 32304 | { (case "(($ac_try" in |
| 32305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32306 | *) ac_try_echo=$ac_try;; |
| 32307 | esac |
| 32308 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32309 | (eval "$ac_try") 2>&5 |
| 32310 | ac_status=$? |
| 32311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32312 | (exit $ac_status); }; }; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32313 | eval "$as_ac_var=yes" |
| 32314 | else |
| 32315 | echo "$as_me: failed program was:" >&5 |
| 32316 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32317 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32318 | eval "$as_ac_var=no" |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32319 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32320 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32321 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32322 | conftest$ac_exeext conftest.$ac_ext |
| 32323 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32324 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 32325 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 32326 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 32327 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 32328 | cat >>confdefs.h <<_ACEOF |
| 32329 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 32330 | _ACEOF |
| 32331 | |
| 32332 | fi |
| 32333 | done |
| 32334 | |
| 32335 | |
Reid Spencer | ba46ca3 | 2004-12-31 05:49:15 +0000 | [diff] [blame] | 32336 | |
| 32337 | |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 32338 | |
Chris Lattner | 511f11d | 2005-11-14 07:25:50 +0000 | [diff] [blame] | 32339 | for ac_func in strtoll strtoq sysconf malloc_zone_statistics |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32340 | do |
| 32341 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32342 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 32343 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 32344 | 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] | 32345 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32346 | else |
| 32347 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32348 | /* confdefs.h. */ |
| 32349 | _ACEOF |
| 32350 | cat confdefs.h >>conftest.$ac_ext |
| 32351 | cat >>conftest.$ac_ext <<_ACEOF |
| 32352 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32353 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 32354 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 32355 | #define $ac_func innocuous_$ac_func |
| 32356 | |
| 32357 | /* System header to define __stub macros and hopefully few prototypes, |
| 32358 | which can conflict with char $ac_func (); below. |
| 32359 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 32360 | <limits.h> exists even on freestanding compilers. */ |
| 32361 | |
| 32362 | #ifdef __STDC__ |
| 32363 | # include <limits.h> |
| 32364 | #else |
| 32365 | # include <assert.h> |
| 32366 | #endif |
| 32367 | |
| 32368 | #undef $ac_func |
| 32369 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32370 | /* Override any GCC internal prototype to avoid an error. |
| 32371 | Use char because int might match the return type of a GCC |
| 32372 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32373 | #ifdef __cplusplus |
| 32374 | extern "C" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32375 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32376 | char $ac_func (); |
| 32377 | /* The GNU C library defines this for functions which it implements |
| 32378 | to always fail with ENOSYS. Some functions are actually named |
| 32379 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32380 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32381 | choke me |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32382 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32383 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32384 | int |
| 32385 | main () |
| 32386 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32387 | return $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32388 | ; |
| 32389 | return 0; |
| 32390 | } |
| 32391 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32392 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32393 | if { (ac_try="$ac_link" |
| 32394 | case "(($ac_try" in |
| 32395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32396 | *) ac_try_echo=$ac_try;; |
| 32397 | esac |
| 32398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32399 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32400 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32401 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32402 | rm -f conftest.er1 |
| 32403 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32405 | (exit $ac_status); } && |
| 32406 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32407 | { (case "(($ac_try" in |
| 32408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32409 | *) ac_try_echo=$ac_try;; |
| 32410 | esac |
| 32411 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32412 | (eval "$ac_try") 2>&5 |
| 32413 | ac_status=$? |
| 32414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32415 | (exit $ac_status); }; } && |
| 32416 | { ac_try='test -s conftest$ac_exeext' |
| 32417 | { (case "(($ac_try" in |
| 32418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32419 | *) ac_try_echo=$ac_try;; |
| 32420 | esac |
| 32421 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32422 | (eval "$ac_try") 2>&5 |
| 32423 | ac_status=$? |
| 32424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32425 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32426 | eval "$as_ac_var=yes" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32427 | else |
| 32428 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32429 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32430 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32431 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32432 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32433 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32434 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32435 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32436 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32437 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 32438 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 32439 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32440 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 32441 | cat >>confdefs.h <<_ACEOF |
| 32442 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32443 | _ACEOF |
| 32444 | |
| 32445 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32446 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32447 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32448 | |
| 32449 | |
| 32450 | |
| 32451 | |
Reid Spencer | afa22e2 | 2006-12-10 23:29:19 +0000 | [diff] [blame] | 32452 | for ac_func in setjmp longjmp sigsetjmp siglongjmp |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32453 | do |
| 32454 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32455 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 32456 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 32457 | 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] | 32458 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32459 | else |
| 32460 | cat >conftest.$ac_ext <<_ACEOF |
| 32461 | /* confdefs.h. */ |
| 32462 | _ACEOF |
| 32463 | cat confdefs.h >>conftest.$ac_ext |
| 32464 | cat >>conftest.$ac_ext <<_ACEOF |
| 32465 | /* end confdefs.h. */ |
| 32466 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 32467 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 32468 | #define $ac_func innocuous_$ac_func |
| 32469 | |
| 32470 | /* System header to define __stub macros and hopefully few prototypes, |
| 32471 | which can conflict with char $ac_func (); below. |
| 32472 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 32473 | <limits.h> exists even on freestanding compilers. */ |
| 32474 | |
| 32475 | #ifdef __STDC__ |
| 32476 | # include <limits.h> |
| 32477 | #else |
| 32478 | # include <assert.h> |
| 32479 | #endif |
| 32480 | |
| 32481 | #undef $ac_func |
| 32482 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32483 | /* Override any GCC internal prototype to avoid an error. |
| 32484 | Use char because int might match the return type of a GCC |
| 32485 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32486 | #ifdef __cplusplus |
| 32487 | extern "C" |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32488 | #endif |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32489 | char $ac_func (); |
| 32490 | /* The GNU C library defines this for functions which it implements |
| 32491 | to always fail with ENOSYS. Some functions are actually named |
| 32492 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32493 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32494 | choke me |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32495 | #endif |
| 32496 | |
| 32497 | int |
| 32498 | main () |
| 32499 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32500 | return $ac_func (); |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32501 | ; |
| 32502 | return 0; |
| 32503 | } |
| 32504 | _ACEOF |
| 32505 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32506 | if { (ac_try="$ac_link" |
| 32507 | case "(($ac_try" in |
| 32508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32509 | *) ac_try_echo=$ac_try;; |
| 32510 | esac |
| 32511 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32512 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32513 | ac_status=$? |
| 32514 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32515 | rm -f conftest.er1 |
| 32516 | cat conftest.err >&5 |
| 32517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32518 | (exit $ac_status); } && |
| 32519 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32520 | { (case "(($ac_try" in |
| 32521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32522 | *) ac_try_echo=$ac_try;; |
| 32523 | esac |
| 32524 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32525 | (eval "$ac_try") 2>&5 |
| 32526 | ac_status=$? |
| 32527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32528 | (exit $ac_status); }; } && |
| 32529 | { ac_try='test -s conftest$ac_exeext' |
| 32530 | { (case "(($ac_try" in |
| 32531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32532 | *) ac_try_echo=$ac_try;; |
| 32533 | esac |
| 32534 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32535 | (eval "$ac_try") 2>&5 |
| 32536 | ac_status=$? |
| 32537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32538 | (exit $ac_status); }; }; then |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32539 | eval "$as_ac_var=yes" |
| 32540 | else |
| 32541 | echo "$as_me: failed program was:" >&5 |
| 32542 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32543 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32544 | eval "$as_ac_var=no" |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32545 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32546 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32547 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32548 | conftest$ac_exeext conftest.$ac_ext |
| 32549 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32550 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 32551 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 32552 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 32553 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 32554 | cat >>confdefs.h <<_ACEOF |
| 32555 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 32556 | _ACEOF |
| 32557 | |
| 32558 | fi |
| 32559 | done |
| 32560 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32561 | { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 |
| 32562 | 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] | 32563 | if test "${llvm_cv_c_printf_a+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32565 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32566 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32567 | ac_cpp='$CPP $CPPFLAGS' |
| 32568 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32569 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32570 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32571 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32572 | if test "$cross_compiling" = yes; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 32573 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32574 | else |
| 32575 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32576 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32577 | /* confdefs.h. */ |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32578 | _ACEOF |
| 32579 | cat confdefs.h >>conftest.$ac_ext |
| 32580 | cat >>conftest.$ac_ext <<_ACEOF |
| 32581 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32582 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32583 | #include <stdio.h> |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32584 | #include <stdlib.h> |
| 32585 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32586 | int |
| 32587 | main () |
| 32588 | { |
| 32589 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32590 | volatile double A, B; |
| 32591 | char Buffer[100]; |
| 32592 | A = 1; |
| 32593 | A /= 10.0; |
| 32594 | sprintf(Buffer, "%a", A); |
| 32595 | B = atof(Buffer); |
| 32596 | if (A != B) |
| 32597 | return (1); |
| 32598 | if (A != 0x1.999999999999ap-4) |
| 32599 | return (1); |
| 32600 | return (0); |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32601 | ; |
| 32602 | return 0; |
| 32603 | } |
| 32604 | _ACEOF |
| 32605 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32606 | if { (ac_try="$ac_link" |
| 32607 | case "(($ac_try" in |
| 32608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32609 | *) ac_try_echo=$ac_try;; |
| 32610 | esac |
| 32611 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32612 | (eval "$ac_link") 2>&5 |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32613 | ac_status=$? |
| 32614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32615 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32616 | { (case "(($ac_try" in |
| 32617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32618 | *) ac_try_echo=$ac_try;; |
| 32619 | esac |
| 32620 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32621 | (eval "$ac_try") 2>&5 |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32622 | ac_status=$? |
| 32623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32624 | (exit $ac_status); }; }; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 32625 | llvm_cv_c_printf_a=yes |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32626 | else |
| 32627 | echo "$as_me: program exited with status $ac_status" >&5 |
| 32628 | echo "$as_me: failed program was:" >&5 |
| 32629 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32630 | |
| 32631 | ( exit $ac_status ) |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 32632 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32633 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32634 | 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] | 32635 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32636 | |
| 32637 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32638 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32639 | ac_cpp='$CPP $CPPFLAGS' |
| 32640 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32641 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32642 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32643 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32644 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32645 | { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 |
| 32646 | echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 32647 | if test "$llvm_cv_c_printf_a" = "yes"; then |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32648 | |
| 32649 | cat >>confdefs.h <<\_ACEOF |
| 32650 | #define HAVE_PRINTF_A 1 |
| 32651 | _ACEOF |
| 32652 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32653 | fi |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 32654 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32655 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 32656 | # for constant arguments. Useless! |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32657 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
| 32658 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32659 | if test "${ac_cv_working_alloca_h+set}" = set; then |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 32660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32661 | else |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 32662 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 32663 | /* confdefs.h. */ |
| 32664 | _ACEOF |
| 32665 | cat confdefs.h >>conftest.$ac_ext |
| 32666 | cat >>conftest.$ac_ext <<_ACEOF |
| 32667 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32668 | #include <alloca.h> |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 32669 | int |
| 32670 | main () |
| 32671 | { |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32672 | char *p = (char *) alloca (2 * sizeof (int)); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32673 | if (p) return 0; |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 32674 | ; |
| 32675 | return 0; |
| 32676 | } |
| 32677 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32678 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32679 | if { (ac_try="$ac_link" |
| 32680 | case "(($ac_try" in |
| 32681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32682 | *) ac_try_echo=$ac_try;; |
| 32683 | esac |
| 32684 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32685 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 32686 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32687 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32688 | rm -f conftest.er1 |
| 32689 | cat conftest.err >&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 32690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32691 | (exit $ac_status); } && |
| 32692 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32693 | { (case "(($ac_try" in |
| 32694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32695 | *) ac_try_echo=$ac_try;; |
| 32696 | esac |
| 32697 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32698 | (eval "$ac_try") 2>&5 |
| 32699 | ac_status=$? |
| 32700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32701 | (exit $ac_status); }; } && |
| 32702 | { ac_try='test -s conftest$ac_exeext' |
| 32703 | { (case "(($ac_try" in |
| 32704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32705 | *) ac_try_echo=$ac_try;; |
| 32706 | esac |
| 32707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32708 | (eval "$ac_try") 2>&5 |
| 32709 | ac_status=$? |
| 32710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32711 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32712 | ac_cv_working_alloca_h=yes |
| 32713 | else |
| 32714 | echo "$as_me: failed program was:" >&5 |
| 32715 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32716 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32717 | ac_cv_working_alloca_h=no |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 32718 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32719 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32720 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32721 | conftest$ac_exeext conftest.$ac_ext |
| 32722 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32723 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
| 32724 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32725 | if test $ac_cv_working_alloca_h = yes; then |
| 32726 | |
| 32727 | cat >>confdefs.h <<\_ACEOF |
| 32728 | #define HAVE_ALLOCA_H 1 |
| 32729 | _ACEOF |
| 32730 | |
| 32731 | fi |
| 32732 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32733 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
| 32734 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32735 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 32736 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32737 | else |
| 32738 | cat >conftest.$ac_ext <<_ACEOF |
| 32739 | /* confdefs.h. */ |
| 32740 | _ACEOF |
| 32741 | cat confdefs.h >>conftest.$ac_ext |
| 32742 | cat >>conftest.$ac_ext <<_ACEOF |
| 32743 | /* end confdefs.h. */ |
| 32744 | #ifdef __GNUC__ |
| 32745 | # define alloca __builtin_alloca |
| 32746 | #else |
| 32747 | # ifdef _MSC_VER |
| 32748 | # include <malloc.h> |
| 32749 | # define alloca _alloca |
| 32750 | # else |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32751 | # if HAVE_ALLOCA_H |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32752 | # include <alloca.h> |
| 32753 | # else |
| 32754 | # ifdef _AIX |
| 32755 | #pragma alloca |
| 32756 | # else |
| 32757 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 32758 | char *alloca (); |
| 32759 | # endif |
| 32760 | # endif |
| 32761 | # endif |
| 32762 | # endif |
| 32763 | #endif |
| 32764 | |
| 32765 | int |
| 32766 | main () |
| 32767 | { |
| 32768 | char *p = (char *) alloca (1); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32769 | if (p) return 0; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32770 | ; |
| 32771 | return 0; |
| 32772 | } |
| 32773 | _ACEOF |
| 32774 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32775 | if { (ac_try="$ac_link" |
| 32776 | case "(($ac_try" in |
| 32777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32778 | *) ac_try_echo=$ac_try;; |
| 32779 | esac |
| 32780 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32781 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32782 | ac_status=$? |
| 32783 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32784 | rm -f conftest.er1 |
| 32785 | cat conftest.err >&5 |
| 32786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32787 | (exit $ac_status); } && |
| 32788 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32789 | { (case "(($ac_try" in |
| 32790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32791 | *) ac_try_echo=$ac_try;; |
| 32792 | esac |
| 32793 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32794 | (eval "$ac_try") 2>&5 |
| 32795 | ac_status=$? |
| 32796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32797 | (exit $ac_status); }; } && |
| 32798 | { ac_try='test -s conftest$ac_exeext' |
| 32799 | { (case "(($ac_try" in |
| 32800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32801 | *) ac_try_echo=$ac_try;; |
| 32802 | esac |
| 32803 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32804 | (eval "$ac_try") 2>&5 |
| 32805 | ac_status=$? |
| 32806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32807 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32808 | ac_cv_func_alloca_works=yes |
| 32809 | else |
| 32810 | echo "$as_me: failed program was:" >&5 |
| 32811 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32812 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32813 | ac_cv_func_alloca_works=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32814 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32815 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32816 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32817 | conftest$ac_exeext conftest.$ac_ext |
| 32818 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32819 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
| 32820 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32821 | |
| 32822 | if test $ac_cv_func_alloca_works = yes; then |
| 32823 | |
| 32824 | cat >>confdefs.h <<\_ACEOF |
| 32825 | #define HAVE_ALLOCA 1 |
| 32826 | _ACEOF |
| 32827 | |
| 32828 | else |
| 32829 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 32830 | # that cause trouble. Some versions do not even contain alloca or |
| 32831 | # contain a buggy version. If you still want to use their alloca, |
| 32832 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 32833 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32834 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32835 | |
| 32836 | cat >>confdefs.h <<\_ACEOF |
| 32837 | #define C_ALLOCA 1 |
| 32838 | _ACEOF |
| 32839 | |
| 32840 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32841 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 32842 | 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] | 32843 | if test "${ac_cv_os_cray+set}" = set; then |
| 32844 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32845 | else |
| 32846 | cat >conftest.$ac_ext <<_ACEOF |
| 32847 | /* confdefs.h. */ |
| 32848 | _ACEOF |
| 32849 | cat confdefs.h >>conftest.$ac_ext |
| 32850 | cat >>conftest.$ac_ext <<_ACEOF |
| 32851 | /* end confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32852 | #if defined CRAY && ! defined CRAY2 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32853 | webecray |
| 32854 | #else |
| 32855 | wenotbecray |
| 32856 | #endif |
| 32857 | |
| 32858 | _ACEOF |
| 32859 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 32860 | $EGREP "webecray" >/dev/null 2>&1; then |
| 32861 | ac_cv_os_cray=yes |
| 32862 | else |
| 32863 | ac_cv_os_cray=no |
| 32864 | fi |
| 32865 | rm -f conftest* |
| 32866 | |
| 32867 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32868 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
| 32869 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32870 | if test $ac_cv_os_cray = yes; then |
| 32871 | for ac_func in _getb67 GETB67 getb67; do |
| 32872 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32873 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 32874 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 32875 | 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] | 32876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32877 | else |
| 32878 | cat >conftest.$ac_ext <<_ACEOF |
| 32879 | /* confdefs.h. */ |
| 32880 | _ACEOF |
| 32881 | cat confdefs.h >>conftest.$ac_ext |
| 32882 | cat >>conftest.$ac_ext <<_ACEOF |
| 32883 | /* end confdefs.h. */ |
| 32884 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 32885 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 32886 | #define $ac_func innocuous_$ac_func |
| 32887 | |
| 32888 | /* System header to define __stub macros and hopefully few prototypes, |
| 32889 | which can conflict with char $ac_func (); below. |
| 32890 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 32891 | <limits.h> exists even on freestanding compilers. */ |
| 32892 | |
| 32893 | #ifdef __STDC__ |
| 32894 | # include <limits.h> |
| 32895 | #else |
| 32896 | # include <assert.h> |
| 32897 | #endif |
| 32898 | |
| 32899 | #undef $ac_func |
| 32900 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32901 | /* Override any GCC internal prototype to avoid an error. |
| 32902 | Use char because int might match the return type of a GCC |
| 32903 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32904 | #ifdef __cplusplus |
| 32905 | extern "C" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32906 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32907 | char $ac_func (); |
| 32908 | /* The GNU C library defines this for functions which it implements |
| 32909 | to always fail with ENOSYS. Some functions are actually named |
| 32910 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32911 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32912 | choke me |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32913 | #endif |
| 32914 | |
| 32915 | int |
| 32916 | main () |
| 32917 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32918 | return $ac_func (); |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32919 | ; |
| 32920 | return 0; |
| 32921 | } |
| 32922 | _ACEOF |
| 32923 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32924 | if { (ac_try="$ac_link" |
| 32925 | case "(($ac_try" in |
| 32926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32927 | *) ac_try_echo=$ac_try;; |
| 32928 | esac |
| 32929 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32930 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32931 | ac_status=$? |
| 32932 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32933 | rm -f conftest.er1 |
| 32934 | cat conftest.err >&5 |
| 32935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32936 | (exit $ac_status); } && |
| 32937 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32938 | { (case "(($ac_try" in |
| 32939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32940 | *) ac_try_echo=$ac_try;; |
| 32941 | esac |
| 32942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32943 | (eval "$ac_try") 2>&5 |
| 32944 | ac_status=$? |
| 32945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32946 | (exit $ac_status); }; } && |
| 32947 | { ac_try='test -s conftest$ac_exeext' |
| 32948 | { (case "(($ac_try" in |
| 32949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32950 | *) ac_try_echo=$ac_try;; |
| 32951 | esac |
| 32952 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32953 | (eval "$ac_try") 2>&5 |
| 32954 | ac_status=$? |
| 32955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32956 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32957 | eval "$as_ac_var=yes" |
| 32958 | else |
| 32959 | echo "$as_me: failed program was:" >&5 |
| 32960 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32961 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32962 | eval "$as_ac_var=no" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32963 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32964 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 32965 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32966 | conftest$ac_exeext conftest.$ac_ext |
| 32967 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32968 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 32969 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 32970 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32971 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 32972 | |
| 32973 | cat >>confdefs.h <<_ACEOF |
| 32974 | #define CRAY_STACKSEG_END $ac_func |
| 32975 | _ACEOF |
| 32976 | |
| 32977 | break |
| 32978 | fi |
| 32979 | |
| 32980 | done |
| 32981 | fi |
| 32982 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32983 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
| 32984 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32985 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 32986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32987 | else |
| 32988 | if test "$cross_compiling" = yes; then |
| 32989 | ac_cv_c_stack_direction=0 |
| 32990 | else |
| 32991 | cat >conftest.$ac_ext <<_ACEOF |
| 32992 | /* confdefs.h. */ |
| 32993 | _ACEOF |
| 32994 | cat confdefs.h >>conftest.$ac_ext |
| 32995 | cat >>conftest.$ac_ext <<_ACEOF |
| 32996 | /* end confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32997 | $ac_includes_default |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32998 | int |
| 32999 | find_stack_direction () |
| 33000 | { |
| 33001 | static char *addr = 0; |
| 33002 | auto char dummy; |
| 33003 | if (addr == 0) |
| 33004 | { |
| 33005 | addr = &dummy; |
| 33006 | return find_stack_direction (); |
| 33007 | } |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33008 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33009 | return (&dummy > addr) ? 1 : -1; |
| 33010 | } |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33011 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33012 | int |
| 33013 | main () |
| 33014 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33015 | return find_stack_direction () < 0; |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33016 | } |
| 33017 | _ACEOF |
| 33018 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33019 | if { (ac_try="$ac_link" |
| 33020 | case "(($ac_try" in |
| 33021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33022 | *) ac_try_echo=$ac_try;; |
| 33023 | esac |
| 33024 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33025 | (eval "$ac_link") 2>&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33026 | ac_status=$? |
| 33027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33028 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33029 | { (case "(($ac_try" in |
| 33030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33031 | *) ac_try_echo=$ac_try;; |
| 33032 | esac |
| 33033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33034 | (eval "$ac_try") 2>&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33035 | ac_status=$? |
| 33036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33037 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33038 | ac_cv_c_stack_direction=1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33039 | else |
| 33040 | echo "$as_me: program exited with status $ac_status" >&5 |
| 33041 | echo "$as_me: failed program was:" >&5 |
| 33042 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33043 | |
| 33044 | ( exit $ac_status ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33045 | ac_cv_c_stack_direction=-1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33046 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33047 | 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] | 33048 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33049 | |
| 33050 | |
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 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
| 33053 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33054 | |
| 33055 | cat >>confdefs.h <<_ACEOF |
| 33056 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 33057 | _ACEOF |
| 33058 | |
| 33059 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33060 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33061 | |
| 33062 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33063 | { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 |
| 33064 | 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] | 33065 | if test "${ac_cv_func_rand48+set}" = set; then |
| 33066 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33067 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33068 | ac_ext=cpp |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33069 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33070 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33071 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33072 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33073 | |
| 33074 | cat >conftest.$ac_ext <<_ACEOF |
| 33075 | /* confdefs.h. */ |
| 33076 | _ACEOF |
| 33077 | cat confdefs.h >>conftest.$ac_ext |
| 33078 | cat >>conftest.$ac_ext <<_ACEOF |
| 33079 | /* end confdefs.h. */ |
| 33080 | #include <stdlib.h> |
| 33081 | int |
| 33082 | main () |
| 33083 | { |
| 33084 | srand48(0);lrand48();drand48(); |
| 33085 | ; |
| 33086 | return 0; |
| 33087 | } |
| 33088 | _ACEOF |
| 33089 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33090 | if { (ac_try="$ac_compile" |
| 33091 | case "(($ac_try" in |
| 33092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33093 | *) ac_try_echo=$ac_try;; |
| 33094 | esac |
| 33095 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33096 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33097 | ac_status=$? |
| 33098 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33099 | rm -f conftest.er1 |
| 33100 | cat conftest.err >&5 |
| 33101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33102 | (exit $ac_status); } && |
| 33103 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33104 | { (case "(($ac_try" in |
| 33105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33106 | *) ac_try_echo=$ac_try;; |
| 33107 | esac |
| 33108 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33109 | (eval "$ac_try") 2>&5 |
| 33110 | ac_status=$? |
| 33111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33112 | (exit $ac_status); }; } && |
| 33113 | { ac_try='test -s conftest.$ac_objext' |
| 33114 | { (case "(($ac_try" in |
| 33115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33116 | *) ac_try_echo=$ac_try;; |
| 33117 | esac |
| 33118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33119 | (eval "$ac_try") 2>&5 |
| 33120 | ac_status=$? |
| 33121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33122 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33123 | ac_cv_func_rand48=yes |
| 33124 | else |
| 33125 | echo "$as_me: failed program was:" >&5 |
| 33126 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33127 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33128 | ac_cv_func_rand48=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33129 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33130 | |
| 33131 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33132 | ac_ext=c |
| 33133 | ac_cpp='$CPP $CPPFLAGS' |
| 33134 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33135 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33136 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33137 | |
| 33138 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33139 | { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 |
| 33140 | echo "${ECHO_T}$ac_cv_func_rand48" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33141 | |
| 33142 | if test "$ac_cv_func_rand48" = "yes" ; then |
| 33143 | |
| 33144 | cat >>confdefs.h <<\_ACEOF |
| 33145 | #define HAVE_RAND48 1 |
| 33146 | _ACEOF |
| 33147 | |
| 33148 | fi |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 33149 | |
| 33150 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33151 | { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 |
| 33152 | echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33153 | if test "${ac_cv_cxx_namespaces+set}" = set; then |
| 33154 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33155 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33156 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33157 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33158 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33159 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33160 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33161 | |
| 33162 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33163 | /* confdefs.h. */ |
| 33164 | _ACEOF |
| 33165 | cat confdefs.h >>conftest.$ac_ext |
| 33166 | cat >>conftest.$ac_ext <<_ACEOF |
| 33167 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33168 | namespace Outer { namespace Inner { int i = 0; }} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33169 | int |
| 33170 | main () |
| 33171 | { |
| 33172 | using namespace Outer::Inner; return i; |
| 33173 | ; |
| 33174 | return 0; |
| 33175 | } |
| 33176 | _ACEOF |
| 33177 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33178 | if { (ac_try="$ac_compile" |
| 33179 | case "(($ac_try" in |
| 33180 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33181 | *) ac_try_echo=$ac_try;; |
| 33182 | esac |
| 33183 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33184 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33185 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33186 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33187 | rm -f conftest.er1 |
| 33188 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33190 | (exit $ac_status); } && |
| 33191 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33192 | { (case "(($ac_try" in |
| 33193 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33194 | *) ac_try_echo=$ac_try;; |
| 33195 | esac |
| 33196 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33197 | (eval "$ac_try") 2>&5 |
| 33198 | ac_status=$? |
| 33199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33200 | (exit $ac_status); }; } && |
| 33201 | { ac_try='test -s conftest.$ac_objext' |
| 33202 | { (case "(($ac_try" in |
| 33203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33204 | *) ac_try_echo=$ac_try;; |
| 33205 | esac |
| 33206 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33207 | (eval "$ac_try") 2>&5 |
| 33208 | ac_status=$? |
| 33209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33210 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33211 | ac_cv_cxx_namespaces=yes |
| 33212 | else |
| 33213 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33214 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33215 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33216 | ac_cv_cxx_namespaces=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33217 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33218 | |
| 33219 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33220 | ac_ext=c |
| 33221 | ac_cpp='$CPP $CPPFLAGS' |
| 33222 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33223 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33224 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33225 | |
| 33226 | |
| 33227 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33228 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 |
| 33229 | echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33230 | if test "$ac_cv_cxx_namespaces" = yes; then |
| 33231 | |
| 33232 | cat >>confdefs.h <<\_ACEOF |
| 33233 | #define HAVE_NAMESPACES |
| 33234 | _ACEOF |
| 33235 | |
| 33236 | fi |
| 33237 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33238 | { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5 |
| 33239 | 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] | 33240 | if test "${ac_cv_cxx_have_std_iterator+set}" = set; then |
| 33241 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33242 | else |
| 33243 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33244 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33245 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33246 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33247 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33248 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33249 | |
| 33250 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33251 | /* confdefs.h. */ |
| 33252 | _ACEOF |
| 33253 | cat confdefs.h >>conftest.$ac_ext |
| 33254 | cat >>conftest.$ac_ext <<_ACEOF |
| 33255 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33256 | #include <iterator> |
| 33257 | #ifdef HAVE_NAMESPACES |
| 33258 | using namespace std; |
| 33259 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33260 | int |
| 33261 | main () |
| 33262 | { |
| 33263 | iterator<int,int,int> t; return 0; |
| 33264 | ; |
| 33265 | return 0; |
| 33266 | } |
| 33267 | _ACEOF |
| 33268 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33269 | if { (ac_try="$ac_compile" |
| 33270 | case "(($ac_try" in |
| 33271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33272 | *) ac_try_echo=$ac_try;; |
| 33273 | esac |
| 33274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33275 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33276 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33277 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33278 | rm -f conftest.er1 |
| 33279 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33281 | (exit $ac_status); } && |
| 33282 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33283 | { (case "(($ac_try" in |
| 33284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33285 | *) ac_try_echo=$ac_try;; |
| 33286 | esac |
| 33287 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33288 | (eval "$ac_try") 2>&5 |
| 33289 | ac_status=$? |
| 33290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33291 | (exit $ac_status); }; } && |
| 33292 | { ac_try='test -s conftest.$ac_objext' |
| 33293 | { (case "(($ac_try" in |
| 33294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33295 | *) ac_try_echo=$ac_try;; |
| 33296 | esac |
| 33297 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33298 | (eval "$ac_try") 2>&5 |
| 33299 | ac_status=$? |
| 33300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33301 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33302 | ac_cv_cxx_have_std_iterator=yes |
| 33303 | else |
| 33304 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33305 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33306 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33307 | ac_cv_cxx_have_std_iterator=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33308 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33309 | |
| 33310 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33311 | ac_ext=c |
| 33312 | ac_cpp='$CPP $CPPFLAGS' |
| 33313 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33314 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33315 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33316 | |
| 33317 | |
| 33318 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33319 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5 |
| 33320 | echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; } |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 33321 | if test "$ac_cv_cxx_have_std_iterator" = yes |
| 33322 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 33323 | |
| 33324 | cat >>confdefs.h <<\_ACEOF |
| 33325 | #define HAVE_STD_ITERATOR 1 |
| 33326 | _ACEOF |
| 33327 | |
| 33328 | else |
| 33329 | |
| 33330 | cat >>confdefs.h <<\_ACEOF |
| 33331 | #define HAVE_STD_ITERATOR 0 |
| 33332 | _ACEOF |
| 33333 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33334 | fi |
| 33335 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33336 | { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5 |
| 33337 | 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] | 33338 | if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then |
| 33339 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33340 | else |
| 33341 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33342 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33343 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33344 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33345 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33346 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33347 | |
| 33348 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33349 | /* confdefs.h. */ |
| 33350 | _ACEOF |
| 33351 | cat confdefs.h >>conftest.$ac_ext |
| 33352 | cat >>conftest.$ac_ext <<_ACEOF |
| 33353 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33354 | #include <iterator> |
| 33355 | #ifdef HAVE_NAMESPACES |
| 33356 | using namespace std; |
| 33357 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33358 | int |
| 33359 | main () |
| 33360 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 33361 | bidirectional_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33362 | ; |
| 33363 | return 0; |
| 33364 | } |
| 33365 | _ACEOF |
| 33366 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33367 | if { (ac_try="$ac_compile" |
| 33368 | case "(($ac_try" in |
| 33369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33370 | *) ac_try_echo=$ac_try;; |
| 33371 | esac |
| 33372 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33373 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33374 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33375 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33376 | rm -f conftest.er1 |
| 33377 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33379 | (exit $ac_status); } && |
| 33380 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33381 | { (case "(($ac_try" in |
| 33382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33383 | *) ac_try_echo=$ac_try;; |
| 33384 | esac |
| 33385 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33386 | (eval "$ac_try") 2>&5 |
| 33387 | ac_status=$? |
| 33388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33389 | (exit $ac_status); }; } && |
| 33390 | { ac_try='test -s conftest.$ac_objext' |
| 33391 | { (case "(($ac_try" in |
| 33392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33393 | *) ac_try_echo=$ac_try;; |
| 33394 | esac |
| 33395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33396 | (eval "$ac_try") 2>&5 |
| 33397 | ac_status=$? |
| 33398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33399 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33400 | ac_cv_cxx_have_bi_iterator=yes |
| 33401 | else |
| 33402 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33403 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33404 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33405 | ac_cv_cxx_have_bi_iterator=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33406 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33407 | |
| 33408 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33409 | ac_ext=c |
| 33410 | ac_cpp='$CPP $CPPFLAGS' |
| 33411 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33412 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33413 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33414 | |
| 33415 | |
| 33416 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33417 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5 |
| 33418 | echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; } |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 33419 | if test "$ac_cv_cxx_have_bi_iterator" = yes |
| 33420 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 33421 | |
| 33422 | cat >>confdefs.h <<\_ACEOF |
| 33423 | #define HAVE_BI_ITERATOR 1 |
| 33424 | _ACEOF |
| 33425 | |
| 33426 | else |
| 33427 | |
| 33428 | cat >>confdefs.h <<\_ACEOF |
| 33429 | #define HAVE_BI_ITERATOR 0 |
| 33430 | _ACEOF |
| 33431 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33432 | fi |
| 33433 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33434 | { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5 |
| 33435 | 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] | 33436 | if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then |
| 33437 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33438 | else |
| 33439 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33440 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33441 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33442 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33443 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33444 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33445 | |
| 33446 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33447 | /* confdefs.h. */ |
| 33448 | _ACEOF |
| 33449 | cat confdefs.h >>conftest.$ac_ext |
| 33450 | cat >>conftest.$ac_ext <<_ACEOF |
| 33451 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33452 | #include <iterator> |
| 33453 | #ifdef HAVE_NAMESPACES |
| 33454 | using namespace std; |
| 33455 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33456 | int |
| 33457 | main () |
| 33458 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 33459 | forward_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33460 | ; |
| 33461 | return 0; |
| 33462 | } |
| 33463 | _ACEOF |
| 33464 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33465 | if { (ac_try="$ac_compile" |
| 33466 | case "(($ac_try" in |
| 33467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33468 | *) ac_try_echo=$ac_try;; |
| 33469 | esac |
| 33470 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33471 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33472 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33473 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33474 | rm -f conftest.er1 |
| 33475 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33477 | (exit $ac_status); } && |
| 33478 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33479 | { (case "(($ac_try" in |
| 33480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33481 | *) ac_try_echo=$ac_try;; |
| 33482 | esac |
| 33483 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33484 | (eval "$ac_try") 2>&5 |
| 33485 | ac_status=$? |
| 33486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33487 | (exit $ac_status); }; } && |
| 33488 | { ac_try='test -s conftest.$ac_objext' |
| 33489 | { (case "(($ac_try" in |
| 33490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33491 | *) ac_try_echo=$ac_try;; |
| 33492 | esac |
| 33493 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33494 | (eval "$ac_try") 2>&5 |
| 33495 | ac_status=$? |
| 33496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33497 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33498 | ac_cv_cxx_have_fwd_iterator=yes |
| 33499 | else |
| 33500 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33501 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33502 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33503 | ac_cv_cxx_have_fwd_iterator=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33504 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33505 | |
| 33506 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33507 | ac_ext=c |
| 33508 | ac_cpp='$CPP $CPPFLAGS' |
| 33509 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33510 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33511 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33512 | |
| 33513 | |
| 33514 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33515 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5 |
| 33516 | echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; } |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 33517 | if test "$ac_cv_cxx_have_fwd_iterator" = yes |
| 33518 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 33519 | |
| 33520 | cat >>confdefs.h <<\_ACEOF |
| 33521 | #define HAVE_FWD_ITERATOR 1 |
| 33522 | _ACEOF |
| 33523 | |
| 33524 | else |
| 33525 | |
| 33526 | cat >>confdefs.h <<\_ACEOF |
| 33527 | #define HAVE_FWD_ITERATOR 0 |
| 33528 | _ACEOF |
| 33529 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33530 | fi |
| 33531 | |
| 33532 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33533 | { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 |
| 33534 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33535 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then |
| 33536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33537 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33538 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33539 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33540 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33541 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33542 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33543 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33544 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33545 | /* confdefs.h. */ |
| 33546 | _ACEOF |
| 33547 | cat confdefs.h >>conftest.$ac_ext |
| 33548 | cat >>conftest.$ac_ext <<_ACEOF |
| 33549 | /* end confdefs.h. */ |
| 33550 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33551 | int |
| 33552 | main () |
| 33553 | { |
| 33554 | float f; isnan(f); |
| 33555 | ; |
| 33556 | return 0; |
| 33557 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33558 | _ACEOF |
| 33559 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33560 | if { (ac_try="$ac_compile" |
| 33561 | case "(($ac_try" in |
| 33562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33563 | *) ac_try_echo=$ac_try;; |
| 33564 | esac |
| 33565 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33566 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33567 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33568 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33569 | rm -f conftest.er1 |
| 33570 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33572 | (exit $ac_status); } && |
| 33573 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33574 | { (case "(($ac_try" in |
| 33575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33576 | *) ac_try_echo=$ac_try;; |
| 33577 | esac |
| 33578 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33579 | (eval "$ac_try") 2>&5 |
| 33580 | ac_status=$? |
| 33581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33582 | (exit $ac_status); }; } && |
| 33583 | { ac_try='test -s conftest.$ac_objext' |
| 33584 | { (case "(($ac_try" in |
| 33585 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33586 | *) ac_try_echo=$ac_try;; |
| 33587 | esac |
| 33588 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33589 | (eval "$ac_try") 2>&5 |
| 33590 | ac_status=$? |
| 33591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33592 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33593 | ac_cv_func_isnan_in_math_h=yes |
| 33594 | else |
| 33595 | echo "$as_me: failed program was:" >&5 |
| 33596 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33597 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33598 | ac_cv_func_isnan_in_math_h=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33599 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33600 | |
| 33601 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33602 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33603 | ac_cpp='$CPP $CPPFLAGS' |
| 33604 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33605 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33606 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33607 | |
| 33608 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33609 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 |
| 33610 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33611 | |
| 33612 | |
| 33613 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33614 | |
| 33615 | cat >>confdefs.h <<\_ACEOF |
| 33616 | #define HAVE_ISNAN_IN_MATH_H 1 |
| 33617 | _ACEOF |
| 33618 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33619 | fi |
| 33620 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33621 | { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 |
| 33622 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33623 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then |
| 33624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33625 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33626 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33627 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33628 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33629 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33630 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33631 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33632 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33633 | /* confdefs.h. */ |
| 33634 | _ACEOF |
| 33635 | cat confdefs.h >>conftest.$ac_ext |
| 33636 | cat >>conftest.$ac_ext <<_ACEOF |
| 33637 | /* end confdefs.h. */ |
| 33638 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33639 | int |
| 33640 | main () |
| 33641 | { |
| 33642 | float f; isnan(f); |
| 33643 | ; |
| 33644 | return 0; |
| 33645 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33646 | _ACEOF |
| 33647 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33648 | if { (ac_try="$ac_compile" |
| 33649 | case "(($ac_try" in |
| 33650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33651 | *) ac_try_echo=$ac_try;; |
| 33652 | esac |
| 33653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33654 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33655 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33656 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33657 | rm -f conftest.er1 |
| 33658 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33660 | (exit $ac_status); } && |
| 33661 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33662 | { (case "(($ac_try" in |
| 33663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33664 | *) ac_try_echo=$ac_try;; |
| 33665 | esac |
| 33666 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33667 | (eval "$ac_try") 2>&5 |
| 33668 | ac_status=$? |
| 33669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33670 | (exit $ac_status); }; } && |
| 33671 | { ac_try='test -s conftest.$ac_objext' |
| 33672 | { (case "(($ac_try" in |
| 33673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33674 | *) ac_try_echo=$ac_try;; |
| 33675 | esac |
| 33676 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33677 | (eval "$ac_try") 2>&5 |
| 33678 | ac_status=$? |
| 33679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33680 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33681 | ac_cv_func_isnan_in_cmath=yes |
| 33682 | else |
| 33683 | echo "$as_me: failed program was:" >&5 |
| 33684 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33685 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33686 | ac_cv_func_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33687 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33688 | |
| 33689 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33690 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33691 | ac_cpp='$CPP $CPPFLAGS' |
| 33692 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33693 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33694 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33695 | |
| 33696 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33697 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 |
| 33698 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33699 | |
| 33700 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33701 | |
| 33702 | cat >>confdefs.h <<\_ACEOF |
| 33703 | #define HAVE_ISNAN_IN_CMATH 1 |
| 33704 | _ACEOF |
| 33705 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33706 | fi |
| 33707 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33708 | { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 |
| 33709 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33710 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then |
| 33711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33712 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33713 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33714 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33715 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33716 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33717 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33718 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33719 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33720 | /* confdefs.h. */ |
| 33721 | _ACEOF |
| 33722 | cat confdefs.h >>conftest.$ac_ext |
| 33723 | cat >>conftest.$ac_ext <<_ACEOF |
| 33724 | /* end confdefs.h. */ |
| 33725 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33726 | int |
| 33727 | main () |
| 33728 | { |
| 33729 | float f; std::isnan(f); |
| 33730 | ; |
| 33731 | return 0; |
| 33732 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33733 | _ACEOF |
| 33734 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33735 | if { (ac_try="$ac_compile" |
| 33736 | case "(($ac_try" in |
| 33737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33738 | *) ac_try_echo=$ac_try;; |
| 33739 | esac |
| 33740 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33741 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33742 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33743 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33744 | rm -f conftest.er1 |
| 33745 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33747 | (exit $ac_status); } && |
| 33748 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33749 | { (case "(($ac_try" in |
| 33750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33751 | *) ac_try_echo=$ac_try;; |
| 33752 | esac |
| 33753 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33754 | (eval "$ac_try") 2>&5 |
| 33755 | ac_status=$? |
| 33756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33757 | (exit $ac_status); }; } && |
| 33758 | { ac_try='test -s conftest.$ac_objext' |
| 33759 | { (case "(($ac_try" in |
| 33760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33761 | *) ac_try_echo=$ac_try;; |
| 33762 | esac |
| 33763 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33764 | (eval "$ac_try") 2>&5 |
| 33765 | ac_status=$? |
| 33766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33767 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33768 | ac_cv_func_std_isnan_in_cmath=yes |
| 33769 | else |
| 33770 | echo "$as_me: failed program was:" >&5 |
| 33771 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33772 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33773 | ac_cv_func_std_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33774 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33775 | |
| 33776 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33777 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33778 | ac_cpp='$CPP $CPPFLAGS' |
| 33779 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33780 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33781 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33782 | |
| 33783 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33784 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 |
| 33785 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33786 | |
| 33787 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33788 | |
| 33789 | cat >>confdefs.h <<\_ACEOF |
| 33790 | #define HAVE_STD_ISNAN_IN_CMATH 1 |
| 33791 | _ACEOF |
| 33792 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33793 | fi |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 33794 | |
| 33795 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33796 | { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 |
| 33797 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33798 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then |
| 33799 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33800 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33801 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33802 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33803 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33804 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33805 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33806 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33807 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33808 | /* confdefs.h. */ |
| 33809 | _ACEOF |
| 33810 | cat confdefs.h >>conftest.$ac_ext |
| 33811 | cat >>conftest.$ac_ext <<_ACEOF |
| 33812 | /* end confdefs.h. */ |
| 33813 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33814 | int |
| 33815 | main () |
| 33816 | { |
| 33817 | float f; isinf(f); |
| 33818 | ; |
| 33819 | return 0; |
| 33820 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33821 | _ACEOF |
| 33822 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33823 | if { (ac_try="$ac_compile" |
| 33824 | case "(($ac_try" in |
| 33825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33826 | *) ac_try_echo=$ac_try;; |
| 33827 | esac |
| 33828 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33829 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33830 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33831 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33832 | rm -f conftest.er1 |
| 33833 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33835 | (exit $ac_status); } && |
| 33836 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33837 | { (case "(($ac_try" in |
| 33838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33839 | *) ac_try_echo=$ac_try;; |
| 33840 | esac |
| 33841 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33842 | (eval "$ac_try") 2>&5 |
| 33843 | ac_status=$? |
| 33844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33845 | (exit $ac_status); }; } && |
| 33846 | { ac_try='test -s conftest.$ac_objext' |
| 33847 | { (case "(($ac_try" in |
| 33848 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33849 | *) ac_try_echo=$ac_try;; |
| 33850 | esac |
| 33851 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33852 | (eval "$ac_try") 2>&5 |
| 33853 | ac_status=$? |
| 33854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33855 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33856 | ac_cv_func_isinf_in_math_h=yes |
| 33857 | else |
| 33858 | echo "$as_me: failed program was:" >&5 |
| 33859 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33860 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33861 | ac_cv_func_isinf_in_math_h=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33862 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33863 | |
| 33864 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33865 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33866 | ac_cpp='$CPP $CPPFLAGS' |
| 33867 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33868 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33869 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33870 | |
| 33871 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33872 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 |
| 33873 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33874 | |
| 33875 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33876 | |
| 33877 | cat >>confdefs.h <<\_ACEOF |
| 33878 | #define HAVE_ISINF_IN_MATH_H 1 |
| 33879 | _ACEOF |
| 33880 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33881 | fi |
| 33882 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33883 | { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 |
| 33884 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33885 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then |
| 33886 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33887 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33888 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33889 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33890 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33891 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33892 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33893 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33894 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33895 | /* confdefs.h. */ |
| 33896 | _ACEOF |
| 33897 | cat confdefs.h >>conftest.$ac_ext |
| 33898 | cat >>conftest.$ac_ext <<_ACEOF |
| 33899 | /* end confdefs.h. */ |
| 33900 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33901 | int |
| 33902 | main () |
| 33903 | { |
| 33904 | float f; isinf(f); |
| 33905 | ; |
| 33906 | return 0; |
| 33907 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33908 | _ACEOF |
| 33909 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33910 | if { (ac_try="$ac_compile" |
| 33911 | case "(($ac_try" in |
| 33912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33913 | *) ac_try_echo=$ac_try;; |
| 33914 | esac |
| 33915 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33916 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33917 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33918 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33919 | rm -f conftest.er1 |
| 33920 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 33922 | (exit $ac_status); } && |
| 33923 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 33924 | { (case "(($ac_try" in |
| 33925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33926 | *) ac_try_echo=$ac_try;; |
| 33927 | esac |
| 33928 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33929 | (eval "$ac_try") 2>&5 |
| 33930 | ac_status=$? |
| 33931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33932 | (exit $ac_status); }; } && |
| 33933 | { ac_try='test -s conftest.$ac_objext' |
| 33934 | { (case "(($ac_try" in |
| 33935 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33936 | *) ac_try_echo=$ac_try;; |
| 33937 | esac |
| 33938 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33939 | (eval "$ac_try") 2>&5 |
| 33940 | ac_status=$? |
| 33941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33942 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33943 | ac_cv_func_isinf_in_cmath=yes |
| 33944 | else |
| 33945 | echo "$as_me: failed program was:" >&5 |
| 33946 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33947 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33948 | ac_cv_func_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33949 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33950 | |
| 33951 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33952 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33953 | ac_cpp='$CPP $CPPFLAGS' |
| 33954 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33955 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33956 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33957 | |
| 33958 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33959 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 |
| 33960 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33961 | |
| 33962 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33963 | |
| 33964 | cat >>confdefs.h <<\_ACEOF |
| 33965 | #define HAVE_ISINF_IN_CMATH 1 |
| 33966 | _ACEOF |
| 33967 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33968 | fi |
| 33969 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33970 | { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 |
| 33971 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33972 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then |
| 33973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33974 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33975 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33976 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 33977 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33978 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33979 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 33980 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33981 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33982 | /* confdefs.h. */ |
| 33983 | _ACEOF |
| 33984 | cat confdefs.h >>conftest.$ac_ext |
| 33985 | cat >>conftest.$ac_ext <<_ACEOF |
| 33986 | /* end confdefs.h. */ |
| 33987 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 33988 | int |
| 33989 | main () |
| 33990 | { |
| 33991 | float f; std::isinf(f)} |
| 33992 | ; |
| 33993 | return 0; |
| 33994 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 33995 | _ACEOF |
| 33996 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33997 | if { (ac_try="$ac_compile" |
| 33998 | case "(($ac_try" in |
| 33999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34000 | *) ac_try_echo=$ac_try;; |
| 34001 | esac |
| 34002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34003 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34004 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34005 | grep -v '^ *+' conftest.er1 >conftest.err |
| 34006 | rm -f conftest.er1 |
| 34007 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34009 | (exit $ac_status); } && |
| 34010 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 34011 | { (case "(($ac_try" in |
| 34012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34013 | *) ac_try_echo=$ac_try;; |
| 34014 | esac |
| 34015 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34016 | (eval "$ac_try") 2>&5 |
| 34017 | ac_status=$? |
| 34018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34019 | (exit $ac_status); }; } && |
| 34020 | { ac_try='test -s conftest.$ac_objext' |
| 34021 | { (case "(($ac_try" in |
| 34022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34023 | *) ac_try_echo=$ac_try;; |
| 34024 | esac |
| 34025 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34026 | (eval "$ac_try") 2>&5 |
| 34027 | ac_status=$? |
| 34028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34029 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34030 | ac_cv_func_std_isinf_in_cmath=yes |
| 34031 | else |
| 34032 | echo "$as_me: failed program was:" >&5 |
| 34033 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34034 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34035 | ac_cv_func_std_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34036 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34037 | |
| 34038 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34039 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34040 | ac_cpp='$CPP $CPPFLAGS' |
| 34041 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 34042 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 34043 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 34044 | |
| 34045 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34046 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 |
| 34047 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34048 | |
| 34049 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 34050 | |
| 34051 | cat >>confdefs.h <<\_ACEOF |
| 34052 | #define HAVE_STD_ISINF_IN_CMATH 1 |
| 34053 | _ACEOF |
| 34054 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34055 | fi |
| 34056 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34057 | { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 |
| 34058 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34059 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then |
| 34060 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34061 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34062 | ac_ext=cpp |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34063 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 34064 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 34065 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 34066 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 34067 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34068 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34069 | /* confdefs.h. */ |
| 34070 | _ACEOF |
| 34071 | cat confdefs.h >>conftest.$ac_ext |
| 34072 | cat >>conftest.$ac_ext <<_ACEOF |
| 34073 | /* end confdefs.h. */ |
| 34074 | #include <ieeefp.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34075 | int |
| 34076 | main () |
| 34077 | { |
| 34078 | float f; finite(f); |
| 34079 | ; |
| 34080 | return 0; |
| 34081 | } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34082 | _ACEOF |
| 34083 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34084 | if { (ac_try="$ac_compile" |
| 34085 | case "(($ac_try" in |
| 34086 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34087 | *) ac_try_echo=$ac_try;; |
| 34088 | esac |
| 34089 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34090 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34091 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34092 | grep -v '^ *+' conftest.er1 >conftest.err |
| 34093 | rm -f conftest.er1 |
| 34094 | cat conftest.err >&5 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34096 | (exit $ac_status); } && |
| 34097 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 34098 | { (case "(($ac_try" in |
| 34099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34100 | *) ac_try_echo=$ac_try;; |
| 34101 | esac |
| 34102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34103 | (eval "$ac_try") 2>&5 |
| 34104 | ac_status=$? |
| 34105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34106 | (exit $ac_status); }; } && |
| 34107 | { ac_try='test -s conftest.$ac_objext' |
| 34108 | { (case "(($ac_try" in |
| 34109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34110 | *) ac_try_echo=$ac_try;; |
| 34111 | esac |
| 34112 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34113 | (eval "$ac_try") 2>&5 |
| 34114 | ac_status=$? |
| 34115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34116 | (exit $ac_status); }; }; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34117 | ac_cv_func_finite_in_ieeefp_h=yes |
| 34118 | else |
| 34119 | echo "$as_me: failed program was:" >&5 |
| 34120 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34121 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34122 | ac_cv_func_finite_in_ieeefp_h=no |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34123 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34124 | |
| 34125 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34126 | ac_ext=c |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34127 | ac_cpp='$CPP $CPPFLAGS' |
| 34128 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 34129 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 34130 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 34131 | |
| 34132 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34133 | { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 |
| 34134 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34135 | |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 34136 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34137 | |
| 34138 | cat >>confdefs.h <<\_ACEOF |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 34139 | #define HAVE_FINITE_IN_IEEEFP_H 1 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 34140 | _ACEOF |
| 34141 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 34142 | fi |
| 34143 | |
| 34144 | |
| 34145 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 34146 | if test "$llvm_cv_platform_type" = "Unix" ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34147 | |
| 34148 | |
| 34149 | for ac_header in stdlib.h unistd.h |
| 34150 | do |
| 34151 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34152 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 34153 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 34154 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 34155 | 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] | 34156 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34157 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34158 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 34159 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 34160 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34161 | else |
| 34162 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34163 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 34164 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34165 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34166 | /* confdefs.h. */ |
| 34167 | _ACEOF |
| 34168 | cat confdefs.h >>conftest.$ac_ext |
| 34169 | cat >>conftest.$ac_ext <<_ACEOF |
| 34170 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34171 | $ac_includes_default |
| 34172 | #include <$ac_header> |
| 34173 | _ACEOF |
| 34174 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34175 | if { (ac_try="$ac_compile" |
| 34176 | case "(($ac_try" in |
| 34177 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34178 | *) ac_try_echo=$ac_try;; |
| 34179 | esac |
| 34180 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34181 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34182 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34183 | grep -v '^ *+' conftest.er1 >conftest.err |
| 34184 | rm -f conftest.er1 |
| 34185 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34187 | (exit $ac_status); } && |
| 34188 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 34189 | { (case "(($ac_try" in |
| 34190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34191 | *) ac_try_echo=$ac_try;; |
| 34192 | esac |
| 34193 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34194 | (eval "$ac_try") 2>&5 |
| 34195 | ac_status=$? |
| 34196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34197 | (exit $ac_status); }; } && |
| 34198 | { ac_try='test -s conftest.$ac_objext' |
| 34199 | { (case "(($ac_try" in |
| 34200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34201 | *) ac_try_echo=$ac_try;; |
| 34202 | esac |
| 34203 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34204 | (eval "$ac_try") 2>&5 |
| 34205 | ac_status=$? |
| 34206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34207 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34208 | ac_header_compiler=yes |
| 34209 | else |
| 34210 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34211 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34212 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34213 | ac_header_compiler=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34214 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34215 | |
| 34216 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 34217 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 34218 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34219 | |
| 34220 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34221 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 34222 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34223 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34224 | /* confdefs.h. */ |
| 34225 | _ACEOF |
| 34226 | cat confdefs.h >>conftest.$ac_ext |
| 34227 | cat >>conftest.$ac_ext <<_ACEOF |
| 34228 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34229 | #include <$ac_header> |
| 34230 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34231 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 34232 | case "(($ac_try" in |
| 34233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34234 | *) ac_try_echo=$ac_try;; |
| 34235 | esac |
| 34236 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34237 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34238 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34239 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34240 | rm -f conftest.er1 |
| 34241 | cat conftest.err >&5 |
| 34242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34243 | (exit $ac_status); } >/dev/null; then |
| 34244 | if test -s conftest.err; then |
| 34245 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 34246 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 34247 | else |
| 34248 | ac_cpp_err= |
| 34249 | fi |
| 34250 | else |
| 34251 | ac_cpp_err=yes |
| 34252 | fi |
| 34253 | if test -z "$ac_cpp_err"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34254 | ac_header_preproc=yes |
| 34255 | else |
| 34256 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34257 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34258 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34259 | ac_header_preproc=no |
| 34260 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34261 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34262 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34263 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 34264 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34265 | |
| 34266 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34267 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 34268 | yes:no: ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34269 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 34270 | 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] | 34271 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 34272 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 34273 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 34274 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34275 | no:yes:* ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 34276 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 34277 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34278 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 34279 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 34280 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 34281 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 34282 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 34283 | 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] | 34284 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 34285 | 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] | 34286 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 34287 | 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] | 34288 | ( cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34289 | ## ----------------------------------- ## |
| 34290 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 34291 | ## ----------------------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34292 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34293 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34294 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34295 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34296 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 34297 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 34298 | 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] | 34299 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34300 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34301 | eval "$as_ac_Header=\$ac_header_preproc" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34302 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34303 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 34304 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 34305 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34306 | |
| 34307 | fi |
| 34308 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 34309 | cat >>confdefs.h <<_ACEOF |
| 34310 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 34311 | _ACEOF |
| 34312 | |
| 34313 | fi |
| 34314 | |
| 34315 | done |
| 34316 | |
| 34317 | |
| 34318 | for ac_func in getpagesize |
| 34319 | do |
| 34320 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34321 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 34322 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 34323 | 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] | 34324 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34325 | else |
| 34326 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34327 | /* confdefs.h. */ |
| 34328 | _ACEOF |
| 34329 | cat confdefs.h >>conftest.$ac_ext |
| 34330 | cat >>conftest.$ac_ext <<_ACEOF |
| 34331 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34332 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 34333 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 34334 | #define $ac_func innocuous_$ac_func |
| 34335 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34336 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34337 | which can conflict with char $ac_func (); below. |
| 34338 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 34339 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34340 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34341 | #ifdef __STDC__ |
| 34342 | # include <limits.h> |
| 34343 | #else |
| 34344 | # include <assert.h> |
| 34345 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34346 | |
| 34347 | #undef $ac_func |
| 34348 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34349 | /* Override any GCC internal prototype to avoid an error. |
| 34350 | Use char because int might match the return type of a GCC |
| 34351 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34352 | #ifdef __cplusplus |
| 34353 | extern "C" |
| 34354 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34355 | char $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34356 | /* The GNU C library defines this for functions which it implements |
| 34357 | to always fail with ENOSYS. Some functions are actually named |
| 34358 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34359 | #if defined __stub_$ac_func || defined __stub___$ac_func |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34360 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34361 | #endif |
| 34362 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34363 | int |
| 34364 | main () |
| 34365 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34366 | return $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34367 | ; |
| 34368 | return 0; |
| 34369 | } |
| 34370 | _ACEOF |
| 34371 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34372 | if { (ac_try="$ac_link" |
| 34373 | case "(($ac_try" in |
| 34374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34375 | *) ac_try_echo=$ac_try;; |
| 34376 | esac |
| 34377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34378 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34379 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34380 | grep -v '^ *+' conftest.er1 >conftest.err |
| 34381 | rm -f conftest.er1 |
| 34382 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34384 | (exit $ac_status); } && |
| 34385 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 34386 | { (case "(($ac_try" in |
| 34387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34388 | *) ac_try_echo=$ac_try;; |
| 34389 | esac |
| 34390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34391 | (eval "$ac_try") 2>&5 |
| 34392 | ac_status=$? |
| 34393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34394 | (exit $ac_status); }; } && |
| 34395 | { ac_try='test -s conftest$ac_exeext' |
| 34396 | { (case "(($ac_try" in |
| 34397 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34398 | *) ac_try_echo=$ac_try;; |
| 34399 | esac |
| 34400 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34401 | (eval "$ac_try") 2>&5 |
| 34402 | ac_status=$? |
| 34403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34404 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34405 | eval "$as_ac_var=yes" |
| 34406 | else |
| 34407 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34408 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34409 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34410 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34411 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34412 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34413 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34414 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34415 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34416 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 34417 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 34418 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34419 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 34420 | cat >>confdefs.h <<_ACEOF |
| 34421 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 34422 | _ACEOF |
| 34423 | |
| 34424 | fi |
| 34425 | done |
| 34426 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34427 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 34428 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34429 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 34430 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34431 | else |
| 34432 | if test "$cross_compiling" = yes; then |
| 34433 | ac_cv_func_mmap_fixed_mapped=no |
| 34434 | else |
| 34435 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34436 | /* confdefs.h. */ |
| 34437 | _ACEOF |
| 34438 | cat confdefs.h >>conftest.$ac_ext |
| 34439 | cat >>conftest.$ac_ext <<_ACEOF |
| 34440 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34441 | $ac_includes_default |
| 34442 | /* malloc might have been renamed as rpl_malloc. */ |
| 34443 | #undef malloc |
| 34444 | |
| 34445 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 34446 | Here is a matrix of mmap possibilities: |
| 34447 | mmap private not fixed |
| 34448 | mmap private fixed at somewhere currently unmapped |
| 34449 | mmap private fixed at somewhere already mapped |
| 34450 | mmap shared not fixed |
| 34451 | mmap shared fixed at somewhere currently unmapped |
| 34452 | mmap shared fixed at somewhere already mapped |
| 34453 | For private mappings, we should verify that changes cannot be read() |
| 34454 | back from the file, nor mmap's back from the file at a different |
| 34455 | address. (There have been systems where private was not correctly |
| 34456 | implemented like the infamous i386 svr4.0, and systems where the |
| 34457 | VM page cache was not coherent with the file system buffer cache |
| 34458 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 34459 | For shared mappings, we should conversely verify that changes get |
| 34460 | propagated back to all the places they're supposed to be. |
| 34461 | |
| 34462 | Grep wants private fixed already mapped. |
| 34463 | The main things grep needs to know about mmap are: |
| 34464 | * does it exist and is it safe to write into the mmap'd area |
| 34465 | * how to use it (BSD variants) */ |
| 34466 | |
| 34467 | #include <fcntl.h> |
| 34468 | #include <sys/mman.h> |
| 34469 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34470 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34471 | char *malloc (); |
| 34472 | #endif |
| 34473 | |
| 34474 | /* This mess was copied from the GNU getpagesize.h. */ |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34475 | #if !HAVE_GETPAGESIZE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34476 | /* Assume that all systems that can run configure have sys/param.h. */ |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34477 | # if !HAVE_SYS_PARAM_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34478 | # define HAVE_SYS_PARAM_H 1 |
| 34479 | # endif |
| 34480 | |
| 34481 | # ifdef _SC_PAGESIZE |
| 34482 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 34483 | # else /* no _SC_PAGESIZE */ |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34484 | # if HAVE_SYS_PARAM_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34485 | # include <sys/param.h> |
| 34486 | # ifdef EXEC_PAGESIZE |
| 34487 | # define getpagesize() EXEC_PAGESIZE |
| 34488 | # else /* no EXEC_PAGESIZE */ |
| 34489 | # ifdef NBPG |
| 34490 | # define getpagesize() NBPG * CLSIZE |
| 34491 | # ifndef CLSIZE |
| 34492 | # define CLSIZE 1 |
| 34493 | # endif /* no CLSIZE */ |
| 34494 | # else /* no NBPG */ |
| 34495 | # ifdef NBPC |
| 34496 | # define getpagesize() NBPC |
| 34497 | # else /* no NBPC */ |
| 34498 | # ifdef PAGESIZE |
| 34499 | # define getpagesize() PAGESIZE |
| 34500 | # endif /* PAGESIZE */ |
| 34501 | # endif /* no NBPC */ |
| 34502 | # endif /* no NBPG */ |
| 34503 | # endif /* no EXEC_PAGESIZE */ |
| 34504 | # else /* no HAVE_SYS_PARAM_H */ |
| 34505 | # define getpagesize() 8192 /* punt totally */ |
| 34506 | # endif /* no HAVE_SYS_PARAM_H */ |
| 34507 | # endif /* no _SC_PAGESIZE */ |
| 34508 | |
| 34509 | #endif /* no HAVE_GETPAGESIZE */ |
| 34510 | |
| 34511 | int |
| 34512 | main () |
| 34513 | { |
| 34514 | char *data, *data2, *data3; |
| 34515 | int i, pagesize; |
| 34516 | int fd; |
| 34517 | |
| 34518 | pagesize = getpagesize (); |
| 34519 | |
| 34520 | /* First, make a file with some known garbage in it. */ |
| 34521 | data = (char *) malloc (pagesize); |
| 34522 | if (!data) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34523 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34524 | for (i = 0; i < pagesize; ++i) |
| 34525 | *(data + i) = rand (); |
| 34526 | umask (0); |
| 34527 | fd = creat ("conftest.mmap", 0600); |
| 34528 | if (fd < 0) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34529 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34530 | if (write (fd, data, pagesize) != pagesize) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34531 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34532 | close (fd); |
| 34533 | |
| 34534 | /* Next, try to mmap the file at a fixed address which already has |
| 34535 | something else allocated at it. If we can, also make sure that |
| 34536 | we see the same garbage. */ |
| 34537 | fd = open ("conftest.mmap", O_RDWR); |
| 34538 | if (fd < 0) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34539 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34540 | data2 = (char *) malloc (2 * pagesize); |
| 34541 | if (!data2) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34542 | return 1; |
| 34543 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34544 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34545 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34546 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34547 | for (i = 0; i < pagesize; ++i) |
| 34548 | if (*(data + i) != *(data2 + i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34549 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34550 | |
| 34551 | /* Finally, make sure that changes to the mapped area do not |
| 34552 | percolate back to the file as seen by read(). (This is a bug on |
| 34553 | some variants of i386 svr4.0.) */ |
| 34554 | for (i = 0; i < pagesize; ++i) |
| 34555 | *(data2 + i) = *(data2 + i) + 1; |
| 34556 | data3 = (char *) malloc (pagesize); |
| 34557 | if (!data3) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34558 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34559 | if (read (fd, data3, pagesize) != pagesize) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34560 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34561 | for (i = 0; i < pagesize; ++i) |
| 34562 | if (*(data + i) != *(data3 + i)) |
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 | close (fd); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34565 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34566 | } |
| 34567 | _ACEOF |
| 34568 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34569 | if { (ac_try="$ac_link" |
| 34570 | case "(($ac_try" in |
| 34571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34572 | *) ac_try_echo=$ac_try;; |
| 34573 | esac |
| 34574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34575 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34576 | ac_status=$? |
| 34577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34578 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34579 | { (case "(($ac_try" in |
| 34580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34581 | *) ac_try_echo=$ac_try;; |
| 34582 | esac |
| 34583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34584 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34585 | ac_status=$? |
| 34586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34587 | (exit $ac_status); }; }; then |
| 34588 | ac_cv_func_mmap_fixed_mapped=yes |
| 34589 | else |
| 34590 | echo "$as_me: program exited with status $ac_status" >&5 |
| 34591 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34592 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34593 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34594 | ( exit $ac_status ) |
| 34595 | ac_cv_func_mmap_fixed_mapped=no |
| 34596 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34597 | 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] | 34598 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34599 | |
| 34600 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34601 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34602 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 34603 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34604 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 34605 | |
| 34606 | cat >>confdefs.h <<\_ACEOF |
| 34607 | #define HAVE_MMAP 1 |
| 34608 | _ACEOF |
| 34609 | |
| 34610 | fi |
| 34611 | rm -f conftest.mmap |
| 34612 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 34613 | { echo "$as_me:$LINENO: checking for mmap of files" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34614 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34615 | if test "${ac_cv_func_mmap_file+set}" = set; then |
| 34616 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34617 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34618 | ac_ext=c |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34619 | ac_cpp='$CPP $CPPFLAGS' |
| 34620 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 34621 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 34622 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 34623 | |
| 34624 | if test "$cross_compiling" = yes; then |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 34625 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34626 | else |
| 34627 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34628 | |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 34629 | /* confdefs.h. */ |
| 34630 | _ACEOF |
| 34631 | cat confdefs.h >>conftest.$ac_ext |
| 34632 | cat >>conftest.$ac_ext <<_ACEOF |
| 34633 | /* end confdefs.h. */ |
| 34634 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34635 | #include <sys/types.h> |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 34636 | #include <sys/mman.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34637 | #include <fcntl.h> |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 34638 | |
| 34639 | int |
| 34640 | main () |
| 34641 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34642 | |
| 34643 | int fd; |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 34644 | fd = creat ("foo",0777); |
| 34645 | fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); |
| 34646 | unlink ("foo"); |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 34647 | return (fd != (int) MAP_FAILED); |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 34648 | ; |
| 34649 | return 0; |
| 34650 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34651 | _ACEOF |
| 34652 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34653 | if { (ac_try="$ac_link" |
| 34654 | case "(($ac_try" in |
| 34655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34656 | *) ac_try_echo=$ac_try;; |
| 34657 | esac |
| 34658 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34659 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34660 | ac_status=$? |
| 34661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34662 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34663 | { (case "(($ac_try" in |
| 34664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34665 | *) ac_try_echo=$ac_try;; |
| 34666 | esac |
| 34667 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34668 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34669 | ac_status=$? |
| 34670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34671 | (exit $ac_status); }; }; then |
| 34672 | ac_cv_func_mmap_file=yes |
| 34673 | else |
| 34674 | echo "$as_me: program exited with status $ac_status" >&5 |
| 34675 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34676 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34677 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34678 | ( exit $ac_status ) |
| 34679 | ac_cv_func_mmap_file=no |
| 34680 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34681 | 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] | 34682 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34683 | |
| 34684 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34685 | ac_ext=c |
| 34686 | ac_cpp='$CPP $CPPFLAGS' |
| 34687 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 34688 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 34689 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 34690 | |
| 34691 | |
| 34692 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34693 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 |
| 34694 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34695 | if test "$ac_cv_func_mmap_file" = yes; then |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 34696 | |
| 34697 | cat >>confdefs.h <<\_ACEOF |
| 34698 | #define HAVE_MMAP_FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34699 | _ACEOF |
| 34700 | |
| 34701 | MMAP_FILE=yes |
| 34702 | |
| 34703 | fi |
| 34704 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 34705 | { 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] | 34706 | 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] | 34707 | if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then |
| 34708 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34709 | else |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 34710 | if test "$llvm_cv_os_type" = "Interix" ; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 34711 | ac_cv_need_dev_zero_for_mmap=yes |
| 34712 | else |
| 34713 | ac_cv_need_dev_zero_for_mmap=no |
| 34714 | fi |
| 34715 | |
| 34716 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34717 | { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 |
| 34718 | echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 34719 | if test "$ac_cv_need_dev_zero_for_mmap" = yes; then |
| 34720 | |
| 34721 | cat >>confdefs.h <<\_ACEOF |
| 34722 | #define NEED_DEV_ZERO_FOR_MMAP 1 |
| 34723 | _ACEOF |
| 34724 | |
| 34725 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34726 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 34727 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" |
| 34728 | then |
| 34729 | { 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] | 34730 | 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] | 34731 | fi |
| 34732 | if test "$ac_cv_func_mmap_file" = "no" |
| 34733 | then |
| 34734 | { 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] | 34735 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 34736 | fi |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 34737 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34738 | |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 34739 | { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 34740 | echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 34741 | cat >conftest.$ac_ext <<_ACEOF |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 34742 | /* confdefs.h. */ |
| 34743 | _ACEOF |
| 34744 | cat confdefs.h >>conftest.$ac_ext |
| 34745 | cat >>conftest.$ac_ext <<_ACEOF |
| 34746 | /* end confdefs.h. */ |
| 34747 | int main() { |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 34748 | volatile unsigned long val = 1; |
| 34749 | __sync_synchronize(); |
| 34750 | __sync_val_compare_and_swap(&val, 1, 0); |
Owen Anderson | 9a3df67 | 2009-06-17 00:13:00 +0000 | [diff] [blame] | 34751 | __sync_add_and_fetch(&val, 1); |
| 34752 | __sync_sub_and_fetch(&val, 1); |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 34753 | return 0; |
| 34754 | } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 34755 | |
| 34756 | _ACEOF |
| 34757 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 34758 | if { (ac_try="$ac_link" |
| 34759 | case "(($ac_try" in |
| 34760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34761 | *) ac_try_echo=$ac_try;; |
| 34762 | esac |
| 34763 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34764 | (eval "$ac_link") 2>conftest.er1 |
| 34765 | ac_status=$? |
| 34766 | grep -v '^ *+' conftest.er1 >conftest.err |
| 34767 | rm -f conftest.er1 |
| 34768 | cat conftest.err >&5 |
| 34769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34770 | (exit $ac_status); } && |
| 34771 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 34772 | { (case "(($ac_try" in |
| 34773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34774 | *) ac_try_echo=$ac_try;; |
| 34775 | esac |
| 34776 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34777 | (eval "$ac_try") 2>&5 |
| 34778 | ac_status=$? |
| 34779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34780 | (exit $ac_status); }; } && |
| 34781 | { ac_try='test -s conftest$ac_exeext' |
| 34782 | { (case "(($ac_try" in |
| 34783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34784 | *) ac_try_echo=$ac_try;; |
| 34785 | esac |
| 34786 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34787 | (eval "$ac_try") 2>&5 |
| 34788 | ac_status=$? |
| 34789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34790 | (exit $ac_status); }; }; then |
| 34791 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 34792 | echo "${ECHO_T}yes" >&6; } |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 34793 | |
| 34794 | cat >>confdefs.h <<\_ACEOF |
| 34795 | #define LLVM_MULTITHREADED 1 |
| 34796 | _ACEOF |
| 34797 | |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 34798 | else |
| 34799 | echo "$as_me: failed program was:" >&5 |
| 34800 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34801 | |
| 34802 | { echo "$as_me:$LINENO: result: no" >&5 |
| 34803 | echo "${ECHO_T}no" >&6; } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 34804 | |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 34805 | cat >>confdefs.h <<\_ACEOF |
| 34806 | #define LLVM_MULTITHREADED 0 |
| 34807 | _ACEOF |
| 34808 | |
| 34809 | { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 |
| 34810 | 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] | 34811 | fi |
| 34812 | |
| 34813 | rm -f core conftest.err conftest.$ac_objext \ |
| 34814 | conftest$ac_exeext conftest.$ac_ext |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 34815 | |
| 34816 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34817 | |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 34818 | |
| 34819 | for ac_func in __dso_handle |
| 34820 | do |
| 34821 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 34822 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 34823 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 34824 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 34825 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34826 | else |
| 34827 | cat >conftest.$ac_ext <<_ACEOF |
| 34828 | /* confdefs.h. */ |
| 34829 | _ACEOF |
| 34830 | cat confdefs.h >>conftest.$ac_ext |
| 34831 | cat >>conftest.$ac_ext <<_ACEOF |
| 34832 | /* end confdefs.h. */ |
| 34833 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 34834 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 34835 | #define $ac_func innocuous_$ac_func |
| 34836 | |
| 34837 | /* System header to define __stub macros and hopefully few prototypes, |
| 34838 | which can conflict with char $ac_func (); below. |
| 34839 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 34840 | <limits.h> exists even on freestanding compilers. */ |
| 34841 | |
| 34842 | #ifdef __STDC__ |
| 34843 | # include <limits.h> |
| 34844 | #else |
| 34845 | # include <assert.h> |
| 34846 | #endif |
| 34847 | |
| 34848 | #undef $ac_func |
| 34849 | |
| 34850 | /* Override any GCC internal prototype to avoid an error. |
| 34851 | Use char because int might match the return type of a GCC |
| 34852 | builtin and then its argument prototype would still apply. */ |
| 34853 | #ifdef __cplusplus |
| 34854 | extern "C" |
| 34855 | #endif |
| 34856 | char $ac_func (); |
| 34857 | /* The GNU C library defines this for functions which it implements |
| 34858 | to always fail with ENOSYS. Some functions are actually named |
| 34859 | something starting with __ and the normal name is an alias. */ |
| 34860 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 34861 | choke me |
| 34862 | #endif |
| 34863 | |
| 34864 | int |
| 34865 | main () |
| 34866 | { |
| 34867 | return $ac_func (); |
| 34868 | ; |
| 34869 | return 0; |
| 34870 | } |
| 34871 | _ACEOF |
| 34872 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 34873 | if { (ac_try="$ac_link" |
| 34874 | case "(($ac_try" in |
| 34875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34876 | *) ac_try_echo=$ac_try;; |
| 34877 | esac |
| 34878 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34879 | (eval "$ac_link") 2>conftest.er1 |
| 34880 | ac_status=$? |
| 34881 | grep -v '^ *+' conftest.er1 >conftest.err |
| 34882 | rm -f conftest.er1 |
| 34883 | cat conftest.err >&5 |
| 34884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34885 | (exit $ac_status); } && |
| 34886 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 34887 | { (case "(($ac_try" in |
| 34888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34889 | *) ac_try_echo=$ac_try;; |
| 34890 | esac |
| 34891 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34892 | (eval "$ac_try") 2>&5 |
| 34893 | ac_status=$? |
| 34894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34895 | (exit $ac_status); }; } && |
| 34896 | { ac_try='test -s conftest$ac_exeext' |
| 34897 | { (case "(($ac_try" in |
| 34898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34899 | *) ac_try_echo=$ac_try;; |
| 34900 | esac |
| 34901 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 34902 | (eval "$ac_try") 2>&5 |
| 34903 | ac_status=$? |
| 34904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34905 | (exit $ac_status); }; }; then |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 34906 | eval "$as_ac_var=yes" |
| 34907 | else |
| 34908 | echo "$as_me: failed program was:" >&5 |
| 34909 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34910 | |
| 34911 | eval "$as_ac_var=no" |
| 34912 | fi |
| 34913 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 34914 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 34915 | conftest$ac_exeext conftest.$ac_ext |
| 34916 | fi |
| 34917 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 34918 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 34919 | echo "${ECHO_T}$ac_res" >&6; } |
| 34920 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 34921 | cat >>confdefs.h <<_ACEOF |
| 34922 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 34923 | _ACEOF |
| 34924 | |
| 34925 | fi |
| 34926 | done |
| 34927 | |
| 34928 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34929 | { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 |
| 34930 | echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34931 | if test "${llvm_cv_llvmgcc_sanity+set}" = set; then |
| 34932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 34933 | else |
| 34934 | llvm_cv_llvmgcc_sanity="no" |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 34935 | if test -x "$LLVMGCC" ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34936 | cp /dev/null conftest.c |
Reid Spencer | 585e088 | 2007-03-29 15:38:33 +0000 | [diff] [blame] | 34937 | "$LLVMGCC" -emit-llvm -S -o - conftest.c | \ |
| 34938 | grep 'target datalayout =' > /dev/null 2>&1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34939 | if test $? -eq 0 ; then |
| 34940 | llvm_cv_llvmgcc_sanity="yes" |
| 34941 | fi |
| 34942 | rm conftest.c |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 34943 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34944 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34945 | { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5 |
| 34946 | echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34947 | |
| 34948 | if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then |
Reid Spencer | 0d23818 | 2007-04-21 21:28:52 +0000 | [diff] [blame] | 34949 | { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5 |
| 34950 | echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; } |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 34951 | llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34952 | LLVMCC1=$llvmcc1path |
| 34953 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 34954 | llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34955 | LLVMCC1PLUS=$llvmcc1pluspath |
| 34956 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 34957 | llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'` |
| 34958 | LLVMGCCDIR=$llvmgccdir |
| 34959 | |
Reid Spencer | 282d8c1 | 2006-12-21 22:55:41 +0000 | [diff] [blame] | 34960 | llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'` |
| 34961 | LLVMGCCLIBEXEC=$llvmgcclibexec |
| 34962 | |
Reid Spencer | b5d75b8 | 2006-05-09 00:31:01 +0000 | [diff] [blame] | 34963 | llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'` |
Reid Spencer | 7917d3a | 2006-04-06 22:00:36 +0000 | [diff] [blame] | 34964 | llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'` |
| 34965 | LLVMGCC_VERSION=$llvmgccversion |
| 34966 | |
| 34967 | LLVMGCC_MAJVERS=$llvmgccmajvers |
| 34968 | |
Tanya Lattner | f85e74c | 2008-10-07 22:21:03 +0000 | [diff] [blame] | 34969 | 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] | 34970 | LLVMGCC_LANGS=$llvmgcclangs |
| 34971 | |
| 34972 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 34973 | echo "${ECHO_T}ok" >&6; } |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 34974 | fi |
| 34975 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 34976 | SHLIBEXT=$libltdl_cv_shlibext |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 34977 | |
| 34978 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 34979 | # Translate the various configuration directories and other basic |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34980 | # information into substitutions that will end up in Makefile.config.in |
| 34981 | # that these configured values can be used by the makefiles |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 34982 | if test "${prefix}" = "NONE" ; then |
Reid Spencer | 0582887 | 2006-05-16 08:53:32 +0000 | [diff] [blame] | 34983 | prefix="/usr/local" |
| 34984 | fi |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 34985 | eval LLVM_PREFIX="${prefix}"; |
| 34986 | eval LLVM_BINDIR="${prefix}/bin"; |
| 34987 | eval LLVM_LIBDIR="${prefix}/lib"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 34988 | eval LLVM_DATADIR="${prefix}/share/llvm"; |
| 34989 | eval LLVM_DOCSDIR="${prefix}/docs/llvm"; |
| 34990 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 34991 | eval LLVM_INCLUDEDIR="${prefix}/include"; |
| 34992 | eval LLVM_INFODIR="${prefix}/info"; |
| 34993 | eval LLVM_MANDIR="${prefix}/man"; |
| 34994 | LLVM_CONFIGTIME=`date` |
| 34995 | |
| 34996 | |
| 34997 | |
| 34998 | |
| 34999 | |
| 35000 | |
| 35001 | |
| 35002 | |
| 35003 | |
| 35004 | |
| 35005 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35006 | # Place the various directores into the config.h file as #defines so that we |
| 35007 | # can know about the installation paths within LLVM. |
| 35008 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 35009 | cat >>confdefs.h <<_ACEOF |
| 35010 | #define LLVM_PREFIX "$LLVM_PREFIX" |
| 35011 | _ACEOF |
| 35012 | |
| 35013 | |
| 35014 | cat >>confdefs.h <<_ACEOF |
| 35015 | #define LLVM_BINDIR "$LLVM_BINDIR" |
| 35016 | _ACEOF |
| 35017 | |
| 35018 | |
| 35019 | cat >>confdefs.h <<_ACEOF |
| 35020 | #define LLVM_LIBDIR "$LLVM_LIBDIR" |
| 35021 | _ACEOF |
| 35022 | |
| 35023 | |
| 35024 | cat >>confdefs.h <<_ACEOF |
| 35025 | #define LLVM_DATADIR "$LLVM_DATADIR" |
| 35026 | _ACEOF |
| 35027 | |
| 35028 | |
| 35029 | cat >>confdefs.h <<_ACEOF |
Gordon Henriksen | 0abe116 | 2007-10-03 12:07:14 +0000 | [diff] [blame] | 35030 | #define LLVM_DOCSDIR "$LLVM_DOCSDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 35031 | _ACEOF |
| 35032 | |
| 35033 | |
| 35034 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | ff22c42 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 35035 | #define LLVM_ETCDIR "$LLVM_ETCDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 35036 | _ACEOF |
| 35037 | |
| 35038 | |
| 35039 | cat >>confdefs.h <<_ACEOF |
| 35040 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" |
| 35041 | _ACEOF |
| 35042 | |
| 35043 | |
| 35044 | cat >>confdefs.h <<_ACEOF |
| 35045 | #define LLVM_INFODIR "$LLVM_INFODIR" |
| 35046 | _ACEOF |
| 35047 | |
| 35048 | |
| 35049 | cat >>confdefs.h <<_ACEOF |
| 35050 | #define LLVM_MANDIR "$LLVM_MANDIR" |
| 35051 | _ACEOF |
| 35052 | |
| 35053 | |
| 35054 | cat >>confdefs.h <<_ACEOF |
| 35055 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" |
| 35056 | _ACEOF |
| 35057 | |
| 35058 | |
Eric Christopher | 790e11c | 2007-12-01 00:34:39 +0000 | [diff] [blame] | 35059 | cat >>confdefs.h <<_ACEOF |
| 35060 | #define LLVM_HOSTTRIPLE "$host" |
| 35061 | _ACEOF |
| 35062 | |
| 35063 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 35064 | # Determine which bindings to build. |
| 35065 | if test "$BINDINGS_TO_BUILD" = auto ; then |
| 35066 | BINDINGS_TO_BUILD="" |
| 35067 | if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then |
| 35068 | BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" |
| 35069 | fi |
| 35070 | fi |
| 35071 | BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD |
| 35072 | |
| 35073 | |
| 35074 | # This isn't really configurey, but it avoids having to repeat the list in |
| 35075 | # other files. |
| 35076 | ALL_BINDINGS=ocaml |
| 35077 | |
| 35078 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 35079 | # Do any work necessary to ensure that bindings have what they need. |
| 35080 | binding_prereqs_failed=0 |
| 35081 | for a_binding in $BINDINGS_TO_BUILD ; do |
| 35082 | case "$a_binding" in |
| 35083 | ocaml) |
| 35084 | if test "x$OCAMLC" = x ; then |
| 35085 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 |
| 35086 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;} |
| 35087 | binding_prereqs_failed=1 |
| 35088 | fi |
| 35089 | if test "x$OCAMLDEP" = x ; then |
| 35090 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 |
| 35091 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;} |
| 35092 | binding_prereqs_failed=1 |
| 35093 | fi |
| 35094 | if test "x$OCAMLOPT" = x ; then |
| 35095 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 |
| 35096 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;} |
| 35097 | fi |
| 35098 | if test "x$with_ocaml_libdir" != xauto ; then |
| 35099 | OCAML_LIBDIR=$with_ocaml_libdir |
| 35100 | |
| 35101 | else |
| 35102 | ocaml_stdlib="`"$OCAMLC" -where`" |
| 35103 | if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" |
| 35104 | then |
| 35105 | # ocaml stdlib is beneath our prefix; use stdlib |
| 35106 | OCAML_LIBDIR=$ocaml_stdlib |
| 35107 | |
| 35108 | else |
| 35109 | # ocaml stdlib is outside our prefix; use libdir/ocaml |
| 35110 | OCAML_LIBDIR=$LLVM_LIBDIR/ocaml |
| 35111 | |
| 35112 | fi |
| 35113 | fi |
| 35114 | ;; |
| 35115 | esac |
| 35116 | done |
| 35117 | if test "$binding_prereqs_failed" = 1 ; then |
| 35118 | { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 |
| 35119 | echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} |
| 35120 | { (exit 1); exit 1; }; } |
| 35121 | fi |
| 35122 | |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 35123 | { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 |
| 35124 | echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } |
| 35125 | if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then |
| 35126 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 35127 | else |
| 35128 | ac_ext=cpp |
| 35129 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 35130 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 35131 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 35132 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 35133 | |
| 35134 | oldcxxflags="$CXXFLAGS" |
| 35135 | CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden" |
| 35136 | cat >conftest.$ac_ext <<_ACEOF |
| 35137 | /* confdefs.h. */ |
| 35138 | _ACEOF |
| 35139 | cat confdefs.h >>conftest.$ac_ext |
| 35140 | cat >>conftest.$ac_ext <<_ACEOF |
| 35141 | /* end confdefs.h. */ |
| 35142 | |
| 35143 | int |
| 35144 | main () |
| 35145 | { |
| 35146 | |
| 35147 | ; |
| 35148 | return 0; |
| 35149 | } |
| 35150 | _ACEOF |
| 35151 | rm -f conftest.$ac_objext |
| 35152 | if { (ac_try="$ac_compile" |
| 35153 | case "(($ac_try" in |
| 35154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 35155 | *) ac_try_echo=$ac_try;; |
| 35156 | esac |
| 35157 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 35158 | (eval "$ac_compile") 2>conftest.er1 |
| 35159 | ac_status=$? |
| 35160 | grep -v '^ *+' conftest.er1 >conftest.err |
| 35161 | rm -f conftest.er1 |
| 35162 | cat conftest.err >&5 |
| 35163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35164 | (exit $ac_status); } && |
| 35165 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 35166 | { (case "(($ac_try" in |
| 35167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 35168 | *) ac_try_echo=$ac_try;; |
| 35169 | esac |
| 35170 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 35171 | (eval "$ac_try") 2>&5 |
| 35172 | ac_status=$? |
| 35173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 35174 | (exit $ac_status); }; } && |
| 35175 | { ac_try='test -s conftest.$ac_objext' |
| 35176 | { (case "(($ac_try" in |
| 35177 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 35178 | *) ac_try_echo=$ac_try;; |
| 35179 | esac |
| 35180 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 35181 | (eval "$ac_try") 2>&5 |
| 35182 | ac_status=$? |
| 35183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 35184 | (exit $ac_status); }; }; then |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 35185 | llvm_cv_cxx_visibility_inlines_hidden=yes |
| 35186 | else |
| 35187 | echo "$as_me: failed program was:" >&5 |
| 35188 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 35189 | |
| 35190 | llvm_cv_cxx_visibility_inlines_hidden=no |
| 35191 | fi |
| 35192 | |
| 35193 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 35194 | CXXFLAGS="$oldcxxflags" |
| 35195 | ac_ext=c |
| 35196 | ac_cpp='$CPP $CPPFLAGS' |
| 35197 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 35198 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 35199 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 35200 | |
| 35201 | |
| 35202 | fi |
| 35203 | { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 |
| 35204 | echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } |
| 35205 | if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then |
| 35206 | ENABLE_VISIBILITY_INLINES_HIDDEN=1 |
| 35207 | |
| 35208 | else |
| 35209 | ENABLE_VISIBILITY_INLINES_HIDDEN=0 |
| 35210 | |
| 35211 | fi |
| 35212 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 35213 | |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 35214 | if test "$llvm_cv_link_use_r" = "yes" ; then |
| 35215 | RPATH="-Wl,-R" |
| 35216 | else |
| 35217 | RPATH="-Wl,-rpath" |
| 35218 | fi |
| 35219 | |
| 35220 | |
| 35221 | if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then |
| 35222 | RDYNAMIC="-Wl,-export-dynamic" |
| 35223 | else |
| 35224 | RDYNAMIC="" |
| 35225 | fi |
Nick Lewycky | e9821dc | 2009-03-03 04:55:29 +0000 | [diff] [blame] | 35226 | |
| 35227 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35228 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35229 | ac_config_headers="$ac_config_headers include/llvm/Config/config.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35230 | |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 35231 | ac_config_files="$ac_config_files include/llvm/Config/Targets.def" |
| 35232 | |
| 35233 | ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" |
| 35234 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 35235 | ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" |
| 35236 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35237 | ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35238 | |
Anton Korobeynikov | d3df7eb | 2008-05-29 17:41:34 +0000 | [diff] [blame] | 35239 | ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35240 | |
| 35241 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35242 | ac_config_files="$ac_config_files Makefile.config" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35243 | |
| 35244 | |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 35245 | ac_config_files="$ac_config_files llvm.spec" |
| 35246 | |
| 35247 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35248 | ac_config_files="$ac_config_files docs/doxygen.cfg" |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 35249 | |
| 35250 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 35251 | ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td" |
| 35252 | |
| 35253 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35254 | ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in" |
Reid Spencer | f2722ca | 2006-03-22 15:59:55 +0000 | [diff] [blame] | 35255 | |
| 35256 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35257 | ac_config_commands="$ac_config_commands setup" |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 35258 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35259 | ac_config_commands="$ac_config_commands Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35260 | |
| 35261 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35262 | ac_config_commands="$ac_config_commands Makefile.common" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35263 | |
| 35264 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35265 | ac_config_commands="$ac_config_commands examples/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35266 | |
| 35267 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35268 | ac_config_commands="$ac_config_commands lib/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35269 | |
| 35270 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 35271 | ac_config_commands="$ac_config_commands runtime/Makefile" |
| 35272 | |
| 35273 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35274 | ac_config_commands="$ac_config_commands test/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35275 | |
| 35276 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35277 | ac_config_commands="$ac_config_commands test/Makefile.tests" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35278 | |
| 35279 | |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 35280 | ac_config_commands="$ac_config_commands unittests/Makefile" |
| 35281 | |
| 35282 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35283 | ac_config_commands="$ac_config_commands tools/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35284 | |
| 35285 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35286 | ac_config_commands="$ac_config_commands utils/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35287 | |
| 35288 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35289 | ac_config_commands="$ac_config_commands projects/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35290 | |
| 35291 | |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 35292 | ac_config_commands="$ac_config_commands bindings/Makefile" |
| 35293 | |
| 35294 | |
| 35295 | ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" |
| 35296 | |
| 35297 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 35298 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35299 | cat >confcache <<\_ACEOF |
| 35300 | # This file is a shell script that caches the results of configure |
| 35301 | # tests run on this system so they can be shared between configure |
| 35302 | # scripts and configure runs, see configure's option --config-cache. |
| 35303 | # It is not useful on other systems. If it contains results you don't |
| 35304 | # want to keep, you may remove or edit it. |
| 35305 | # |
| 35306 | # config.status only pays attention to the cache file if you give it |
| 35307 | # the --recheck option to rerun configure. |
| 35308 | # |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35309 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35310 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 35311 | # following values. |
| 35312 | |
| 35313 | _ACEOF |
| 35314 | |
| 35315 | # The following way of writing the cache mishandles newlines in values, |
| 35316 | # but we know of no workaround that is simple, portable, and efficient. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35317 | # So, we kill variables containing newlines. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35318 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 35319 | # 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] | 35320 | ( |
| 35321 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 35322 | eval ac_val=\$$ac_var |
| 35323 | case $ac_val in #( |
| 35324 | *${as_nl}*) |
| 35325 | case $ac_var in #( |
| 35326 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 35327 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 35328 | esac |
| 35329 | case $ac_var in #( |
| 35330 | _ | IFS | as_nl) ;; #( |
| 35331 | *) $as_unset $ac_var ;; |
| 35332 | esac ;; |
| 35333 | esac |
| 35334 | done |
| 35335 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35336 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35337 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 35338 | *${as_nl}ac_space=\ *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35339 | # `set' does not quote correctly, so add quotes (double-quote |
| 35340 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 35341 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35342 | "s/'/'\\\\''/g; |
| 35343 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35344 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35345 | *) |
| 35346 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35347 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35348 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35349 | esac | |
| 35350 | sort |
| 35351 | ) | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35352 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35353 | /^ac_cv_env_/b end |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35354 | t clear |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35355 | :clear |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35356 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 35357 | t end |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35358 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 35359 | :end' >>confcache |
| 35360 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 35361 | if test -w "$cache_file"; then |
| 35362 | test "x$cache_file" != "x/dev/null" && |
| 35363 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 35364 | echo "$as_me: updating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35365 | cat confcache >$cache_file |
| 35366 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35367 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 35368 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35369 | fi |
| 35370 | fi |
| 35371 | rm -f confcache |
| 35372 | |
| 35373 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 35374 | # Let make expand exec_prefix. |
| 35375 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 35376 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35377 | DEFS=-DHAVE_CONFIG_H |
| 35378 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35379 | ac_libobjs= |
| 35380 | ac_ltlibobjs= |
| 35381 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 35382 | # 1. Remove the extension, and $U if already installed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35383 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 35384 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 35385 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 35386 | # will be set to the directory where LIBOBJS objects are built. |
| 35387 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 35388 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35389 | done |
| 35390 | LIBOBJS=$ac_libobjs |
| 35391 | |
| 35392 | LTLIBOBJS=$ac_ltlibobjs |
| 35393 | |
| 35394 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 35395 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
| 35396 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. |
| 35397 | Usually this means the macro was only invoked conditionally." >&5 |
| 35398 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. |
| 35399 | Usually this means the macro was only invoked conditionally." >&2;} |
| 35400 | { (exit 1); exit 1; }; } |
| 35401 | fi |
| 35402 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
| 35403 | { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 35404 | Usually this means the macro was only invoked conditionally." >&5 |
| 35405 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 35406 | Usually this means the macro was only invoked conditionally." >&2;} |
| 35407 | { (exit 1); exit 1; }; } |
| 35408 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35409 | |
| 35410 | : ${CONFIG_STATUS=./config.status} |
| 35411 | ac_clean_files_save=$ac_clean_files |
| 35412 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 35413 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 35414 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 35415 | cat >$CONFIG_STATUS <<_ACEOF |
| 35416 | #! $SHELL |
| 35417 | # Generated by $as_me. |
| 35418 | # Run this file to recreate the current configuration. |
| 35419 | # Compiler output produced by configure, useful for debugging |
| 35420 | # configure, is in config.log if it exists. |
| 35421 | |
| 35422 | debug=false |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35423 | ac_cs_recheck=false |
| 35424 | ac_cs_silent=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35425 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 35426 | _ACEOF |
| 35427 | |
| 35428 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35429 | ## --------------------- ## |
| 35430 | ## M4sh Initialization. ## |
| 35431 | ## --------------------- ## |
| 35432 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35433 | # Be Bourne compatible |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35434 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 35435 | emulate sh |
| 35436 | NULLCMD=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35437 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 35438 | # is contrary to our usage. Disable this feature. |
| 35439 | alias -g '${1+"$@"}'='"$@"' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35440 | setopt NO_GLOB_SUBST |
| 35441 | else |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35442 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35443 | fi |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35444 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 35445 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35446 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35447 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35448 | # PATH needs CR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35449 | # Avoid depending upon Character Ranges. |
| 35450 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 35451 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 35452 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 35453 | as_cr_digits='0123456789' |
| 35454 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 35455 | |
| 35456 | # The user is always right. |
| 35457 | if test "${PATH_SEPARATOR+set}" != set; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35458 | echo "#! /bin/sh" >conf$$.sh |
| 35459 | echo "exit 0" >>conf$$.sh |
| 35460 | chmod +x conf$$.sh |
| 35461 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35462 | PATH_SEPARATOR=';' |
| 35463 | else |
| 35464 | PATH_SEPARATOR=: |
| 35465 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35466 | rm -f conf$$.sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35467 | fi |
| 35468 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35469 | # Support unset when possible. |
| 35470 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 35471 | as_unset=unset |
| 35472 | else |
| 35473 | as_unset=false |
| 35474 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35475 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35476 | |
| 35477 | # IFS |
| 35478 | # We need space, tab and new line, in precisely that order. Quoting is |
| 35479 | # there to prevent editors from complaining about space-tab. |
| 35480 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 35481 | # splitting by setting IFS to empty value.) |
| 35482 | as_nl=' |
| 35483 | ' |
| 35484 | IFS=" "" $as_nl" |
| 35485 | |
| 35486 | # Find who we are. Look in the path if we contain no directory separator. |
| 35487 | case $0 in |
| 35488 | *[\\/]* ) as_myself=$0 ;; |
| 35489 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35490 | for as_dir in $PATH |
| 35491 | do |
| 35492 | IFS=$as_save_IFS |
| 35493 | test -z "$as_dir" && as_dir=. |
| 35494 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 35495 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35496 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35497 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35498 | ;; |
| 35499 | esac |
| 35500 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 35501 | # in which case we are not to be found in the path. |
| 35502 | if test "x$as_myself" = x; then |
| 35503 | as_myself=$0 |
| 35504 | fi |
| 35505 | if test ! -f "$as_myself"; then |
| 35506 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 35507 | { (exit 1); exit 1; } |
| 35508 | fi |
| 35509 | |
| 35510 | # Work around bugs in pre-3.0 UWIN ksh. |
| 35511 | for as_var in ENV MAIL MAILPATH |
| 35512 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 35513 | done |
| 35514 | PS1='$ ' |
| 35515 | PS2='> ' |
| 35516 | PS4='+ ' |
| 35517 | |
| 35518 | # NLS nuisances. |
| 35519 | for as_var in \ |
| 35520 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 35521 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 35522 | LC_TELEPHONE LC_TIME |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35523 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35524 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 35525 | eval $as_var=C; export $as_var |
| 35526 | else |
| 35527 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 35528 | fi |
| 35529 | done |
| 35530 | |
| 35531 | # Required to use basename. |
| 35532 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 35533 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 35534 | as_expr=expr |
| 35535 | else |
| 35536 | as_expr=false |
| 35537 | fi |
| 35538 | |
| 35539 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 35540 | as_basename=basename |
| 35541 | else |
| 35542 | as_basename=false |
| 35543 | fi |
| 35544 | |
| 35545 | |
| 35546 | # Name of the executable. |
| 35547 | as_me=`$as_basename -- "$0" || |
| 35548 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 35549 | X"$0" : 'X\(//\)$' \| \ |
| 35550 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 35551 | echo X/"$0" | |
| 35552 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 35553 | s//\1/ |
| 35554 | q |
| 35555 | } |
| 35556 | /^X\/\(\/\/\)$/{ |
| 35557 | s//\1/ |
| 35558 | q |
| 35559 | } |
| 35560 | /^X\/\(\/\).*/{ |
| 35561 | s//\1/ |
| 35562 | q |
| 35563 | } |
| 35564 | s/.*/./; q'` |
| 35565 | |
| 35566 | # CDPATH. |
| 35567 | $as_unset CDPATH |
| 35568 | |
| 35569 | |
| 35570 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35571 | as_lineno_1=$LINENO |
| 35572 | as_lineno_2=$LINENO |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35573 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35574 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35575 | |
| 35576 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 35577 | # uniformly replaced by the line number. The first 'sed' inserts a |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35578 | # line-number line after each line using $LINENO; the second 'sed' |
| 35579 | # does the real work. The second script uses 'N' to pair each |
| 35580 | # line-number line with the line containing $LINENO, and appends |
| 35581 | # trailing '-' during substitution so that $LINENO is not a special |
| 35582 | # case at line end. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35583 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35584 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 35585 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 35586 | sed -n ' |
| 35587 | p |
| 35588 | /[$]LINENO/= |
| 35589 | ' <$as_myself | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35590 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35591 | s/[$]LINENO.*/&-/ |
| 35592 | t lineno |
| 35593 | b |
| 35594 | :lineno |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35595 | N |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35596 | :loop |
| 35597 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35598 | t loop |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35599 | s/-\n.*// |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35600 | ' >$as_me.lineno && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35601 | chmod +x "$as_me.lineno" || |
| 35602 | { 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] | 35603 | { (exit 1); exit 1; }; } |
| 35604 | |
| 35605 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 35606 | # (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] | 35607 | # original and so on. Autoconf is especially sensitive to this). |
| 35608 | . "./$as_me.lineno" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35609 | # Exit status is that of the last command. |
| 35610 | exit |
| 35611 | } |
| 35612 | |
| 35613 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35614 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 35615 | as_dirname=dirname |
| 35616 | else |
| 35617 | as_dirname=false |
| 35618 | fi |
| 35619 | |
| 35620 | ECHO_C= ECHO_N= ECHO_T= |
| 35621 | case `echo -n x` in |
| 35622 | -n*) |
| 35623 | case `echo 'x\c'` in |
| 35624 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 35625 | *) ECHO_C='\c';; |
| 35626 | esac;; |
| 35627 | *) |
| 35628 | ECHO_N='-n';; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35629 | esac |
| 35630 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35631 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 35632 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35633 | as_expr=expr |
| 35634 | else |
| 35635 | as_expr=false |
| 35636 | fi |
| 35637 | |
| 35638 | rm -f conf$$ conf$$.exe conf$$.file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35639 | if test -d conf$$.dir; then |
| 35640 | rm -f conf$$.dir/conf$$.file |
| 35641 | else |
| 35642 | rm -f conf$$.dir |
| 35643 | mkdir conf$$.dir |
| 35644 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35645 | echo >conf$$.file |
| 35646 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35647 | as_ln_s='ln -s' |
| 35648 | # ... but there are two gotchas: |
| 35649 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 35650 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 35651 | # In both cases, we have to default to `cp -p'. |
| 35652 | 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] | 35653 | as_ln_s='cp -p' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35654 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 35655 | as_ln_s=ln |
| 35656 | else |
| 35657 | as_ln_s='cp -p' |
| 35658 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35659 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 35660 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35661 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35662 | if mkdir -p . 2>/dev/null; then |
| 35663 | as_mkdir_p=: |
| 35664 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35665 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35666 | as_mkdir_p=false |
| 35667 | fi |
| 35668 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35669 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 35670 | # systems may use methods other than mode bits to determine executability. |
| 35671 | cat >conf$$.file <<_ASEOF |
| 35672 | #! /bin/sh |
| 35673 | exit 0 |
| 35674 | _ASEOF |
| 35675 | chmod +x conf$$.file |
| 35676 | if test -x conf$$.file >/dev/null 2>&1; then |
| 35677 | as_executable_p="test -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35678 | else |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35679 | as_executable_p=: |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35680 | fi |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35681 | rm -f conf$$.file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35682 | |
| 35683 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35684 | 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] | 35685 | |
| 35686 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35687 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35688 | |
| 35689 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35690 | exec 6>&1 |
| 35691 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35692 | # 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] | 35693 | # report actual input values of CONFIG_FILES etc. instead of their |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35694 | # values after options handling. |
| 35695 | ac_log=" |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 35696 | This file was extended by llvm $as_me 2.6svn, which was |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35697 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35698 | |
| 35699 | CONFIG_FILES = $CONFIG_FILES |
| 35700 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 35701 | CONFIG_LINKS = $CONFIG_LINKS |
| 35702 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 35703 | $ $0 $@ |
| 35704 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35705 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 35706 | " |
| 35707 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35708 | _ACEOF |
| 35709 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35710 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35711 | # Files that config.status was made for. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35712 | config_files="$ac_config_files" |
| 35713 | config_headers="$ac_config_headers" |
| 35714 | config_commands="$ac_config_commands" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35715 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35716 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35717 | |
| 35718 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35719 | ac_cs_usage="\ |
| 35720 | \`$as_me' instantiates files from templates according to the |
| 35721 | current configuration. |
| 35722 | |
| 35723 | Usage: $0 [OPTIONS] [FILE]... |
| 35724 | |
| 35725 | -h, --help print this help, then exit |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35726 | -V, --version print version number, then exit |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35727 | -q, --quiet do not print progress messages |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35728 | -d, --debug don't remove temporary files |
| 35729 | --recheck update $as_me by reconfiguring in the same conditions |
| 35730 | --file=FILE[:TEMPLATE] |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35731 | instantiate the configuration file FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35732 | --header=FILE[:TEMPLATE] |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35733 | instantiate the configuration header FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35734 | |
| 35735 | Configuration files: |
| 35736 | $config_files |
| 35737 | |
| 35738 | Configuration headers: |
| 35739 | $config_headers |
| 35740 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 35741 | Configuration commands: |
| 35742 | $config_commands |
| 35743 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35744 | Report bugs to <bug-autoconf@gnu.org>." |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35745 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35746 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35747 | cat >>$CONFIG_STATUS <<_ACEOF |
| 35748 | ac_cs_version="\\ |
Tanya Lattner | f9eb2d8 | 2009-01-22 05:17:59 +0000 | [diff] [blame] | 35749 | llvm config.status 2.6svn |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 35750 | configured by $0, generated by GNU Autoconf 2.60, |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35751 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35752 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35753 | Copyright (C) 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35754 | This config.status script is free software; the Free Software Foundation |
| 35755 | gives unlimited permission to copy, distribute and modify it." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35756 | |
| 35757 | ac_pwd='$ac_pwd' |
| 35758 | srcdir='$srcdir' |
| 35759 | INSTALL='$INSTALL' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35760 | _ACEOF |
| 35761 | |
| 35762 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 35763 | # If no file are specified by the user, then we need to provide default |
| 35764 | # value. By we need to know if files were specified by the user. |
| 35765 | ac_need_defaults=: |
| 35766 | while test $# != 0 |
| 35767 | do |
| 35768 | case $1 in |
| 35769 | --*=*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35770 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 35771 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35772 | ac_shift=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35773 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35774 | *) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35775 | ac_option=$1 |
| 35776 | ac_optarg=$2 |
| 35777 | ac_shift=shift |
| 35778 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35779 | esac |
| 35780 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35781 | case $ac_option in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35782 | # Handling of the options. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35783 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 35784 | ac_cs_recheck=: ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35785 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 35786 | echo "$ac_cs_version"; exit ;; |
| 35787 | --debug | --debu | --deb | --de | --d | -d ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35788 | debug=: ;; |
| 35789 | --file | --fil | --fi | --f ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35790 | $ac_shift |
| 35791 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35792 | ac_need_defaults=false;; |
| 35793 | --header | --heade | --head | --hea ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35794 | $ac_shift |
| 35795 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35796 | ac_need_defaults=false;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35797 | --he | --h) |
| 35798 | # Conflict between --help and --header |
| 35799 | { echo "$as_me: error: ambiguous option: $1 |
| 35800 | Try \`$0 --help' for more information." >&2 |
| 35801 | { (exit 1); exit 1; }; };; |
| 35802 | --help | --hel | -h ) |
| 35803 | echo "$ac_cs_usage"; exit ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35804 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 35805 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 35806 | ac_cs_silent=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35807 | |
| 35808 | # This is an error. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35809 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 35810 | Try \`$0 --help' for more information." >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35811 | { (exit 1); exit 1; }; } ;; |
| 35812 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35813 | *) ac_config_targets="$ac_config_targets $1" |
| 35814 | ac_need_defaults=false ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35815 | |
| 35816 | esac |
| 35817 | shift |
| 35818 | done |
| 35819 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35820 | ac_configure_extra_args= |
| 35821 | |
| 35822 | if $ac_cs_silent; then |
| 35823 | exec 6>/dev/null |
| 35824 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 35825 | fi |
| 35826 | |
| 35827 | _ACEOF |
| 35828 | cat >>$CONFIG_STATUS <<_ACEOF |
| 35829 | if \$ac_cs_recheck; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35830 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 35831 | CONFIG_SHELL=$SHELL |
| 35832 | export CONFIG_SHELL |
| 35833 | 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] | 35834 | fi |
| 35835 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35836 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35837 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 35838 | exec 5>>config.log |
| 35839 | { |
| 35840 | echo |
| 35841 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 35842 | ## Running $as_me. ## |
| 35843 | _ASBOX |
| 35844 | echo "$ac_log" |
| 35845 | } >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35846 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35847 | _ACEOF |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 35848 | cat >>$CONFIG_STATUS <<_ACEOF |
| 35849 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35850 | # INIT-COMMANDS |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 35851 | # |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 35852 | llvm_src="${srcdir}" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 35853 | |
| 35854 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35855 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35856 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35857 | |
| 35858 | # Handling of arguments. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35859 | for ac_config_target in $ac_config_targets |
| 35860 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35861 | case $ac_config_target in |
| 35862 | "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] | 35863 | "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; |
| 35864 | "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] | 35865 | "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] | 35866 | "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] | 35867 | "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] | 35868 | "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 35869 | "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35870 | "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 35871 | "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] | 35872 | "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;; |
| 35873 | "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; |
| 35874 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
| 35875 | "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; |
| 35876 | "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; |
| 35877 | "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 35878 | "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35879 | "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; |
| 35880 | "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 35881 | "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35882 | "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; |
| 35883 | "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; |
| 35884 | "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 35885 | "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; |
| 35886 | "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35887 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35888 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 35889 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 35890 | { (exit 1); exit 1; }; };; |
| 35891 | esac |
| 35892 | done |
| 35893 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35894 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35895 | # If the user did not use the arguments to specify the items to instantiate, |
| 35896 | # then the envvar interface is used. Set only those that are not. |
| 35897 | # We use the long form for the default assignment because of an extremely |
| 35898 | # bizarre bug on SunOS 4.1.3. |
| 35899 | if $ac_need_defaults; then |
| 35900 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 35901 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 35902 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35903 | fi |
| 35904 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35905 | # Have a temporary directory for convenience. Make it in the build tree |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35906 | # 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] | 35907 | # creating and moving files from /tmp can sometimes cause problems. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35908 | # Hook for its removal unless debugging. |
| 35909 | # Note that there is a small window in which the directory will not be cleaned: |
| 35910 | # after its creation but before its name has been assigned to `$tmp'. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35911 | $debug || |
| 35912 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35913 | tmp= |
| 35914 | trap 'exit_status=$? |
| 35915 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 35916 | ' 0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35917 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 35918 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35919 | # Create a (secure) tmp directory for tmp files. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35920 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35921 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35922 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35923 | test -n "$tmp" && test -d "$tmp" |
| 35924 | } || |
| 35925 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35926 | tmp=./conf$$-$RANDOM |
| 35927 | (umask 077 && mkdir "$tmp") |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35928 | } || |
| 35929 | { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35930 | echo "$me: cannot create a temporary directory in ." >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35931 | { (exit 1); exit 1; } |
| 35932 | } |
| 35933 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35934 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35935 | # Set up the sed scripts for CONFIG_FILES section. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35936 | # |
| 35937 | |
| 35938 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 35939 | # This happens for instance when ./config.status config.h |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35940 | if test -n "$CONFIG_FILES"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35941 | |
| 35942 | _ACEOF |
| 35943 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35944 | |
| 35945 | |
| 35946 | ac_delim='%!_!# ' |
| 35947 | for ac_last_try in false false false false false :; do |
| 35948 | cat >conf$$subs.sed <<_ACEOF |
| 35949 | SHELL!$SHELL$ac_delim |
| 35950 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 35951 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 35952 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 35953 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 35954 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 35955 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 35956 | exec_prefix!$exec_prefix$ac_delim |
| 35957 | prefix!$prefix$ac_delim |
| 35958 | program_transform_name!$program_transform_name$ac_delim |
| 35959 | bindir!$bindir$ac_delim |
| 35960 | sbindir!$sbindir$ac_delim |
| 35961 | libexecdir!$libexecdir$ac_delim |
| 35962 | datarootdir!$datarootdir$ac_delim |
| 35963 | datadir!$datadir$ac_delim |
| 35964 | sysconfdir!$sysconfdir$ac_delim |
| 35965 | sharedstatedir!$sharedstatedir$ac_delim |
| 35966 | localstatedir!$localstatedir$ac_delim |
| 35967 | includedir!$includedir$ac_delim |
| 35968 | oldincludedir!$oldincludedir$ac_delim |
| 35969 | docdir!$docdir$ac_delim |
| 35970 | infodir!$infodir$ac_delim |
| 35971 | htmldir!$htmldir$ac_delim |
| 35972 | dvidir!$dvidir$ac_delim |
| 35973 | pdfdir!$pdfdir$ac_delim |
| 35974 | psdir!$psdir$ac_delim |
| 35975 | libdir!$libdir$ac_delim |
| 35976 | localedir!$localedir$ac_delim |
| 35977 | mandir!$mandir$ac_delim |
| 35978 | DEFS!$DEFS$ac_delim |
| 35979 | ECHO_C!$ECHO_C$ac_delim |
| 35980 | ECHO_N!$ECHO_N$ac_delim |
| 35981 | ECHO_T!$ECHO_T$ac_delim |
| 35982 | LIBS!$LIBS$ac_delim |
| 35983 | build_alias!$build_alias$ac_delim |
| 35984 | host_alias!$host_alias$ac_delim |
| 35985 | target_alias!$target_alias$ac_delim |
| 35986 | LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim |
| 35987 | subdirs!$subdirs$ac_delim |
| 35988 | build!$build$ac_delim |
| 35989 | build_cpu!$build_cpu$ac_delim |
| 35990 | build_vendor!$build_vendor$ac_delim |
| 35991 | build_os!$build_os$ac_delim |
| 35992 | host!$host$ac_delim |
| 35993 | host_cpu!$host_cpu$ac_delim |
| 35994 | host_vendor!$host_vendor$ac_delim |
| 35995 | host_os!$host_os$ac_delim |
| 35996 | target!$target$ac_delim |
| 35997 | target_cpu!$target_cpu$ac_delim |
| 35998 | target_vendor!$target_vendor$ac_delim |
| 35999 | target_os!$target_os$ac_delim |
| 36000 | OS!$OS$ac_delim |
| 36001 | LINKALL!$LINKALL$ac_delim |
| 36002 | NOLINKALL!$NOLINKALL$ac_delim |
| 36003 | LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim |
| 36004 | LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim |
Bill Wendling | a083335 | 2009-03-12 04:10:09 +0000 | [diff] [blame] | 36005 | ARCH!$ARCH$ac_delim |
| 36006 | ENDIAN!$ENDIAN$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36007 | CC!$CC$ac_delim |
| 36008 | CFLAGS!$CFLAGS$ac_delim |
| 36009 | LDFLAGS!$LDFLAGS$ac_delim |
| 36010 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 36011 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 36012 | EXEEXT!$EXEEXT$ac_delim |
| 36013 | OBJEXT!$OBJEXT$ac_delim |
| 36014 | CPP!$CPP$ac_delim |
| 36015 | GREP!$GREP$ac_delim |
| 36016 | EGREP!$EGREP$ac_delim |
| 36017 | LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim |
| 36018 | BUILD_CC!$BUILD_CC$ac_delim |
| 36019 | BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 36020 | BUILD_CXX!$BUILD_CXX$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36021 | CVSBUILD!$CVSBUILD$ac_delim |
| 36022 | ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 36023 | ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36024 | DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 36025 | ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim |
| 36026 | EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 36027 | DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36028 | JIT!$JIT$ac_delim |
| 36029 | TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim |
| 36030 | ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim |
| 36031 | ENABLE_THREADS!$ENABLE_THREADS$ac_delim |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 36032 | ENABLE_PIC!$ENABLE_PIC$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36033 | TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 36034 | LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim |
| 36035 | LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 36036 | LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 36037 | ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36038 | EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 36039 | BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 36040 | ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim |
| 36041 | ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36042 | CXX!$CXX$ac_delim |
| 36043 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 36044 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
Nick Lewycky | bdf0d7c | 2009-02-21 22:38:49 +0000 | [diff] [blame] | 36045 | NM!$NM$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36046 | _ACEOF |
| 36047 | |
| 36048 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
| 36049 | break |
| 36050 | elif $ac_last_try; then |
| 36051 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 36052 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 36053 | { (exit 1); exit 1; }; } |
| 36054 | else |
| 36055 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36056 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36057 | done |
| 36058 | |
| 36059 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 36060 | if test -n "$ac_eof"; then |
| 36061 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 36062 | ac_eof=`expr $ac_eof + 1` |
| 36063 | fi |
| 36064 | |
| 36065 | cat >>$CONFIG_STATUS <<_ACEOF |
| 36066 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 36067 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 36068 | _ACEOF |
| 36069 | sed ' |
| 36070 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 36071 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 36072 | :n |
| 36073 | t n |
| 36074 | s/'"$ac_delim"'$/,g/; t |
| 36075 | s/$/\\/; p |
| 36076 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 36077 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 36078 | rm -f conf$$subs.sed |
| 36079 | cat >>$CONFIG_STATUS <<_ACEOF |
| 36080 | CEOF$ac_eof |
| 36081 | _ACEOF |
| 36082 | |
| 36083 | |
| 36084 | ac_delim='%!_!# ' |
| 36085 | for ac_last_try in false false false false false :; do |
| 36086 | cat >conf$$subs.sed <<_ACEOF |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 36087 | ifGNUmake!$ifGNUmake$ac_delim |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 36088 | LN_S!$LN_S$ac_delim |
| 36089 | CMP!$CMP$ac_delim |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 36090 | CP!$CP$ac_delim |
| 36091 | DATE!$DATE$ac_delim |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 36092 | FIND!$FIND$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36093 | MKDIR!$MKDIR$ac_delim |
| 36094 | MV!$MV$ac_delim |
| 36095 | RANLIB!$RANLIB$ac_delim |
| 36096 | RM!$RM$ac_delim |
| 36097 | SED!$SED$ac_delim |
| 36098 | TAR!$TAR$ac_delim |
| 36099 | BINPWD!$BINPWD$ac_delim |
| 36100 | GRAPHVIZ!$GRAPHVIZ$ac_delim |
| 36101 | DOT!$DOT$ac_delim |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 36102 | FDP!$FDP$ac_delim |
| 36103 | NEATO!$NEATO$ac_delim |
| 36104 | TWOPI!$TWOPI$ac_delim |
| 36105 | CIRCO!$CIRCO$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36106 | GV!$GV$ac_delim |
| 36107 | DOTTY!$DOTTY$ac_delim |
| 36108 | PERL!$PERL$ac_delim |
| 36109 | HAVE_PERL!$HAVE_PERL$ac_delim |
| 36110 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 36111 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 36112 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 36113 | BZIP2!$BZIP2$ac_delim |
| 36114 | DOXYGEN!$DOXYGEN$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36115 | GROFF!$GROFF$ac_delim |
| 36116 | GZIP!$GZIP$ac_delim |
| 36117 | POD2HTML!$POD2HTML$ac_delim |
| 36118 | POD2MAN!$POD2MAN$ac_delim |
| 36119 | RUNTEST!$RUNTEST$ac_delim |
| 36120 | TCLSH!$TCLSH$ac_delim |
| 36121 | ZIP!$ZIP$ac_delim |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 36122 | OCAMLC!$OCAMLC$ac_delim |
| 36123 | OCAMLOPT!$OCAMLOPT$ac_delim |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 36124 | OCAMLDEP!$OCAMLDEP$ac_delim |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 36125 | OCAMLDOC!$OCAMLDOC$ac_delim |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 36126 | GAS!$GAS$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36127 | INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim |
| 36128 | INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim |
| 36129 | CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim |
| 36130 | CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim |
| 36131 | LIBADD_DL!$LIBADD_DL$ac_delim |
| 36132 | ECHO!$ECHO$ac_delim |
| 36133 | AR!$AR$ac_delim |
| 36134 | STRIP!$STRIP$ac_delim |
| 36135 | CXXCPP!$CXXCPP$ac_delim |
| 36136 | F77!$F77$ac_delim |
| 36137 | FFLAGS!$FFLAGS$ac_delim |
| 36138 | ac_ct_F77!$ac_ct_F77$ac_delim |
| 36139 | LIBTOOL!$LIBTOOL$ac_delim |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 36140 | LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim |
| 36141 | LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 36142 | LLVMGCC!$LLVMGCC$ac_delim |
| 36143 | LLVMGXX!$LLVMGXX$ac_delim |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 36144 | USE_UDIS86!$USE_UDIS86$ac_delim |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 36145 | USE_OPROFILE!$USE_OPROFILE$ac_delim |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 36146 | HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 36147 | HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36148 | ALLOCA!$ALLOCA$ac_delim |
| 36149 | MMAP_FILE!$MMAP_FILE$ac_delim |
| 36150 | LLVMCC1!$LLVMCC1$ac_delim |
| 36151 | LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim |
| 36152 | LLVMGCCDIR!$LLVMGCCDIR$ac_delim |
Reid Spencer | 282d8c1 | 2006-12-21 22:55:41 +0000 | [diff] [blame] | 36153 | LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36154 | LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim |
| 36155 | LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim |
Reid Spencer | 0d23818 | 2007-04-21 21:28:52 +0000 | [diff] [blame] | 36156 | LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36157 | SHLIBEXT!$SHLIBEXT$ac_delim |
| 36158 | LLVM_PREFIX!$LLVM_PREFIX$ac_delim |
| 36159 | LLVM_BINDIR!$LLVM_BINDIR$ac_delim |
| 36160 | LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim |
| 36161 | LLVM_DATADIR!$LLVM_DATADIR$ac_delim |
| 36162 | LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim |
| 36163 | LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim |
| 36164 | LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim |
| 36165 | LLVM_INFODIR!$LLVM_INFODIR$ac_delim |
| 36166 | LLVM_MANDIR!$LLVM_MANDIR$ac_delim |
| 36167 | LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 36168 | BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim |
| 36169 | ALL_BINDINGS!$ALL_BINDINGS$ac_delim |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 36170 | OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 36171 | ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim |
Nick Lewycky | e9821dc | 2009-03-03 04:55:29 +0000 | [diff] [blame] | 36172 | RPATH!$RPATH$ac_delim |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 36173 | RDYNAMIC!$RDYNAMIC$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36174 | LIBOBJS!$LIBOBJS$ac_delim |
| 36175 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 36176 | _ACEOF |
| 36177 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 36178 | 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] | 36179 | break |
| 36180 | elif $ac_last_try; then |
| 36181 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 36182 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 36183 | { (exit 1); exit 1; }; } |
| 36184 | else |
| 36185 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 36186 | fi |
| 36187 | done |
| 36188 | |
| 36189 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 36190 | if test -n "$ac_eof"; then |
| 36191 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 36192 | ac_eof=`expr $ac_eof + 1` |
| 36193 | fi |
| 36194 | |
| 36195 | cat >>$CONFIG_STATUS <<_ACEOF |
| 36196 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 36197 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 36198 | _ACEOF |
| 36199 | sed ' |
| 36200 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 36201 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 36202 | :n |
| 36203 | t n |
| 36204 | s/'"$ac_delim"'$/,g/; t |
| 36205 | s/$/\\/; p |
| 36206 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 36207 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 36208 | rm -f conf$$subs.sed |
| 36209 | cat >>$CONFIG_STATUS <<_ACEOF |
| 36210 | :end |
| 36211 | s/|#_!!_#|//g |
| 36212 | CEOF$ac_eof |
| 36213 | _ACEOF |
| 36214 | |
| 36215 | |
| 36216 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 36217 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 36218 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 36219 | # (actually we leave an empty line to preserve line numbers). |
| 36220 | if test "x$srcdir" = x.; then |
| 36221 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 36222 | s/:*\$(srcdir):*/:/ |
| 36223 | s/:*\${srcdir}:*/:/ |
| 36224 | s/:*@srcdir@:*/:/ |
| 36225 | s/^\([^=]*=[ ]*\):*/\1/ |
| 36226 | s/:*$// |
| 36227 | s/^[^=]*=[ ]*$// |
| 36228 | }' |
| 36229 | fi |
| 36230 | |
| 36231 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36232 | fi # test -n "$CONFIG_FILES" |
| 36233 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36234 | |
| 36235 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
| 36236 | do |
| 36237 | case $ac_tag in |
| 36238 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 36239 | esac |
| 36240 | case $ac_mode$ac_tag in |
| 36241 | :[FHL]*:*);; |
| 36242 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 36243 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 36244 | { (exit 1); exit 1; }; };; |
| 36245 | :[FH]-) ac_tag=-:-;; |
| 36246 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 36247 | esac |
| 36248 | ac_save_IFS=$IFS |
| 36249 | IFS=: |
| 36250 | set x $ac_tag |
| 36251 | IFS=$ac_save_IFS |
| 36252 | shift |
| 36253 | ac_file=$1 |
| 36254 | shift |
| 36255 | |
| 36256 | case $ac_mode in |
| 36257 | :L) ac_source=$1;; |
| 36258 | :[FH]) |
| 36259 | ac_file_inputs= |
| 36260 | for ac_f |
| 36261 | do |
| 36262 | case $ac_f in |
| 36263 | -) ac_f="$tmp/stdin";; |
| 36264 | *) # Look for the file first in the build tree, then in the source tree |
| 36265 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 36266 | # because $ac_f cannot contain `:'. |
| 36267 | test -f "$ac_f" || |
| 36268 | case $ac_f in |
| 36269 | [\\/$]*) false;; |
| 36270 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 36271 | esac || |
| 36272 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 36273 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 36274 | { (exit 1); exit 1; }; };; |
| 36275 | esac |
| 36276 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 36277 | done |
| 36278 | |
| 36279 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 36280 | # use $as_me), people would be surprised to read: |
| 36281 | # /* config.h. Generated by config.status. */ |
| 36282 | configure_input="Generated from "`IFS=: |
| 36283 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 36284 | if test x"$ac_file" != x-; then |
| 36285 | configure_input="$ac_file. $configure_input" |
| 36286 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 36287 | echo "$as_me: creating $ac_file" >&6;} |
| 36288 | fi |
| 36289 | |
| 36290 | case $ac_tag in |
| 36291 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 36292 | esac |
| 36293 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36294 | esac |
| 36295 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36296 | ac_dir=`$as_dirname -- "$ac_file" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36297 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 36298 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 36299 | X"$ac_file" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36300 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36301 | echo X"$ac_file" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36302 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 36303 | s//\1/ |
| 36304 | q |
| 36305 | } |
| 36306 | /^X\(\/\/\)[^/].*/{ |
| 36307 | s//\1/ |
| 36308 | q |
| 36309 | } |
| 36310 | /^X\(\/\/\)$/{ |
| 36311 | s//\1/ |
| 36312 | q |
| 36313 | } |
| 36314 | /^X\(\/\).*/{ |
| 36315 | s//\1/ |
| 36316 | q |
| 36317 | } |
| 36318 | s/.*/./; q'` |
| 36319 | { as_dir="$ac_dir" |
| 36320 | case $as_dir in #( |
| 36321 | -*) as_dir=./$as_dir;; |
| 36322 | esac |
| 36323 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 36324 | as_dirs= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36325 | while :; do |
| 36326 | case $as_dir in #( |
| 36327 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 36328 | *) as_qdir=$as_dir;; |
| 36329 | esac |
| 36330 | as_dirs="'$as_qdir' $as_dirs" |
| 36331 | as_dir=`$as_dirname -- "$as_dir" || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 36332 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 36333 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 36334 | X"$as_dir" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36335 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 36336 | echo X"$as_dir" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36337 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 36338 | s//\1/ |
| 36339 | q |
| 36340 | } |
| 36341 | /^X\(\/\/\)[^/].*/{ |
| 36342 | s//\1/ |
| 36343 | q |
| 36344 | } |
| 36345 | /^X\(\/\/\)$/{ |
| 36346 | s//\1/ |
| 36347 | q |
| 36348 | } |
| 36349 | /^X\(\/\).*/{ |
| 36350 | s//\1/ |
| 36351 | q |
| 36352 | } |
| 36353 | s/.*/./; q'` |
| 36354 | test -d "$as_dir" && break |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 36355 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36356 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 36357 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 36358 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 36359 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36360 | ac_builddir=. |
| 36361 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36362 | case "$ac_dir" in |
| 36363 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 36364 | *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36365 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36366 | # A ".." for each directory in $ac_dir_suffix. |
| 36367 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 36368 | case $ac_top_builddir_sub in |
| 36369 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 36370 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 36371 | esac ;; |
| 36372 | esac |
| 36373 | ac_abs_top_builddir=$ac_pwd |
| 36374 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 36375 | # for backward compatibility: |
| 36376 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36377 | |
| 36378 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36379 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36380 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36381 | ac_top_srcdir=$ac_top_builddir_sub |
| 36382 | ac_abs_top_srcdir=$ac_pwd ;; |
| 36383 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36384 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36385 | ac_top_srcdir=$srcdir |
| 36386 | ac_abs_top_srcdir=$srcdir ;; |
| 36387 | *) # Relative name. |
| 36388 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 36389 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 36390 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36391 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36392 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 36393 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36394 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36395 | case $ac_mode in |
| 36396 | :F) |
| 36397 | # |
| 36398 | # CONFIG_FILE |
| 36399 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36400 | |
| 36401 | case $INSTALL in |
| 36402 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36403 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36404 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36405 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36406 | |
| 36407 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 36408 | # If the template does not know about datarootdir, expand it. |
| 36409 | # FIXME: This hack should be removed a few years after 2.60. |
| 36410 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 36411 | |
| 36412 | case `sed -n '/datarootdir/ { |
| 36413 | p |
| 36414 | q |
| 36415 | } |
| 36416 | /@datadir@/p |
| 36417 | /@docdir@/p |
| 36418 | /@infodir@/p |
| 36419 | /@localedir@/p |
| 36420 | /@mandir@/p |
| 36421 | ' $ac_file_inputs` in |
| 36422 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 36423 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 36424 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 36425 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 36426 | _ACEOF |
| 36427 | cat >>$CONFIG_STATUS <<_ACEOF |
| 36428 | ac_datarootdir_hack=' |
| 36429 | s&@datadir@&$datadir&g |
| 36430 | s&@docdir@&$docdir&g |
| 36431 | s&@infodir@&$infodir&g |
| 36432 | s&@localedir@&$localedir&g |
| 36433 | s&@mandir@&$mandir&g |
| 36434 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 36435 | esac |
| 36436 | _ACEOF |
| 36437 | |
| 36438 | # Neutralize VPATH when `$srcdir' = `.'. |
| 36439 | # Shell code in configure.ac might set extrasub. |
| 36440 | # FIXME: do we really want to maintain this feature? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36441 | cat >>$CONFIG_STATUS <<_ACEOF |
| 36442 | sed "$ac_vpsub |
| 36443 | $extrasub |
| 36444 | _ACEOF |
| 36445 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 36446 | :t |
| 36447 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36448 | s&@configure_input@&$configure_input&;t t |
| 36449 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 36450 | s&@srcdir@&$ac_srcdir&;t t |
| 36451 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 36452 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 36453 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 36454 | s&@builddir@&$ac_builddir&;t t |
| 36455 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 36456 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 36457 | s&@INSTALL@&$ac_INSTALL&;t t |
| 36458 | $ac_datarootdir_hack |
| 36459 | " $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] | 36460 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36461 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 36462 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 36463 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 36464 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 36465 | which seems to be undefined. Please make sure it is defined." >&5 |
| 36466 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 36467 | which seems to be undefined. Please make sure it is defined." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36468 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36469 | rm -f "$tmp/stdin" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36470 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36471 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 36472 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36473 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36474 | ;; |
| 36475 | :H) |
| 36476 | # |
| 36477 | # CONFIG_HEADER |
| 36478 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36479 | _ACEOF |
| 36480 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36481 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 36482 | # substitutes the proper values into config.h.in to produce config.h. |
| 36483 | rm -f conftest.defines conftest.tail |
| 36484 | # First, append a space to every undef/define line, to ease matching. |
| 36485 | echo 's/$/ /' >conftest.defines |
| 36486 | # Then, protect against being on the right side of a sed subst, or in |
| 36487 | # an unquoted here document, in config.status. If some macros were |
| 36488 | # called several times there might be several #defines for the same |
| 36489 | # symbol, which is useless. But do not sort them, since the last |
| 36490 | # AC_DEFINE must be honored. |
| 36491 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 36492 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 36493 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 36494 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 36495 | # just an empty string. |
| 36496 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 36497 | ac_dB='\\)[ (].*,\\1define\\2' |
| 36498 | ac_dC=' ' |
| 36499 | ac_dD=' ,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36500 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36501 | uniq confdefs.h | |
| 36502 | sed -n ' |
| 36503 | t rset |
| 36504 | :rset |
| 36505 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 36506 | t ok |
| 36507 | d |
| 36508 | :ok |
| 36509 | s/[\\&,]/\\&/g |
| 36510 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 36511 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 36512 | ' >>conftest.defines |
| 36513 | |
| 36514 | # Remove the space that was appended to ease matching. |
| 36515 | # Then replace #undef with comments. This is necessary, for |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36516 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 36517 | # on some systems where configure will not decide to define it. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36518 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 36519 | echo 's/ $// |
| 36520 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36521 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36522 | # Break up conftest.defines: |
| 36523 | ac_max_sed_lines=50 |
| 36524 | |
| 36525 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 36526 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 36527 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 36528 | # et cetera. |
| 36529 | ac_in='$ac_file_inputs' |
| 36530 | ac_out='"$tmp/out1"' |
| 36531 | ac_nxt='"$tmp/out2"' |
| 36532 | |
| 36533 | while : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36534 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36535 | # Write a here document: |
| 36536 | cat >>$CONFIG_STATUS <<_ACEOF |
| 36537 | # First, check the format of the line: |
| 36538 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 36539 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 36540 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 36541 | b |
| 36542 | :def |
| 36543 | _ACEOF |
| 36544 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36545 | echo 'CEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36546 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 36547 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 36548 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 36549 | grep . conftest.tail >/dev/null || break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36550 | rm -f conftest.defines |
| 36551 | mv conftest.tail conftest.defines |
| 36552 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36553 | rm -f conftest.defines conftest.tail |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36554 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36555 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36556 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36557 | if test x"$ac_file" != x-; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36558 | echo "/* $configure_input */" >"$tmp/config.h" |
| 36559 | cat "$ac_result" >>"$tmp/config.h" |
| 36560 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36561 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 36562 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 36563 | else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36564 | rm -f $ac_file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36565 | mv "$tmp/config.h" $ac_file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36566 | fi |
| 36567 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36568 | echo "/* $configure_input */" |
| 36569 | cat "$ac_result" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36570 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36571 | rm -f "$tmp/out12" |
| 36572 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 36573 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36574 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 36575 | echo "$as_me: executing $ac_file commands" >&6;} |
| 36576 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 36577 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36578 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36579 | |
| 36580 | case $ac_file$ac_mode in |
| 36581 | "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` |
| 36582 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;; |
| 36583 | "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` |
| 36584 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;; |
| 36585 | "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` |
| 36586 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;; |
| 36587 | "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` |
| 36588 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;; |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 36589 | "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` |
| 36590 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36591 | "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` |
| 36592 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;; |
| 36593 | "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` |
| 36594 | ${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] | 36595 | "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile` |
| 36596 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36597 | "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` |
| 36598 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;; |
| 36599 | "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` |
| 36600 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;; |
| 36601 | "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` |
| 36602 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;; |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 36603 | "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` |
| 36604 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;; |
| 36605 | "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml` |
| 36606 | ${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] | 36607 | |
| 36608 | esac |
| 36609 | done # for ac_tag |
| 36610 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36611 | |
| 36612 | { (exit 0); exit 0; } |
| 36613 | _ACEOF |
| 36614 | chmod +x $CONFIG_STATUS |
| 36615 | ac_clean_files=$ac_clean_files_save |
| 36616 | |
| 36617 | |
| 36618 | # configure is writing to config.log, and then calls config.status. |
| 36619 | # config.status does its own redirection, appending to config.log. |
| 36620 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 36621 | # by configure, so config.status won't be able to write to it; its |
| 36622 | # output is simply discarded. So we exec the FD to /dev/null, |
| 36623 | # effectively closing config.log, so it can be properly (re)opened and |
| 36624 | # appended to by config.status. When coming back to configure, we |
| 36625 | # need to make the FD available again. |
| 36626 | if test "$no_create" != yes; then |
| 36627 | ac_cs_success=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 36628 | ac_config_status_args= |
| 36629 | test "$silent" = yes && |
| 36630 | ac_config_status_args="$ac_config_status_args --quiet" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36631 | exec 5>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 36632 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 36633 | exec 5>>config.log |
| 36634 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 36635 | # would make configure fail if this is the last instruction. |
| 36636 | $ac_cs_success || { (exit 1); exit 1; } |
| 36637 | fi |
| 36638 | |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36639 | # |
| 36640 | # CONFIG_SUBDIRS section. |
| 36641 | # |
| 36642 | if test "$no_recursion" != yes; then |
| 36643 | |
| 36644 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
| 36645 | ac_sub_configure_args= |
| 36646 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36647 | eval "set x $ac_configure_args" |
| 36648 | shift |
| 36649 | for ac_arg |
| 36650 | do |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36651 | if test -n "$ac_prev"; then |
| 36652 | ac_prev= |
| 36653 | continue |
| 36654 | fi |
| 36655 | case $ac_arg in |
| 36656 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 36657 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 36658 | ac_prev=cache_file ;; |
| 36659 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 36660 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 36661 | | --c=*) |
| 36662 | ;; |
| 36663 | --config-cache | -C) |
| 36664 | ;; |
| 36665 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 36666 | ac_prev=srcdir ;; |
| 36667 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 36668 | ;; |
| 36669 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 36670 | ac_prev=prefix ;; |
| 36671 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 36672 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36673 | *) |
| 36674 | case $ac_arg in |
| 36675 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 36676 | esac |
| 36677 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36678 | esac |
| 36679 | done |
| 36680 | |
| 36681 | # Always prepend --prefix to ensure using the same prefix |
| 36682 | # in subdir configurations. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36683 | ac_arg="--prefix=$prefix" |
| 36684 | case $ac_arg in |
| 36685 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 36686 | esac |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 36687 | ac_sub_configure_args="$ac_arg $ac_sub_configure_args" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36688 | |
| 36689 | ac_popdir=`pwd` |
| 36690 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 36691 | |
| 36692 | # Do not complain, so a configure script can configure whichever |
| 36693 | # parts of a large source tree are present. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36694 | test -d "$srcdir/$ac_dir" || continue |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36695 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36696 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
| 36697 | echo "$as_me:$LINENO: $ac_msg" >&5 |
| 36698 | echo "$ac_msg" >&6 |
| 36699 | { as_dir="$ac_dir" |
| 36700 | case $as_dir in #( |
| 36701 | -*) as_dir=./$as_dir;; |
| 36702 | esac |
| 36703 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36704 | as_dirs= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36705 | while :; do |
| 36706 | case $as_dir in #( |
| 36707 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 36708 | *) as_qdir=$as_dir;; |
| 36709 | esac |
| 36710 | as_dirs="'$as_qdir' $as_dirs" |
| 36711 | as_dir=`$as_dirname -- "$as_dir" || |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36712 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 36713 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 36714 | X"$as_dir" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36715 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36716 | echo X"$as_dir" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36717 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 36718 | s//\1/ |
| 36719 | q |
| 36720 | } |
| 36721 | /^X\(\/\/\)[^/].*/{ |
| 36722 | s//\1/ |
| 36723 | q |
| 36724 | } |
| 36725 | /^X\(\/\/\)$/{ |
| 36726 | s//\1/ |
| 36727 | q |
| 36728 | } |
| 36729 | /^X\(\/\).*/{ |
| 36730 | s//\1/ |
| 36731 | q |
| 36732 | } |
| 36733 | s/.*/./; q'` |
| 36734 | test -d "$as_dir" && break |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36735 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36736 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 36737 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 36738 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36739 | { (exit 1); exit 1; }; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36740 | ac_builddir=. |
| 36741 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36742 | case "$ac_dir" in |
| 36743 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 36744 | *) |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36745 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36746 | # A ".." for each directory in $ac_dir_suffix. |
| 36747 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 36748 | case $ac_top_builddir_sub in |
| 36749 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 36750 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 36751 | esac ;; |
| 36752 | esac |
| 36753 | ac_abs_top_builddir=$ac_pwd |
| 36754 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 36755 | # for backward compatibility: |
| 36756 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36757 | |
| 36758 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36759 | .) # We are building in place. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36760 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36761 | ac_top_srcdir=$ac_top_builddir_sub |
| 36762 | ac_abs_top_srcdir=$ac_pwd ;; |
| 36763 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36764 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36765 | ac_top_srcdir=$srcdir |
| 36766 | ac_abs_top_srcdir=$srcdir ;; |
| 36767 | *) # Relative name. |
| 36768 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 36769 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 36770 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36771 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36772 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36773 | |
| 36774 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36775 | cd "$ac_dir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36776 | |
| 36777 | # Check for guested configure; otherwise get Cygnus style configure. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36778 | if test -f "$ac_srcdir/configure.gnu"; then |
| 36779 | ac_sub_configure=$ac_srcdir/configure.gnu |
| 36780 | elif test -f "$ac_srcdir/configure"; then |
| 36781 | ac_sub_configure=$ac_srcdir/configure |
| 36782 | elif test -f "$ac_srcdir/configure.in"; then |
| 36783 | # This should be Cygnus configure. |
| 36784 | ac_sub_configure=$ac_aux_dir/configure |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36785 | else |
| 36786 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 36787 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
| 36788 | ac_sub_configure= |
| 36789 | fi |
| 36790 | |
| 36791 | # The recursion is here. |
| 36792 | if test -n "$ac_sub_configure"; then |
| 36793 | # Make the cache file name correct relative to the subdirectory. |
| 36794 | case $cache_file in |
| 36795 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36796 | *) # Relative name. |
| 36797 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36798 | esac |
| 36799 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36800 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 36801 | 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] | 36802 | # The eval makes quoting arguments work. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36803 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
| 36804 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 36805 | { { 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] | 36806 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 36807 | { (exit 1); exit 1; }; } |
| 36808 | fi |
| 36809 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36810 | cd "$ac_popdir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 36811 | done |
| 36812 | fi |
| 36813 | |