bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame^] | 3 | # Generated by GNU Autoconf 2.60 for breakpad 0.1. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4 | # |
| 5 | # Report bugs to <opensource@google.com>. |
| 6 | # |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +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. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
| 11 | ## --------------------- ## |
| 12 | ## M4sh Initialization. ## |
| 13 | ## --------------------- ## |
| 14 | |
| 15 | # Be Bourne compatible |
| 16 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 17 | emulate sh |
| 18 | NULLCMD=: |
| 19 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 20 | # is contrary to our usage. Disable this feature. |
| 21 | alias -g '${1+"$@"}'='"$@"' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 22 | setopt NO_GLOB_SUBST |
| 23 | else |
| 24 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 25 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 26 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 27 | DUALCASE=1; export DUALCASE # for MKS sh |
| 28 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 29 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 30 | # PATH needs CR |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 31 | # Avoid depending upon Character Ranges. |
| 32 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 33 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 34 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 35 | as_cr_digits='0123456789' |
| 36 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 37 | |
| 38 | # The user is always right. |
| 39 | if test "${PATH_SEPARATOR+set}" != set; then |
| 40 | echo "#! /bin/sh" >conf$$.sh |
| 41 | echo "exit 0" >>conf$$.sh |
| 42 | chmod +x conf$$.sh |
| 43 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 44 | PATH_SEPARATOR=';' |
| 45 | else |
| 46 | PATH_SEPARATOR=: |
| 47 | fi |
| 48 | rm -f conf$$.sh |
| 49 | fi |
| 50 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 51 | # Support unset when possible. |
| 52 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 53 | as_unset=unset |
| 54 | else |
| 55 | as_unset=false |
| 56 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 57 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 58 | |
| 59 | # IFS |
| 60 | # We need space, tab and new line, in precisely that order. Quoting is |
| 61 | # there to prevent editors from complaining about space-tab. |
| 62 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 63 | # splitting by setting IFS to empty value.) |
| 64 | as_nl=' |
| 65 | ' |
| 66 | IFS=" "" $as_nl" |
| 67 | |
| 68 | # Find who we are. Look in the path if we contain no directory separator. |
| 69 | case $0 in |
| 70 | *[\\/]* ) as_myself=$0 ;; |
| 71 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 72 | for as_dir in $PATH |
| 73 | do |
| 74 | IFS=$as_save_IFS |
| 75 | test -z "$as_dir" && as_dir=. |
| 76 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 77 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 78 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 79 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 80 | ;; |
| 81 | esac |
| 82 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 83 | # in which case we are not to be found in the path. |
| 84 | if test "x$as_myself" = x; then |
| 85 | as_myself=$0 |
| 86 | fi |
| 87 | if test ! -f "$as_myself"; then |
| 88 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 89 | { (exit 1); exit 1; } |
| 90 | fi |
| 91 | |
| 92 | # Work around bugs in pre-3.0 UWIN ksh. |
| 93 | for as_var in ENV MAIL MAILPATH |
| 94 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 95 | done |
| 96 | PS1='$ ' |
| 97 | PS2='> ' |
| 98 | PS4='+ ' |
| 99 | |
| 100 | # NLS nuisances. |
| 101 | for as_var in \ |
| 102 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 103 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 104 | LC_TELEPHONE LC_TIME |
| 105 | do |
| 106 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 107 | eval $as_var=C; export $as_var |
| 108 | else |
| 109 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 110 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 111 | done |
| 112 | |
| 113 | # Required to use basename. |
| 114 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 115 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 116 | as_expr=expr |
| 117 | else |
| 118 | as_expr=false |
| 119 | fi |
| 120 | |
| 121 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 122 | as_basename=basename |
| 123 | else |
| 124 | as_basename=false |
| 125 | fi |
| 126 | |
| 127 | |
| 128 | # Name of the executable. |
| 129 | as_me=`$as_basename -- "$0" || |
| 130 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 131 | X"$0" : 'X\(//\)$' \| \ |
| 132 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 133 | echo X/"$0" | |
| 134 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 135 | s//\1/ |
| 136 | q |
| 137 | } |
| 138 | /^X\/\(\/\/\)$/{ |
| 139 | s//\1/ |
| 140 | q |
| 141 | } |
| 142 | /^X\/\(\/\).*/{ |
| 143 | s//\1/ |
| 144 | q |
| 145 | } |
| 146 | s/.*/./; q'` |
| 147 | |
| 148 | # CDPATH. |
| 149 | $as_unset CDPATH |
| 150 | |
| 151 | |
| 152 | if test "x$CONFIG_SHELL" = x; then |
| 153 | if (eval ":") 2>/dev/null; then |
| 154 | as_have_required=yes |
| 155 | else |
| 156 | as_have_required=no |
| 157 | fi |
| 158 | |
| 159 | if test $as_have_required = yes && (eval ": |
| 160 | (as_func_return () { |
| 161 | (exit \$1) |
| 162 | } |
| 163 | as_func_success () { |
| 164 | as_func_return 0 |
| 165 | } |
| 166 | as_func_failure () { |
| 167 | as_func_return 1 |
| 168 | } |
| 169 | as_func_ret_success () { |
| 170 | return 0 |
| 171 | } |
| 172 | as_func_ret_failure () { |
| 173 | return 1 |
| 174 | } |
| 175 | |
| 176 | exitcode=0 |
| 177 | if as_func_success; then |
| 178 | : |
| 179 | else |
| 180 | exitcode=1 |
| 181 | echo as_func_success failed. |
| 182 | fi |
| 183 | |
| 184 | if as_func_failure; then |
| 185 | exitcode=1 |
| 186 | echo as_func_failure succeeded. |
| 187 | fi |
| 188 | |
| 189 | if as_func_ret_success; then |
| 190 | : |
| 191 | else |
| 192 | exitcode=1 |
| 193 | echo as_func_ret_success failed. |
| 194 | fi |
| 195 | |
| 196 | if as_func_ret_failure; then |
| 197 | exitcode=1 |
| 198 | echo as_func_ret_failure succeeded. |
| 199 | fi |
| 200 | |
| 201 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 202 | : |
| 203 | else |
| 204 | exitcode=1 |
| 205 | echo positional parameters were not saved. |
| 206 | fi |
| 207 | |
| 208 | test \$exitcode = 0) || { (exit 1); exit 1; } |
| 209 | |
| 210 | ( |
| 211 | as_lineno_1=\$LINENO |
| 212 | as_lineno_2=\$LINENO |
| 213 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| 214 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
| 215 | ") 2> /dev/null; then |
| 216 | : |
| 217 | else |
| 218 | as_candidate_shells= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 219 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 220 | for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 221 | do |
| 222 | IFS=$as_save_IFS |
| 223 | test -z "$as_dir" && as_dir=. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 224 | case $as_dir in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 225 | /*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 226 | for as_base in sh bash ksh sh5; do |
| 227 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| 228 | done;; |
| 229 | esac |
| 230 | done |
| 231 | IFS=$as_save_IFS |
| 232 | |
| 233 | |
| 234 | for as_shell in $as_candidate_shells $SHELL; do |
| 235 | # Try only shells that exist, to save several forks. |
| 236 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 237 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
| 238 | # Be Bourne compatible |
| 239 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 240 | emulate sh |
| 241 | NULLCMD=: |
| 242 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 243 | # is contrary to our usage. Disable this feature. |
| 244 | alias -g '${1+"$@"}'='"$@"' |
| 245 | setopt NO_GLOB_SUBST |
| 246 | else |
| 247 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
| 248 | fi |
| 249 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 250 | DUALCASE=1; export DUALCASE # for MKS sh |
| 251 | |
| 252 | : |
| 253 | _ASEOF |
| 254 | }; then |
| 255 | CONFIG_SHELL=$as_shell |
| 256 | as_have_required=yes |
| 257 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
| 258 | # Be Bourne compatible |
| 259 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 260 | emulate sh |
| 261 | NULLCMD=: |
| 262 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 263 | # is contrary to our usage. Disable this feature. |
| 264 | alias -g '${1+"$@"}'='"$@"' |
| 265 | setopt NO_GLOB_SUBST |
| 266 | else |
| 267 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
| 268 | fi |
| 269 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 270 | DUALCASE=1; export DUALCASE # for MKS sh |
| 271 | |
| 272 | : |
| 273 | (as_func_return () { |
| 274 | (exit $1) |
| 275 | } |
| 276 | as_func_success () { |
| 277 | as_func_return 0 |
| 278 | } |
| 279 | as_func_failure () { |
| 280 | as_func_return 1 |
| 281 | } |
| 282 | as_func_ret_success () { |
| 283 | return 0 |
| 284 | } |
| 285 | as_func_ret_failure () { |
| 286 | return 1 |
| 287 | } |
| 288 | |
| 289 | exitcode=0 |
| 290 | if as_func_success; then |
| 291 | : |
| 292 | else |
| 293 | exitcode=1 |
| 294 | echo as_func_success failed. |
| 295 | fi |
| 296 | |
| 297 | if as_func_failure; then |
| 298 | exitcode=1 |
| 299 | echo as_func_failure succeeded. |
| 300 | fi |
| 301 | |
| 302 | if as_func_ret_success; then |
| 303 | : |
| 304 | else |
| 305 | exitcode=1 |
| 306 | echo as_func_ret_success failed. |
| 307 | fi |
| 308 | |
| 309 | if as_func_ret_failure; then |
| 310 | exitcode=1 |
| 311 | echo as_func_ret_failure succeeded. |
| 312 | fi |
| 313 | |
| 314 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 315 | : |
| 316 | else |
| 317 | exitcode=1 |
| 318 | echo positional parameters were not saved. |
| 319 | fi |
| 320 | |
| 321 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 322 | |
| 323 | ( |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 324 | as_lineno_1=$LINENO |
| 325 | as_lineno_2=$LINENO |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 326 | test "x$as_lineno_1" != "x$as_lineno_2" && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 327 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
| 328 | |
| 329 | _ASEOF |
| 330 | }; then |
| 331 | break |
| 332 | fi |
| 333 | |
| 334 | fi |
| 335 | |
| 336 | done |
| 337 | |
| 338 | if test "x$CONFIG_SHELL" != x; then |
| 339 | for as_var in BASH_ENV ENV |
| 340 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 341 | done |
| 342 | export CONFIG_SHELL |
| 343 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 344 | fi |
| 345 | |
| 346 | |
| 347 | if test $as_have_required = no; then |
| 348 | echo This script requires a shell more modern than all the |
| 349 | echo shells that I found on your system. Please install a |
| 350 | echo modern shell, or manually run the script under such a |
| 351 | echo shell if you do have one. |
| 352 | { (exit 1); exit 1; } |
| 353 | fi |
| 354 | |
| 355 | |
| 356 | fi |
| 357 | |
| 358 | fi |
| 359 | |
| 360 | |
| 361 | |
| 362 | (eval "as_func_return () { |
| 363 | (exit \$1) |
| 364 | } |
| 365 | as_func_success () { |
| 366 | as_func_return 0 |
| 367 | } |
| 368 | as_func_failure () { |
| 369 | as_func_return 1 |
| 370 | } |
| 371 | as_func_ret_success () { |
| 372 | return 0 |
| 373 | } |
| 374 | as_func_ret_failure () { |
| 375 | return 1 |
| 376 | } |
| 377 | |
| 378 | exitcode=0 |
| 379 | if as_func_success; then |
| 380 | : |
| 381 | else |
| 382 | exitcode=1 |
| 383 | echo as_func_success failed. |
| 384 | fi |
| 385 | |
| 386 | if as_func_failure; then |
| 387 | exitcode=1 |
| 388 | echo as_func_failure succeeded. |
| 389 | fi |
| 390 | |
| 391 | if as_func_ret_success; then |
| 392 | : |
| 393 | else |
| 394 | exitcode=1 |
| 395 | echo as_func_ret_success failed. |
| 396 | fi |
| 397 | |
| 398 | if as_func_ret_failure; then |
| 399 | exitcode=1 |
| 400 | echo as_func_ret_failure succeeded. |
| 401 | fi |
| 402 | |
| 403 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 404 | : |
| 405 | else |
| 406 | exitcode=1 |
| 407 | echo positional parameters were not saved. |
| 408 | fi |
| 409 | |
| 410 | test \$exitcode = 0") || { |
| 411 | echo No shell found that supports shell functions. |
| 412 | echo Please tell autoconf@gnu.org about your system, |
| 413 | echo including any error possibly output before this |
| 414 | echo message |
| 415 | } |
| 416 | |
| 417 | |
| 418 | |
| 419 | as_lineno_1=$LINENO |
| 420 | as_lineno_2=$LINENO |
| 421 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 422 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 423 | |
| 424 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 425 | # uniformly replaced by the line number. The first 'sed' inserts a |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 426 | # line-number line after each line using $LINENO; the second 'sed' |
| 427 | # does the real work. The second script uses 'N' to pair each |
| 428 | # line-number line with the line containing $LINENO, and appends |
| 429 | # trailing '-' during substitution so that $LINENO is not a special |
| 430 | # case at line end. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 431 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 432 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 433 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 434 | sed -n ' |
| 435 | p |
| 436 | /[$]LINENO/= |
| 437 | ' <$as_myself | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 438 | sed ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 439 | s/[$]LINENO.*/&-/ |
| 440 | t lineno |
| 441 | b |
| 442 | :lineno |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 443 | N |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 444 | :loop |
| 445 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 446 | t loop |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 447 | s/-\n.*// |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 448 | ' >$as_me.lineno && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 449 | chmod +x "$as_me.lineno" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 450 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 451 | { (exit 1); exit 1; }; } |
| 452 | |
| 453 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 454 | # (the dirname of $[0] is not the place where we might find the |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 455 | # original and so on. Autoconf is especially sensitive to this). |
| 456 | . "./$as_me.lineno" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 457 | # Exit status is that of the last command. |
| 458 | exit |
| 459 | } |
| 460 | |
| 461 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 462 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 463 | as_dirname=dirname |
| 464 | else |
| 465 | as_dirname=false |
| 466 | fi |
| 467 | |
| 468 | ECHO_C= ECHO_N= ECHO_T= |
| 469 | case `echo -n x` in |
| 470 | -n*) |
| 471 | case `echo 'x\c'` in |
| 472 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 473 | *) ECHO_C='\c';; |
| 474 | esac;; |
| 475 | *) |
| 476 | ECHO_N='-n';; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 477 | esac |
| 478 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 479 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 480 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 481 | as_expr=expr |
| 482 | else |
| 483 | as_expr=false |
| 484 | fi |
| 485 | |
| 486 | rm -f conf$$ conf$$.exe conf$$.file |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 487 | if test -d conf$$.dir; then |
| 488 | rm -f conf$$.dir/conf$$.file |
| 489 | else |
| 490 | rm -f conf$$.dir |
| 491 | mkdir conf$$.dir |
| 492 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 493 | echo >conf$$.file |
| 494 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 495 | as_ln_s='ln -s' |
| 496 | # ... but there are two gotchas: |
| 497 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 498 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 499 | # In both cases, we have to default to `cp -p'. |
| 500 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 501 | as_ln_s='cp -p' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 502 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 503 | as_ln_s=ln |
| 504 | else |
| 505 | as_ln_s='cp -p' |
| 506 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 507 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 508 | rmdir conf$$.dir 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 509 | |
| 510 | if mkdir -p . 2>/dev/null; then |
| 511 | as_mkdir_p=: |
| 512 | else |
| 513 | test -d ./-p && rmdir ./-p |
| 514 | as_mkdir_p=false |
| 515 | fi |
| 516 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 517 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 518 | # systems may use methods other than mode bits to determine executability. |
| 519 | cat >conf$$.file <<_ASEOF |
| 520 | #! /bin/sh |
| 521 | exit 0 |
| 522 | _ASEOF |
| 523 | chmod +x conf$$.file |
| 524 | if test -x conf$$.file >/dev/null 2>&1; then |
| 525 | as_executable_p="test -x" |
| 526 | else |
| 527 | as_executable_p=: |
| 528 | fi |
| 529 | rm -f conf$$.file |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 530 | |
| 531 | # Sed expression to map a string onto a valid CPP name. |
| 532 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 533 | |
| 534 | # Sed expression to map a string onto a valid variable name. |
| 535 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 536 | |
| 537 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 538 | |
| 539 | |
| 540 | # Check that we are running under the correct shell. |
| 541 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 542 | |
| 543 | case X$ECHO in |
| 544 | X*--fallback-echo) |
| 545 | # Remove one level of quotation (which was required for Make). |
| 546 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
| 547 | ;; |
| 548 | esac |
| 549 | |
| 550 | echo=${ECHO-echo} |
| 551 | if test "X$1" = X--no-reexec; then |
| 552 | # Discard the --no-reexec flag, and continue. |
| 553 | shift |
| 554 | elif test "X$1" = X--fallback-echo; then |
| 555 | # Avoid inline document here, it may be left over |
| 556 | : |
| 557 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
| 558 | # Yippee, $echo works! |
| 559 | : |
| 560 | else |
| 561 | # Restart under the correct shell. |
| 562 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 563 | fi |
| 564 | |
| 565 | if test "X$1" = X--fallback-echo; then |
| 566 | # used as fallback echo |
| 567 | shift |
| 568 | cat <<EOF |
| 569 | $* |
| 570 | EOF |
| 571 | exit 0 |
| 572 | fi |
| 573 | |
| 574 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 575 | # if CDPATH is set. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 576 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 577 | |
| 578 | if test -z "$ECHO"; then |
| 579 | if test "X${echo_test_string+set}" != Xset; then |
| 580 | # find a string as large as possible, as long as the shell can cope with it |
| 581 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 582 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 583 | if (echo_test_string=`eval $cmd`) 2>/dev/null && |
| 584 | echo_test_string=`eval $cmd` && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 585 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
| 586 | then |
| 587 | break |
| 588 | fi |
| 589 | done |
| 590 | fi |
| 591 | |
| 592 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 593 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 594 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 595 | : |
| 596 | else |
| 597 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 598 | # backslashes. This makes it impossible to quote backslashes using |
| 599 | # echo "$something" | sed 's/\\/\\\\/g' |
| 600 | # |
| 601 | # So, first we look for a working echo in the user's PATH. |
| 602 | |
| 603 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 604 | for dir in $PATH /usr/ucb; do |
| 605 | IFS="$lt_save_ifs" |
| 606 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 607 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 608 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 609 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 610 | echo="$dir/echo" |
| 611 | break |
| 612 | fi |
| 613 | done |
| 614 | IFS="$lt_save_ifs" |
| 615 | |
| 616 | if test "X$echo" = Xecho; then |
| 617 | # We didn't find a better echo, so look for alternatives. |
| 618 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
| 619 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
| 620 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 621 | # This shell has a builtin print -r that does the trick. |
| 622 | echo='print -r' |
| 623 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
| 624 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 625 | # If we have ksh, try running configure again with it. |
| 626 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 627 | export ORIGINAL_CONFIG_SHELL |
| 628 | CONFIG_SHELL=/bin/ksh |
| 629 | export CONFIG_SHELL |
| 630 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
| 631 | else |
| 632 | # Try using printf. |
| 633 | echo='printf %s\n' |
| 634 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 635 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 636 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 637 | # Cool, printf works |
| 638 | : |
| 639 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 640 | test "X$echo_testing_string" = 'X\t' && |
| 641 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 642 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 643 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 644 | export CONFIG_SHELL |
| 645 | SHELL="$CONFIG_SHELL" |
| 646 | export SHELL |
| 647 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 648 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 649 | test "X$echo_testing_string" = 'X\t' && |
| 650 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 651 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 652 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 653 | else |
| 654 | # maybe with a smaller string... |
| 655 | prev=: |
| 656 | |
| 657 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 658 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
| 659 | then |
| 660 | break |
| 661 | fi |
| 662 | prev="$cmd" |
| 663 | done |
| 664 | |
| 665 | if test "$prev" != 'sed 50q "$0"'; then |
| 666 | echo_test_string=`eval $prev` |
| 667 | export echo_test_string |
| 668 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 669 | else |
| 670 | # Oops. We lost completely, so just stick with echo. |
| 671 | echo=echo |
| 672 | fi |
| 673 | fi |
| 674 | fi |
| 675 | fi |
| 676 | fi |
| 677 | fi |
| 678 | |
| 679 | # Copy echo and quote the copy suitably for passing to libtool from |
| 680 | # the Makefile, instead of quoting the original, which is used later. |
| 681 | ECHO=$echo |
| 682 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 683 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
| 684 | fi |
| 685 | |
| 686 | |
| 687 | |
| 688 | |
| 689 | tagnames=${tagnames+${tagnames},}CXX |
| 690 | |
| 691 | tagnames=${tagnames+${tagnames},}F77 |
| 692 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 693 | exec 7<&0 </dev/null 6>&1 |
| 694 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 695 | # Name of the host. |
| 696 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 697 | # so uname gets run too. |
| 698 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 699 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 700 | # |
| 701 | # Initializations. |
| 702 | # |
| 703 | ac_default_prefix=/usr/local |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 704 | ac_clean_files= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 705 | ac_config_libobj_dir=. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 706 | LIBOBJS= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 707 | cross_compiling=no |
| 708 | subdirs= |
| 709 | MFLAGS= |
| 710 | MAKEFLAGS= |
| 711 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 712 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 713 | # Identity of this package. |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame^] | 714 | PACKAGE_NAME='breakpad' |
| 715 | PACKAGE_TARNAME='breakpad' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 716 | PACKAGE_VERSION='0.1' |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame^] | 717 | PACKAGE_STRING='breakpad 0.1' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 718 | PACKAGE_BUGREPORT='opensource@google.com' |
| 719 | |
| 720 | ac_unique_file="README" |
| 721 | # Factoring default headers for most tests. |
| 722 | ac_includes_default="\ |
| 723 | #include <stdio.h> |
| 724 | #if HAVE_SYS_TYPES_H |
| 725 | # include <sys/types.h> |
| 726 | #endif |
| 727 | #if HAVE_SYS_STAT_H |
| 728 | # include <sys/stat.h> |
| 729 | #endif |
| 730 | #if STDC_HEADERS |
| 731 | # include <stdlib.h> |
| 732 | # include <stddef.h> |
| 733 | #else |
| 734 | # if HAVE_STDLIB_H |
| 735 | # include <stdlib.h> |
| 736 | # endif |
| 737 | #endif |
| 738 | #if HAVE_STRING_H |
| 739 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 740 | # include <memory.h> |
| 741 | # endif |
| 742 | # include <string.h> |
| 743 | #endif |
| 744 | #if HAVE_STRINGS_H |
| 745 | # include <strings.h> |
| 746 | #endif |
| 747 | #if HAVE_INTTYPES_H |
| 748 | # include <inttypes.h> |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 749 | #endif |
| 750 | #if HAVE_STDINT_H |
| 751 | # include <stdint.h> |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 752 | #endif |
| 753 | #if HAVE_UNISTD_H |
| 754 | # include <unistd.h> |
| 755 | #endif" |
| 756 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 757 | ac_subst_vars='SHELL |
| 758 | PATH_SEPARATOR |
| 759 | PACKAGE_NAME |
| 760 | PACKAGE_TARNAME |
| 761 | PACKAGE_VERSION |
| 762 | PACKAGE_STRING |
| 763 | PACKAGE_BUGREPORT |
| 764 | exec_prefix |
| 765 | prefix |
| 766 | program_transform_name |
| 767 | bindir |
| 768 | sbindir |
| 769 | libexecdir |
| 770 | datarootdir |
| 771 | datadir |
| 772 | sysconfdir |
| 773 | sharedstatedir |
| 774 | localstatedir |
| 775 | includedir |
| 776 | oldincludedir |
| 777 | docdir |
| 778 | infodir |
| 779 | htmldir |
| 780 | dvidir |
| 781 | pdfdir |
| 782 | psdir |
| 783 | libdir |
| 784 | localedir |
| 785 | mandir |
| 786 | DEFS |
| 787 | ECHO_C |
| 788 | ECHO_N |
| 789 | ECHO_T |
| 790 | LIBS |
| 791 | build_alias |
| 792 | host_alias |
| 793 | target_alias |
| 794 | INSTALL_PROGRAM |
| 795 | INSTALL_SCRIPT |
| 796 | INSTALL_DATA |
| 797 | CYGPATH_W |
| 798 | PACKAGE |
| 799 | VERSION |
| 800 | ACLOCAL |
| 801 | AUTOCONF |
| 802 | AUTOMAKE |
| 803 | AUTOHEADER |
| 804 | MAKEINFO |
| 805 | install_sh |
| 806 | STRIP |
| 807 | INSTALL_STRIP_PROGRAM |
| 808 | mkdir_p |
| 809 | AWK |
| 810 | SET_MAKE |
| 811 | am__leading_dot |
| 812 | AMTAR |
| 813 | am__tar |
| 814 | am__untar |
| 815 | CC |
| 816 | CFLAGS |
| 817 | LDFLAGS |
| 818 | CPPFLAGS |
| 819 | ac_ct_CC |
| 820 | EXEEXT |
| 821 | OBJEXT |
| 822 | DEPDIR |
| 823 | am__include |
| 824 | am__quote |
| 825 | AMDEP_TRUE |
| 826 | AMDEP_FALSE |
| 827 | AMDEPBACKSLASH |
| 828 | CCDEPMODE |
| 829 | am__fastdepCC_TRUE |
| 830 | am__fastdepCC_FALSE |
| 831 | CPP |
| 832 | CXX |
| 833 | CXXFLAGS |
| 834 | ac_ct_CXX |
| 835 | CXXDEPMODE |
| 836 | am__fastdepCXX_TRUE |
| 837 | am__fastdepCXX_FALSE |
| 838 | build |
| 839 | build_cpu |
| 840 | build_vendor |
| 841 | build_os |
| 842 | host |
| 843 | host_cpu |
| 844 | host_vendor |
| 845 | host_os |
| 846 | GREP |
| 847 | EGREP |
| 848 | LN_S |
| 849 | ECHO |
| 850 | AR |
| 851 | RANLIB |
| 852 | CXXCPP |
| 853 | F77 |
| 854 | FFLAGS |
| 855 | ac_ct_F77 |
| 856 | LIBTOOL |
| 857 | LIBTOOL_DEPS |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 858 | SELFTEST_TRUE |
| 859 | SELFTEST_FALSE |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 860 | LIBOBJS |
| 861 | LTLIBOBJS' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 862 | ac_subst_files='' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 863 | ac_precious_vars='build_alias |
| 864 | host_alias |
| 865 | target_alias |
| 866 | CC |
| 867 | CFLAGS |
| 868 | LDFLAGS |
| 869 | CPPFLAGS |
| 870 | CPP |
| 871 | CXX |
| 872 | CXXFLAGS |
| 873 | CCC |
| 874 | CXXCPP |
| 875 | F77 |
| 876 | FFLAGS' |
| 877 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 878 | |
| 879 | # Initialize some variables set by options. |
| 880 | ac_init_help= |
| 881 | ac_init_version=false |
| 882 | # The variables have the same names as the options, with |
| 883 | # dashes changed to underlines. |
| 884 | cache_file=/dev/null |
| 885 | exec_prefix=NONE |
| 886 | no_create= |
| 887 | no_recursion= |
| 888 | prefix=NONE |
| 889 | program_prefix=NONE |
| 890 | program_suffix=NONE |
| 891 | program_transform_name=s,x,x, |
| 892 | silent= |
| 893 | site= |
| 894 | srcdir= |
| 895 | verbose= |
| 896 | x_includes=NONE |
| 897 | x_libraries=NONE |
| 898 | |
| 899 | # Installation directory options. |
| 900 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 901 | # and all the variables that are supposed to be based on exec_prefix |
| 902 | # by default will actually change. |
| 903 | # Use braces instead of parens because sh, perl, etc. also accept them. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 904 | # (The list follows the same order as the GNU Coding Standards.) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 905 | bindir='${exec_prefix}/bin' |
| 906 | sbindir='${exec_prefix}/sbin' |
| 907 | libexecdir='${exec_prefix}/libexec' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 908 | datarootdir='${prefix}/share' |
| 909 | datadir='${datarootdir}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 910 | sysconfdir='${prefix}/etc' |
| 911 | sharedstatedir='${prefix}/com' |
| 912 | localstatedir='${prefix}/var' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 913 | includedir='${prefix}/include' |
| 914 | oldincludedir='/usr/include' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 915 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 916 | infodir='${datarootdir}/info' |
| 917 | htmldir='${docdir}' |
| 918 | dvidir='${docdir}' |
| 919 | pdfdir='${docdir}' |
| 920 | psdir='${docdir}' |
| 921 | libdir='${exec_prefix}/lib' |
| 922 | localedir='${datarootdir}/locale' |
| 923 | mandir='${datarootdir}/man' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 924 | |
| 925 | ac_prev= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 926 | ac_dashdash= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 927 | for ac_option |
| 928 | do |
| 929 | # If the previous option needs an argument, assign it. |
| 930 | if test -n "$ac_prev"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 931 | eval $ac_prev=\$ac_option |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 932 | ac_prev= |
| 933 | continue |
| 934 | fi |
| 935 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 936 | case $ac_option in |
| 937 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 938 | *) ac_optarg=yes ;; |
| 939 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 940 | |
| 941 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 942 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 943 | case $ac_dashdash$ac_option in |
| 944 | --) |
| 945 | ac_dashdash=yes ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 946 | |
| 947 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 948 | ac_prev=bindir ;; |
| 949 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 950 | bindir=$ac_optarg ;; |
| 951 | |
| 952 | -build | --build | --buil | --bui | --bu) |
| 953 | ac_prev=build_alias ;; |
| 954 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 955 | build_alias=$ac_optarg ;; |
| 956 | |
| 957 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 958 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 959 | ac_prev=cache_file ;; |
| 960 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 961 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 962 | cache_file=$ac_optarg ;; |
| 963 | |
| 964 | --config-cache | -C) |
| 965 | cache_file=config.cache ;; |
| 966 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 967 | -datadir | --datadir | --datadi | --datad) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 968 | ac_prev=datadir ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 969 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 970 | datadir=$ac_optarg ;; |
| 971 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 972 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 973 | | --dataroo | --dataro | --datar) |
| 974 | ac_prev=datarootdir ;; |
| 975 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 976 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 977 | datarootdir=$ac_optarg ;; |
| 978 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 979 | -disable-* | --disable-*) |
| 980 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 981 | # Reject names that are not valid shell variable names. |
| 982 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 983 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 984 | { (exit 1); exit 1; }; } |
| 985 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 986 | eval enable_$ac_feature=no ;; |
| 987 | |
| 988 | -docdir | --docdir | --docdi | --doc | --do) |
| 989 | ac_prev=docdir ;; |
| 990 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 991 | docdir=$ac_optarg ;; |
| 992 | |
| 993 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 994 | ac_prev=dvidir ;; |
| 995 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 996 | dvidir=$ac_optarg ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 997 | |
| 998 | -enable-* | --enable-*) |
| 999 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 1000 | # Reject names that are not valid shell variable names. |
| 1001 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1002 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 1003 | { (exit 1); exit 1; }; } |
| 1004 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1005 | eval enable_$ac_feature=\$ac_optarg ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1006 | |
| 1007 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1008 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1009 | | --exec | --exe | --ex) |
| 1010 | ac_prev=exec_prefix ;; |
| 1011 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1012 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1013 | | --exec=* | --exe=* | --ex=*) |
| 1014 | exec_prefix=$ac_optarg ;; |
| 1015 | |
| 1016 | -gas | --gas | --ga | --g) |
| 1017 | # Obsolete; use --with-gas. |
| 1018 | with_gas=yes ;; |
| 1019 | |
| 1020 | -help | --help | --hel | --he | -h) |
| 1021 | ac_init_help=long ;; |
| 1022 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1023 | ac_init_help=recursive ;; |
| 1024 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1025 | ac_init_help=short ;; |
| 1026 | |
| 1027 | -host | --host | --hos | --ho) |
| 1028 | ac_prev=host_alias ;; |
| 1029 | -host=* | --host=* | --hos=* | --ho=*) |
| 1030 | host_alias=$ac_optarg ;; |
| 1031 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1032 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1033 | ac_prev=htmldir ;; |
| 1034 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1035 | | --ht=*) |
| 1036 | htmldir=$ac_optarg ;; |
| 1037 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1038 | -includedir | --includedir | --includedi | --included | --include \ |
| 1039 | | --includ | --inclu | --incl | --inc) |
| 1040 | ac_prev=includedir ;; |
| 1041 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1042 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1043 | includedir=$ac_optarg ;; |
| 1044 | |
| 1045 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1046 | ac_prev=infodir ;; |
| 1047 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1048 | infodir=$ac_optarg ;; |
| 1049 | |
| 1050 | -libdir | --libdir | --libdi | --libd) |
| 1051 | ac_prev=libdir ;; |
| 1052 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1053 | libdir=$ac_optarg ;; |
| 1054 | |
| 1055 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1056 | | --libexe | --libex | --libe) |
| 1057 | ac_prev=libexecdir ;; |
| 1058 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1059 | | --libexe=* | --libex=* | --libe=*) |
| 1060 | libexecdir=$ac_optarg ;; |
| 1061 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1062 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1063 | ac_prev=localedir ;; |
| 1064 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1065 | localedir=$ac_optarg ;; |
| 1066 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1067 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1068 | | --localstate | --localstat | --localsta | --localst | --locals) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1069 | ac_prev=localstatedir ;; |
| 1070 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1071 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1072 | localstatedir=$ac_optarg ;; |
| 1073 | |
| 1074 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1075 | ac_prev=mandir ;; |
| 1076 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1077 | mandir=$ac_optarg ;; |
| 1078 | |
| 1079 | -nfp | --nfp | --nf) |
| 1080 | # Obsolete; use --without-fp. |
| 1081 | with_fp=no ;; |
| 1082 | |
| 1083 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1084 | | --no-cr | --no-c | -n) |
| 1085 | no_create=yes ;; |
| 1086 | |
| 1087 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1088 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1089 | no_recursion=yes ;; |
| 1090 | |
| 1091 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1092 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1093 | | --oldin | --oldi | --old | --ol | --o) |
| 1094 | ac_prev=oldincludedir ;; |
| 1095 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1096 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1097 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1098 | oldincludedir=$ac_optarg ;; |
| 1099 | |
| 1100 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1101 | ac_prev=prefix ;; |
| 1102 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1103 | prefix=$ac_optarg ;; |
| 1104 | |
| 1105 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1106 | | --program-pre | --program-pr | --program-p) |
| 1107 | ac_prev=program_prefix ;; |
| 1108 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1109 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1110 | program_prefix=$ac_optarg ;; |
| 1111 | |
| 1112 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1113 | | --program-suf | --program-su | --program-s) |
| 1114 | ac_prev=program_suffix ;; |
| 1115 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1116 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1117 | program_suffix=$ac_optarg ;; |
| 1118 | |
| 1119 | -program-transform-name | --program-transform-name \ |
| 1120 | | --program-transform-nam | --program-transform-na \ |
| 1121 | | --program-transform-n | --program-transform- \ |
| 1122 | | --program-transform | --program-transfor \ |
| 1123 | | --program-transfo | --program-transf \ |
| 1124 | | --program-trans | --program-tran \ |
| 1125 | | --progr-tra | --program-tr | --program-t) |
| 1126 | ac_prev=program_transform_name ;; |
| 1127 | -program-transform-name=* | --program-transform-name=* \ |
| 1128 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1129 | | --program-transform-n=* | --program-transform-=* \ |
| 1130 | | --program-transform=* | --program-transfor=* \ |
| 1131 | | --program-transfo=* | --program-transf=* \ |
| 1132 | | --program-trans=* | --program-tran=* \ |
| 1133 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1134 | program_transform_name=$ac_optarg ;; |
| 1135 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1136 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1137 | ac_prev=pdfdir ;; |
| 1138 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1139 | pdfdir=$ac_optarg ;; |
| 1140 | |
| 1141 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1142 | ac_prev=psdir ;; |
| 1143 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1144 | psdir=$ac_optarg ;; |
| 1145 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1146 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1147 | | -silent | --silent | --silen | --sile | --sil) |
| 1148 | silent=yes ;; |
| 1149 | |
| 1150 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1151 | ac_prev=sbindir ;; |
| 1152 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1153 | | --sbi=* | --sb=*) |
| 1154 | sbindir=$ac_optarg ;; |
| 1155 | |
| 1156 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1157 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1158 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1159 | | --sha | --sh) |
| 1160 | ac_prev=sharedstatedir ;; |
| 1161 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1162 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1163 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1164 | | --sha=* | --sh=*) |
| 1165 | sharedstatedir=$ac_optarg ;; |
| 1166 | |
| 1167 | -site | --site | --sit) |
| 1168 | ac_prev=site ;; |
| 1169 | -site=* | --site=* | --sit=*) |
| 1170 | site=$ac_optarg ;; |
| 1171 | |
| 1172 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1173 | ac_prev=srcdir ;; |
| 1174 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1175 | srcdir=$ac_optarg ;; |
| 1176 | |
| 1177 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1178 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1179 | ac_prev=sysconfdir ;; |
| 1180 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1181 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1182 | sysconfdir=$ac_optarg ;; |
| 1183 | |
| 1184 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1185 | ac_prev=target_alias ;; |
| 1186 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1187 | target_alias=$ac_optarg ;; |
| 1188 | |
| 1189 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1190 | verbose=yes ;; |
| 1191 | |
| 1192 | -version | --version | --versio | --versi | --vers | -V) |
| 1193 | ac_init_version=: ;; |
| 1194 | |
| 1195 | -with-* | --with-*) |
| 1196 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1197 | # Reject names that are not valid shell variable names. |
| 1198 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1199 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1200 | { (exit 1); exit 1; }; } |
| 1201 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1202 | eval with_$ac_package=\$ac_optarg ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1203 | |
| 1204 | -without-* | --without-*) |
| 1205 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1206 | # Reject names that are not valid shell variable names. |
| 1207 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1208 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1209 | { (exit 1); exit 1; }; } |
| 1210 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1211 | eval with_$ac_package=no ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1212 | |
| 1213 | --x) |
| 1214 | # Obsolete; use --with-x. |
| 1215 | with_x=yes ;; |
| 1216 | |
| 1217 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1218 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1219 | ac_prev=x_includes ;; |
| 1220 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1221 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1222 | x_includes=$ac_optarg ;; |
| 1223 | |
| 1224 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1225 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1226 | ac_prev=x_libraries ;; |
| 1227 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1228 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1229 | x_libraries=$ac_optarg ;; |
| 1230 | |
| 1231 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1232 | Try \`$0 --help' for more information." >&2 |
| 1233 | { (exit 1); exit 1; }; } |
| 1234 | ;; |
| 1235 | |
| 1236 | *=*) |
| 1237 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1238 | # Reject names that are not valid shell variable names. |
| 1239 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1240 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1241 | { (exit 1); exit 1; }; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1242 | eval $ac_envvar=\$ac_optarg |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1243 | export $ac_envvar ;; |
| 1244 | |
| 1245 | *) |
| 1246 | # FIXME: should be removed in autoconf 3.0. |
| 1247 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1248 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1249 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1250 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1251 | ;; |
| 1252 | |
| 1253 | esac |
| 1254 | done |
| 1255 | |
| 1256 | if test -n "$ac_prev"; then |
| 1257 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1258 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1259 | { (exit 1); exit 1; }; } |
| 1260 | fi |
| 1261 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1262 | # Be sure to have absolute directory names. |
| 1263 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1264 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1265 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1266 | libdir localedir mandir |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1267 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1268 | eval ac_val=\$$ac_var |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1269 | case $ac_val in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1270 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1271 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1272 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1273 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1274 | { (exit 1); exit 1; }; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1275 | done |
| 1276 | |
| 1277 | # There might be people who depend on the old broken behavior: `$host' |
| 1278 | # used to hold the argument of --host etc. |
| 1279 | # FIXME: To remove some day. |
| 1280 | build=$build_alias |
| 1281 | host=$host_alias |
| 1282 | target=$target_alias |
| 1283 | |
| 1284 | # FIXME: To remove some day. |
| 1285 | if test "x$host_alias" != x; then |
| 1286 | if test "x$build_alias" = x; then |
| 1287 | cross_compiling=maybe |
| 1288 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1289 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1290 | elif test "x$build_alias" != "x$host_alias"; then |
| 1291 | cross_compiling=yes |
| 1292 | fi |
| 1293 | fi |
| 1294 | |
| 1295 | ac_tool_prefix= |
| 1296 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1297 | |
| 1298 | test "$silent" = yes && exec 6>/dev/null |
| 1299 | |
| 1300 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1301 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1302 | ac_ls_di=`ls -di .` && |
| 1303 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1304 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1305 | { (exit 1); exit 1; }; } |
| 1306 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1307 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1308 | { (exit 1); exit 1; }; } |
| 1309 | |
| 1310 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1311 | # Find the source files, if location was not specified. |
| 1312 | if test -z "$srcdir"; then |
| 1313 | ac_srcdir_defaulted=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1314 | # Try the directory containing this script, then the parent directory. |
| 1315 | ac_confdir=`$as_dirname -- "$0" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1316 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1317 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1318 | X"$0" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1319 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1320 | echo X"$0" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1321 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1322 | s//\1/ |
| 1323 | q |
| 1324 | } |
| 1325 | /^X\(\/\/\)[^/].*/{ |
| 1326 | s//\1/ |
| 1327 | q |
| 1328 | } |
| 1329 | /^X\(\/\/\)$/{ |
| 1330 | s//\1/ |
| 1331 | q |
| 1332 | } |
| 1333 | /^X\(\/\).*/{ |
| 1334 | s//\1/ |
| 1335 | q |
| 1336 | } |
| 1337 | s/.*/./; q'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1338 | srcdir=$ac_confdir |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1339 | if test ! -r "$srcdir/$ac_unique_file"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1340 | srcdir=.. |
| 1341 | fi |
| 1342 | else |
| 1343 | ac_srcdir_defaulted=no |
| 1344 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1345 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1346 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1347 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1348 | { (exit 1); exit 1; }; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1349 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1350 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1351 | ac_abs_confdir=`( |
| 1352 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1353 | { (exit 1); exit 1; }; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1354 | pwd)` |
| 1355 | # When building in place, set srcdir=. |
| 1356 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1357 | srcdir=. |
| 1358 | fi |
| 1359 | # Remove unnecessary trailing slashes from srcdir. |
| 1360 | # Double slashes in file names in object file debugging info |
| 1361 | # mess up M-x gdb in Emacs. |
| 1362 | case $srcdir in |
| 1363 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1364 | esac |
| 1365 | for ac_var in $ac_precious_vars; do |
| 1366 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1367 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1368 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1369 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1370 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1371 | |
| 1372 | # |
| 1373 | # Report the --help message. |
| 1374 | # |
| 1375 | if test "$ac_init_help" = "long"; then |
| 1376 | # Omit some internal or obsolete options to make the list less imposing. |
| 1377 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1378 | cat <<_ACEOF |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame^] | 1379 | \`configure' configures breakpad 0.1 to adapt to many kinds of systems. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1380 | |
| 1381 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1382 | |
| 1383 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1384 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1385 | |
| 1386 | Defaults for the options are specified in brackets. |
| 1387 | |
| 1388 | Configuration: |
| 1389 | -h, --help display this help and exit |
| 1390 | --help=short display options specific to this package |
| 1391 | --help=recursive display the short help of all the included packages |
| 1392 | -V, --version display version information and exit |
| 1393 | -q, --quiet, --silent do not print \`checking...' messages |
| 1394 | --cache-file=FILE cache test results in FILE [disabled] |
| 1395 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1396 | -n, --no-create do not create output files |
| 1397 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1398 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1399 | Installation directories: |
| 1400 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1401 | [$ac_default_prefix] |
| 1402 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1403 | [PREFIX] |
| 1404 | |
| 1405 | By default, \`make install' will install all the files in |
| 1406 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1407 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1408 | for instance \`--prefix=\$HOME'. |
| 1409 | |
| 1410 | For better control, use the options below. |
| 1411 | |
| 1412 | Fine tuning of the installation directories: |
| 1413 | --bindir=DIR user executables [EPREFIX/bin] |
| 1414 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1415 | --libexecdir=DIR program executables [EPREFIX/libexec] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1416 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1417 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1418 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1419 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1420 | --includedir=DIR C header files [PREFIX/include] |
| 1421 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1422 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1423 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1424 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1425 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1426 | --mandir=DIR man documentation [DATAROOTDIR/man] |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame^] | 1427 | --docdir=DIR documentation root [DATAROOTDIR/doc/breakpad] |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1428 | --htmldir=DIR html documentation [DOCDIR] |
| 1429 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1430 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1431 | --psdir=DIR ps documentation [DOCDIR] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1432 | _ACEOF |
| 1433 | |
| 1434 | cat <<\_ACEOF |
| 1435 | |
| 1436 | Program names: |
| 1437 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1438 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1439 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1440 | |
| 1441 | System types: |
| 1442 | --build=BUILD configure for building on BUILD [guessed] |
| 1443 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1444 | _ACEOF |
| 1445 | fi |
| 1446 | |
| 1447 | if test -n "$ac_init_help"; then |
| 1448 | case $ac_init_help in |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame^] | 1449 | short | recursive ) echo "Configuration of breakpad 0.1:";; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1450 | esac |
| 1451 | cat <<\_ACEOF |
| 1452 | |
| 1453 | Optional Features: |
| 1454 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1455 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1456 | --disable-dependency-tracking speeds up one-time build |
| 1457 | --enable-dependency-tracking do not reject slow dependency extractors |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1458 | --enable-shared[=PKGS] build shared libraries [default=yes] |
| 1459 | --enable-static[=PKGS] build static libraries [default=yes] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1460 | --enable-fast-install[=PKGS] |
| 1461 | optimize for fast installation [default=yes] |
| 1462 | --disable-libtool-lock avoid locking (might break parallel builds) |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 1463 | --enable-selftest Run extra tests with "make check" (may conflict with |
| 1464 | optimizations) (default is no) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1465 | |
| 1466 | Optional Packages: |
| 1467 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1468 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1469 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1470 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1471 | both] |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1472 | --with-tags[=TAGS] include additional configurations [automatic] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1473 | |
| 1474 | Some influential environment variables: |
| 1475 | CC C compiler command |
| 1476 | CFLAGS C compiler flags |
| 1477 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1478 | nonstandard directory <lib dir> |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1479 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1480 | you have headers in a nonstandard directory <include dir> |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1481 | CPP C preprocessor |
| 1482 | CXX C++ compiler command |
| 1483 | CXXFLAGS C++ compiler flags |
| 1484 | CXXCPP C++ preprocessor |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1485 | F77 Fortran 77 compiler command |
| 1486 | FFLAGS Fortran 77 compiler flags |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1487 | |
| 1488 | Use these variables to override the choices made by `configure' or to help |
| 1489 | it to find libraries and programs with nonstandard names/locations. |
| 1490 | |
| 1491 | Report bugs to <opensource@google.com>. |
| 1492 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1493 | ac_status=$? |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1494 | fi |
| 1495 | |
| 1496 | if test "$ac_init_help" = "recursive"; then |
| 1497 | # If there are subdirs, report their specific --help. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1498 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1499 | test -d "$ac_dir" || continue |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1500 | ac_builddir=. |
| 1501 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1502 | case "$ac_dir" in |
| 1503 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1504 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1505 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1506 | # A ".." for each directory in $ac_dir_suffix. |
| 1507 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1508 | case $ac_top_builddir_sub in |
| 1509 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1510 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1511 | esac ;; |
| 1512 | esac |
| 1513 | ac_abs_top_builddir=$ac_pwd |
| 1514 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1515 | # for backward compatibility: |
| 1516 | ac_top_builddir=$ac_top_build_prefix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1517 | |
| 1518 | case $srcdir in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1519 | .) # We are building in place. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1520 | ac_srcdir=. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1521 | ac_top_srcdir=$ac_top_builddir_sub |
| 1522 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1523 | [\\/]* | ?:[\\/]* ) # Absolute name. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1524 | ac_srcdir=$srcdir$ac_dir_suffix; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1525 | ac_top_srcdir=$srcdir |
| 1526 | ac_abs_top_srcdir=$srcdir ;; |
| 1527 | *) # Relative name. |
| 1528 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1529 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1530 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1531 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1532 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1533 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1534 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1535 | # Check for guested configure. |
| 1536 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1537 | echo && |
| 1538 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1539 | elif test -f "$ac_srcdir/configure"; then |
| 1540 | echo && |
| 1541 | $SHELL "$ac_srcdir/configure" --help=recursive |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1542 | else |
| 1543 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1544 | fi || ac_status=$? |
| 1545 | cd "$ac_pwd" || { ac_status=$?; break; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1546 | done |
| 1547 | fi |
| 1548 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1549 | test -n "$ac_init_help" && exit $ac_status |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1550 | if $ac_init_version; then |
| 1551 | cat <<\_ACEOF |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame^] | 1552 | breakpad configure 0.1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1553 | generated by GNU Autoconf 2.60 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1554 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1555 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1556 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1557 | This configure script is free software; the Free Software Foundation |
| 1558 | gives unlimited permission to copy, distribute and modify it. |
| 1559 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1560 | exit |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1561 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1562 | cat >config.log <<_ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1563 | This file contains any messages produced by compilers while |
| 1564 | running configure, to aid debugging if configure makes a mistake. |
| 1565 | |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame^] | 1566 | It was created by breakpad $as_me 0.1, which was |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1567 | generated by GNU Autoconf 2.60. Invocation command line was |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1568 | |
| 1569 | $ $0 $@ |
| 1570 | |
| 1571 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1572 | exec 5>>config.log |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1573 | { |
| 1574 | cat <<_ASUNAME |
| 1575 | ## --------- ## |
| 1576 | ## Platform. ## |
| 1577 | ## --------- ## |
| 1578 | |
| 1579 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1580 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1581 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1582 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1583 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1584 | |
| 1585 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1586 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1587 | |
| 1588 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1589 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1590 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1591 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1592 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1593 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1594 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1595 | |
| 1596 | _ASUNAME |
| 1597 | |
| 1598 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1599 | for as_dir in $PATH |
| 1600 | do |
| 1601 | IFS=$as_save_IFS |
| 1602 | test -z "$as_dir" && as_dir=. |
| 1603 | echo "PATH: $as_dir" |
| 1604 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1605 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1606 | |
| 1607 | } >&5 |
| 1608 | |
| 1609 | cat >&5 <<_ACEOF |
| 1610 | |
| 1611 | |
| 1612 | ## ----------- ## |
| 1613 | ## Core tests. ## |
| 1614 | ## ----------- ## |
| 1615 | |
| 1616 | _ACEOF |
| 1617 | |
| 1618 | |
| 1619 | # Keep a trace of the command line. |
| 1620 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1621 | # Strip out --silent because we don't want to record it for future runs. |
| 1622 | # Also quote any args containing shell meta-characters. |
| 1623 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1624 | ac_configure_args= |
| 1625 | ac_configure_args0= |
| 1626 | ac_configure_args1= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1627 | ac_must_keep_next=false |
| 1628 | for ac_pass in 1 2 |
| 1629 | do |
| 1630 | for ac_arg |
| 1631 | do |
| 1632 | case $ac_arg in |
| 1633 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1634 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1635 | | -silent | --silent | --silen | --sile | --sil) |
| 1636 | continue ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1637 | *\'*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1638 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1639 | esac |
| 1640 | case $ac_pass in |
| 1641 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1642 | 2) |
| 1643 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1644 | if test $ac_must_keep_next = true; then |
| 1645 | ac_must_keep_next=false # Got value, back to normal. |
| 1646 | else |
| 1647 | case $ac_arg in |
| 1648 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1649 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1650 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1651 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1652 | case "$ac_configure_args0 " in |
| 1653 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1654 | esac |
| 1655 | ;; |
| 1656 | -* ) ac_must_keep_next=true ;; |
| 1657 | esac |
| 1658 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1659 | ac_configure_args="$ac_configure_args '$ac_arg'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1660 | ;; |
| 1661 | esac |
| 1662 | done |
| 1663 | done |
| 1664 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1665 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1666 | |
| 1667 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1668 | # config.log. We remove comments because anyway the quotes in there |
| 1669 | # would cause problems or look ugly. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1670 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1671 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1672 | trap 'exit_status=$? |
| 1673 | # Save into config.log some information that might help in debugging. |
| 1674 | { |
| 1675 | echo |
| 1676 | |
| 1677 | cat <<\_ASBOX |
| 1678 | ## ---------------- ## |
| 1679 | ## Cache variables. ## |
| 1680 | ## ---------------- ## |
| 1681 | _ASBOX |
| 1682 | echo |
| 1683 | # The following way of writing the cache mishandles newlines in values, |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1684 | ( |
| 1685 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1686 | eval ac_val=\$$ac_var |
| 1687 | case $ac_val in #( |
| 1688 | *${as_nl}*) |
| 1689 | case $ac_var in #( |
| 1690 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1691 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1692 | esac |
| 1693 | case $ac_var in #( |
| 1694 | _ | IFS | as_nl) ;; #( |
| 1695 | *) $as_unset $ac_var ;; |
| 1696 | esac ;; |
| 1697 | esac |
| 1698 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1699 | (set) 2>&1 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1700 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1701 | *${as_nl}ac_space=\ *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1702 | sed -n \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1703 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1704 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1705 | ;; #( |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1706 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1707 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1708 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1709 | esac | |
| 1710 | sort |
| 1711 | ) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1712 | echo |
| 1713 | |
| 1714 | cat <<\_ASBOX |
| 1715 | ## ----------------- ## |
| 1716 | ## Output variables. ## |
| 1717 | ## ----------------- ## |
| 1718 | _ASBOX |
| 1719 | echo |
| 1720 | for ac_var in $ac_subst_vars |
| 1721 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1722 | eval ac_val=\$$ac_var |
| 1723 | case $ac_val in |
| 1724 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1725 | esac |
| 1726 | echo "$ac_var='\''$ac_val'\''" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1727 | done | sort |
| 1728 | echo |
| 1729 | |
| 1730 | if test -n "$ac_subst_files"; then |
| 1731 | cat <<\_ASBOX |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1732 | ## ------------------- ## |
| 1733 | ## File substitutions. ## |
| 1734 | ## ------------------- ## |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1735 | _ASBOX |
| 1736 | echo |
| 1737 | for ac_var in $ac_subst_files |
| 1738 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1739 | eval ac_val=\$$ac_var |
| 1740 | case $ac_val in |
| 1741 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1742 | esac |
| 1743 | echo "$ac_var='\''$ac_val'\''" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1744 | done | sort |
| 1745 | echo |
| 1746 | fi |
| 1747 | |
| 1748 | if test -s confdefs.h; then |
| 1749 | cat <<\_ASBOX |
| 1750 | ## ----------- ## |
| 1751 | ## confdefs.h. ## |
| 1752 | ## ----------- ## |
| 1753 | _ASBOX |
| 1754 | echo |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1755 | cat confdefs.h |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1756 | echo |
| 1757 | fi |
| 1758 | test "$ac_signal" != 0 && |
| 1759 | echo "$as_me: caught signal $ac_signal" |
| 1760 | echo "$as_me: exit $exit_status" |
| 1761 | } >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1762 | rm -f core *.core core.conftest.* && |
| 1763 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1764 | exit $exit_status |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1765 | ' 0 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1766 | for ac_signal in 1 2 13 15; do |
| 1767 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1768 | done |
| 1769 | ac_signal=0 |
| 1770 | |
| 1771 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1772 | rm -f -r conftest* confdefs.h |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1773 | |
| 1774 | # Predefined preprocessor variables. |
| 1775 | |
| 1776 | cat >>confdefs.h <<_ACEOF |
| 1777 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1778 | _ACEOF |
| 1779 | |
| 1780 | |
| 1781 | cat >>confdefs.h <<_ACEOF |
| 1782 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1783 | _ACEOF |
| 1784 | |
| 1785 | |
| 1786 | cat >>confdefs.h <<_ACEOF |
| 1787 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1788 | _ACEOF |
| 1789 | |
| 1790 | |
| 1791 | cat >>confdefs.h <<_ACEOF |
| 1792 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1793 | _ACEOF |
| 1794 | |
| 1795 | |
| 1796 | cat >>confdefs.h <<_ACEOF |
| 1797 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1798 | _ACEOF |
| 1799 | |
| 1800 | |
| 1801 | # Let the site file select an alternate cache file if it wants to. |
| 1802 | # Prefer explicitly selected file to automatically selected ones. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1803 | if test -n "$CONFIG_SITE"; then |
| 1804 | set x "$CONFIG_SITE" |
| 1805 | elif test "x$prefix" != xNONE; then |
| 1806 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1807 | else |
| 1808 | set x "$ac_default_prefix/share/config.site" \ |
| 1809 | "$ac_default_prefix/etc/config.site" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1810 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1811 | shift |
| 1812 | for ac_site_file |
| 1813 | do |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1814 | if test -r "$ac_site_file"; then |
| 1815 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1816 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1817 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1818 | . "$ac_site_file" |
| 1819 | fi |
| 1820 | done |
| 1821 | |
| 1822 | if test -r "$cache_file"; then |
| 1823 | # Some versions of bash will fail to source /dev/null (special |
| 1824 | # files actually), so we avoid doing that. |
| 1825 | if test -f "$cache_file"; then |
| 1826 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1827 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1828 | case $cache_file in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1829 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1830 | *) . "./$cache_file";; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1831 | esac |
| 1832 | fi |
| 1833 | else |
| 1834 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1835 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1836 | >$cache_file |
| 1837 | fi |
| 1838 | |
| 1839 | # Check that the precious variables saved in the cache have kept the same |
| 1840 | # value. |
| 1841 | ac_cache_corrupted=false |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1842 | for ac_var in $ac_precious_vars; do |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1843 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1844 | eval ac_new_set=\$ac_env_${ac_var}_set |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1845 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1846 | eval ac_new_val=\$ac_env_${ac_var}_value |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1847 | case $ac_old_set,$ac_new_set in |
| 1848 | set,) |
| 1849 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1850 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1851 | ac_cache_corrupted=: ;; |
| 1852 | ,set) |
| 1853 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1854 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1855 | ac_cache_corrupted=: ;; |
| 1856 | ,);; |
| 1857 | *) |
| 1858 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1859 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1860 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1861 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1862 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1863 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1864 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1865 | ac_cache_corrupted=: |
| 1866 | fi;; |
| 1867 | esac |
| 1868 | # Pass precious variables to config.status. |
| 1869 | if test "$ac_new_set" = set; then |
| 1870 | case $ac_new_val in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1871 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1872 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1873 | esac |
| 1874 | case " $ac_configure_args " in |
| 1875 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1876 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1877 | esac |
| 1878 | fi |
| 1879 | done |
| 1880 | if $ac_cache_corrupted; then |
| 1881 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1882 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1883 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1884 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1885 | { (exit 1); exit 1; }; } |
| 1886 | fi |
| 1887 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1888 | |
| 1889 | |
| 1890 | |
| 1891 | |
| 1892 | |
| 1893 | |
| 1894 | |
| 1895 | |
| 1896 | |
| 1897 | |
| 1898 | |
| 1899 | |
| 1900 | |
| 1901 | |
| 1902 | |
| 1903 | |
| 1904 | |
| 1905 | |
| 1906 | |
| 1907 | |
| 1908 | |
| 1909 | |
| 1910 | |
| 1911 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1912 | ac_ext=c |
| 1913 | ac_cpp='$CPP $CPPFLAGS' |
| 1914 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1915 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1916 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1917 | |
| 1918 | |
| 1919 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1920 | ac_aux_dir= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1921 | for ac_dir in autotools "$srcdir"/autotools; do |
| 1922 | if test -f "$ac_dir/install-sh"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1923 | ac_aux_dir=$ac_dir |
| 1924 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1925 | break |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1926 | elif test -f "$ac_dir/install.sh"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1927 | ac_aux_dir=$ac_dir |
| 1928 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1929 | break |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1930 | elif test -f "$ac_dir/shtool"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1931 | ac_aux_dir=$ac_dir |
| 1932 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1933 | break |
| 1934 | fi |
| 1935 | done |
| 1936 | if test -z "$ac_aux_dir"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1937 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autotools \"$srcdir\"/autotools" >&5 |
| 1938 | echo "$as_me: error: cannot find install-sh or install.sh in autotools \"$srcdir\"/autotools" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1939 | { (exit 1); exit 1; }; } |
| 1940 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1941 | |
| 1942 | # These three variables are undocumented and unsupported, |
| 1943 | # and are intended to be withdrawn in a future Autoconf release. |
| 1944 | # They can cause serious problems if a builder's source tree is in a directory |
| 1945 | # whose full name contains unusual characters. |
| 1946 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1947 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1948 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1949 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1950 | |
mmentovai | 425d256 | 2006-08-30 20:05:05 +0000 | [diff] [blame] | 1951 | |
| 1952 | am__api_version="1.9" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1953 | # Find a good install program. We prefer a C program (faster), |
| 1954 | # so one script is as good as another. But avoid the broken or |
| 1955 | # incompatible versions: |
| 1956 | # SysV /etc/install, /usr/sbin/install |
| 1957 | # SunOS /usr/etc/install |
| 1958 | # IRIX /sbin/install |
| 1959 | # AIX /bin/install |
| 1960 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 1961 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 1962 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1963 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1964 | # OS/2's system install, which has a completely different semantic |
| 1965 | # ./install, which can be erroneously created by make from ./install.sh. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1966 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 1967 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1968 | if test -z "$INSTALL"; then |
| 1969 | if test "${ac_cv_path_install+set}" = set; then |
| 1970 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1971 | else |
| 1972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1973 | for as_dir in $PATH |
| 1974 | do |
| 1975 | IFS=$as_save_IFS |
| 1976 | test -z "$as_dir" && as_dir=. |
| 1977 | # Account for people who put trailing slashes in PATH elements. |
| 1978 | case $as_dir/ in |
| 1979 | ./ | .// | /cC/* | \ |
| 1980 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 1981 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 1982 | /usr/ucb/* ) ;; |
| 1983 | *) |
| 1984 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 1985 | # Don't use installbsd from OSF since it installs stuff as root |
| 1986 | # by default. |
| 1987 | for ac_prog in ginstall scoinst install; do |
| 1988 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1989 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1990 | if test $ac_prog = install && |
| 1991 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1992 | # AIX install. It has an incompatible calling convention. |
| 1993 | : |
| 1994 | elif test $ac_prog = install && |
| 1995 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1996 | # program-specific install script used by HP pwplus--don't use. |
| 1997 | : |
| 1998 | else |
| 1999 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 2000 | break 3 |
| 2001 | fi |
| 2002 | fi |
| 2003 | done |
| 2004 | done |
| 2005 | ;; |
| 2006 | esac |
| 2007 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2008 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2009 | |
| 2010 | |
| 2011 | fi |
| 2012 | if test "${ac_cv_path_install+set}" = set; then |
| 2013 | INSTALL=$ac_cv_path_install |
| 2014 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2015 | # As a last resort, use the slow shell script. Don't cache a |
| 2016 | # value for INSTALL within a source directory, because that will |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2017 | # break other packages using the cache if that directory is |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2018 | # removed, or if the value is a relative name. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2019 | INSTALL=$ac_install_sh |
| 2020 | fi |
| 2021 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2022 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 2023 | echo "${ECHO_T}$INSTALL" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2024 | |
| 2025 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2026 | # It thinks the first close brace ends the variable substitution. |
| 2027 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2028 | |
| 2029 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 2030 | |
| 2031 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2032 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2033 | { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
| 2034 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2035 | # Just in case |
| 2036 | sleep 1 |
| 2037 | echo timestamp > conftest.file |
| 2038 | # Do `set' in a subshell so we don't clobber the current shell's |
| 2039 | # arguments. Must try -L first in case configure is actually a |
| 2040 | # symlink; some systems play weird games with the mod time of symlinks |
| 2041 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 2042 | # directory). |
| 2043 | if ( |
| 2044 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
| 2045 | if test "$*" = "X"; then |
| 2046 | # -L didn't work. |
| 2047 | set X `ls -t $srcdir/configure conftest.file` |
| 2048 | fi |
| 2049 | rm -f conftest.file |
| 2050 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 2051 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 2052 | |
| 2053 | # If neither matched, then we have a broken ls. This can happen |
| 2054 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 2055 | # broken ls alias from the environment. This has actually |
| 2056 | # happened. Such a system could not be considered "sane". |
| 2057 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
| 2058 | alias in your environment" >&5 |
| 2059 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
| 2060 | alias in your environment" >&2;} |
| 2061 | { (exit 1); exit 1; }; } |
| 2062 | fi |
| 2063 | |
| 2064 | test "$2" = conftest.file |
| 2065 | ) |
| 2066 | then |
| 2067 | # Ok. |
| 2068 | : |
| 2069 | else |
| 2070 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
| 2071 | Check your system clock" >&5 |
| 2072 | echo "$as_me: error: newly created file is older than distributed files! |
| 2073 | Check your system clock" >&2;} |
| 2074 | { (exit 1); exit 1; }; } |
| 2075 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2076 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2077 | echo "${ECHO_T}yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2078 | test "$program_prefix" != NONE && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2079 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2080 | # Use a double $ so make ignores it. |
| 2081 | test "$program_suffix" != NONE && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2082 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2083 | # Double any \ or $. echo might interpret backslashes. |
| 2084 | # By default was `s,x,x', remove it if useless. |
| 2085 | cat <<\_ACEOF >conftest.sed |
| 2086 | s/[\\$]/&&/g;s/;s,x,x,$// |
| 2087 | _ACEOF |
| 2088 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2089 | rm -f conftest.sed |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2090 | |
| 2091 | # expand $ac_aux_dir to an absolute path |
| 2092 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 2093 | |
| 2094 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
| 2095 | # Use eval to expand $SHELL |
| 2096 | if eval "$MISSING --run true"; then |
| 2097 | am_missing_run="$MISSING --run " |
| 2098 | else |
| 2099 | am_missing_run= |
| 2100 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
| 2101 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
| 2102 | fi |
| 2103 | |
| 2104 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
| 2105 | # We used to keeping the `.' as first argument, in order to |
| 2106 | # allow $(mkdir_p) to be used without argument. As in |
| 2107 | # $(mkdir_p) $(somedir) |
| 2108 | # where $(somedir) is conditionally defined. However this is wrong |
| 2109 | # for two reasons: |
| 2110 | # 1. if the package is installed by a user who cannot write `.' |
| 2111 | # make install will fail, |
| 2112 | # 2. the above comment should most certainly read |
| 2113 | # $(mkdir_p) $(DESTDIR)$(somedir) |
| 2114 | # so it does not work when $(somedir) is undefined and |
| 2115 | # $(DESTDIR) is not. |
| 2116 | # To support the latter case, we have to write |
| 2117 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), |
| 2118 | # so the `.' trick is pointless. |
| 2119 | mkdir_p='mkdir -p --' |
| 2120 | else |
| 2121 | # On NextStep and OpenStep, the `mkdir' command does not |
| 2122 | # recognize any option. It will interpret all options as |
| 2123 | # directories to create, and then abort because `.' already |
| 2124 | # exists. |
| 2125 | for d in ./-p ./--version; |
| 2126 | do |
| 2127 | test -d $d && rmdir $d |
| 2128 | done |
| 2129 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
| 2130 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
| 2131 | mkdir_p='$(mkinstalldirs)' |
| 2132 | else |
| 2133 | mkdir_p='$(install_sh) -d' |
| 2134 | fi |
| 2135 | fi |
| 2136 | |
| 2137 | for ac_prog in gawk mawk nawk awk |
| 2138 | do |
| 2139 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2140 | set dummy $ac_prog; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2141 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2142 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2143 | if test "${ac_cv_prog_AWK+set}" = set; then |
| 2144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2145 | else |
| 2146 | if test -n "$AWK"; then |
| 2147 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 2148 | else |
| 2149 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2150 | for as_dir in $PATH |
| 2151 | do |
| 2152 | IFS=$as_save_IFS |
| 2153 | test -z "$as_dir" && as_dir=. |
| 2154 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2155 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2156 | ac_cv_prog_AWK="$ac_prog" |
| 2157 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2158 | break 2 |
| 2159 | fi |
| 2160 | done |
| 2161 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2162 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2163 | |
| 2164 | fi |
| 2165 | fi |
| 2166 | AWK=$ac_cv_prog_AWK |
| 2167 | if test -n "$AWK"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2168 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
| 2169 | echo "${ECHO_T}$AWK" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2170 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2171 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2172 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2173 | fi |
| 2174 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2175 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2176 | test -n "$AWK" && break |
| 2177 | done |
| 2178 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2179 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 2180 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
| 2181 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 2182 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2183 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2184 | else |
| 2185 | cat >conftest.make <<\_ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2186 | SHELL = /bin/sh |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2187 | all: |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2188 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2189 | _ACEOF |
| 2190 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2191 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 2192 | *@@@%%%=?*=@@@%%%*) |
| 2193 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 2194 | *) |
| 2195 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 2196 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2197 | rm -f conftest.make |
| 2198 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2199 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 2200 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2201 | echo "${ECHO_T}yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2202 | SET_MAKE= |
| 2203 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2204 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2205 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2206 | SET_MAKE="MAKE=${MAKE-make}" |
| 2207 | fi |
| 2208 | |
| 2209 | rm -rf .tst 2>/dev/null |
| 2210 | mkdir .tst 2>/dev/null |
| 2211 | if test -d .tst; then |
| 2212 | am__leading_dot=. |
| 2213 | else |
| 2214 | am__leading_dot=_ |
| 2215 | fi |
| 2216 | rmdir .tst 2>/dev/null |
| 2217 | |
| 2218 | # test to see if srcdir already configured |
| 2219 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
| 2220 | test -f $srcdir/config.status; then |
| 2221 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
| 2222 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
| 2223 | { (exit 1); exit 1; }; } |
| 2224 | fi |
| 2225 | |
| 2226 | # test whether we have cygpath |
| 2227 | if test -z "$CYGPATH_W"; then |
| 2228 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 2229 | CYGPATH_W='cygpath -w' |
| 2230 | else |
| 2231 | CYGPATH_W=echo |
| 2232 | fi |
| 2233 | fi |
| 2234 | |
| 2235 | |
| 2236 | # Define the identity of the package. |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame^] | 2237 | PACKAGE='breakpad' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2238 | VERSION='0.1' |
| 2239 | |
| 2240 | |
| 2241 | cat >>confdefs.h <<_ACEOF |
| 2242 | #define PACKAGE "$PACKAGE" |
| 2243 | _ACEOF |
| 2244 | |
| 2245 | |
| 2246 | cat >>confdefs.h <<_ACEOF |
| 2247 | #define VERSION "$VERSION" |
| 2248 | _ACEOF |
| 2249 | |
| 2250 | # Some tools Automake needs. |
| 2251 | |
| 2252 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 2253 | |
| 2254 | |
| 2255 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 2256 | |
| 2257 | |
| 2258 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 2259 | |
| 2260 | |
| 2261 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 2262 | |
| 2263 | |
| 2264 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 2265 | |
| 2266 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
| 2267 | |
| 2268 | # Installed binaries are usually stripped using `strip' when the user |
| 2269 | # run `make install-strip'. However `strip' might not be the right |
| 2270 | # tool to use in cross-compilation environments, therefore Automake |
| 2271 | # will honor the `STRIP' environment variable to overrule this program. |
| 2272 | if test "$cross_compiling" != no; then |
| 2273 | if test -n "$ac_tool_prefix"; then |
| 2274 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 2275 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2276 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2277 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2278 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 2279 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2280 | else |
| 2281 | if test -n "$STRIP"; then |
| 2282 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2283 | else |
| 2284 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2285 | for as_dir in $PATH |
| 2286 | do |
| 2287 | IFS=$as_save_IFS |
| 2288 | test -z "$as_dir" && as_dir=. |
| 2289 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2290 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2291 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 2292 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2293 | break 2 |
| 2294 | fi |
| 2295 | done |
| 2296 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2297 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2298 | |
| 2299 | fi |
| 2300 | fi |
| 2301 | STRIP=$ac_cv_prog_STRIP |
| 2302 | if test -n "$STRIP"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2303 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 2304 | echo "${ECHO_T}$STRIP" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2305 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2306 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2307 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2308 | fi |
| 2309 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2310 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2311 | fi |
| 2312 | if test -z "$ac_cv_prog_STRIP"; then |
| 2313 | ac_ct_STRIP=$STRIP |
| 2314 | # Extract the first word of "strip", so it can be a program name with args. |
| 2315 | set dummy strip; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2316 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2317 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2318 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 2319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2320 | else |
| 2321 | if test -n "$ac_ct_STRIP"; then |
| 2322 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 2323 | else |
| 2324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2325 | for as_dir in $PATH |
| 2326 | do |
| 2327 | IFS=$as_save_IFS |
| 2328 | test -z "$as_dir" && as_dir=. |
| 2329 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2330 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2331 | ac_cv_prog_ac_ct_STRIP="strip" |
| 2332 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2333 | break 2 |
| 2334 | fi |
| 2335 | done |
| 2336 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2337 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2338 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2339 | fi |
| 2340 | fi |
| 2341 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 2342 | if test -n "$ac_ct_STRIP"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2343 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 2344 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2345 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2346 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2347 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2348 | fi |
| 2349 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2350 | if test "x$ac_ct_STRIP" = x; then |
| 2351 | STRIP=":" |
| 2352 | else |
| 2353 | case $cross_compiling:$ac_tool_warned in |
| 2354 | yes:) |
| 2355 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2356 | whose name does not start with the host triplet. If you think this |
| 2357 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2358 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2359 | whose name does not start with the host triplet. If you think this |
| 2360 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2361 | ac_tool_warned=yes ;; |
| 2362 | esac |
| 2363 | STRIP=$ac_ct_STRIP |
| 2364 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2365 | else |
| 2366 | STRIP="$ac_cv_prog_STRIP" |
| 2367 | fi |
| 2368 | |
| 2369 | fi |
| 2370 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
| 2371 | |
| 2372 | # We need awk for the "check" target. The system "awk" is bad on |
| 2373 | # some platforms. |
| 2374 | # Always define AMTAR for backward compatibility. |
| 2375 | |
| 2376 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 2377 | |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 2378 | |
| 2379 | { echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5 |
| 2380 | echo $ECHO_N "checking how to create a ustar tar archive... $ECHO_C" >&6; } |
| 2381 | # Loop over all known methods to create a tar archive until one works. |
| 2382 | _am_tools='gnutar plaintar pax cpio none' |
| 2383 | _am_tools=${am_cv_prog_tar_ustar-$_am_tools} |
| 2384 | # Do not fold the above two line into one, because Tru64 sh and |
| 2385 | # Solaris sh will not grok spaces in the rhs of `-'. |
| 2386 | for _am_tool in $_am_tools |
| 2387 | do |
| 2388 | case $_am_tool in |
| 2389 | gnutar) |
| 2390 | for _am_tar in tar gnutar gtar; |
| 2391 | do |
| 2392 | { echo "$as_me:$LINENO: $_am_tar --version" >&5 |
| 2393 | ($_am_tar --version) >&5 2>&5 |
| 2394 | ac_status=$? |
| 2395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2396 | (exit $ac_status); } && break |
| 2397 | done |
| 2398 | am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' |
| 2399 | am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' |
| 2400 | am__untar="$_am_tar -xf -" |
| 2401 | ;; |
| 2402 | plaintar) |
| 2403 | # Must skip GNU tar: if it does not support --format= it doesn't create |
| 2404 | # ustar tarball either. |
| 2405 | (tar --version) >/dev/null 2>&1 && continue |
| 2406 | am__tar='tar chf - "$$tardir"' |
| 2407 | am__tar_='tar chf - "$tardir"' |
| 2408 | am__untar='tar xf -' |
| 2409 | ;; |
| 2410 | pax) |
| 2411 | am__tar='pax -L -x ustar -w "$$tardir"' |
| 2412 | am__tar_='pax -L -x ustar -w "$tardir"' |
| 2413 | am__untar='pax -r' |
| 2414 | ;; |
| 2415 | cpio) |
| 2416 | am__tar='find "$$tardir" -print | cpio -o -H ustar -L' |
| 2417 | am__tar_='find "$tardir" -print | cpio -o -H ustar -L' |
| 2418 | am__untar='cpio -i -H ustar -d' |
| 2419 | ;; |
| 2420 | none) |
| 2421 | am__tar=false |
| 2422 | am__tar_=false |
| 2423 | am__untar=false |
| 2424 | ;; |
| 2425 | esac |
| 2426 | |
| 2427 | # If the value was cached, stop now. We just wanted to have am__tar |
| 2428 | # and am__untar set. |
| 2429 | test -n "${am_cv_prog_tar_ustar}" && break |
| 2430 | |
| 2431 | # tar/untar a dummy directory, and stop if the command works |
| 2432 | rm -rf conftest.dir |
| 2433 | mkdir conftest.dir |
| 2434 | echo GrepMe > conftest.dir/file |
| 2435 | { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 |
| 2436 | (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 |
| 2437 | ac_status=$? |
| 2438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2439 | (exit $ac_status); } |
| 2440 | rm -rf conftest.dir |
| 2441 | if test -s conftest.tar; then |
| 2442 | { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 |
| 2443 | ($am__untar <conftest.tar) >&5 2>&5 |
| 2444 | ac_status=$? |
| 2445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2446 | (exit $ac_status); } |
| 2447 | grep GrepMe conftest.dir/file >/dev/null 2>&1 && break |
| 2448 | fi |
| 2449 | done |
| 2450 | rm -rf conftest.dir |
| 2451 | |
| 2452 | if test "${am_cv_prog_tar_ustar+set}" = set; then |
| 2453 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2454 | else |
| 2455 | am_cv_prog_tar_ustar=$_am_tool |
| 2456 | fi |
| 2457 | |
| 2458 | { echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5 |
| 2459 | echo "${ECHO_T}$am_cv_prog_tar_ustar" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2460 | |
| 2461 | |
| 2462 | |
| 2463 | |
| 2464 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2465 | ac_config_headers="$ac_config_headers src/config.h" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2466 | |
| 2467 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2468 | ac_ext=c |
| 2469 | ac_cpp='$CPP $CPPFLAGS' |
| 2470 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2471 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2472 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2473 | if test -n "$ac_tool_prefix"; then |
| 2474 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2475 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2476 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2477 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2478 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2479 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2480 | else |
| 2481 | if test -n "$CC"; then |
| 2482 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2483 | else |
| 2484 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2485 | for as_dir in $PATH |
| 2486 | do |
| 2487 | IFS=$as_save_IFS |
| 2488 | test -z "$as_dir" && as_dir=. |
| 2489 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2490 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2491 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2492 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2493 | break 2 |
| 2494 | fi |
| 2495 | done |
| 2496 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2497 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2498 | |
| 2499 | fi |
| 2500 | fi |
| 2501 | CC=$ac_cv_prog_CC |
| 2502 | if test -n "$CC"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2503 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2504 | echo "${ECHO_T}$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2505 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2506 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2507 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2508 | fi |
| 2509 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2510 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2511 | fi |
| 2512 | if test -z "$ac_cv_prog_CC"; then |
| 2513 | ac_ct_CC=$CC |
| 2514 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2515 | set dummy gcc; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2516 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2517 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2518 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2519 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2520 | else |
| 2521 | if test -n "$ac_ct_CC"; then |
| 2522 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2523 | else |
| 2524 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2525 | for as_dir in $PATH |
| 2526 | do |
| 2527 | IFS=$as_save_IFS |
| 2528 | test -z "$as_dir" && as_dir=. |
| 2529 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2530 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2531 | ac_cv_prog_ac_ct_CC="gcc" |
| 2532 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2533 | break 2 |
| 2534 | fi |
| 2535 | done |
| 2536 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2537 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2538 | |
| 2539 | fi |
| 2540 | fi |
| 2541 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2542 | if test -n "$ac_ct_CC"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2543 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2544 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2545 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2546 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2547 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2548 | fi |
| 2549 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2550 | if test "x$ac_ct_CC" = x; then |
| 2551 | CC="" |
| 2552 | else |
| 2553 | case $cross_compiling:$ac_tool_warned in |
| 2554 | yes:) |
| 2555 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2556 | whose name does not start with the host triplet. If you think this |
| 2557 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2558 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2559 | whose name does not start with the host triplet. If you think this |
| 2560 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2561 | ac_tool_warned=yes ;; |
| 2562 | esac |
| 2563 | CC=$ac_ct_CC |
| 2564 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2565 | else |
| 2566 | CC="$ac_cv_prog_CC" |
| 2567 | fi |
| 2568 | |
| 2569 | if test -z "$CC"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2570 | if test -n "$ac_tool_prefix"; then |
| 2571 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2572 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2573 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2574 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2575 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2576 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2577 | else |
| 2578 | if test -n "$CC"; then |
| 2579 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2580 | else |
| 2581 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2582 | for as_dir in $PATH |
| 2583 | do |
| 2584 | IFS=$as_save_IFS |
| 2585 | test -z "$as_dir" && as_dir=. |
| 2586 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2587 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2588 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2589 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2590 | break 2 |
| 2591 | fi |
| 2592 | done |
| 2593 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2594 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2595 | |
| 2596 | fi |
| 2597 | fi |
| 2598 | CC=$ac_cv_prog_CC |
| 2599 | if test -n "$CC"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2600 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2601 | echo "${ECHO_T}$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2602 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2603 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2604 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2605 | fi |
| 2606 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2607 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2608 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2609 | fi |
| 2610 | if test -z "$CC"; then |
| 2611 | # Extract the first word of "cc", so it can be a program name with args. |
| 2612 | set dummy cc; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2613 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2614 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2615 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2616 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2617 | else |
| 2618 | if test -n "$CC"; then |
| 2619 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2620 | else |
| 2621 | ac_prog_rejected=no |
| 2622 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2623 | for as_dir in $PATH |
| 2624 | do |
| 2625 | IFS=$as_save_IFS |
| 2626 | test -z "$as_dir" && as_dir=. |
| 2627 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2628 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2629 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2630 | ac_prog_rejected=yes |
| 2631 | continue |
| 2632 | fi |
| 2633 | ac_cv_prog_CC="cc" |
| 2634 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2635 | break 2 |
| 2636 | fi |
| 2637 | done |
| 2638 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2639 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2640 | |
| 2641 | if test $ac_prog_rejected = yes; then |
| 2642 | # We found a bogon in the path, so make sure we never use it. |
| 2643 | set dummy $ac_cv_prog_CC |
| 2644 | shift |
| 2645 | if test $# != 0; then |
| 2646 | # We chose a different compiler from the bogus one. |
| 2647 | # However, it has the same basename, so the bogon will be chosen |
| 2648 | # first if we set CC to just the basename; use the full file name. |
| 2649 | shift |
| 2650 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2651 | fi |
| 2652 | fi |
| 2653 | fi |
| 2654 | fi |
| 2655 | CC=$ac_cv_prog_CC |
| 2656 | if test -n "$CC"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2657 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2658 | echo "${ECHO_T}$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2659 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2660 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2661 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2662 | fi |
| 2663 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2664 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2665 | fi |
| 2666 | if test -z "$CC"; then |
| 2667 | if test -n "$ac_tool_prefix"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2668 | for ac_prog in cl.exe |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2669 | do |
| 2670 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2671 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2672 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2673 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2674 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2676 | else |
| 2677 | if test -n "$CC"; then |
| 2678 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2679 | else |
| 2680 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2681 | for as_dir in $PATH |
| 2682 | do |
| 2683 | IFS=$as_save_IFS |
| 2684 | test -z "$as_dir" && as_dir=. |
| 2685 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2686 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2687 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2688 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2689 | break 2 |
| 2690 | fi |
| 2691 | done |
| 2692 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2693 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2694 | |
| 2695 | fi |
| 2696 | fi |
| 2697 | CC=$ac_cv_prog_CC |
| 2698 | if test -n "$CC"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2699 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2700 | echo "${ECHO_T}$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2701 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2702 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2703 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2704 | fi |
| 2705 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2706 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2707 | test -n "$CC" && break |
| 2708 | done |
| 2709 | fi |
| 2710 | if test -z "$CC"; then |
| 2711 | ac_ct_CC=$CC |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2712 | for ac_prog in cl.exe |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2713 | do |
| 2714 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2715 | set dummy $ac_prog; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2716 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2717 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2718 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2720 | else |
| 2721 | if test -n "$ac_ct_CC"; then |
| 2722 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2723 | else |
| 2724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2725 | for as_dir in $PATH |
| 2726 | do |
| 2727 | IFS=$as_save_IFS |
| 2728 | test -z "$as_dir" && as_dir=. |
| 2729 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2730 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2731 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2732 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2733 | break 2 |
| 2734 | fi |
| 2735 | done |
| 2736 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2737 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2738 | |
| 2739 | fi |
| 2740 | fi |
| 2741 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2742 | if test -n "$ac_ct_CC"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2743 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2744 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2745 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2746 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2747 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2748 | fi |
| 2749 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2750 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2751 | test -n "$ac_ct_CC" && break |
| 2752 | done |
| 2753 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2754 | if test "x$ac_ct_CC" = x; then |
| 2755 | CC="" |
| 2756 | else |
| 2757 | case $cross_compiling:$ac_tool_warned in |
| 2758 | yes:) |
| 2759 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2760 | whose name does not start with the host triplet. If you think this |
| 2761 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2762 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2763 | whose name does not start with the host triplet. If you think this |
| 2764 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2765 | ac_tool_warned=yes ;; |
| 2766 | esac |
| 2767 | CC=$ac_ct_CC |
| 2768 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2769 | fi |
| 2770 | |
| 2771 | fi |
| 2772 | |
| 2773 | |
| 2774 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2775 | See \`config.log' for more details." >&5 |
| 2776 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2777 | See \`config.log' for more details." >&2;} |
| 2778 | { (exit 1); exit 1; }; } |
| 2779 | |
| 2780 | # Provide some information about the compiler. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2781 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2782 | ac_compiler=`set X $ac_compile; echo $2` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2783 | { (ac_try="$ac_compiler --version >&5" |
| 2784 | case "(($ac_try" in |
| 2785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2786 | *) ac_try_echo=$ac_try;; |
| 2787 | esac |
| 2788 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2789 | (eval "$ac_compiler --version >&5") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2790 | ac_status=$? |
| 2791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2792 | (exit $ac_status); } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2793 | { (ac_try="$ac_compiler -v >&5" |
| 2794 | case "(($ac_try" in |
| 2795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2796 | *) ac_try_echo=$ac_try;; |
| 2797 | esac |
| 2798 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2799 | (eval "$ac_compiler -v >&5") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2800 | ac_status=$? |
| 2801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2802 | (exit $ac_status); } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2803 | { (ac_try="$ac_compiler -V >&5" |
| 2804 | case "(($ac_try" in |
| 2805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2806 | *) ac_try_echo=$ac_try;; |
| 2807 | esac |
| 2808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2809 | (eval "$ac_compiler -V >&5") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2810 | ac_status=$? |
| 2811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2812 | (exit $ac_status); } |
| 2813 | |
| 2814 | cat >conftest.$ac_ext <<_ACEOF |
| 2815 | /* confdefs.h. */ |
| 2816 | _ACEOF |
| 2817 | cat confdefs.h >>conftest.$ac_ext |
| 2818 | cat >>conftest.$ac_ext <<_ACEOF |
| 2819 | /* end confdefs.h. */ |
| 2820 | |
| 2821 | int |
| 2822 | main () |
| 2823 | { |
| 2824 | |
| 2825 | ; |
| 2826 | return 0; |
| 2827 | } |
| 2828 | _ACEOF |
| 2829 | ac_clean_files_save=$ac_clean_files |
| 2830 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 2831 | # Try to create an executable without -o first, disregard a.out. |
| 2832 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2833 | # of exeext. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2834 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2835 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2836 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2837 | # |
| 2838 | # List of possible output files, starting from the most likely. |
| 2839 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2840 | # only as a last resort. b.out is created by i960 compilers. |
| 2841 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2842 | # |
| 2843 | # The IRIX 6 linker writes into existing files which may not be |
| 2844 | # executable, retaining their permissions. Remove them first so a |
| 2845 | # subsequent execution test works. |
| 2846 | ac_rmfiles= |
| 2847 | for ac_file in $ac_files |
| 2848 | do |
| 2849 | case $ac_file in |
| 2850 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2851 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2852 | esac |
| 2853 | done |
| 2854 | rm -f $ac_rmfiles |
| 2855 | |
| 2856 | if { (ac_try="$ac_link_default" |
| 2857 | case "(($ac_try" in |
| 2858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2859 | *) ac_try_echo=$ac_try;; |
| 2860 | esac |
| 2861 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2862 | (eval "$ac_link_default") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2863 | ac_status=$? |
| 2864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2865 | (exit $ac_status); }; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2866 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2867 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2868 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2869 | # so that the user can short-circuit this test for compilers unknown to |
| 2870 | # Autoconf. |
| 2871 | for ac_file in $ac_files |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2872 | do |
| 2873 | test -f "$ac_file" || continue |
| 2874 | case $ac_file in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2875 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2876 | ;; |
| 2877 | [ab].out ) |
| 2878 | # We found the default executable, but exeext='' is most |
| 2879 | # certainly right. |
| 2880 | break;; |
| 2881 | *.* ) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2882 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2883 | then :; else |
| 2884 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2885 | fi |
| 2886 | # We set ac_cv_exeext here because the later test for it is not |
| 2887 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2888 | # argument, so we may need to know it at that point already. |
| 2889 | # Even if this section looks crufty: it has the advantage of |
| 2890 | # actually working. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2891 | break;; |
| 2892 | * ) |
| 2893 | break;; |
| 2894 | esac |
| 2895 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2896 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2897 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2898 | else |
| 2899 | echo "$as_me: failed program was:" >&5 |
| 2900 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2901 | |
| 2902 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2903 | See \`config.log' for more details." >&5 |
| 2904 | echo "$as_me: error: C compiler cannot create executables |
| 2905 | See \`config.log' for more details." >&2;} |
| 2906 | { (exit 77); exit 77; }; } |
| 2907 | fi |
| 2908 | |
| 2909 | ac_exeext=$ac_cv_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2910 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2911 | echo "${ECHO_T}$ac_file" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2912 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2913 | # Check that the compiler produces executables we can run. If not, either |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2914 | # the compiler is broken, or we cross compile. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2915 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2916 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2917 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2918 | # If not cross compiling, check that we can run a simple program. |
| 2919 | if test "$cross_compiling" != yes; then |
| 2920 | if { ac_try='./$ac_file' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2921 | { (case "(($ac_try" in |
| 2922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2923 | *) ac_try_echo=$ac_try;; |
| 2924 | esac |
| 2925 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2926 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2927 | ac_status=$? |
| 2928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2929 | (exit $ac_status); }; }; then |
| 2930 | cross_compiling=no |
| 2931 | else |
| 2932 | if test "$cross_compiling" = maybe; then |
| 2933 | cross_compiling=yes |
| 2934 | else |
| 2935 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2936 | If you meant to cross compile, use \`--host'. |
| 2937 | See \`config.log' for more details." >&5 |
| 2938 | echo "$as_me: error: cannot run C compiled programs. |
| 2939 | If you meant to cross compile, use \`--host'. |
| 2940 | See \`config.log' for more details." >&2;} |
| 2941 | { (exit 1); exit 1; }; } |
| 2942 | fi |
| 2943 | fi |
| 2944 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2945 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2946 | echo "${ECHO_T}yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2947 | |
| 2948 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 2949 | ac_clean_files=$ac_clean_files_save |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2950 | # Check that the compiler produces executables we can run. If not, either |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2951 | # the compiler is broken, or we cross compile. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2952 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2953 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2954 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2955 | echo "${ECHO_T}$cross_compiling" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2956 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2957 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2958 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2959 | if { (ac_try="$ac_link" |
| 2960 | case "(($ac_try" in |
| 2961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2962 | *) ac_try_echo=$ac_try;; |
| 2963 | esac |
| 2964 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2965 | (eval "$ac_link") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2966 | ac_status=$? |
| 2967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2968 | (exit $ac_status); }; then |
| 2969 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2970 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2971 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2972 | # `rm'. |
| 2973 | for ac_file in conftest.exe conftest conftest.*; do |
| 2974 | test -f "$ac_file" || continue |
| 2975 | case $ac_file in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2976 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2977 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2978 | break;; |
| 2979 | * ) break;; |
| 2980 | esac |
| 2981 | done |
| 2982 | else |
| 2983 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2984 | See \`config.log' for more details." >&5 |
| 2985 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2986 | See \`config.log' for more details." >&2;} |
| 2987 | { (exit 1); exit 1; }; } |
| 2988 | fi |
| 2989 | |
| 2990 | rm -f conftest$ac_cv_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2991 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2992 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2993 | |
| 2994 | rm -f conftest.$ac_ext |
| 2995 | EXEEXT=$ac_cv_exeext |
| 2996 | ac_exeext=$EXEEXT |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2997 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2998 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2999 | if test "${ac_cv_objext+set}" = set; then |
| 3000 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3001 | else |
| 3002 | cat >conftest.$ac_ext <<_ACEOF |
| 3003 | /* confdefs.h. */ |
| 3004 | _ACEOF |
| 3005 | cat confdefs.h >>conftest.$ac_ext |
| 3006 | cat >>conftest.$ac_ext <<_ACEOF |
| 3007 | /* end confdefs.h. */ |
| 3008 | |
| 3009 | int |
| 3010 | main () |
| 3011 | { |
| 3012 | |
| 3013 | ; |
| 3014 | return 0; |
| 3015 | } |
| 3016 | _ACEOF |
| 3017 | rm -f conftest.o conftest.obj |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3018 | if { (ac_try="$ac_compile" |
| 3019 | case "(($ac_try" in |
| 3020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3021 | *) ac_try_echo=$ac_try;; |
| 3022 | esac |
| 3023 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3024 | (eval "$ac_compile") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3025 | ac_status=$? |
| 3026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3027 | (exit $ac_status); }; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3028 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3029 | test -f "$ac_file" || continue; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3030 | case $ac_file in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3031 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3032 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3033 | break;; |
| 3034 | esac |
| 3035 | done |
| 3036 | else |
| 3037 | echo "$as_me: failed program was:" >&5 |
| 3038 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3039 | |
| 3040 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 3041 | See \`config.log' for more details." >&5 |
| 3042 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 3043 | See \`config.log' for more details." >&2;} |
| 3044 | { (exit 1); exit 1; }; } |
| 3045 | fi |
| 3046 | |
| 3047 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3048 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3049 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 3050 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3051 | OBJEXT=$ac_cv_objext |
| 3052 | ac_objext=$OBJEXT |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3053 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 3054 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3055 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 3056 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3057 | else |
| 3058 | cat >conftest.$ac_ext <<_ACEOF |
| 3059 | /* confdefs.h. */ |
| 3060 | _ACEOF |
| 3061 | cat confdefs.h >>conftest.$ac_ext |
| 3062 | cat >>conftest.$ac_ext <<_ACEOF |
| 3063 | /* end confdefs.h. */ |
| 3064 | |
| 3065 | int |
| 3066 | main () |
| 3067 | { |
| 3068 | #ifndef __GNUC__ |
| 3069 | choke me |
| 3070 | #endif |
| 3071 | |
| 3072 | ; |
| 3073 | return 0; |
| 3074 | } |
| 3075 | _ACEOF |
| 3076 | rm -f conftest.$ac_objext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3077 | if { (ac_try="$ac_compile" |
| 3078 | case "(($ac_try" in |
| 3079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3080 | *) ac_try_echo=$ac_try;; |
| 3081 | esac |
| 3082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3083 | (eval "$ac_compile") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3084 | ac_status=$? |
| 3085 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3086 | rm -f conftest.er1 |
| 3087 | cat conftest.err >&5 |
| 3088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3089 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3090 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3091 | { (case "(($ac_try" in |
| 3092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3093 | *) ac_try_echo=$ac_try;; |
| 3094 | esac |
| 3095 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3096 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3097 | ac_status=$? |
| 3098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3099 | (exit $ac_status); }; } && |
| 3100 | { ac_try='test -s conftest.$ac_objext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3101 | { (case "(($ac_try" in |
| 3102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3103 | *) ac_try_echo=$ac_try;; |
| 3104 | esac |
| 3105 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3106 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3107 | ac_status=$? |
| 3108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3109 | (exit $ac_status); }; }; then |
| 3110 | ac_compiler_gnu=yes |
| 3111 | else |
| 3112 | echo "$as_me: failed program was:" >&5 |
| 3113 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3114 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3115 | ac_compiler_gnu=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3116 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3117 | |
| 3118 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3119 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3120 | |
| 3121 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3122 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3123 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3124 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 3125 | ac_test_CFLAGS=${CFLAGS+set} |
| 3126 | ac_save_CFLAGS=$CFLAGS |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3127 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3128 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3129 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 3130 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3131 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3132 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3133 | ac_c_werror_flag=yes |
| 3134 | ac_cv_prog_cc_g=no |
| 3135 | CFLAGS="-g" |
| 3136 | cat >conftest.$ac_ext <<_ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3137 | /* confdefs.h. */ |
| 3138 | _ACEOF |
| 3139 | cat confdefs.h >>conftest.$ac_ext |
| 3140 | cat >>conftest.$ac_ext <<_ACEOF |
| 3141 | /* end confdefs.h. */ |
| 3142 | |
| 3143 | int |
| 3144 | main () |
| 3145 | { |
| 3146 | |
| 3147 | ; |
| 3148 | return 0; |
| 3149 | } |
| 3150 | _ACEOF |
| 3151 | rm -f conftest.$ac_objext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3152 | if { (ac_try="$ac_compile" |
| 3153 | case "(($ac_try" in |
| 3154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3155 | *) ac_try_echo=$ac_try;; |
| 3156 | esac |
| 3157 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3158 | (eval "$ac_compile") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3159 | ac_status=$? |
| 3160 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3161 | rm -f conftest.er1 |
| 3162 | cat conftest.err >&5 |
| 3163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3164 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3165 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3166 | { (case "(($ac_try" in |
| 3167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3168 | *) ac_try_echo=$ac_try;; |
| 3169 | esac |
| 3170 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3171 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3172 | ac_status=$? |
| 3173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3174 | (exit $ac_status); }; } && |
| 3175 | { ac_try='test -s conftest.$ac_objext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3176 | { (case "(($ac_try" in |
| 3177 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3178 | *) ac_try_echo=$ac_try;; |
| 3179 | esac |
| 3180 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3181 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3182 | ac_status=$? |
| 3183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3184 | (exit $ac_status); }; }; then |
| 3185 | ac_cv_prog_cc_g=yes |
| 3186 | else |
| 3187 | echo "$as_me: failed program was:" >&5 |
| 3188 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3189 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3190 | CFLAGS="" |
| 3191 | cat >conftest.$ac_ext <<_ACEOF |
| 3192 | /* confdefs.h. */ |
| 3193 | _ACEOF |
| 3194 | cat confdefs.h >>conftest.$ac_ext |
| 3195 | cat >>conftest.$ac_ext <<_ACEOF |
| 3196 | /* end confdefs.h. */ |
| 3197 | |
| 3198 | int |
| 3199 | main () |
| 3200 | { |
| 3201 | |
| 3202 | ; |
| 3203 | return 0; |
| 3204 | } |
| 3205 | _ACEOF |
| 3206 | rm -f conftest.$ac_objext |
| 3207 | if { (ac_try="$ac_compile" |
| 3208 | case "(($ac_try" in |
| 3209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3210 | *) ac_try_echo=$ac_try;; |
| 3211 | esac |
| 3212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3213 | (eval "$ac_compile") 2>conftest.er1 |
| 3214 | ac_status=$? |
| 3215 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3216 | rm -f conftest.er1 |
| 3217 | cat conftest.err >&5 |
| 3218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3219 | (exit $ac_status); } && |
| 3220 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3221 | { (case "(($ac_try" in |
| 3222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3223 | *) ac_try_echo=$ac_try;; |
| 3224 | esac |
| 3225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3226 | (eval "$ac_try") 2>&5 |
| 3227 | ac_status=$? |
| 3228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3229 | (exit $ac_status); }; } && |
| 3230 | { ac_try='test -s conftest.$ac_objext' |
| 3231 | { (case "(($ac_try" in |
| 3232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3233 | *) ac_try_echo=$ac_try;; |
| 3234 | esac |
| 3235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3236 | (eval "$ac_try") 2>&5 |
| 3237 | ac_status=$? |
| 3238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3239 | (exit $ac_status); }; }; then |
| 3240 | : |
| 3241 | else |
| 3242 | echo "$as_me: failed program was:" >&5 |
| 3243 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3244 | |
| 3245 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3246 | CFLAGS="-g" |
| 3247 | cat >conftest.$ac_ext <<_ACEOF |
| 3248 | /* confdefs.h. */ |
| 3249 | _ACEOF |
| 3250 | cat confdefs.h >>conftest.$ac_ext |
| 3251 | cat >>conftest.$ac_ext <<_ACEOF |
| 3252 | /* end confdefs.h. */ |
| 3253 | |
| 3254 | int |
| 3255 | main () |
| 3256 | { |
| 3257 | |
| 3258 | ; |
| 3259 | return 0; |
| 3260 | } |
| 3261 | _ACEOF |
| 3262 | rm -f conftest.$ac_objext |
| 3263 | if { (ac_try="$ac_compile" |
| 3264 | case "(($ac_try" in |
| 3265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3266 | *) ac_try_echo=$ac_try;; |
| 3267 | esac |
| 3268 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3269 | (eval "$ac_compile") 2>conftest.er1 |
| 3270 | ac_status=$? |
| 3271 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3272 | rm -f conftest.er1 |
| 3273 | cat conftest.err >&5 |
| 3274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3275 | (exit $ac_status); } && |
| 3276 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3277 | { (case "(($ac_try" in |
| 3278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3279 | *) ac_try_echo=$ac_try;; |
| 3280 | esac |
| 3281 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3282 | (eval "$ac_try") 2>&5 |
| 3283 | ac_status=$? |
| 3284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3285 | (exit $ac_status); }; } && |
| 3286 | { ac_try='test -s conftest.$ac_objext' |
| 3287 | { (case "(($ac_try" in |
| 3288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3289 | *) ac_try_echo=$ac_try;; |
| 3290 | esac |
| 3291 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3292 | (eval "$ac_try") 2>&5 |
| 3293 | ac_status=$? |
| 3294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3295 | (exit $ac_status); }; }; then |
| 3296 | ac_cv_prog_cc_g=yes |
| 3297 | else |
| 3298 | echo "$as_me: failed program was:" >&5 |
| 3299 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3300 | |
| 3301 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3302 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3303 | |
| 3304 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3305 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3306 | |
| 3307 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3308 | fi |
| 3309 | |
| 3310 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3311 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3312 | fi |
| 3313 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3314 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3315 | if test "$ac_test_CFLAGS" = set; then |
| 3316 | CFLAGS=$ac_save_CFLAGS |
| 3317 | elif test $ac_cv_prog_cc_g = yes; then |
| 3318 | if test "$GCC" = yes; then |
| 3319 | CFLAGS="-g -O2" |
| 3320 | else |
| 3321 | CFLAGS="-g" |
| 3322 | fi |
| 3323 | else |
| 3324 | if test "$GCC" = yes; then |
| 3325 | CFLAGS="-O2" |
| 3326 | else |
| 3327 | CFLAGS= |
| 3328 | fi |
| 3329 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3330 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3331 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 3332 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3333 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3334 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3335 | ac_cv_prog_cc_c89=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3336 | ac_save_CC=$CC |
| 3337 | cat >conftest.$ac_ext <<_ACEOF |
| 3338 | /* confdefs.h. */ |
| 3339 | _ACEOF |
| 3340 | cat confdefs.h >>conftest.$ac_ext |
| 3341 | cat >>conftest.$ac_ext <<_ACEOF |
| 3342 | /* end confdefs.h. */ |
| 3343 | #include <stdarg.h> |
| 3344 | #include <stdio.h> |
| 3345 | #include <sys/types.h> |
| 3346 | #include <sys/stat.h> |
| 3347 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3348 | struct buf { int x; }; |
| 3349 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3350 | static char *e (p, i) |
| 3351 | char **p; |
| 3352 | int i; |
| 3353 | { |
| 3354 | return p[i]; |
| 3355 | } |
| 3356 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3357 | { |
| 3358 | char *s; |
| 3359 | va_list v; |
| 3360 | va_start (v,p); |
| 3361 | s = g (p, va_arg (v,int)); |
| 3362 | va_end (v); |
| 3363 | return s; |
| 3364 | } |
| 3365 | |
| 3366 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3367 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3368 | These don't provoke an error unfortunately, instead are silently treated |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3369 | as 'x'. The following induces an error, until -std is added to get |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3370 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3371 | array size at least. It's necessary to write '\x00'==0 to get something |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3372 | that's true only with -std. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3373 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3374 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3375 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3376 | inside strings and character constants. */ |
| 3377 | #define FOO(x) 'x' |
| 3378 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3379 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3380 | int test (int i, double x); |
| 3381 | struct s1 {int (*f) (int a);}; |
| 3382 | struct s2 {int (*f) (double a);}; |
| 3383 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3384 | int argc; |
| 3385 | char **argv; |
| 3386 | int |
| 3387 | main () |
| 3388 | { |
| 3389 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3390 | ; |
| 3391 | return 0; |
| 3392 | } |
| 3393 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3394 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3395 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3396 | do |
| 3397 | CC="$ac_save_CC $ac_arg" |
| 3398 | rm -f conftest.$ac_objext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3399 | if { (ac_try="$ac_compile" |
| 3400 | case "(($ac_try" in |
| 3401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3402 | *) ac_try_echo=$ac_try;; |
| 3403 | esac |
| 3404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3405 | (eval "$ac_compile") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3406 | ac_status=$? |
| 3407 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3408 | rm -f conftest.er1 |
| 3409 | cat conftest.err >&5 |
| 3410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3411 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3412 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3413 | { (case "(($ac_try" in |
| 3414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3415 | *) ac_try_echo=$ac_try;; |
| 3416 | esac |
| 3417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3418 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3419 | ac_status=$? |
| 3420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3421 | (exit $ac_status); }; } && |
| 3422 | { ac_try='test -s conftest.$ac_objext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3423 | { (case "(($ac_try" in |
| 3424 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3425 | *) ac_try_echo=$ac_try;; |
| 3426 | esac |
| 3427 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3428 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3429 | ac_status=$? |
| 3430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3431 | (exit $ac_status); }; }; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3432 | ac_cv_prog_cc_c89=$ac_arg |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3433 | else |
| 3434 | echo "$as_me: failed program was:" >&5 |
| 3435 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3436 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3437 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3438 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3439 | |
| 3440 | rm -f core conftest.err conftest.$ac_objext |
| 3441 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3442 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3443 | rm -f conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3444 | CC=$ac_save_CC |
| 3445 | |
| 3446 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3447 | # AC_CACHE_VAL |
| 3448 | case "x$ac_cv_prog_cc_c89" in |
| 3449 | x) |
| 3450 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3451 | echo "${ECHO_T}none needed" >&6; } ;; |
| 3452 | xno) |
| 3453 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3454 | echo "${ECHO_T}unsupported" >&6; } ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3455 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3456 | CC="$CC $ac_cv_prog_cc_c89" |
| 3457 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3458 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3459 | esac |
| 3460 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3461 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3462 | ac_ext=c |
| 3463 | ac_cpp='$CPP $CPPFLAGS' |
| 3464 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3465 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3466 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3467 | DEPDIR="${am__leading_dot}deps" |
| 3468 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3469 | ac_config_commands="$ac_config_commands depfiles" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3470 | |
| 3471 | |
| 3472 | am_make=${MAKE-make} |
| 3473 | cat > confinc << 'END' |
| 3474 | am__doit: |
| 3475 | @echo done |
| 3476 | .PHONY: am__doit |
| 3477 | END |
| 3478 | # If we don't find an include directive, just comment out the code. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3479 | { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
| 3480 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3481 | am__include="#" |
| 3482 | am__quote= |
| 3483 | _am_result=none |
| 3484 | # First try GNU make style include. |
| 3485 | echo "include confinc" > confmf |
| 3486 | # We grep out `Entering directory' and `Leaving directory' |
| 3487 | # messages which can occur if `w' ends up in MAKEFLAGS. |
| 3488 | # In particular we don't look at `^make:' because GNU make might |
| 3489 | # be invoked under some other name (usually "gmake"), in which |
| 3490 | # case it prints its new name instead of `make'. |
| 3491 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
| 3492 | am__include=include |
| 3493 | am__quote= |
| 3494 | _am_result=GNU |
| 3495 | fi |
| 3496 | # Now try BSD make style include. |
| 3497 | if test "$am__include" = "#"; then |
| 3498 | echo '.include "confinc"' > confmf |
| 3499 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
| 3500 | am__include=.include |
| 3501 | am__quote="\"" |
| 3502 | _am_result=BSD |
| 3503 | fi |
| 3504 | fi |
| 3505 | |
| 3506 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3507 | { echo "$as_me:$LINENO: result: $_am_result" >&5 |
| 3508 | echo "${ECHO_T}$_am_result" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3509 | rm -f confinc confmf |
| 3510 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3511 | # Check whether --enable-dependency-tracking was given. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3512 | if test "${enable_dependency_tracking+set}" = set; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3513 | enableval=$enable_dependency_tracking; |
| 3514 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3515 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3516 | if test "x$enable_dependency_tracking" != xno; then |
| 3517 | am_depcomp="$ac_aux_dir/depcomp" |
| 3518 | AMDEPBACKSLASH='\' |
| 3519 | fi |
| 3520 | |
| 3521 | |
| 3522 | if test "x$enable_dependency_tracking" != xno; then |
| 3523 | AMDEP_TRUE= |
| 3524 | AMDEP_FALSE='#' |
| 3525 | else |
| 3526 | AMDEP_TRUE='#' |
| 3527 | AMDEP_FALSE= |
| 3528 | fi |
| 3529 | |
| 3530 | |
| 3531 | |
| 3532 | |
| 3533 | depcc="$CC" am_compiler_list= |
| 3534 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3535 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 3536 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3537 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
| 3538 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3539 | else |
| 3540 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 3541 | # We make a subdir and do the tests there. Otherwise we can end up |
| 3542 | # making bogus files that we don't know about and never remove. For |
| 3543 | # instance it was reported that on HP-UX the gcc test will end up |
| 3544 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 3545 | # in D'. |
| 3546 | mkdir conftest.dir |
| 3547 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 3548 | # using a relative directory. |
| 3549 | cp "$am_depcomp" conftest.dir |
| 3550 | cd conftest.dir |
| 3551 | # We will build objects and dependencies in a subdirectory because |
| 3552 | # it helps to detect inapplicable dependency modes. For instance |
| 3553 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 3554 | # side effect of compilation, but ICC will put the dependencies in |
| 3555 | # the current directory while Tru64 will put them in the object |
| 3556 | # directory. |
| 3557 | mkdir sub |
| 3558 | |
| 3559 | am_cv_CC_dependencies_compiler_type=none |
| 3560 | if test "$am_compiler_list" = ""; then |
| 3561 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 3562 | fi |
| 3563 | for depmode in $am_compiler_list; do |
| 3564 | # Setup a source with many dependencies, because some compilers |
| 3565 | # like to wrap large dependency lists on column 80 (with \), and |
| 3566 | # we should not choose a depcomp mode which is confused by this. |
| 3567 | # |
| 3568 | # We need to recreate these files for each test, as the compiler may |
| 3569 | # overwrite some of them when testing with obscure command lines. |
| 3570 | # This happens at least with the AIX C compiler. |
| 3571 | : > sub/conftest.c |
| 3572 | for i in 1 2 3 4 5 6; do |
| 3573 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 3574 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 3575 | # Solaris 8's {/usr,}/bin/sh. |
| 3576 | touch sub/conftst$i.h |
| 3577 | done |
| 3578 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 3579 | |
| 3580 | case $depmode in |
| 3581 | nosideeffect) |
| 3582 | # after this tag, mechanisms are not by side-effect, so they'll |
| 3583 | # only be used when explicitly requested |
| 3584 | if test "x$enable_dependency_tracking" = xyes; then |
| 3585 | continue |
| 3586 | else |
| 3587 | break |
| 3588 | fi |
| 3589 | ;; |
| 3590 | none) break ;; |
| 3591 | esac |
| 3592 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 3593 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 3594 | # handle `-M -o', and we need to detect this. |
| 3595 | if depmode=$depmode \ |
| 3596 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| 3597 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 3598 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| 3599 | >/dev/null 2>conftest.err && |
| 3600 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 3601 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
| 3602 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 3603 | # icc doesn't choke on unknown options, it will just issue warnings |
| 3604 | # or remarks (even with -Werror). So we grep stderr for any message |
| 3605 | # that says an option was ignored or not supported. |
| 3606 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 3607 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 3608 | # The diagnosis changed in icc 8.0: |
| 3609 | # icc: Command line remark: option '-MP' not supported |
| 3610 | if (grep 'ignoring option' conftest.err || |
| 3611 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 3612 | am_cv_CC_dependencies_compiler_type=$depmode |
| 3613 | break |
| 3614 | fi |
| 3615 | fi |
| 3616 | done |
| 3617 | |
| 3618 | cd .. |
| 3619 | rm -rf conftest.dir |
| 3620 | else |
| 3621 | am_cv_CC_dependencies_compiler_type=none |
| 3622 | fi |
| 3623 | |
| 3624 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3625 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 3626 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3627 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 3628 | |
| 3629 | |
| 3630 | |
| 3631 | if |
| 3632 | test "x$enable_dependency_tracking" != xno \ |
| 3633 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 3634 | am__fastdepCC_TRUE= |
| 3635 | am__fastdepCC_FALSE='#' |
| 3636 | else |
| 3637 | am__fastdepCC_TRUE='#' |
| 3638 | am__fastdepCC_FALSE= |
| 3639 | fi |
| 3640 | |
| 3641 | |
| 3642 | ac_ext=c |
| 3643 | ac_cpp='$CPP $CPPFLAGS' |
| 3644 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3645 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3646 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3647 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3648 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3649 | # On Suns, sometimes $CPP names a directory. |
| 3650 | if test -n "$CPP" && test -d "$CPP"; then |
| 3651 | CPP= |
| 3652 | fi |
| 3653 | if test -z "$CPP"; then |
| 3654 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3655 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3656 | else |
| 3657 | # Double quotes because CPP needs to be expanded |
| 3658 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3659 | do |
| 3660 | ac_preproc_ok=false |
| 3661 | for ac_c_preproc_warn_flag in '' yes |
| 3662 | do |
| 3663 | # Use a header file that comes with gcc, so configuring glibc |
| 3664 | # with a fresh cross-compiler works. |
| 3665 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3666 | # <limits.h> exists even on freestanding compilers. |
| 3667 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3668 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3669 | cat >conftest.$ac_ext <<_ACEOF |
| 3670 | /* confdefs.h. */ |
| 3671 | _ACEOF |
| 3672 | cat confdefs.h >>conftest.$ac_ext |
| 3673 | cat >>conftest.$ac_ext <<_ACEOF |
| 3674 | /* end confdefs.h. */ |
| 3675 | #ifdef __STDC__ |
| 3676 | # include <limits.h> |
| 3677 | #else |
| 3678 | # include <assert.h> |
| 3679 | #endif |
| 3680 | Syntax error |
| 3681 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3682 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3683 | case "(($ac_try" in |
| 3684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3685 | *) ac_try_echo=$ac_try;; |
| 3686 | esac |
| 3687 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3688 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3689 | ac_status=$? |
| 3690 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3691 | rm -f conftest.er1 |
| 3692 | cat conftest.err >&5 |
| 3693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3694 | (exit $ac_status); } >/dev/null; then |
| 3695 | if test -s conftest.err; then |
| 3696 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3697 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3698 | else |
| 3699 | ac_cpp_err= |
| 3700 | fi |
| 3701 | else |
| 3702 | ac_cpp_err=yes |
| 3703 | fi |
| 3704 | if test -z "$ac_cpp_err"; then |
| 3705 | : |
| 3706 | else |
| 3707 | echo "$as_me: failed program was:" >&5 |
| 3708 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3709 | |
| 3710 | # Broken: fails on valid input. |
| 3711 | continue |
| 3712 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3713 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3714 | rm -f conftest.err conftest.$ac_ext |
| 3715 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3716 | # OK, works on sane cases. Now check whether nonexistent headers |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3717 | # can be detected and how. |
| 3718 | cat >conftest.$ac_ext <<_ACEOF |
| 3719 | /* confdefs.h. */ |
| 3720 | _ACEOF |
| 3721 | cat confdefs.h >>conftest.$ac_ext |
| 3722 | cat >>conftest.$ac_ext <<_ACEOF |
| 3723 | /* end confdefs.h. */ |
| 3724 | #include <ac_nonexistent.h> |
| 3725 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3726 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3727 | case "(($ac_try" in |
| 3728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3729 | *) ac_try_echo=$ac_try;; |
| 3730 | esac |
| 3731 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3732 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3733 | ac_status=$? |
| 3734 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3735 | rm -f conftest.er1 |
| 3736 | cat conftest.err >&5 |
| 3737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3738 | (exit $ac_status); } >/dev/null; then |
| 3739 | if test -s conftest.err; then |
| 3740 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3741 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3742 | else |
| 3743 | ac_cpp_err= |
| 3744 | fi |
| 3745 | else |
| 3746 | ac_cpp_err=yes |
| 3747 | fi |
| 3748 | if test -z "$ac_cpp_err"; then |
| 3749 | # Broken: success on invalid input. |
| 3750 | continue |
| 3751 | else |
| 3752 | echo "$as_me: failed program was:" >&5 |
| 3753 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3754 | |
| 3755 | # Passes both tests. |
| 3756 | ac_preproc_ok=: |
| 3757 | break |
| 3758 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3759 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3760 | rm -f conftest.err conftest.$ac_ext |
| 3761 | |
| 3762 | done |
| 3763 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3764 | rm -f conftest.err conftest.$ac_ext |
| 3765 | if $ac_preproc_ok; then |
| 3766 | break |
| 3767 | fi |
| 3768 | |
| 3769 | done |
| 3770 | ac_cv_prog_CPP=$CPP |
| 3771 | |
| 3772 | fi |
| 3773 | CPP=$ac_cv_prog_CPP |
| 3774 | else |
| 3775 | ac_cv_prog_CPP=$CPP |
| 3776 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3777 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3778 | echo "${ECHO_T}$CPP" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3779 | ac_preproc_ok=false |
| 3780 | for ac_c_preproc_warn_flag in '' yes |
| 3781 | do |
| 3782 | # Use a header file that comes with gcc, so configuring glibc |
| 3783 | # with a fresh cross-compiler works. |
| 3784 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3785 | # <limits.h> exists even on freestanding compilers. |
| 3786 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3787 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3788 | cat >conftest.$ac_ext <<_ACEOF |
| 3789 | /* confdefs.h. */ |
| 3790 | _ACEOF |
| 3791 | cat confdefs.h >>conftest.$ac_ext |
| 3792 | cat >>conftest.$ac_ext <<_ACEOF |
| 3793 | /* end confdefs.h. */ |
| 3794 | #ifdef __STDC__ |
| 3795 | # include <limits.h> |
| 3796 | #else |
| 3797 | # include <assert.h> |
| 3798 | #endif |
| 3799 | Syntax error |
| 3800 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3801 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3802 | case "(($ac_try" in |
| 3803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3804 | *) ac_try_echo=$ac_try;; |
| 3805 | esac |
| 3806 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3807 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3808 | ac_status=$? |
| 3809 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3810 | rm -f conftest.er1 |
| 3811 | cat conftest.err >&5 |
| 3812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3813 | (exit $ac_status); } >/dev/null; then |
| 3814 | if test -s conftest.err; then |
| 3815 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3816 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3817 | else |
| 3818 | ac_cpp_err= |
| 3819 | fi |
| 3820 | else |
| 3821 | ac_cpp_err=yes |
| 3822 | fi |
| 3823 | if test -z "$ac_cpp_err"; then |
| 3824 | : |
| 3825 | else |
| 3826 | echo "$as_me: failed program was:" >&5 |
| 3827 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3828 | |
| 3829 | # Broken: fails on valid input. |
| 3830 | continue |
| 3831 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3832 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3833 | rm -f conftest.err conftest.$ac_ext |
| 3834 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3835 | # OK, works on sane cases. Now check whether nonexistent headers |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3836 | # can be detected and how. |
| 3837 | cat >conftest.$ac_ext <<_ACEOF |
| 3838 | /* confdefs.h. */ |
| 3839 | _ACEOF |
| 3840 | cat confdefs.h >>conftest.$ac_ext |
| 3841 | cat >>conftest.$ac_ext <<_ACEOF |
| 3842 | /* end confdefs.h. */ |
| 3843 | #include <ac_nonexistent.h> |
| 3844 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3845 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3846 | case "(($ac_try" in |
| 3847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3848 | *) ac_try_echo=$ac_try;; |
| 3849 | esac |
| 3850 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3851 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3852 | ac_status=$? |
| 3853 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3854 | rm -f conftest.er1 |
| 3855 | cat conftest.err >&5 |
| 3856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3857 | (exit $ac_status); } >/dev/null; then |
| 3858 | if test -s conftest.err; then |
| 3859 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3860 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3861 | else |
| 3862 | ac_cpp_err= |
| 3863 | fi |
| 3864 | else |
| 3865 | ac_cpp_err=yes |
| 3866 | fi |
| 3867 | if test -z "$ac_cpp_err"; then |
| 3868 | # Broken: success on invalid input. |
| 3869 | continue |
| 3870 | else |
| 3871 | echo "$as_me: failed program was:" >&5 |
| 3872 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3873 | |
| 3874 | # Passes both tests. |
| 3875 | ac_preproc_ok=: |
| 3876 | break |
| 3877 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3878 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3879 | rm -f conftest.err conftest.$ac_ext |
| 3880 | |
| 3881 | done |
| 3882 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3883 | rm -f conftest.err conftest.$ac_ext |
| 3884 | if $ac_preproc_ok; then |
| 3885 | : |
| 3886 | else |
| 3887 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3888 | See \`config.log' for more details." >&5 |
| 3889 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3890 | See \`config.log' for more details." >&2;} |
| 3891 | { (exit 1); exit 1; }; } |
| 3892 | fi |
| 3893 | |
| 3894 | ac_ext=c |
| 3895 | ac_cpp='$CPP $CPPFLAGS' |
| 3896 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3897 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3898 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3899 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3900 | ac_ext=cpp |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3901 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 3902 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3903 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3904 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3905 | if test -z "$CXX"; then |
| 3906 | if test -n "$CCC"; then |
| 3907 | CXX=$CCC |
| 3908 | else |
| 3909 | if test -n "$ac_tool_prefix"; then |
| 3910 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3911 | do |
| 3912 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3913 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3914 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3915 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3916 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 3917 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3918 | else |
| 3919 | if test -n "$CXX"; then |
| 3920 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3921 | else |
| 3922 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3923 | for as_dir in $PATH |
| 3924 | do |
| 3925 | IFS=$as_save_IFS |
| 3926 | test -z "$as_dir" && as_dir=. |
| 3927 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3928 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3929 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 3930 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3931 | break 2 |
| 3932 | fi |
| 3933 | done |
| 3934 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3935 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3936 | |
| 3937 | fi |
| 3938 | fi |
| 3939 | CXX=$ac_cv_prog_CXX |
| 3940 | if test -n "$CXX"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3941 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3942 | echo "${ECHO_T}$CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3943 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3944 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3945 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3946 | fi |
| 3947 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3948 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3949 | test -n "$CXX" && break |
| 3950 | done |
| 3951 | fi |
| 3952 | if test -z "$CXX"; then |
| 3953 | ac_ct_CXX=$CXX |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3954 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3955 | do |
| 3956 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3957 | set dummy $ac_prog; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3958 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3959 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3960 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 3961 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3962 | else |
| 3963 | if test -n "$ac_ct_CXX"; then |
| 3964 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 3965 | else |
| 3966 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3967 | for as_dir in $PATH |
| 3968 | do |
| 3969 | IFS=$as_save_IFS |
| 3970 | test -z "$as_dir" && as_dir=. |
| 3971 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3972 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3973 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 3974 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3975 | break 2 |
| 3976 | fi |
| 3977 | done |
| 3978 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3979 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3980 | |
| 3981 | fi |
| 3982 | fi |
| 3983 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 3984 | if test -n "$ac_ct_CXX"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3985 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 3986 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3987 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3988 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3989 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3990 | fi |
| 3991 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3992 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3993 | test -n "$ac_ct_CXX" && break |
| 3994 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3995 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3996 | if test "x$ac_ct_CXX" = x; then |
| 3997 | CXX="g++" |
| 3998 | else |
| 3999 | case $cross_compiling:$ac_tool_warned in |
| 4000 | yes:) |
| 4001 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 4002 | whose name does not start with the host triplet. If you think this |
| 4003 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 4004 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 4005 | whose name does not start with the host triplet. If you think this |
| 4006 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 4007 | ac_tool_warned=yes ;; |
| 4008 | esac |
| 4009 | CXX=$ac_ct_CXX |
| 4010 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4011 | fi |
| 4012 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4013 | fi |
| 4014 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4015 | # Provide some information about the compiler. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4016 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4017 | ac_compiler=`set X $ac_compile; echo $2` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4018 | { (ac_try="$ac_compiler --version >&5" |
| 4019 | case "(($ac_try" in |
| 4020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4021 | *) ac_try_echo=$ac_try;; |
| 4022 | esac |
| 4023 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4024 | (eval "$ac_compiler --version >&5") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4025 | ac_status=$? |
| 4026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4027 | (exit $ac_status); } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4028 | { (ac_try="$ac_compiler -v >&5" |
| 4029 | case "(($ac_try" in |
| 4030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4031 | *) ac_try_echo=$ac_try;; |
| 4032 | esac |
| 4033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4034 | (eval "$ac_compiler -v >&5") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4035 | ac_status=$? |
| 4036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4037 | (exit $ac_status); } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4038 | { (ac_try="$ac_compiler -V >&5" |
| 4039 | case "(($ac_try" in |
| 4040 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4041 | *) ac_try_echo=$ac_try;; |
| 4042 | esac |
| 4043 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4044 | (eval "$ac_compiler -V >&5") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4045 | ac_status=$? |
| 4046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4047 | (exit $ac_status); } |
| 4048 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4049 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 4050 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4051 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 4052 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4053 | else |
| 4054 | cat >conftest.$ac_ext <<_ACEOF |
| 4055 | /* confdefs.h. */ |
| 4056 | _ACEOF |
| 4057 | cat confdefs.h >>conftest.$ac_ext |
| 4058 | cat >>conftest.$ac_ext <<_ACEOF |
| 4059 | /* end confdefs.h. */ |
| 4060 | |
| 4061 | int |
| 4062 | main () |
| 4063 | { |
| 4064 | #ifndef __GNUC__ |
| 4065 | choke me |
| 4066 | #endif |
| 4067 | |
| 4068 | ; |
| 4069 | return 0; |
| 4070 | } |
| 4071 | _ACEOF |
| 4072 | rm -f conftest.$ac_objext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 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 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 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 |
| 4085 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4086 | { ac_try='test -z "$ac_cxx_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 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4093 | ac_status=$? |
| 4094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4095 | (exit $ac_status); }; } && |
| 4096 | { ac_try='test -s conftest.$ac_objext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 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 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4103 | ac_status=$? |
| 4104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4105 | (exit $ac_status); }; }; then |
| 4106 | ac_compiler_gnu=yes |
| 4107 | else |
| 4108 | echo "$as_me: failed program was:" >&5 |
| 4109 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4110 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4111 | ac_compiler_gnu=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4112 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4113 | |
| 4114 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4115 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 4116 | |
| 4117 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4118 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 4119 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4120 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 4121 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 4122 | ac_save_CXXFLAGS=$CXXFLAGS |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4123 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 4124 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4125 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 4126 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4127 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4128 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 4129 | ac_cxx_werror_flag=yes |
| 4130 | ac_cv_prog_cxx_g=no |
| 4131 | CXXFLAGS="-g" |
| 4132 | cat >conftest.$ac_ext <<_ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4133 | /* confdefs.h. */ |
| 4134 | _ACEOF |
| 4135 | cat confdefs.h >>conftest.$ac_ext |
| 4136 | cat >>conftest.$ac_ext <<_ACEOF |
| 4137 | /* end confdefs.h. */ |
| 4138 | |
| 4139 | int |
| 4140 | main () |
| 4141 | { |
| 4142 | |
| 4143 | ; |
| 4144 | return 0; |
| 4145 | } |
| 4146 | _ACEOF |
| 4147 | rm -f conftest.$ac_objext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4148 | if { (ac_try="$ac_compile" |
| 4149 | case "(($ac_try" in |
| 4150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4151 | *) ac_try_echo=$ac_try;; |
| 4152 | esac |
| 4153 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4154 | (eval "$ac_compile") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4155 | ac_status=$? |
| 4156 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4157 | rm -f conftest.er1 |
| 4158 | cat conftest.err >&5 |
| 4159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4160 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4161 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 4162 | { (case "(($ac_try" in |
| 4163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4164 | *) ac_try_echo=$ac_try;; |
| 4165 | esac |
| 4166 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4167 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4168 | ac_status=$? |
| 4169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4170 | (exit $ac_status); }; } && |
| 4171 | { ac_try='test -s conftest.$ac_objext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4172 | { (case "(($ac_try" in |
| 4173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4174 | *) ac_try_echo=$ac_try;; |
| 4175 | esac |
| 4176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4177 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4178 | ac_status=$? |
| 4179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4180 | (exit $ac_status); }; }; then |
| 4181 | ac_cv_prog_cxx_g=yes |
| 4182 | else |
| 4183 | echo "$as_me: failed program was:" >&5 |
| 4184 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4185 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4186 | CXXFLAGS="" |
| 4187 | cat >conftest.$ac_ext <<_ACEOF |
| 4188 | /* confdefs.h. */ |
| 4189 | _ACEOF |
| 4190 | cat confdefs.h >>conftest.$ac_ext |
| 4191 | cat >>conftest.$ac_ext <<_ACEOF |
| 4192 | /* end confdefs.h. */ |
| 4193 | |
| 4194 | int |
| 4195 | main () |
| 4196 | { |
| 4197 | |
| 4198 | ; |
| 4199 | return 0; |
| 4200 | } |
| 4201 | _ACEOF |
| 4202 | rm -f conftest.$ac_objext |
| 4203 | if { (ac_try="$ac_compile" |
| 4204 | case "(($ac_try" in |
| 4205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4206 | *) ac_try_echo=$ac_try;; |
| 4207 | esac |
| 4208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4209 | (eval "$ac_compile") 2>conftest.er1 |
| 4210 | ac_status=$? |
| 4211 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4212 | rm -f conftest.er1 |
| 4213 | cat conftest.err >&5 |
| 4214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4215 | (exit $ac_status); } && |
| 4216 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 4217 | { (case "(($ac_try" in |
| 4218 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4219 | *) ac_try_echo=$ac_try;; |
| 4220 | esac |
| 4221 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4222 | (eval "$ac_try") 2>&5 |
| 4223 | ac_status=$? |
| 4224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4225 | (exit $ac_status); }; } && |
| 4226 | { ac_try='test -s conftest.$ac_objext' |
| 4227 | { (case "(($ac_try" in |
| 4228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4229 | *) ac_try_echo=$ac_try;; |
| 4230 | esac |
| 4231 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4232 | (eval "$ac_try") 2>&5 |
| 4233 | ac_status=$? |
| 4234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4235 | (exit $ac_status); }; }; then |
| 4236 | : |
| 4237 | else |
| 4238 | echo "$as_me: failed program was:" >&5 |
| 4239 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4240 | |
| 4241 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 4242 | CXXFLAGS="-g" |
| 4243 | cat >conftest.$ac_ext <<_ACEOF |
| 4244 | /* confdefs.h. */ |
| 4245 | _ACEOF |
| 4246 | cat confdefs.h >>conftest.$ac_ext |
| 4247 | cat >>conftest.$ac_ext <<_ACEOF |
| 4248 | /* end confdefs.h. */ |
| 4249 | |
| 4250 | int |
| 4251 | main () |
| 4252 | { |
| 4253 | |
| 4254 | ; |
| 4255 | return 0; |
| 4256 | } |
| 4257 | _ACEOF |
| 4258 | rm -f conftest.$ac_objext |
| 4259 | if { (ac_try="$ac_compile" |
| 4260 | case "(($ac_try" in |
| 4261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4262 | *) ac_try_echo=$ac_try;; |
| 4263 | esac |
| 4264 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4265 | (eval "$ac_compile") 2>conftest.er1 |
| 4266 | ac_status=$? |
| 4267 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4268 | rm -f conftest.er1 |
| 4269 | cat conftest.err >&5 |
| 4270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4271 | (exit $ac_status); } && |
| 4272 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 4273 | { (case "(($ac_try" in |
| 4274 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4275 | *) ac_try_echo=$ac_try;; |
| 4276 | esac |
| 4277 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4278 | (eval "$ac_try") 2>&5 |
| 4279 | ac_status=$? |
| 4280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4281 | (exit $ac_status); }; } && |
| 4282 | { ac_try='test -s conftest.$ac_objext' |
| 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_try") 2>&5 |
| 4289 | ac_status=$? |
| 4290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4291 | (exit $ac_status); }; }; then |
| 4292 | ac_cv_prog_cxx_g=yes |
| 4293 | else |
| 4294 | echo "$as_me: failed program was:" >&5 |
| 4295 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4296 | |
| 4297 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4298 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4299 | |
| 4300 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4301 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4302 | |
| 4303 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4304 | fi |
| 4305 | |
| 4306 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4307 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 4308 | fi |
| 4309 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 4310 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4311 | if test "$ac_test_CXXFLAGS" = set; then |
| 4312 | CXXFLAGS=$ac_save_CXXFLAGS |
| 4313 | elif test $ac_cv_prog_cxx_g = yes; then |
| 4314 | if test "$GXX" = yes; then |
| 4315 | CXXFLAGS="-g -O2" |
| 4316 | else |
| 4317 | CXXFLAGS="-g" |
| 4318 | fi |
| 4319 | else |
| 4320 | if test "$GXX" = yes; then |
| 4321 | CXXFLAGS="-O2" |
| 4322 | else |
| 4323 | CXXFLAGS= |
| 4324 | fi |
| 4325 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4326 | ac_ext=c |
| 4327 | ac_cpp='$CPP $CPPFLAGS' |
| 4328 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4329 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4330 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4331 | |
| 4332 | depcc="$CXX" am_compiler_list= |
| 4333 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4334 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 4335 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4336 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
| 4337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4338 | else |
| 4339 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 4340 | # We make a subdir and do the tests there. Otherwise we can end up |
| 4341 | # making bogus files that we don't know about and never remove. For |
| 4342 | # instance it was reported that on HP-UX the gcc test will end up |
| 4343 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 4344 | # in D'. |
| 4345 | mkdir conftest.dir |
| 4346 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 4347 | # using a relative directory. |
| 4348 | cp "$am_depcomp" conftest.dir |
| 4349 | cd conftest.dir |
| 4350 | # We will build objects and dependencies in a subdirectory because |
| 4351 | # it helps to detect inapplicable dependency modes. For instance |
| 4352 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 4353 | # side effect of compilation, but ICC will put the dependencies in |
| 4354 | # the current directory while Tru64 will put them in the object |
| 4355 | # directory. |
| 4356 | mkdir sub |
| 4357 | |
| 4358 | am_cv_CXX_dependencies_compiler_type=none |
| 4359 | if test "$am_compiler_list" = ""; then |
| 4360 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 4361 | fi |
| 4362 | for depmode in $am_compiler_list; do |
| 4363 | # Setup a source with many dependencies, because some compilers |
| 4364 | # like to wrap large dependency lists on column 80 (with \), and |
| 4365 | # we should not choose a depcomp mode which is confused by this. |
| 4366 | # |
| 4367 | # We need to recreate these files for each test, as the compiler may |
| 4368 | # overwrite some of them when testing with obscure command lines. |
| 4369 | # This happens at least with the AIX C compiler. |
| 4370 | : > sub/conftest.c |
| 4371 | for i in 1 2 3 4 5 6; do |
| 4372 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 4373 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 4374 | # Solaris 8's {/usr,}/bin/sh. |
| 4375 | touch sub/conftst$i.h |
| 4376 | done |
| 4377 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 4378 | |
| 4379 | case $depmode in |
| 4380 | nosideeffect) |
| 4381 | # after this tag, mechanisms are not by side-effect, so they'll |
| 4382 | # only be used when explicitly requested |
| 4383 | if test "x$enable_dependency_tracking" = xyes; then |
| 4384 | continue |
| 4385 | else |
| 4386 | break |
| 4387 | fi |
| 4388 | ;; |
| 4389 | none) break ;; |
| 4390 | esac |
| 4391 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 4392 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 4393 | # handle `-M -o', and we need to detect this. |
| 4394 | if depmode=$depmode \ |
| 4395 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| 4396 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 4397 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| 4398 | >/dev/null 2>conftest.err && |
| 4399 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 4400 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
| 4401 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 4402 | # icc doesn't choke on unknown options, it will just issue warnings |
| 4403 | # or remarks (even with -Werror). So we grep stderr for any message |
| 4404 | # that says an option was ignored or not supported. |
| 4405 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 4406 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 4407 | # The diagnosis changed in icc 8.0: |
| 4408 | # icc: Command line remark: option '-MP' not supported |
| 4409 | if (grep 'ignoring option' conftest.err || |
| 4410 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 4411 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 4412 | break |
| 4413 | fi |
| 4414 | fi |
| 4415 | done |
| 4416 | |
| 4417 | cd .. |
| 4418 | rm -rf conftest.dir |
| 4419 | else |
| 4420 | am_cv_CXX_dependencies_compiler_type=none |
| 4421 | fi |
| 4422 | |
| 4423 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4424 | { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 4425 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4426 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 4427 | |
| 4428 | |
| 4429 | |
| 4430 | if |
| 4431 | test "x$enable_dependency_tracking" != xno \ |
| 4432 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 4433 | am__fastdepCXX_TRUE= |
| 4434 | am__fastdepCXX_FALSE='#' |
| 4435 | else |
| 4436 | am__fastdepCXX_TRUE='#' |
| 4437 | am__fastdepCXX_FALSE= |
| 4438 | fi |
| 4439 | |
| 4440 | |
| 4441 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4442 | # Check whether --enable-shared was given. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4443 | if test "${enable_shared+set}" = set; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4444 | enableval=$enable_shared; p=${PACKAGE-default} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4445 | case $enableval in |
| 4446 | yes) enable_shared=yes ;; |
| 4447 | no) enable_shared=no ;; |
| 4448 | *) |
| 4449 | enable_shared=no |
| 4450 | # Look at the argument we got. We use all the common list separators. |
| 4451 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 4452 | for pkg in $enableval; do |
| 4453 | IFS="$lt_save_ifs" |
| 4454 | if test "X$pkg" = "X$p"; then |
| 4455 | enable_shared=yes |
| 4456 | fi |
| 4457 | done |
| 4458 | IFS="$lt_save_ifs" |
| 4459 | ;; |
| 4460 | esac |
| 4461 | else |
| 4462 | enable_shared=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4463 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4464 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4465 | |
| 4466 | # Check whether --enable-static was given. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4467 | if test "${enable_static+set}" = set; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4468 | enableval=$enable_static; p=${PACKAGE-default} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4469 | case $enableval in |
| 4470 | yes) enable_static=yes ;; |
| 4471 | no) enable_static=no ;; |
| 4472 | *) |
| 4473 | enable_static=no |
| 4474 | # Look at the argument we got. We use all the common list separators. |
| 4475 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 4476 | for pkg in $enableval; do |
| 4477 | IFS="$lt_save_ifs" |
| 4478 | if test "X$pkg" = "X$p"; then |
| 4479 | enable_static=yes |
| 4480 | fi |
| 4481 | done |
| 4482 | IFS="$lt_save_ifs" |
| 4483 | ;; |
| 4484 | esac |
| 4485 | else |
| 4486 | enable_static=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4487 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4488 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4489 | |
| 4490 | # Check whether --enable-fast-install was given. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4491 | if test "${enable_fast_install+set}" = set; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4492 | enableval=$enable_fast_install; p=${PACKAGE-default} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4493 | case $enableval in |
| 4494 | yes) enable_fast_install=yes ;; |
| 4495 | no) enable_fast_install=no ;; |
| 4496 | *) |
| 4497 | enable_fast_install=no |
| 4498 | # Look at the argument we got. We use all the common list separators. |
| 4499 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 4500 | for pkg in $enableval; do |
| 4501 | IFS="$lt_save_ifs" |
| 4502 | if test "X$pkg" = "X$p"; then |
| 4503 | enable_fast_install=yes |
| 4504 | fi |
| 4505 | done |
| 4506 | IFS="$lt_save_ifs" |
| 4507 | ;; |
| 4508 | esac |
| 4509 | else |
| 4510 | enable_fast_install=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4511 | fi |
| 4512 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4513 | |
| 4514 | # Make sure we can run config.sub. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4515 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 4516 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 4517 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4518 | { (exit 1); exit 1; }; } |
| 4519 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4520 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 4521 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4522 | if test "${ac_cv_build+set}" = set; then |
| 4523 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4524 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4525 | ac_build_alias=$build_alias |
| 4526 | test "x$ac_build_alias" = x && |
| 4527 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 4528 | test "x$ac_build_alias" = x && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4529 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 4530 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 4531 | { (exit 1); exit 1; }; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4532 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 4533 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 4534 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4535 | { (exit 1); exit 1; }; } |
| 4536 | |
| 4537 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4538 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 4539 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 4540 | case $ac_cv_build in |
| 4541 | *-*-*) ;; |
| 4542 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 4543 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 4544 | { (exit 1); exit 1; }; };; |
| 4545 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4546 | build=$ac_cv_build |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4547 | ac_save_IFS=$IFS; IFS='-' |
| 4548 | set x $ac_cv_build |
| 4549 | shift |
| 4550 | build_cpu=$1 |
| 4551 | build_vendor=$2 |
| 4552 | shift; shift |
| 4553 | # Remember, the first character of IFS is used to create $*, |
| 4554 | # except with old shells: |
| 4555 | build_os=$* |
| 4556 | IFS=$ac_save_IFS |
| 4557 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4558 | |
| 4559 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4560 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 4561 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4562 | if test "${ac_cv_host+set}" = set; then |
| 4563 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4564 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4565 | if test "x$host_alias" = x; then |
| 4566 | ac_cv_host=$ac_cv_build |
| 4567 | else |
| 4568 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 4569 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 4570 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4571 | { (exit 1); exit 1; }; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4572 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4573 | |
| 4574 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4575 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 4576 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 4577 | case $ac_cv_host in |
| 4578 | *-*-*) ;; |
| 4579 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 4580 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 4581 | { (exit 1); exit 1; }; };; |
| 4582 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4583 | host=$ac_cv_host |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4584 | ac_save_IFS=$IFS; IFS='-' |
| 4585 | set x $ac_cv_host |
| 4586 | shift |
| 4587 | host_cpu=$1 |
| 4588 | host_vendor=$2 |
| 4589 | shift; shift |
| 4590 | # Remember, the first character of IFS is used to create $*, |
| 4591 | # except with old shells: |
| 4592 | host_os=$* |
| 4593 | IFS=$ac_save_IFS |
| 4594 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4595 | |
| 4596 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4597 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 4598 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4599 | if test "${lt_cv_path_SED+set}" = set; then |
| 4600 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4601 | else |
| 4602 | # Loop through the user's path and test for sed and gsed. |
| 4603 | # Then use that list of sed's as ones to test for truncation. |
| 4604 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4605 | for as_dir in $PATH |
| 4606 | do |
| 4607 | IFS=$as_save_IFS |
| 4608 | test -z "$as_dir" && as_dir=. |
| 4609 | for lt_ac_prog in sed gsed; do |
| 4610 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4611 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
| 4612 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
| 4613 | fi |
| 4614 | done |
| 4615 | done |
| 4616 | done |
| 4617 | lt_ac_max=0 |
| 4618 | lt_ac_count=0 |
| 4619 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 4620 | # along with /bin/sed that truncates output. |
| 4621 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4622 | test ! -f $lt_ac_sed && continue |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4623 | cat /dev/null > conftest.in |
| 4624 | lt_ac_count=0 |
| 4625 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| 4626 | # Check for GNU sed and select it if it is found. |
| 4627 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
| 4628 | lt_cv_path_SED=$lt_ac_sed |
| 4629 | break |
| 4630 | fi |
| 4631 | while true; do |
| 4632 | cat conftest.in conftest.in >conftest.tmp |
| 4633 | mv conftest.tmp conftest.in |
| 4634 | cp conftest.in conftest.nl |
| 4635 | echo >>conftest.nl |
| 4636 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
| 4637 | cmp -s conftest.out conftest.nl || break |
| 4638 | # 10000 chars as input seems more than enough |
| 4639 | test $lt_ac_count -gt 10 && break |
| 4640 | lt_ac_count=`expr $lt_ac_count + 1` |
| 4641 | if test $lt_ac_count -gt $lt_ac_max; then |
| 4642 | lt_ac_max=$lt_ac_count |
| 4643 | lt_cv_path_SED=$lt_ac_sed |
| 4644 | fi |
| 4645 | done |
| 4646 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4647 | |
| 4648 | fi |
| 4649 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4650 | SED=$lt_cv_path_SED |
| 4651 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 4652 | echo "${ECHO_T}$SED" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4653 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4654 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 4655 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 4656 | if test "${ac_cv_path_GREP+set}" = set; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4657 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4658 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4659 | # Extract the first word of "grep ggrep" to use in msg output |
| 4660 | if test -z "$GREP"; then |
| 4661 | set dummy grep ggrep; ac_prog_name=$2 |
| 4662 | if test "${ac_cv_path_GREP+set}" = set; then |
| 4663 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4664 | else |
| 4665 | ac_path_GREP_found=false |
| 4666 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4667 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4668 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4669 | do |
| 4670 | IFS=$as_save_IFS |
| 4671 | test -z "$as_dir" && as_dir=. |
| 4672 | for ac_prog in grep ggrep; do |
| 4673 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4674 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4675 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
| 4676 | # Check for GNU ac_path_GREP and select it if it is found. |
| 4677 | # Check for GNU $ac_path_GREP |
| 4678 | case `"$ac_path_GREP" --version 2>&1` in |
| 4679 | *GNU*) |
| 4680 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4681 | *) |
| 4682 | ac_count=0 |
| 4683 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 4684 | while : |
| 4685 | do |
| 4686 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4687 | mv "conftest.tmp" "conftest.in" |
| 4688 | cp "conftest.in" "conftest.nl" |
| 4689 | echo 'GREP' >> "conftest.nl" |
| 4690 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4691 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4692 | ac_count=`expr $ac_count + 1` |
| 4693 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4694 | # Best one so far, save it but keep looking for a better one |
| 4695 | ac_cv_path_GREP="$ac_path_GREP" |
| 4696 | ac_path_GREP_max=$ac_count |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4697 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4698 | # 10*(2^10) chars as input seems more than enough |
| 4699 | test $ac_count -gt 10 && break |
| 4700 | done |
| 4701 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4702 | esac |
| 4703 | |
| 4704 | |
| 4705 | $ac_path_GREP_found && break 3 |
| 4706 | done |
| 4707 | done |
| 4708 | |
| 4709 | done |
| 4710 | IFS=$as_save_IFS |
| 4711 | |
| 4712 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4713 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4714 | |
| 4715 | GREP="$ac_cv_path_GREP" |
| 4716 | if test -z "$GREP"; then |
| 4717 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 4718 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 4719 | { (exit 1); exit 1; }; } |
| 4720 | fi |
| 4721 | |
| 4722 | else |
| 4723 | ac_cv_path_GREP=$GREP |
| 4724 | fi |
| 4725 | |
| 4726 | |
| 4727 | fi |
| 4728 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 4729 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 4730 | GREP="$ac_cv_path_GREP" |
| 4731 | |
| 4732 | |
| 4733 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 4734 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 4735 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 4736 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4737 | else |
| 4738 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4739 | then ac_cv_path_EGREP="$GREP -E" |
| 4740 | else |
| 4741 | # Extract the first word of "egrep" to use in msg output |
| 4742 | if test -z "$EGREP"; then |
| 4743 | set dummy egrep; ac_prog_name=$2 |
| 4744 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 4745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4746 | else |
| 4747 | ac_path_EGREP_found=false |
| 4748 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4749 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4750 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4751 | do |
| 4752 | IFS=$as_save_IFS |
| 4753 | test -z "$as_dir" && as_dir=. |
| 4754 | for ac_prog in egrep; do |
| 4755 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4756 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4757 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
| 4758 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 4759 | # Check for GNU $ac_path_EGREP |
| 4760 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4761 | *GNU*) |
| 4762 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4763 | *) |
| 4764 | ac_count=0 |
| 4765 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 4766 | while : |
| 4767 | do |
| 4768 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4769 | mv "conftest.tmp" "conftest.in" |
| 4770 | cp "conftest.in" "conftest.nl" |
| 4771 | echo 'EGREP' >> "conftest.nl" |
| 4772 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4773 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4774 | ac_count=`expr $ac_count + 1` |
| 4775 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4776 | # Best one so far, save it but keep looking for a better one |
| 4777 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4778 | ac_path_EGREP_max=$ac_count |
| 4779 | fi |
| 4780 | # 10*(2^10) chars as input seems more than enough |
| 4781 | test $ac_count -gt 10 && break |
| 4782 | done |
| 4783 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4784 | esac |
| 4785 | |
| 4786 | |
| 4787 | $ac_path_EGREP_found && break 3 |
| 4788 | done |
| 4789 | done |
| 4790 | |
| 4791 | done |
| 4792 | IFS=$as_save_IFS |
| 4793 | |
| 4794 | |
| 4795 | fi |
| 4796 | |
| 4797 | EGREP="$ac_cv_path_EGREP" |
| 4798 | if test -z "$EGREP"; then |
| 4799 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 4800 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 4801 | { (exit 1); exit 1; }; } |
| 4802 | fi |
| 4803 | |
| 4804 | else |
| 4805 | ac_cv_path_EGREP=$EGREP |
| 4806 | fi |
| 4807 | |
| 4808 | |
| 4809 | fi |
| 4810 | fi |
| 4811 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 4812 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 4813 | EGREP="$ac_cv_path_EGREP" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4814 | |
| 4815 | |
| 4816 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4817 | # Check whether --with-gnu-ld was given. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4818 | if test "${with_gnu_ld+set}" = set; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4819 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4820 | else |
| 4821 | with_gnu_ld=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4822 | fi |
| 4823 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4824 | ac_prog=ld |
| 4825 | if test "$GCC" = yes; then |
| 4826 | # Check if gcc -print-prog-name=ld gives a path. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4827 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 4828 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4829 | case $host in |
| 4830 | *-*-mingw*) |
| 4831 | # gcc leaves a trailing carriage return which upsets mingw |
| 4832 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 4833 | *) |
| 4834 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 4835 | esac |
| 4836 | case $ac_prog in |
| 4837 | # Accept absolute paths. |
| 4838 | [\\/]* | ?:[\\/]*) |
| 4839 | re_direlt='/[^/][^/]*/\.\./' |
| 4840 | # Canonicalize the pathname of ld |
| 4841 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 4842 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 4843 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 4844 | done |
| 4845 | test -z "$LD" && LD="$ac_prog" |
| 4846 | ;; |
| 4847 | "") |
| 4848 | # If it fails, then pretend we aren't using GCC. |
| 4849 | ac_prog=ld |
| 4850 | ;; |
| 4851 | *) |
| 4852 | # If it is relative, then search for the first ld in PATH. |
| 4853 | with_gnu_ld=unknown |
| 4854 | ;; |
| 4855 | esac |
| 4856 | elif test "$with_gnu_ld" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4857 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 4858 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4859 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4860 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 4861 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4862 | fi |
| 4863 | if test "${lt_cv_path_LD+set}" = set; then |
| 4864 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4865 | else |
| 4866 | if test -z "$LD"; then |
| 4867 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 4868 | for ac_dir in $PATH; do |
| 4869 | IFS="$lt_save_ifs" |
| 4870 | test -z "$ac_dir" && ac_dir=. |
| 4871 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 4872 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 4873 | # Check to see if the program is GNU ld. I'd rather use --version, |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4874 | # but apparently some variants of GNU ld only accept -v. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4875 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 4876 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 4877 | *GNU* | *'with BFD'*) |
| 4878 | test "$with_gnu_ld" != no && break |
| 4879 | ;; |
| 4880 | *) |
| 4881 | test "$with_gnu_ld" != yes && break |
| 4882 | ;; |
| 4883 | esac |
| 4884 | fi |
| 4885 | done |
| 4886 | IFS="$lt_save_ifs" |
| 4887 | else |
| 4888 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 4889 | fi |
| 4890 | fi |
| 4891 | |
| 4892 | LD="$lt_cv_path_LD" |
| 4893 | if test -n "$LD"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4894 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 4895 | echo "${ECHO_T}$LD" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4896 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4897 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4898 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4899 | fi |
| 4900 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 4901 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 4902 | { (exit 1); exit 1; }; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4903 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 4904 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4905 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 4906 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4907 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4908 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4909 | case `$LD -v 2>&1 </dev/null` in |
| 4910 | *GNU* | *'with BFD'*) |
| 4911 | lt_cv_prog_gnu_ld=yes |
| 4912 | ;; |
| 4913 | *) |
| 4914 | lt_cv_prog_gnu_ld=no |
| 4915 | ;; |
| 4916 | esac |
| 4917 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4918 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 4919 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4920 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 4921 | |
| 4922 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4923 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 4924 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4925 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 4926 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4927 | else |
| 4928 | lt_cv_ld_reload_flag='-r' |
| 4929 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4930 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 4931 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4932 | reload_flag=$lt_cv_ld_reload_flag |
| 4933 | case $reload_flag in |
| 4934 | "" | " "*) ;; |
| 4935 | *) reload_flag=" $reload_flag" ;; |
| 4936 | esac |
| 4937 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4938 | case $host_os in |
| 4939 | darwin*) |
| 4940 | if test "$GCC" = yes; then |
| 4941 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 4942 | else |
| 4943 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 4944 | fi |
| 4945 | ;; |
| 4946 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4947 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4948 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 4949 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4950 | if test "${lt_cv_path_NM+set}" = set; then |
| 4951 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4952 | else |
| 4953 | if test -n "$NM"; then |
| 4954 | # Let the user override the test. |
| 4955 | lt_cv_path_NM="$NM" |
| 4956 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4957 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 4958 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 4959 | lt_nm_to_check="$lt_nm_to_check nm" |
| 4960 | fi |
| 4961 | for lt_tmp_nm in $lt_nm_to_check; do |
| 4962 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 4963 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 4964 | IFS="$lt_save_ifs" |
| 4965 | test -z "$ac_dir" && ac_dir=. |
| 4966 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 4967 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 4968 | # Check to see if the nm accepts a BSD-compat flag. |
| 4969 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 4970 | # nm: unknown option "B" ignored |
| 4971 | # Tru64's nm complains that /dev/null is an invalid object file |
| 4972 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 4973 | */dev/null* | *'Invalid file or object type'*) |
| 4974 | lt_cv_path_NM="$tmp_nm -B" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4975 | break |
| 4976 | ;; |
| 4977 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4978 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 4979 | */dev/null*) |
| 4980 | lt_cv_path_NM="$tmp_nm -p" |
| 4981 | break |
| 4982 | ;; |
| 4983 | *) |
| 4984 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 4985 | continue # so that we can try to find one that supports BSD flags |
| 4986 | ;; |
| 4987 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4988 | ;; |
| 4989 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4990 | fi |
| 4991 | done |
| 4992 | IFS="$lt_save_ifs" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4993 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4994 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 4995 | fi |
| 4996 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4997 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 4998 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4999 | NM="$lt_cv_path_NM" |
| 5000 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5001 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 5002 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5003 | LN_S=$as_ln_s |
| 5004 | if test "$LN_S" = "ln -s"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5005 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 5006 | echo "${ECHO_T}yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5007 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5008 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 5009 | echo "${ECHO_T}no, using $LN_S" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5010 | fi |
| 5011 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5012 | { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 5013 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5014 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 5015 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5016 | else |
| 5017 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 5018 | lt_cv_file_magic_test_file= |
| 5019 | lt_cv_deplibs_check_method='unknown' |
| 5020 | # Need to set the preceding variable on all platforms that support |
| 5021 | # interlibrary dependencies. |
| 5022 | # 'none' -- dependencies not supported. |
| 5023 | # `unknown' -- same as none, but documents that we really don't know. |
| 5024 | # 'pass_all' -- all dependencies passed with no checks. |
| 5025 | # 'test_compile' -- check by making test program. |
| 5026 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 5027 | # which responds to the $file_magic_cmd with a given extended regex. |
| 5028 | # If you have `file' or equivalent on your system and you're not sure |
| 5029 | # whether `pass_all' will *always* work, you probably want this one. |
| 5030 | |
| 5031 | case $host_os in |
| 5032 | aix4* | aix5*) |
| 5033 | lt_cv_deplibs_check_method=pass_all |
| 5034 | ;; |
| 5035 | |
| 5036 | beos*) |
| 5037 | lt_cv_deplibs_check_method=pass_all |
| 5038 | ;; |
| 5039 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5040 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5041 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 5042 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 5043 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 5044 | ;; |
| 5045 | |
| 5046 | cygwin*) |
| 5047 | # func_win32_libid is a shell function defined in ltmain.sh |
| 5048 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 5049 | lt_cv_file_magic_cmd='func_win32_libid' |
| 5050 | ;; |
| 5051 | |
| 5052 | mingw* | pw32*) |
| 5053 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 5054 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
| 5055 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 5056 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 5057 | ;; |
| 5058 | |
| 5059 | darwin* | rhapsody*) |
| 5060 | lt_cv_deplibs_check_method=pass_all |
| 5061 | ;; |
| 5062 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5063 | freebsd* | kfreebsd*-gnu | dragonfly*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5064 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 5065 | case $host_cpu in |
| 5066 | i*86 ) |
| 5067 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 5068 | # Let's accept both of them until this is cleared up. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5069 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5070 | lt_cv_file_magic_cmd=/usr/bin/file |
| 5071 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 5072 | ;; |
| 5073 | esac |
| 5074 | else |
| 5075 | lt_cv_deplibs_check_method=pass_all |
| 5076 | fi |
| 5077 | ;; |
| 5078 | |
| 5079 | gnu*) |
| 5080 | lt_cv_deplibs_check_method=pass_all |
| 5081 | ;; |
| 5082 | |
| 5083 | hpux10.20* | hpux11*) |
| 5084 | lt_cv_file_magic_cmd=/usr/bin/file |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5085 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5086 | ia64*) |
| 5087 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 5088 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 5089 | ;; |
| 5090 | hppa*64*) |
| 5091 | 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]' |
| 5092 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 5093 | ;; |
| 5094 | *) |
| 5095 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 5096 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 5097 | ;; |
| 5098 | esac |
| 5099 | ;; |
| 5100 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5101 | interix3*) |
| 5102 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 5103 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 5104 | ;; |
| 5105 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5106 | irix5* | irix6* | nonstopux*) |
| 5107 | case $LD in |
| 5108 | *-32|*"-32 ") libmagic=32-bit;; |
| 5109 | *-n32|*"-n32 ") libmagic=N32;; |
| 5110 | *-64|*"-64 ") libmagic=64-bit;; |
| 5111 | *) libmagic=never-match;; |
| 5112 | esac |
| 5113 | lt_cv_deplibs_check_method=pass_all |
| 5114 | ;; |
| 5115 | |
| 5116 | # This must be Linux ELF. |
| 5117 | linux*) |
| 5118 | lt_cv_deplibs_check_method=pass_all |
| 5119 | ;; |
| 5120 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5121 | netbsd*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5122 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 5123 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 5124 | else |
| 5125 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 5126 | fi |
| 5127 | ;; |
| 5128 | |
| 5129 | newos6*) |
| 5130 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 5131 | lt_cv_file_magic_cmd=/usr/bin/file |
| 5132 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 5133 | ;; |
| 5134 | |
| 5135 | nto-qnx*) |
| 5136 | lt_cv_deplibs_check_method=unknown |
| 5137 | ;; |
| 5138 | |
| 5139 | openbsd*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5140 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5141 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5142 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5143 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5144 | fi |
| 5145 | ;; |
| 5146 | |
| 5147 | osf3* | osf4* | osf5*) |
| 5148 | lt_cv_deplibs_check_method=pass_all |
| 5149 | ;; |
| 5150 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5151 | solaris*) |
| 5152 | lt_cv_deplibs_check_method=pass_all |
| 5153 | ;; |
| 5154 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5155 | sysv4 | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5156 | case $host_vendor in |
| 5157 | motorola) |
| 5158 | 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]' |
| 5159 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 5160 | ;; |
| 5161 | ncr) |
| 5162 | lt_cv_deplibs_check_method=pass_all |
| 5163 | ;; |
| 5164 | sequent) |
| 5165 | lt_cv_file_magic_cmd='/bin/file' |
| 5166 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 5167 | ;; |
| 5168 | sni) |
| 5169 | lt_cv_file_magic_cmd='/bin/file' |
| 5170 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 5171 | lt_cv_file_magic_test_file=/lib/libc.so |
| 5172 | ;; |
| 5173 | siemens) |
| 5174 | lt_cv_deplibs_check_method=pass_all |
| 5175 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5176 | pc) |
| 5177 | lt_cv_deplibs_check_method=pass_all |
| 5178 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5179 | esac |
| 5180 | ;; |
| 5181 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5182 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5183 | lt_cv_deplibs_check_method=pass_all |
| 5184 | ;; |
| 5185 | esac |
| 5186 | |
| 5187 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5188 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 5189 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5190 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 5191 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 5192 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 5193 | |
| 5194 | |
| 5195 | |
| 5196 | |
| 5197 | # If no C compiler was specified, use CC. |
| 5198 | LTCC=${LTCC-"$CC"} |
| 5199 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5200 | # If no C compiler flags were specified, use CFLAGS. |
| 5201 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 5202 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5203 | # Allow CC to be a program name with arguments. |
| 5204 | compiler=$CC |
| 5205 | |
| 5206 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5207 | # Check whether --enable-libtool-lock was given. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5208 | if test "${enable_libtool_lock+set}" = set; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5209 | enableval=$enable_libtool_lock; |
| 5210 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5211 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5212 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 5213 | |
| 5214 | # Some flags need to be propagated to the compiler or linker for good |
| 5215 | # libtool support. |
| 5216 | case $host in |
| 5217 | ia64-*-hpux*) |
| 5218 | # Find out which ABI we are using. |
| 5219 | echo 'int i;' > conftest.$ac_ext |
| 5220 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5221 | (eval $ac_compile) 2>&5 |
| 5222 | ac_status=$? |
| 5223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5224 | (exit $ac_status); }; then |
| 5225 | case `/usr/bin/file conftest.$ac_objext` in |
| 5226 | *ELF-32*) |
| 5227 | HPUX_IA64_MODE="32" |
| 5228 | ;; |
| 5229 | *ELF-64*) |
| 5230 | HPUX_IA64_MODE="64" |
| 5231 | ;; |
| 5232 | esac |
| 5233 | fi |
| 5234 | rm -rf conftest* |
| 5235 | ;; |
| 5236 | *-*-irix6*) |
| 5237 | # Find out which ABI we are using. |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 5238 | echo '#line 5238 "configure"' > conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5239 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5240 | (eval $ac_compile) 2>&5 |
| 5241 | ac_status=$? |
| 5242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5243 | (exit $ac_status); }; then |
| 5244 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 5245 | case `/usr/bin/file conftest.$ac_objext` in |
| 5246 | *32-bit*) |
| 5247 | LD="${LD-ld} -melf32bsmip" |
| 5248 | ;; |
| 5249 | *N32*) |
| 5250 | LD="${LD-ld} -melf32bmipn32" |
| 5251 | ;; |
| 5252 | *64-bit*) |
| 5253 | LD="${LD-ld} -melf64bmip" |
| 5254 | ;; |
| 5255 | esac |
| 5256 | else |
| 5257 | case `/usr/bin/file conftest.$ac_objext` in |
| 5258 | *32-bit*) |
| 5259 | LD="${LD-ld} -32" |
| 5260 | ;; |
| 5261 | *N32*) |
| 5262 | LD="${LD-ld} -n32" |
| 5263 | ;; |
| 5264 | *64-bit*) |
| 5265 | LD="${LD-ld} -64" |
| 5266 | ;; |
| 5267 | esac |
| 5268 | fi |
| 5269 | fi |
| 5270 | rm -rf conftest* |
| 5271 | ;; |
| 5272 | |
| 5273 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| 5274 | # Find out which ABI we are using. |
| 5275 | echo 'int i;' > conftest.$ac_ext |
| 5276 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5277 | (eval $ac_compile) 2>&5 |
| 5278 | ac_status=$? |
| 5279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5280 | (exit $ac_status); }; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5281 | case `/usr/bin/file conftest.o` in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5282 | *32-bit*) |
| 5283 | case $host in |
| 5284 | x86_64-*linux*) |
| 5285 | LD="${LD-ld} -m elf_i386" |
| 5286 | ;; |
| 5287 | ppc64-*linux*|powerpc64-*linux*) |
| 5288 | LD="${LD-ld} -m elf32ppclinux" |
| 5289 | ;; |
| 5290 | s390x-*linux*) |
| 5291 | LD="${LD-ld} -m elf_s390" |
| 5292 | ;; |
| 5293 | sparc64-*linux*) |
| 5294 | LD="${LD-ld} -m elf32_sparc" |
| 5295 | ;; |
| 5296 | esac |
| 5297 | ;; |
| 5298 | *64-bit*) |
| 5299 | case $host in |
| 5300 | x86_64-*linux*) |
| 5301 | LD="${LD-ld} -m elf_x86_64" |
| 5302 | ;; |
| 5303 | ppc*-*linux*|powerpc*-*linux*) |
| 5304 | LD="${LD-ld} -m elf64ppc" |
| 5305 | ;; |
| 5306 | s390*-*linux*) |
| 5307 | LD="${LD-ld} -m elf64_s390" |
| 5308 | ;; |
| 5309 | sparc*-*linux*) |
| 5310 | LD="${LD-ld} -m elf64_sparc" |
| 5311 | ;; |
| 5312 | esac |
| 5313 | ;; |
| 5314 | esac |
| 5315 | fi |
| 5316 | rm -rf conftest* |
| 5317 | ;; |
| 5318 | |
| 5319 | *-*-sco3.2v5*) |
| 5320 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 5321 | SAVE_CFLAGS="$CFLAGS" |
| 5322 | CFLAGS="$CFLAGS -belf" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5323 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 5324 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5325 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 5326 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5327 | else |
| 5328 | ac_ext=c |
| 5329 | ac_cpp='$CPP $CPPFLAGS' |
| 5330 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5331 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5332 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5333 | |
| 5334 | cat >conftest.$ac_ext <<_ACEOF |
| 5335 | /* confdefs.h. */ |
| 5336 | _ACEOF |
| 5337 | cat confdefs.h >>conftest.$ac_ext |
| 5338 | cat >>conftest.$ac_ext <<_ACEOF |
| 5339 | /* end confdefs.h. */ |
| 5340 | |
| 5341 | int |
| 5342 | main () |
| 5343 | { |
| 5344 | |
| 5345 | ; |
| 5346 | return 0; |
| 5347 | } |
| 5348 | _ACEOF |
| 5349 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5350 | if { (ac_try="$ac_link" |
| 5351 | case "(($ac_try" in |
| 5352 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5353 | *) ac_try_echo=$ac_try;; |
| 5354 | esac |
| 5355 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5356 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5357 | ac_status=$? |
| 5358 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5359 | rm -f conftest.er1 |
| 5360 | cat conftest.err >&5 |
| 5361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5362 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5363 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5364 | { (case "(($ac_try" in |
| 5365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5366 | *) ac_try_echo=$ac_try;; |
| 5367 | esac |
| 5368 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5369 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5370 | ac_status=$? |
| 5371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5372 | (exit $ac_status); }; } && |
| 5373 | { ac_try='test -s conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5374 | { (case "(($ac_try" in |
| 5375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5376 | *) ac_try_echo=$ac_try;; |
| 5377 | esac |
| 5378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5379 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5380 | ac_status=$? |
| 5381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5382 | (exit $ac_status); }; }; then |
| 5383 | lt_cv_cc_needs_belf=yes |
| 5384 | else |
| 5385 | echo "$as_me: failed program was:" >&5 |
| 5386 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5387 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5388 | lt_cv_cc_needs_belf=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5389 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5390 | |
| 5391 | rm -f core conftest.err conftest.$ac_objext \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5392 | conftest$ac_exeext conftest.$ac_ext |
| 5393 | ac_ext=c |
| 5394 | ac_cpp='$CPP $CPPFLAGS' |
| 5395 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5396 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5397 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5398 | |
| 5399 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5400 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 5401 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5402 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 5403 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 5404 | CFLAGS="$SAVE_CFLAGS" |
| 5405 | fi |
| 5406 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5407 | sparc*-*solaris*) |
| 5408 | # Find out which ABI we are using. |
| 5409 | echo 'int i;' > conftest.$ac_ext |
| 5410 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5411 | (eval $ac_compile) 2>&5 |
| 5412 | ac_status=$? |
| 5413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5414 | (exit $ac_status); }; then |
| 5415 | case `/usr/bin/file conftest.o` in |
| 5416 | *64-bit*) |
| 5417 | case $lt_cv_prog_gnu_ld in |
| 5418 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 5419 | *) LD="${LD-ld} -64" ;; |
| 5420 | esac |
| 5421 | ;; |
| 5422 | esac |
| 5423 | fi |
| 5424 | rm -rf conftest* |
| 5425 | ;; |
| 5426 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5427 | |
| 5428 | esac |
| 5429 | |
| 5430 | need_locks="$enable_libtool_lock" |
| 5431 | |
| 5432 | |
| 5433 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5434 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 5435 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5436 | if test "${ac_cv_header_stdc+set}" = set; then |
| 5437 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5438 | else |
| 5439 | cat >conftest.$ac_ext <<_ACEOF |
| 5440 | /* confdefs.h. */ |
| 5441 | _ACEOF |
| 5442 | cat confdefs.h >>conftest.$ac_ext |
| 5443 | cat >>conftest.$ac_ext <<_ACEOF |
| 5444 | /* end confdefs.h. */ |
| 5445 | #include <stdlib.h> |
| 5446 | #include <stdarg.h> |
| 5447 | #include <string.h> |
| 5448 | #include <float.h> |
| 5449 | |
| 5450 | int |
| 5451 | main () |
| 5452 | { |
| 5453 | |
| 5454 | ; |
| 5455 | return 0; |
| 5456 | } |
| 5457 | _ACEOF |
| 5458 | rm -f conftest.$ac_objext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5459 | if { (ac_try="$ac_compile" |
| 5460 | case "(($ac_try" in |
| 5461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5462 | *) ac_try_echo=$ac_try;; |
| 5463 | esac |
| 5464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5465 | (eval "$ac_compile") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5466 | ac_status=$? |
| 5467 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5468 | rm -f conftest.er1 |
| 5469 | cat conftest.err >&5 |
| 5470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5471 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5472 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5473 | { (case "(($ac_try" in |
| 5474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5475 | *) ac_try_echo=$ac_try;; |
| 5476 | esac |
| 5477 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5478 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5479 | ac_status=$? |
| 5480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5481 | (exit $ac_status); }; } && |
| 5482 | { ac_try='test -s conftest.$ac_objext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5483 | { (case "(($ac_try" in |
| 5484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5485 | *) ac_try_echo=$ac_try;; |
| 5486 | esac |
| 5487 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5488 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5489 | ac_status=$? |
| 5490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5491 | (exit $ac_status); }; }; then |
| 5492 | ac_cv_header_stdc=yes |
| 5493 | else |
| 5494 | echo "$as_me: failed program was:" >&5 |
| 5495 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5496 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5497 | ac_cv_header_stdc=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5498 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5499 | |
| 5500 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5501 | |
| 5502 | if test $ac_cv_header_stdc = yes; then |
| 5503 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 5504 | cat >conftest.$ac_ext <<_ACEOF |
| 5505 | /* confdefs.h. */ |
| 5506 | _ACEOF |
| 5507 | cat confdefs.h >>conftest.$ac_ext |
| 5508 | cat >>conftest.$ac_ext <<_ACEOF |
| 5509 | /* end confdefs.h. */ |
| 5510 | #include <string.h> |
| 5511 | |
| 5512 | _ACEOF |
| 5513 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5514 | $EGREP "memchr" >/dev/null 2>&1; then |
| 5515 | : |
| 5516 | else |
| 5517 | ac_cv_header_stdc=no |
| 5518 | fi |
| 5519 | rm -f conftest* |
| 5520 | |
| 5521 | fi |
| 5522 | |
| 5523 | if test $ac_cv_header_stdc = yes; then |
| 5524 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 5525 | cat >conftest.$ac_ext <<_ACEOF |
| 5526 | /* confdefs.h. */ |
| 5527 | _ACEOF |
| 5528 | cat confdefs.h >>conftest.$ac_ext |
| 5529 | cat >>conftest.$ac_ext <<_ACEOF |
| 5530 | /* end confdefs.h. */ |
| 5531 | #include <stdlib.h> |
| 5532 | |
| 5533 | _ACEOF |
| 5534 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5535 | $EGREP "free" >/dev/null 2>&1; then |
| 5536 | : |
| 5537 | else |
| 5538 | ac_cv_header_stdc=no |
| 5539 | fi |
| 5540 | rm -f conftest* |
| 5541 | |
| 5542 | fi |
| 5543 | |
| 5544 | if test $ac_cv_header_stdc = yes; then |
| 5545 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 5546 | if test "$cross_compiling" = yes; then |
| 5547 | : |
| 5548 | else |
| 5549 | cat >conftest.$ac_ext <<_ACEOF |
| 5550 | /* confdefs.h. */ |
| 5551 | _ACEOF |
| 5552 | cat confdefs.h >>conftest.$ac_ext |
| 5553 | cat >>conftest.$ac_ext <<_ACEOF |
| 5554 | /* end confdefs.h. */ |
| 5555 | #include <ctype.h> |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5556 | #include <stdlib.h> |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5557 | #if ((' ' & 0x0FF) == 0x020) |
| 5558 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5559 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5560 | #else |
| 5561 | # define ISLOWER(c) \ |
| 5562 | (('a' <= (c) && (c) <= 'i') \ |
| 5563 | || ('j' <= (c) && (c) <= 'r') \ |
| 5564 | || ('s' <= (c) && (c) <= 'z')) |
| 5565 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5566 | #endif |
| 5567 | |
| 5568 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5569 | int |
| 5570 | main () |
| 5571 | { |
| 5572 | int i; |
| 5573 | for (i = 0; i < 256; i++) |
| 5574 | if (XOR (islower (i), ISLOWER (i)) |
| 5575 | || toupper (i) != TOUPPER (i)) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5576 | return 2; |
| 5577 | return 0; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5578 | } |
| 5579 | _ACEOF |
| 5580 | rm -f conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5581 | if { (ac_try="$ac_link" |
| 5582 | case "(($ac_try" in |
| 5583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5584 | *) ac_try_echo=$ac_try;; |
| 5585 | esac |
| 5586 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5587 | (eval "$ac_link") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5588 | ac_status=$? |
| 5589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5590 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5591 | { (case "(($ac_try" in |
| 5592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5593 | *) ac_try_echo=$ac_try;; |
| 5594 | esac |
| 5595 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5596 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5597 | ac_status=$? |
| 5598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5599 | (exit $ac_status); }; }; then |
| 5600 | : |
| 5601 | else |
| 5602 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5603 | echo "$as_me: failed program was:" >&5 |
| 5604 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5605 | |
| 5606 | ( exit $ac_status ) |
| 5607 | ac_cv_header_stdc=no |
| 5608 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5609 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5610 | fi |
| 5611 | |
| 5612 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5613 | fi |
| 5614 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5615 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 5616 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5617 | if test $ac_cv_header_stdc = yes; then |
| 5618 | |
| 5619 | cat >>confdefs.h <<\_ACEOF |
| 5620 | #define STDC_HEADERS 1 |
| 5621 | _ACEOF |
| 5622 | |
| 5623 | fi |
| 5624 | |
| 5625 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 5626 | |
| 5627 | |
| 5628 | |
| 5629 | |
| 5630 | |
| 5631 | |
| 5632 | |
| 5633 | |
| 5634 | |
| 5635 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 5636 | inttypes.h stdint.h unistd.h |
| 5637 | do |
| 5638 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5639 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5640 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5641 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5643 | else |
| 5644 | cat >conftest.$ac_ext <<_ACEOF |
| 5645 | /* confdefs.h. */ |
| 5646 | _ACEOF |
| 5647 | cat confdefs.h >>conftest.$ac_ext |
| 5648 | cat >>conftest.$ac_ext <<_ACEOF |
| 5649 | /* end confdefs.h. */ |
| 5650 | $ac_includes_default |
| 5651 | |
| 5652 | #include <$ac_header> |
| 5653 | _ACEOF |
| 5654 | rm -f conftest.$ac_objext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5655 | if { (ac_try="$ac_compile" |
| 5656 | case "(($ac_try" in |
| 5657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5658 | *) ac_try_echo=$ac_try;; |
| 5659 | esac |
| 5660 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5661 | (eval "$ac_compile") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5662 | ac_status=$? |
| 5663 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5664 | rm -f conftest.er1 |
| 5665 | cat conftest.err >&5 |
| 5666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5667 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5668 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5669 | { (case "(($ac_try" in |
| 5670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5671 | *) ac_try_echo=$ac_try;; |
| 5672 | esac |
| 5673 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5674 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5675 | ac_status=$? |
| 5676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5677 | (exit $ac_status); }; } && |
| 5678 | { ac_try='test -s conftest.$ac_objext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5679 | { (case "(($ac_try" in |
| 5680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5681 | *) ac_try_echo=$ac_try;; |
| 5682 | esac |
| 5683 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5684 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5685 | ac_status=$? |
| 5686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5687 | (exit $ac_status); }; }; then |
| 5688 | eval "$as_ac_Header=yes" |
| 5689 | else |
| 5690 | echo "$as_me: failed program was:" >&5 |
| 5691 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5692 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5693 | eval "$as_ac_Header=no" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5694 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5695 | |
| 5696 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5697 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5698 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5699 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5700 | echo "${ECHO_T}$ac_res" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5701 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5702 | cat >>confdefs.h <<_ACEOF |
| 5703 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5704 | _ACEOF |
| 5705 | |
| 5706 | fi |
| 5707 | |
| 5708 | done |
| 5709 | |
| 5710 | |
| 5711 | |
| 5712 | for ac_header in dlfcn.h |
| 5713 | do |
| 5714 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5715 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 5716 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5717 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5718 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5720 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5721 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5722 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5723 | echo "${ECHO_T}$ac_res" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5724 | else |
| 5725 | # Is the header compilable? |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5726 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 5727 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5728 | cat >conftest.$ac_ext <<_ACEOF |
| 5729 | /* confdefs.h. */ |
| 5730 | _ACEOF |
| 5731 | cat confdefs.h >>conftest.$ac_ext |
| 5732 | cat >>conftest.$ac_ext <<_ACEOF |
| 5733 | /* end confdefs.h. */ |
| 5734 | $ac_includes_default |
| 5735 | #include <$ac_header> |
| 5736 | _ACEOF |
| 5737 | rm -f conftest.$ac_objext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5738 | if { (ac_try="$ac_compile" |
| 5739 | case "(($ac_try" in |
| 5740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5741 | *) ac_try_echo=$ac_try;; |
| 5742 | esac |
| 5743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5744 | (eval "$ac_compile") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5745 | ac_status=$? |
| 5746 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5747 | rm -f conftest.er1 |
| 5748 | cat conftest.err >&5 |
| 5749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5750 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5751 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5752 | { (case "(($ac_try" in |
| 5753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5754 | *) ac_try_echo=$ac_try;; |
| 5755 | esac |
| 5756 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5757 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5758 | ac_status=$? |
| 5759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5760 | (exit $ac_status); }; } && |
| 5761 | { ac_try='test -s conftest.$ac_objext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5762 | { (case "(($ac_try" in |
| 5763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5764 | *) ac_try_echo=$ac_try;; |
| 5765 | esac |
| 5766 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5767 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5768 | ac_status=$? |
| 5769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5770 | (exit $ac_status); }; }; then |
| 5771 | ac_header_compiler=yes |
| 5772 | else |
| 5773 | echo "$as_me: failed program was:" >&5 |
| 5774 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5775 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5776 | ac_header_compiler=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5777 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5778 | |
| 5779 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5780 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5781 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5782 | |
| 5783 | # Is the header present? |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5784 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 5785 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5786 | cat >conftest.$ac_ext <<_ACEOF |
| 5787 | /* confdefs.h. */ |
| 5788 | _ACEOF |
| 5789 | cat confdefs.h >>conftest.$ac_ext |
| 5790 | cat >>conftest.$ac_ext <<_ACEOF |
| 5791 | /* end confdefs.h. */ |
| 5792 | #include <$ac_header> |
| 5793 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5794 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5795 | case "(($ac_try" in |
| 5796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5797 | *) ac_try_echo=$ac_try;; |
| 5798 | esac |
| 5799 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5800 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5801 | ac_status=$? |
| 5802 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5803 | rm -f conftest.er1 |
| 5804 | cat conftest.err >&5 |
| 5805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5806 | (exit $ac_status); } >/dev/null; then |
| 5807 | if test -s conftest.err; then |
| 5808 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5809 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5810 | else |
| 5811 | ac_cpp_err= |
| 5812 | fi |
| 5813 | else |
| 5814 | ac_cpp_err=yes |
| 5815 | fi |
| 5816 | if test -z "$ac_cpp_err"; then |
| 5817 | ac_header_preproc=yes |
| 5818 | else |
| 5819 | echo "$as_me: failed program was:" >&5 |
| 5820 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5821 | |
| 5822 | ac_header_preproc=no |
| 5823 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5824 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5825 | rm -f conftest.err conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5826 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5827 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5828 | |
| 5829 | # So? What about this header? |
| 5830 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5831 | yes:no: ) |
| 5832 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5833 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5834 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 5835 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 5836 | ac_header_preproc=yes |
| 5837 | ;; |
| 5838 | no:yes:* ) |
| 5839 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 5840 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 5841 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 5842 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 5843 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 5844 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 5845 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 5846 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5847 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5848 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 5849 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 5850 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5851 | ( cat <<\_ASBOX |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5852 | ## ------------------------------------ ## |
| 5853 | ## Report this to opensource@google.com ## |
| 5854 | ## ------------------------------------ ## |
| 5855 | _ASBOX |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5856 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5857 | ;; |
| 5858 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5859 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5860 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5861 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5862 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5863 | else |
| 5864 | eval "$as_ac_Header=\$ac_header_preproc" |
| 5865 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5866 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5867 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5868 | echo "${ECHO_T}$ac_res" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5869 | |
| 5870 | fi |
| 5871 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5872 | cat >>confdefs.h <<_ACEOF |
| 5873 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5874 | _ACEOF |
| 5875 | |
| 5876 | fi |
| 5877 | |
| 5878 | done |
| 5879 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5880 | |
| 5881 | |
| 5882 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 5883 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 5884 | (test "X$CXX" != "Xg++"))) ; then |
| 5885 | ac_ext=cpp |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5886 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5887 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5888 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5889 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5890 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 5891 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5892 | if test -z "$CXXCPP"; then |
| 5893 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
| 5894 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5895 | else |
| 5896 | # Double quotes because CXXCPP needs to be expanded |
| 5897 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 5898 | do |
| 5899 | ac_preproc_ok=false |
| 5900 | for ac_cxx_preproc_warn_flag in '' yes |
| 5901 | do |
| 5902 | # Use a header file that comes with gcc, so configuring glibc |
| 5903 | # with a fresh cross-compiler works. |
| 5904 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5905 | # <limits.h> exists even on freestanding compilers. |
| 5906 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5907 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5908 | cat >conftest.$ac_ext <<_ACEOF |
| 5909 | /* confdefs.h. */ |
| 5910 | _ACEOF |
| 5911 | cat confdefs.h >>conftest.$ac_ext |
| 5912 | cat >>conftest.$ac_ext <<_ACEOF |
| 5913 | /* end confdefs.h. */ |
| 5914 | #ifdef __STDC__ |
| 5915 | # include <limits.h> |
| 5916 | #else |
| 5917 | # include <assert.h> |
| 5918 | #endif |
| 5919 | Syntax error |
| 5920 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5921 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5922 | case "(($ac_try" in |
| 5923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5924 | *) ac_try_echo=$ac_try;; |
| 5925 | esac |
| 5926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5927 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5928 | ac_status=$? |
| 5929 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5930 | rm -f conftest.er1 |
| 5931 | cat conftest.err >&5 |
| 5932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5933 | (exit $ac_status); } >/dev/null; then |
| 5934 | if test -s conftest.err; then |
| 5935 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 5936 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 5937 | else |
| 5938 | ac_cpp_err= |
| 5939 | fi |
| 5940 | else |
| 5941 | ac_cpp_err=yes |
| 5942 | fi |
| 5943 | if test -z "$ac_cpp_err"; then |
| 5944 | : |
| 5945 | else |
| 5946 | echo "$as_me: failed program was:" >&5 |
| 5947 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5948 | |
| 5949 | # Broken: fails on valid input. |
| 5950 | continue |
| 5951 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5952 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5953 | rm -f conftest.err conftest.$ac_ext |
| 5954 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5955 | # OK, works on sane cases. Now check whether nonexistent headers |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5956 | # can be detected and how. |
| 5957 | cat >conftest.$ac_ext <<_ACEOF |
| 5958 | /* confdefs.h. */ |
| 5959 | _ACEOF |
| 5960 | cat confdefs.h >>conftest.$ac_ext |
| 5961 | cat >>conftest.$ac_ext <<_ACEOF |
| 5962 | /* end confdefs.h. */ |
| 5963 | #include <ac_nonexistent.h> |
| 5964 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5965 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5966 | case "(($ac_try" in |
| 5967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5968 | *) ac_try_echo=$ac_try;; |
| 5969 | esac |
| 5970 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5971 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5972 | ac_status=$? |
| 5973 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5974 | rm -f conftest.er1 |
| 5975 | cat conftest.err >&5 |
| 5976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5977 | (exit $ac_status); } >/dev/null; then |
| 5978 | if test -s conftest.err; then |
| 5979 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 5980 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 5981 | else |
| 5982 | ac_cpp_err= |
| 5983 | fi |
| 5984 | else |
| 5985 | ac_cpp_err=yes |
| 5986 | fi |
| 5987 | if test -z "$ac_cpp_err"; then |
| 5988 | # Broken: success on invalid input. |
| 5989 | continue |
| 5990 | else |
| 5991 | echo "$as_me: failed program was:" >&5 |
| 5992 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5993 | |
| 5994 | # Passes both tests. |
| 5995 | ac_preproc_ok=: |
| 5996 | break |
| 5997 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5998 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5999 | rm -f conftest.err conftest.$ac_ext |
| 6000 | |
| 6001 | done |
| 6002 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 6003 | rm -f conftest.err conftest.$ac_ext |
| 6004 | if $ac_preproc_ok; then |
| 6005 | break |
| 6006 | fi |
| 6007 | |
| 6008 | done |
| 6009 | ac_cv_prog_CXXCPP=$CXXCPP |
| 6010 | |
| 6011 | fi |
| 6012 | CXXCPP=$ac_cv_prog_CXXCPP |
| 6013 | else |
| 6014 | ac_cv_prog_CXXCPP=$CXXCPP |
| 6015 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6016 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 6017 | echo "${ECHO_T}$CXXCPP" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6018 | ac_preproc_ok=false |
| 6019 | for ac_cxx_preproc_warn_flag in '' yes |
| 6020 | do |
| 6021 | # Use a header file that comes with gcc, so configuring glibc |
| 6022 | # with a fresh cross-compiler works. |
| 6023 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6024 | # <limits.h> exists even on freestanding compilers. |
| 6025 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 6026 | # not just through cpp. "Syntax error" is here to catch this case. |
| 6027 | cat >conftest.$ac_ext <<_ACEOF |
| 6028 | /* confdefs.h. */ |
| 6029 | _ACEOF |
| 6030 | cat confdefs.h >>conftest.$ac_ext |
| 6031 | cat >>conftest.$ac_ext <<_ACEOF |
| 6032 | /* end confdefs.h. */ |
| 6033 | #ifdef __STDC__ |
| 6034 | # include <limits.h> |
| 6035 | #else |
| 6036 | # include <assert.h> |
| 6037 | #endif |
| 6038 | Syntax error |
| 6039 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6040 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6041 | case "(($ac_try" in |
| 6042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6043 | *) ac_try_echo=$ac_try;; |
| 6044 | esac |
| 6045 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6046 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6047 | ac_status=$? |
| 6048 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6049 | rm -f conftest.er1 |
| 6050 | cat conftest.err >&5 |
| 6051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6052 | (exit $ac_status); } >/dev/null; then |
| 6053 | if test -s conftest.err; then |
| 6054 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 6055 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 6056 | else |
| 6057 | ac_cpp_err= |
| 6058 | fi |
| 6059 | else |
| 6060 | ac_cpp_err=yes |
| 6061 | fi |
| 6062 | if test -z "$ac_cpp_err"; then |
| 6063 | : |
| 6064 | else |
| 6065 | echo "$as_me: failed program was:" >&5 |
| 6066 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6067 | |
| 6068 | # Broken: fails on valid input. |
| 6069 | continue |
| 6070 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6071 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6072 | rm -f conftest.err conftest.$ac_ext |
| 6073 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6074 | # OK, works on sane cases. Now check whether nonexistent headers |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6075 | # can be detected and how. |
| 6076 | cat >conftest.$ac_ext <<_ACEOF |
| 6077 | /* confdefs.h. */ |
| 6078 | _ACEOF |
| 6079 | cat confdefs.h >>conftest.$ac_ext |
| 6080 | cat >>conftest.$ac_ext <<_ACEOF |
| 6081 | /* end confdefs.h. */ |
| 6082 | #include <ac_nonexistent.h> |
| 6083 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6084 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6085 | case "(($ac_try" in |
| 6086 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6087 | *) ac_try_echo=$ac_try;; |
| 6088 | esac |
| 6089 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6090 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6091 | ac_status=$? |
| 6092 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6093 | rm -f conftest.er1 |
| 6094 | cat conftest.err >&5 |
| 6095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6096 | (exit $ac_status); } >/dev/null; then |
| 6097 | if test -s conftest.err; then |
| 6098 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 6099 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 6100 | else |
| 6101 | ac_cpp_err= |
| 6102 | fi |
| 6103 | else |
| 6104 | ac_cpp_err=yes |
| 6105 | fi |
| 6106 | if test -z "$ac_cpp_err"; then |
| 6107 | # Broken: success on invalid input. |
| 6108 | continue |
| 6109 | else |
| 6110 | echo "$as_me: failed program was:" >&5 |
| 6111 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6112 | |
| 6113 | # Passes both tests. |
| 6114 | ac_preproc_ok=: |
| 6115 | break |
| 6116 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6117 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6118 | rm -f conftest.err conftest.$ac_ext |
| 6119 | |
| 6120 | done |
| 6121 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 6122 | rm -f conftest.err conftest.$ac_ext |
| 6123 | if $ac_preproc_ok; then |
| 6124 | : |
| 6125 | else |
| 6126 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 6127 | See \`config.log' for more details." >&5 |
| 6128 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 6129 | See \`config.log' for more details." >&2;} |
| 6130 | { (exit 1); exit 1; }; } |
| 6131 | fi |
| 6132 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6133 | ac_ext=cpp |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6134 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 6135 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6136 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6137 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 6138 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6139 | fi |
| 6140 | |
| 6141 | |
| 6142 | ac_ext=f |
| 6143 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 6144 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6145 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 6146 | if test -n "$ac_tool_prefix"; then |
| 6147 | 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 |
| 6148 | do |
| 6149 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6150 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 6151 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6152 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6153 | if test "${ac_cv_prog_F77+set}" = set; then |
| 6154 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6155 | else |
| 6156 | if test -n "$F77"; then |
| 6157 | ac_cv_prog_F77="$F77" # Let the user override the test. |
| 6158 | else |
| 6159 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6160 | for as_dir in $PATH |
| 6161 | do |
| 6162 | IFS=$as_save_IFS |
| 6163 | test -z "$as_dir" && as_dir=. |
| 6164 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6165 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6166 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
| 6167 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6168 | break 2 |
| 6169 | fi |
| 6170 | done |
| 6171 | done |
| 6172 | IFS=$as_save_IFS |
| 6173 | |
| 6174 | fi |
| 6175 | fi |
| 6176 | F77=$ac_cv_prog_F77 |
| 6177 | if test -n "$F77"; then |
| 6178 | { echo "$as_me:$LINENO: result: $F77" >&5 |
| 6179 | echo "${ECHO_T}$F77" >&6; } |
| 6180 | else |
| 6181 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6182 | echo "${ECHO_T}no" >&6; } |
| 6183 | fi |
| 6184 | |
| 6185 | |
| 6186 | test -n "$F77" && break |
| 6187 | done |
| 6188 | fi |
| 6189 | if test -z "$F77"; then |
| 6190 | ac_ct_F77=$F77 |
| 6191 | 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 |
| 6192 | do |
| 6193 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6194 | set dummy $ac_prog; ac_word=$2 |
| 6195 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6196 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6197 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
| 6198 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6199 | else |
| 6200 | if test -n "$ac_ct_F77"; then |
| 6201 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
| 6202 | else |
| 6203 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6204 | for as_dir in $PATH |
| 6205 | do |
| 6206 | IFS=$as_save_IFS |
| 6207 | test -z "$as_dir" && as_dir=. |
| 6208 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6209 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6210 | ac_cv_prog_ac_ct_F77="$ac_prog" |
| 6211 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6212 | break 2 |
| 6213 | fi |
| 6214 | done |
| 6215 | done |
| 6216 | IFS=$as_save_IFS |
| 6217 | |
| 6218 | fi |
| 6219 | fi |
| 6220 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
| 6221 | if test -n "$ac_ct_F77"; then |
| 6222 | { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
| 6223 | echo "${ECHO_T}$ac_ct_F77" >&6; } |
| 6224 | else |
| 6225 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6226 | echo "${ECHO_T}no" >&6; } |
| 6227 | fi |
| 6228 | |
| 6229 | |
| 6230 | test -n "$ac_ct_F77" && break |
| 6231 | done |
| 6232 | |
| 6233 | if test "x$ac_ct_F77" = x; then |
| 6234 | F77="" |
| 6235 | else |
| 6236 | case $cross_compiling:$ac_tool_warned in |
| 6237 | yes:) |
| 6238 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6239 | whose name does not start with the host triplet. If you think this |
| 6240 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6241 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6242 | whose name does not start with the host triplet. If you think this |
| 6243 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6244 | ac_tool_warned=yes ;; |
| 6245 | esac |
| 6246 | F77=$ac_ct_F77 |
| 6247 | fi |
| 6248 | fi |
| 6249 | |
| 6250 | |
| 6251 | # Provide some information about the compiler. |
| 6252 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 |
| 6253 | ac_compiler=`set X $ac_compile; echo $2` |
| 6254 | { (ac_try="$ac_compiler --version >&5" |
| 6255 | case "(($ac_try" in |
| 6256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6257 | *) ac_try_echo=$ac_try;; |
| 6258 | esac |
| 6259 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6260 | (eval "$ac_compiler --version >&5") 2>&5 |
| 6261 | ac_status=$? |
| 6262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6263 | (exit $ac_status); } |
| 6264 | { (ac_try="$ac_compiler -v >&5" |
| 6265 | case "(($ac_try" in |
| 6266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6267 | *) ac_try_echo=$ac_try;; |
| 6268 | esac |
| 6269 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6270 | (eval "$ac_compiler -v >&5") 2>&5 |
| 6271 | ac_status=$? |
| 6272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6273 | (exit $ac_status); } |
| 6274 | { (ac_try="$ac_compiler -V >&5" |
| 6275 | case "(($ac_try" in |
| 6276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6277 | *) ac_try_echo=$ac_try;; |
| 6278 | esac |
| 6279 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6280 | (eval "$ac_compiler -V >&5") 2>&5 |
| 6281 | ac_status=$? |
| 6282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6283 | (exit $ac_status); } |
| 6284 | rm -f a.out |
| 6285 | |
| 6286 | # If we don't use `.F' as extension, the preprocessor is not run on the |
| 6287 | # input file. (Note that this only needs to work for GNU compilers.) |
| 6288 | ac_save_ext=$ac_ext |
| 6289 | ac_ext=F |
| 6290 | { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
| 6291 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } |
| 6292 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
| 6293 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6294 | else |
| 6295 | cat >conftest.$ac_ext <<_ACEOF |
| 6296 | program main |
| 6297 | #ifndef __GNUC__ |
| 6298 | choke me |
| 6299 | #endif |
| 6300 | |
| 6301 | end |
| 6302 | _ACEOF |
| 6303 | rm -f conftest.$ac_objext |
| 6304 | if { (ac_try="$ac_compile" |
| 6305 | case "(($ac_try" in |
| 6306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6307 | *) ac_try_echo=$ac_try;; |
| 6308 | esac |
| 6309 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6310 | (eval "$ac_compile") 2>conftest.er1 |
| 6311 | ac_status=$? |
| 6312 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6313 | rm -f conftest.er1 |
| 6314 | cat conftest.err >&5 |
| 6315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6316 | (exit $ac_status); } && |
| 6317 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 6318 | { (case "(($ac_try" in |
| 6319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6320 | *) ac_try_echo=$ac_try;; |
| 6321 | esac |
| 6322 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6323 | (eval "$ac_try") 2>&5 |
| 6324 | ac_status=$? |
| 6325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6326 | (exit $ac_status); }; } && |
| 6327 | { ac_try='test -s conftest.$ac_objext' |
| 6328 | { (case "(($ac_try" in |
| 6329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6330 | *) ac_try_echo=$ac_try;; |
| 6331 | esac |
| 6332 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6333 | (eval "$ac_try") 2>&5 |
| 6334 | ac_status=$? |
| 6335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6336 | (exit $ac_status); }; }; then |
| 6337 | ac_compiler_gnu=yes |
| 6338 | else |
| 6339 | echo "$as_me: failed program was:" >&5 |
| 6340 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6341 | |
| 6342 | ac_compiler_gnu=no |
| 6343 | fi |
| 6344 | |
| 6345 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6346 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
| 6347 | |
| 6348 | fi |
| 6349 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
| 6350 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } |
| 6351 | ac_ext=$ac_save_ext |
| 6352 | ac_test_FFLAGS=${FFLAGS+set} |
| 6353 | ac_save_FFLAGS=$FFLAGS |
| 6354 | FFLAGS= |
| 6355 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
| 6356 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } |
| 6357 | if test "${ac_cv_prog_f77_g+set}" = set; then |
| 6358 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6359 | else |
| 6360 | FFLAGS=-g |
| 6361 | cat >conftest.$ac_ext <<_ACEOF |
| 6362 | program main |
| 6363 | |
| 6364 | end |
| 6365 | _ACEOF |
| 6366 | rm -f conftest.$ac_objext |
| 6367 | if { (ac_try="$ac_compile" |
| 6368 | case "(($ac_try" in |
| 6369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6370 | *) ac_try_echo=$ac_try;; |
| 6371 | esac |
| 6372 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6373 | (eval "$ac_compile") 2>conftest.er1 |
| 6374 | ac_status=$? |
| 6375 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6376 | rm -f conftest.er1 |
| 6377 | cat conftest.err >&5 |
| 6378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6379 | (exit $ac_status); } && |
| 6380 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 6381 | { (case "(($ac_try" in |
| 6382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6383 | *) ac_try_echo=$ac_try;; |
| 6384 | esac |
| 6385 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6386 | (eval "$ac_try") 2>&5 |
| 6387 | ac_status=$? |
| 6388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6389 | (exit $ac_status); }; } && |
| 6390 | { ac_try='test -s conftest.$ac_objext' |
| 6391 | { (case "(($ac_try" in |
| 6392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6393 | *) ac_try_echo=$ac_try;; |
| 6394 | esac |
| 6395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6396 | (eval "$ac_try") 2>&5 |
| 6397 | ac_status=$? |
| 6398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6399 | (exit $ac_status); }; }; then |
| 6400 | ac_cv_prog_f77_g=yes |
| 6401 | else |
| 6402 | echo "$as_me: failed program was:" >&5 |
| 6403 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6404 | |
| 6405 | ac_cv_prog_f77_g=no |
| 6406 | fi |
| 6407 | |
| 6408 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6409 | |
| 6410 | fi |
| 6411 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
| 6412 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } |
| 6413 | if test "$ac_test_FFLAGS" = set; then |
| 6414 | FFLAGS=$ac_save_FFLAGS |
| 6415 | elif test $ac_cv_prog_f77_g = yes; then |
| 6416 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
| 6417 | FFLAGS="-g -O2" |
| 6418 | else |
| 6419 | FFLAGS="-g" |
| 6420 | fi |
| 6421 | else |
| 6422 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
| 6423 | FFLAGS="-O2" |
| 6424 | else |
| 6425 | FFLAGS= |
| 6426 | fi |
| 6427 | fi |
| 6428 | |
| 6429 | G77=`test $ac_compiler_gnu = yes && echo yes` |
| 6430 | ac_ext=c |
| 6431 | ac_cpp='$CPP $CPPFLAGS' |
| 6432 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6433 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6434 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6435 | |
| 6436 | |
| 6437 | |
| 6438 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| 6439 | |
| 6440 | # find the maximum length of command line arguments |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6441 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 6442 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6443 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| 6444 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6445 | else |
| 6446 | i=0 |
| 6447 | teststring="ABCD" |
| 6448 | |
| 6449 | case $build_os in |
| 6450 | msdosdjgpp*) |
| 6451 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 6452 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 6453 | # during glob expansion). Even if it were fixed, the result of this |
| 6454 | # check would be larger than it should be. |
| 6455 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 6456 | ;; |
| 6457 | |
| 6458 | gnu*) |
| 6459 | # Under GNU Hurd, this test is not required because there is |
| 6460 | # no limit to the length of command line arguments. |
| 6461 | # Libtool will interpret -1 as no limit whatsoever |
| 6462 | lt_cv_sys_max_cmd_len=-1; |
| 6463 | ;; |
| 6464 | |
| 6465 | cygwin* | mingw*) |
| 6466 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 6467 | # about 5 minutes as the teststring grows exponentially. |
| 6468 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 6469 | # you end up with a "frozen" computer, even though with patience |
| 6470 | # the test eventually succeeds (with a max line length of 256k). |
| 6471 | # Instead, let's just punt: use the minimum linelength reported by |
| 6472 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 6473 | lt_cv_sys_max_cmd_len=8192; |
| 6474 | ;; |
| 6475 | |
| 6476 | amigaos*) |
| 6477 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 6478 | # So we just punt and use a minimum line length of 8192. |
| 6479 | lt_cv_sys_max_cmd_len=8192; |
| 6480 | ;; |
| 6481 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6482 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 6483 | # This has been around since 386BSD, at least. Likely further. |
| 6484 | if test -x /sbin/sysctl; then |
| 6485 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 6486 | elif test -x /usr/sbin/sysctl; then |
| 6487 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 6488 | else |
| 6489 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 6490 | fi |
| 6491 | # And add a safety zone |
| 6492 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 6493 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 6494 | ;; |
| 6495 | |
| 6496 | interix*) |
| 6497 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 6498 | lt_cv_sys_max_cmd_len=196608 |
| 6499 | ;; |
| 6500 | |
| 6501 | osf*) |
| 6502 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 6503 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 6504 | # nice to cause kernel panics so lets avoid the loop below. |
| 6505 | # First set a reasonable default. |
| 6506 | lt_cv_sys_max_cmd_len=16384 |
| 6507 | # |
| 6508 | if test -x /sbin/sysconfig; then |
| 6509 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 6510 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 6511 | esac |
| 6512 | fi |
| 6513 | ;; |
| 6514 | sco3.2v5*) |
| 6515 | lt_cv_sys_max_cmd_len=102400 |
| 6516 | ;; |
| 6517 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 6518 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 6519 | if test -n "$kargmax"; then |
| 6520 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 6521 | else |
| 6522 | lt_cv_sys_max_cmd_len=32768 |
| 6523 | fi |
| 6524 | ;; |
| 6525 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6526 | # If test is not a shell built-in, we'll probably end up computing a |
| 6527 | # maximum length that is only half of the actual maximum length, but |
| 6528 | # we can't tell. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6529 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 6530 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6531 | = "XX$teststring") >/dev/null 2>&1 && |
| 6532 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
| 6533 | lt_cv_sys_max_cmd_len=$new_result && |
| 6534 | test $i != 17 # 1/2 MB should be enough |
| 6535 | do |
| 6536 | i=`expr $i + 1` |
| 6537 | teststring=$teststring$teststring |
| 6538 | done |
| 6539 | teststring= |
| 6540 | # Add a significant safety factor because C++ compilers can tack on massive |
| 6541 | # amounts of additional arguments before passing them to the linker. |
| 6542 | # It appears as though 1/2 is a usable value. |
| 6543 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 6544 | ;; |
| 6545 | esac |
| 6546 | |
| 6547 | fi |
| 6548 | |
| 6549 | if test -n $lt_cv_sys_max_cmd_len ; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6550 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 6551 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6552 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6553 | { echo "$as_me:$LINENO: result: none" >&5 |
| 6554 | echo "${ECHO_T}none" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6555 | fi |
| 6556 | |
| 6557 | |
| 6558 | |
| 6559 | |
| 6560 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6561 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 6562 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6563 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 6564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6565 | else |
| 6566 | |
| 6567 | # These are sane defaults that work on at least a few old systems. |
| 6568 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 6569 | |
| 6570 | # Character class describing NM global symbol codes. |
| 6571 | symcode='[BCDEGRST]' |
| 6572 | |
| 6573 | # Regexp to match symbols that can be accessed directly from C. |
| 6574 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 6575 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6576 | # Transform an extracted symbol line into a proper C declaration |
| 6577 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 6578 | |
| 6579 | # Transform an extracted symbol line into symbol name and symbol address |
| 6580 | 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'" |
| 6581 | |
| 6582 | # Define system-specific variables. |
| 6583 | case $host_os in |
| 6584 | aix*) |
| 6585 | symcode='[BCDT]' |
| 6586 | ;; |
| 6587 | cygwin* | mingw* | pw32*) |
| 6588 | symcode='[ABCDGISTW]' |
| 6589 | ;; |
| 6590 | hpux*) # Its linker distinguishes data from code symbols |
| 6591 | if test "$host_cpu" = ia64; then |
| 6592 | symcode='[ABCDEGRST]' |
| 6593 | fi |
| 6594 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 6595 | 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'" |
| 6596 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6597 | linux*) |
| 6598 | if test "$host_cpu" = ia64; then |
| 6599 | symcode='[ABCDGIRSTW]' |
| 6600 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 6601 | 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'" |
| 6602 | fi |
| 6603 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6604 | irix* | nonstopux*) |
| 6605 | symcode='[BCDEGRST]' |
| 6606 | ;; |
| 6607 | osf*) |
| 6608 | symcode='[BCDEGQRST]' |
| 6609 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6610 | solaris*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6611 | symcode='[BDRT]' |
| 6612 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6613 | sco3.2v5*) |
| 6614 | symcode='[DT]' |
| 6615 | ;; |
| 6616 | sysv4.2uw2*) |
| 6617 | symcode='[DT]' |
| 6618 | ;; |
| 6619 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 6620 | symcode='[ABDT]' |
| 6621 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6622 | sysv4) |
| 6623 | symcode='[DFNSTU]' |
| 6624 | ;; |
| 6625 | esac |
| 6626 | |
| 6627 | # Handle CRLF in mingw tool chain |
| 6628 | opt_cr= |
| 6629 | case $build_os in |
| 6630 | mingw*) |
| 6631 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 6632 | ;; |
| 6633 | esac |
| 6634 | |
| 6635 | # If we're using GNU nm, then use its standard symbol codes. |
| 6636 | case `$NM -V 2>&1` in |
| 6637 | *GNU* | *'with BFD'*) |
| 6638 | symcode='[ABCDGIRSTW]' ;; |
| 6639 | esac |
| 6640 | |
| 6641 | # Try without a prefix undercore, then with it. |
| 6642 | for ac_symprfx in "" "_"; do |
| 6643 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6644 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 6645 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 6646 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6647 | # Write the raw and C identifiers. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6648 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6649 | |
| 6650 | # Check to see that the pipe works correctly. |
| 6651 | pipe_works=no |
| 6652 | |
| 6653 | rm -f conftest* |
| 6654 | cat > conftest.$ac_ext <<EOF |
| 6655 | #ifdef __cplusplus |
| 6656 | extern "C" { |
| 6657 | #endif |
| 6658 | char nm_test_var; |
| 6659 | void nm_test_func(){} |
| 6660 | #ifdef __cplusplus |
| 6661 | } |
| 6662 | #endif |
| 6663 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 6664 | EOF |
| 6665 | |
| 6666 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6667 | (eval $ac_compile) 2>&5 |
| 6668 | ac_status=$? |
| 6669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6670 | (exit $ac_status); }; then |
| 6671 | # Now try to grab the symbols. |
| 6672 | nlist=conftest.nm |
| 6673 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 6674 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 6675 | ac_status=$? |
| 6676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6677 | (exit $ac_status); } && test -s "$nlist"; then |
| 6678 | # Try sorting and uniquifying the output. |
| 6679 | if sort "$nlist" | uniq > "$nlist"T; then |
| 6680 | mv -f "$nlist"T "$nlist" |
| 6681 | else |
| 6682 | rm -f "$nlist"T |
| 6683 | fi |
| 6684 | |
| 6685 | # Make sure that we snagged all the symbols we need. |
| 6686 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 6687 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 6688 | cat <<EOF > conftest.$ac_ext |
| 6689 | #ifdef __cplusplus |
| 6690 | extern "C" { |
| 6691 | #endif |
| 6692 | |
| 6693 | EOF |
| 6694 | # Now generate the symbol file. |
| 6695 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 6696 | |
| 6697 | cat <<EOF >> conftest.$ac_ext |
| 6698 | #if defined (__STDC__) && __STDC__ |
| 6699 | # define lt_ptr_t void * |
| 6700 | #else |
| 6701 | # define lt_ptr_t char * |
| 6702 | # define const |
| 6703 | #endif |
| 6704 | |
| 6705 | /* The mapping between symbol names and symbols. */ |
| 6706 | const struct { |
| 6707 | const char *name; |
| 6708 | lt_ptr_t address; |
| 6709 | } |
| 6710 | lt_preloaded_symbols[] = |
| 6711 | { |
| 6712 | EOF |
| 6713 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 6714 | cat <<\EOF >> conftest.$ac_ext |
| 6715 | {0, (lt_ptr_t) 0} |
| 6716 | }; |
| 6717 | |
| 6718 | #ifdef __cplusplus |
| 6719 | } |
| 6720 | #endif |
| 6721 | EOF |
| 6722 | # Now try linking the two files. |
| 6723 | mv conftest.$ac_objext conftstm.$ac_objext |
| 6724 | lt_save_LIBS="$LIBS" |
| 6725 | lt_save_CFLAGS="$CFLAGS" |
| 6726 | LIBS="conftstm.$ac_objext" |
| 6727 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 6728 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6729 | (eval $ac_link) 2>&5 |
| 6730 | ac_status=$? |
| 6731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6732 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 6733 | pipe_works=yes |
| 6734 | fi |
| 6735 | LIBS="$lt_save_LIBS" |
| 6736 | CFLAGS="$lt_save_CFLAGS" |
| 6737 | else |
| 6738 | echo "cannot find nm_test_func in $nlist" >&5 |
| 6739 | fi |
| 6740 | else |
| 6741 | echo "cannot find nm_test_var in $nlist" >&5 |
| 6742 | fi |
| 6743 | else |
| 6744 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 6745 | fi |
| 6746 | else |
| 6747 | echo "$progname: failed program was:" >&5 |
| 6748 | cat conftest.$ac_ext >&5 |
| 6749 | fi |
| 6750 | rm -f conftest* conftst* |
| 6751 | |
| 6752 | # Do not use the global_symbol_pipe unless it works. |
| 6753 | if test "$pipe_works" = yes; then |
| 6754 | break |
| 6755 | else |
| 6756 | lt_cv_sys_global_symbol_pipe= |
| 6757 | fi |
| 6758 | done |
| 6759 | |
| 6760 | fi |
| 6761 | |
| 6762 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 6763 | lt_cv_sys_global_symbol_to_cdecl= |
| 6764 | fi |
| 6765 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6766 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 6767 | echo "${ECHO_T}failed" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6768 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6769 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 6770 | echo "${ECHO_T}ok" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6771 | fi |
| 6772 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6773 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 6774 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6775 | if test "${lt_cv_objdir+set}" = set; then |
| 6776 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6777 | else |
| 6778 | rm -f .libs 2>/dev/null |
| 6779 | mkdir .libs 2>/dev/null |
| 6780 | if test -d .libs; then |
| 6781 | lt_cv_objdir=.libs |
| 6782 | else |
| 6783 | # MS-DOS does not allow filenames that begin with a dot. |
| 6784 | lt_cv_objdir=_libs |
| 6785 | fi |
| 6786 | rmdir .libs 2>/dev/null |
| 6787 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6788 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
| 6789 | echo "${ECHO_T}$lt_cv_objdir" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6790 | objdir=$lt_cv_objdir |
| 6791 | |
| 6792 | |
| 6793 | |
| 6794 | |
| 6795 | |
| 6796 | case $host_os in |
| 6797 | aix3*) |
| 6798 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 6799 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 6800 | # vanish in a puff of smoke. |
| 6801 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 6802 | COLLECT_NAMES= |
| 6803 | export COLLECT_NAMES |
| 6804 | fi |
| 6805 | ;; |
| 6806 | esac |
| 6807 | |
| 6808 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 6809 | # metacharacters that are still active within double-quoted strings. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6810 | Xsed='sed -e 1s/^X//' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6811 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 6812 | |
| 6813 | # Same as above, but do not quote variable references. |
| 6814 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 6815 | |
| 6816 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 6817 | # double_quote_subst'ed string. |
| 6818 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 6819 | |
| 6820 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 6821 | no_glob_subst='s/\*/\\\*/g' |
| 6822 | |
| 6823 | # Constants: |
| 6824 | rm="rm -f" |
| 6825 | |
| 6826 | # Global variables: |
| 6827 | default_ofile=libtool |
| 6828 | can_build_shared=yes |
| 6829 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6830 | # All known linkers require a `.a' archive for static linking (except MSVC, |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6831 | # which needs '.lib'). |
| 6832 | libext=a |
| 6833 | ltmain="$ac_aux_dir/ltmain.sh" |
| 6834 | ofile="$default_ofile" |
| 6835 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 6836 | |
| 6837 | if test -n "$ac_tool_prefix"; then |
| 6838 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 6839 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6840 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6841 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6842 | if test "${ac_cv_prog_AR+set}" = set; then |
| 6843 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6844 | else |
| 6845 | if test -n "$AR"; then |
| 6846 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 6847 | else |
| 6848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6849 | for as_dir in $PATH |
| 6850 | do |
| 6851 | IFS=$as_save_IFS |
| 6852 | test -z "$as_dir" && as_dir=. |
| 6853 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6854 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6855 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 6856 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6857 | break 2 |
| 6858 | fi |
| 6859 | done |
| 6860 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6861 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6862 | |
| 6863 | fi |
| 6864 | fi |
| 6865 | AR=$ac_cv_prog_AR |
| 6866 | if test -n "$AR"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6867 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 6868 | echo "${ECHO_T}$AR" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6869 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6870 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6871 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6872 | fi |
| 6873 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6874 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6875 | fi |
| 6876 | if test -z "$ac_cv_prog_AR"; then |
| 6877 | ac_ct_AR=$AR |
| 6878 | # Extract the first word of "ar", so it can be a program name with args. |
| 6879 | set dummy ar; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6880 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6881 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6882 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 6883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6884 | else |
| 6885 | if test -n "$ac_ct_AR"; then |
| 6886 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 6887 | else |
| 6888 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6889 | for as_dir in $PATH |
| 6890 | do |
| 6891 | IFS=$as_save_IFS |
| 6892 | test -z "$as_dir" && as_dir=. |
| 6893 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6894 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6895 | ac_cv_prog_ac_ct_AR="ar" |
| 6896 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6897 | break 2 |
| 6898 | fi |
| 6899 | done |
| 6900 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6901 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6902 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6903 | fi |
| 6904 | fi |
| 6905 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 6906 | if test -n "$ac_ct_AR"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6907 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 6908 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6909 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6910 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6911 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6912 | fi |
| 6913 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6914 | if test "x$ac_ct_AR" = x; then |
| 6915 | AR="false" |
| 6916 | else |
| 6917 | case $cross_compiling:$ac_tool_warned in |
| 6918 | yes:) |
| 6919 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6920 | whose name does not start with the host triplet. If you think this |
| 6921 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6922 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6923 | whose name does not start with the host triplet. If you think this |
| 6924 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6925 | ac_tool_warned=yes ;; |
| 6926 | esac |
| 6927 | AR=$ac_ct_AR |
| 6928 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6929 | else |
| 6930 | AR="$ac_cv_prog_AR" |
| 6931 | fi |
| 6932 | |
| 6933 | if test -n "$ac_tool_prefix"; then |
| 6934 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6935 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6936 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6937 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6938 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 6939 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6940 | else |
| 6941 | if test -n "$RANLIB"; then |
| 6942 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6943 | else |
| 6944 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6945 | for as_dir in $PATH |
| 6946 | do |
| 6947 | IFS=$as_save_IFS |
| 6948 | test -z "$as_dir" && as_dir=. |
| 6949 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6950 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6951 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 6952 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6953 | break 2 |
| 6954 | fi |
| 6955 | done |
| 6956 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6957 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6958 | |
| 6959 | fi |
| 6960 | fi |
| 6961 | RANLIB=$ac_cv_prog_RANLIB |
| 6962 | if test -n "$RANLIB"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6963 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 6964 | echo "${ECHO_T}$RANLIB" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6965 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6966 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6967 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6968 | fi |
| 6969 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6970 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6971 | fi |
| 6972 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6973 | ac_ct_RANLIB=$RANLIB |
| 6974 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6975 | set dummy ranlib; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6976 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6977 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6978 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 6979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6980 | else |
| 6981 | if test -n "$ac_ct_RANLIB"; then |
| 6982 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6983 | else |
| 6984 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6985 | for as_dir in $PATH |
| 6986 | do |
| 6987 | IFS=$as_save_IFS |
| 6988 | test -z "$as_dir" && as_dir=. |
| 6989 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6990 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6991 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 6992 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6993 | break 2 |
| 6994 | fi |
| 6995 | done |
| 6996 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6997 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6998 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6999 | fi |
| 7000 | fi |
| 7001 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 7002 | if test -n "$ac_ct_RANLIB"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7003 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 7004 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7005 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7006 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7007 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7008 | fi |
| 7009 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7010 | if test "x$ac_ct_RANLIB" = x; then |
| 7011 | RANLIB=":" |
| 7012 | else |
| 7013 | case $cross_compiling:$ac_tool_warned in |
| 7014 | yes:) |
| 7015 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 7016 | whose name does not start with the host triplet. If you think this |
| 7017 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 7018 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 7019 | whose name does not start with the host triplet. If you think this |
| 7020 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 7021 | ac_tool_warned=yes ;; |
| 7022 | esac |
| 7023 | RANLIB=$ac_ct_RANLIB |
| 7024 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7025 | else |
| 7026 | RANLIB="$ac_cv_prog_RANLIB" |
| 7027 | fi |
| 7028 | |
| 7029 | if test -n "$ac_tool_prefix"; then |
| 7030 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 7031 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7032 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7033 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7034 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 7035 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7036 | else |
| 7037 | if test -n "$STRIP"; then |
| 7038 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 7039 | else |
| 7040 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7041 | for as_dir in $PATH |
| 7042 | do |
| 7043 | IFS=$as_save_IFS |
| 7044 | test -z "$as_dir" && as_dir=. |
| 7045 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7046 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7047 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 7048 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7049 | break 2 |
| 7050 | fi |
| 7051 | done |
| 7052 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7053 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7054 | |
| 7055 | fi |
| 7056 | fi |
| 7057 | STRIP=$ac_cv_prog_STRIP |
| 7058 | if test -n "$STRIP"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7059 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 7060 | echo "${ECHO_T}$STRIP" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7061 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7062 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7063 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7064 | fi |
| 7065 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7066 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7067 | fi |
| 7068 | if test -z "$ac_cv_prog_STRIP"; then |
| 7069 | ac_ct_STRIP=$STRIP |
| 7070 | # Extract the first word of "strip", so it can be a program name with args. |
| 7071 | set dummy strip; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7072 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7073 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7074 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 7075 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7076 | else |
| 7077 | if test -n "$ac_ct_STRIP"; then |
| 7078 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 7079 | else |
| 7080 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7081 | for as_dir in $PATH |
| 7082 | do |
| 7083 | IFS=$as_save_IFS |
| 7084 | test -z "$as_dir" && as_dir=. |
| 7085 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7086 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7087 | ac_cv_prog_ac_ct_STRIP="strip" |
| 7088 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7089 | break 2 |
| 7090 | fi |
| 7091 | done |
| 7092 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7093 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7094 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7095 | fi |
| 7096 | fi |
| 7097 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 7098 | if test -n "$ac_ct_STRIP"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7099 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 7100 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7101 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7102 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7103 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7104 | fi |
| 7105 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7106 | if test "x$ac_ct_STRIP" = x; then |
| 7107 | STRIP=":" |
| 7108 | else |
| 7109 | case $cross_compiling:$ac_tool_warned in |
| 7110 | yes:) |
| 7111 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 7112 | whose name does not start with the host triplet. If you think this |
| 7113 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 7114 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 7115 | whose name does not start with the host triplet. If you think this |
| 7116 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 7117 | ac_tool_warned=yes ;; |
| 7118 | esac |
| 7119 | STRIP=$ac_ct_STRIP |
| 7120 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7121 | else |
| 7122 | STRIP="$ac_cv_prog_STRIP" |
| 7123 | fi |
| 7124 | |
| 7125 | |
| 7126 | old_CC="$CC" |
| 7127 | old_CFLAGS="$CFLAGS" |
| 7128 | |
| 7129 | # Set sane defaults for various variables |
| 7130 | test -z "$AR" && AR=ar |
| 7131 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 7132 | test -z "$AS" && AS=as |
| 7133 | test -z "$CC" && CC=cc |
| 7134 | test -z "$LTCC" && LTCC=$CC |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7135 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7136 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 7137 | test -z "$LD" && LD=ld |
| 7138 | test -z "$LN_S" && LN_S="ln -s" |
| 7139 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 7140 | test -z "$NM" && NM=nm |
| 7141 | test -z "$SED" && SED=sed |
| 7142 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 7143 | test -z "$RANLIB" && RANLIB=: |
| 7144 | test -z "$STRIP" && STRIP=: |
| 7145 | test -z "$ac_objext" && ac_objext=o |
| 7146 | |
| 7147 | # Determine commands to create old-style static archives. |
| 7148 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 7149 | old_postinstall_cmds='chmod 644 $oldlib' |
| 7150 | old_postuninstall_cmds= |
| 7151 | |
| 7152 | if test -n "$RANLIB"; then |
| 7153 | case $host_os in |
| 7154 | openbsd*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7155 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7156 | ;; |
| 7157 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7158 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7159 | ;; |
| 7160 | esac |
| 7161 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 7162 | fi |
| 7163 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7164 | for cc_temp in $compiler""; do |
| 7165 | case $cc_temp in |
| 7166 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 7167 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 7168 | \-*) ;; |
| 7169 | *) break;; |
| 7170 | esac |
| 7171 | done |
| 7172 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 7173 | |
| 7174 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7175 | # Only perform the check for file, if the check method requires it |
| 7176 | case $deplibs_check_method in |
| 7177 | file_magic*) |
| 7178 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7179 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 7180 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7181 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 7182 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7183 | else |
| 7184 | case $MAGIC_CMD in |
| 7185 | [\\/*] | ?:[\\/]*) |
| 7186 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 7187 | ;; |
| 7188 | *) |
| 7189 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 7190 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 7191 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 7192 | for ac_dir in $ac_dummy; do |
| 7193 | IFS="$lt_save_ifs" |
| 7194 | test -z "$ac_dir" && ac_dir=. |
| 7195 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 7196 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 7197 | if test -n "$file_magic_test_file"; then |
| 7198 | case $deplibs_check_method in |
| 7199 | "file_magic "*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7200 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7201 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7202 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 7203 | $EGREP "$file_magic_regex" > /dev/null; then |
| 7204 | : |
| 7205 | else |
| 7206 | cat <<EOF 1>&2 |
| 7207 | |
| 7208 | *** Warning: the command libtool uses to detect shared libraries, |
| 7209 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 7210 | *** The result is that libtool may fail to recognize shared libraries |
| 7211 | *** as such. This will affect the creation of libtool libraries that |
| 7212 | *** depend on shared libraries, but programs linked with such libtool |
| 7213 | *** libraries will work regardless of this problem. Nevertheless, you |
| 7214 | *** may want to report the problem to your system manager and/or to |
| 7215 | *** bug-libtool@gnu.org |
| 7216 | |
| 7217 | EOF |
| 7218 | fi ;; |
| 7219 | esac |
| 7220 | fi |
| 7221 | break |
| 7222 | fi |
| 7223 | done |
| 7224 | IFS="$lt_save_ifs" |
| 7225 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 7226 | ;; |
| 7227 | esac |
| 7228 | fi |
| 7229 | |
| 7230 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7231 | if test -n "$MAGIC_CMD"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7232 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 7233 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7234 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7235 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7236 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7237 | fi |
| 7238 | |
| 7239 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 7240 | if test -n "$ac_tool_prefix"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7241 | { echo "$as_me:$LINENO: checking for file" >&5 |
| 7242 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7243 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 7244 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7245 | else |
| 7246 | case $MAGIC_CMD in |
| 7247 | [\\/*] | ?:[\\/]*) |
| 7248 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 7249 | ;; |
| 7250 | *) |
| 7251 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 7252 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 7253 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 7254 | for ac_dir in $ac_dummy; do |
| 7255 | IFS="$lt_save_ifs" |
| 7256 | test -z "$ac_dir" && ac_dir=. |
| 7257 | if test -f $ac_dir/file; then |
| 7258 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 7259 | if test -n "$file_magic_test_file"; then |
| 7260 | case $deplibs_check_method in |
| 7261 | "file_magic "*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7262 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7263 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7264 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 7265 | $EGREP "$file_magic_regex" > /dev/null; then |
| 7266 | : |
| 7267 | else |
| 7268 | cat <<EOF 1>&2 |
| 7269 | |
| 7270 | *** Warning: the command libtool uses to detect shared libraries, |
| 7271 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 7272 | *** The result is that libtool may fail to recognize shared libraries |
| 7273 | *** as such. This will affect the creation of libtool libraries that |
| 7274 | *** depend on shared libraries, but programs linked with such libtool |
| 7275 | *** libraries will work regardless of this problem. Nevertheless, you |
| 7276 | *** may want to report the problem to your system manager and/or to |
| 7277 | *** bug-libtool@gnu.org |
| 7278 | |
| 7279 | EOF |
| 7280 | fi ;; |
| 7281 | esac |
| 7282 | fi |
| 7283 | break |
| 7284 | fi |
| 7285 | done |
| 7286 | IFS="$lt_save_ifs" |
| 7287 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 7288 | ;; |
| 7289 | esac |
| 7290 | fi |
| 7291 | |
| 7292 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7293 | if test -n "$MAGIC_CMD"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7294 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 7295 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7296 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7297 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7298 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7299 | fi |
| 7300 | |
| 7301 | else |
| 7302 | MAGIC_CMD=: |
| 7303 | fi |
| 7304 | fi |
| 7305 | |
| 7306 | fi |
| 7307 | ;; |
| 7308 | esac |
| 7309 | |
| 7310 | enable_dlopen=no |
| 7311 | enable_win32_dll=no |
| 7312 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7313 | # Check whether --enable-libtool-lock was given. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7314 | if test "${enable_libtool_lock+set}" = set; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7315 | enableval=$enable_libtool_lock; |
| 7316 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7317 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7318 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 7319 | |
| 7320 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7321 | # Check whether --with-pic was given. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7322 | if test "${with_pic+set}" = set; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7323 | withval=$with_pic; pic_mode="$withval" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7324 | else |
| 7325 | pic_mode=default |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7326 | fi |
| 7327 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7328 | test -z "$pic_mode" && pic_mode=default |
| 7329 | |
| 7330 | # Use C for the default configuration in the libtool script |
| 7331 | tagname= |
| 7332 | lt_save_CC="$CC" |
| 7333 | ac_ext=c |
| 7334 | ac_cpp='$CPP $CPPFLAGS' |
| 7335 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7336 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7337 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7338 | |
| 7339 | |
| 7340 | # Source file extension for C test sources. |
| 7341 | ac_ext=c |
| 7342 | |
| 7343 | # Object file extension for compiled C test sources. |
| 7344 | objext=o |
| 7345 | objext=$objext |
| 7346 | |
| 7347 | # Code to be used in simple compile tests |
| 7348 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 7349 | |
| 7350 | # Code to be used in simple link tests |
| 7351 | lt_simple_link_test_code='int main(){return(0);}\n' |
| 7352 | |
| 7353 | |
| 7354 | # If no C compiler was specified, use CC. |
| 7355 | LTCC=${LTCC-"$CC"} |
| 7356 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7357 | # If no C compiler flags were specified, use CFLAGS. |
| 7358 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 7359 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7360 | # Allow CC to be a program name with arguments. |
| 7361 | compiler=$CC |
| 7362 | |
| 7363 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7364 | # save warnings/boilerplate of simple test code |
| 7365 | ac_outfile=conftest.$ac_objext |
| 7366 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 7367 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 7368 | _lt_compiler_boilerplate=`cat conftest.err` |
| 7369 | $rm conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7370 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7371 | ac_outfile=conftest.$ac_objext |
| 7372 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 7373 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 7374 | _lt_linker_boilerplate=`cat conftest.err` |
| 7375 | $rm conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7376 | |
| 7377 | |
| 7378 | |
| 7379 | lt_prog_compiler_no_builtin_flag= |
| 7380 | |
| 7381 | if test "$GCC" = yes; then |
| 7382 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 7383 | |
| 7384 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7385 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 7386 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7387 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 7388 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7389 | else |
| 7390 | lt_cv_prog_compiler_rtti_exceptions=no |
| 7391 | ac_outfile=conftest.$ac_objext |
| 7392 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 7393 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 7394 | # Insert the option either (1) after the last *FLAGS variable, or |
| 7395 | # (2) before a word containing "conftest.", or (3) at the end. |
| 7396 | # Note that $ac_compile itself does not contain backslashes and begins |
| 7397 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 7398 | # The option is referenced via a variable to avoid confusing sed. |
| 7399 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7400 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7401 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 7402 | -e 's:$: $lt_compiler_flag:'` |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 7403 | (eval echo "\"\$as_me:7403: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7404 | (eval "$lt_compile" 2>conftest.err) |
| 7405 | ac_status=$? |
| 7406 | cat conftest.err >&5 |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 7407 | echo "$as_me:7407: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7408 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 7409 | # The compiler can only warn and ignore the option if not recognized |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7410 | # So say no if there are warnings other than the usual output. |
| 7411 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 7412 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 7413 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7414 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 7415 | fi |
| 7416 | fi |
| 7417 | $rm conftest* |
| 7418 | |
| 7419 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7420 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 7421 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7422 | |
| 7423 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 7424 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 7425 | else |
| 7426 | : |
| 7427 | fi |
| 7428 | |
| 7429 | fi |
| 7430 | |
| 7431 | lt_prog_compiler_wl= |
| 7432 | lt_prog_compiler_pic= |
| 7433 | lt_prog_compiler_static= |
| 7434 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7435 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 7436 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7437 | |
| 7438 | if test "$GCC" = yes; then |
| 7439 | lt_prog_compiler_wl='-Wl,' |
| 7440 | lt_prog_compiler_static='-static' |
| 7441 | |
| 7442 | case $host_os in |
| 7443 | aix*) |
| 7444 | # All AIX code is PIC. |
| 7445 | if test "$host_cpu" = ia64; then |
| 7446 | # AIX 5 now supports IA64 processor |
| 7447 | lt_prog_compiler_static='-Bstatic' |
| 7448 | fi |
| 7449 | ;; |
| 7450 | |
| 7451 | amigaos*) |
| 7452 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 7453 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 7454 | # like `-m68040'. |
| 7455 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 7456 | ;; |
| 7457 | |
| 7458 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 7459 | # PIC is the default for these OSes. |
| 7460 | ;; |
| 7461 | |
| 7462 | mingw* | pw32* | os2*) |
| 7463 | # This hack is so that the source file can tell whether it is being |
| 7464 | # built for inclusion in a dll (and should export symbols for example). |
| 7465 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 7466 | ;; |
| 7467 | |
| 7468 | darwin* | rhapsody*) |
| 7469 | # PIC is the default on this platform |
| 7470 | # Common symbols not allowed in MH_DYLIB files |
| 7471 | lt_prog_compiler_pic='-fno-common' |
| 7472 | ;; |
| 7473 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7474 | interix3*) |
| 7475 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 7476 | # Instead, we relocate shared libraries at runtime. |
| 7477 | ;; |
| 7478 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7479 | msdosdjgpp*) |
| 7480 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 7481 | # on systems that don't support them. |
| 7482 | lt_prog_compiler_can_build_shared=no |
| 7483 | enable_shared=no |
| 7484 | ;; |
| 7485 | |
| 7486 | sysv4*MP*) |
| 7487 | if test -d /usr/nec; then |
| 7488 | lt_prog_compiler_pic=-Kconform_pic |
| 7489 | fi |
| 7490 | ;; |
| 7491 | |
| 7492 | hpux*) |
| 7493 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 7494 | # not for PA HP-UX. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7495 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7496 | hppa*64*|ia64*) |
| 7497 | # +Z the default |
| 7498 | ;; |
| 7499 | *) |
| 7500 | lt_prog_compiler_pic='-fPIC' |
| 7501 | ;; |
| 7502 | esac |
| 7503 | ;; |
| 7504 | |
| 7505 | *) |
| 7506 | lt_prog_compiler_pic='-fPIC' |
| 7507 | ;; |
| 7508 | esac |
| 7509 | else |
| 7510 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 7511 | case $host_os in |
| 7512 | aix*) |
| 7513 | lt_prog_compiler_wl='-Wl,' |
| 7514 | if test "$host_cpu" = ia64; then |
| 7515 | # AIX 5 now supports IA64 processor |
| 7516 | lt_prog_compiler_static='-Bstatic' |
| 7517 | else |
| 7518 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 7519 | fi |
| 7520 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7521 | darwin*) |
| 7522 | # PIC is the default on this platform |
| 7523 | # Common symbols not allowed in MH_DYLIB files |
| 7524 | case $cc_basename in |
| 7525 | xlc*) |
| 7526 | lt_prog_compiler_pic='-qnocommon' |
| 7527 | lt_prog_compiler_wl='-Wl,' |
| 7528 | ;; |
| 7529 | esac |
| 7530 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7531 | |
| 7532 | mingw* | pw32* | os2*) |
| 7533 | # This hack is so that the source file can tell whether it is being |
| 7534 | # built for inclusion in a dll (and should export symbols for example). |
| 7535 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 7536 | ;; |
| 7537 | |
| 7538 | hpux9* | hpux10* | hpux11*) |
| 7539 | lt_prog_compiler_wl='-Wl,' |
| 7540 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 7541 | # not for PA HP-UX. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7542 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7543 | hppa*64*|ia64*) |
| 7544 | # +Z the default |
| 7545 | ;; |
| 7546 | *) |
| 7547 | lt_prog_compiler_pic='+Z' |
| 7548 | ;; |
| 7549 | esac |
| 7550 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 7551 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
| 7552 | ;; |
| 7553 | |
| 7554 | irix5* | irix6* | nonstopux*) |
| 7555 | lt_prog_compiler_wl='-Wl,' |
| 7556 | # PIC (with -KPIC) is the default. |
| 7557 | lt_prog_compiler_static='-non_shared' |
| 7558 | ;; |
| 7559 | |
| 7560 | newsos6) |
| 7561 | lt_prog_compiler_pic='-KPIC' |
| 7562 | lt_prog_compiler_static='-Bstatic' |
| 7563 | ;; |
| 7564 | |
| 7565 | linux*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7566 | case $cc_basename in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7567 | icc* | ecc*) |
| 7568 | lt_prog_compiler_wl='-Wl,' |
| 7569 | lt_prog_compiler_pic='-KPIC' |
| 7570 | lt_prog_compiler_static='-static' |
| 7571 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7572 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 7573 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 7574 | # which looks to be a dead project) |
| 7575 | lt_prog_compiler_wl='-Wl,' |
| 7576 | lt_prog_compiler_pic='-fpic' |
| 7577 | lt_prog_compiler_static='-Bstatic' |
| 7578 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7579 | ccc*) |
| 7580 | lt_prog_compiler_wl='-Wl,' |
| 7581 | # All Alpha code is PIC. |
| 7582 | lt_prog_compiler_static='-non_shared' |
| 7583 | ;; |
| 7584 | esac |
| 7585 | ;; |
| 7586 | |
| 7587 | osf3* | osf4* | osf5*) |
| 7588 | lt_prog_compiler_wl='-Wl,' |
| 7589 | # All OSF/1 code is PIC. |
| 7590 | lt_prog_compiler_static='-non_shared' |
| 7591 | ;; |
| 7592 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7593 | solaris*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7594 | lt_prog_compiler_pic='-KPIC' |
| 7595 | lt_prog_compiler_static='-Bstatic' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7596 | case $cc_basename in |
| 7597 | f77* | f90* | f95*) |
| 7598 | lt_prog_compiler_wl='-Qoption ld ';; |
| 7599 | *) |
| 7600 | lt_prog_compiler_wl='-Wl,';; |
| 7601 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7602 | ;; |
| 7603 | |
| 7604 | sunos4*) |
| 7605 | lt_prog_compiler_wl='-Qoption ld ' |
| 7606 | lt_prog_compiler_pic='-PIC' |
| 7607 | lt_prog_compiler_static='-Bstatic' |
| 7608 | ;; |
| 7609 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7610 | sysv4 | sysv4.2uw2* | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7611 | lt_prog_compiler_wl='-Wl,' |
| 7612 | lt_prog_compiler_pic='-KPIC' |
| 7613 | lt_prog_compiler_static='-Bstatic' |
| 7614 | ;; |
| 7615 | |
| 7616 | sysv4*MP*) |
| 7617 | if test -d /usr/nec ;then |
| 7618 | lt_prog_compiler_pic='-Kconform_pic' |
| 7619 | lt_prog_compiler_static='-Bstatic' |
| 7620 | fi |
| 7621 | ;; |
| 7622 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7623 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 7624 | lt_prog_compiler_wl='-Wl,' |
| 7625 | lt_prog_compiler_pic='-KPIC' |
| 7626 | lt_prog_compiler_static='-Bstatic' |
| 7627 | ;; |
| 7628 | |
| 7629 | unicos*) |
| 7630 | lt_prog_compiler_wl='-Wl,' |
| 7631 | lt_prog_compiler_can_build_shared=no |
| 7632 | ;; |
| 7633 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7634 | uts4*) |
| 7635 | lt_prog_compiler_pic='-pic' |
| 7636 | lt_prog_compiler_static='-Bstatic' |
| 7637 | ;; |
| 7638 | |
| 7639 | *) |
| 7640 | lt_prog_compiler_can_build_shared=no |
| 7641 | ;; |
| 7642 | esac |
| 7643 | fi |
| 7644 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7645 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
| 7646 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7647 | |
| 7648 | # |
| 7649 | # Check to make sure the PIC flag actually works. |
| 7650 | # |
| 7651 | if test -n "$lt_prog_compiler_pic"; then |
| 7652 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7653 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 7654 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7655 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
| 7656 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7657 | else |
| 7658 | lt_prog_compiler_pic_works=no |
| 7659 | ac_outfile=conftest.$ac_objext |
| 7660 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 7661 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 7662 | # Insert the option either (1) after the last *FLAGS variable, or |
| 7663 | # (2) before a word containing "conftest.", or (3) at the end. |
| 7664 | # Note that $ac_compile itself does not contain backslashes and begins |
| 7665 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 7666 | # The option is referenced via a variable to avoid confusing sed. |
| 7667 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7668 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7669 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 7670 | -e 's:$: $lt_compiler_flag:'` |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 7671 | (eval echo "\"\$as_me:7671: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7672 | (eval "$lt_compile" 2>conftest.err) |
| 7673 | ac_status=$? |
| 7674 | cat conftest.err >&5 |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 7675 | echo "$as_me:7675: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7676 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 7677 | # The compiler can only warn and ignore the option if not recognized |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7678 | # So say no if there are warnings other than the usual output. |
| 7679 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 7680 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 7681 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7682 | lt_prog_compiler_pic_works=yes |
| 7683 | fi |
| 7684 | fi |
| 7685 | $rm conftest* |
| 7686 | |
| 7687 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7688 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
| 7689 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7690 | |
| 7691 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
| 7692 | case $lt_prog_compiler_pic in |
| 7693 | "" | " "*) ;; |
| 7694 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 7695 | esac |
| 7696 | else |
| 7697 | lt_prog_compiler_pic= |
| 7698 | lt_prog_compiler_can_build_shared=no |
| 7699 | fi |
| 7700 | |
| 7701 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7702 | case $host_os in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7703 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 7704 | *djgpp*) |
| 7705 | lt_prog_compiler_pic= |
| 7706 | ;; |
| 7707 | *) |
| 7708 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 7709 | ;; |
| 7710 | esac |
| 7711 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7712 | # |
| 7713 | # Check to make sure the static flag actually works. |
| 7714 | # |
| 7715 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 7716 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 7717 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 7718 | if test "${lt_prog_compiler_static_works+set}" = set; then |
| 7719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7720 | else |
| 7721 | lt_prog_compiler_static_works=no |
| 7722 | save_LDFLAGS="$LDFLAGS" |
| 7723 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 7724 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 7725 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 7726 | # The linker can only warn and ignore the option if not recognized |
| 7727 | # So say no if there are warnings |
| 7728 | if test -s conftest.err; then |
| 7729 | # Append any errors to the config.log. |
| 7730 | cat conftest.err 1>&5 |
| 7731 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 7732 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 7733 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 7734 | lt_prog_compiler_static_works=yes |
| 7735 | fi |
| 7736 | else |
| 7737 | lt_prog_compiler_static_works=yes |
| 7738 | fi |
| 7739 | fi |
| 7740 | $rm conftest* |
| 7741 | LDFLAGS="$save_LDFLAGS" |
| 7742 | |
| 7743 | fi |
| 7744 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
| 7745 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } |
| 7746 | |
| 7747 | if test x"$lt_prog_compiler_static_works" = xyes; then |
| 7748 | : |
| 7749 | else |
| 7750 | lt_prog_compiler_static= |
| 7751 | fi |
| 7752 | |
| 7753 | |
| 7754 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 7755 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7756 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
| 7757 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7758 | else |
| 7759 | lt_cv_prog_compiler_c_o=no |
| 7760 | $rm -r conftest 2>/dev/null |
| 7761 | mkdir conftest |
| 7762 | cd conftest |
| 7763 | mkdir out |
| 7764 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 7765 | |
| 7766 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 7767 | # Insert the option either (1) after the last *FLAGS variable, or |
| 7768 | # (2) before a word containing "conftest.", or (3) at the end. |
| 7769 | # Note that $ac_compile itself does not contain backslashes and begins |
| 7770 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 7771 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7772 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7773 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 7774 | -e 's:$: $lt_compiler_flag:'` |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 7775 | (eval echo "\"\$as_me:7775: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7776 | (eval "$lt_compile" 2>out/conftest.err) |
| 7777 | ac_status=$? |
| 7778 | cat out/conftest.err >&5 |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 7779 | echo "$as_me:7779: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7780 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 7781 | then |
| 7782 | # The compiler can only warn and ignore the option if not recognized |
| 7783 | # So say no if there are warnings |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7784 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 7785 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 7786 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7787 | lt_cv_prog_compiler_c_o=yes |
| 7788 | fi |
| 7789 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7790 | chmod u+w . 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7791 | $rm conftest* |
| 7792 | # SGI C++ compiler will create directory out/ii_files/ for |
| 7793 | # template instantiation |
| 7794 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 7795 | $rm out/* && rmdir out |
| 7796 | cd .. |
| 7797 | rmdir conftest |
| 7798 | $rm conftest* |
| 7799 | |
| 7800 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7801 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 7802 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7803 | |
| 7804 | |
| 7805 | hard_links="nottested" |
| 7806 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
| 7807 | # do not overwrite the value of need_locks provided by the user |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7808 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 7809 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7810 | hard_links=yes |
| 7811 | $rm conftest* |
| 7812 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 7813 | touch conftest.a |
| 7814 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 7815 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7816 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 7817 | echo "${ECHO_T}$hard_links" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7818 | if test "$hard_links" = no; then |
| 7819 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 7820 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 7821 | need_locks=warn |
| 7822 | fi |
| 7823 | else |
| 7824 | need_locks=no |
| 7825 | fi |
| 7826 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7827 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 7828 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7829 | |
| 7830 | runpath_var= |
| 7831 | allow_undefined_flag= |
| 7832 | enable_shared_with_static_runtimes=no |
| 7833 | archive_cmds= |
| 7834 | archive_expsym_cmds= |
| 7835 | old_archive_From_new_cmds= |
| 7836 | old_archive_from_expsyms_cmds= |
| 7837 | export_dynamic_flag_spec= |
| 7838 | whole_archive_flag_spec= |
| 7839 | thread_safe_flag_spec= |
| 7840 | hardcode_libdir_flag_spec= |
| 7841 | hardcode_libdir_flag_spec_ld= |
| 7842 | hardcode_libdir_separator= |
| 7843 | hardcode_direct=no |
| 7844 | hardcode_minus_L=no |
| 7845 | hardcode_shlibpath_var=unsupported |
| 7846 | link_all_deplibs=unknown |
| 7847 | hardcode_automatic=no |
| 7848 | module_cmds= |
| 7849 | module_expsym_cmds= |
| 7850 | always_export_symbols=no |
| 7851 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 7852 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 7853 | # included in the symbol list |
| 7854 | include_expsyms= |
| 7855 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 7856 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 7857 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 7858 | # as well as any symbol that contains `d'. |
| 7859 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 7860 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 7861 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 7862 | # the symbol is explicitly referenced. Since portable code cannot |
| 7863 | # rely on this symbol name, it's probably fine to never include it in |
| 7864 | # preloaded symbol tables. |
| 7865 | extract_expsyms_cmds= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7866 | # Just being paranoid about ensuring that cc_basename is set. |
| 7867 | for cc_temp in $compiler""; do |
| 7868 | case $cc_temp in |
| 7869 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 7870 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 7871 | \-*) ;; |
| 7872 | *) break;; |
| 7873 | esac |
| 7874 | done |
| 7875 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7876 | |
| 7877 | case $host_os in |
| 7878 | cygwin* | mingw* | pw32*) |
| 7879 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 7880 | # When not using gcc, we currently assume that we are using |
| 7881 | # Microsoft Visual C++. |
| 7882 | if test "$GCC" != yes; then |
| 7883 | with_gnu_ld=no |
| 7884 | fi |
| 7885 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7886 | interix*) |
| 7887 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 7888 | with_gnu_ld=yes |
| 7889 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7890 | openbsd*) |
| 7891 | with_gnu_ld=no |
| 7892 | ;; |
| 7893 | esac |
| 7894 | |
| 7895 | ld_shlibs=yes |
| 7896 | if test "$with_gnu_ld" = yes; then |
| 7897 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 7898 | wlarc='${wl}' |
| 7899 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7900 | # Set some defaults for GNU ld with shared library support. These |
| 7901 | # are reset later if shared libraries are not supported. Putting them |
| 7902 | # here allows them to be overridden if necessary. |
| 7903 | runpath_var=LD_RUN_PATH |
| 7904 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 7905 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 7906 | # ancient GNU ld didn't support --whole-archive et. al. |
| 7907 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 7908 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 7909 | else |
| 7910 | whole_archive_flag_spec= |
| 7911 | fi |
| 7912 | supports_anon_versioning=no |
| 7913 | case `$LD -v 2>/dev/null` in |
| 7914 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 7915 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 7916 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 7917 | *\ 2.11.*) ;; # other 2.11 versions |
| 7918 | *) supports_anon_versioning=yes ;; |
| 7919 | esac |
| 7920 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7921 | # See if GNU ld supports shared libraries. |
| 7922 | case $host_os in |
| 7923 | aix3* | aix4* | aix5*) |
| 7924 | # On AIX/PPC, the GNU linker is very broken |
| 7925 | if test "$host_cpu" != ia64; then |
| 7926 | ld_shlibs=no |
| 7927 | cat <<EOF 1>&2 |
| 7928 | |
| 7929 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 7930 | *** to be unable to reliably create shared libraries on AIX. |
| 7931 | *** Therefore, libtool is disabling shared libraries support. If you |
| 7932 | *** really care for shared libraries, you may want to modify your PATH |
| 7933 | *** so that a non-GNU linker is found, and then restart. |
| 7934 | |
| 7935 | EOF |
| 7936 | fi |
| 7937 | ;; |
| 7938 | |
| 7939 | amigaos*) |
| 7940 | 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)' |
| 7941 | hardcode_libdir_flag_spec='-L$libdir' |
| 7942 | hardcode_minus_L=yes |
| 7943 | |
| 7944 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 7945 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 7946 | # to version 4, is to share data among multiple programs linked |
| 7947 | # with the same dynamic library. Since this doesn't match the |
| 7948 | # behavior of shared libraries on other platforms, we can't use |
| 7949 | # them. |
| 7950 | ld_shlibs=no |
| 7951 | ;; |
| 7952 | |
| 7953 | beos*) |
| 7954 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 7955 | allow_undefined_flag=unsupported |
| 7956 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 7957 | # support --undefined. This deserves some investigation. FIXME |
| 7958 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7959 | else |
| 7960 | ld_shlibs=no |
| 7961 | fi |
| 7962 | ;; |
| 7963 | |
| 7964 | cygwin* | mingw* | pw32*) |
| 7965 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 7966 | # as there is no search path for DLLs. |
| 7967 | hardcode_libdir_flag_spec='-L$libdir' |
| 7968 | allow_undefined_flag=unsupported |
| 7969 | always_export_symbols=no |
| 7970 | enable_shared_with_static_runtimes=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7971 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7972 | |
| 7973 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7974 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7975 | # If the export-symbols file already is a .def file (1st line |
| 7976 | # is EXPORTS), use it as is; otherwise, prepend... |
| 7977 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 7978 | cp $export_symbols $output_objdir/$soname.def; |
| 7979 | else |
| 7980 | echo EXPORTS > $output_objdir/$soname.def; |
| 7981 | cat $export_symbols >> $output_objdir/$soname.def; |
| 7982 | fi~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7983 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7984 | else |
| 7985 | ld_shlibs=no |
| 7986 | fi |
| 7987 | ;; |
| 7988 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7989 | interix3*) |
| 7990 | hardcode_direct=no |
| 7991 | hardcode_shlibpath_var=no |
| 7992 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 7993 | export_dynamic_flag_spec='${wl}-E' |
| 7994 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 7995 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 7996 | # default) and relocated if they conflict, which is a slow very memory |
| 7997 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 7998 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 7999 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 8000 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 8001 | 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' |
| 8002 | ;; |
| 8003 | |
| 8004 | linux*) |
| 8005 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 8006 | tmp_addflag= |
| 8007 | case $cc_basename,$host_cpu in |
| 8008 | pgcc*) # Portland Group C compiler |
| 8009 | 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' |
| 8010 | tmp_addflag=' $pic_flag' |
| 8011 | ;; |
| 8012 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 8013 | 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' |
| 8014 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 8015 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 8016 | tmp_addflag=' -i_dynamic' ;; |
| 8017 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 8018 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 8019 | ifc* | ifort*) # Intel Fortran compiler |
| 8020 | tmp_addflag=' -nofor_main' ;; |
| 8021 | esac |
| 8022 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8023 | |
| 8024 | if test $supports_anon_versioning = yes; then |
| 8025 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 8026 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 8027 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 8028 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 8029 | fi |
| 8030 | else |
| 8031 | ld_shlibs=no |
| 8032 | fi |
| 8033 | ;; |
| 8034 | |
| 8035 | netbsd*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8036 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 8037 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 8038 | wlarc= |
| 8039 | else |
| 8040 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8041 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 8042 | fi |
| 8043 | ;; |
| 8044 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8045 | solaris*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8046 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 8047 | ld_shlibs=no |
| 8048 | cat <<EOF 1>&2 |
| 8049 | |
| 8050 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 8051 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 8052 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 8053 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 8054 | *** your PATH or compiler configuration so that the native linker is |
| 8055 | *** used, and then restart. |
| 8056 | |
| 8057 | EOF |
| 8058 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 8059 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8060 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 8061 | else |
| 8062 | ld_shlibs=no |
| 8063 | fi |
| 8064 | ;; |
| 8065 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8066 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 8067 | case `$LD -v 2>&1` in |
| 8068 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 8069 | ld_shlibs=no |
| 8070 | cat <<_LT_EOF 1>&2 |
| 8071 | |
| 8072 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 8073 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 8074 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 8075 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 8076 | *** your PATH or compiler configuration so that the native linker is |
| 8077 | *** used, and then restart. |
| 8078 | |
| 8079 | _LT_EOF |
| 8080 | ;; |
| 8081 | *) |
| 8082 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 8083 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 8084 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 8085 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 8086 | else |
| 8087 | ld_shlibs=no |
| 8088 | fi |
| 8089 | ;; |
| 8090 | esac |
| 8091 | ;; |
| 8092 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8093 | sunos4*) |
| 8094 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 8095 | wlarc= |
| 8096 | hardcode_direct=yes |
| 8097 | hardcode_shlibpath_var=no |
| 8098 | ;; |
| 8099 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8100 | *) |
| 8101 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 8102 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8103 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 8104 | else |
| 8105 | ld_shlibs=no |
| 8106 | fi |
| 8107 | ;; |
| 8108 | esac |
| 8109 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8110 | if test "$ld_shlibs" = no; then |
| 8111 | runpath_var= |
| 8112 | hardcode_libdir_flag_spec= |
| 8113 | export_dynamic_flag_spec= |
| 8114 | whole_archive_flag_spec= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8115 | fi |
| 8116 | else |
| 8117 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 8118 | case $host_os in |
| 8119 | aix3*) |
| 8120 | allow_undefined_flag=unsupported |
| 8121 | always_export_symbols=yes |
| 8122 | 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' |
| 8123 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 8124 | # are no directories specified by -L. |
| 8125 | hardcode_minus_L=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8126 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8127 | # Neither direct hardcoding nor static linking is supported with a |
| 8128 | # broken collect2. |
| 8129 | hardcode_direct=unsupported |
| 8130 | fi |
| 8131 | ;; |
| 8132 | |
| 8133 | aix4* | aix5*) |
| 8134 | if test "$host_cpu" = ia64; then |
| 8135 | # On IA64, the linker does run time linking by default, so we don't |
| 8136 | # have to do anything special. |
| 8137 | aix_use_runtimelinking=no |
| 8138 | exp_sym_flag='-Bexport' |
| 8139 | no_entry_flag="" |
| 8140 | else |
| 8141 | # If we're using GNU nm, then we don't want the "-C" option. |
| 8142 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 8143 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 8144 | 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' |
| 8145 | else |
| 8146 | 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' |
| 8147 | fi |
| 8148 | aix_use_runtimelinking=no |
| 8149 | |
| 8150 | # Test if we are trying to use run time linking or normal |
| 8151 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 8152 | # need to do runtime linking. |
| 8153 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 8154 | for ld_flag in $LDFLAGS; do |
| 8155 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 8156 | aix_use_runtimelinking=yes |
| 8157 | break |
| 8158 | fi |
| 8159 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8160 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8161 | esac |
| 8162 | |
| 8163 | exp_sym_flag='-bexport' |
| 8164 | no_entry_flag='-bnoentry' |
| 8165 | fi |
| 8166 | |
| 8167 | # When large executables or shared objects are built, AIX ld can |
| 8168 | # have problems creating the table of contents. If linking a library |
| 8169 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 8170 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 8171 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 8172 | |
| 8173 | archive_cmds='' |
| 8174 | hardcode_direct=yes |
| 8175 | hardcode_libdir_separator=':' |
| 8176 | link_all_deplibs=yes |
| 8177 | |
| 8178 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8179 | case $host_os in aix4.[012]|aix4.[012].*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8180 | # We only want to do this on AIX 4.2 and lower, the check |
| 8181 | # below for broken collect2 doesn't work under 4.3+ |
| 8182 | collect2name=`${CC} -print-prog-name=collect2` |
| 8183 | if test -f "$collect2name" && \ |
| 8184 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 8185 | then |
| 8186 | # We have reworked collect2 |
| 8187 | hardcode_direct=yes |
| 8188 | else |
| 8189 | # We have old collect2 |
| 8190 | hardcode_direct=unsupported |
| 8191 | # It fails to find uninstalled libraries when the uninstalled |
| 8192 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 8193 | # to unsupported forces relinking |
| 8194 | hardcode_minus_L=yes |
| 8195 | hardcode_libdir_flag_spec='-L$libdir' |
| 8196 | hardcode_libdir_separator= |
| 8197 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8198 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8199 | esac |
| 8200 | shared_flag='-shared' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8201 | if test "$aix_use_runtimelinking" = yes; then |
| 8202 | shared_flag="$shared_flag "'${wl}-G' |
| 8203 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8204 | else |
| 8205 | # not using gcc |
| 8206 | if test "$host_cpu" = ia64; then |
| 8207 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 8208 | # chokes on -Wl,-G. The following line is correct: |
| 8209 | shared_flag='-G' |
| 8210 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8211 | if test "$aix_use_runtimelinking" = yes; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8212 | shared_flag='${wl}-G' |
| 8213 | else |
| 8214 | shared_flag='${wl}-bM:SRE' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8215 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8216 | fi |
| 8217 | fi |
| 8218 | |
| 8219 | # It seems that -bexpall does not export symbols beginning with |
| 8220 | # underscore (_), so it is better to generate a list of symbols to export. |
| 8221 | always_export_symbols=yes |
| 8222 | if test "$aix_use_runtimelinking" = yes; then |
| 8223 | # Warning - without using the other runtime loading flags (-brtl), |
| 8224 | # -berok will link without error, but may produce a broken library. |
| 8225 | allow_undefined_flag='-berok' |
| 8226 | # Determine the default libpath from the value encoded in an empty executable. |
| 8227 | cat >conftest.$ac_ext <<_ACEOF |
| 8228 | /* confdefs.h. */ |
| 8229 | _ACEOF |
| 8230 | cat confdefs.h >>conftest.$ac_ext |
| 8231 | cat >>conftest.$ac_ext <<_ACEOF |
| 8232 | /* end confdefs.h. */ |
| 8233 | |
| 8234 | int |
| 8235 | main () |
| 8236 | { |
| 8237 | |
| 8238 | ; |
| 8239 | return 0; |
| 8240 | } |
| 8241 | _ACEOF |
| 8242 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8243 | if { (ac_try="$ac_link" |
| 8244 | case "(($ac_try" in |
| 8245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8246 | *) ac_try_echo=$ac_try;; |
| 8247 | esac |
| 8248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8249 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8250 | ac_status=$? |
| 8251 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8252 | rm -f conftest.er1 |
| 8253 | cat conftest.err >&5 |
| 8254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8255 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8256 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8257 | { (case "(($ac_try" in |
| 8258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8259 | *) ac_try_echo=$ac_try;; |
| 8260 | esac |
| 8261 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8262 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8263 | ac_status=$? |
| 8264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8265 | (exit $ac_status); }; } && |
| 8266 | { ac_try='test -s conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8267 | { (case "(($ac_try" in |
| 8268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8269 | *) ac_try_echo=$ac_try;; |
| 8270 | esac |
| 8271 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8272 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8273 | ac_status=$? |
| 8274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8275 | (exit $ac_status); }; }; then |
| 8276 | |
| 8277 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 8278 | }'` |
| 8279 | # Check for a 64-bit object if we didn't find anything. |
| 8280 | 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; } |
| 8281 | }'`; fi |
| 8282 | else |
| 8283 | echo "$as_me: failed program was:" >&5 |
| 8284 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8285 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8286 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8287 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8288 | |
| 8289 | rm -f core conftest.err conftest.$ac_objext \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8290 | conftest$ac_exeext conftest.$ac_ext |
| 8291 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 8292 | |
| 8293 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8294 | 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" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8295 | else |
| 8296 | if test "$host_cpu" = ia64; then |
| 8297 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 8298 | allow_undefined_flag="-z nodefs" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8299 | 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" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8300 | else |
| 8301 | # Determine the default libpath from the value encoded in an empty executable. |
| 8302 | cat >conftest.$ac_ext <<_ACEOF |
| 8303 | /* confdefs.h. */ |
| 8304 | _ACEOF |
| 8305 | cat confdefs.h >>conftest.$ac_ext |
| 8306 | cat >>conftest.$ac_ext <<_ACEOF |
| 8307 | /* end confdefs.h. */ |
| 8308 | |
| 8309 | int |
| 8310 | main () |
| 8311 | { |
| 8312 | |
| 8313 | ; |
| 8314 | return 0; |
| 8315 | } |
| 8316 | _ACEOF |
| 8317 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8318 | if { (ac_try="$ac_link" |
| 8319 | case "(($ac_try" in |
| 8320 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8321 | *) ac_try_echo=$ac_try;; |
| 8322 | esac |
| 8323 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8324 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8325 | ac_status=$? |
| 8326 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8327 | rm -f conftest.er1 |
| 8328 | cat conftest.err >&5 |
| 8329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8330 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8331 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8332 | { (case "(($ac_try" in |
| 8333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8334 | *) ac_try_echo=$ac_try;; |
| 8335 | esac |
| 8336 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8337 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8338 | ac_status=$? |
| 8339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8340 | (exit $ac_status); }; } && |
| 8341 | { ac_try='test -s conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8342 | { (case "(($ac_try" in |
| 8343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8344 | *) ac_try_echo=$ac_try;; |
| 8345 | esac |
| 8346 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8347 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8348 | ac_status=$? |
| 8349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8350 | (exit $ac_status); }; }; then |
| 8351 | |
| 8352 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 8353 | }'` |
| 8354 | # Check for a 64-bit object if we didn't find anything. |
| 8355 | 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; } |
| 8356 | }'`; fi |
| 8357 | else |
| 8358 | echo "$as_me: failed program was:" >&5 |
| 8359 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8360 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8361 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8362 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8363 | |
| 8364 | rm -f core conftest.err conftest.$ac_objext \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8365 | conftest$ac_exeext conftest.$ac_ext |
| 8366 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 8367 | |
| 8368 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 8369 | # Warning - without using the other run time loading flags, |
| 8370 | # -berok will link without error, but may produce a broken library. |
| 8371 | no_undefined_flag=' ${wl}-bernotok' |
| 8372 | allow_undefined_flag=' ${wl}-berok' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8373 | # Exported symbols can be pulled into shared objects from archives |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8374 | whole_archive_flag_spec='$convenience' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8375 | archive_cmds_need_lc=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8376 | # This is similar to how AIX traditionally builds its shared libraries. |
| 8377 | 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' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8378 | fi |
| 8379 | fi |
| 8380 | ;; |
| 8381 | |
| 8382 | amigaos*) |
| 8383 | 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)' |
| 8384 | hardcode_libdir_flag_spec='-L$libdir' |
| 8385 | hardcode_minus_L=yes |
| 8386 | # see comment about different semantics on the GNU ld section |
| 8387 | ld_shlibs=no |
| 8388 | ;; |
| 8389 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8390 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8391 | export_dynamic_flag_spec=-rdynamic |
| 8392 | ;; |
| 8393 | |
| 8394 | cygwin* | mingw* | pw32*) |
| 8395 | # When not using gcc, we currently assume that we are using |
| 8396 | # Microsoft Visual C++. |
| 8397 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 8398 | # no search path for DLLs. |
| 8399 | hardcode_libdir_flag_spec=' ' |
| 8400 | allow_undefined_flag=unsupported |
| 8401 | # Tell ltmain to make .lib files, not .a files. |
| 8402 | libext=lib |
| 8403 | # Tell ltmain to make .dll files, not .so files. |
| 8404 | shrext_cmds=".dll" |
| 8405 | # FIXME: Setting linknames here is a bad hack. |
| 8406 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 8407 | # The linker will automatically build a .lib file if we build a DLL. |
| 8408 | old_archive_From_new_cmds='true' |
| 8409 | # FIXME: Should let the user specify the lib program. |
| 8410 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 8411 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 8412 | enable_shared_with_static_runtimes=yes |
| 8413 | ;; |
| 8414 | |
| 8415 | darwin* | rhapsody*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8416 | case $host_os in |
| 8417 | rhapsody* | darwin1.[012]) |
| 8418 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
| 8419 | ;; |
| 8420 | *) # Darwin 1.3 on |
| 8421 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 8422 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 8423 | else |
| 8424 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 8425 | 10.[012]) |
| 8426 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 8427 | ;; |
| 8428 | 10.*) |
| 8429 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
| 8430 | ;; |
| 8431 | esac |
| 8432 | fi |
| 8433 | ;; |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 8434 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8435 | archive_cmds_need_lc=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8436 | hardcode_direct=no |
| 8437 | hardcode_automatic=yes |
| 8438 | hardcode_shlibpath_var=unsupported |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8439 | whole_archive_flag_spec='' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8440 | link_all_deplibs=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8441 | if test "$GCC" = yes ; then |
| 8442 | output_verbose_link_cmd='echo' |
| 8443 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 8444 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 8445 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 8446 | 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}' |
| 8447 | 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}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8448 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8449 | case $cc_basename in |
| 8450 | xlc*) |
| 8451 | output_verbose_link_cmd='echo' |
| 8452 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 8453 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 8454 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 8455 | 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}' |
| 8456 | 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}' |
| 8457 | ;; |
| 8458 | *) |
| 8459 | ld_shlibs=no |
| 8460 | ;; |
| 8461 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8462 | fi |
| 8463 | ;; |
| 8464 | |
| 8465 | dgux*) |
| 8466 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8467 | hardcode_libdir_flag_spec='-L$libdir' |
| 8468 | hardcode_shlibpath_var=no |
| 8469 | ;; |
| 8470 | |
| 8471 | freebsd1*) |
| 8472 | ld_shlibs=no |
| 8473 | ;; |
| 8474 | |
| 8475 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 8476 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 8477 | # does not break anything, and helps significantly (at the cost of a little |
| 8478 | # extra space). |
| 8479 | freebsd2.2*) |
| 8480 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 8481 | hardcode_libdir_flag_spec='-R$libdir' |
| 8482 | hardcode_direct=yes |
| 8483 | hardcode_shlibpath_var=no |
| 8484 | ;; |
| 8485 | |
| 8486 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 8487 | freebsd2*) |
| 8488 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 8489 | hardcode_direct=yes |
| 8490 | hardcode_minus_L=yes |
| 8491 | hardcode_shlibpath_var=no |
| 8492 | ;; |
| 8493 | |
| 8494 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8495 | freebsd* | kfreebsd*-gnu | dragonfly*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8496 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 8497 | hardcode_libdir_flag_spec='-R$libdir' |
| 8498 | hardcode_direct=yes |
| 8499 | hardcode_shlibpath_var=no |
| 8500 | ;; |
| 8501 | |
| 8502 | hpux9*) |
| 8503 | if test "$GCC" = yes; then |
| 8504 | 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' |
| 8505 | else |
| 8506 | 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' |
| 8507 | fi |
| 8508 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 8509 | hardcode_libdir_separator=: |
| 8510 | hardcode_direct=yes |
| 8511 | |
| 8512 | # hardcode_minus_L: Not really in the search PATH, |
| 8513 | # but as the default location of the library. |
| 8514 | hardcode_minus_L=yes |
| 8515 | export_dynamic_flag_spec='${wl}-E' |
| 8516 | ;; |
| 8517 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8518 | hpux10*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8519 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8520 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 8521 | else |
| 8522 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 8523 | fi |
| 8524 | if test "$with_gnu_ld" = no; then |
| 8525 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 8526 | hardcode_libdir_separator=: |
| 8527 | |
| 8528 | hardcode_direct=yes |
| 8529 | export_dynamic_flag_spec='${wl}-E' |
| 8530 | |
| 8531 | # hardcode_minus_L: Not really in the search PATH, |
| 8532 | # but as the default location of the library. |
| 8533 | hardcode_minus_L=yes |
| 8534 | fi |
| 8535 | ;; |
| 8536 | |
| 8537 | hpux11*) |
| 8538 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 8539 | case $host_cpu in |
| 8540 | hppa*64*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8541 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8542 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8543 | ia64*) |
| 8544 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 8545 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8546 | *) |
| 8547 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 8548 | ;; |
| 8549 | esac |
| 8550 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8551 | case $host_cpu in |
| 8552 | hppa*64*) |
| 8553 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8554 | ;; |
| 8555 | ia64*) |
| 8556 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8557 | ;; |
| 8558 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8559 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8560 | ;; |
| 8561 | esac |
| 8562 | fi |
| 8563 | if test "$with_gnu_ld" = no; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8564 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 8565 | hardcode_libdir_separator=: |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 8566 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8567 | case $host_cpu in |
| 8568 | hppa*64*|ia64*) |
| 8569 | hardcode_libdir_flag_spec_ld='+b $libdir' |
| 8570 | hardcode_direct=no |
| 8571 | hardcode_shlibpath_var=no |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 8572 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8573 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8574 | hardcode_direct=yes |
| 8575 | export_dynamic_flag_spec='${wl}-E' |
| 8576 | |
| 8577 | # hardcode_minus_L: Not really in the search PATH, |
| 8578 | # but as the default location of the library. |
| 8579 | hardcode_minus_L=yes |
| 8580 | ;; |
| 8581 | esac |
| 8582 | fi |
| 8583 | ;; |
| 8584 | |
| 8585 | irix5* | irix6* | nonstopux*) |
| 8586 | if test "$GCC" = yes; then |
| 8587 | 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' |
| 8588 | else |
| 8589 | 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' |
| 8590 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 8591 | fi |
| 8592 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8593 | hardcode_libdir_separator=: |
| 8594 | link_all_deplibs=yes |
| 8595 | ;; |
| 8596 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8597 | netbsd*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8598 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 8599 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 8600 | else |
| 8601 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 8602 | fi |
| 8603 | hardcode_libdir_flag_spec='-R$libdir' |
| 8604 | hardcode_direct=yes |
| 8605 | hardcode_shlibpath_var=no |
| 8606 | ;; |
| 8607 | |
| 8608 | newsos6) |
| 8609 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8610 | hardcode_direct=yes |
| 8611 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8612 | hardcode_libdir_separator=: |
| 8613 | hardcode_shlibpath_var=no |
| 8614 | ;; |
| 8615 | |
| 8616 | openbsd*) |
| 8617 | hardcode_direct=yes |
| 8618 | hardcode_shlibpath_var=no |
| 8619 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 8620 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8621 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8622 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 8623 | export_dynamic_flag_spec='${wl}-E' |
| 8624 | else |
| 8625 | case $host_os in |
| 8626 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 8627 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 8628 | hardcode_libdir_flag_spec='-R$libdir' |
| 8629 | ;; |
| 8630 | *) |
| 8631 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 8632 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 8633 | ;; |
| 8634 | esac |
| 8635 | fi |
| 8636 | ;; |
| 8637 | |
| 8638 | os2*) |
| 8639 | hardcode_libdir_flag_spec='-L$libdir' |
| 8640 | hardcode_minus_L=yes |
| 8641 | allow_undefined_flag=unsupported |
| 8642 | 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' |
| 8643 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 8644 | ;; |
| 8645 | |
| 8646 | osf3*) |
| 8647 | if test "$GCC" = yes; then |
| 8648 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 8649 | 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' |
| 8650 | else |
| 8651 | allow_undefined_flag=' -expect_unresolved \*' |
| 8652 | 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' |
| 8653 | fi |
| 8654 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8655 | hardcode_libdir_separator=: |
| 8656 | ;; |
| 8657 | |
| 8658 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 8659 | if test "$GCC" = yes; then |
| 8660 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 8661 | 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' |
| 8662 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8663 | else |
| 8664 | allow_undefined_flag=' -expect_unresolved \*' |
| 8665 | 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' |
| 8666 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8667 | $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' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8668 | |
| 8669 | # Both c and cxx compiler support -rpath directly |
| 8670 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 8671 | fi |
| 8672 | hardcode_libdir_separator=: |
| 8673 | ;; |
| 8674 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8675 | solaris*) |
| 8676 | no_undefined_flag=' -z text' |
| 8677 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8678 | wlarc='${wl}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8679 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8680 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 8681 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 8682 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8683 | wlarc='' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8684 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8685 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 8686 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 8687 | fi |
| 8688 | hardcode_libdir_flag_spec='-R$libdir' |
| 8689 | hardcode_shlibpath_var=no |
| 8690 | case $host_os in |
| 8691 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8692 | *) |
| 8693 | # The compiler driver will combine linker options so we |
| 8694 | # cannot just pass the convience library names through |
| 8695 | # without $wl, iff we do not link with $LD. |
| 8696 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 8697 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 8698 | case $wlarc in |
| 8699 | '') |
| 8700 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 8701 | *) |
| 8702 | 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' ;; |
| 8703 | esac ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8704 | esac |
| 8705 | link_all_deplibs=yes |
| 8706 | ;; |
| 8707 | |
| 8708 | sunos4*) |
| 8709 | if test "x$host_vendor" = xsequent; then |
| 8710 | # Use $CC to link under sequent, because it throws in some extra .o |
| 8711 | # files that make .init and .fini sections work. |
| 8712 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8713 | else |
| 8714 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 8715 | fi |
| 8716 | hardcode_libdir_flag_spec='-L$libdir' |
| 8717 | hardcode_direct=yes |
| 8718 | hardcode_minus_L=yes |
| 8719 | hardcode_shlibpath_var=no |
| 8720 | ;; |
| 8721 | |
| 8722 | sysv4) |
| 8723 | case $host_vendor in |
| 8724 | sni) |
| 8725 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8726 | hardcode_direct=yes # is this really true??? |
| 8727 | ;; |
| 8728 | siemens) |
| 8729 | ## LD is ld it makes a PLAMLIB |
| 8730 | ## CC just makes a GrossModule. |
| 8731 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 8732 | reload_cmds='$CC -r -o $output$reload_objs' |
| 8733 | hardcode_direct=no |
| 8734 | ;; |
| 8735 | motorola) |
| 8736 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8737 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 8738 | ;; |
| 8739 | esac |
| 8740 | runpath_var='LD_RUN_PATH' |
| 8741 | hardcode_shlibpath_var=no |
| 8742 | ;; |
| 8743 | |
| 8744 | sysv4.3*) |
| 8745 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8746 | hardcode_shlibpath_var=no |
| 8747 | export_dynamic_flag_spec='-Bexport' |
| 8748 | ;; |
| 8749 | |
| 8750 | sysv4*MP*) |
| 8751 | if test -d /usr/nec; then |
| 8752 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8753 | hardcode_shlibpath_var=no |
| 8754 | runpath_var=LD_RUN_PATH |
| 8755 | hardcode_runpath_var=yes |
| 8756 | ld_shlibs=yes |
| 8757 | fi |
| 8758 | ;; |
| 8759 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8760 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 8761 | no_undefined_flag='${wl}-z,text' |
| 8762 | archive_cmds_need_lc=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8763 | hardcode_shlibpath_var=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8764 | runpath_var='LD_RUN_PATH' |
bryner | 07f8ef5 | 2006-09-05 19:42:57 +0000 | [diff] [blame] | 8765 | |
mmentovai | 3261e8b | 2006-09-06 02:56:44 +0000 | [diff] [blame] | 8766 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8767 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8768 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
mmentovai | 3261e8b | 2006-09-06 02:56:44 +0000 | [diff] [blame] | 8769 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8770 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8771 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
mmentovai | 3261e8b | 2006-09-06 02:56:44 +0000 | [diff] [blame] | 8772 | fi |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 8773 | ;; |
| 8774 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8775 | sysv5* | sco3.2v5* | sco5v6*) |
| 8776 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 8777 | # link with -lc, and that would cause any symbols used from libc to |
| 8778 | # always be unresolved, which means just about no library would |
| 8779 | # ever link correctly. If we're not using GNU ld we use -z text |
| 8780 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 8781 | # as -z defs. |
| 8782 | no_undefined_flag='${wl}-z,text' |
| 8783 | allow_undefined_flag='${wl}-z,nodefs' |
| 8784 | archive_cmds_need_lc=no |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 8785 | hardcode_shlibpath_var=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8786 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 8787 | hardcode_libdir_separator=':' |
| 8788 | link_all_deplibs=yes |
| 8789 | export_dynamic_flag_spec='${wl}-Bexport' |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 8790 | runpath_var='LD_RUN_PATH' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8791 | |
| 8792 | if test "$GCC" = yes; then |
| 8793 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8794 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8795 | else |
| 8796 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8797 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8798 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8799 | ;; |
| 8800 | |
| 8801 | uts4*) |
| 8802 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8803 | hardcode_libdir_flag_spec='-L$libdir' |
| 8804 | hardcode_shlibpath_var=no |
| 8805 | ;; |
| 8806 | |
| 8807 | *) |
| 8808 | ld_shlibs=no |
| 8809 | ;; |
| 8810 | esac |
| 8811 | fi |
| 8812 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8813 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 8814 | echo "${ECHO_T}$ld_shlibs" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8815 | test "$ld_shlibs" = no && can_build_shared=no |
| 8816 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8817 | # |
| 8818 | # Do we need to explicitly link libc? |
| 8819 | # |
| 8820 | case "x$archive_cmds_need_lc" in |
| 8821 | x|xyes) |
| 8822 | # Assume -lc should be added |
| 8823 | archive_cmds_need_lc=yes |
| 8824 | |
| 8825 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 8826 | case $archive_cmds in |
| 8827 | *'~'*) |
| 8828 | # FIXME: we may have to deal with multi-command sequences. |
| 8829 | ;; |
| 8830 | '$CC '*) |
| 8831 | # Test whether the compiler implicitly links with -lc since on some |
| 8832 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 8833 | # to ld, don't add -lc before -lgcc. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8834 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 8835 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8836 | $rm conftest* |
| 8837 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8838 | |
| 8839 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8840 | (eval $ac_compile) 2>&5 |
| 8841 | ac_status=$? |
| 8842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8843 | (exit $ac_status); } 2>conftest.err; then |
| 8844 | soname=conftest |
| 8845 | lib=conftest |
| 8846 | libobjs=conftest.$ac_objext |
| 8847 | deplibs= |
| 8848 | wl=$lt_prog_compiler_wl |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8849 | pic_flag=$lt_prog_compiler_pic |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8850 | compiler_flags=-v |
| 8851 | linker_flags=-v |
| 8852 | verstring= |
| 8853 | output_objdir=. |
| 8854 | libname=conftest |
| 8855 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 8856 | allow_undefined_flag= |
| 8857 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 8858 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 8859 | ac_status=$? |
| 8860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8861 | (exit $ac_status); } |
| 8862 | then |
| 8863 | archive_cmds_need_lc=no |
| 8864 | else |
| 8865 | archive_cmds_need_lc=yes |
| 8866 | fi |
| 8867 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 8868 | else |
| 8869 | cat conftest.err 1>&5 |
| 8870 | fi |
| 8871 | $rm conftest* |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8872 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
| 8873 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8874 | ;; |
| 8875 | esac |
| 8876 | fi |
| 8877 | ;; |
| 8878 | esac |
| 8879 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8880 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 8881 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8882 | library_names_spec= |
| 8883 | libname_spec='lib$name' |
| 8884 | soname_spec= |
| 8885 | shrext_cmds=".so" |
| 8886 | postinstall_cmds= |
| 8887 | postuninstall_cmds= |
| 8888 | finish_cmds= |
| 8889 | finish_eval= |
| 8890 | shlibpath_var= |
| 8891 | shlibpath_overrides_runpath=unknown |
| 8892 | version_type=none |
| 8893 | dynamic_linker="$host_os ld.so" |
| 8894 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 8895 | if test "$GCC" = yes; then |
| 8896 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8897 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 8898 | # if the path contains ";" then we assume it to be the separator |
| 8899 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 8900 | # assumed that no part of a normal pathname contains ";" but that should |
| 8901 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 8902 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8903 | else |
| 8904 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8905 | fi |
| 8906 | else |
| 8907 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 8908 | fi |
| 8909 | need_lib_prefix=unknown |
| 8910 | hardcode_into_libs=no |
| 8911 | |
| 8912 | # when you set need_version to no, make sure it does not cause -set_version |
| 8913 | # flags to be left without arguments |
| 8914 | need_version=unknown |
| 8915 | |
| 8916 | case $host_os in |
| 8917 | aix3*) |
| 8918 | version_type=linux |
| 8919 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 8920 | shlibpath_var=LIBPATH |
| 8921 | |
| 8922 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 8923 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8924 | ;; |
| 8925 | |
| 8926 | aix4* | aix5*) |
| 8927 | version_type=linux |
| 8928 | need_lib_prefix=no |
| 8929 | need_version=no |
| 8930 | hardcode_into_libs=yes |
| 8931 | if test "$host_cpu" = ia64; then |
| 8932 | # AIX 5 supports IA64 |
| 8933 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 8934 | shlibpath_var=LD_LIBRARY_PATH |
| 8935 | else |
| 8936 | # With GCC up to 2.95.x, collect2 would create an import file |
| 8937 | # for dependence libraries. The import file would start with |
| 8938 | # the line `#! .'. This would cause the generated library to |
| 8939 | # depend on `.', always an invalid library. This was fixed in |
| 8940 | # development snapshots of GCC prior to 3.0. |
| 8941 | case $host_os in |
| 8942 | aix4 | aix4.[01] | aix4.[01].*) |
| 8943 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 8944 | echo ' yes ' |
| 8945 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 8946 | : |
| 8947 | else |
| 8948 | can_build_shared=no |
| 8949 | fi |
| 8950 | ;; |
| 8951 | esac |
| 8952 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 8953 | # soname into executable. Probably we can add versioning support to |
| 8954 | # collect2, so additional links can be useful in future. |
| 8955 | if test "$aix_use_runtimelinking" = yes; then |
| 8956 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 8957 | # instead of lib<name>.a to let people know that these are not |
| 8958 | # typical AIX shared libraries. |
| 8959 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8960 | else |
| 8961 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 8962 | # and later when we are not doing run time linking. |
| 8963 | library_names_spec='${libname}${release}.a $libname.a' |
| 8964 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8965 | fi |
| 8966 | shlibpath_var=LIBPATH |
| 8967 | fi |
| 8968 | ;; |
| 8969 | |
| 8970 | amigaos*) |
| 8971 | library_names_spec='$libname.ixlibrary $libname.a' |
| 8972 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 8973 | 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' |
| 8974 | ;; |
| 8975 | |
| 8976 | beos*) |
| 8977 | library_names_spec='${libname}${shared_ext}' |
| 8978 | dynamic_linker="$host_os ld.so" |
| 8979 | shlibpath_var=LIBRARY_PATH |
| 8980 | ;; |
| 8981 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8982 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8983 | version_type=linux |
| 8984 | need_version=no |
| 8985 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8986 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8987 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 8988 | shlibpath_var=LD_LIBRARY_PATH |
| 8989 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 8990 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 8991 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 8992 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 8993 | # libtool to hard-code these into programs |
| 8994 | ;; |
| 8995 | |
| 8996 | cygwin* | mingw* | pw32*) |
| 8997 | version_type=windows |
| 8998 | shrext_cmds=".dll" |
| 8999 | need_version=no |
| 9000 | need_lib_prefix=no |
| 9001 | |
| 9002 | case $GCC,$host_os in |
| 9003 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 9004 | library_names_spec='$libname.dll.a' |
| 9005 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 9006 | postinstall_cmds='base_file=`basename \${file}`~ |
| 9007 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 9008 | dldir=$destdir/`dirname \$dlpath`~ |
| 9009 | test -d \$dldir || mkdir -p \$dldir~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9010 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 9011 | chmod a+x \$dldir/$dlname' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9012 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 9013 | dlpath=$dir/\$dldll~ |
| 9014 | $rm \$dlpath' |
| 9015 | shlibpath_overrides_runpath=yes |
| 9016 | |
| 9017 | case $host_os in |
| 9018 | cygwin*) |
| 9019 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 9020 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9021 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 9022 | ;; |
| 9023 | mingw*) |
| 9024 | # MinGW DLLs use traditional 'lib' prefix |
| 9025 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9026 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9027 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 9028 | # It is most probably a Windows format PATH printed by |
| 9029 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 9030 | # path with ; separators, and with drive letters. We can handle the |
| 9031 | # drive letters (cygwin fileutils understands them), so leave them, |
| 9032 | # especially as we might pass files found there to a mingw objdump, |
| 9033 | # which wouldn't understand a cygwinified path. Ahh. |
| 9034 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9035 | else |
| 9036 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9037 | fi |
| 9038 | ;; |
| 9039 | pw32*) |
| 9040 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9041 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9042 | ;; |
| 9043 | esac |
| 9044 | ;; |
| 9045 | |
| 9046 | *) |
| 9047 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 9048 | ;; |
| 9049 | esac |
| 9050 | dynamic_linker='Win32 ld.exe' |
| 9051 | # FIXME: first we should search . and the directory the executable is in |
| 9052 | shlibpath_var=PATH |
| 9053 | ;; |
| 9054 | |
| 9055 | darwin* | rhapsody*) |
| 9056 | dynamic_linker="$host_os dyld" |
| 9057 | version_type=darwin |
| 9058 | need_lib_prefix=no |
| 9059 | need_version=no |
| 9060 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 9061 | soname_spec='${libname}${release}${major}$shared_ext' |
| 9062 | shlibpath_overrides_runpath=yes |
| 9063 | shlibpath_var=DYLD_LIBRARY_PATH |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9064 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9065 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 9066 | if test "$GCC" = yes; then |
| 9067 | 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"` |
| 9068 | else |
| 9069 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 9070 | fi |
| 9071 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 9072 | ;; |
| 9073 | |
| 9074 | dgux*) |
| 9075 | version_type=linux |
| 9076 | need_lib_prefix=no |
| 9077 | need_version=no |
| 9078 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 9079 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9080 | shlibpath_var=LD_LIBRARY_PATH |
| 9081 | ;; |
| 9082 | |
| 9083 | freebsd1*) |
| 9084 | dynamic_linker=no |
| 9085 | ;; |
| 9086 | |
| 9087 | kfreebsd*-gnu) |
| 9088 | version_type=linux |
| 9089 | need_lib_prefix=no |
| 9090 | need_version=no |
| 9091 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9092 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9093 | shlibpath_var=LD_LIBRARY_PATH |
| 9094 | shlibpath_overrides_runpath=no |
| 9095 | hardcode_into_libs=yes |
| 9096 | dynamic_linker='GNU ld.so' |
| 9097 | ;; |
| 9098 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9099 | freebsd* | dragonfly*) |
| 9100 | # DragonFly does not have aout. When/if they implement a new |
| 9101 | # versioning mechanism, adjust this. |
| 9102 | if test -x /usr/bin/objformat; then |
| 9103 | objformat=`/usr/bin/objformat` |
| 9104 | else |
| 9105 | case $host_os in |
| 9106 | freebsd[123]*) objformat=aout ;; |
| 9107 | *) objformat=elf ;; |
| 9108 | esac |
| 9109 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9110 | version_type=freebsd-$objformat |
| 9111 | case $version_type in |
| 9112 | freebsd-elf*) |
| 9113 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9114 | need_version=no |
| 9115 | need_lib_prefix=no |
| 9116 | ;; |
| 9117 | freebsd-*) |
| 9118 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 9119 | need_version=yes |
| 9120 | ;; |
| 9121 | esac |
| 9122 | shlibpath_var=LD_LIBRARY_PATH |
| 9123 | case $host_os in |
| 9124 | freebsd2*) |
| 9125 | shlibpath_overrides_runpath=yes |
| 9126 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9127 | freebsd3.[01]* | freebsdelf3.[01]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9128 | shlibpath_overrides_runpath=yes |
| 9129 | hardcode_into_libs=yes |
| 9130 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9131 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 9132 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9133 | shlibpath_overrides_runpath=no |
| 9134 | hardcode_into_libs=yes |
| 9135 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9136 | freebsd*) # from 4.6 on |
| 9137 | shlibpath_overrides_runpath=yes |
| 9138 | hardcode_into_libs=yes |
| 9139 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9140 | esac |
| 9141 | ;; |
| 9142 | |
| 9143 | gnu*) |
| 9144 | version_type=linux |
| 9145 | need_lib_prefix=no |
| 9146 | need_version=no |
| 9147 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 9148 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9149 | shlibpath_var=LD_LIBRARY_PATH |
| 9150 | hardcode_into_libs=yes |
| 9151 | ;; |
| 9152 | |
| 9153 | hpux9* | hpux10* | hpux11*) |
| 9154 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 9155 | # link against other versions. |
| 9156 | version_type=sunos |
| 9157 | need_lib_prefix=no |
| 9158 | need_version=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9159 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9160 | ia64*) |
| 9161 | shrext_cmds='.so' |
| 9162 | hardcode_into_libs=yes |
| 9163 | dynamic_linker="$host_os dld.so" |
| 9164 | shlibpath_var=LD_LIBRARY_PATH |
| 9165 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9166 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9167 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9168 | if test "X$HPUX_IA64_MODE" = X32; then |
| 9169 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 9170 | else |
| 9171 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 9172 | fi |
| 9173 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9174 | ;; |
| 9175 | hppa*64*) |
| 9176 | shrext_cmds='.sl' |
| 9177 | hardcode_into_libs=yes |
| 9178 | dynamic_linker="$host_os dld.sl" |
| 9179 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 9180 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9181 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9182 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9183 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 9184 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9185 | ;; |
| 9186 | *) |
| 9187 | shrext_cmds='.sl' |
| 9188 | dynamic_linker="$host_os dld.sl" |
| 9189 | shlibpath_var=SHLIB_PATH |
| 9190 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 9191 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9192 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9193 | ;; |
| 9194 | esac |
| 9195 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 9196 | postinstall_cmds='chmod 555 $lib' |
| 9197 | ;; |
| 9198 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9199 | interix3*) |
| 9200 | version_type=linux |
| 9201 | need_lib_prefix=no |
| 9202 | need_version=no |
| 9203 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9204 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9205 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 9206 | shlibpath_var=LD_LIBRARY_PATH |
| 9207 | shlibpath_overrides_runpath=no |
| 9208 | hardcode_into_libs=yes |
| 9209 | ;; |
| 9210 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9211 | irix5* | irix6* | nonstopux*) |
| 9212 | case $host_os in |
| 9213 | nonstopux*) version_type=nonstopux ;; |
| 9214 | *) |
| 9215 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 9216 | version_type=linux |
| 9217 | else |
| 9218 | version_type=irix |
| 9219 | fi ;; |
| 9220 | esac |
| 9221 | need_lib_prefix=no |
| 9222 | need_version=no |
| 9223 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9224 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9225 | case $host_os in |
| 9226 | irix5* | nonstopux*) |
| 9227 | libsuff= shlibsuff= |
| 9228 | ;; |
| 9229 | *) |
| 9230 | case $LD in # libtool.m4 will add one of these switches to LD |
| 9231 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 9232 | libsuff= shlibsuff= libmagic=32-bit;; |
| 9233 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 9234 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 9235 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 9236 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 9237 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 9238 | esac |
| 9239 | ;; |
| 9240 | esac |
| 9241 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 9242 | shlibpath_overrides_runpath=no |
| 9243 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 9244 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 9245 | hardcode_into_libs=yes |
| 9246 | ;; |
| 9247 | |
| 9248 | # No shared lib support for Linux oldld, aout, or coff. |
| 9249 | linux*oldld* | linux*aout* | linux*coff*) |
| 9250 | dynamic_linker=no |
| 9251 | ;; |
| 9252 | |
| 9253 | # This must be Linux ELF. |
| 9254 | linux*) |
| 9255 | version_type=linux |
| 9256 | need_lib_prefix=no |
| 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 -n $libdir' |
| 9261 | shlibpath_var=LD_LIBRARY_PATH |
| 9262 | shlibpath_overrides_runpath=no |
| 9263 | # This implies no fast_install, which is unacceptable. |
| 9264 | # Some rework will be needed to allow for fast_install |
| 9265 | # before this can be enabled. |
| 9266 | hardcode_into_libs=yes |
| 9267 | |
| 9268 | # Append ld.so.conf contents to the search path |
| 9269 | if test -f /etc/ld.so.conf; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9270 | 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' ' '` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9271 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 9272 | fi |
| 9273 | |
| 9274 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 9275 | # powerpc, because MkLinux only supported shared libraries with the |
| 9276 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 9277 | # most powerpc-linux boxes support dynamic linking these days and |
| 9278 | # people can always --disable-shared, the test was removed, and we |
| 9279 | # assume the GNU/Linux dynamic linker is in use. |
| 9280 | dynamic_linker='GNU/Linux ld.so' |
| 9281 | ;; |
| 9282 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9283 | knetbsd*-gnu) |
| 9284 | version_type=linux |
| 9285 | need_lib_prefix=no |
| 9286 | need_version=no |
| 9287 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9288 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9289 | shlibpath_var=LD_LIBRARY_PATH |
| 9290 | shlibpath_overrides_runpath=no |
| 9291 | hardcode_into_libs=yes |
| 9292 | dynamic_linker='GNU ld.so' |
| 9293 | ;; |
| 9294 | |
| 9295 | netbsd*) |
| 9296 | version_type=sunos |
| 9297 | need_lib_prefix=no |
| 9298 | need_version=no |
| 9299 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 9300 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9301 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9302 | dynamic_linker='NetBSD (a.out) ld.so' |
| 9303 | else |
| 9304 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9305 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9306 | dynamic_linker='NetBSD ld.elf_so' |
| 9307 | fi |
| 9308 | shlibpath_var=LD_LIBRARY_PATH |
| 9309 | shlibpath_overrides_runpath=yes |
| 9310 | hardcode_into_libs=yes |
| 9311 | ;; |
| 9312 | |
| 9313 | newsos6) |
| 9314 | version_type=linux |
| 9315 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9316 | shlibpath_var=LD_LIBRARY_PATH |
| 9317 | shlibpath_overrides_runpath=yes |
| 9318 | ;; |
| 9319 | |
| 9320 | nto-qnx*) |
| 9321 | version_type=linux |
| 9322 | need_lib_prefix=no |
| 9323 | need_version=no |
| 9324 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9325 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9326 | shlibpath_var=LD_LIBRARY_PATH |
| 9327 | shlibpath_overrides_runpath=yes |
| 9328 | ;; |
| 9329 | |
| 9330 | openbsd*) |
| 9331 | version_type=sunos |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9332 | sys_lib_dlsearch_path_spec="/usr/lib" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9333 | need_lib_prefix=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9334 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 9335 | case $host_os in |
| 9336 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 9337 | *) need_version=no ;; |
| 9338 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9339 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9340 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9341 | shlibpath_var=LD_LIBRARY_PATH |
| 9342 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 9343 | case $host_os in |
| 9344 | openbsd2.[89] | openbsd2.[89].*) |
| 9345 | shlibpath_overrides_runpath=no |
| 9346 | ;; |
| 9347 | *) |
| 9348 | shlibpath_overrides_runpath=yes |
| 9349 | ;; |
| 9350 | esac |
| 9351 | else |
| 9352 | shlibpath_overrides_runpath=yes |
| 9353 | fi |
| 9354 | ;; |
| 9355 | |
| 9356 | os2*) |
| 9357 | libname_spec='$name' |
| 9358 | shrext_cmds=".dll" |
| 9359 | need_lib_prefix=no |
| 9360 | library_names_spec='$libname${shared_ext} $libname.a' |
| 9361 | dynamic_linker='OS/2 ld.exe' |
| 9362 | shlibpath_var=LIBPATH |
| 9363 | ;; |
| 9364 | |
| 9365 | osf3* | osf4* | osf5*) |
| 9366 | version_type=osf |
| 9367 | need_lib_prefix=no |
| 9368 | need_version=no |
| 9369 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9370 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9371 | shlibpath_var=LD_LIBRARY_PATH |
| 9372 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 9373 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 9374 | ;; |
| 9375 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9376 | solaris*) |
| 9377 | version_type=linux |
| 9378 | need_lib_prefix=no |
| 9379 | need_version=no |
| 9380 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9381 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9382 | shlibpath_var=LD_LIBRARY_PATH |
| 9383 | shlibpath_overrides_runpath=yes |
| 9384 | hardcode_into_libs=yes |
| 9385 | # ldd complains unless libraries are executable |
| 9386 | postinstall_cmds='chmod +x $lib' |
| 9387 | ;; |
| 9388 | |
| 9389 | sunos4*) |
| 9390 | version_type=sunos |
| 9391 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9392 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 9393 | shlibpath_var=LD_LIBRARY_PATH |
| 9394 | shlibpath_overrides_runpath=yes |
| 9395 | if test "$with_gnu_ld" = yes; then |
| 9396 | need_lib_prefix=no |
| 9397 | fi |
| 9398 | need_version=yes |
| 9399 | ;; |
| 9400 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9401 | sysv4 | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9402 | version_type=linux |
| 9403 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9404 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9405 | shlibpath_var=LD_LIBRARY_PATH |
| 9406 | case $host_vendor in |
| 9407 | sni) |
| 9408 | shlibpath_overrides_runpath=no |
| 9409 | need_lib_prefix=no |
| 9410 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 9411 | runpath_var=LD_RUN_PATH |
| 9412 | ;; |
| 9413 | siemens) |
| 9414 | need_lib_prefix=no |
| 9415 | ;; |
| 9416 | motorola) |
| 9417 | need_lib_prefix=no |
| 9418 | need_version=no |
| 9419 | shlibpath_overrides_runpath=no |
| 9420 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 9421 | ;; |
| 9422 | esac |
| 9423 | ;; |
| 9424 | |
| 9425 | sysv4*MP*) |
| 9426 | if test -d /usr/nec ;then |
| 9427 | version_type=linux |
| 9428 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 9429 | soname_spec='$libname${shared_ext}.$major' |
| 9430 | shlibpath_var=LD_LIBRARY_PATH |
| 9431 | fi |
| 9432 | ;; |
| 9433 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9434 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 9435 | version_type=freebsd-elf |
| 9436 | need_lib_prefix=no |
| 9437 | need_version=no |
| 9438 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9439 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9440 | shlibpath_var=LD_LIBRARY_PATH |
| 9441 | hardcode_into_libs=yes |
| 9442 | if test "$with_gnu_ld" = yes; then |
| 9443 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 9444 | shlibpath_overrides_runpath=no |
| 9445 | else |
| 9446 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 9447 | shlibpath_overrides_runpath=yes |
| 9448 | case $host_os in |
| 9449 | sco3.2v5*) |
| 9450 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 9451 | ;; |
| 9452 | esac |
| 9453 | fi |
| 9454 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 9455 | ;; |
| 9456 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9457 | uts4*) |
| 9458 | version_type=linux |
| 9459 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9460 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9461 | shlibpath_var=LD_LIBRARY_PATH |
| 9462 | ;; |
| 9463 | |
| 9464 | *) |
| 9465 | dynamic_linker=no |
| 9466 | ;; |
| 9467 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9468 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 9469 | echo "${ECHO_T}$dynamic_linker" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9470 | test "$dynamic_linker" = no && can_build_shared=no |
| 9471 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9472 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 9473 | if test "$GCC" = yes; then |
| 9474 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 9475 | fi |
| 9476 | |
| 9477 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 9478 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9479 | hardcode_action= |
| 9480 | if test -n "$hardcode_libdir_flag_spec" || \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9481 | test -n "$runpath_var" || \ |
| 9482 | test "X$hardcode_automatic" = "Xyes" ; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9483 | |
| 9484 | # We can hardcode non-existant directories. |
| 9485 | if test "$hardcode_direct" != no && |
| 9486 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 9487 | # have to relink, otherwise we might link with an installed library |
| 9488 | # when we should be linking with a yet-to-be-installed one |
| 9489 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 9490 | test "$hardcode_minus_L" != no; then |
| 9491 | # Linking always hardcodes the temporary library directory. |
| 9492 | hardcode_action=relink |
| 9493 | else |
| 9494 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 9495 | hardcode_action=immediate |
| 9496 | fi |
| 9497 | else |
| 9498 | # We cannot hardcode anything, or else we can only hardcode existing |
| 9499 | # directories. |
| 9500 | hardcode_action=unsupported |
| 9501 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9502 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 9503 | echo "${ECHO_T}$hardcode_action" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9504 | |
| 9505 | if test "$hardcode_action" = relink; then |
| 9506 | # Fast installation is not supported |
| 9507 | enable_fast_install=no |
| 9508 | elif test "$shlibpath_overrides_runpath" = yes || |
| 9509 | test "$enable_shared" = no; then |
| 9510 | # Fast installation is not necessary |
| 9511 | enable_fast_install=needless |
| 9512 | fi |
| 9513 | |
| 9514 | striplib= |
| 9515 | old_striplib= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9516 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 9517 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9518 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 9519 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 9520 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9521 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9522 | echo "${ECHO_T}yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9523 | else |
| 9524 | # FIXME - insert some real tests, host_os isn't really good enough |
| 9525 | case $host_os in |
| 9526 | darwin*) |
| 9527 | if test -n "$STRIP" ; then |
| 9528 | striplib="$STRIP -x" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9529 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9530 | echo "${ECHO_T}yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9531 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9532 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9533 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9534 | fi |
| 9535 | ;; |
| 9536 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9537 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9538 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9539 | ;; |
| 9540 | esac |
| 9541 | fi |
| 9542 | |
| 9543 | if test "x$enable_dlopen" != xyes; then |
| 9544 | enable_dlopen=unknown |
| 9545 | enable_dlopen_self=unknown |
| 9546 | enable_dlopen_self_static=unknown |
| 9547 | else |
| 9548 | lt_cv_dlopen=no |
| 9549 | lt_cv_dlopen_libs= |
| 9550 | |
| 9551 | case $host_os in |
| 9552 | beos*) |
| 9553 | lt_cv_dlopen="load_add_on" |
| 9554 | lt_cv_dlopen_libs= |
| 9555 | lt_cv_dlopen_self=yes |
| 9556 | ;; |
| 9557 | |
| 9558 | mingw* | pw32*) |
| 9559 | lt_cv_dlopen="LoadLibrary" |
| 9560 | lt_cv_dlopen_libs= |
| 9561 | ;; |
| 9562 | |
| 9563 | cygwin*) |
| 9564 | lt_cv_dlopen="dlopen" |
| 9565 | lt_cv_dlopen_libs= |
| 9566 | ;; |
| 9567 | |
| 9568 | darwin*) |
| 9569 | # if libdl is installed we need to link against it |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9570 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 9571 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9572 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 9573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9574 | else |
| 9575 | ac_check_lib_save_LIBS=$LIBS |
| 9576 | LIBS="-ldl $LIBS" |
| 9577 | cat >conftest.$ac_ext <<_ACEOF |
| 9578 | /* confdefs.h. */ |
| 9579 | _ACEOF |
| 9580 | cat confdefs.h >>conftest.$ac_ext |
| 9581 | cat >>conftest.$ac_ext <<_ACEOF |
| 9582 | /* end confdefs.h. */ |
| 9583 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9584 | /* Override any GCC internal prototype to avoid an error. |
| 9585 | Use char because int might match the return type of a GCC |
| 9586 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9587 | #ifdef __cplusplus |
| 9588 | extern "C" |
| 9589 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9590 | char dlopen (); |
| 9591 | int |
| 9592 | main () |
| 9593 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9594 | return dlopen (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9595 | ; |
| 9596 | return 0; |
| 9597 | } |
| 9598 | _ACEOF |
| 9599 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9600 | if { (ac_try="$ac_link" |
| 9601 | case "(($ac_try" in |
| 9602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9603 | *) ac_try_echo=$ac_try;; |
| 9604 | esac |
| 9605 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9606 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9607 | ac_status=$? |
| 9608 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9609 | rm -f conftest.er1 |
| 9610 | cat conftest.err >&5 |
| 9611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9612 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9613 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9614 | { (case "(($ac_try" in |
| 9615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9616 | *) ac_try_echo=$ac_try;; |
| 9617 | esac |
| 9618 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9619 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9620 | ac_status=$? |
| 9621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9622 | (exit $ac_status); }; } && |
| 9623 | { ac_try='test -s conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9624 | { (case "(($ac_try" in |
| 9625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9626 | *) ac_try_echo=$ac_try;; |
| 9627 | esac |
| 9628 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9629 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9630 | ac_status=$? |
| 9631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9632 | (exit $ac_status); }; }; then |
| 9633 | ac_cv_lib_dl_dlopen=yes |
| 9634 | else |
| 9635 | echo "$as_me: failed program was:" >&5 |
| 9636 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9637 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9638 | ac_cv_lib_dl_dlopen=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9639 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9640 | |
| 9641 | rm -f core conftest.err conftest.$ac_objext \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9642 | conftest$ac_exeext conftest.$ac_ext |
| 9643 | LIBS=$ac_check_lib_save_LIBS |
| 9644 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9645 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9646 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9647 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 9648 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 9649 | else |
| 9650 | |
| 9651 | lt_cv_dlopen="dyld" |
| 9652 | lt_cv_dlopen_libs= |
| 9653 | lt_cv_dlopen_self=yes |
| 9654 | |
| 9655 | fi |
| 9656 | |
| 9657 | ;; |
| 9658 | |
| 9659 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9660 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 9661 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9662 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 9663 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9664 | else |
| 9665 | cat >conftest.$ac_ext <<_ACEOF |
| 9666 | /* confdefs.h. */ |
| 9667 | _ACEOF |
| 9668 | cat confdefs.h >>conftest.$ac_ext |
| 9669 | cat >>conftest.$ac_ext <<_ACEOF |
| 9670 | /* end confdefs.h. */ |
| 9671 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 9672 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9673 | #define shl_load innocuous_shl_load |
| 9674 | |
| 9675 | /* System header to define __stub macros and hopefully few prototypes, |
| 9676 | which can conflict with char shl_load (); below. |
| 9677 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9678 | <limits.h> exists even on freestanding compilers. */ |
| 9679 | |
| 9680 | #ifdef __STDC__ |
| 9681 | # include <limits.h> |
| 9682 | #else |
| 9683 | # include <assert.h> |
| 9684 | #endif |
| 9685 | |
| 9686 | #undef shl_load |
| 9687 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9688 | /* Override any GCC internal prototype to avoid an error. |
| 9689 | Use char because int might match the return type of a GCC |
| 9690 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9691 | #ifdef __cplusplus |
| 9692 | extern "C" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9693 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9694 | char shl_load (); |
| 9695 | /* The GNU C library defines this for functions which it implements |
| 9696 | to always fail with ENOSYS. Some functions are actually named |
| 9697 | something starting with __ and the normal name is an alias. */ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9698 | #if defined __stub_shl_load || defined __stub___shl_load |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9699 | choke me |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9700 | #endif |
| 9701 | |
| 9702 | int |
| 9703 | main () |
| 9704 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9705 | return shl_load (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9706 | ; |
| 9707 | return 0; |
| 9708 | } |
| 9709 | _ACEOF |
| 9710 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9711 | if { (ac_try="$ac_link" |
| 9712 | case "(($ac_try" in |
| 9713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9714 | *) ac_try_echo=$ac_try;; |
| 9715 | esac |
| 9716 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9717 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9718 | ac_status=$? |
| 9719 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9720 | rm -f conftest.er1 |
| 9721 | cat conftest.err >&5 |
| 9722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9723 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9724 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9725 | { (case "(($ac_try" in |
| 9726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9727 | *) ac_try_echo=$ac_try;; |
| 9728 | esac |
| 9729 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9730 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9731 | ac_status=$? |
| 9732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9733 | (exit $ac_status); }; } && |
| 9734 | { ac_try='test -s conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9735 | { (case "(($ac_try" in |
| 9736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9737 | *) ac_try_echo=$ac_try;; |
| 9738 | esac |
| 9739 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9740 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9741 | ac_status=$? |
| 9742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9743 | (exit $ac_status); }; }; then |
| 9744 | ac_cv_func_shl_load=yes |
| 9745 | else |
| 9746 | echo "$as_me: failed program was:" >&5 |
| 9747 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9748 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9749 | ac_cv_func_shl_load=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9750 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9751 | |
| 9752 | rm -f core conftest.err conftest.$ac_objext \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9753 | conftest$ac_exeext conftest.$ac_ext |
| 9754 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9755 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 9756 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9757 | if test $ac_cv_func_shl_load = yes; then |
| 9758 | lt_cv_dlopen="shl_load" |
| 9759 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9760 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 9761 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9762 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 9763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9764 | else |
| 9765 | ac_check_lib_save_LIBS=$LIBS |
| 9766 | LIBS="-ldld $LIBS" |
| 9767 | cat >conftest.$ac_ext <<_ACEOF |
| 9768 | /* confdefs.h. */ |
| 9769 | _ACEOF |
| 9770 | cat confdefs.h >>conftest.$ac_ext |
| 9771 | cat >>conftest.$ac_ext <<_ACEOF |
| 9772 | /* end confdefs.h. */ |
| 9773 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9774 | /* Override any GCC internal prototype to avoid an error. |
| 9775 | Use char because int might match the return type of a GCC |
| 9776 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9777 | #ifdef __cplusplus |
| 9778 | extern "C" |
| 9779 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9780 | char shl_load (); |
| 9781 | int |
| 9782 | main () |
| 9783 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9784 | return shl_load (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9785 | ; |
| 9786 | return 0; |
| 9787 | } |
| 9788 | _ACEOF |
| 9789 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9790 | if { (ac_try="$ac_link" |
| 9791 | case "(($ac_try" in |
| 9792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9793 | *) ac_try_echo=$ac_try;; |
| 9794 | esac |
| 9795 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9796 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9797 | ac_status=$? |
| 9798 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9799 | rm -f conftest.er1 |
| 9800 | cat conftest.err >&5 |
| 9801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9802 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9803 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9804 | { (case "(($ac_try" in |
| 9805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9806 | *) ac_try_echo=$ac_try;; |
| 9807 | esac |
| 9808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9809 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9810 | ac_status=$? |
| 9811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9812 | (exit $ac_status); }; } && |
| 9813 | { ac_try='test -s conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9814 | { (case "(($ac_try" in |
| 9815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9816 | *) ac_try_echo=$ac_try;; |
| 9817 | esac |
| 9818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9819 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9820 | ac_status=$? |
| 9821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9822 | (exit $ac_status); }; }; then |
| 9823 | ac_cv_lib_dld_shl_load=yes |
| 9824 | else |
| 9825 | echo "$as_me: failed program was:" >&5 |
| 9826 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9827 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9828 | ac_cv_lib_dld_shl_load=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9829 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9830 | |
| 9831 | rm -f core conftest.err conftest.$ac_objext \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9832 | conftest$ac_exeext conftest.$ac_ext |
| 9833 | LIBS=$ac_check_lib_save_LIBS |
| 9834 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9835 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9836 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9837 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 9838 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 9839 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9840 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 9841 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9842 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 9843 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9844 | else |
| 9845 | cat >conftest.$ac_ext <<_ACEOF |
| 9846 | /* confdefs.h. */ |
| 9847 | _ACEOF |
| 9848 | cat confdefs.h >>conftest.$ac_ext |
| 9849 | cat >>conftest.$ac_ext <<_ACEOF |
| 9850 | /* end confdefs.h. */ |
| 9851 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 9852 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9853 | #define dlopen innocuous_dlopen |
| 9854 | |
| 9855 | /* System header to define __stub macros and hopefully few prototypes, |
| 9856 | which can conflict with char dlopen (); below. |
| 9857 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9858 | <limits.h> exists even on freestanding compilers. */ |
| 9859 | |
| 9860 | #ifdef __STDC__ |
| 9861 | # include <limits.h> |
| 9862 | #else |
| 9863 | # include <assert.h> |
| 9864 | #endif |
| 9865 | |
| 9866 | #undef dlopen |
| 9867 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9868 | /* Override any GCC internal prototype to avoid an error. |
| 9869 | Use char because int might match the return type of a GCC |
| 9870 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9871 | #ifdef __cplusplus |
| 9872 | extern "C" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9873 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9874 | char dlopen (); |
| 9875 | /* The GNU C library defines this for functions which it implements |
| 9876 | to always fail with ENOSYS. Some functions are actually named |
| 9877 | something starting with __ and the normal name is an alias. */ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9878 | #if defined __stub_dlopen || defined __stub___dlopen |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9879 | choke me |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9880 | #endif |
| 9881 | |
| 9882 | int |
| 9883 | main () |
| 9884 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9885 | return dlopen (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9886 | ; |
| 9887 | return 0; |
| 9888 | } |
| 9889 | _ACEOF |
| 9890 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9891 | if { (ac_try="$ac_link" |
| 9892 | case "(($ac_try" in |
| 9893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9894 | *) ac_try_echo=$ac_try;; |
| 9895 | esac |
| 9896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9897 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9898 | ac_status=$? |
| 9899 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9900 | rm -f conftest.er1 |
| 9901 | cat conftest.err >&5 |
| 9902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9903 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9904 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9905 | { (case "(($ac_try" in |
| 9906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9907 | *) ac_try_echo=$ac_try;; |
| 9908 | esac |
| 9909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9910 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9911 | ac_status=$? |
| 9912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9913 | (exit $ac_status); }; } && |
| 9914 | { ac_try='test -s conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9915 | { (case "(($ac_try" in |
| 9916 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9917 | *) ac_try_echo=$ac_try;; |
| 9918 | esac |
| 9919 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9920 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9921 | ac_status=$? |
| 9922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9923 | (exit $ac_status); }; }; then |
| 9924 | ac_cv_func_dlopen=yes |
| 9925 | else |
| 9926 | echo "$as_me: failed program was:" >&5 |
| 9927 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9928 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9929 | ac_cv_func_dlopen=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9930 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9931 | |
| 9932 | rm -f core conftest.err conftest.$ac_objext \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9933 | conftest$ac_exeext conftest.$ac_ext |
| 9934 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9935 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 9936 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9937 | if test $ac_cv_func_dlopen = yes; then |
| 9938 | lt_cv_dlopen="dlopen" |
| 9939 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9940 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 9941 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9942 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 9943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9944 | else |
| 9945 | ac_check_lib_save_LIBS=$LIBS |
| 9946 | LIBS="-ldl $LIBS" |
| 9947 | cat >conftest.$ac_ext <<_ACEOF |
| 9948 | /* confdefs.h. */ |
| 9949 | _ACEOF |
| 9950 | cat confdefs.h >>conftest.$ac_ext |
| 9951 | cat >>conftest.$ac_ext <<_ACEOF |
| 9952 | /* end confdefs.h. */ |
| 9953 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9954 | /* Override any GCC internal prototype to avoid an error. |
| 9955 | Use char because int might match the return type of a GCC |
| 9956 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9957 | #ifdef __cplusplus |
| 9958 | extern "C" |
| 9959 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9960 | char dlopen (); |
| 9961 | int |
| 9962 | main () |
| 9963 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9964 | return dlopen (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9965 | ; |
| 9966 | return 0; |
| 9967 | } |
| 9968 | _ACEOF |
| 9969 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9970 | if { (ac_try="$ac_link" |
| 9971 | case "(($ac_try" in |
| 9972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9973 | *) ac_try_echo=$ac_try;; |
| 9974 | esac |
| 9975 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9976 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9977 | ac_status=$? |
| 9978 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9979 | rm -f conftest.er1 |
| 9980 | cat conftest.err >&5 |
| 9981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9982 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9983 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9984 | { (case "(($ac_try" in |
| 9985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9986 | *) ac_try_echo=$ac_try;; |
| 9987 | esac |
| 9988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9989 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9990 | ac_status=$? |
| 9991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9992 | (exit $ac_status); }; } && |
| 9993 | { ac_try='test -s conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9994 | { (case "(($ac_try" in |
| 9995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9996 | *) ac_try_echo=$ac_try;; |
| 9997 | esac |
| 9998 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9999 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10000 | ac_status=$? |
| 10001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10002 | (exit $ac_status); }; }; then |
| 10003 | ac_cv_lib_dl_dlopen=yes |
| 10004 | else |
| 10005 | echo "$as_me: failed program was:" >&5 |
| 10006 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10007 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10008 | ac_cv_lib_dl_dlopen=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10009 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10010 | |
| 10011 | rm -f core conftest.err conftest.$ac_objext \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10012 | conftest$ac_exeext conftest.$ac_ext |
| 10013 | LIBS=$ac_check_lib_save_LIBS |
| 10014 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10015 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10016 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10017 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 10018 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 10019 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10020 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 10021 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10022 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 10023 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10024 | else |
| 10025 | ac_check_lib_save_LIBS=$LIBS |
| 10026 | LIBS="-lsvld $LIBS" |
| 10027 | cat >conftest.$ac_ext <<_ACEOF |
| 10028 | /* confdefs.h. */ |
| 10029 | _ACEOF |
| 10030 | cat confdefs.h >>conftest.$ac_ext |
| 10031 | cat >>conftest.$ac_ext <<_ACEOF |
| 10032 | /* end confdefs.h. */ |
| 10033 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10034 | /* Override any GCC internal prototype to avoid an error. |
| 10035 | Use char because int might match the return type of a GCC |
| 10036 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10037 | #ifdef __cplusplus |
| 10038 | extern "C" |
| 10039 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10040 | char dlopen (); |
| 10041 | int |
| 10042 | main () |
| 10043 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10044 | return dlopen (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10045 | ; |
| 10046 | return 0; |
| 10047 | } |
| 10048 | _ACEOF |
| 10049 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10050 | if { (ac_try="$ac_link" |
| 10051 | case "(($ac_try" in |
| 10052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10053 | *) ac_try_echo=$ac_try;; |
| 10054 | esac |
| 10055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10056 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10057 | ac_status=$? |
| 10058 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10059 | rm -f conftest.er1 |
| 10060 | cat conftest.err >&5 |
| 10061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10062 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10063 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10064 | { (case "(($ac_try" in |
| 10065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10066 | *) ac_try_echo=$ac_try;; |
| 10067 | esac |
| 10068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10069 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10070 | ac_status=$? |
| 10071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10072 | (exit $ac_status); }; } && |
| 10073 | { ac_try='test -s conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10074 | { (case "(($ac_try" in |
| 10075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10076 | *) ac_try_echo=$ac_try;; |
| 10077 | esac |
| 10078 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10079 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10080 | ac_status=$? |
| 10081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10082 | (exit $ac_status); }; }; then |
| 10083 | ac_cv_lib_svld_dlopen=yes |
| 10084 | else |
| 10085 | echo "$as_me: failed program was:" >&5 |
| 10086 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10087 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10088 | ac_cv_lib_svld_dlopen=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10089 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10090 | |
| 10091 | rm -f core conftest.err conftest.$ac_objext \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10092 | conftest$ac_exeext conftest.$ac_ext |
| 10093 | LIBS=$ac_check_lib_save_LIBS |
| 10094 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10095 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 10096 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10097 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 10098 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 10099 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10100 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 10101 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10102 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 10103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10104 | else |
| 10105 | ac_check_lib_save_LIBS=$LIBS |
| 10106 | LIBS="-ldld $LIBS" |
| 10107 | cat >conftest.$ac_ext <<_ACEOF |
| 10108 | /* confdefs.h. */ |
| 10109 | _ACEOF |
| 10110 | cat confdefs.h >>conftest.$ac_ext |
| 10111 | cat >>conftest.$ac_ext <<_ACEOF |
| 10112 | /* end confdefs.h. */ |
| 10113 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10114 | /* Override any GCC internal prototype to avoid an error. |
| 10115 | Use char because int might match the return type of a GCC |
| 10116 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10117 | #ifdef __cplusplus |
| 10118 | extern "C" |
| 10119 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10120 | char dld_link (); |
| 10121 | int |
| 10122 | main () |
| 10123 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10124 | return dld_link (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10125 | ; |
| 10126 | return 0; |
| 10127 | } |
| 10128 | _ACEOF |
| 10129 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10130 | if { (ac_try="$ac_link" |
| 10131 | case "(($ac_try" in |
| 10132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10133 | *) ac_try_echo=$ac_try;; |
| 10134 | esac |
| 10135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10136 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10137 | ac_status=$? |
| 10138 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10139 | rm -f conftest.er1 |
| 10140 | cat conftest.err >&5 |
| 10141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10142 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10143 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10144 | { (case "(($ac_try" in |
| 10145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10146 | *) ac_try_echo=$ac_try;; |
| 10147 | esac |
| 10148 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10149 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10150 | ac_status=$? |
| 10151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10152 | (exit $ac_status); }; } && |
| 10153 | { ac_try='test -s conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10154 | { (case "(($ac_try" in |
| 10155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10156 | *) ac_try_echo=$ac_try;; |
| 10157 | esac |
| 10158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10159 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10160 | ac_status=$? |
| 10161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10162 | (exit $ac_status); }; }; then |
| 10163 | ac_cv_lib_dld_dld_link=yes |
| 10164 | else |
| 10165 | echo "$as_me: failed program was:" >&5 |
| 10166 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10167 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10168 | ac_cv_lib_dld_dld_link=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10169 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10170 | |
| 10171 | rm -f core conftest.err conftest.$ac_objext \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10172 | conftest$ac_exeext conftest.$ac_ext |
| 10173 | LIBS=$ac_check_lib_save_LIBS |
| 10174 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10175 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 10176 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10177 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 10178 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 10179 | fi |
| 10180 | |
| 10181 | |
| 10182 | fi |
| 10183 | |
| 10184 | |
| 10185 | fi |
| 10186 | |
| 10187 | |
| 10188 | fi |
| 10189 | |
| 10190 | |
| 10191 | fi |
| 10192 | |
| 10193 | |
| 10194 | fi |
| 10195 | |
| 10196 | ;; |
| 10197 | esac |
| 10198 | |
| 10199 | if test "x$lt_cv_dlopen" != xno; then |
| 10200 | enable_dlopen=yes |
| 10201 | else |
| 10202 | enable_dlopen=no |
| 10203 | fi |
| 10204 | |
| 10205 | case $lt_cv_dlopen in |
| 10206 | dlopen) |
| 10207 | save_CPPFLAGS="$CPPFLAGS" |
| 10208 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 10209 | |
| 10210 | save_LDFLAGS="$LDFLAGS" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10211 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10212 | |
| 10213 | save_LIBS="$LIBS" |
| 10214 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 10215 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10216 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 10217 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10218 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 10219 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10220 | else |
| 10221 | if test "$cross_compiling" = yes; then : |
| 10222 | lt_cv_dlopen_self=cross |
| 10223 | else |
| 10224 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 10225 | lt_status=$lt_dlunknown |
| 10226 | cat > conftest.$ac_ext <<EOF |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 10227 | #line 10227 "configure" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10228 | #include "confdefs.h" |
| 10229 | |
| 10230 | #if HAVE_DLFCN_H |
| 10231 | #include <dlfcn.h> |
| 10232 | #endif |
| 10233 | |
| 10234 | #include <stdio.h> |
| 10235 | |
| 10236 | #ifdef RTLD_GLOBAL |
| 10237 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 10238 | #else |
| 10239 | # ifdef DL_GLOBAL |
| 10240 | # define LT_DLGLOBAL DL_GLOBAL |
| 10241 | # else |
| 10242 | # define LT_DLGLOBAL 0 |
| 10243 | # endif |
| 10244 | #endif |
| 10245 | |
| 10246 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 10247 | find out it does not work in some platform. */ |
| 10248 | #ifndef LT_DLLAZY_OR_NOW |
| 10249 | # ifdef RTLD_LAZY |
| 10250 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 10251 | # else |
| 10252 | # ifdef DL_LAZY |
| 10253 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 10254 | # else |
| 10255 | # ifdef RTLD_NOW |
| 10256 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 10257 | # else |
| 10258 | # ifdef DL_NOW |
| 10259 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 10260 | # else |
| 10261 | # define LT_DLLAZY_OR_NOW 0 |
| 10262 | # endif |
| 10263 | # endif |
| 10264 | # endif |
| 10265 | # endif |
| 10266 | #endif |
| 10267 | |
| 10268 | #ifdef __cplusplus |
| 10269 | extern "C" void exit (int); |
| 10270 | #endif |
| 10271 | |
| 10272 | void fnord() { int i=42;} |
| 10273 | int main () |
| 10274 | { |
| 10275 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 10276 | int status = $lt_dlunknown; |
| 10277 | |
| 10278 | if (self) |
| 10279 | { |
| 10280 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 10281 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 10282 | /* dlclose (self); */ |
| 10283 | } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10284 | else |
| 10285 | puts (dlerror ()); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10286 | |
| 10287 | exit (status); |
| 10288 | } |
| 10289 | EOF |
| 10290 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10291 | (eval $ac_link) 2>&5 |
| 10292 | ac_status=$? |
| 10293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10294 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10295 | (./conftest; exit; ) >&5 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10296 | lt_status=$? |
| 10297 | case x$lt_status in |
| 10298 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 10299 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10300 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10301 | esac |
| 10302 | else : |
| 10303 | # compilation failed |
| 10304 | lt_cv_dlopen_self=no |
| 10305 | fi |
| 10306 | fi |
| 10307 | rm -fr conftest* |
| 10308 | |
| 10309 | |
| 10310 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10311 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 10312 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10313 | |
| 10314 | if test "x$lt_cv_dlopen_self" = xyes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10315 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 10316 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 10317 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10318 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 10319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10320 | else |
| 10321 | if test "$cross_compiling" = yes; then : |
| 10322 | lt_cv_dlopen_self_static=cross |
| 10323 | else |
| 10324 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 10325 | lt_status=$lt_dlunknown |
| 10326 | cat > conftest.$ac_ext <<EOF |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 10327 | #line 10327 "configure" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10328 | #include "confdefs.h" |
| 10329 | |
| 10330 | #if HAVE_DLFCN_H |
| 10331 | #include <dlfcn.h> |
| 10332 | #endif |
| 10333 | |
| 10334 | #include <stdio.h> |
| 10335 | |
| 10336 | #ifdef RTLD_GLOBAL |
| 10337 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 10338 | #else |
| 10339 | # ifdef DL_GLOBAL |
| 10340 | # define LT_DLGLOBAL DL_GLOBAL |
| 10341 | # else |
| 10342 | # define LT_DLGLOBAL 0 |
| 10343 | # endif |
| 10344 | #endif |
| 10345 | |
| 10346 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 10347 | find out it does not work in some platform. */ |
| 10348 | #ifndef LT_DLLAZY_OR_NOW |
| 10349 | # ifdef RTLD_LAZY |
| 10350 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 10351 | # else |
| 10352 | # ifdef DL_LAZY |
| 10353 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 10354 | # else |
| 10355 | # ifdef RTLD_NOW |
| 10356 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 10357 | # else |
| 10358 | # ifdef DL_NOW |
| 10359 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 10360 | # else |
| 10361 | # define LT_DLLAZY_OR_NOW 0 |
| 10362 | # endif |
| 10363 | # endif |
| 10364 | # endif |
| 10365 | # endif |
| 10366 | #endif |
| 10367 | |
| 10368 | #ifdef __cplusplus |
| 10369 | extern "C" void exit (int); |
| 10370 | #endif |
| 10371 | |
| 10372 | void fnord() { int i=42;} |
| 10373 | int main () |
| 10374 | { |
| 10375 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 10376 | int status = $lt_dlunknown; |
| 10377 | |
| 10378 | if (self) |
| 10379 | { |
| 10380 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 10381 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 10382 | /* dlclose (self); */ |
| 10383 | } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10384 | else |
| 10385 | puts (dlerror ()); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10386 | |
| 10387 | exit (status); |
| 10388 | } |
| 10389 | EOF |
| 10390 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10391 | (eval $ac_link) 2>&5 |
| 10392 | ac_status=$? |
| 10393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10394 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10395 | (./conftest; exit; ) >&5 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10396 | lt_status=$? |
| 10397 | case x$lt_status in |
| 10398 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 10399 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10400 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10401 | esac |
| 10402 | else : |
| 10403 | # compilation failed |
| 10404 | lt_cv_dlopen_self_static=no |
| 10405 | fi |
| 10406 | fi |
| 10407 | rm -fr conftest* |
| 10408 | |
| 10409 | |
| 10410 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10411 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 10412 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10413 | fi |
| 10414 | |
| 10415 | CPPFLAGS="$save_CPPFLAGS" |
| 10416 | LDFLAGS="$save_LDFLAGS" |
| 10417 | LIBS="$save_LIBS" |
| 10418 | ;; |
| 10419 | esac |
| 10420 | |
| 10421 | case $lt_cv_dlopen_self in |
| 10422 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 10423 | *) enable_dlopen_self=unknown ;; |
| 10424 | esac |
| 10425 | |
| 10426 | case $lt_cv_dlopen_self_static in |
| 10427 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 10428 | *) enable_dlopen_self_static=unknown ;; |
| 10429 | esac |
| 10430 | fi |
| 10431 | |
| 10432 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10433 | # Report which library types will actually be built |
| 10434 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 10435 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
| 10436 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 10437 | echo "${ECHO_T}$can_build_shared" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10438 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10439 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 10440 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10441 | test "$can_build_shared" = "no" && enable_shared=no |
| 10442 | |
| 10443 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 10444 | # are all built from PIC. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10445 | case $host_os in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10446 | aix3*) |
| 10447 | test "$enable_shared" = yes && enable_static=no |
| 10448 | if test -n "$RANLIB"; then |
| 10449 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 10450 | postinstall_cmds='$RANLIB $lib' |
| 10451 | fi |
| 10452 | ;; |
| 10453 | |
| 10454 | aix4* | aix5*) |
| 10455 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 10456 | test "$enable_shared" = yes && enable_static=no |
| 10457 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10458 | ;; |
| 10459 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10460 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 10461 | echo "${ECHO_T}$enable_shared" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10462 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10463 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 10464 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10465 | # Make sure either enable_shared or enable_static is yes. |
| 10466 | test "$enable_shared" = yes || enable_static=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10467 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 10468 | echo "${ECHO_T}$enable_static" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10469 | |
| 10470 | # The else clause should only fire when bootstrapping the |
| 10471 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 10472 | # with your package, and you will get complaints that there are |
| 10473 | # no rules to generate ltmain.sh. |
| 10474 | if test -f "$ltmain"; then |
| 10475 | # See if we are running on zsh, and set the options which allow our commands through |
| 10476 | # without removal of \ escapes. |
| 10477 | if test -n "${ZSH_VERSION+set}" ; then |
| 10478 | setopt NO_GLOB_SUBST |
| 10479 | fi |
| 10480 | # Now quote all the things that may contain metacharacters while being |
| 10481 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 10482 | # variables and quote the copies for generation of the libtool script. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10483 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10484 | SED SHELL STRIP \ |
| 10485 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 10486 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 10487 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 10488 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 10489 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 10490 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 10491 | old_postinstall_cmds old_postuninstall_cmds \ |
| 10492 | compiler \ |
| 10493 | CC \ |
| 10494 | LD \ |
| 10495 | lt_prog_compiler_wl \ |
| 10496 | lt_prog_compiler_pic \ |
| 10497 | lt_prog_compiler_static \ |
| 10498 | lt_prog_compiler_no_builtin_flag \ |
| 10499 | export_dynamic_flag_spec \ |
| 10500 | thread_safe_flag_spec \ |
| 10501 | whole_archive_flag_spec \ |
| 10502 | enable_shared_with_static_runtimes \ |
| 10503 | old_archive_cmds \ |
| 10504 | old_archive_from_new_cmds \ |
| 10505 | predep_objects \ |
| 10506 | postdep_objects \ |
| 10507 | predeps \ |
| 10508 | postdeps \ |
| 10509 | compiler_lib_search_path \ |
| 10510 | archive_cmds \ |
| 10511 | archive_expsym_cmds \ |
| 10512 | postinstall_cmds \ |
| 10513 | postuninstall_cmds \ |
| 10514 | old_archive_from_expsyms_cmds \ |
| 10515 | allow_undefined_flag \ |
| 10516 | no_undefined_flag \ |
| 10517 | export_symbols_cmds \ |
| 10518 | hardcode_libdir_flag_spec \ |
| 10519 | hardcode_libdir_flag_spec_ld \ |
| 10520 | hardcode_libdir_separator \ |
| 10521 | hardcode_automatic \ |
| 10522 | module_cmds \ |
| 10523 | module_expsym_cmds \ |
| 10524 | lt_cv_prog_compiler_c_o \ |
| 10525 | exclude_expsyms \ |
| 10526 | include_expsyms; do |
| 10527 | |
| 10528 | case $var in |
| 10529 | old_archive_cmds | \ |
| 10530 | old_archive_from_new_cmds | \ |
| 10531 | archive_cmds | \ |
| 10532 | archive_expsym_cmds | \ |
| 10533 | module_cmds | \ |
| 10534 | module_expsym_cmds | \ |
| 10535 | old_archive_from_expsyms_cmds | \ |
| 10536 | export_symbols_cmds | \ |
| 10537 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 10538 | postinstall_cmds | postuninstall_cmds | \ |
| 10539 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 10540 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 10541 | # Double-quote double-evaled strings. |
| 10542 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 10543 | ;; |
| 10544 | *) |
| 10545 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 10546 | ;; |
| 10547 | esac |
| 10548 | done |
| 10549 | |
| 10550 | case $lt_echo in |
| 10551 | *'\$0 --fallback-echo"') |
| 10552 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 10553 | ;; |
| 10554 | esac |
| 10555 | |
| 10556 | cfgfile="${ofile}T" |
| 10557 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
| 10558 | $rm -f "$cfgfile" |
| 10559 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
| 10560 | echo "$as_me: creating $ofile" >&6;} |
| 10561 | |
| 10562 | cat <<__EOF__ >> "$cfgfile" |
| 10563 | #! $SHELL |
| 10564 | |
| 10565 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 10566 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 10567 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 10568 | # |
| 10569 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
| 10570 | # Free Software Foundation, Inc. |
| 10571 | # |
| 10572 | # This file is part of GNU Libtool: |
| 10573 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 10574 | # |
| 10575 | # This program is free software; you can redistribute it and/or modify |
| 10576 | # it under the terms of the GNU General Public License as published by |
| 10577 | # the Free Software Foundation; either version 2 of the License, or |
| 10578 | # (at your option) any later version. |
| 10579 | # |
| 10580 | # This program is distributed in the hope that it will be useful, but |
| 10581 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10582 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 10583 | # General Public License for more details. |
| 10584 | # |
| 10585 | # You should have received a copy of the GNU General Public License |
| 10586 | # along with this program; if not, write to the Free Software |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10587 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10588 | # |
| 10589 | # As a special exception to the GNU General Public License, if you |
| 10590 | # distribute this file as part of a program that contains a |
| 10591 | # configuration script generated by Autoconf, you may include it under |
| 10592 | # the same distribution terms that you use for the rest of that program. |
| 10593 | |
| 10594 | # A sed program that does not truncate output. |
| 10595 | SED=$lt_SED |
| 10596 | |
| 10597 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10598 | Xsed="$SED -e 1s/^X//" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10599 | |
| 10600 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 10601 | # if CDPATH is set. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10602 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10603 | |
| 10604 | # The names of the tagged configurations supported by this script. |
| 10605 | available_tags= |
| 10606 | |
| 10607 | # ### BEGIN LIBTOOL CONFIG |
| 10608 | |
| 10609 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 10610 | |
| 10611 | # Shell to use when invoking shell scripts. |
| 10612 | SHELL=$lt_SHELL |
| 10613 | |
| 10614 | # Whether or not to build shared libraries. |
| 10615 | build_libtool_libs=$enable_shared |
| 10616 | |
| 10617 | # Whether or not to build static libraries. |
| 10618 | build_old_libs=$enable_static |
| 10619 | |
| 10620 | # Whether or not to add -lc for building shared libraries. |
| 10621 | build_libtool_need_lc=$archive_cmds_need_lc |
| 10622 | |
| 10623 | # Whether or not to disallow shared libs when runtime libs are static |
| 10624 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 10625 | |
| 10626 | # Whether or not to optimize for fast installation. |
| 10627 | fast_install=$enable_fast_install |
| 10628 | |
| 10629 | # The host system. |
| 10630 | host_alias=$host_alias |
| 10631 | host=$host |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10632 | host_os=$host_os |
| 10633 | |
| 10634 | # The build system. |
| 10635 | build_alias=$build_alias |
| 10636 | build=$build |
| 10637 | build_os=$build_os |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10638 | |
| 10639 | # An echo program that does not interpret backslashes. |
| 10640 | echo=$lt_echo |
| 10641 | |
| 10642 | # The archiver. |
| 10643 | AR=$lt_AR |
| 10644 | AR_FLAGS=$lt_AR_FLAGS |
| 10645 | |
| 10646 | # A C compiler. |
| 10647 | LTCC=$lt_LTCC |
| 10648 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10649 | # LTCC compiler flags. |
| 10650 | LTCFLAGS=$lt_LTCFLAGS |
| 10651 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10652 | # A language-specific compiler. |
| 10653 | CC=$lt_compiler |
| 10654 | |
| 10655 | # Is the compiler the GNU C compiler? |
| 10656 | with_gcc=$GCC |
| 10657 | |
| 10658 | # An ERE matcher. |
| 10659 | EGREP=$lt_EGREP |
| 10660 | |
| 10661 | # The linker used to build libraries. |
| 10662 | LD=$lt_LD |
| 10663 | |
| 10664 | # Whether we need hard or soft links. |
| 10665 | LN_S=$lt_LN_S |
| 10666 | |
| 10667 | # A BSD-compatible nm program. |
| 10668 | NM=$lt_NM |
| 10669 | |
| 10670 | # A symbol stripping program |
| 10671 | STRIP=$lt_STRIP |
| 10672 | |
| 10673 | # Used to examine libraries when file_magic_cmd begins "file" |
| 10674 | MAGIC_CMD=$MAGIC_CMD |
| 10675 | |
| 10676 | # Used on cygwin: DLL creation program. |
| 10677 | DLLTOOL="$DLLTOOL" |
| 10678 | |
| 10679 | # Used on cygwin: object dumper. |
| 10680 | OBJDUMP="$OBJDUMP" |
| 10681 | |
| 10682 | # Used on cygwin: assembler. |
| 10683 | AS="$AS" |
| 10684 | |
| 10685 | # The name of the directory that contains temporary libtool files. |
| 10686 | objdir=$objdir |
| 10687 | |
| 10688 | # How to create reloadable object files. |
| 10689 | reload_flag=$lt_reload_flag |
| 10690 | reload_cmds=$lt_reload_cmds |
| 10691 | |
| 10692 | # How to pass a linker flag through the compiler. |
| 10693 | wl=$lt_lt_prog_compiler_wl |
| 10694 | |
| 10695 | # Object file suffix (normally "o"). |
| 10696 | objext="$ac_objext" |
| 10697 | |
| 10698 | # Old archive suffix (normally "a"). |
| 10699 | libext="$libext" |
| 10700 | |
| 10701 | # Shared library suffix (normally ".so"). |
| 10702 | shrext_cmds='$shrext_cmds' |
| 10703 | |
| 10704 | # Executable file suffix (normally ""). |
| 10705 | exeext="$exeext" |
| 10706 | |
| 10707 | # Additional compiler flags for building library objects. |
| 10708 | pic_flag=$lt_lt_prog_compiler_pic |
| 10709 | pic_mode=$pic_mode |
| 10710 | |
| 10711 | # What is the maximum length of a command? |
| 10712 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 10713 | |
| 10714 | # Does compiler simultaneously support -c and -o options? |
| 10715 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 10716 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10717 | # Must we lock files when doing compilation? |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10718 | need_locks=$lt_need_locks |
| 10719 | |
| 10720 | # Do we need the lib prefix for modules? |
| 10721 | need_lib_prefix=$need_lib_prefix |
| 10722 | |
| 10723 | # Do we need a version for libraries? |
| 10724 | need_version=$need_version |
| 10725 | |
| 10726 | # Whether dlopen is supported. |
| 10727 | dlopen_support=$enable_dlopen |
| 10728 | |
| 10729 | # Whether dlopen of programs is supported. |
| 10730 | dlopen_self=$enable_dlopen_self |
| 10731 | |
| 10732 | # Whether dlopen of statically linked programs is supported. |
| 10733 | dlopen_self_static=$enable_dlopen_self_static |
| 10734 | |
| 10735 | # Compiler flag to prevent dynamic linking. |
| 10736 | link_static_flag=$lt_lt_prog_compiler_static |
| 10737 | |
| 10738 | # Compiler flag to turn off builtin functions. |
| 10739 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 10740 | |
| 10741 | # Compiler flag to allow reflexive dlopens. |
| 10742 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 10743 | |
| 10744 | # Compiler flag to generate shared objects directly from archives. |
| 10745 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 10746 | |
| 10747 | # Compiler flag to generate thread-safe objects. |
| 10748 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 10749 | |
| 10750 | # Library versioning type. |
| 10751 | version_type=$version_type |
| 10752 | |
| 10753 | # Format of library name prefix. |
| 10754 | libname_spec=$lt_libname_spec |
| 10755 | |
| 10756 | # List of archive names. First name is the real one, the rest are links. |
| 10757 | # The last name is the one that the linker finds with -lNAME. |
| 10758 | library_names_spec=$lt_library_names_spec |
| 10759 | |
| 10760 | # The coded name of the library, if different from the real name. |
| 10761 | soname_spec=$lt_soname_spec |
| 10762 | |
| 10763 | # Commands used to build and install an old-style archive. |
| 10764 | RANLIB=$lt_RANLIB |
| 10765 | old_archive_cmds=$lt_old_archive_cmds |
| 10766 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 10767 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 10768 | |
| 10769 | # Create an old-style archive from a shared archive. |
| 10770 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 10771 | |
| 10772 | # Create a temporary old-style archive to link instead of a shared archive. |
| 10773 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 10774 | |
| 10775 | # Commands used to build and install a shared archive. |
| 10776 | archive_cmds=$lt_archive_cmds |
| 10777 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 10778 | postinstall_cmds=$lt_postinstall_cmds |
| 10779 | postuninstall_cmds=$lt_postuninstall_cmds |
| 10780 | |
| 10781 | # Commands used to build a loadable module (assumed same as above if empty) |
| 10782 | module_cmds=$lt_module_cmds |
| 10783 | module_expsym_cmds=$lt_module_expsym_cmds |
| 10784 | |
| 10785 | # Commands to strip libraries. |
| 10786 | old_striplib=$lt_old_striplib |
| 10787 | striplib=$lt_striplib |
| 10788 | |
| 10789 | # Dependencies to place before the objects being linked to create a |
| 10790 | # shared library. |
| 10791 | predep_objects=$lt_predep_objects |
| 10792 | |
| 10793 | # Dependencies to place after the objects being linked to create a |
| 10794 | # shared library. |
| 10795 | postdep_objects=$lt_postdep_objects |
| 10796 | |
| 10797 | # Dependencies to place before the objects being linked to create a |
| 10798 | # shared library. |
| 10799 | predeps=$lt_predeps |
| 10800 | |
| 10801 | # Dependencies to place after the objects being linked to create a |
| 10802 | # shared library. |
| 10803 | postdeps=$lt_postdeps |
| 10804 | |
| 10805 | # The library search path used internally by the compiler when linking |
| 10806 | # a shared library. |
| 10807 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 10808 | |
| 10809 | # Method to check whether dependent libraries are shared objects. |
| 10810 | deplibs_check_method=$lt_deplibs_check_method |
| 10811 | |
| 10812 | # Command to use when deplibs_check_method == file_magic. |
| 10813 | file_magic_cmd=$lt_file_magic_cmd |
| 10814 | |
| 10815 | # Flag that allows shared libraries with undefined symbols to be built. |
| 10816 | allow_undefined_flag=$lt_allow_undefined_flag |
| 10817 | |
| 10818 | # Flag that forces no undefined symbols. |
| 10819 | no_undefined_flag=$lt_no_undefined_flag |
| 10820 | |
| 10821 | # Commands used to finish a libtool library installation in a directory. |
| 10822 | finish_cmds=$lt_finish_cmds |
| 10823 | |
| 10824 | # Same as above, but a single script fragment to be evaled but not shown. |
| 10825 | finish_eval=$lt_finish_eval |
| 10826 | |
| 10827 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 10828 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 10829 | |
| 10830 | # Transform the output of nm in a proper C declaration |
| 10831 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 10832 | |
| 10833 | # Transform the output of nm in a C name address pair |
| 10834 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 10835 | |
| 10836 | # This is the shared library runtime path variable. |
| 10837 | runpath_var=$runpath_var |
| 10838 | |
| 10839 | # This is the shared library path variable. |
| 10840 | shlibpath_var=$shlibpath_var |
| 10841 | |
| 10842 | # Is shlibpath searched before the hard-coded library search path? |
| 10843 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 10844 | |
| 10845 | # How to hardcode a shared library path into an executable. |
| 10846 | hardcode_action=$hardcode_action |
| 10847 | |
| 10848 | # Whether we should hardcode library paths into libraries. |
| 10849 | hardcode_into_libs=$hardcode_into_libs |
| 10850 | |
| 10851 | # Flag to hardcode \$libdir into a binary during linking. |
| 10852 | # This must work even if \$libdir does not exist. |
| 10853 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 10854 | |
| 10855 | # If ld is used when linking, flag to hardcode \$libdir into |
| 10856 | # a binary during linking. This must work even if \$libdir does |
| 10857 | # not exist. |
| 10858 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 10859 | |
| 10860 | # Whether we need a single -rpath flag with a separated argument. |
| 10861 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 10862 | |
| 10863 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 10864 | # resulting binary. |
| 10865 | hardcode_direct=$hardcode_direct |
| 10866 | |
| 10867 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 10868 | # resulting binary. |
| 10869 | hardcode_minus_L=$hardcode_minus_L |
| 10870 | |
| 10871 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 10872 | # the resulting binary. |
| 10873 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 10874 | |
| 10875 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 10876 | # and all subsequent libraries and executables linked against it. |
| 10877 | hardcode_automatic=$hardcode_automatic |
| 10878 | |
| 10879 | # Variables whose values should be saved in libtool wrapper scripts and |
| 10880 | # restored at relink time. |
| 10881 | variables_saved_for_relink="$variables_saved_for_relink" |
| 10882 | |
| 10883 | # Whether libtool must link a program against all its dependency libraries. |
| 10884 | link_all_deplibs=$link_all_deplibs |
| 10885 | |
| 10886 | # Compile-time system search path for libraries |
| 10887 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 10888 | |
| 10889 | # Run-time system search path for libraries |
| 10890 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 10891 | |
| 10892 | # Fix the shell variable \$srcfile for the compiler. |
| 10893 | fix_srcfile_path="$fix_srcfile_path" |
| 10894 | |
| 10895 | # Set to yes if exported symbols are required. |
| 10896 | always_export_symbols=$always_export_symbols |
| 10897 | |
| 10898 | # The commands to list exported symbols. |
| 10899 | export_symbols_cmds=$lt_export_symbols_cmds |
| 10900 | |
| 10901 | # The commands to extract the exported symbol list from a shared archive. |
| 10902 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 10903 | |
| 10904 | # Symbols that should not be listed in the preloaded symbols. |
| 10905 | exclude_expsyms=$lt_exclude_expsyms |
| 10906 | |
| 10907 | # Symbols that must always be exported. |
| 10908 | include_expsyms=$lt_include_expsyms |
| 10909 | |
| 10910 | # ### END LIBTOOL CONFIG |
| 10911 | |
| 10912 | __EOF__ |
| 10913 | |
| 10914 | |
| 10915 | case $host_os in |
| 10916 | aix3*) |
| 10917 | cat <<\EOF >> "$cfgfile" |
| 10918 | |
| 10919 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 10920 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 10921 | # vanish in a puff of smoke. |
| 10922 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 10923 | COLLECT_NAMES= |
| 10924 | export COLLECT_NAMES |
| 10925 | fi |
| 10926 | EOF |
| 10927 | ;; |
| 10928 | esac |
| 10929 | |
| 10930 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 10931 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 10932 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 10933 | # is reportedly fixed, but why not run on old versions too? |
| 10934 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
| 10935 | |
| 10936 | mv -f "$cfgfile" "$ofile" || \ |
| 10937 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 10938 | chmod +x "$ofile" |
| 10939 | |
| 10940 | else |
| 10941 | # If there is no Makefile yet, we rely on a make rule to execute |
| 10942 | # `config.status --recheck' to rerun these tests and create the |
| 10943 | # libtool script then. |
| 10944 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 10945 | if test -f "$ltmain_in"; then |
| 10946 | test -f Makefile && make "$ltmain" |
| 10947 | fi |
| 10948 | fi |
| 10949 | |
| 10950 | |
| 10951 | ac_ext=c |
| 10952 | ac_cpp='$CPP $CPPFLAGS' |
| 10953 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10954 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10955 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10956 | |
| 10957 | CC="$lt_save_CC" |
| 10958 | |
| 10959 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10960 | # Check whether --with-tags was given. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10961 | if test "${with_tags+set}" = set; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10962 | withval=$with_tags; tagnames="$withval" |
| 10963 | fi |
| 10964 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10965 | |
| 10966 | if test -f "$ltmain" && test -n "$tagnames"; then |
| 10967 | if test ! -f "${ofile}"; then |
| 10968 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
| 10969 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
| 10970 | fi |
| 10971 | |
| 10972 | if test -z "$LTCC"; then |
| 10973 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
| 10974 | if test -z "$LTCC"; then |
| 10975 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
| 10976 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
| 10977 | else |
| 10978 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
| 10979 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
| 10980 | fi |
| 10981 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10982 | if test -z "$LTCFLAGS"; then |
| 10983 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
| 10984 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10985 | |
| 10986 | # Extract list of available tagged configurations in $ofile. |
| 10987 | # Note that this assumes the entire list is on one line. |
| 10988 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
| 10989 | |
| 10990 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 10991 | for tagname in $tagnames; do |
| 10992 | IFS="$lt_save_ifs" |
| 10993 | # Check whether tagname contains only valid characters |
| 10994 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
| 10995 | "") ;; |
| 10996 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
| 10997 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
| 10998 | { (exit 1); exit 1; }; } |
| 10999 | ;; |
| 11000 | esac |
| 11001 | |
| 11002 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
| 11003 | then |
| 11004 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
| 11005 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
| 11006 | { (exit 1); exit 1; }; } |
| 11007 | fi |
| 11008 | |
| 11009 | # Update the list of available tags. |
| 11010 | if test -n "$tagname"; then |
| 11011 | echo appending configuration tag \"$tagname\" to $ofile |
| 11012 | |
| 11013 | case $tagname in |
| 11014 | CXX) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11015 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 11016 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 11017 | (test "X$CXX" != "Xg++"))) ; then |
| 11018 | ac_ext=cpp |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11019 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 11020 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11021 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11022 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 11023 | |
| 11024 | |
| 11025 | |
| 11026 | |
| 11027 | archive_cmds_need_lc_CXX=no |
| 11028 | allow_undefined_flag_CXX= |
| 11029 | always_export_symbols_CXX=no |
| 11030 | archive_expsym_cmds_CXX= |
| 11031 | export_dynamic_flag_spec_CXX= |
| 11032 | hardcode_direct_CXX=no |
| 11033 | hardcode_libdir_flag_spec_CXX= |
| 11034 | hardcode_libdir_flag_spec_ld_CXX= |
| 11035 | hardcode_libdir_separator_CXX= |
| 11036 | hardcode_minus_L_CXX=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11037 | hardcode_shlibpath_var_CXX=unsupported |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11038 | hardcode_automatic_CXX=no |
| 11039 | module_cmds_CXX= |
| 11040 | module_expsym_cmds_CXX= |
| 11041 | link_all_deplibs_CXX=unknown |
| 11042 | old_archive_cmds_CXX=$old_archive_cmds |
| 11043 | no_undefined_flag_CXX= |
| 11044 | whole_archive_flag_spec_CXX= |
| 11045 | enable_shared_with_static_runtimes_CXX=no |
| 11046 | |
| 11047 | # Dependencies to place before and after the object being linked: |
| 11048 | predep_objects_CXX= |
| 11049 | postdep_objects_CXX= |
| 11050 | predeps_CXX= |
| 11051 | postdeps_CXX= |
| 11052 | compiler_lib_search_path_CXX= |
| 11053 | |
| 11054 | # Source file extension for C++ test sources. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11055 | ac_ext=cpp |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11056 | |
| 11057 | # Object file extension for compiled C++ test sources. |
| 11058 | objext=o |
| 11059 | objext_CXX=$objext |
| 11060 | |
| 11061 | # Code to be used in simple compile tests |
| 11062 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 11063 | |
| 11064 | # Code to be used in simple link tests |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11065 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11066 | |
| 11067 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 11068 | |
| 11069 | # If no C compiler was specified, use CC. |
| 11070 | LTCC=${LTCC-"$CC"} |
| 11071 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11072 | # If no C compiler flags were specified, use CFLAGS. |
| 11073 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 11074 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11075 | # Allow CC to be a program name with arguments. |
| 11076 | compiler=$CC |
| 11077 | |
| 11078 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11079 | # save warnings/boilerplate of simple test code |
| 11080 | ac_outfile=conftest.$ac_objext |
| 11081 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 11082 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 11083 | _lt_compiler_boilerplate=`cat conftest.err` |
| 11084 | $rm conftest* |
| 11085 | |
| 11086 | ac_outfile=conftest.$ac_objext |
| 11087 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 11088 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 11089 | _lt_linker_boilerplate=`cat conftest.err` |
| 11090 | $rm conftest* |
| 11091 | |
| 11092 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11093 | # Allow CC to be a program name with arguments. |
| 11094 | lt_save_CC=$CC |
| 11095 | lt_save_LD=$LD |
| 11096 | lt_save_GCC=$GCC |
| 11097 | GCC=$GXX |
| 11098 | lt_save_with_gnu_ld=$with_gnu_ld |
| 11099 | lt_save_path_LD=$lt_cv_path_LD |
| 11100 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 11101 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 11102 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11103 | $as_unset lt_cv_prog_gnu_ld |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11104 | fi |
| 11105 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 11106 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 11107 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11108 | $as_unset lt_cv_path_LD |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11109 | fi |
| 11110 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 11111 | CC=${CXX-"c++"} |
| 11112 | compiler=$CC |
| 11113 | compiler_CXX=$CC |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11114 | for cc_temp in $compiler""; do |
| 11115 | case $cc_temp in |
| 11116 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 11117 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 11118 | \-*) ;; |
| 11119 | *) break;; |
| 11120 | esac |
| 11121 | done |
| 11122 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 11123 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11124 | |
| 11125 | # We don't want -fno-exception wen compiling C++ code, so set the |
| 11126 | # no_builtin_flag separately |
| 11127 | if test "$GXX" = yes; then |
| 11128 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 11129 | else |
| 11130 | lt_prog_compiler_no_builtin_flag_CXX= |
| 11131 | fi |
| 11132 | |
| 11133 | if test "$GXX" = yes; then |
| 11134 | # Set up default GNU C++ configuration |
| 11135 | |
| 11136 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11137 | # Check whether --with-gnu-ld was given. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11138 | if test "${with_gnu_ld+set}" = set; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11139 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11140 | else |
| 11141 | with_gnu_ld=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11142 | fi |
| 11143 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11144 | ac_prog=ld |
| 11145 | if test "$GCC" = yes; then |
| 11146 | # Check if gcc -print-prog-name=ld gives a path. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11147 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 11148 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11149 | case $host in |
| 11150 | *-*-mingw*) |
| 11151 | # gcc leaves a trailing carriage return which upsets mingw |
| 11152 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 11153 | *) |
| 11154 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 11155 | esac |
| 11156 | case $ac_prog in |
| 11157 | # Accept absolute paths. |
| 11158 | [\\/]* | ?:[\\/]*) |
| 11159 | re_direlt='/[^/][^/]*/\.\./' |
| 11160 | # Canonicalize the pathname of ld |
| 11161 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 11162 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 11163 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 11164 | done |
| 11165 | test -z "$LD" && LD="$ac_prog" |
| 11166 | ;; |
| 11167 | "") |
| 11168 | # If it fails, then pretend we aren't using GCC. |
| 11169 | ac_prog=ld |
| 11170 | ;; |
| 11171 | *) |
| 11172 | # If it is relative, then search for the first ld in PATH. |
| 11173 | with_gnu_ld=unknown |
| 11174 | ;; |
| 11175 | esac |
| 11176 | elif test "$with_gnu_ld" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11177 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 11178 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11179 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11180 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 11181 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11182 | fi |
| 11183 | if test "${lt_cv_path_LD+set}" = set; then |
| 11184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11185 | else |
| 11186 | if test -z "$LD"; then |
| 11187 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 11188 | for ac_dir in $PATH; do |
| 11189 | IFS="$lt_save_ifs" |
| 11190 | test -z "$ac_dir" && ac_dir=. |
| 11191 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 11192 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 11193 | # Check to see if the program is GNU ld. I'd rather use --version, |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11194 | # but apparently some variants of GNU ld only accept -v. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11195 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 11196 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 11197 | *GNU* | *'with BFD'*) |
| 11198 | test "$with_gnu_ld" != no && break |
| 11199 | ;; |
| 11200 | *) |
| 11201 | test "$with_gnu_ld" != yes && break |
| 11202 | ;; |
| 11203 | esac |
| 11204 | fi |
| 11205 | done |
| 11206 | IFS="$lt_save_ifs" |
| 11207 | else |
| 11208 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 11209 | fi |
| 11210 | fi |
| 11211 | |
| 11212 | LD="$lt_cv_path_LD" |
| 11213 | if test -n "$LD"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11214 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 11215 | echo "${ECHO_T}$LD" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11216 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11217 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11218 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11219 | fi |
| 11220 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 11221 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 11222 | { (exit 1); exit 1; }; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11223 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 11224 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11225 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 11226 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11227 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11228 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11229 | case `$LD -v 2>&1 </dev/null` in |
| 11230 | *GNU* | *'with BFD'*) |
| 11231 | lt_cv_prog_gnu_ld=yes |
| 11232 | ;; |
| 11233 | *) |
| 11234 | lt_cv_prog_gnu_ld=no |
| 11235 | ;; |
| 11236 | esac |
| 11237 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11238 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 11239 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11240 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 11241 | |
| 11242 | |
| 11243 | |
| 11244 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 11245 | # archiving commands below assume that GNU ld is being used. |
| 11246 | if test "$with_gnu_ld" = yes; then |
| 11247 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11248 | 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' |
| 11249 | |
| 11250 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 11251 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 11252 | |
| 11253 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 11254 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 11255 | # investigate it a little bit more. (MM) |
| 11256 | wlarc='${wl}' |
| 11257 | |
| 11258 | # ancient GNU ld didn't support --whole-archive et. al. |
| 11259 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
| 11260 | grep 'no-whole-archive' > /dev/null; then |
| 11261 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 11262 | else |
| 11263 | whole_archive_flag_spec_CXX= |
| 11264 | fi |
| 11265 | else |
| 11266 | with_gnu_ld=no |
| 11267 | wlarc= |
| 11268 | |
| 11269 | # A generic and very simple default shared library creation |
| 11270 | # command for GNU C++ for the case where it uses the native |
| 11271 | # linker, instead of GNU ld. If possible, this setting should |
| 11272 | # overridden to take advantage of the native linker features on |
| 11273 | # the platform it is being used on. |
| 11274 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 11275 | fi |
| 11276 | |
| 11277 | # Commands to make compiler produce verbose output that lists |
| 11278 | # what "hidden" libraries, object files and flags are used when |
| 11279 | # linking a shared library. |
| 11280 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 11281 | |
| 11282 | else |
| 11283 | GXX=no |
| 11284 | with_gnu_ld=no |
| 11285 | wlarc= |
| 11286 | fi |
| 11287 | |
| 11288 | # PORTME: fill in a description of your system's C++ link characteristics |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11289 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 11290 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11291 | ld_shlibs_CXX=yes |
| 11292 | case $host_os in |
| 11293 | aix3*) |
| 11294 | # FIXME: insert proper C++ library support |
| 11295 | ld_shlibs_CXX=no |
| 11296 | ;; |
| 11297 | aix4* | aix5*) |
| 11298 | if test "$host_cpu" = ia64; then |
| 11299 | # On IA64, the linker does run time linking by default, so we don't |
| 11300 | # have to do anything special. |
| 11301 | aix_use_runtimelinking=no |
| 11302 | exp_sym_flag='-Bexport' |
| 11303 | no_entry_flag="" |
| 11304 | else |
| 11305 | aix_use_runtimelinking=no |
| 11306 | |
| 11307 | # Test if we are trying to use run time linking or normal |
| 11308 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 11309 | # need to do runtime linking. |
| 11310 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 11311 | for ld_flag in $LDFLAGS; do |
| 11312 | case $ld_flag in |
| 11313 | *-brtl*) |
| 11314 | aix_use_runtimelinking=yes |
| 11315 | break |
| 11316 | ;; |
| 11317 | esac |
| 11318 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11319 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11320 | esac |
| 11321 | |
| 11322 | exp_sym_flag='-bexport' |
| 11323 | no_entry_flag='-bnoentry' |
| 11324 | fi |
| 11325 | |
| 11326 | # When large executables or shared objects are built, AIX ld can |
| 11327 | # have problems creating the table of contents. If linking a library |
| 11328 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 11329 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 11330 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 11331 | |
| 11332 | archive_cmds_CXX='' |
| 11333 | hardcode_direct_CXX=yes |
| 11334 | hardcode_libdir_separator_CXX=':' |
| 11335 | link_all_deplibs_CXX=yes |
| 11336 | |
| 11337 | if test "$GXX" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11338 | case $host_os in aix4.[012]|aix4.[012].*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11339 | # We only want to do this on AIX 4.2 and lower, the check |
| 11340 | # below for broken collect2 doesn't work under 4.3+ |
| 11341 | collect2name=`${CC} -print-prog-name=collect2` |
| 11342 | if test -f "$collect2name" && \ |
| 11343 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 11344 | then |
| 11345 | # We have reworked collect2 |
| 11346 | hardcode_direct_CXX=yes |
| 11347 | else |
| 11348 | # We have old collect2 |
| 11349 | hardcode_direct_CXX=unsupported |
| 11350 | # It fails to find uninstalled libraries when the uninstalled |
| 11351 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 11352 | # to unsupported forces relinking |
| 11353 | hardcode_minus_L_CXX=yes |
| 11354 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 11355 | hardcode_libdir_separator_CXX= |
| 11356 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11357 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11358 | esac |
| 11359 | shared_flag='-shared' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11360 | if test "$aix_use_runtimelinking" = yes; then |
| 11361 | shared_flag="$shared_flag "'${wl}-G' |
| 11362 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11363 | else |
| 11364 | # not using gcc |
| 11365 | if test "$host_cpu" = ia64; then |
| 11366 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 11367 | # chokes on -Wl,-G. The following line is correct: |
| 11368 | shared_flag='-G' |
| 11369 | else |
| 11370 | if test "$aix_use_runtimelinking" = yes; then |
| 11371 | shared_flag='${wl}-G' |
| 11372 | else |
| 11373 | shared_flag='${wl}-bM:SRE' |
| 11374 | fi |
| 11375 | fi |
| 11376 | fi |
| 11377 | |
| 11378 | # It seems that -bexpall does not export symbols beginning with |
| 11379 | # underscore (_), so it is better to generate a list of symbols to export. |
| 11380 | always_export_symbols_CXX=yes |
| 11381 | if test "$aix_use_runtimelinking" = yes; then |
| 11382 | # Warning - without using the other runtime loading flags (-brtl), |
| 11383 | # -berok will link without error, but may produce a broken library. |
| 11384 | allow_undefined_flag_CXX='-berok' |
| 11385 | # Determine the default libpath from the value encoded in an empty executable. |
| 11386 | cat >conftest.$ac_ext <<_ACEOF |
| 11387 | /* confdefs.h. */ |
| 11388 | _ACEOF |
| 11389 | cat confdefs.h >>conftest.$ac_ext |
| 11390 | cat >>conftest.$ac_ext <<_ACEOF |
| 11391 | /* end confdefs.h. */ |
| 11392 | |
| 11393 | int |
| 11394 | main () |
| 11395 | { |
| 11396 | |
| 11397 | ; |
| 11398 | return 0; |
| 11399 | } |
| 11400 | _ACEOF |
| 11401 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11402 | if { (ac_try="$ac_link" |
| 11403 | case "(($ac_try" in |
| 11404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11405 | *) ac_try_echo=$ac_try;; |
| 11406 | esac |
| 11407 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11408 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11409 | ac_status=$? |
| 11410 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11411 | rm -f conftest.er1 |
| 11412 | cat conftest.err >&5 |
| 11413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11414 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11415 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 11416 | { (case "(($ac_try" in |
| 11417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11418 | *) ac_try_echo=$ac_try;; |
| 11419 | esac |
| 11420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11421 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11422 | ac_status=$? |
| 11423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11424 | (exit $ac_status); }; } && |
| 11425 | { ac_try='test -s conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11426 | { (case "(($ac_try" in |
| 11427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11428 | *) ac_try_echo=$ac_try;; |
| 11429 | esac |
| 11430 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11431 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11432 | ac_status=$? |
| 11433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11434 | (exit $ac_status); }; }; then |
| 11435 | |
| 11436 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 11437 | }'` |
| 11438 | # Check for a 64-bit object if we didn't find anything. |
| 11439 | 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; } |
| 11440 | }'`; fi |
| 11441 | else |
| 11442 | echo "$as_me: failed program was:" >&5 |
| 11443 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11444 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11445 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11446 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11447 | |
| 11448 | rm -f core conftest.err conftest.$ac_objext \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11449 | conftest$ac_exeext conftest.$ac_ext |
| 11450 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 11451 | |
| 11452 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 11453 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11454 | 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" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11455 | else |
| 11456 | if test "$host_cpu" = ia64; then |
| 11457 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 11458 | allow_undefined_flag_CXX="-z nodefs" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11459 | 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" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11460 | else |
| 11461 | # Determine the default libpath from the value encoded in an empty executable. |
| 11462 | cat >conftest.$ac_ext <<_ACEOF |
| 11463 | /* confdefs.h. */ |
| 11464 | _ACEOF |
| 11465 | cat confdefs.h >>conftest.$ac_ext |
| 11466 | cat >>conftest.$ac_ext <<_ACEOF |
| 11467 | /* end confdefs.h. */ |
| 11468 | |
| 11469 | int |
| 11470 | main () |
| 11471 | { |
| 11472 | |
| 11473 | ; |
| 11474 | return 0; |
| 11475 | } |
| 11476 | _ACEOF |
| 11477 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11478 | if { (ac_try="$ac_link" |
| 11479 | case "(($ac_try" in |
| 11480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11481 | *) ac_try_echo=$ac_try;; |
| 11482 | esac |
| 11483 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11484 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11485 | ac_status=$? |
| 11486 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11487 | rm -f conftest.er1 |
| 11488 | cat conftest.err >&5 |
| 11489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11490 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11491 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 11492 | { (case "(($ac_try" in |
| 11493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11494 | *) ac_try_echo=$ac_try;; |
| 11495 | esac |
| 11496 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11497 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11498 | ac_status=$? |
| 11499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11500 | (exit $ac_status); }; } && |
| 11501 | { ac_try='test -s conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11502 | { (case "(($ac_try" in |
| 11503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11504 | *) ac_try_echo=$ac_try;; |
| 11505 | esac |
| 11506 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11507 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11508 | ac_status=$? |
| 11509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11510 | (exit $ac_status); }; }; then |
| 11511 | |
| 11512 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 11513 | }'` |
| 11514 | # Check for a 64-bit object if we didn't find anything. |
| 11515 | 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; } |
| 11516 | }'`; fi |
| 11517 | else |
| 11518 | echo "$as_me: failed program was:" >&5 |
| 11519 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11520 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11521 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11522 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11523 | |
| 11524 | rm -f core conftest.err conftest.$ac_objext \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11525 | conftest$ac_exeext conftest.$ac_ext |
| 11526 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 11527 | |
| 11528 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 11529 | # Warning - without using the other run time loading flags, |
| 11530 | # -berok will link without error, but may produce a broken library. |
| 11531 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 11532 | allow_undefined_flag_CXX=' ${wl}-berok' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11533 | # Exported symbols can be pulled into shared objects from archives |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11534 | whole_archive_flag_spec_CXX='$convenience' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11535 | archive_cmds_need_lc_CXX=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11536 | # This is similar to how AIX traditionally builds its shared libraries. |
| 11537 | 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' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11538 | fi |
| 11539 | fi |
| 11540 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11541 | |
| 11542 | beos*) |
| 11543 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 11544 | allow_undefined_flag_CXX=unsupported |
| 11545 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 11546 | # support --undefined. This deserves some investigation. FIXME |
| 11547 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11548 | else |
| 11549 | ld_shlibs_CXX=no |
| 11550 | fi |
| 11551 | ;; |
| 11552 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11553 | chorus*) |
| 11554 | case $cc_basename in |
| 11555 | *) |
| 11556 | # FIXME: insert proper C++ library support |
| 11557 | ld_shlibs_CXX=no |
| 11558 | ;; |
| 11559 | esac |
| 11560 | ;; |
| 11561 | |
| 11562 | cygwin* | mingw* | pw32*) |
| 11563 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 11564 | # as there is no search path for DLLs. |
| 11565 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 11566 | allow_undefined_flag_CXX=unsupported |
| 11567 | always_export_symbols_CXX=no |
| 11568 | enable_shared_with_static_runtimes_CXX=yes |
| 11569 | |
| 11570 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11571 | 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' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11572 | # If the export-symbols file already is a .def file (1st line |
| 11573 | # is EXPORTS), use it as is; otherwise, prepend... |
| 11574 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 11575 | cp $export_symbols $output_objdir/$soname.def; |
| 11576 | else |
| 11577 | echo EXPORTS > $output_objdir/$soname.def; |
| 11578 | cat $export_symbols >> $output_objdir/$soname.def; |
| 11579 | fi~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11580 | $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' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11581 | else |
| 11582 | ld_shlibs_CXX=no |
| 11583 | fi |
| 11584 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11585 | darwin* | rhapsody*) |
| 11586 | case $host_os in |
| 11587 | rhapsody* | darwin1.[012]) |
| 11588 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
| 11589 | ;; |
| 11590 | *) # Darwin 1.3 on |
| 11591 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 11592 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 11593 | else |
| 11594 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 11595 | 10.[012]) |
| 11596 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 11597 | ;; |
| 11598 | 10.*) |
| 11599 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
| 11600 | ;; |
| 11601 | esac |
| 11602 | fi |
| 11603 | ;; |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 11604 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11605 | archive_cmds_need_lc_CXX=no |
| 11606 | hardcode_direct_CXX=no |
| 11607 | hardcode_automatic_CXX=yes |
| 11608 | hardcode_shlibpath_var_CXX=unsupported |
| 11609 | whole_archive_flag_spec_CXX='' |
| 11610 | link_all_deplibs_CXX=yes |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 11611 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11612 | if test "$GXX" = yes ; then |
| 11613 | lt_int_apple_cc_single_mod=no |
| 11614 | output_verbose_link_cmd='echo' |
| 11615 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
| 11616 | lt_int_apple_cc_single_mod=yes |
| 11617 | fi |
| 11618 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 11619 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 11620 | else |
| 11621 | 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' |
| 11622 | fi |
| 11623 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 11624 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 11625 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 11626 | 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}' |
| 11627 | else |
| 11628 | 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}' |
| 11629 | fi |
| 11630 | 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}' |
| 11631 | else |
| 11632 | case $cc_basename in |
| 11633 | xlc*) |
| 11634 | output_verbose_link_cmd='echo' |
| 11635 | 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' |
| 11636 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 11637 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 11638 | 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}' |
| 11639 | 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}' |
| 11640 | ;; |
| 11641 | *) |
| 11642 | ld_shlibs_CXX=no |
| 11643 | ;; |
| 11644 | esac |
| 11645 | fi |
| 11646 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11647 | |
| 11648 | dgux*) |
| 11649 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11650 | ec++*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11651 | # FIXME: insert proper C++ library support |
| 11652 | ld_shlibs_CXX=no |
| 11653 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11654 | ghcx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11655 | # Green Hills C++ Compiler |
| 11656 | # FIXME: insert proper C++ library support |
| 11657 | ld_shlibs_CXX=no |
| 11658 | ;; |
| 11659 | *) |
| 11660 | # FIXME: insert proper C++ library support |
| 11661 | ld_shlibs_CXX=no |
| 11662 | ;; |
| 11663 | esac |
| 11664 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11665 | freebsd[12]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11666 | # C++ shared libraries reported to be fairly broken before switch to ELF |
| 11667 | ld_shlibs_CXX=no |
| 11668 | ;; |
| 11669 | freebsd-elf*) |
| 11670 | archive_cmds_need_lc_CXX=no |
| 11671 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11672 | freebsd* | kfreebsd*-gnu | dragonfly*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11673 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 11674 | # conventions |
| 11675 | ld_shlibs_CXX=yes |
| 11676 | ;; |
| 11677 | gnu*) |
| 11678 | ;; |
| 11679 | hpux9*) |
| 11680 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 11681 | hardcode_libdir_separator_CXX=: |
| 11682 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 11683 | hardcode_direct_CXX=yes |
| 11684 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 11685 | # but as the default |
| 11686 | # location of the library. |
| 11687 | |
| 11688 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11689 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11690 | # FIXME: insert proper C++ library support |
| 11691 | ld_shlibs_CXX=no |
| 11692 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11693 | aCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11694 | 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' |
| 11695 | # Commands to make compiler produce verbose output that lists |
| 11696 | # what "hidden" libraries, object files and flags are used when |
| 11697 | # linking a shared library. |
| 11698 | # |
| 11699 | # There doesn't appear to be a way to prevent this compiler from |
| 11700 | # explicitly linking system object files so we need to strip them |
| 11701 | # from the output so that they don't get included in the library |
| 11702 | # dependencies. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11703 | 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' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11704 | ;; |
| 11705 | *) |
| 11706 | if test "$GXX" = yes; then |
| 11707 | 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' |
| 11708 | else |
| 11709 | # FIXME: insert proper C++ library support |
| 11710 | ld_shlibs_CXX=no |
| 11711 | fi |
| 11712 | ;; |
| 11713 | esac |
| 11714 | ;; |
| 11715 | hpux10*|hpux11*) |
| 11716 | if test $with_gnu_ld = no; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11717 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 11718 | hardcode_libdir_separator_CXX=: |
| 11719 | |
| 11720 | case $host_cpu in |
| 11721 | hppa*64*|ia64*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11722 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11723 | ;; |
| 11724 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11725 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 11726 | ;; |
| 11727 | esac |
| 11728 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11729 | case $host_cpu in |
| 11730 | hppa*64*|ia64*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11731 | hardcode_direct_CXX=no |
| 11732 | hardcode_shlibpath_var_CXX=no |
| 11733 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11734 | *) |
| 11735 | hardcode_direct_CXX=yes |
| 11736 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 11737 | # but as the default |
| 11738 | # location of the library. |
| 11739 | ;; |
| 11740 | esac |
| 11741 | |
| 11742 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11743 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11744 | # FIXME: insert proper C++ library support |
| 11745 | ld_shlibs_CXX=no |
| 11746 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11747 | aCC*) |
| 11748 | case $host_cpu in |
| 11749 | hppa*64*) |
| 11750 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 11751 | ;; |
| 11752 | ia64*) |
| 11753 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11754 | ;; |
| 11755 | *) |
| 11756 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 11757 | ;; |
| 11758 | esac |
| 11759 | # Commands to make compiler produce verbose output that lists |
| 11760 | # what "hidden" libraries, object files and flags are used when |
| 11761 | # linking a shared library. |
| 11762 | # |
| 11763 | # There doesn't appear to be a way to prevent this compiler from |
| 11764 | # explicitly linking system object files so we need to strip them |
| 11765 | # from the output so that they don't get included in the library |
| 11766 | # dependencies. |
| 11767 | 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' |
| 11768 | ;; |
| 11769 | *) |
| 11770 | if test "$GXX" = yes; then |
| 11771 | if test $with_gnu_ld = no; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11772 | case $host_cpu in |
| 11773 | hppa*64*) |
| 11774 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 11775 | ;; |
| 11776 | ia64*) |
| 11777 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11778 | ;; |
| 11779 | *) |
| 11780 | 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' |
| 11781 | ;; |
| 11782 | esac |
| 11783 | fi |
| 11784 | else |
| 11785 | # FIXME: insert proper C++ library support |
| 11786 | ld_shlibs_CXX=no |
| 11787 | fi |
| 11788 | ;; |
| 11789 | esac |
| 11790 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11791 | interix3*) |
| 11792 | hardcode_direct_CXX=no |
| 11793 | hardcode_shlibpath_var_CXX=no |
| 11794 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 11795 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 11796 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 11797 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 11798 | # default) and relocated if they conflict, which is a slow very memory |
| 11799 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 11800 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 11801 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 11802 | 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' |
| 11803 | 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' |
| 11804 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11805 | irix5* | irix6*) |
| 11806 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11807 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11808 | # SGI C++ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11809 | 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' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11810 | |
| 11811 | # Archives containing C++ object files must be created using |
| 11812 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 11813 | # necessary to make sure instantiated templates are included |
| 11814 | # in the archive. |
| 11815 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 11816 | ;; |
| 11817 | *) |
| 11818 | if test "$GXX" = yes; then |
| 11819 | if test "$with_gnu_ld" = no; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11820 | 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' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11821 | else |
| 11822 | 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' |
| 11823 | fi |
| 11824 | fi |
| 11825 | link_all_deplibs_CXX=yes |
| 11826 | ;; |
| 11827 | esac |
| 11828 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 11829 | hardcode_libdir_separator_CXX=: |
| 11830 | ;; |
| 11831 | linux*) |
| 11832 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11833 | KCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11834 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 11835 | |
| 11836 | # KCC will only create a shared library if the output file |
| 11837 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 11838 | # to its proper name (with version) after linking. |
| 11839 | 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' |
| 11840 | 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' |
| 11841 | # Commands to make compiler produce verbose output that lists |
| 11842 | # what "hidden" libraries, object files and flags are used when |
| 11843 | # linking a shared library. |
| 11844 | # |
| 11845 | # There doesn't appear to be a way to prevent this compiler from |
| 11846 | # explicitly linking system object files so we need to strip them |
| 11847 | # from the output so that they don't get included in the library |
| 11848 | # dependencies. |
| 11849 | 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' |
| 11850 | |
| 11851 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
| 11852 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 11853 | |
| 11854 | # Archives containing C++ object files must be created using |
| 11855 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 11856 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 11857 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11858 | icpc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11859 | # Intel C++ |
| 11860 | with_gnu_ld=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11861 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 11862 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 11863 | # earlier do not add the objects themselves. |
| 11864 | case `$CC -V 2>&1` in |
| 11865 | *"Version 7."*) |
| 11866 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11867 | 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' |
| 11868 | ;; |
| 11869 | *) # Version 8.0 or newer |
| 11870 | tmp_idyn= |
| 11871 | case $host_cpu in |
| 11872 | ia64*) tmp_idyn=' -i_dynamic';; |
| 11873 | esac |
| 11874 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11875 | 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' |
| 11876 | ;; |
| 11877 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11878 | archive_cmds_need_lc_CXX=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11879 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 11880 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 11881 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 11882 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11883 | pgCC*) |
| 11884 | # Portland Group C++ compiler |
| 11885 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 11886 | 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' |
| 11887 | |
| 11888 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 11889 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 11890 | 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' |
| 11891 | ;; |
| 11892 | cxx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11893 | # Compaq C++ |
| 11894 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11895 | 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' |
| 11896 | |
| 11897 | runpath_var=LD_RUN_PATH |
| 11898 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 11899 | hardcode_libdir_separator_CXX=: |
| 11900 | |
| 11901 | # Commands to make compiler produce verbose output that lists |
| 11902 | # what "hidden" libraries, object files and flags are used when |
| 11903 | # linking a shared library. |
| 11904 | # |
| 11905 | # There doesn't appear to be a way to prevent this compiler from |
| 11906 | # explicitly linking system object files so we need to strip them |
| 11907 | # from the output so that they don't get included in the library |
| 11908 | # dependencies. |
| 11909 | 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' |
| 11910 | ;; |
| 11911 | esac |
| 11912 | ;; |
| 11913 | lynxos*) |
| 11914 | # FIXME: insert proper C++ library support |
| 11915 | ld_shlibs_CXX=no |
| 11916 | ;; |
| 11917 | m88k*) |
| 11918 | # FIXME: insert proper C++ library support |
| 11919 | ld_shlibs_CXX=no |
| 11920 | ;; |
| 11921 | mvs*) |
| 11922 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11923 | cxx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11924 | # FIXME: insert proper C++ library support |
| 11925 | ld_shlibs_CXX=no |
| 11926 | ;; |
| 11927 | *) |
| 11928 | # FIXME: insert proper C++ library support |
| 11929 | ld_shlibs_CXX=no |
| 11930 | ;; |
| 11931 | esac |
| 11932 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11933 | netbsd*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11934 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 11935 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 11936 | wlarc= |
| 11937 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 11938 | hardcode_direct_CXX=yes |
| 11939 | hardcode_shlibpath_var_CXX=no |
| 11940 | fi |
| 11941 | # Workaround some broken pre-1.5 toolchains |
| 11942 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 11943 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11944 | openbsd2*) |
| 11945 | # C++ shared libraries are fairly broken |
| 11946 | ld_shlibs_CXX=no |
| 11947 | ;; |
| 11948 | openbsd*) |
| 11949 | hardcode_direct_CXX=yes |
| 11950 | hardcode_shlibpath_var_CXX=no |
| 11951 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 11952 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 11953 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 11954 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| 11955 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 11956 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 11957 | fi |
| 11958 | output_verbose_link_cmd='echo' |
| 11959 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11960 | osf3*) |
| 11961 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11962 | KCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11963 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 11964 | |
| 11965 | # KCC will only create a shared library if the output file |
| 11966 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 11967 | # to its proper name (with version) after linking. |
| 11968 | 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' |
| 11969 | |
| 11970 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 11971 | hardcode_libdir_separator_CXX=: |
| 11972 | |
| 11973 | # Archives containing C++ object files must be created using |
| 11974 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 11975 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 11976 | |
| 11977 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11978 | RCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11979 | # Rational C++ 2.4.1 |
| 11980 | # FIXME: insert proper C++ library support |
| 11981 | ld_shlibs_CXX=no |
| 11982 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11983 | cxx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11984 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11985 | 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' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11986 | |
| 11987 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 11988 | hardcode_libdir_separator_CXX=: |
| 11989 | |
| 11990 | # Commands to make compiler produce verbose output that lists |
| 11991 | # what "hidden" libraries, object files and flags are used when |
| 11992 | # linking a shared library. |
| 11993 | # |
| 11994 | # There doesn't appear to be a way to prevent this compiler from |
| 11995 | # explicitly linking system object files so we need to strip them |
| 11996 | # from the output so that they don't get included in the library |
| 11997 | # dependencies. |
| 11998 | 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' |
| 11999 | ;; |
| 12000 | *) |
| 12001 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 12002 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12003 | 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' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12004 | |
| 12005 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 12006 | hardcode_libdir_separator_CXX=: |
| 12007 | |
| 12008 | # Commands to make compiler produce verbose output that lists |
| 12009 | # what "hidden" libraries, object files and flags are used when |
| 12010 | # linking a shared library. |
| 12011 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 12012 | |
| 12013 | else |
| 12014 | # FIXME: insert proper C++ library support |
| 12015 | ld_shlibs_CXX=no |
| 12016 | fi |
| 12017 | ;; |
| 12018 | esac |
| 12019 | ;; |
| 12020 | osf4* | osf5*) |
| 12021 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12022 | KCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12023 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 12024 | |
| 12025 | # KCC will only create a shared library if the output file |
| 12026 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 12027 | # to its proper name (with version) after linking. |
| 12028 | 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' |
| 12029 | |
| 12030 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 12031 | hardcode_libdir_separator_CXX=: |
| 12032 | |
| 12033 | # Archives containing C++ object files must be created using |
| 12034 | # the KAI C++ compiler. |
| 12035 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
| 12036 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12037 | RCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12038 | # Rational C++ 2.4.1 |
| 12039 | # FIXME: insert proper C++ library support |
| 12040 | ld_shlibs_CXX=no |
| 12041 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12042 | cxx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12043 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12044 | 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' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12045 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 12046 | echo "-hidden">> $lib.exp~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12047 | $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~ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12048 | $rm $lib.exp' |
| 12049 | |
| 12050 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 12051 | hardcode_libdir_separator_CXX=: |
| 12052 | |
| 12053 | # Commands to make compiler produce verbose output that lists |
| 12054 | # what "hidden" libraries, object files and flags are used when |
| 12055 | # linking a shared library. |
| 12056 | # |
| 12057 | # There doesn't appear to be a way to prevent this compiler from |
| 12058 | # explicitly linking system object files so we need to strip them |
| 12059 | # from the output so that they don't get included in the library |
| 12060 | # dependencies. |
| 12061 | 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' |
| 12062 | ;; |
| 12063 | *) |
| 12064 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 12065 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12066 | 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' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12067 | |
| 12068 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 12069 | hardcode_libdir_separator_CXX=: |
| 12070 | |
| 12071 | # Commands to make compiler produce verbose output that lists |
| 12072 | # what "hidden" libraries, object files and flags are used when |
| 12073 | # linking a shared library. |
| 12074 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 12075 | |
| 12076 | else |
| 12077 | # FIXME: insert proper C++ library support |
| 12078 | ld_shlibs_CXX=no |
| 12079 | fi |
| 12080 | ;; |
| 12081 | esac |
| 12082 | ;; |
| 12083 | psos*) |
| 12084 | # FIXME: insert proper C++ library support |
| 12085 | ld_shlibs_CXX=no |
| 12086 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12087 | sunos4*) |
| 12088 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12089 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12090 | # Sun C++ 4.x |
| 12091 | # FIXME: insert proper C++ library support |
| 12092 | ld_shlibs_CXX=no |
| 12093 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12094 | lcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12095 | # Lucid |
| 12096 | # FIXME: insert proper C++ library support |
| 12097 | ld_shlibs_CXX=no |
| 12098 | ;; |
| 12099 | *) |
| 12100 | # FIXME: insert proper C++ library support |
| 12101 | ld_shlibs_CXX=no |
| 12102 | ;; |
| 12103 | esac |
| 12104 | ;; |
| 12105 | solaris*) |
| 12106 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12107 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12108 | # Sun C++ 4.2, 5.x and Centerline C++ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12109 | archive_cmds_need_lc_CXX=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12110 | no_undefined_flag_CXX=' -zdefs' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12111 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12112 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12113 | $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' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12114 | |
| 12115 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 12116 | hardcode_shlibpath_var_CXX=no |
| 12117 | case $host_os in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12118 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12119 | *) |
| 12120 | # The C++ compiler is used as linker so we must use $wl |
| 12121 | # flag to pass the commands to the underlying system |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12122 | # linker. We must also pass each convience library through |
| 12123 | # to the system linker between allextract/defaultextract. |
| 12124 | # The C++ compiler will combine linker options so we |
| 12125 | # cannot just pass the convience library names through |
| 12126 | # without $wl. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12127 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12128 | 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' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12129 | ;; |
| 12130 | esac |
| 12131 | link_all_deplibs_CXX=yes |
| 12132 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12133 | output_verbose_link_cmd='echo' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12134 | |
| 12135 | # Archives containing C++ object files must be created using |
| 12136 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 12137 | # necessary to make sure instantiated templates are included |
| 12138 | # in the archive. |
| 12139 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 12140 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12141 | gcx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12142 | # Green Hills C++ Compiler |
| 12143 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 12144 | |
| 12145 | # The C++ compiler must be used to create the archive. |
| 12146 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 12147 | ;; |
| 12148 | *) |
| 12149 | # GNU C++ compiler with Solaris linker |
| 12150 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 12151 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 12152 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
| 12153 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 12154 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 12155 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 12156 | |
| 12157 | # Commands to make compiler produce verbose output that lists |
| 12158 | # what "hidden" libraries, object files and flags are used when |
| 12159 | # linking a shared library. |
| 12160 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 12161 | else |
| 12162 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 12163 | # platform. |
| 12164 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 12165 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 12166 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 12167 | |
| 12168 | # Commands to make compiler produce verbose output that lists |
| 12169 | # what "hidden" libraries, object files and flags are used when |
| 12170 | # linking a shared library. |
| 12171 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 12172 | fi |
| 12173 | |
| 12174 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 12175 | fi |
| 12176 | ;; |
| 12177 | esac |
| 12178 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12179 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 12180 | no_undefined_flag_CXX='${wl}-z,text' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12181 | archive_cmds_need_lc_CXX=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12182 | hardcode_shlibpath_var_CXX=no |
| 12183 | runpath_var='LD_RUN_PATH' |
| 12184 | |
| 12185 | case $cc_basename in |
| 12186 | CC*) |
| 12187 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12188 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12189 | ;; |
| 12190 | *) |
| 12191 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12192 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12193 | ;; |
| 12194 | esac |
| 12195 | ;; |
| 12196 | sysv5* | sco3.2v5* | sco5v6*) |
| 12197 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 12198 | # link with -lc, and that would cause any symbols used from libc to |
| 12199 | # always be unresolved, which means just about no library would |
| 12200 | # ever link correctly. If we're not using GNU ld we use -z text |
| 12201 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 12202 | # as -z defs. |
| 12203 | # For security reasons, it is highly recommended that you always |
| 12204 | # use absolute paths for naming shared libraries, and exclude the |
| 12205 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 12206 | # requires that you compile everything twice, which is a pain. |
| 12207 | # So that behaviour is only enabled if SCOABSPATH is set to a |
| 12208 | # non-empty value in the environment. Most likely only useful for |
| 12209 | # creating official distributions of packages. |
| 12210 | # This is a hack until libtool officially supports absolute path |
| 12211 | # names for shared libraries. |
| 12212 | no_undefined_flag_CXX='${wl}-z,text' |
| 12213 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
| 12214 | archive_cmds_need_lc_CXX=no |
| 12215 | hardcode_shlibpath_var_CXX=no |
| 12216 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 12217 | hardcode_libdir_separator_CXX=':' |
| 12218 | link_all_deplibs_CXX=yes |
| 12219 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
| 12220 | runpath_var='LD_RUN_PATH' |
| 12221 | |
| 12222 | case $cc_basename in |
| 12223 | CC*) |
| 12224 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12225 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12226 | ;; |
| 12227 | *) |
| 12228 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12229 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12230 | ;; |
| 12231 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12232 | ;; |
| 12233 | tandem*) |
| 12234 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12235 | NCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12236 | # NonStop-UX NCC 3.20 |
| 12237 | # FIXME: insert proper C++ library support |
| 12238 | ld_shlibs_CXX=no |
| 12239 | ;; |
| 12240 | *) |
| 12241 | # FIXME: insert proper C++ library support |
| 12242 | ld_shlibs_CXX=no |
| 12243 | ;; |
| 12244 | esac |
| 12245 | ;; |
| 12246 | vxworks*) |
| 12247 | # FIXME: insert proper C++ library support |
| 12248 | ld_shlibs_CXX=no |
| 12249 | ;; |
| 12250 | *) |
| 12251 | # FIXME: insert proper C++ library support |
| 12252 | ld_shlibs_CXX=no |
| 12253 | ;; |
| 12254 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12255 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 12256 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12257 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 12258 | |
| 12259 | GCC_CXX="$GXX" |
| 12260 | LD_CXX="$LD" |
| 12261 | |
| 12262 | |
| 12263 | cat > conftest.$ac_ext <<EOF |
| 12264 | class Foo |
| 12265 | { |
| 12266 | public: |
| 12267 | Foo (void) { a = 0; } |
| 12268 | private: |
| 12269 | int a; |
| 12270 | }; |
| 12271 | EOF |
| 12272 | |
| 12273 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12274 | (eval $ac_compile) 2>&5 |
| 12275 | ac_status=$? |
| 12276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12277 | (exit $ac_status); }; then |
| 12278 | # Parse the compiler output and extract the necessary |
| 12279 | # objects, libraries and library flags. |
| 12280 | |
| 12281 | # Sentinel used to keep track of whether or not we are before |
| 12282 | # the conftest object file. |
| 12283 | pre_test_object_deps_done=no |
| 12284 | |
| 12285 | # The `*' in the case matches for architectures that use `case' in |
| 12286 | # $output_verbose_cmd can trigger glob expansion during the loop |
| 12287 | # eval without this substitution. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12288 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12289 | |
| 12290 | for p in `eval $output_verbose_link_cmd`; do |
| 12291 | case $p in |
| 12292 | |
| 12293 | -L* | -R* | -l*) |
| 12294 | # Some compilers place space between "-{L,R}" and the path. |
| 12295 | # Remove the space. |
| 12296 | if test $p = "-L" \ |
| 12297 | || test $p = "-R"; then |
| 12298 | prev=$p |
| 12299 | continue |
| 12300 | else |
| 12301 | prev= |
| 12302 | fi |
| 12303 | |
| 12304 | if test "$pre_test_object_deps_done" = no; then |
| 12305 | case $p in |
| 12306 | -L* | -R*) |
| 12307 | # Internal compiler library paths should come after those |
| 12308 | # provided the user. The postdeps already come after the |
| 12309 | # user supplied libs so there is no need to process them. |
| 12310 | if test -z "$compiler_lib_search_path_CXX"; then |
| 12311 | compiler_lib_search_path_CXX="${prev}${p}" |
| 12312 | else |
| 12313 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 12314 | fi |
| 12315 | ;; |
| 12316 | # The "-l" case would never come before the object being |
| 12317 | # linked, so don't bother handling this case. |
| 12318 | esac |
| 12319 | else |
| 12320 | if test -z "$postdeps_CXX"; then |
| 12321 | postdeps_CXX="${prev}${p}" |
| 12322 | else |
| 12323 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 12324 | fi |
| 12325 | fi |
| 12326 | ;; |
| 12327 | |
| 12328 | *.$objext) |
| 12329 | # This assumes that the test object file only shows up |
| 12330 | # once in the compiler output. |
| 12331 | if test "$p" = "conftest.$objext"; then |
| 12332 | pre_test_object_deps_done=yes |
| 12333 | continue |
| 12334 | fi |
| 12335 | |
| 12336 | if test "$pre_test_object_deps_done" = no; then |
| 12337 | if test -z "$predep_objects_CXX"; then |
| 12338 | predep_objects_CXX="$p" |
| 12339 | else |
| 12340 | predep_objects_CXX="$predep_objects_CXX $p" |
| 12341 | fi |
| 12342 | else |
| 12343 | if test -z "$postdep_objects_CXX"; then |
| 12344 | postdep_objects_CXX="$p" |
| 12345 | else |
| 12346 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 12347 | fi |
| 12348 | fi |
| 12349 | ;; |
| 12350 | |
| 12351 | *) ;; # Ignore the rest. |
| 12352 | |
| 12353 | esac |
| 12354 | done |
| 12355 | |
| 12356 | # Clean up. |
| 12357 | rm -f a.out a.exe |
| 12358 | else |
| 12359 | echo "libtool.m4: error: problem compiling CXX test program" |
| 12360 | fi |
| 12361 | |
| 12362 | $rm -f confest.$objext |
| 12363 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12364 | # PORTME: override above test on systems where it is broken |
| 12365 | case $host_os in |
| 12366 | interix3*) |
| 12367 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 12368 | # hack all around it, let's just trust "g++" to DTRT. |
| 12369 | predep_objects_CXX= |
| 12370 | postdep_objects_CXX= |
| 12371 | postdeps_CXX= |
| 12372 | ;; |
| 12373 | |
| 12374 | solaris*) |
| 12375 | case $cc_basename in |
| 12376 | CC*) |
| 12377 | # Adding this requires a known-good setup of shared libraries for |
| 12378 | # Sun compiler versions before 5.6, else PIC objects from an old |
| 12379 | # archive will be linked into the output, leading to subtle bugs. |
| 12380 | postdeps_CXX='-lCstd -lCrun' |
| 12381 | ;; |
| 12382 | esac |
| 12383 | ;; |
| 12384 | esac |
| 12385 | |
| 12386 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12387 | case " $postdeps_CXX " in |
| 12388 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 12389 | esac |
| 12390 | |
| 12391 | lt_prog_compiler_wl_CXX= |
| 12392 | lt_prog_compiler_pic_CXX= |
| 12393 | lt_prog_compiler_static_CXX= |
| 12394 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12395 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 12396 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12397 | |
| 12398 | # C++ specific cases for pic, static, wl, etc. |
| 12399 | if test "$GXX" = yes; then |
| 12400 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12401 | lt_prog_compiler_static_CXX='-static' |
| 12402 | |
| 12403 | case $host_os in |
| 12404 | aix*) |
| 12405 | # All AIX code is PIC. |
| 12406 | if test "$host_cpu" = ia64; then |
| 12407 | # AIX 5 now supports IA64 processor |
| 12408 | lt_prog_compiler_static_CXX='-Bstatic' |
| 12409 | fi |
| 12410 | ;; |
| 12411 | amigaos*) |
| 12412 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 12413 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 12414 | # like `-m68040'. |
| 12415 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 12416 | ;; |
| 12417 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 12418 | # PIC is the default for these OSes. |
| 12419 | ;; |
| 12420 | mingw* | os2* | pw32*) |
| 12421 | # This hack is so that the source file can tell whether it is being |
| 12422 | # built for inclusion in a dll (and should export symbols for example). |
| 12423 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 12424 | ;; |
| 12425 | darwin* | rhapsody*) |
| 12426 | # PIC is the default on this platform |
| 12427 | # Common symbols not allowed in MH_DYLIB files |
| 12428 | lt_prog_compiler_pic_CXX='-fno-common' |
| 12429 | ;; |
| 12430 | *djgpp*) |
| 12431 | # DJGPP does not support shared libraries at all |
| 12432 | lt_prog_compiler_pic_CXX= |
| 12433 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12434 | interix3*) |
| 12435 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 12436 | # Instead, we relocate shared libraries at runtime. |
| 12437 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12438 | sysv4*MP*) |
| 12439 | if test -d /usr/nec; then |
| 12440 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 12441 | fi |
| 12442 | ;; |
| 12443 | hpux*) |
| 12444 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 12445 | # not for PA HP-UX. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12446 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12447 | hppa*64*|ia64*) |
| 12448 | ;; |
| 12449 | *) |
| 12450 | lt_prog_compiler_pic_CXX='-fPIC' |
| 12451 | ;; |
| 12452 | esac |
| 12453 | ;; |
| 12454 | *) |
| 12455 | lt_prog_compiler_pic_CXX='-fPIC' |
| 12456 | ;; |
| 12457 | esac |
| 12458 | else |
| 12459 | case $host_os in |
| 12460 | aix4* | aix5*) |
| 12461 | # All AIX code is PIC. |
| 12462 | if test "$host_cpu" = ia64; then |
| 12463 | # AIX 5 now supports IA64 processor |
| 12464 | lt_prog_compiler_static_CXX='-Bstatic' |
| 12465 | else |
| 12466 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 12467 | fi |
| 12468 | ;; |
| 12469 | chorus*) |
| 12470 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12471 | cxch68*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12472 | # Green Hills C++ Compiler |
| 12473 | # _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" |
| 12474 | ;; |
| 12475 | esac |
| 12476 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12477 | darwin*) |
| 12478 | # PIC is the default on this platform |
| 12479 | # Common symbols not allowed in MH_DYLIB files |
| 12480 | case $cc_basename in |
| 12481 | xlc*) |
| 12482 | lt_prog_compiler_pic_CXX='-qnocommon' |
| 12483 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12484 | ;; |
| 12485 | esac |
| 12486 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12487 | dgux*) |
| 12488 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12489 | ec++*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12490 | lt_prog_compiler_pic_CXX='-KPIC' |
| 12491 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12492 | ghcx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12493 | # Green Hills C++ Compiler |
| 12494 | lt_prog_compiler_pic_CXX='-pic' |
| 12495 | ;; |
| 12496 | *) |
| 12497 | ;; |
| 12498 | esac |
| 12499 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12500 | freebsd* | kfreebsd*-gnu | dragonfly*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12501 | # FreeBSD uses GNU C++ |
| 12502 | ;; |
| 12503 | hpux9* | hpux10* | hpux11*) |
| 12504 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12505 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12506 | lt_prog_compiler_wl_CXX='-Wl,' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12507 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12508 | if test "$host_cpu" != ia64; then |
| 12509 | lt_prog_compiler_pic_CXX='+Z' |
| 12510 | fi |
| 12511 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12512 | aCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12513 | lt_prog_compiler_wl_CXX='-Wl,' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12514 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 12515 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12516 | hppa*64*|ia64*) |
| 12517 | # +Z the default |
| 12518 | ;; |
| 12519 | *) |
| 12520 | lt_prog_compiler_pic_CXX='+Z' |
| 12521 | ;; |
| 12522 | esac |
| 12523 | ;; |
| 12524 | *) |
| 12525 | ;; |
| 12526 | esac |
| 12527 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12528 | interix*) |
| 12529 | # This is c89, which is MS Visual C++ (no shared libs) |
| 12530 | # Anyone wants to do a port? |
| 12531 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12532 | irix5* | irix6* | nonstopux*) |
| 12533 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12534 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12535 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12536 | lt_prog_compiler_static_CXX='-non_shared' |
| 12537 | # CC pic flag -KPIC is the default. |
| 12538 | ;; |
| 12539 | *) |
| 12540 | ;; |
| 12541 | esac |
| 12542 | ;; |
| 12543 | linux*) |
| 12544 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12545 | KCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12546 | # KAI C++ Compiler |
| 12547 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 12548 | lt_prog_compiler_pic_CXX='-fPIC' |
| 12549 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12550 | icpc* | ecpc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12551 | # Intel C++ |
| 12552 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12553 | lt_prog_compiler_pic_CXX='-KPIC' |
| 12554 | lt_prog_compiler_static_CXX='-static' |
| 12555 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12556 | pgCC*) |
| 12557 | # Portland Group C++ compiler. |
| 12558 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12559 | lt_prog_compiler_pic_CXX='-fpic' |
| 12560 | lt_prog_compiler_static_CXX='-Bstatic' |
| 12561 | ;; |
| 12562 | cxx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12563 | # Compaq C++ |
| 12564 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 12565 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 12566 | lt_prog_compiler_pic_CXX= |
| 12567 | lt_prog_compiler_static_CXX='-non_shared' |
| 12568 | ;; |
| 12569 | *) |
| 12570 | ;; |
| 12571 | esac |
| 12572 | ;; |
| 12573 | lynxos*) |
| 12574 | ;; |
| 12575 | m88k*) |
| 12576 | ;; |
| 12577 | mvs*) |
| 12578 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12579 | cxx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12580 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 12581 | ;; |
| 12582 | *) |
| 12583 | ;; |
| 12584 | esac |
| 12585 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12586 | netbsd*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12587 | ;; |
| 12588 | osf3* | osf4* | osf5*) |
| 12589 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12590 | KCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12591 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 12592 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12593 | RCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12594 | # Rational C++ 2.4.1 |
| 12595 | lt_prog_compiler_pic_CXX='-pic' |
| 12596 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12597 | cxx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12598 | # Digital/Compaq C++ |
| 12599 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12600 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 12601 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 12602 | lt_prog_compiler_pic_CXX= |
| 12603 | lt_prog_compiler_static_CXX='-non_shared' |
| 12604 | ;; |
| 12605 | *) |
| 12606 | ;; |
| 12607 | esac |
| 12608 | ;; |
| 12609 | psos*) |
| 12610 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12611 | solaris*) |
| 12612 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12613 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12614 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 12615 | lt_prog_compiler_pic_CXX='-KPIC' |
| 12616 | lt_prog_compiler_static_CXX='-Bstatic' |
| 12617 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 12618 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12619 | gcx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12620 | # Green Hills C++ Compiler |
| 12621 | lt_prog_compiler_pic_CXX='-PIC' |
| 12622 | ;; |
| 12623 | *) |
| 12624 | ;; |
| 12625 | esac |
| 12626 | ;; |
| 12627 | sunos4*) |
| 12628 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12629 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12630 | # Sun C++ 4.x |
| 12631 | lt_prog_compiler_pic_CXX='-pic' |
| 12632 | lt_prog_compiler_static_CXX='-Bstatic' |
| 12633 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12634 | lcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12635 | # Lucid |
| 12636 | lt_prog_compiler_pic_CXX='-pic' |
| 12637 | ;; |
| 12638 | *) |
| 12639 | ;; |
| 12640 | esac |
| 12641 | ;; |
| 12642 | tandem*) |
| 12643 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12644 | NCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12645 | # NonStop-UX NCC 3.20 |
| 12646 | lt_prog_compiler_pic_CXX='-KPIC' |
| 12647 | ;; |
| 12648 | *) |
| 12649 | ;; |
| 12650 | esac |
| 12651 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12652 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 12653 | case $cc_basename in |
| 12654 | CC*) |
| 12655 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12656 | lt_prog_compiler_pic_CXX='-KPIC' |
| 12657 | lt_prog_compiler_static_CXX='-Bstatic' |
| 12658 | ;; |
| 12659 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12660 | ;; |
| 12661 | vxworks*) |
| 12662 | ;; |
| 12663 | *) |
| 12664 | lt_prog_compiler_can_build_shared_CXX=no |
| 12665 | ;; |
| 12666 | esac |
| 12667 | fi |
| 12668 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12669 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
| 12670 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12671 | |
| 12672 | # |
| 12673 | # Check to make sure the PIC flag actually works. |
| 12674 | # |
| 12675 | if test -n "$lt_prog_compiler_pic_CXX"; then |
| 12676 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12677 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 12678 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12679 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
| 12680 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12681 | else |
| 12682 | lt_prog_compiler_pic_works_CXX=no |
| 12683 | ac_outfile=conftest.$ac_objext |
| 12684 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12685 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 12686 | # Insert the option either (1) after the last *FLAGS variable, or |
| 12687 | # (2) before a word containing "conftest.", or (3) at the end. |
| 12688 | # Note that $ac_compile itself does not contain backslashes and begins |
| 12689 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 12690 | # The option is referenced via a variable to avoid confusing sed. |
| 12691 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12692 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12693 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 12694 | -e 's:$: $lt_compiler_flag:'` |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 12695 | (eval echo "\"\$as_me:12695: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12696 | (eval "$lt_compile" 2>conftest.err) |
| 12697 | ac_status=$? |
| 12698 | cat conftest.err >&5 |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 12699 | echo "$as_me:12699: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12700 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 12701 | # The compiler can only warn and ignore the option if not recognized |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12702 | # So say no if there are warnings other than the usual output. |
| 12703 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 12704 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 12705 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12706 | lt_prog_compiler_pic_works_CXX=yes |
| 12707 | fi |
| 12708 | fi |
| 12709 | $rm conftest* |
| 12710 | |
| 12711 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12712 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
| 12713 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12714 | |
| 12715 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
| 12716 | case $lt_prog_compiler_pic_CXX in |
| 12717 | "" | " "*) ;; |
| 12718 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 12719 | esac |
| 12720 | else |
| 12721 | lt_prog_compiler_pic_CXX= |
| 12722 | lt_prog_compiler_can_build_shared_CXX=no |
| 12723 | fi |
| 12724 | |
| 12725 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12726 | case $host_os in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12727 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 12728 | *djgpp*) |
| 12729 | lt_prog_compiler_pic_CXX= |
| 12730 | ;; |
| 12731 | *) |
| 12732 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 12733 | ;; |
| 12734 | esac |
| 12735 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12736 | # |
| 12737 | # Check to make sure the static flag actually works. |
| 12738 | # |
| 12739 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
| 12740 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 12741 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 12742 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
| 12743 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12744 | else |
| 12745 | lt_prog_compiler_static_works_CXX=no |
| 12746 | save_LDFLAGS="$LDFLAGS" |
| 12747 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 12748 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 12749 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 12750 | # The linker can only warn and ignore the option if not recognized |
| 12751 | # So say no if there are warnings |
| 12752 | if test -s conftest.err; then |
| 12753 | # Append any errors to the config.log. |
| 12754 | cat conftest.err 1>&5 |
| 12755 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 12756 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 12757 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 12758 | lt_prog_compiler_static_works_CXX=yes |
| 12759 | fi |
| 12760 | else |
| 12761 | lt_prog_compiler_static_works_CXX=yes |
| 12762 | fi |
| 12763 | fi |
| 12764 | $rm conftest* |
| 12765 | LDFLAGS="$save_LDFLAGS" |
| 12766 | |
| 12767 | fi |
| 12768 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
| 12769 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } |
| 12770 | |
| 12771 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
| 12772 | : |
| 12773 | else |
| 12774 | lt_prog_compiler_static_CXX= |
| 12775 | fi |
| 12776 | |
| 12777 | |
| 12778 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 12779 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12780 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
| 12781 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12782 | else |
| 12783 | lt_cv_prog_compiler_c_o_CXX=no |
| 12784 | $rm -r conftest 2>/dev/null |
| 12785 | mkdir conftest |
| 12786 | cd conftest |
| 12787 | mkdir out |
| 12788 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12789 | |
| 12790 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 12791 | # Insert the option either (1) after the last *FLAGS variable, or |
| 12792 | # (2) before a word containing "conftest.", or (3) at the end. |
| 12793 | # Note that $ac_compile itself does not contain backslashes and begins |
| 12794 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 12795 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12796 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12797 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 12798 | -e 's:$: $lt_compiler_flag:'` |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 12799 | (eval echo "\"\$as_me:12799: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12800 | (eval "$lt_compile" 2>out/conftest.err) |
| 12801 | ac_status=$? |
| 12802 | cat out/conftest.err >&5 |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 12803 | echo "$as_me:12803: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12804 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 12805 | then |
| 12806 | # The compiler can only warn and ignore the option if not recognized |
| 12807 | # So say no if there are warnings |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12808 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 12809 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 12810 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12811 | lt_cv_prog_compiler_c_o_CXX=yes |
| 12812 | fi |
| 12813 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12814 | chmod u+w . 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12815 | $rm conftest* |
| 12816 | # SGI C++ compiler will create directory out/ii_files/ for |
| 12817 | # template instantiation |
| 12818 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 12819 | $rm out/* && rmdir out |
| 12820 | cd .. |
| 12821 | rmdir conftest |
| 12822 | $rm conftest* |
| 12823 | |
| 12824 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12825 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 12826 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12827 | |
| 12828 | |
| 12829 | hard_links="nottested" |
| 12830 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 12831 | # do not overwrite the value of need_locks provided by the user |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12832 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 12833 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12834 | hard_links=yes |
| 12835 | $rm conftest* |
| 12836 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 12837 | touch conftest.a |
| 12838 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 12839 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12840 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 12841 | echo "${ECHO_T}$hard_links" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12842 | if test "$hard_links" = no; then |
| 12843 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 12844 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 12845 | need_locks=warn |
| 12846 | fi |
| 12847 | else |
| 12848 | need_locks=no |
| 12849 | fi |
| 12850 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12851 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 12852 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12853 | |
| 12854 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 12855 | case $host_os in |
| 12856 | aix4* | aix5*) |
| 12857 | # If we're using GNU nm, then we don't want the "-C" option. |
| 12858 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 12859 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 12860 | 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' |
| 12861 | else |
| 12862 | 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' |
| 12863 | fi |
| 12864 | ;; |
| 12865 | pw32*) |
| 12866 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 12867 | ;; |
| 12868 | cygwin* | mingw*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12869 | 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' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12870 | ;; |
| 12871 | *) |
| 12872 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 12873 | ;; |
| 12874 | esac |
| 12875 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12876 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 12877 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12878 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 12879 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12880 | # |
| 12881 | # Do we need to explicitly link libc? |
| 12882 | # |
| 12883 | case "x$archive_cmds_need_lc_CXX" in |
| 12884 | x|xyes) |
| 12885 | # Assume -lc should be added |
| 12886 | archive_cmds_need_lc_CXX=yes |
| 12887 | |
| 12888 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 12889 | case $archive_cmds_CXX in |
| 12890 | *'~'*) |
| 12891 | # FIXME: we may have to deal with multi-command sequences. |
| 12892 | ;; |
| 12893 | '$CC '*) |
| 12894 | # Test whether the compiler implicitly links with -lc since on some |
| 12895 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 12896 | # to ld, don't add -lc before -lgcc. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12897 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 12898 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12899 | $rm conftest* |
| 12900 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12901 | |
| 12902 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12903 | (eval $ac_compile) 2>&5 |
| 12904 | ac_status=$? |
| 12905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12906 | (exit $ac_status); } 2>conftest.err; then |
| 12907 | soname=conftest |
| 12908 | lib=conftest |
| 12909 | libobjs=conftest.$ac_objext |
| 12910 | deplibs= |
| 12911 | wl=$lt_prog_compiler_wl_CXX |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12912 | pic_flag=$lt_prog_compiler_pic_CXX |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12913 | compiler_flags=-v |
| 12914 | linker_flags=-v |
| 12915 | verstring= |
| 12916 | output_objdir=. |
| 12917 | libname=conftest |
| 12918 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 12919 | allow_undefined_flag_CXX= |
| 12920 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 12921 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 12922 | ac_status=$? |
| 12923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12924 | (exit $ac_status); } |
| 12925 | then |
| 12926 | archive_cmds_need_lc_CXX=no |
| 12927 | else |
| 12928 | archive_cmds_need_lc_CXX=yes |
| 12929 | fi |
| 12930 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 12931 | else |
| 12932 | cat conftest.err 1>&5 |
| 12933 | fi |
| 12934 | $rm conftest* |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12935 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
| 12936 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12937 | ;; |
| 12938 | esac |
| 12939 | fi |
| 12940 | ;; |
| 12941 | esac |
| 12942 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12943 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 12944 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12945 | library_names_spec= |
| 12946 | libname_spec='lib$name' |
| 12947 | soname_spec= |
| 12948 | shrext_cmds=".so" |
| 12949 | postinstall_cmds= |
| 12950 | postuninstall_cmds= |
| 12951 | finish_cmds= |
| 12952 | finish_eval= |
| 12953 | shlibpath_var= |
| 12954 | shlibpath_overrides_runpath=unknown |
| 12955 | version_type=none |
| 12956 | dynamic_linker="$host_os ld.so" |
| 12957 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 12958 | if test "$GCC" = yes; then |
| 12959 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 12960 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 12961 | # if the path contains ";" then we assume it to be the separator |
| 12962 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 12963 | # assumed that no part of a normal pathname contains ";" but that should |
| 12964 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 12965 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 12966 | else |
| 12967 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 12968 | fi |
| 12969 | else |
| 12970 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 12971 | fi |
| 12972 | need_lib_prefix=unknown |
| 12973 | hardcode_into_libs=no |
| 12974 | |
| 12975 | # when you set need_version to no, make sure it does not cause -set_version |
| 12976 | # flags to be left without arguments |
| 12977 | need_version=unknown |
| 12978 | |
| 12979 | case $host_os in |
| 12980 | aix3*) |
| 12981 | version_type=linux |
| 12982 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 12983 | shlibpath_var=LIBPATH |
| 12984 | |
| 12985 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 12986 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12987 | ;; |
| 12988 | |
| 12989 | aix4* | aix5*) |
| 12990 | version_type=linux |
| 12991 | need_lib_prefix=no |
| 12992 | need_version=no |
| 12993 | hardcode_into_libs=yes |
| 12994 | if test "$host_cpu" = ia64; then |
| 12995 | # AIX 5 supports IA64 |
| 12996 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 12997 | shlibpath_var=LD_LIBRARY_PATH |
| 12998 | else |
| 12999 | # With GCC up to 2.95.x, collect2 would create an import file |
| 13000 | # for dependence libraries. The import file would start with |
| 13001 | # the line `#! .'. This would cause the generated library to |
| 13002 | # depend on `.', always an invalid library. This was fixed in |
| 13003 | # development snapshots of GCC prior to 3.0. |
| 13004 | case $host_os in |
| 13005 | aix4 | aix4.[01] | aix4.[01].*) |
| 13006 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 13007 | echo ' yes ' |
| 13008 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 13009 | : |
| 13010 | else |
| 13011 | can_build_shared=no |
| 13012 | fi |
| 13013 | ;; |
| 13014 | esac |
| 13015 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 13016 | # soname into executable. Probably we can add versioning support to |
| 13017 | # collect2, so additional links can be useful in future. |
| 13018 | if test "$aix_use_runtimelinking" = yes; then |
| 13019 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 13020 | # instead of lib<name>.a to let people know that these are not |
| 13021 | # typical AIX shared libraries. |
| 13022 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13023 | else |
| 13024 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 13025 | # and later when we are not doing run time linking. |
| 13026 | library_names_spec='${libname}${release}.a $libname.a' |
| 13027 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13028 | fi |
| 13029 | shlibpath_var=LIBPATH |
| 13030 | fi |
| 13031 | ;; |
| 13032 | |
| 13033 | amigaos*) |
| 13034 | library_names_spec='$libname.ixlibrary $libname.a' |
| 13035 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 13036 | 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' |
| 13037 | ;; |
| 13038 | |
| 13039 | beos*) |
| 13040 | library_names_spec='${libname}${shared_ext}' |
| 13041 | dynamic_linker="$host_os ld.so" |
| 13042 | shlibpath_var=LIBRARY_PATH |
| 13043 | ;; |
| 13044 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13045 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13046 | version_type=linux |
| 13047 | need_version=no |
| 13048 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13049 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13050 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 13051 | shlibpath_var=LD_LIBRARY_PATH |
| 13052 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 13053 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 13054 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 13055 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 13056 | # libtool to hard-code these into programs |
| 13057 | ;; |
| 13058 | |
| 13059 | cygwin* | mingw* | pw32*) |
| 13060 | version_type=windows |
| 13061 | shrext_cmds=".dll" |
| 13062 | need_version=no |
| 13063 | need_lib_prefix=no |
| 13064 | |
| 13065 | case $GCC,$host_os in |
| 13066 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 13067 | library_names_spec='$libname.dll.a' |
| 13068 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 13069 | postinstall_cmds='base_file=`basename \${file}`~ |
| 13070 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 13071 | dldir=$destdir/`dirname \$dlpath`~ |
| 13072 | test -d \$dldir || mkdir -p \$dldir~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13073 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 13074 | chmod a+x \$dldir/$dlname' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13075 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 13076 | dlpath=$dir/\$dldll~ |
| 13077 | $rm \$dlpath' |
| 13078 | shlibpath_overrides_runpath=yes |
| 13079 | |
| 13080 | case $host_os in |
| 13081 | cygwin*) |
| 13082 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 13083 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 13084 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 13085 | ;; |
| 13086 | mingw*) |
| 13087 | # MinGW DLLs use traditional 'lib' prefix |
| 13088 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 13089 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 13090 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 13091 | # It is most probably a Windows format PATH printed by |
| 13092 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 13093 | # path with ; separators, and with drive letters. We can handle the |
| 13094 | # drive letters (cygwin fileutils understands them), so leave them, |
| 13095 | # especially as we might pass files found there to a mingw objdump, |
| 13096 | # which wouldn't understand a cygwinified path. Ahh. |
| 13097 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 13098 | else |
| 13099 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 13100 | fi |
| 13101 | ;; |
| 13102 | pw32*) |
| 13103 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13104 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13105 | ;; |
| 13106 | esac |
| 13107 | ;; |
| 13108 | |
| 13109 | *) |
| 13110 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 13111 | ;; |
| 13112 | esac |
| 13113 | dynamic_linker='Win32 ld.exe' |
| 13114 | # FIXME: first we should search . and the directory the executable is in |
| 13115 | shlibpath_var=PATH |
| 13116 | ;; |
| 13117 | |
| 13118 | darwin* | rhapsody*) |
| 13119 | dynamic_linker="$host_os dyld" |
| 13120 | version_type=darwin |
| 13121 | need_lib_prefix=no |
| 13122 | need_version=no |
| 13123 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 13124 | soname_spec='${libname}${release}${major}$shared_ext' |
| 13125 | shlibpath_overrides_runpath=yes |
| 13126 | shlibpath_var=DYLD_LIBRARY_PATH |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13127 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13128 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 13129 | if test "$GCC" = yes; then |
| 13130 | 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"` |
| 13131 | else |
| 13132 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 13133 | fi |
| 13134 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 13135 | ;; |
| 13136 | |
| 13137 | dgux*) |
| 13138 | version_type=linux |
| 13139 | need_lib_prefix=no |
| 13140 | need_version=no |
| 13141 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 13142 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13143 | shlibpath_var=LD_LIBRARY_PATH |
| 13144 | ;; |
| 13145 | |
| 13146 | freebsd1*) |
| 13147 | dynamic_linker=no |
| 13148 | ;; |
| 13149 | |
| 13150 | kfreebsd*-gnu) |
| 13151 | version_type=linux |
| 13152 | need_lib_prefix=no |
| 13153 | need_version=no |
| 13154 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 13155 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13156 | shlibpath_var=LD_LIBRARY_PATH |
| 13157 | shlibpath_overrides_runpath=no |
| 13158 | hardcode_into_libs=yes |
| 13159 | dynamic_linker='GNU ld.so' |
| 13160 | ;; |
| 13161 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13162 | freebsd* | dragonfly*) |
| 13163 | # DragonFly does not have aout. When/if they implement a new |
| 13164 | # versioning mechanism, adjust this. |
| 13165 | if test -x /usr/bin/objformat; then |
| 13166 | objformat=`/usr/bin/objformat` |
| 13167 | else |
| 13168 | case $host_os in |
| 13169 | freebsd[123]*) objformat=aout ;; |
| 13170 | *) objformat=elf ;; |
| 13171 | esac |
| 13172 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13173 | version_type=freebsd-$objformat |
| 13174 | case $version_type in |
| 13175 | freebsd-elf*) |
| 13176 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 13177 | need_version=no |
| 13178 | need_lib_prefix=no |
| 13179 | ;; |
| 13180 | freebsd-*) |
| 13181 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 13182 | need_version=yes |
| 13183 | ;; |
| 13184 | esac |
| 13185 | shlibpath_var=LD_LIBRARY_PATH |
| 13186 | case $host_os in |
| 13187 | freebsd2*) |
| 13188 | shlibpath_overrides_runpath=yes |
| 13189 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13190 | freebsd3.[01]* | freebsdelf3.[01]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13191 | shlibpath_overrides_runpath=yes |
| 13192 | hardcode_into_libs=yes |
| 13193 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13194 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 13195 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13196 | shlibpath_overrides_runpath=no |
| 13197 | hardcode_into_libs=yes |
| 13198 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13199 | freebsd*) # from 4.6 on |
| 13200 | shlibpath_overrides_runpath=yes |
| 13201 | hardcode_into_libs=yes |
| 13202 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13203 | esac |
| 13204 | ;; |
| 13205 | |
| 13206 | gnu*) |
| 13207 | version_type=linux |
| 13208 | need_lib_prefix=no |
| 13209 | need_version=no |
| 13210 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 13211 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13212 | shlibpath_var=LD_LIBRARY_PATH |
| 13213 | hardcode_into_libs=yes |
| 13214 | ;; |
| 13215 | |
| 13216 | hpux9* | hpux10* | hpux11*) |
| 13217 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 13218 | # link against other versions. |
| 13219 | version_type=sunos |
| 13220 | need_lib_prefix=no |
| 13221 | need_version=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13222 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13223 | ia64*) |
| 13224 | shrext_cmds='.so' |
| 13225 | hardcode_into_libs=yes |
| 13226 | dynamic_linker="$host_os dld.so" |
| 13227 | shlibpath_var=LD_LIBRARY_PATH |
| 13228 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13229 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13230 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13231 | if test "X$HPUX_IA64_MODE" = X32; then |
| 13232 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 13233 | else |
| 13234 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 13235 | fi |
| 13236 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13237 | ;; |
| 13238 | hppa*64*) |
| 13239 | shrext_cmds='.sl' |
| 13240 | hardcode_into_libs=yes |
| 13241 | dynamic_linker="$host_os dld.sl" |
| 13242 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 13243 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13244 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13245 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13246 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 13247 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13248 | ;; |
| 13249 | *) |
| 13250 | shrext_cmds='.sl' |
| 13251 | dynamic_linker="$host_os dld.sl" |
| 13252 | shlibpath_var=SHLIB_PATH |
| 13253 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 13254 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13255 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13256 | ;; |
| 13257 | esac |
| 13258 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 13259 | postinstall_cmds='chmod 555 $lib' |
| 13260 | ;; |
| 13261 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13262 | interix3*) |
| 13263 | version_type=linux |
| 13264 | need_lib_prefix=no |
| 13265 | need_version=no |
| 13266 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 13267 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13268 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 13269 | shlibpath_var=LD_LIBRARY_PATH |
| 13270 | shlibpath_overrides_runpath=no |
| 13271 | hardcode_into_libs=yes |
| 13272 | ;; |
| 13273 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13274 | irix5* | irix6* | nonstopux*) |
| 13275 | case $host_os in |
| 13276 | nonstopux*) version_type=nonstopux ;; |
| 13277 | *) |
| 13278 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 13279 | version_type=linux |
| 13280 | else |
| 13281 | version_type=irix |
| 13282 | fi ;; |
| 13283 | esac |
| 13284 | need_lib_prefix=no |
| 13285 | need_version=no |
| 13286 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13287 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 13288 | case $host_os in |
| 13289 | irix5* | nonstopux*) |
| 13290 | libsuff= shlibsuff= |
| 13291 | ;; |
| 13292 | *) |
| 13293 | case $LD in # libtool.m4 will add one of these switches to LD |
| 13294 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 13295 | libsuff= shlibsuff= libmagic=32-bit;; |
| 13296 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 13297 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 13298 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 13299 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 13300 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 13301 | esac |
| 13302 | ;; |
| 13303 | esac |
| 13304 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 13305 | shlibpath_overrides_runpath=no |
| 13306 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 13307 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 13308 | hardcode_into_libs=yes |
| 13309 | ;; |
| 13310 | |
| 13311 | # No shared lib support for Linux oldld, aout, or coff. |
| 13312 | linux*oldld* | linux*aout* | linux*coff*) |
| 13313 | dynamic_linker=no |
| 13314 | ;; |
| 13315 | |
| 13316 | # This must be Linux ELF. |
| 13317 | linux*) |
| 13318 | version_type=linux |
| 13319 | need_lib_prefix=no |
| 13320 | need_version=no |
| 13321 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13322 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13323 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 13324 | shlibpath_var=LD_LIBRARY_PATH |
| 13325 | shlibpath_overrides_runpath=no |
| 13326 | # This implies no fast_install, which is unacceptable. |
| 13327 | # Some rework will be needed to allow for fast_install |
| 13328 | # before this can be enabled. |
| 13329 | hardcode_into_libs=yes |
| 13330 | |
| 13331 | # Append ld.so.conf contents to the search path |
| 13332 | if test -f /etc/ld.so.conf; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13333 | 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' ' '` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13334 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 13335 | fi |
| 13336 | |
| 13337 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 13338 | # powerpc, because MkLinux only supported shared libraries with the |
| 13339 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 13340 | # most powerpc-linux boxes support dynamic linking these days and |
| 13341 | # people can always --disable-shared, the test was removed, and we |
| 13342 | # assume the GNU/Linux dynamic linker is in use. |
| 13343 | dynamic_linker='GNU/Linux ld.so' |
| 13344 | ;; |
| 13345 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13346 | knetbsd*-gnu) |
| 13347 | version_type=linux |
| 13348 | need_lib_prefix=no |
| 13349 | need_version=no |
| 13350 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 13351 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13352 | shlibpath_var=LD_LIBRARY_PATH |
| 13353 | shlibpath_overrides_runpath=no |
| 13354 | hardcode_into_libs=yes |
| 13355 | dynamic_linker='GNU ld.so' |
| 13356 | ;; |
| 13357 | |
| 13358 | netbsd*) |
| 13359 | version_type=sunos |
| 13360 | need_lib_prefix=no |
| 13361 | need_version=no |
| 13362 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 13363 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 13364 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 13365 | dynamic_linker='NetBSD (a.out) ld.so' |
| 13366 | else |
| 13367 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 13368 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13369 | dynamic_linker='NetBSD ld.elf_so' |
| 13370 | fi |
| 13371 | shlibpath_var=LD_LIBRARY_PATH |
| 13372 | shlibpath_overrides_runpath=yes |
| 13373 | hardcode_into_libs=yes |
| 13374 | ;; |
| 13375 | |
| 13376 | newsos6) |
| 13377 | version_type=linux |
| 13378 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13379 | shlibpath_var=LD_LIBRARY_PATH |
| 13380 | shlibpath_overrides_runpath=yes |
| 13381 | ;; |
| 13382 | |
| 13383 | nto-qnx*) |
| 13384 | version_type=linux |
| 13385 | need_lib_prefix=no |
| 13386 | need_version=no |
| 13387 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13388 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13389 | shlibpath_var=LD_LIBRARY_PATH |
| 13390 | shlibpath_overrides_runpath=yes |
| 13391 | ;; |
| 13392 | |
| 13393 | openbsd*) |
| 13394 | version_type=sunos |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13395 | sys_lib_dlsearch_path_spec="/usr/lib" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13396 | need_lib_prefix=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13397 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 13398 | case $host_os in |
| 13399 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 13400 | *) need_version=no ;; |
| 13401 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13402 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 13403 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 13404 | shlibpath_var=LD_LIBRARY_PATH |
| 13405 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 13406 | case $host_os in |
| 13407 | openbsd2.[89] | openbsd2.[89].*) |
| 13408 | shlibpath_overrides_runpath=no |
| 13409 | ;; |
| 13410 | *) |
| 13411 | shlibpath_overrides_runpath=yes |
| 13412 | ;; |
| 13413 | esac |
| 13414 | else |
| 13415 | shlibpath_overrides_runpath=yes |
| 13416 | fi |
| 13417 | ;; |
| 13418 | |
| 13419 | os2*) |
| 13420 | libname_spec='$name' |
| 13421 | shrext_cmds=".dll" |
| 13422 | need_lib_prefix=no |
| 13423 | library_names_spec='$libname${shared_ext} $libname.a' |
| 13424 | dynamic_linker='OS/2 ld.exe' |
| 13425 | shlibpath_var=LIBPATH |
| 13426 | ;; |
| 13427 | |
| 13428 | osf3* | osf4* | osf5*) |
| 13429 | version_type=osf |
| 13430 | need_lib_prefix=no |
| 13431 | need_version=no |
| 13432 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13433 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13434 | shlibpath_var=LD_LIBRARY_PATH |
| 13435 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 13436 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 13437 | ;; |
| 13438 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13439 | solaris*) |
| 13440 | version_type=linux |
| 13441 | need_lib_prefix=no |
| 13442 | need_version=no |
| 13443 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13444 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13445 | shlibpath_var=LD_LIBRARY_PATH |
| 13446 | shlibpath_overrides_runpath=yes |
| 13447 | hardcode_into_libs=yes |
| 13448 | # ldd complains unless libraries are executable |
| 13449 | postinstall_cmds='chmod +x $lib' |
| 13450 | ;; |
| 13451 | |
| 13452 | sunos4*) |
| 13453 | version_type=sunos |
| 13454 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 13455 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 13456 | shlibpath_var=LD_LIBRARY_PATH |
| 13457 | shlibpath_overrides_runpath=yes |
| 13458 | if test "$with_gnu_ld" = yes; then |
| 13459 | need_lib_prefix=no |
| 13460 | fi |
| 13461 | need_version=yes |
| 13462 | ;; |
| 13463 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13464 | sysv4 | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13465 | version_type=linux |
| 13466 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13467 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13468 | shlibpath_var=LD_LIBRARY_PATH |
| 13469 | case $host_vendor in |
| 13470 | sni) |
| 13471 | shlibpath_overrides_runpath=no |
| 13472 | need_lib_prefix=no |
| 13473 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 13474 | runpath_var=LD_RUN_PATH |
| 13475 | ;; |
| 13476 | siemens) |
| 13477 | need_lib_prefix=no |
| 13478 | ;; |
| 13479 | motorola) |
| 13480 | need_lib_prefix=no |
| 13481 | need_version=no |
| 13482 | shlibpath_overrides_runpath=no |
| 13483 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 13484 | ;; |
| 13485 | esac |
| 13486 | ;; |
| 13487 | |
| 13488 | sysv4*MP*) |
| 13489 | if test -d /usr/nec ;then |
| 13490 | version_type=linux |
| 13491 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 13492 | soname_spec='$libname${shared_ext}.$major' |
| 13493 | shlibpath_var=LD_LIBRARY_PATH |
| 13494 | fi |
| 13495 | ;; |
| 13496 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13497 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 13498 | version_type=freebsd-elf |
| 13499 | need_lib_prefix=no |
| 13500 | need_version=no |
| 13501 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 13502 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13503 | shlibpath_var=LD_LIBRARY_PATH |
| 13504 | hardcode_into_libs=yes |
| 13505 | if test "$with_gnu_ld" = yes; then |
| 13506 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 13507 | shlibpath_overrides_runpath=no |
| 13508 | else |
| 13509 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 13510 | shlibpath_overrides_runpath=yes |
| 13511 | case $host_os in |
| 13512 | sco3.2v5*) |
| 13513 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 13514 | ;; |
| 13515 | esac |
| 13516 | fi |
| 13517 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 13518 | ;; |
| 13519 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13520 | uts4*) |
| 13521 | version_type=linux |
| 13522 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13523 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13524 | shlibpath_var=LD_LIBRARY_PATH |
| 13525 | ;; |
| 13526 | |
| 13527 | *) |
| 13528 | dynamic_linker=no |
| 13529 | ;; |
| 13530 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13531 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 13532 | echo "${ECHO_T}$dynamic_linker" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13533 | test "$dynamic_linker" = no && can_build_shared=no |
| 13534 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13535 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 13536 | if test "$GCC" = yes; then |
| 13537 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 13538 | fi |
| 13539 | |
| 13540 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 13541 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13542 | hardcode_action_CXX= |
| 13543 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13544 | test -n "$runpath_var_CXX" || \ |
| 13545 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13546 | |
| 13547 | # We can hardcode non-existant directories. |
| 13548 | if test "$hardcode_direct_CXX" != no && |
| 13549 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 13550 | # have to relink, otherwise we might link with an installed library |
| 13551 | # when we should be linking with a yet-to-be-installed one |
| 13552 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 13553 | test "$hardcode_minus_L_CXX" != no; then |
| 13554 | # Linking always hardcodes the temporary library directory. |
| 13555 | hardcode_action_CXX=relink |
| 13556 | else |
| 13557 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 13558 | hardcode_action_CXX=immediate |
| 13559 | fi |
| 13560 | else |
| 13561 | # We cannot hardcode anything, or else we can only hardcode existing |
| 13562 | # directories. |
| 13563 | hardcode_action_CXX=unsupported |
| 13564 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13565 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
| 13566 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13567 | |
| 13568 | if test "$hardcode_action_CXX" = relink; then |
| 13569 | # Fast installation is not supported |
| 13570 | enable_fast_install=no |
| 13571 | elif test "$shlibpath_overrides_runpath" = yes || |
| 13572 | test "$enable_shared" = no; then |
| 13573 | # Fast installation is not necessary |
| 13574 | enable_fast_install=needless |
| 13575 | fi |
| 13576 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13577 | |
| 13578 | # The else clause should only fire when bootstrapping the |
| 13579 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 13580 | # with your package, and you will get complaints that there are |
| 13581 | # no rules to generate ltmain.sh. |
| 13582 | if test -f "$ltmain"; then |
| 13583 | # See if we are running on zsh, and set the options which allow our commands through |
| 13584 | # without removal of \ escapes. |
| 13585 | if test -n "${ZSH_VERSION+set}" ; then |
| 13586 | setopt NO_GLOB_SUBST |
| 13587 | fi |
| 13588 | # Now quote all the things that may contain metacharacters while being |
| 13589 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 13590 | # variables and quote the copies for generation of the libtool script. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13591 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13592 | SED SHELL STRIP \ |
| 13593 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 13594 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 13595 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 13596 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 13597 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 13598 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 13599 | old_postinstall_cmds old_postuninstall_cmds \ |
| 13600 | compiler_CXX \ |
| 13601 | CC_CXX \ |
| 13602 | LD_CXX \ |
| 13603 | lt_prog_compiler_wl_CXX \ |
| 13604 | lt_prog_compiler_pic_CXX \ |
| 13605 | lt_prog_compiler_static_CXX \ |
| 13606 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 13607 | export_dynamic_flag_spec_CXX \ |
| 13608 | thread_safe_flag_spec_CXX \ |
| 13609 | whole_archive_flag_spec_CXX \ |
| 13610 | enable_shared_with_static_runtimes_CXX \ |
| 13611 | old_archive_cmds_CXX \ |
| 13612 | old_archive_from_new_cmds_CXX \ |
| 13613 | predep_objects_CXX \ |
| 13614 | postdep_objects_CXX \ |
| 13615 | predeps_CXX \ |
| 13616 | postdeps_CXX \ |
| 13617 | compiler_lib_search_path_CXX \ |
| 13618 | archive_cmds_CXX \ |
| 13619 | archive_expsym_cmds_CXX \ |
| 13620 | postinstall_cmds_CXX \ |
| 13621 | postuninstall_cmds_CXX \ |
| 13622 | old_archive_from_expsyms_cmds_CXX \ |
| 13623 | allow_undefined_flag_CXX \ |
| 13624 | no_undefined_flag_CXX \ |
| 13625 | export_symbols_cmds_CXX \ |
| 13626 | hardcode_libdir_flag_spec_CXX \ |
| 13627 | hardcode_libdir_flag_spec_ld_CXX \ |
| 13628 | hardcode_libdir_separator_CXX \ |
| 13629 | hardcode_automatic_CXX \ |
| 13630 | module_cmds_CXX \ |
| 13631 | module_expsym_cmds_CXX \ |
| 13632 | lt_cv_prog_compiler_c_o_CXX \ |
| 13633 | exclude_expsyms_CXX \ |
| 13634 | include_expsyms_CXX; do |
| 13635 | |
| 13636 | case $var in |
| 13637 | old_archive_cmds_CXX | \ |
| 13638 | old_archive_from_new_cmds_CXX | \ |
| 13639 | archive_cmds_CXX | \ |
| 13640 | archive_expsym_cmds_CXX | \ |
| 13641 | module_cmds_CXX | \ |
| 13642 | module_expsym_cmds_CXX | \ |
| 13643 | old_archive_from_expsyms_cmds_CXX | \ |
| 13644 | export_symbols_cmds_CXX | \ |
| 13645 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 13646 | postinstall_cmds | postuninstall_cmds | \ |
| 13647 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 13648 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 13649 | # Double-quote double-evaled strings. |
| 13650 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 13651 | ;; |
| 13652 | *) |
| 13653 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 13654 | ;; |
| 13655 | esac |
| 13656 | done |
| 13657 | |
| 13658 | case $lt_echo in |
| 13659 | *'\$0 --fallback-echo"') |
| 13660 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 13661 | ;; |
| 13662 | esac |
| 13663 | |
| 13664 | cfgfile="$ofile" |
| 13665 | |
| 13666 | cat <<__EOF__ >> "$cfgfile" |
| 13667 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 13668 | |
| 13669 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 13670 | |
| 13671 | # Shell to use when invoking shell scripts. |
| 13672 | SHELL=$lt_SHELL |
| 13673 | |
| 13674 | # Whether or not to build shared libraries. |
| 13675 | build_libtool_libs=$enable_shared |
| 13676 | |
| 13677 | # Whether or not to build static libraries. |
| 13678 | build_old_libs=$enable_static |
| 13679 | |
| 13680 | # Whether or not to add -lc for building shared libraries. |
| 13681 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 13682 | |
| 13683 | # Whether or not to disallow shared libs when runtime libs are static |
| 13684 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 13685 | |
| 13686 | # Whether or not to optimize for fast installation. |
| 13687 | fast_install=$enable_fast_install |
| 13688 | |
| 13689 | # The host system. |
| 13690 | host_alias=$host_alias |
| 13691 | host=$host |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13692 | host_os=$host_os |
| 13693 | |
| 13694 | # The build system. |
| 13695 | build_alias=$build_alias |
| 13696 | build=$build |
| 13697 | build_os=$build_os |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13698 | |
| 13699 | # An echo program that does not interpret backslashes. |
| 13700 | echo=$lt_echo |
| 13701 | |
| 13702 | # The archiver. |
| 13703 | AR=$lt_AR |
| 13704 | AR_FLAGS=$lt_AR_FLAGS |
| 13705 | |
| 13706 | # A C compiler. |
| 13707 | LTCC=$lt_LTCC |
| 13708 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13709 | # LTCC compiler flags. |
| 13710 | LTCFLAGS=$lt_LTCFLAGS |
| 13711 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13712 | # A language-specific compiler. |
| 13713 | CC=$lt_compiler_CXX |
| 13714 | |
| 13715 | # Is the compiler the GNU C compiler? |
| 13716 | with_gcc=$GCC_CXX |
| 13717 | |
| 13718 | # An ERE matcher. |
| 13719 | EGREP=$lt_EGREP |
| 13720 | |
| 13721 | # The linker used to build libraries. |
| 13722 | LD=$lt_LD_CXX |
| 13723 | |
| 13724 | # Whether we need hard or soft links. |
| 13725 | LN_S=$lt_LN_S |
| 13726 | |
| 13727 | # A BSD-compatible nm program. |
| 13728 | NM=$lt_NM |
| 13729 | |
| 13730 | # A symbol stripping program |
| 13731 | STRIP=$lt_STRIP |
| 13732 | |
| 13733 | # Used to examine libraries when file_magic_cmd begins "file" |
| 13734 | MAGIC_CMD=$MAGIC_CMD |
| 13735 | |
| 13736 | # Used on cygwin: DLL creation program. |
| 13737 | DLLTOOL="$DLLTOOL" |
| 13738 | |
| 13739 | # Used on cygwin: object dumper. |
| 13740 | OBJDUMP="$OBJDUMP" |
| 13741 | |
| 13742 | # Used on cygwin: assembler. |
| 13743 | AS="$AS" |
| 13744 | |
| 13745 | # The name of the directory that contains temporary libtool files. |
| 13746 | objdir=$objdir |
| 13747 | |
| 13748 | # How to create reloadable object files. |
| 13749 | reload_flag=$lt_reload_flag |
| 13750 | reload_cmds=$lt_reload_cmds |
| 13751 | |
| 13752 | # How to pass a linker flag through the compiler. |
| 13753 | wl=$lt_lt_prog_compiler_wl_CXX |
| 13754 | |
| 13755 | # Object file suffix (normally "o"). |
| 13756 | objext="$ac_objext" |
| 13757 | |
| 13758 | # Old archive suffix (normally "a"). |
| 13759 | libext="$libext" |
| 13760 | |
| 13761 | # Shared library suffix (normally ".so"). |
| 13762 | shrext_cmds='$shrext_cmds' |
| 13763 | |
| 13764 | # Executable file suffix (normally ""). |
| 13765 | exeext="$exeext" |
| 13766 | |
| 13767 | # Additional compiler flags for building library objects. |
| 13768 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 13769 | pic_mode=$pic_mode |
| 13770 | |
| 13771 | # What is the maximum length of a command? |
| 13772 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 13773 | |
| 13774 | # Does compiler simultaneously support -c and -o options? |
| 13775 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 13776 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13777 | # Must we lock files when doing compilation? |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13778 | need_locks=$lt_need_locks |
| 13779 | |
| 13780 | # Do we need the lib prefix for modules? |
| 13781 | need_lib_prefix=$need_lib_prefix |
| 13782 | |
| 13783 | # Do we need a version for libraries? |
| 13784 | need_version=$need_version |
| 13785 | |
| 13786 | # Whether dlopen is supported. |
| 13787 | dlopen_support=$enable_dlopen |
| 13788 | |
| 13789 | # Whether dlopen of programs is supported. |
| 13790 | dlopen_self=$enable_dlopen_self |
| 13791 | |
| 13792 | # Whether dlopen of statically linked programs is supported. |
| 13793 | dlopen_self_static=$enable_dlopen_self_static |
| 13794 | |
| 13795 | # Compiler flag to prevent dynamic linking. |
| 13796 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 13797 | |
| 13798 | # Compiler flag to turn off builtin functions. |
| 13799 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 13800 | |
| 13801 | # Compiler flag to allow reflexive dlopens. |
| 13802 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 13803 | |
| 13804 | # Compiler flag to generate shared objects directly from archives. |
| 13805 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 13806 | |
| 13807 | # Compiler flag to generate thread-safe objects. |
| 13808 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
| 13809 | |
| 13810 | # Library versioning type. |
| 13811 | version_type=$version_type |
| 13812 | |
| 13813 | # Format of library name prefix. |
| 13814 | libname_spec=$lt_libname_spec |
| 13815 | |
| 13816 | # List of archive names. First name is the real one, the rest are links. |
| 13817 | # The last name is the one that the linker finds with -lNAME. |
| 13818 | library_names_spec=$lt_library_names_spec |
| 13819 | |
| 13820 | # The coded name of the library, if different from the real name. |
| 13821 | soname_spec=$lt_soname_spec |
| 13822 | |
| 13823 | # Commands used to build and install an old-style archive. |
| 13824 | RANLIB=$lt_RANLIB |
| 13825 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 13826 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 13827 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 13828 | |
| 13829 | # Create an old-style archive from a shared archive. |
| 13830 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 13831 | |
| 13832 | # Create a temporary old-style archive to link instead of a shared archive. |
| 13833 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 13834 | |
| 13835 | # Commands used to build and install a shared archive. |
| 13836 | archive_cmds=$lt_archive_cmds_CXX |
| 13837 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 13838 | postinstall_cmds=$lt_postinstall_cmds |
| 13839 | postuninstall_cmds=$lt_postuninstall_cmds |
| 13840 | |
| 13841 | # Commands used to build a loadable module (assumed same as above if empty) |
| 13842 | module_cmds=$lt_module_cmds_CXX |
| 13843 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 13844 | |
| 13845 | # Commands to strip libraries. |
| 13846 | old_striplib=$lt_old_striplib |
| 13847 | striplib=$lt_striplib |
| 13848 | |
| 13849 | # Dependencies to place before the objects being linked to create a |
| 13850 | # shared library. |
| 13851 | predep_objects=$lt_predep_objects_CXX |
| 13852 | |
| 13853 | # Dependencies to place after the objects being linked to create a |
| 13854 | # shared library. |
| 13855 | postdep_objects=$lt_postdep_objects_CXX |
| 13856 | |
| 13857 | # Dependencies to place before the objects being linked to create a |
| 13858 | # shared library. |
| 13859 | predeps=$lt_predeps_CXX |
| 13860 | |
| 13861 | # Dependencies to place after the objects being linked to create a |
| 13862 | # shared library. |
| 13863 | postdeps=$lt_postdeps_CXX |
| 13864 | |
| 13865 | # The library search path used internally by the compiler when linking |
| 13866 | # a shared library. |
| 13867 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 13868 | |
| 13869 | # Method to check whether dependent libraries are shared objects. |
| 13870 | deplibs_check_method=$lt_deplibs_check_method |
| 13871 | |
| 13872 | # Command to use when deplibs_check_method == file_magic. |
| 13873 | file_magic_cmd=$lt_file_magic_cmd |
| 13874 | |
| 13875 | # Flag that allows shared libraries with undefined symbols to be built. |
| 13876 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 13877 | |
| 13878 | # Flag that forces no undefined symbols. |
| 13879 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 13880 | |
| 13881 | # Commands used to finish a libtool library installation in a directory. |
| 13882 | finish_cmds=$lt_finish_cmds |
| 13883 | |
| 13884 | # Same as above, but a single script fragment to be evaled but not shown. |
| 13885 | finish_eval=$lt_finish_eval |
| 13886 | |
| 13887 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 13888 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 13889 | |
| 13890 | # Transform the output of nm in a proper C declaration |
| 13891 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 13892 | |
| 13893 | # Transform the output of nm in a C name address pair |
| 13894 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 13895 | |
| 13896 | # This is the shared library runtime path variable. |
| 13897 | runpath_var=$runpath_var |
| 13898 | |
| 13899 | # This is the shared library path variable. |
| 13900 | shlibpath_var=$shlibpath_var |
| 13901 | |
| 13902 | # Is shlibpath searched before the hard-coded library search path? |
| 13903 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 13904 | |
| 13905 | # How to hardcode a shared library path into an executable. |
| 13906 | hardcode_action=$hardcode_action_CXX |
| 13907 | |
| 13908 | # Whether we should hardcode library paths into libraries. |
| 13909 | hardcode_into_libs=$hardcode_into_libs |
| 13910 | |
| 13911 | # Flag to hardcode \$libdir into a binary during linking. |
| 13912 | # This must work even if \$libdir does not exist. |
| 13913 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 13914 | |
| 13915 | # If ld is used when linking, flag to hardcode \$libdir into |
| 13916 | # a binary during linking. This must work even if \$libdir does |
| 13917 | # not exist. |
| 13918 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 13919 | |
| 13920 | # Whether we need a single -rpath flag with a separated argument. |
| 13921 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 13922 | |
| 13923 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 13924 | # resulting binary. |
| 13925 | hardcode_direct=$hardcode_direct_CXX |
| 13926 | |
| 13927 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 13928 | # resulting binary. |
| 13929 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 13930 | |
| 13931 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 13932 | # the resulting binary. |
| 13933 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 13934 | |
| 13935 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 13936 | # and all subsequent libraries and executables linked against it. |
| 13937 | hardcode_automatic=$hardcode_automatic_CXX |
| 13938 | |
| 13939 | # Variables whose values should be saved in libtool wrapper scripts and |
| 13940 | # restored at relink time. |
| 13941 | variables_saved_for_relink="$variables_saved_for_relink" |
| 13942 | |
| 13943 | # Whether libtool must link a program against all its dependency libraries. |
| 13944 | link_all_deplibs=$link_all_deplibs_CXX |
| 13945 | |
| 13946 | # Compile-time system search path for libraries |
| 13947 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 13948 | |
| 13949 | # Run-time system search path for libraries |
| 13950 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 13951 | |
| 13952 | # Fix the shell variable \$srcfile for the compiler. |
| 13953 | fix_srcfile_path="$fix_srcfile_path_CXX" |
| 13954 | |
| 13955 | # Set to yes if exported symbols are required. |
| 13956 | always_export_symbols=$always_export_symbols_CXX |
| 13957 | |
| 13958 | # The commands to list exported symbols. |
| 13959 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 13960 | |
| 13961 | # The commands to extract the exported symbol list from a shared archive. |
| 13962 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 13963 | |
| 13964 | # Symbols that should not be listed in the preloaded symbols. |
| 13965 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 13966 | |
| 13967 | # Symbols that must always be exported. |
| 13968 | include_expsyms=$lt_include_expsyms_CXX |
| 13969 | |
| 13970 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 13971 | |
| 13972 | __EOF__ |
| 13973 | |
| 13974 | |
| 13975 | else |
| 13976 | # If there is no Makefile yet, we rely on a make rule to execute |
| 13977 | # `config.status --recheck' to rerun these tests and create the |
| 13978 | # libtool script then. |
| 13979 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 13980 | if test -f "$ltmain_in"; then |
| 13981 | test -f Makefile && make "$ltmain" |
| 13982 | fi |
| 13983 | fi |
| 13984 | |
| 13985 | |
| 13986 | ac_ext=c |
| 13987 | ac_cpp='$CPP $CPPFLAGS' |
| 13988 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13989 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13990 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 13991 | |
| 13992 | CC=$lt_save_CC |
| 13993 | LDCXX=$LD |
| 13994 | LD=$lt_save_LD |
| 13995 | GCC=$lt_save_GCC |
| 13996 | with_gnu_ldcxx=$with_gnu_ld |
| 13997 | with_gnu_ld=$lt_save_with_gnu_ld |
| 13998 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 13999 | lt_cv_path_LD=$lt_save_path_LD |
| 14000 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 14001 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 14002 | |
| 14003 | else |
| 14004 | tagname="" |
| 14005 | fi |
| 14006 | ;; |
| 14007 | |
| 14008 | F77) |
| 14009 | if test -n "$F77" && test "X$F77" != "Xno"; then |
| 14010 | |
| 14011 | ac_ext=f |
| 14012 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 14013 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14014 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 14015 | |
| 14016 | |
| 14017 | archive_cmds_need_lc_F77=no |
| 14018 | allow_undefined_flag_F77= |
| 14019 | always_export_symbols_F77=no |
| 14020 | archive_expsym_cmds_F77= |
| 14021 | export_dynamic_flag_spec_F77= |
| 14022 | hardcode_direct_F77=no |
| 14023 | hardcode_libdir_flag_spec_F77= |
| 14024 | hardcode_libdir_flag_spec_ld_F77= |
| 14025 | hardcode_libdir_separator_F77= |
| 14026 | hardcode_minus_L_F77=no |
| 14027 | hardcode_automatic_F77=no |
| 14028 | module_cmds_F77= |
| 14029 | module_expsym_cmds_F77= |
| 14030 | link_all_deplibs_F77=unknown |
| 14031 | old_archive_cmds_F77=$old_archive_cmds |
| 14032 | no_undefined_flag_F77= |
| 14033 | whole_archive_flag_spec_F77= |
| 14034 | enable_shared_with_static_runtimes_F77=no |
| 14035 | |
| 14036 | # Source file extension for f77 test sources. |
| 14037 | ac_ext=f |
| 14038 | |
| 14039 | # Object file extension for compiled f77 test sources. |
| 14040 | objext=o |
| 14041 | objext_F77=$objext |
| 14042 | |
| 14043 | # Code to be used in simple compile tests |
| 14044 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
| 14045 | |
| 14046 | # Code to be used in simple link tests |
| 14047 | lt_simple_link_test_code=" program t\n end\n" |
| 14048 | |
| 14049 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 14050 | |
| 14051 | # If no C compiler was specified, use CC. |
| 14052 | LTCC=${LTCC-"$CC"} |
| 14053 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14054 | # If no C compiler flags were specified, use CFLAGS. |
| 14055 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 14056 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14057 | # Allow CC to be a program name with arguments. |
| 14058 | compiler=$CC |
| 14059 | |
| 14060 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14061 | # save warnings/boilerplate of simple test code |
| 14062 | ac_outfile=conftest.$ac_objext |
| 14063 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 14064 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14065 | _lt_compiler_boilerplate=`cat conftest.err` |
| 14066 | $rm conftest* |
| 14067 | |
| 14068 | ac_outfile=conftest.$ac_objext |
| 14069 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 14070 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14071 | _lt_linker_boilerplate=`cat conftest.err` |
| 14072 | $rm conftest* |
| 14073 | |
| 14074 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14075 | # Allow CC to be a program name with arguments. |
| 14076 | lt_save_CC="$CC" |
| 14077 | CC=${F77-"f77"} |
| 14078 | compiler=$CC |
| 14079 | compiler_F77=$CC |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14080 | for cc_temp in $compiler""; do |
| 14081 | case $cc_temp in |
| 14082 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 14083 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 14084 | \-*) ;; |
| 14085 | *) break;; |
| 14086 | esac |
| 14087 | done |
| 14088 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14089 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14090 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14091 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 14092 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
| 14093 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 14094 | echo "${ECHO_T}$can_build_shared" >&6; } |
| 14095 | |
| 14096 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 14097 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14098 | test "$can_build_shared" = "no" && enable_shared=no |
| 14099 | |
| 14100 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 14101 | # are all built from PIC. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14102 | case $host_os in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14103 | aix3*) |
| 14104 | test "$enable_shared" = yes && enable_static=no |
| 14105 | if test -n "$RANLIB"; then |
| 14106 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 14107 | postinstall_cmds='$RANLIB $lib' |
| 14108 | fi |
| 14109 | ;; |
| 14110 | aix4* | aix5*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14111 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 14112 | test "$enable_shared" = yes && enable_static=no |
| 14113 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14114 | ;; |
| 14115 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14116 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 14117 | echo "${ECHO_T}$enable_shared" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14118 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14119 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 14120 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14121 | # Make sure either enable_shared or enable_static is yes. |
| 14122 | test "$enable_shared" = yes || enable_static=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14123 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 14124 | echo "${ECHO_T}$enable_static" >&6; } |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 14125 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14126 | GCC_F77="$G77" |
| 14127 | LD_F77="$LD" |
| 14128 | |
| 14129 | lt_prog_compiler_wl_F77= |
| 14130 | lt_prog_compiler_pic_F77= |
| 14131 | lt_prog_compiler_static_F77= |
| 14132 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14133 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 14134 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14135 | |
| 14136 | if test "$GCC" = yes; then |
| 14137 | lt_prog_compiler_wl_F77='-Wl,' |
| 14138 | lt_prog_compiler_static_F77='-static' |
| 14139 | |
| 14140 | case $host_os in |
| 14141 | aix*) |
| 14142 | # All AIX code is PIC. |
| 14143 | if test "$host_cpu" = ia64; then |
| 14144 | # AIX 5 now supports IA64 processor |
| 14145 | lt_prog_compiler_static_F77='-Bstatic' |
| 14146 | fi |
| 14147 | ;; |
| 14148 | |
| 14149 | amigaos*) |
| 14150 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 14151 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 14152 | # like `-m68040'. |
| 14153 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
| 14154 | ;; |
| 14155 | |
| 14156 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 14157 | # PIC is the default for these OSes. |
| 14158 | ;; |
| 14159 | |
| 14160 | mingw* | pw32* | os2*) |
| 14161 | # This hack is so that the source file can tell whether it is being |
| 14162 | # built for inclusion in a dll (and should export symbols for example). |
| 14163 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 14164 | ;; |
| 14165 | |
| 14166 | darwin* | rhapsody*) |
| 14167 | # PIC is the default on this platform |
| 14168 | # Common symbols not allowed in MH_DYLIB files |
| 14169 | lt_prog_compiler_pic_F77='-fno-common' |
| 14170 | ;; |
| 14171 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14172 | interix3*) |
| 14173 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 14174 | # Instead, we relocate shared libraries at runtime. |
| 14175 | ;; |
| 14176 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14177 | msdosdjgpp*) |
| 14178 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 14179 | # on systems that don't support them. |
| 14180 | lt_prog_compiler_can_build_shared_F77=no |
| 14181 | enable_shared=no |
| 14182 | ;; |
| 14183 | |
| 14184 | sysv4*MP*) |
| 14185 | if test -d /usr/nec; then |
| 14186 | lt_prog_compiler_pic_F77=-Kconform_pic |
| 14187 | fi |
| 14188 | ;; |
| 14189 | |
| 14190 | hpux*) |
| 14191 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14192 | # not for PA HP-UX. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14193 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14194 | hppa*64*|ia64*) |
| 14195 | # +Z the default |
| 14196 | ;; |
| 14197 | *) |
| 14198 | lt_prog_compiler_pic_F77='-fPIC' |
| 14199 | ;; |
| 14200 | esac |
| 14201 | ;; |
| 14202 | |
| 14203 | *) |
| 14204 | lt_prog_compiler_pic_F77='-fPIC' |
| 14205 | ;; |
| 14206 | esac |
| 14207 | else |
| 14208 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 14209 | case $host_os in |
| 14210 | aix*) |
| 14211 | lt_prog_compiler_wl_F77='-Wl,' |
| 14212 | if test "$host_cpu" = ia64; then |
| 14213 | # AIX 5 now supports IA64 processor |
| 14214 | lt_prog_compiler_static_F77='-Bstatic' |
| 14215 | else |
| 14216 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
| 14217 | fi |
| 14218 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14219 | darwin*) |
| 14220 | # PIC is the default on this platform |
| 14221 | # Common symbols not allowed in MH_DYLIB files |
| 14222 | case $cc_basename in |
| 14223 | xlc*) |
| 14224 | lt_prog_compiler_pic_F77='-qnocommon' |
| 14225 | lt_prog_compiler_wl_F77='-Wl,' |
| 14226 | ;; |
| 14227 | esac |
| 14228 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14229 | |
| 14230 | mingw* | pw32* | os2*) |
| 14231 | # This hack is so that the source file can tell whether it is being |
| 14232 | # built for inclusion in a dll (and should export symbols for example). |
| 14233 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 14234 | ;; |
| 14235 | |
| 14236 | hpux9* | hpux10* | hpux11*) |
| 14237 | lt_prog_compiler_wl_F77='-Wl,' |
| 14238 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14239 | # not for PA HP-UX. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14240 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14241 | hppa*64*|ia64*) |
| 14242 | # +Z the default |
| 14243 | ;; |
| 14244 | *) |
| 14245 | lt_prog_compiler_pic_F77='+Z' |
| 14246 | ;; |
| 14247 | esac |
| 14248 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 14249 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
| 14250 | ;; |
| 14251 | |
| 14252 | irix5* | irix6* | nonstopux*) |
| 14253 | lt_prog_compiler_wl_F77='-Wl,' |
| 14254 | # PIC (with -KPIC) is the default. |
| 14255 | lt_prog_compiler_static_F77='-non_shared' |
| 14256 | ;; |
| 14257 | |
| 14258 | newsos6) |
| 14259 | lt_prog_compiler_pic_F77='-KPIC' |
| 14260 | lt_prog_compiler_static_F77='-Bstatic' |
| 14261 | ;; |
| 14262 | |
| 14263 | linux*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14264 | case $cc_basename in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14265 | icc* | ecc*) |
| 14266 | lt_prog_compiler_wl_F77='-Wl,' |
| 14267 | lt_prog_compiler_pic_F77='-KPIC' |
| 14268 | lt_prog_compiler_static_F77='-static' |
| 14269 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14270 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 14271 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 14272 | # which looks to be a dead project) |
| 14273 | lt_prog_compiler_wl_F77='-Wl,' |
| 14274 | lt_prog_compiler_pic_F77='-fpic' |
| 14275 | lt_prog_compiler_static_F77='-Bstatic' |
| 14276 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14277 | ccc*) |
| 14278 | lt_prog_compiler_wl_F77='-Wl,' |
| 14279 | # All Alpha code is PIC. |
| 14280 | lt_prog_compiler_static_F77='-non_shared' |
| 14281 | ;; |
| 14282 | esac |
| 14283 | ;; |
| 14284 | |
| 14285 | osf3* | osf4* | osf5*) |
| 14286 | lt_prog_compiler_wl_F77='-Wl,' |
| 14287 | # All OSF/1 code is PIC. |
| 14288 | lt_prog_compiler_static_F77='-non_shared' |
| 14289 | ;; |
| 14290 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14291 | solaris*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14292 | lt_prog_compiler_pic_F77='-KPIC' |
| 14293 | lt_prog_compiler_static_F77='-Bstatic' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14294 | case $cc_basename in |
| 14295 | f77* | f90* | f95*) |
| 14296 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
| 14297 | *) |
| 14298 | lt_prog_compiler_wl_F77='-Wl,';; |
| 14299 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14300 | ;; |
| 14301 | |
| 14302 | sunos4*) |
| 14303 | lt_prog_compiler_wl_F77='-Qoption ld ' |
| 14304 | lt_prog_compiler_pic_F77='-PIC' |
| 14305 | lt_prog_compiler_static_F77='-Bstatic' |
| 14306 | ;; |
| 14307 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14308 | sysv4 | sysv4.2uw2* | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14309 | lt_prog_compiler_wl_F77='-Wl,' |
| 14310 | lt_prog_compiler_pic_F77='-KPIC' |
| 14311 | lt_prog_compiler_static_F77='-Bstatic' |
| 14312 | ;; |
| 14313 | |
| 14314 | sysv4*MP*) |
| 14315 | if test -d /usr/nec ;then |
| 14316 | lt_prog_compiler_pic_F77='-Kconform_pic' |
| 14317 | lt_prog_compiler_static_F77='-Bstatic' |
| 14318 | fi |
| 14319 | ;; |
| 14320 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14321 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 14322 | lt_prog_compiler_wl_F77='-Wl,' |
| 14323 | lt_prog_compiler_pic_F77='-KPIC' |
| 14324 | lt_prog_compiler_static_F77='-Bstatic' |
| 14325 | ;; |
| 14326 | |
| 14327 | unicos*) |
| 14328 | lt_prog_compiler_wl_F77='-Wl,' |
| 14329 | lt_prog_compiler_can_build_shared_F77=no |
| 14330 | ;; |
| 14331 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14332 | uts4*) |
| 14333 | lt_prog_compiler_pic_F77='-pic' |
| 14334 | lt_prog_compiler_static_F77='-Bstatic' |
| 14335 | ;; |
| 14336 | |
| 14337 | *) |
| 14338 | lt_prog_compiler_can_build_shared_F77=no |
| 14339 | ;; |
| 14340 | esac |
| 14341 | fi |
| 14342 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14343 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
| 14344 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14345 | |
| 14346 | # |
| 14347 | # Check to make sure the PIC flag actually works. |
| 14348 | # |
| 14349 | if test -n "$lt_prog_compiler_pic_F77"; then |
| 14350 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14351 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
| 14352 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14353 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
| 14354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14355 | else |
| 14356 | lt_prog_compiler_pic_works_F77=no |
| 14357 | ac_outfile=conftest.$ac_objext |
| 14358 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14359 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
| 14360 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14361 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14362 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14363 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14364 | # The option is referenced via a variable to avoid confusing sed. |
| 14365 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14366 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14367 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14368 | -e 's:$: $lt_compiler_flag:'` |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 14369 | (eval echo "\"\$as_me:14369: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14370 | (eval "$lt_compile" 2>conftest.err) |
| 14371 | ac_status=$? |
| 14372 | cat conftest.err >&5 |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 14373 | echo "$as_me:14373: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14374 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14375 | # The compiler can only warn and ignore the option if not recognized |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14376 | # So say no if there are warnings other than the usual output. |
| 14377 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 14378 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14379 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14380 | lt_prog_compiler_pic_works_F77=yes |
| 14381 | fi |
| 14382 | fi |
| 14383 | $rm conftest* |
| 14384 | |
| 14385 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14386 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
| 14387 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14388 | |
| 14389 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
| 14390 | case $lt_prog_compiler_pic_F77 in |
| 14391 | "" | " "*) ;; |
| 14392 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
| 14393 | esac |
| 14394 | else |
| 14395 | lt_prog_compiler_pic_F77= |
| 14396 | lt_prog_compiler_can_build_shared_F77=no |
| 14397 | fi |
| 14398 | |
| 14399 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14400 | case $host_os in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14401 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 14402 | *djgpp*) |
| 14403 | lt_prog_compiler_pic_F77= |
| 14404 | ;; |
| 14405 | *) |
| 14406 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
| 14407 | ;; |
| 14408 | esac |
| 14409 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14410 | # |
| 14411 | # Check to make sure the static flag actually works. |
| 14412 | # |
| 14413 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
| 14414 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 14415 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 14416 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
| 14417 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14418 | else |
| 14419 | lt_prog_compiler_static_works_F77=no |
| 14420 | save_LDFLAGS="$LDFLAGS" |
| 14421 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 14422 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 14423 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 14424 | # The linker can only warn and ignore the option if not recognized |
| 14425 | # So say no if there are warnings |
| 14426 | if test -s conftest.err; then |
| 14427 | # Append any errors to the config.log. |
| 14428 | cat conftest.err 1>&5 |
| 14429 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 14430 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14431 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 14432 | lt_prog_compiler_static_works_F77=yes |
| 14433 | fi |
| 14434 | else |
| 14435 | lt_prog_compiler_static_works_F77=yes |
| 14436 | fi |
| 14437 | fi |
| 14438 | $rm conftest* |
| 14439 | LDFLAGS="$save_LDFLAGS" |
| 14440 | |
| 14441 | fi |
| 14442 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
| 14443 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } |
| 14444 | |
| 14445 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
| 14446 | : |
| 14447 | else |
| 14448 | lt_prog_compiler_static_F77= |
| 14449 | fi |
| 14450 | |
| 14451 | |
| 14452 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 14453 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14454 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
| 14455 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14456 | else |
| 14457 | lt_cv_prog_compiler_c_o_F77=no |
| 14458 | $rm -r conftest 2>/dev/null |
| 14459 | mkdir conftest |
| 14460 | cd conftest |
| 14461 | mkdir out |
| 14462 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14463 | |
| 14464 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 14465 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14466 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14467 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14468 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14469 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14470 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14471 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14472 | -e 's:$: $lt_compiler_flag:'` |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 14473 | (eval echo "\"\$as_me:14473: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14474 | (eval "$lt_compile" 2>out/conftest.err) |
| 14475 | ac_status=$? |
| 14476 | cat out/conftest.err >&5 |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 14477 | echo "$as_me:14477: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14478 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 14479 | then |
| 14480 | # The compiler can only warn and ignore the option if not recognized |
| 14481 | # So say no if there are warnings |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14482 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 14483 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 14484 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14485 | lt_cv_prog_compiler_c_o_F77=yes |
| 14486 | fi |
| 14487 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14488 | chmod u+w . 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14489 | $rm conftest* |
| 14490 | # SGI C++ compiler will create directory out/ii_files/ for |
| 14491 | # template instantiation |
| 14492 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 14493 | $rm out/* && rmdir out |
| 14494 | cd .. |
| 14495 | rmdir conftest |
| 14496 | $rm conftest* |
| 14497 | |
| 14498 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14499 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
| 14500 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14501 | |
| 14502 | |
| 14503 | hard_links="nottested" |
| 14504 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
| 14505 | # do not overwrite the value of need_locks provided by the user |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14506 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 14507 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14508 | hard_links=yes |
| 14509 | $rm conftest* |
| 14510 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 14511 | touch conftest.a |
| 14512 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 14513 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14514 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 14515 | echo "${ECHO_T}$hard_links" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14516 | if test "$hard_links" = no; then |
| 14517 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 14518 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 14519 | need_locks=warn |
| 14520 | fi |
| 14521 | else |
| 14522 | need_locks=no |
| 14523 | fi |
| 14524 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14525 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 14526 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14527 | |
| 14528 | runpath_var= |
| 14529 | allow_undefined_flag_F77= |
| 14530 | enable_shared_with_static_runtimes_F77=no |
| 14531 | archive_cmds_F77= |
| 14532 | archive_expsym_cmds_F77= |
| 14533 | old_archive_From_new_cmds_F77= |
| 14534 | old_archive_from_expsyms_cmds_F77= |
| 14535 | export_dynamic_flag_spec_F77= |
| 14536 | whole_archive_flag_spec_F77= |
| 14537 | thread_safe_flag_spec_F77= |
| 14538 | hardcode_libdir_flag_spec_F77= |
| 14539 | hardcode_libdir_flag_spec_ld_F77= |
| 14540 | hardcode_libdir_separator_F77= |
| 14541 | hardcode_direct_F77=no |
| 14542 | hardcode_minus_L_F77=no |
| 14543 | hardcode_shlibpath_var_F77=unsupported |
| 14544 | link_all_deplibs_F77=unknown |
| 14545 | hardcode_automatic_F77=no |
| 14546 | module_cmds_F77= |
| 14547 | module_expsym_cmds_F77= |
| 14548 | always_export_symbols_F77=no |
| 14549 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 14550 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 14551 | # included in the symbol list |
| 14552 | include_expsyms_F77= |
| 14553 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 14554 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 14555 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 14556 | # as well as any symbol that contains `d'. |
| 14557 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
| 14558 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 14559 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 14560 | # the symbol is explicitly referenced. Since portable code cannot |
| 14561 | # rely on this symbol name, it's probably fine to never include it in |
| 14562 | # preloaded symbol tables. |
| 14563 | extract_expsyms_cmds= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14564 | # Just being paranoid about ensuring that cc_basename is set. |
| 14565 | for cc_temp in $compiler""; do |
| 14566 | case $cc_temp in |
| 14567 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 14568 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 14569 | \-*) ;; |
| 14570 | *) break;; |
| 14571 | esac |
| 14572 | done |
| 14573 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14574 | |
| 14575 | case $host_os in |
| 14576 | cygwin* | mingw* | pw32*) |
| 14577 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 14578 | # When not using gcc, we currently assume that we are using |
| 14579 | # Microsoft Visual C++. |
| 14580 | if test "$GCC" != yes; then |
| 14581 | with_gnu_ld=no |
| 14582 | fi |
| 14583 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14584 | interix*) |
| 14585 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 14586 | with_gnu_ld=yes |
| 14587 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14588 | openbsd*) |
| 14589 | with_gnu_ld=no |
| 14590 | ;; |
| 14591 | esac |
| 14592 | |
| 14593 | ld_shlibs_F77=yes |
| 14594 | if test "$with_gnu_ld" = yes; then |
| 14595 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 14596 | wlarc='${wl}' |
| 14597 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14598 | # Set some defaults for GNU ld with shared library support. These |
| 14599 | # are reset later if shared libraries are not supported. Putting them |
| 14600 | # here allows them to be overridden if necessary. |
| 14601 | runpath_var=LD_RUN_PATH |
| 14602 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
| 14603 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
| 14604 | # ancient GNU ld didn't support --whole-archive et. al. |
| 14605 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 14606 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 14607 | else |
| 14608 | whole_archive_flag_spec_F77= |
| 14609 | fi |
| 14610 | supports_anon_versioning=no |
| 14611 | case `$LD -v 2>/dev/null` in |
| 14612 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 14613 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 14614 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 14615 | *\ 2.11.*) ;; # other 2.11 versions |
| 14616 | *) supports_anon_versioning=yes ;; |
| 14617 | esac |
| 14618 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14619 | # See if GNU ld supports shared libraries. |
| 14620 | case $host_os in |
| 14621 | aix3* | aix4* | aix5*) |
| 14622 | # On AIX/PPC, the GNU linker is very broken |
| 14623 | if test "$host_cpu" != ia64; then |
| 14624 | ld_shlibs_F77=no |
| 14625 | cat <<EOF 1>&2 |
| 14626 | |
| 14627 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 14628 | *** to be unable to reliably create shared libraries on AIX. |
| 14629 | *** Therefore, libtool is disabling shared libraries support. If you |
| 14630 | *** really care for shared libraries, you may want to modify your PATH |
| 14631 | *** so that a non-GNU linker is found, and then restart. |
| 14632 | |
| 14633 | EOF |
| 14634 | fi |
| 14635 | ;; |
| 14636 | |
| 14637 | amigaos*) |
| 14638 | 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)' |
| 14639 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14640 | hardcode_minus_L_F77=yes |
| 14641 | |
| 14642 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 14643 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 14644 | # to version 4, is to share data among multiple programs linked |
| 14645 | # with the same dynamic library. Since this doesn't match the |
| 14646 | # behavior of shared libraries on other platforms, we can't use |
| 14647 | # them. |
| 14648 | ld_shlibs_F77=no |
| 14649 | ;; |
| 14650 | |
| 14651 | beos*) |
| 14652 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14653 | allow_undefined_flag_F77=unsupported |
| 14654 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 14655 | # support --undefined. This deserves some investigation. FIXME |
| 14656 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14657 | else |
| 14658 | ld_shlibs_F77=no |
| 14659 | fi |
| 14660 | ;; |
| 14661 | |
| 14662 | cygwin* | mingw* | pw32*) |
| 14663 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
| 14664 | # as there is no search path for DLLs. |
| 14665 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14666 | allow_undefined_flag_F77=unsupported |
| 14667 | always_export_symbols_F77=no |
| 14668 | enable_shared_with_static_runtimes_F77=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14669 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14670 | |
| 14671 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14672 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14673 | # If the export-symbols file already is a .def file (1st line |
| 14674 | # is EXPORTS), use it as is; otherwise, prepend... |
| 14675 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 14676 | cp $export_symbols $output_objdir/$soname.def; |
| 14677 | else |
| 14678 | echo EXPORTS > $output_objdir/$soname.def; |
| 14679 | cat $export_symbols >> $output_objdir/$soname.def; |
| 14680 | fi~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14681 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14682 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14683 | ld_shlibs_F77=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14684 | fi |
| 14685 | ;; |
| 14686 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14687 | interix3*) |
| 14688 | hardcode_direct_F77=no |
| 14689 | hardcode_shlibpath_var_F77=no |
| 14690 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 14691 | export_dynamic_flag_spec_F77='${wl}-E' |
| 14692 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 14693 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 14694 | # default) and relocated if they conflict, which is a slow very memory |
| 14695 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 14696 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 14697 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 14698 | 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' |
| 14699 | 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' |
| 14700 | ;; |
| 14701 | |
| 14702 | linux*) |
| 14703 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14704 | tmp_addflag= |
| 14705 | case $cc_basename,$host_cpu in |
| 14706 | pgcc*) # Portland Group C compiler |
| 14707 | 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' |
| 14708 | tmp_addflag=' $pic_flag' |
| 14709 | ;; |
| 14710 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 14711 | 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' |
| 14712 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 14713 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 14714 | tmp_addflag=' -i_dynamic' ;; |
| 14715 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 14716 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 14717 | ifc* | ifort*) # Intel Fortran compiler |
| 14718 | tmp_addflag=' -nofor_main' ;; |
| 14719 | esac |
| 14720 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14721 | |
| 14722 | if test $supports_anon_versioning = yes; then |
| 14723 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 14724 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 14725 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 14726 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 14727 | fi |
| 14728 | else |
| 14729 | ld_shlibs_F77=no |
| 14730 | fi |
| 14731 | ;; |
| 14732 | |
| 14733 | netbsd*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14734 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 14735 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 14736 | wlarc= |
| 14737 | else |
| 14738 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14739 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 14740 | fi |
| 14741 | ;; |
| 14742 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14743 | solaris*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14744 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 14745 | ld_shlibs_F77=no |
| 14746 | cat <<EOF 1>&2 |
| 14747 | |
| 14748 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 14749 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 14750 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 14751 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 14752 | *** your PATH or compiler configuration so that the native linker is |
| 14753 | *** used, and then restart. |
| 14754 | |
| 14755 | EOF |
| 14756 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14757 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14758 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 14759 | else |
| 14760 | ld_shlibs_F77=no |
| 14761 | fi |
| 14762 | ;; |
| 14763 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14764 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 14765 | case `$LD -v 2>&1` in |
| 14766 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 14767 | ld_shlibs_F77=no |
| 14768 | cat <<_LT_EOF 1>&2 |
| 14769 | |
| 14770 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 14771 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 14772 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 14773 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 14774 | *** your PATH or compiler configuration so that the native linker is |
| 14775 | *** used, and then restart. |
| 14776 | |
| 14777 | _LT_EOF |
| 14778 | ;; |
| 14779 | *) |
| 14780 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14781 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 14782 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 14783 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 14784 | else |
| 14785 | ld_shlibs_F77=no |
| 14786 | fi |
| 14787 | ;; |
| 14788 | esac |
| 14789 | ;; |
| 14790 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14791 | sunos4*) |
| 14792 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 14793 | wlarc= |
| 14794 | hardcode_direct_F77=yes |
| 14795 | hardcode_shlibpath_var_F77=no |
| 14796 | ;; |
| 14797 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14798 | *) |
| 14799 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14800 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14801 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 14802 | else |
| 14803 | ld_shlibs_F77=no |
| 14804 | fi |
| 14805 | ;; |
| 14806 | esac |
| 14807 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14808 | if test "$ld_shlibs_F77" = no; then |
| 14809 | runpath_var= |
| 14810 | hardcode_libdir_flag_spec_F77= |
| 14811 | export_dynamic_flag_spec_F77= |
| 14812 | whole_archive_flag_spec_F77= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14813 | fi |
| 14814 | else |
| 14815 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 14816 | case $host_os in |
| 14817 | aix3*) |
| 14818 | allow_undefined_flag_F77=unsupported |
| 14819 | always_export_symbols_F77=yes |
| 14820 | 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' |
| 14821 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 14822 | # are no directories specified by -L. |
| 14823 | hardcode_minus_L_F77=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14824 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14825 | # Neither direct hardcoding nor static linking is supported with a |
| 14826 | # broken collect2. |
| 14827 | hardcode_direct_F77=unsupported |
| 14828 | fi |
| 14829 | ;; |
| 14830 | |
| 14831 | aix4* | aix5*) |
| 14832 | if test "$host_cpu" = ia64; then |
| 14833 | # On IA64, the linker does run time linking by default, so we don't |
| 14834 | # have to do anything special. |
| 14835 | aix_use_runtimelinking=no |
| 14836 | exp_sym_flag='-Bexport' |
| 14837 | no_entry_flag="" |
| 14838 | else |
| 14839 | # If we're using GNU nm, then we don't want the "-C" option. |
| 14840 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 14841 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 14842 | 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' |
| 14843 | else |
| 14844 | 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' |
| 14845 | fi |
| 14846 | aix_use_runtimelinking=no |
| 14847 | |
| 14848 | # Test if we are trying to use run time linking or normal |
| 14849 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 14850 | # need to do runtime linking. |
| 14851 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 14852 | for ld_flag in $LDFLAGS; do |
| 14853 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 14854 | aix_use_runtimelinking=yes |
| 14855 | break |
| 14856 | fi |
| 14857 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14858 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14859 | esac |
| 14860 | |
| 14861 | exp_sym_flag='-bexport' |
| 14862 | no_entry_flag='-bnoentry' |
| 14863 | fi |
| 14864 | |
| 14865 | # When large executables or shared objects are built, AIX ld can |
| 14866 | # have problems creating the table of contents. If linking a library |
| 14867 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 14868 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 14869 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 14870 | |
| 14871 | archive_cmds_F77='' |
| 14872 | hardcode_direct_F77=yes |
| 14873 | hardcode_libdir_separator_F77=':' |
| 14874 | link_all_deplibs_F77=yes |
| 14875 | |
| 14876 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14877 | case $host_os in aix4.[012]|aix4.[012].*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14878 | # We only want to do this on AIX 4.2 and lower, the check |
| 14879 | # below for broken collect2 doesn't work under 4.3+ |
| 14880 | collect2name=`${CC} -print-prog-name=collect2` |
| 14881 | if test -f "$collect2name" && \ |
| 14882 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 14883 | then |
| 14884 | # We have reworked collect2 |
| 14885 | hardcode_direct_F77=yes |
| 14886 | else |
| 14887 | # We have old collect2 |
| 14888 | hardcode_direct_F77=unsupported |
| 14889 | # It fails to find uninstalled libraries when the uninstalled |
| 14890 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 14891 | # to unsupported forces relinking |
| 14892 | hardcode_minus_L_F77=yes |
| 14893 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14894 | hardcode_libdir_separator_F77= |
| 14895 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14896 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14897 | esac |
| 14898 | shared_flag='-shared' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14899 | if test "$aix_use_runtimelinking" = yes; then |
| 14900 | shared_flag="$shared_flag "'${wl}-G' |
| 14901 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14902 | else |
| 14903 | # not using gcc |
| 14904 | if test "$host_cpu" = ia64; then |
| 14905 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 14906 | # chokes on -Wl,-G. The following line is correct: |
| 14907 | shared_flag='-G' |
| 14908 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14909 | if test "$aix_use_runtimelinking" = yes; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14910 | shared_flag='${wl}-G' |
| 14911 | else |
| 14912 | shared_flag='${wl}-bM:SRE' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14913 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14914 | fi |
| 14915 | fi |
| 14916 | |
| 14917 | # It seems that -bexpall does not export symbols beginning with |
| 14918 | # underscore (_), so it is better to generate a list of symbols to export. |
| 14919 | always_export_symbols_F77=yes |
| 14920 | if test "$aix_use_runtimelinking" = yes; then |
| 14921 | # Warning - without using the other runtime loading flags (-brtl), |
| 14922 | # -berok will link without error, but may produce a broken library. |
| 14923 | allow_undefined_flag_F77='-berok' |
| 14924 | # Determine the default libpath from the value encoded in an empty executable. |
| 14925 | cat >conftest.$ac_ext <<_ACEOF |
| 14926 | program main |
| 14927 | |
| 14928 | end |
| 14929 | _ACEOF |
| 14930 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14931 | if { (ac_try="$ac_link" |
| 14932 | case "(($ac_try" in |
| 14933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14934 | *) ac_try_echo=$ac_try;; |
| 14935 | esac |
| 14936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14937 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14938 | ac_status=$? |
| 14939 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14940 | rm -f conftest.er1 |
| 14941 | cat conftest.err >&5 |
| 14942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14943 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14944 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 14945 | { (case "(($ac_try" in |
| 14946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14947 | *) ac_try_echo=$ac_try;; |
| 14948 | esac |
| 14949 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14950 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14951 | ac_status=$? |
| 14952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14953 | (exit $ac_status); }; } && |
| 14954 | { ac_try='test -s conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14955 | { (case "(($ac_try" in |
| 14956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14957 | *) ac_try_echo=$ac_try;; |
| 14958 | esac |
| 14959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14960 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14961 | ac_status=$? |
| 14962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14963 | (exit $ac_status); }; }; then |
| 14964 | |
| 14965 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 14966 | }'` |
| 14967 | # Check for a 64-bit object if we didn't find anything. |
| 14968 | 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; } |
| 14969 | }'`; fi |
| 14970 | else |
| 14971 | echo "$as_me: failed program was:" >&5 |
| 14972 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14973 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14974 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14975 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14976 | |
| 14977 | rm -f core conftest.err conftest.$ac_objext \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14978 | conftest$ac_exeext conftest.$ac_ext |
| 14979 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 14980 | |
| 14981 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14982 | 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" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14983 | else |
| 14984 | if test "$host_cpu" = ia64; then |
| 14985 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
| 14986 | allow_undefined_flag_F77="-z nodefs" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14987 | 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" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14988 | else |
| 14989 | # Determine the default libpath from the value encoded in an empty executable. |
| 14990 | cat >conftest.$ac_ext <<_ACEOF |
| 14991 | program main |
| 14992 | |
| 14993 | end |
| 14994 | _ACEOF |
| 14995 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14996 | if { (ac_try="$ac_link" |
| 14997 | case "(($ac_try" in |
| 14998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14999 | *) ac_try_echo=$ac_try;; |
| 15000 | esac |
| 15001 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15002 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15003 | ac_status=$? |
| 15004 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15005 | rm -f conftest.er1 |
| 15006 | cat conftest.err >&5 |
| 15007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15008 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15009 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 15010 | { (case "(($ac_try" in |
| 15011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15012 | *) ac_try_echo=$ac_try;; |
| 15013 | esac |
| 15014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15015 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15016 | ac_status=$? |
| 15017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15018 | (exit $ac_status); }; } && |
| 15019 | { ac_try='test -s conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15020 | { (case "(($ac_try" in |
| 15021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15022 | *) ac_try_echo=$ac_try;; |
| 15023 | esac |
| 15024 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15025 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15026 | ac_status=$? |
| 15027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15028 | (exit $ac_status); }; }; then |
| 15029 | |
| 15030 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15031 | }'` |
| 15032 | # Check for a 64-bit object if we didn't find anything. |
| 15033 | 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; } |
| 15034 | }'`; fi |
| 15035 | else |
| 15036 | echo "$as_me: failed program was:" >&5 |
| 15037 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15038 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15039 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15040 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15041 | |
| 15042 | rm -f core conftest.err conftest.$ac_objext \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15043 | conftest$ac_exeext conftest.$ac_ext |
| 15044 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 15045 | |
| 15046 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 15047 | # Warning - without using the other run time loading flags, |
| 15048 | # -berok will link without error, but may produce a broken library. |
| 15049 | no_undefined_flag_F77=' ${wl}-bernotok' |
| 15050 | allow_undefined_flag_F77=' ${wl}-berok' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15051 | # Exported symbols can be pulled into shared objects from archives |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15052 | whole_archive_flag_spec_F77='$convenience' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15053 | archive_cmds_need_lc_F77=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15054 | # This is similar to how AIX traditionally builds its shared libraries. |
| 15055 | 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' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15056 | fi |
| 15057 | fi |
| 15058 | ;; |
| 15059 | |
| 15060 | amigaos*) |
| 15061 | 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)' |
| 15062 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 15063 | hardcode_minus_L_F77=yes |
| 15064 | # see comment about different semantics on the GNU ld section |
| 15065 | ld_shlibs_F77=no |
| 15066 | ;; |
| 15067 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15068 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15069 | export_dynamic_flag_spec_F77=-rdynamic |
| 15070 | ;; |
| 15071 | |
| 15072 | cygwin* | mingw* | pw32*) |
| 15073 | # When not using gcc, we currently assume that we are using |
| 15074 | # Microsoft Visual C++. |
| 15075 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 15076 | # no search path for DLLs. |
| 15077 | hardcode_libdir_flag_spec_F77=' ' |
| 15078 | allow_undefined_flag_F77=unsupported |
| 15079 | # Tell ltmain to make .lib files, not .a files. |
| 15080 | libext=lib |
| 15081 | # Tell ltmain to make .dll files, not .so files. |
| 15082 | shrext_cmds=".dll" |
| 15083 | # FIXME: Setting linknames here is a bad hack. |
| 15084 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 15085 | # The linker will automatically build a .lib file if we build a DLL. |
| 15086 | old_archive_From_new_cmds_F77='true' |
| 15087 | # FIXME: Should let the user specify the lib program. |
| 15088 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15089 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15090 | enable_shared_with_static_runtimes_F77=yes |
| 15091 | ;; |
| 15092 | |
| 15093 | darwin* | rhapsody*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15094 | case $host_os in |
| 15095 | rhapsody* | darwin1.[012]) |
| 15096 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
| 15097 | ;; |
| 15098 | *) # Darwin 1.3 on |
| 15099 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 15100 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 15101 | else |
| 15102 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 15103 | 10.[012]) |
| 15104 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 15105 | ;; |
| 15106 | 10.*) |
| 15107 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
| 15108 | ;; |
| 15109 | esac |
| 15110 | fi |
| 15111 | ;; |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 15112 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15113 | archive_cmds_need_lc_F77=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15114 | hardcode_direct_F77=no |
| 15115 | hardcode_automatic_F77=yes |
| 15116 | hardcode_shlibpath_var_F77=unsupported |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15117 | whole_archive_flag_spec_F77='' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15118 | link_all_deplibs_F77=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15119 | if test "$GCC" = yes ; then |
| 15120 | output_verbose_link_cmd='echo' |
| 15121 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 15122 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 15123 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 15124 | 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}' |
| 15125 | 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}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15126 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15127 | case $cc_basename in |
| 15128 | xlc*) |
| 15129 | output_verbose_link_cmd='echo' |
| 15130 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 15131 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 15132 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 15133 | 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}' |
| 15134 | 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}' |
| 15135 | ;; |
| 15136 | *) |
| 15137 | ld_shlibs_F77=no |
| 15138 | ;; |
| 15139 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15140 | fi |
| 15141 | ;; |
| 15142 | |
| 15143 | dgux*) |
| 15144 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15145 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 15146 | hardcode_shlibpath_var_F77=no |
| 15147 | ;; |
| 15148 | |
| 15149 | freebsd1*) |
| 15150 | ld_shlibs_F77=no |
| 15151 | ;; |
| 15152 | |
| 15153 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 15154 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 15155 | # does not break anything, and helps significantly (at the cost of a little |
| 15156 | # extra space). |
| 15157 | freebsd2.2*) |
| 15158 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 15159 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 15160 | hardcode_direct_F77=yes |
| 15161 | hardcode_shlibpath_var_F77=no |
| 15162 | ;; |
| 15163 | |
| 15164 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 15165 | freebsd2*) |
| 15166 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15167 | hardcode_direct_F77=yes |
| 15168 | hardcode_minus_L_F77=yes |
| 15169 | hardcode_shlibpath_var_F77=no |
| 15170 | ;; |
| 15171 | |
| 15172 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15173 | freebsd* | kfreebsd*-gnu | dragonfly*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15174 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 15175 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 15176 | hardcode_direct_F77=yes |
| 15177 | hardcode_shlibpath_var_F77=no |
| 15178 | ;; |
| 15179 | |
| 15180 | hpux9*) |
| 15181 | if test "$GCC" = yes; then |
| 15182 | 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' |
| 15183 | else |
| 15184 | 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' |
| 15185 | fi |
| 15186 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 15187 | hardcode_libdir_separator_F77=: |
| 15188 | hardcode_direct_F77=yes |
| 15189 | |
| 15190 | # hardcode_minus_L: Not really in the search PATH, |
| 15191 | # but as the default location of the library. |
| 15192 | hardcode_minus_L_F77=yes |
| 15193 | export_dynamic_flag_spec_F77='${wl}-E' |
| 15194 | ;; |
| 15195 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15196 | hpux10*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15197 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15198 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 15199 | else |
| 15200 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 15201 | fi |
| 15202 | if test "$with_gnu_ld" = no; then |
| 15203 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 15204 | hardcode_libdir_separator_F77=: |
| 15205 | |
| 15206 | hardcode_direct_F77=yes |
| 15207 | export_dynamic_flag_spec_F77='${wl}-E' |
| 15208 | |
| 15209 | # hardcode_minus_L: Not really in the search PATH, |
| 15210 | # but as the default location of the library. |
| 15211 | hardcode_minus_L_F77=yes |
| 15212 | fi |
| 15213 | ;; |
| 15214 | |
| 15215 | hpux11*) |
| 15216 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 15217 | case $host_cpu in |
| 15218 | hppa*64*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15219 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15220 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15221 | ia64*) |
| 15222 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 15223 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15224 | *) |
| 15225 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 15226 | ;; |
| 15227 | esac |
| 15228 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15229 | case $host_cpu in |
| 15230 | hppa*64*) |
| 15231 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15232 | ;; |
| 15233 | ia64*) |
| 15234 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15235 | ;; |
| 15236 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15237 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15238 | ;; |
| 15239 | esac |
| 15240 | fi |
| 15241 | if test "$with_gnu_ld" = no; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15242 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 15243 | hardcode_libdir_separator_F77=: |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 15244 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15245 | case $host_cpu in |
| 15246 | hppa*64*|ia64*) |
| 15247 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
| 15248 | hardcode_direct_F77=no |
| 15249 | hardcode_shlibpath_var_F77=no |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 15250 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15251 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15252 | hardcode_direct_F77=yes |
| 15253 | export_dynamic_flag_spec_F77='${wl}-E' |
| 15254 | |
| 15255 | # hardcode_minus_L: Not really in the search PATH, |
| 15256 | # but as the default location of the library. |
| 15257 | hardcode_minus_L_F77=yes |
| 15258 | ;; |
| 15259 | esac |
| 15260 | fi |
| 15261 | ;; |
| 15262 | |
| 15263 | irix5* | irix6* | nonstopux*) |
| 15264 | if test "$GCC" = yes; then |
| 15265 | 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' |
| 15266 | else |
| 15267 | 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' |
| 15268 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
| 15269 | fi |
| 15270 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 15271 | hardcode_libdir_separator_F77=: |
| 15272 | link_all_deplibs_F77=yes |
| 15273 | ;; |
| 15274 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15275 | netbsd*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15276 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 15277 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 15278 | else |
| 15279 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 15280 | fi |
| 15281 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 15282 | hardcode_direct_F77=yes |
| 15283 | hardcode_shlibpath_var_F77=no |
| 15284 | ;; |
| 15285 | |
| 15286 | newsos6) |
| 15287 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15288 | hardcode_direct_F77=yes |
| 15289 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 15290 | hardcode_libdir_separator_F77=: |
| 15291 | hardcode_shlibpath_var_F77=no |
| 15292 | ;; |
| 15293 | |
| 15294 | openbsd*) |
| 15295 | hardcode_direct_F77=yes |
| 15296 | hardcode_shlibpath_var_F77=no |
| 15297 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 15298 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15299 | archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15300 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 15301 | export_dynamic_flag_spec_F77='${wl}-E' |
| 15302 | else |
| 15303 | case $host_os in |
| 15304 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 15305 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15306 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 15307 | ;; |
| 15308 | *) |
| 15309 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 15310 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 15311 | ;; |
| 15312 | esac |
| 15313 | fi |
| 15314 | ;; |
| 15315 | |
| 15316 | os2*) |
| 15317 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 15318 | hardcode_minus_L_F77=yes |
| 15319 | allow_undefined_flag_F77=unsupported |
| 15320 | 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' |
| 15321 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 15322 | ;; |
| 15323 | |
| 15324 | osf3*) |
| 15325 | if test "$GCC" = yes; then |
| 15326 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 15327 | 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' |
| 15328 | else |
| 15329 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 15330 | 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' |
| 15331 | fi |
| 15332 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 15333 | hardcode_libdir_separator_F77=: |
| 15334 | ;; |
| 15335 | |
| 15336 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 15337 | if test "$GCC" = yes; then |
| 15338 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 15339 | 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' |
| 15340 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 15341 | else |
| 15342 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 15343 | 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' |
| 15344 | 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~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15345 | $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' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15346 | |
| 15347 | # Both c and cxx compiler support -rpath directly |
| 15348 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
| 15349 | fi |
| 15350 | hardcode_libdir_separator_F77=: |
| 15351 | ;; |
| 15352 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15353 | solaris*) |
| 15354 | no_undefined_flag_F77=' -z text' |
| 15355 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15356 | wlarc='${wl}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15357 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15358 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 15359 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 15360 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15361 | wlarc='' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15362 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15363 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 15364 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 15365 | fi |
| 15366 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 15367 | hardcode_shlibpath_var_F77=no |
| 15368 | case $host_os in |
| 15369 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15370 | *) |
| 15371 | # The compiler driver will combine linker options so we |
| 15372 | # cannot just pass the convience library names through |
| 15373 | # without $wl, iff we do not link with $LD. |
| 15374 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 15375 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 15376 | case $wlarc in |
| 15377 | '') |
| 15378 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
| 15379 | *) |
| 15380 | 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' ;; |
| 15381 | esac ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15382 | esac |
| 15383 | link_all_deplibs_F77=yes |
| 15384 | ;; |
| 15385 | |
| 15386 | sunos4*) |
| 15387 | if test "x$host_vendor" = xsequent; then |
| 15388 | # Use $CC to link under sequent, because it throws in some extra .o |
| 15389 | # files that make .init and .fini sections work. |
| 15390 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15391 | else |
| 15392 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 15393 | fi |
| 15394 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 15395 | hardcode_direct_F77=yes |
| 15396 | hardcode_minus_L_F77=yes |
| 15397 | hardcode_shlibpath_var_F77=no |
| 15398 | ;; |
| 15399 | |
| 15400 | sysv4) |
| 15401 | case $host_vendor in |
| 15402 | sni) |
| 15403 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15404 | hardcode_direct_F77=yes # is this really true??? |
| 15405 | ;; |
| 15406 | siemens) |
| 15407 | ## LD is ld it makes a PLAMLIB |
| 15408 | ## CC just makes a GrossModule. |
| 15409 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 15410 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
| 15411 | hardcode_direct_F77=no |
| 15412 | ;; |
| 15413 | motorola) |
| 15414 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15415 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
| 15416 | ;; |
| 15417 | esac |
| 15418 | runpath_var='LD_RUN_PATH' |
| 15419 | hardcode_shlibpath_var_F77=no |
| 15420 | ;; |
| 15421 | |
| 15422 | sysv4.3*) |
| 15423 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15424 | hardcode_shlibpath_var_F77=no |
| 15425 | export_dynamic_flag_spec_F77='-Bexport' |
| 15426 | ;; |
| 15427 | |
| 15428 | sysv4*MP*) |
| 15429 | if test -d /usr/nec; then |
| 15430 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15431 | hardcode_shlibpath_var_F77=no |
| 15432 | runpath_var=LD_RUN_PATH |
| 15433 | hardcode_runpath_var=yes |
| 15434 | ld_shlibs_F77=yes |
| 15435 | fi |
| 15436 | ;; |
| 15437 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15438 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 15439 | no_undefined_flag_F77='${wl}-z,text' |
| 15440 | archive_cmds_need_lc_F77=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15441 | hardcode_shlibpath_var_F77=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15442 | runpath_var='LD_RUN_PATH' |
bryner | 07f8ef5 | 2006-09-05 19:42:57 +0000 | [diff] [blame] | 15443 | |
mmentovai | 3261e8b | 2006-09-06 02:56:44 +0000 | [diff] [blame] | 15444 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15445 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15446 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
mmentovai | 3261e8b | 2006-09-06 02:56:44 +0000 | [diff] [blame] | 15447 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15448 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15449 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
mmentovai | 3261e8b | 2006-09-06 02:56:44 +0000 | [diff] [blame] | 15450 | fi |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 15451 | ;; |
| 15452 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15453 | sysv5* | sco3.2v5* | sco5v6*) |
| 15454 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 15455 | # link with -lc, and that would cause any symbols used from libc to |
| 15456 | # always be unresolved, which means just about no library would |
| 15457 | # ever link correctly. If we're not using GNU ld we use -z text |
| 15458 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 15459 | # as -z defs. |
| 15460 | no_undefined_flag_F77='${wl}-z,text' |
| 15461 | allow_undefined_flag_F77='${wl}-z,nodefs' |
| 15462 | archive_cmds_need_lc_F77=no |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 15463 | hardcode_shlibpath_var_F77=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15464 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 15465 | hardcode_libdir_separator_F77=':' |
| 15466 | link_all_deplibs_F77=yes |
| 15467 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 15468 | runpath_var='LD_RUN_PATH' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15469 | |
| 15470 | if test "$GCC" = yes; then |
| 15471 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15472 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15473 | else |
| 15474 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15475 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15476 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15477 | ;; |
| 15478 | |
| 15479 | uts4*) |
| 15480 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15481 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 15482 | hardcode_shlibpath_var_F77=no |
| 15483 | ;; |
| 15484 | |
| 15485 | *) |
| 15486 | ld_shlibs_F77=no |
| 15487 | ;; |
| 15488 | esac |
| 15489 | fi |
| 15490 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15491 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
| 15492 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15493 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 15494 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15495 | # |
| 15496 | # Do we need to explicitly link libc? |
| 15497 | # |
| 15498 | case "x$archive_cmds_need_lc_F77" in |
| 15499 | x|xyes) |
| 15500 | # Assume -lc should be added |
| 15501 | archive_cmds_need_lc_F77=yes |
| 15502 | |
| 15503 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 15504 | case $archive_cmds_F77 in |
| 15505 | *'~'*) |
| 15506 | # FIXME: we may have to deal with multi-command sequences. |
| 15507 | ;; |
| 15508 | '$CC '*) |
| 15509 | # Test whether the compiler implicitly links with -lc since on some |
| 15510 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 15511 | # to ld, don't add -lc before -lgcc. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15512 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 15513 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15514 | $rm conftest* |
| 15515 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15516 | |
| 15517 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15518 | (eval $ac_compile) 2>&5 |
| 15519 | ac_status=$? |
| 15520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15521 | (exit $ac_status); } 2>conftest.err; then |
| 15522 | soname=conftest |
| 15523 | lib=conftest |
| 15524 | libobjs=conftest.$ac_objext |
| 15525 | deplibs= |
| 15526 | wl=$lt_prog_compiler_wl_F77 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15527 | pic_flag=$lt_prog_compiler_pic_F77 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15528 | compiler_flags=-v |
| 15529 | linker_flags=-v |
| 15530 | verstring= |
| 15531 | output_objdir=. |
| 15532 | libname=conftest |
| 15533 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
| 15534 | allow_undefined_flag_F77= |
| 15535 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 15536 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 15537 | ac_status=$? |
| 15538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15539 | (exit $ac_status); } |
| 15540 | then |
| 15541 | archive_cmds_need_lc_F77=no |
| 15542 | else |
| 15543 | archive_cmds_need_lc_F77=yes |
| 15544 | fi |
| 15545 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
| 15546 | else |
| 15547 | cat conftest.err 1>&5 |
| 15548 | fi |
| 15549 | $rm conftest* |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15550 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
| 15551 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15552 | ;; |
| 15553 | esac |
| 15554 | fi |
| 15555 | ;; |
| 15556 | esac |
| 15557 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15558 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 15559 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15560 | library_names_spec= |
| 15561 | libname_spec='lib$name' |
| 15562 | soname_spec= |
| 15563 | shrext_cmds=".so" |
| 15564 | postinstall_cmds= |
| 15565 | postuninstall_cmds= |
| 15566 | finish_cmds= |
| 15567 | finish_eval= |
| 15568 | shlibpath_var= |
| 15569 | shlibpath_overrides_runpath=unknown |
| 15570 | version_type=none |
| 15571 | dynamic_linker="$host_os ld.so" |
| 15572 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 15573 | if test "$GCC" = yes; then |
| 15574 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 15575 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 15576 | # if the path contains ";" then we assume it to be the separator |
| 15577 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 15578 | # assumed that no part of a normal pathname contains ";" but that should |
| 15579 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 15580 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 15581 | else |
| 15582 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 15583 | fi |
| 15584 | else |
| 15585 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 15586 | fi |
| 15587 | need_lib_prefix=unknown |
| 15588 | hardcode_into_libs=no |
| 15589 | |
| 15590 | # when you set need_version to no, make sure it does not cause -set_version |
| 15591 | # flags to be left without arguments |
| 15592 | need_version=unknown |
| 15593 | |
| 15594 | case $host_os in |
| 15595 | aix3*) |
| 15596 | version_type=linux |
| 15597 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 15598 | shlibpath_var=LIBPATH |
| 15599 | |
| 15600 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 15601 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15602 | ;; |
| 15603 | |
| 15604 | aix4* | aix5*) |
| 15605 | version_type=linux |
| 15606 | need_lib_prefix=no |
| 15607 | need_version=no |
| 15608 | hardcode_into_libs=yes |
| 15609 | if test "$host_cpu" = ia64; then |
| 15610 | # AIX 5 supports IA64 |
| 15611 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 15612 | shlibpath_var=LD_LIBRARY_PATH |
| 15613 | else |
| 15614 | # With GCC up to 2.95.x, collect2 would create an import file |
| 15615 | # for dependence libraries. The import file would start with |
| 15616 | # the line `#! .'. This would cause the generated library to |
| 15617 | # depend on `.', always an invalid library. This was fixed in |
| 15618 | # development snapshots of GCC prior to 3.0. |
| 15619 | case $host_os in |
| 15620 | aix4 | aix4.[01] | aix4.[01].*) |
| 15621 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 15622 | echo ' yes ' |
| 15623 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 15624 | : |
| 15625 | else |
| 15626 | can_build_shared=no |
| 15627 | fi |
| 15628 | ;; |
| 15629 | esac |
| 15630 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 15631 | # soname into executable. Probably we can add versioning support to |
| 15632 | # collect2, so additional links can be useful in future. |
| 15633 | if test "$aix_use_runtimelinking" = yes; then |
| 15634 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 15635 | # instead of lib<name>.a to let people know that these are not |
| 15636 | # typical AIX shared libraries. |
| 15637 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15638 | else |
| 15639 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 15640 | # and later when we are not doing run time linking. |
| 15641 | library_names_spec='${libname}${release}.a $libname.a' |
| 15642 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15643 | fi |
| 15644 | shlibpath_var=LIBPATH |
| 15645 | fi |
| 15646 | ;; |
| 15647 | |
| 15648 | amigaos*) |
| 15649 | library_names_spec='$libname.ixlibrary $libname.a' |
| 15650 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 15651 | 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' |
| 15652 | ;; |
| 15653 | |
| 15654 | beos*) |
| 15655 | library_names_spec='${libname}${shared_ext}' |
| 15656 | dynamic_linker="$host_os ld.so" |
| 15657 | shlibpath_var=LIBRARY_PATH |
| 15658 | ;; |
| 15659 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15660 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15661 | version_type=linux |
| 15662 | need_version=no |
| 15663 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15664 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15665 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 15666 | shlibpath_var=LD_LIBRARY_PATH |
| 15667 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 15668 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 15669 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 15670 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 15671 | # libtool to hard-code these into programs |
| 15672 | ;; |
| 15673 | |
| 15674 | cygwin* | mingw* | pw32*) |
| 15675 | version_type=windows |
| 15676 | shrext_cmds=".dll" |
| 15677 | need_version=no |
| 15678 | need_lib_prefix=no |
| 15679 | |
| 15680 | case $GCC,$host_os in |
| 15681 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 15682 | library_names_spec='$libname.dll.a' |
| 15683 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 15684 | postinstall_cmds='base_file=`basename \${file}`~ |
| 15685 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 15686 | dldir=$destdir/`dirname \$dlpath`~ |
| 15687 | test -d \$dldir || mkdir -p \$dldir~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15688 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 15689 | chmod a+x \$dldir/$dlname' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15690 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 15691 | dlpath=$dir/\$dldll~ |
| 15692 | $rm \$dlpath' |
| 15693 | shlibpath_overrides_runpath=yes |
| 15694 | |
| 15695 | case $host_os in |
| 15696 | cygwin*) |
| 15697 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 15698 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 15699 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 15700 | ;; |
| 15701 | mingw*) |
| 15702 | # MinGW DLLs use traditional 'lib' prefix |
| 15703 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 15704 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 15705 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 15706 | # It is most probably a Windows format PATH printed by |
| 15707 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 15708 | # path with ; separators, and with drive letters. We can handle the |
| 15709 | # drive letters (cygwin fileutils understands them), so leave them, |
| 15710 | # especially as we might pass files found there to a mingw objdump, |
| 15711 | # which wouldn't understand a cygwinified path. Ahh. |
| 15712 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 15713 | else |
| 15714 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 15715 | fi |
| 15716 | ;; |
| 15717 | pw32*) |
| 15718 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15719 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15720 | ;; |
| 15721 | esac |
| 15722 | ;; |
| 15723 | |
| 15724 | *) |
| 15725 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 15726 | ;; |
| 15727 | esac |
| 15728 | dynamic_linker='Win32 ld.exe' |
| 15729 | # FIXME: first we should search . and the directory the executable is in |
| 15730 | shlibpath_var=PATH |
| 15731 | ;; |
| 15732 | |
| 15733 | darwin* | rhapsody*) |
| 15734 | dynamic_linker="$host_os dyld" |
| 15735 | version_type=darwin |
| 15736 | need_lib_prefix=no |
| 15737 | need_version=no |
| 15738 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 15739 | soname_spec='${libname}${release}${major}$shared_ext' |
| 15740 | shlibpath_overrides_runpath=yes |
| 15741 | shlibpath_var=DYLD_LIBRARY_PATH |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15742 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15743 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 15744 | if test "$GCC" = yes; then |
| 15745 | 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"` |
| 15746 | else |
| 15747 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 15748 | fi |
| 15749 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 15750 | ;; |
| 15751 | |
| 15752 | dgux*) |
| 15753 | version_type=linux |
| 15754 | need_lib_prefix=no |
| 15755 | need_version=no |
| 15756 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 15757 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15758 | shlibpath_var=LD_LIBRARY_PATH |
| 15759 | ;; |
| 15760 | |
| 15761 | freebsd1*) |
| 15762 | dynamic_linker=no |
| 15763 | ;; |
| 15764 | |
| 15765 | kfreebsd*-gnu) |
| 15766 | version_type=linux |
| 15767 | need_lib_prefix=no |
| 15768 | need_version=no |
| 15769 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15770 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15771 | shlibpath_var=LD_LIBRARY_PATH |
| 15772 | shlibpath_overrides_runpath=no |
| 15773 | hardcode_into_libs=yes |
| 15774 | dynamic_linker='GNU ld.so' |
| 15775 | ;; |
| 15776 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15777 | freebsd* | dragonfly*) |
| 15778 | # DragonFly does not have aout. When/if they implement a new |
| 15779 | # versioning mechanism, adjust this. |
| 15780 | if test -x /usr/bin/objformat; then |
| 15781 | objformat=`/usr/bin/objformat` |
| 15782 | else |
| 15783 | case $host_os in |
| 15784 | freebsd[123]*) objformat=aout ;; |
| 15785 | *) objformat=elf ;; |
| 15786 | esac |
| 15787 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15788 | version_type=freebsd-$objformat |
| 15789 | case $version_type in |
| 15790 | freebsd-elf*) |
| 15791 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 15792 | need_version=no |
| 15793 | need_lib_prefix=no |
| 15794 | ;; |
| 15795 | freebsd-*) |
| 15796 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 15797 | need_version=yes |
| 15798 | ;; |
| 15799 | esac |
| 15800 | shlibpath_var=LD_LIBRARY_PATH |
| 15801 | case $host_os in |
| 15802 | freebsd2*) |
| 15803 | shlibpath_overrides_runpath=yes |
| 15804 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15805 | freebsd3.[01]* | freebsdelf3.[01]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15806 | shlibpath_overrides_runpath=yes |
| 15807 | hardcode_into_libs=yes |
| 15808 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15809 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 15810 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15811 | shlibpath_overrides_runpath=no |
| 15812 | hardcode_into_libs=yes |
| 15813 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15814 | freebsd*) # from 4.6 on |
| 15815 | shlibpath_overrides_runpath=yes |
| 15816 | hardcode_into_libs=yes |
| 15817 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15818 | esac |
| 15819 | ;; |
| 15820 | |
| 15821 | gnu*) |
| 15822 | version_type=linux |
| 15823 | need_lib_prefix=no |
| 15824 | need_version=no |
| 15825 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 15826 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15827 | shlibpath_var=LD_LIBRARY_PATH |
| 15828 | hardcode_into_libs=yes |
| 15829 | ;; |
| 15830 | |
| 15831 | hpux9* | hpux10* | hpux11*) |
| 15832 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 15833 | # link against other versions. |
| 15834 | version_type=sunos |
| 15835 | need_lib_prefix=no |
| 15836 | need_version=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15837 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15838 | ia64*) |
| 15839 | shrext_cmds='.so' |
| 15840 | hardcode_into_libs=yes |
| 15841 | dynamic_linker="$host_os dld.so" |
| 15842 | shlibpath_var=LD_LIBRARY_PATH |
| 15843 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 15844 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15845 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15846 | if test "X$HPUX_IA64_MODE" = X32; then |
| 15847 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 15848 | else |
| 15849 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 15850 | fi |
| 15851 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 15852 | ;; |
| 15853 | hppa*64*) |
| 15854 | shrext_cmds='.sl' |
| 15855 | hardcode_into_libs=yes |
| 15856 | dynamic_linker="$host_os dld.sl" |
| 15857 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 15858 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 15859 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15860 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15861 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 15862 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 15863 | ;; |
| 15864 | *) |
| 15865 | shrext_cmds='.sl' |
| 15866 | dynamic_linker="$host_os dld.sl" |
| 15867 | shlibpath_var=SHLIB_PATH |
| 15868 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 15869 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15870 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15871 | ;; |
| 15872 | esac |
| 15873 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 15874 | postinstall_cmds='chmod 555 $lib' |
| 15875 | ;; |
| 15876 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15877 | interix3*) |
| 15878 | version_type=linux |
| 15879 | need_lib_prefix=no |
| 15880 | need_version=no |
| 15881 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15882 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15883 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 15884 | shlibpath_var=LD_LIBRARY_PATH |
| 15885 | shlibpath_overrides_runpath=no |
| 15886 | hardcode_into_libs=yes |
| 15887 | ;; |
| 15888 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15889 | irix5* | irix6* | nonstopux*) |
| 15890 | case $host_os in |
| 15891 | nonstopux*) version_type=nonstopux ;; |
| 15892 | *) |
| 15893 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 15894 | version_type=linux |
| 15895 | else |
| 15896 | version_type=irix |
| 15897 | fi ;; |
| 15898 | esac |
| 15899 | need_lib_prefix=no |
| 15900 | need_version=no |
| 15901 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15902 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 15903 | case $host_os in |
| 15904 | irix5* | nonstopux*) |
| 15905 | libsuff= shlibsuff= |
| 15906 | ;; |
| 15907 | *) |
| 15908 | case $LD in # libtool.m4 will add one of these switches to LD |
| 15909 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 15910 | libsuff= shlibsuff= libmagic=32-bit;; |
| 15911 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 15912 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 15913 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 15914 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 15915 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 15916 | esac |
| 15917 | ;; |
| 15918 | esac |
| 15919 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 15920 | shlibpath_overrides_runpath=no |
| 15921 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 15922 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 15923 | hardcode_into_libs=yes |
| 15924 | ;; |
| 15925 | |
| 15926 | # No shared lib support for Linux oldld, aout, or coff. |
| 15927 | linux*oldld* | linux*aout* | linux*coff*) |
| 15928 | dynamic_linker=no |
| 15929 | ;; |
| 15930 | |
| 15931 | # This must be Linux ELF. |
| 15932 | linux*) |
| 15933 | version_type=linux |
| 15934 | need_lib_prefix=no |
| 15935 | need_version=no |
| 15936 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15937 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15938 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 15939 | shlibpath_var=LD_LIBRARY_PATH |
| 15940 | shlibpath_overrides_runpath=no |
| 15941 | # This implies no fast_install, which is unacceptable. |
| 15942 | # Some rework will be needed to allow for fast_install |
| 15943 | # before this can be enabled. |
| 15944 | hardcode_into_libs=yes |
| 15945 | |
| 15946 | # Append ld.so.conf contents to the search path |
| 15947 | if test -f /etc/ld.so.conf; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15948 | 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' ' '` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15949 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 15950 | fi |
| 15951 | |
| 15952 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 15953 | # powerpc, because MkLinux only supported shared libraries with the |
| 15954 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 15955 | # most powerpc-linux boxes support dynamic linking these days and |
| 15956 | # people can always --disable-shared, the test was removed, and we |
| 15957 | # assume the GNU/Linux dynamic linker is in use. |
| 15958 | dynamic_linker='GNU/Linux ld.so' |
| 15959 | ;; |
| 15960 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15961 | knetbsd*-gnu) |
| 15962 | version_type=linux |
| 15963 | need_lib_prefix=no |
| 15964 | need_version=no |
| 15965 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15966 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15967 | shlibpath_var=LD_LIBRARY_PATH |
| 15968 | shlibpath_overrides_runpath=no |
| 15969 | hardcode_into_libs=yes |
| 15970 | dynamic_linker='GNU ld.so' |
| 15971 | ;; |
| 15972 | |
| 15973 | netbsd*) |
| 15974 | version_type=sunos |
| 15975 | need_lib_prefix=no |
| 15976 | need_version=no |
| 15977 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 15978 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 15979 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 15980 | dynamic_linker='NetBSD (a.out) ld.so' |
| 15981 | else |
| 15982 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15983 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15984 | dynamic_linker='NetBSD ld.elf_so' |
| 15985 | fi |
| 15986 | shlibpath_var=LD_LIBRARY_PATH |
| 15987 | shlibpath_overrides_runpath=yes |
| 15988 | hardcode_into_libs=yes |
| 15989 | ;; |
| 15990 | |
| 15991 | newsos6) |
| 15992 | version_type=linux |
| 15993 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15994 | shlibpath_var=LD_LIBRARY_PATH |
| 15995 | shlibpath_overrides_runpath=yes |
| 15996 | ;; |
| 15997 | |
| 15998 | nto-qnx*) |
| 15999 | version_type=linux |
| 16000 | need_lib_prefix=no |
| 16001 | need_version=no |
| 16002 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16003 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16004 | shlibpath_var=LD_LIBRARY_PATH |
| 16005 | shlibpath_overrides_runpath=yes |
| 16006 | ;; |
| 16007 | |
| 16008 | openbsd*) |
| 16009 | version_type=sunos |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16010 | sys_lib_dlsearch_path_spec="/usr/lib" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16011 | need_lib_prefix=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16012 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 16013 | case $host_os in |
| 16014 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 16015 | *) need_version=no ;; |
| 16016 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16017 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16018 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16019 | shlibpath_var=LD_LIBRARY_PATH |
| 16020 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 16021 | case $host_os in |
| 16022 | openbsd2.[89] | openbsd2.[89].*) |
| 16023 | shlibpath_overrides_runpath=no |
| 16024 | ;; |
| 16025 | *) |
| 16026 | shlibpath_overrides_runpath=yes |
| 16027 | ;; |
| 16028 | esac |
| 16029 | else |
| 16030 | shlibpath_overrides_runpath=yes |
| 16031 | fi |
| 16032 | ;; |
| 16033 | |
| 16034 | os2*) |
| 16035 | libname_spec='$name' |
| 16036 | shrext_cmds=".dll" |
| 16037 | need_lib_prefix=no |
| 16038 | library_names_spec='$libname${shared_ext} $libname.a' |
| 16039 | dynamic_linker='OS/2 ld.exe' |
| 16040 | shlibpath_var=LIBPATH |
| 16041 | ;; |
| 16042 | |
| 16043 | osf3* | osf4* | osf5*) |
| 16044 | version_type=osf |
| 16045 | need_lib_prefix=no |
| 16046 | need_version=no |
| 16047 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16048 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16049 | shlibpath_var=LD_LIBRARY_PATH |
| 16050 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 16051 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 16052 | ;; |
| 16053 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16054 | solaris*) |
| 16055 | version_type=linux |
| 16056 | need_lib_prefix=no |
| 16057 | need_version=no |
| 16058 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16059 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16060 | shlibpath_var=LD_LIBRARY_PATH |
| 16061 | shlibpath_overrides_runpath=yes |
| 16062 | hardcode_into_libs=yes |
| 16063 | # ldd complains unless libraries are executable |
| 16064 | postinstall_cmds='chmod +x $lib' |
| 16065 | ;; |
| 16066 | |
| 16067 | sunos4*) |
| 16068 | version_type=sunos |
| 16069 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16070 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 16071 | shlibpath_var=LD_LIBRARY_PATH |
| 16072 | shlibpath_overrides_runpath=yes |
| 16073 | if test "$with_gnu_ld" = yes; then |
| 16074 | need_lib_prefix=no |
| 16075 | fi |
| 16076 | need_version=yes |
| 16077 | ;; |
| 16078 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16079 | sysv4 | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16080 | version_type=linux |
| 16081 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16082 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16083 | shlibpath_var=LD_LIBRARY_PATH |
| 16084 | case $host_vendor in |
| 16085 | sni) |
| 16086 | shlibpath_overrides_runpath=no |
| 16087 | need_lib_prefix=no |
| 16088 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 16089 | runpath_var=LD_RUN_PATH |
| 16090 | ;; |
| 16091 | siemens) |
| 16092 | need_lib_prefix=no |
| 16093 | ;; |
| 16094 | motorola) |
| 16095 | need_lib_prefix=no |
| 16096 | need_version=no |
| 16097 | shlibpath_overrides_runpath=no |
| 16098 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 16099 | ;; |
| 16100 | esac |
| 16101 | ;; |
| 16102 | |
| 16103 | sysv4*MP*) |
| 16104 | if test -d /usr/nec ;then |
| 16105 | version_type=linux |
| 16106 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 16107 | soname_spec='$libname${shared_ext}.$major' |
| 16108 | shlibpath_var=LD_LIBRARY_PATH |
| 16109 | fi |
| 16110 | ;; |
| 16111 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16112 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 16113 | version_type=freebsd-elf |
| 16114 | need_lib_prefix=no |
| 16115 | need_version=no |
| 16116 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 16117 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16118 | shlibpath_var=LD_LIBRARY_PATH |
| 16119 | hardcode_into_libs=yes |
| 16120 | if test "$with_gnu_ld" = yes; then |
| 16121 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 16122 | shlibpath_overrides_runpath=no |
| 16123 | else |
| 16124 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 16125 | shlibpath_overrides_runpath=yes |
| 16126 | case $host_os in |
| 16127 | sco3.2v5*) |
| 16128 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 16129 | ;; |
| 16130 | esac |
| 16131 | fi |
| 16132 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 16133 | ;; |
| 16134 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16135 | uts4*) |
| 16136 | version_type=linux |
| 16137 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16138 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16139 | shlibpath_var=LD_LIBRARY_PATH |
| 16140 | ;; |
| 16141 | |
| 16142 | *) |
| 16143 | dynamic_linker=no |
| 16144 | ;; |
| 16145 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16146 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 16147 | echo "${ECHO_T}$dynamic_linker" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16148 | test "$dynamic_linker" = no && can_build_shared=no |
| 16149 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16150 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 16151 | if test "$GCC" = yes; then |
| 16152 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 16153 | fi |
| 16154 | |
| 16155 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 16156 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16157 | hardcode_action_F77= |
| 16158 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16159 | test -n "$runpath_var_F77" || \ |
| 16160 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16161 | |
| 16162 | # We can hardcode non-existant directories. |
| 16163 | if test "$hardcode_direct_F77" != no && |
| 16164 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 16165 | # have to relink, otherwise we might link with an installed library |
| 16166 | # when we should be linking with a yet-to-be-installed one |
| 16167 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
| 16168 | test "$hardcode_minus_L_F77" != no; then |
| 16169 | # Linking always hardcodes the temporary library directory. |
| 16170 | hardcode_action_F77=relink |
| 16171 | else |
| 16172 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 16173 | hardcode_action_F77=immediate |
| 16174 | fi |
| 16175 | else |
| 16176 | # We cannot hardcode anything, or else we can only hardcode existing |
| 16177 | # directories. |
| 16178 | hardcode_action_F77=unsupported |
| 16179 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16180 | { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
| 16181 | echo "${ECHO_T}$hardcode_action_F77" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16182 | |
| 16183 | if test "$hardcode_action_F77" = relink; then |
| 16184 | # Fast installation is not supported |
| 16185 | enable_fast_install=no |
| 16186 | elif test "$shlibpath_overrides_runpath" = yes || |
| 16187 | test "$enable_shared" = no; then |
| 16188 | # Fast installation is not necessary |
| 16189 | enable_fast_install=needless |
| 16190 | fi |
| 16191 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16192 | |
| 16193 | # The else clause should only fire when bootstrapping the |
| 16194 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 16195 | # with your package, and you will get complaints that there are |
| 16196 | # no rules to generate ltmain.sh. |
| 16197 | if test -f "$ltmain"; then |
| 16198 | # See if we are running on zsh, and set the options which allow our commands through |
| 16199 | # without removal of \ escapes. |
| 16200 | if test -n "${ZSH_VERSION+set}" ; then |
| 16201 | setopt NO_GLOB_SUBST |
| 16202 | fi |
| 16203 | # Now quote all the things that may contain metacharacters while being |
| 16204 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 16205 | # variables and quote the copies for generation of the libtool script. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16206 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16207 | SED SHELL STRIP \ |
| 16208 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 16209 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 16210 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 16211 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 16212 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 16213 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 16214 | old_postinstall_cmds old_postuninstall_cmds \ |
| 16215 | compiler_F77 \ |
| 16216 | CC_F77 \ |
| 16217 | LD_F77 \ |
| 16218 | lt_prog_compiler_wl_F77 \ |
| 16219 | lt_prog_compiler_pic_F77 \ |
| 16220 | lt_prog_compiler_static_F77 \ |
| 16221 | lt_prog_compiler_no_builtin_flag_F77 \ |
| 16222 | export_dynamic_flag_spec_F77 \ |
| 16223 | thread_safe_flag_spec_F77 \ |
| 16224 | whole_archive_flag_spec_F77 \ |
| 16225 | enable_shared_with_static_runtimes_F77 \ |
| 16226 | old_archive_cmds_F77 \ |
| 16227 | old_archive_from_new_cmds_F77 \ |
| 16228 | predep_objects_F77 \ |
| 16229 | postdep_objects_F77 \ |
| 16230 | predeps_F77 \ |
| 16231 | postdeps_F77 \ |
| 16232 | compiler_lib_search_path_F77 \ |
| 16233 | archive_cmds_F77 \ |
| 16234 | archive_expsym_cmds_F77 \ |
| 16235 | postinstall_cmds_F77 \ |
| 16236 | postuninstall_cmds_F77 \ |
| 16237 | old_archive_from_expsyms_cmds_F77 \ |
| 16238 | allow_undefined_flag_F77 \ |
| 16239 | no_undefined_flag_F77 \ |
| 16240 | export_symbols_cmds_F77 \ |
| 16241 | hardcode_libdir_flag_spec_F77 \ |
| 16242 | hardcode_libdir_flag_spec_ld_F77 \ |
| 16243 | hardcode_libdir_separator_F77 \ |
| 16244 | hardcode_automatic_F77 \ |
| 16245 | module_cmds_F77 \ |
| 16246 | module_expsym_cmds_F77 \ |
| 16247 | lt_cv_prog_compiler_c_o_F77 \ |
| 16248 | exclude_expsyms_F77 \ |
| 16249 | include_expsyms_F77; do |
| 16250 | |
| 16251 | case $var in |
| 16252 | old_archive_cmds_F77 | \ |
| 16253 | old_archive_from_new_cmds_F77 | \ |
| 16254 | archive_cmds_F77 | \ |
| 16255 | archive_expsym_cmds_F77 | \ |
| 16256 | module_cmds_F77 | \ |
| 16257 | module_expsym_cmds_F77 | \ |
| 16258 | old_archive_from_expsyms_cmds_F77 | \ |
| 16259 | export_symbols_cmds_F77 | \ |
| 16260 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 16261 | postinstall_cmds | postuninstall_cmds | \ |
| 16262 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 16263 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 16264 | # Double-quote double-evaled strings. |
| 16265 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 16266 | ;; |
| 16267 | *) |
| 16268 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 16269 | ;; |
| 16270 | esac |
| 16271 | done |
| 16272 | |
| 16273 | case $lt_echo in |
| 16274 | *'\$0 --fallback-echo"') |
| 16275 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 16276 | ;; |
| 16277 | esac |
| 16278 | |
| 16279 | cfgfile="$ofile" |
| 16280 | |
| 16281 | cat <<__EOF__ >> "$cfgfile" |
| 16282 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 16283 | |
| 16284 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 16285 | |
| 16286 | # Shell to use when invoking shell scripts. |
| 16287 | SHELL=$lt_SHELL |
| 16288 | |
| 16289 | # Whether or not to build shared libraries. |
| 16290 | build_libtool_libs=$enable_shared |
| 16291 | |
| 16292 | # Whether or not to build static libraries. |
| 16293 | build_old_libs=$enable_static |
| 16294 | |
| 16295 | # Whether or not to add -lc for building shared libraries. |
| 16296 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
| 16297 | |
| 16298 | # Whether or not to disallow shared libs when runtime libs are static |
| 16299 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
| 16300 | |
| 16301 | # Whether or not to optimize for fast installation. |
| 16302 | fast_install=$enable_fast_install |
| 16303 | |
| 16304 | # The host system. |
| 16305 | host_alias=$host_alias |
| 16306 | host=$host |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16307 | host_os=$host_os |
| 16308 | |
| 16309 | # The build system. |
| 16310 | build_alias=$build_alias |
| 16311 | build=$build |
| 16312 | build_os=$build_os |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16313 | |
| 16314 | # An echo program that does not interpret backslashes. |
| 16315 | echo=$lt_echo |
| 16316 | |
| 16317 | # The archiver. |
| 16318 | AR=$lt_AR |
| 16319 | AR_FLAGS=$lt_AR_FLAGS |
| 16320 | |
| 16321 | # A C compiler. |
| 16322 | LTCC=$lt_LTCC |
| 16323 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16324 | # LTCC compiler flags. |
| 16325 | LTCFLAGS=$lt_LTCFLAGS |
| 16326 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16327 | # A language-specific compiler. |
| 16328 | CC=$lt_compiler_F77 |
| 16329 | |
| 16330 | # Is the compiler the GNU C compiler? |
| 16331 | with_gcc=$GCC_F77 |
| 16332 | |
| 16333 | # An ERE matcher. |
| 16334 | EGREP=$lt_EGREP |
| 16335 | |
| 16336 | # The linker used to build libraries. |
| 16337 | LD=$lt_LD_F77 |
| 16338 | |
| 16339 | # Whether we need hard or soft links. |
| 16340 | LN_S=$lt_LN_S |
| 16341 | |
| 16342 | # A BSD-compatible nm program. |
| 16343 | NM=$lt_NM |
| 16344 | |
| 16345 | # A symbol stripping program |
| 16346 | STRIP=$lt_STRIP |
| 16347 | |
| 16348 | # Used to examine libraries when file_magic_cmd begins "file" |
| 16349 | MAGIC_CMD=$MAGIC_CMD |
| 16350 | |
| 16351 | # Used on cygwin: DLL creation program. |
| 16352 | DLLTOOL="$DLLTOOL" |
| 16353 | |
| 16354 | # Used on cygwin: object dumper. |
| 16355 | OBJDUMP="$OBJDUMP" |
| 16356 | |
| 16357 | # Used on cygwin: assembler. |
| 16358 | AS="$AS" |
| 16359 | |
| 16360 | # The name of the directory that contains temporary libtool files. |
| 16361 | objdir=$objdir |
| 16362 | |
| 16363 | # How to create reloadable object files. |
| 16364 | reload_flag=$lt_reload_flag |
| 16365 | reload_cmds=$lt_reload_cmds |
| 16366 | |
| 16367 | # How to pass a linker flag through the compiler. |
| 16368 | wl=$lt_lt_prog_compiler_wl_F77 |
| 16369 | |
| 16370 | # Object file suffix (normally "o"). |
| 16371 | objext="$ac_objext" |
| 16372 | |
| 16373 | # Old archive suffix (normally "a"). |
| 16374 | libext="$libext" |
| 16375 | |
| 16376 | # Shared library suffix (normally ".so"). |
| 16377 | shrext_cmds='$shrext_cmds' |
| 16378 | |
| 16379 | # Executable file suffix (normally ""). |
| 16380 | exeext="$exeext" |
| 16381 | |
| 16382 | # Additional compiler flags for building library objects. |
| 16383 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
| 16384 | pic_mode=$pic_mode |
| 16385 | |
| 16386 | # What is the maximum length of a command? |
| 16387 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 16388 | |
| 16389 | # Does compiler simultaneously support -c and -o options? |
| 16390 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
| 16391 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16392 | # Must we lock files when doing compilation? |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16393 | need_locks=$lt_need_locks |
| 16394 | |
| 16395 | # Do we need the lib prefix for modules? |
| 16396 | need_lib_prefix=$need_lib_prefix |
| 16397 | |
| 16398 | # Do we need a version for libraries? |
| 16399 | need_version=$need_version |
| 16400 | |
| 16401 | # Whether dlopen is supported. |
| 16402 | dlopen_support=$enable_dlopen |
| 16403 | |
| 16404 | # Whether dlopen of programs is supported. |
| 16405 | dlopen_self=$enable_dlopen_self |
| 16406 | |
| 16407 | # Whether dlopen of statically linked programs is supported. |
| 16408 | dlopen_self_static=$enable_dlopen_self_static |
| 16409 | |
| 16410 | # Compiler flag to prevent dynamic linking. |
| 16411 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
| 16412 | |
| 16413 | # Compiler flag to turn off builtin functions. |
| 16414 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
| 16415 | |
| 16416 | # Compiler flag to allow reflexive dlopens. |
| 16417 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
| 16418 | |
| 16419 | # Compiler flag to generate shared objects directly from archives. |
| 16420 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
| 16421 | |
| 16422 | # Compiler flag to generate thread-safe objects. |
| 16423 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
| 16424 | |
| 16425 | # Library versioning type. |
| 16426 | version_type=$version_type |
| 16427 | |
| 16428 | # Format of library name prefix. |
| 16429 | libname_spec=$lt_libname_spec |
| 16430 | |
| 16431 | # List of archive names. First name is the real one, the rest are links. |
| 16432 | # The last name is the one that the linker finds with -lNAME. |
| 16433 | library_names_spec=$lt_library_names_spec |
| 16434 | |
| 16435 | # The coded name of the library, if different from the real name. |
| 16436 | soname_spec=$lt_soname_spec |
| 16437 | |
| 16438 | # Commands used to build and install an old-style archive. |
| 16439 | RANLIB=$lt_RANLIB |
| 16440 | old_archive_cmds=$lt_old_archive_cmds_F77 |
| 16441 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 16442 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 16443 | |
| 16444 | # Create an old-style archive from a shared archive. |
| 16445 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
| 16446 | |
| 16447 | # Create a temporary old-style archive to link instead of a shared archive. |
| 16448 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
| 16449 | |
| 16450 | # Commands used to build and install a shared archive. |
| 16451 | archive_cmds=$lt_archive_cmds_F77 |
| 16452 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
| 16453 | postinstall_cmds=$lt_postinstall_cmds |
| 16454 | postuninstall_cmds=$lt_postuninstall_cmds |
| 16455 | |
| 16456 | # Commands used to build a loadable module (assumed same as above if empty) |
| 16457 | module_cmds=$lt_module_cmds_F77 |
| 16458 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
| 16459 | |
| 16460 | # Commands to strip libraries. |
| 16461 | old_striplib=$lt_old_striplib |
| 16462 | striplib=$lt_striplib |
| 16463 | |
| 16464 | # Dependencies to place before the objects being linked to create a |
| 16465 | # shared library. |
| 16466 | predep_objects=$lt_predep_objects_F77 |
| 16467 | |
| 16468 | # Dependencies to place after the objects being linked to create a |
| 16469 | # shared library. |
| 16470 | postdep_objects=$lt_postdep_objects_F77 |
| 16471 | |
| 16472 | # Dependencies to place before the objects being linked to create a |
| 16473 | # shared library. |
| 16474 | predeps=$lt_predeps_F77 |
| 16475 | |
| 16476 | # Dependencies to place after the objects being linked to create a |
| 16477 | # shared library. |
| 16478 | postdeps=$lt_postdeps_F77 |
| 16479 | |
| 16480 | # The library search path used internally by the compiler when linking |
| 16481 | # a shared library. |
| 16482 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
| 16483 | |
| 16484 | # Method to check whether dependent libraries are shared objects. |
| 16485 | deplibs_check_method=$lt_deplibs_check_method |
| 16486 | |
| 16487 | # Command to use when deplibs_check_method == file_magic. |
| 16488 | file_magic_cmd=$lt_file_magic_cmd |
| 16489 | |
| 16490 | # Flag that allows shared libraries with undefined symbols to be built. |
| 16491 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
| 16492 | |
| 16493 | # Flag that forces no undefined symbols. |
| 16494 | no_undefined_flag=$lt_no_undefined_flag_F77 |
| 16495 | |
| 16496 | # Commands used to finish a libtool library installation in a directory. |
| 16497 | finish_cmds=$lt_finish_cmds |
| 16498 | |
| 16499 | # Same as above, but a single script fragment to be evaled but not shown. |
| 16500 | finish_eval=$lt_finish_eval |
| 16501 | |
| 16502 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 16503 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 16504 | |
| 16505 | # Transform the output of nm in a proper C declaration |
| 16506 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 16507 | |
| 16508 | # Transform the output of nm in a C name address pair |
| 16509 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 16510 | |
| 16511 | # This is the shared library runtime path variable. |
| 16512 | runpath_var=$runpath_var |
| 16513 | |
| 16514 | # This is the shared library path variable. |
| 16515 | shlibpath_var=$shlibpath_var |
| 16516 | |
| 16517 | # Is shlibpath searched before the hard-coded library search path? |
| 16518 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 16519 | |
| 16520 | # How to hardcode a shared library path into an executable. |
| 16521 | hardcode_action=$hardcode_action_F77 |
| 16522 | |
| 16523 | # Whether we should hardcode library paths into libraries. |
| 16524 | hardcode_into_libs=$hardcode_into_libs |
| 16525 | |
| 16526 | # Flag to hardcode \$libdir into a binary during linking. |
| 16527 | # This must work even if \$libdir does not exist. |
| 16528 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
| 16529 | |
| 16530 | # If ld is used when linking, flag to hardcode \$libdir into |
| 16531 | # a binary during linking. This must work even if \$libdir does |
| 16532 | # not exist. |
| 16533 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
| 16534 | |
| 16535 | # Whether we need a single -rpath flag with a separated argument. |
| 16536 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
| 16537 | |
| 16538 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 16539 | # resulting binary. |
| 16540 | hardcode_direct=$hardcode_direct_F77 |
| 16541 | |
| 16542 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 16543 | # resulting binary. |
| 16544 | hardcode_minus_L=$hardcode_minus_L_F77 |
| 16545 | |
| 16546 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 16547 | # the resulting binary. |
| 16548 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
| 16549 | |
| 16550 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 16551 | # and all subsequent libraries and executables linked against it. |
| 16552 | hardcode_automatic=$hardcode_automatic_F77 |
| 16553 | |
| 16554 | # Variables whose values should be saved in libtool wrapper scripts and |
| 16555 | # restored at relink time. |
| 16556 | variables_saved_for_relink="$variables_saved_for_relink" |
| 16557 | |
| 16558 | # Whether libtool must link a program against all its dependency libraries. |
| 16559 | link_all_deplibs=$link_all_deplibs_F77 |
| 16560 | |
| 16561 | # Compile-time system search path for libraries |
| 16562 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 16563 | |
| 16564 | # Run-time system search path for libraries |
| 16565 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 16566 | |
| 16567 | # Fix the shell variable \$srcfile for the compiler. |
| 16568 | fix_srcfile_path="$fix_srcfile_path_F77" |
| 16569 | |
| 16570 | # Set to yes if exported symbols are required. |
| 16571 | always_export_symbols=$always_export_symbols_F77 |
| 16572 | |
| 16573 | # The commands to list exported symbols. |
| 16574 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
| 16575 | |
| 16576 | # The commands to extract the exported symbol list from a shared archive. |
| 16577 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 16578 | |
| 16579 | # Symbols that should not be listed in the preloaded symbols. |
| 16580 | exclude_expsyms=$lt_exclude_expsyms_F77 |
| 16581 | |
| 16582 | # Symbols that must always be exported. |
| 16583 | include_expsyms=$lt_include_expsyms_F77 |
| 16584 | |
| 16585 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 16586 | |
| 16587 | __EOF__ |
| 16588 | |
| 16589 | |
| 16590 | else |
| 16591 | # If there is no Makefile yet, we rely on a make rule to execute |
| 16592 | # `config.status --recheck' to rerun these tests and create the |
| 16593 | # libtool script then. |
| 16594 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 16595 | if test -f "$ltmain_in"; then |
| 16596 | test -f Makefile && make "$ltmain" |
| 16597 | fi |
| 16598 | fi |
| 16599 | |
| 16600 | |
| 16601 | ac_ext=c |
| 16602 | ac_cpp='$CPP $CPPFLAGS' |
| 16603 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16604 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16605 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 16606 | |
| 16607 | CC="$lt_save_CC" |
| 16608 | |
| 16609 | else |
| 16610 | tagname="" |
| 16611 | fi |
| 16612 | ;; |
| 16613 | |
| 16614 | GCJ) |
| 16615 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
| 16616 | |
| 16617 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16618 | # Source file extension for Java test sources. |
| 16619 | ac_ext=java |
| 16620 | |
| 16621 | # Object file extension for compiled Java test sources. |
| 16622 | objext=o |
| 16623 | objext_GCJ=$objext |
| 16624 | |
| 16625 | # Code to be used in simple compile tests |
| 16626 | lt_simple_compile_test_code="class foo {}\n" |
| 16627 | |
| 16628 | # Code to be used in simple link tests |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16629 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16630 | |
| 16631 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 16632 | |
| 16633 | # If no C compiler was specified, use CC. |
| 16634 | LTCC=${LTCC-"$CC"} |
| 16635 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16636 | # If no C compiler flags were specified, use CFLAGS. |
| 16637 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 16638 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16639 | # Allow CC to be a program name with arguments. |
| 16640 | compiler=$CC |
| 16641 | |
| 16642 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16643 | # save warnings/boilerplate of simple test code |
| 16644 | ac_outfile=conftest.$ac_objext |
| 16645 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 16646 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 16647 | _lt_compiler_boilerplate=`cat conftest.err` |
| 16648 | $rm conftest* |
| 16649 | |
| 16650 | ac_outfile=conftest.$ac_objext |
| 16651 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 16652 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 16653 | _lt_linker_boilerplate=`cat conftest.err` |
| 16654 | $rm conftest* |
| 16655 | |
| 16656 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16657 | # Allow CC to be a program name with arguments. |
| 16658 | lt_save_CC="$CC" |
| 16659 | CC=${GCJ-"gcj"} |
| 16660 | compiler=$CC |
| 16661 | compiler_GCJ=$CC |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16662 | for cc_temp in $compiler""; do |
| 16663 | case $cc_temp in |
| 16664 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 16665 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 16666 | \-*) ;; |
| 16667 | *) break;; |
| 16668 | esac |
| 16669 | done |
| 16670 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 16671 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16672 | |
| 16673 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
| 16674 | archive_cmds_need_lc_GCJ=no |
| 16675 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16676 | old_archive_cmds_GCJ=$old_archive_cmds |
| 16677 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16678 | |
| 16679 | lt_prog_compiler_no_builtin_flag_GCJ= |
| 16680 | |
| 16681 | if test "$GCC" = yes; then |
| 16682 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
| 16683 | |
| 16684 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16685 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 16686 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16687 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 16688 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16689 | else |
| 16690 | lt_cv_prog_compiler_rtti_exceptions=no |
| 16691 | ac_outfile=conftest.$ac_objext |
| 16692 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16693 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 16694 | # Insert the option either (1) after the last *FLAGS variable, or |
| 16695 | # (2) before a word containing "conftest.", or (3) at the end. |
| 16696 | # Note that $ac_compile itself does not contain backslashes and begins |
| 16697 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 16698 | # The option is referenced via a variable to avoid confusing sed. |
| 16699 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16700 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16701 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 16702 | -e 's:$: $lt_compiler_flag:'` |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 16703 | (eval echo "\"\$as_me:16703: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16704 | (eval "$lt_compile" 2>conftest.err) |
| 16705 | ac_status=$? |
| 16706 | cat conftest.err >&5 |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 16707 | echo "$as_me:16707: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16708 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 16709 | # The compiler can only warn and ignore the option if not recognized |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16710 | # So say no if there are warnings other than the usual output. |
| 16711 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 16712 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 16713 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16714 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 16715 | fi |
| 16716 | fi |
| 16717 | $rm conftest* |
| 16718 | |
| 16719 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16720 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 16721 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16722 | |
| 16723 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 16724 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
| 16725 | else |
| 16726 | : |
| 16727 | fi |
| 16728 | |
| 16729 | fi |
| 16730 | |
| 16731 | lt_prog_compiler_wl_GCJ= |
| 16732 | lt_prog_compiler_pic_GCJ= |
| 16733 | lt_prog_compiler_static_GCJ= |
| 16734 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16735 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 16736 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16737 | |
| 16738 | if test "$GCC" = yes; then |
| 16739 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16740 | lt_prog_compiler_static_GCJ='-static' |
| 16741 | |
| 16742 | case $host_os in |
| 16743 | aix*) |
| 16744 | # All AIX code is PIC. |
| 16745 | if test "$host_cpu" = ia64; then |
| 16746 | # AIX 5 now supports IA64 processor |
| 16747 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16748 | fi |
| 16749 | ;; |
| 16750 | |
| 16751 | amigaos*) |
| 16752 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 16753 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 16754 | # like `-m68040'. |
| 16755 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
| 16756 | ;; |
| 16757 | |
| 16758 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 16759 | # PIC is the default for these OSes. |
| 16760 | ;; |
| 16761 | |
| 16762 | mingw* | pw32* | os2*) |
| 16763 | # This hack is so that the source file can tell whether it is being |
| 16764 | # built for inclusion in a dll (and should export symbols for example). |
| 16765 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 16766 | ;; |
| 16767 | |
| 16768 | darwin* | rhapsody*) |
| 16769 | # PIC is the default on this platform |
| 16770 | # Common symbols not allowed in MH_DYLIB files |
| 16771 | lt_prog_compiler_pic_GCJ='-fno-common' |
| 16772 | ;; |
| 16773 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16774 | interix3*) |
| 16775 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 16776 | # Instead, we relocate shared libraries at runtime. |
| 16777 | ;; |
| 16778 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16779 | msdosdjgpp*) |
| 16780 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 16781 | # on systems that don't support them. |
| 16782 | lt_prog_compiler_can_build_shared_GCJ=no |
| 16783 | enable_shared=no |
| 16784 | ;; |
| 16785 | |
| 16786 | sysv4*MP*) |
| 16787 | if test -d /usr/nec; then |
| 16788 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
| 16789 | fi |
| 16790 | ;; |
| 16791 | |
| 16792 | hpux*) |
| 16793 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 16794 | # not for PA HP-UX. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16795 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16796 | hppa*64*|ia64*) |
| 16797 | # +Z the default |
| 16798 | ;; |
| 16799 | *) |
| 16800 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 16801 | ;; |
| 16802 | esac |
| 16803 | ;; |
| 16804 | |
| 16805 | *) |
| 16806 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 16807 | ;; |
| 16808 | esac |
| 16809 | else |
| 16810 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 16811 | case $host_os in |
| 16812 | aix*) |
| 16813 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16814 | if test "$host_cpu" = ia64; then |
| 16815 | # AIX 5 now supports IA64 processor |
| 16816 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16817 | else |
| 16818 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
| 16819 | fi |
| 16820 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16821 | darwin*) |
| 16822 | # PIC is the default on this platform |
| 16823 | # Common symbols not allowed in MH_DYLIB files |
| 16824 | case $cc_basename in |
| 16825 | xlc*) |
| 16826 | lt_prog_compiler_pic_GCJ='-qnocommon' |
| 16827 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16828 | ;; |
| 16829 | esac |
| 16830 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16831 | |
| 16832 | mingw* | pw32* | os2*) |
| 16833 | # This hack is so that the source file can tell whether it is being |
| 16834 | # built for inclusion in a dll (and should export symbols for example). |
| 16835 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 16836 | ;; |
| 16837 | |
| 16838 | hpux9* | hpux10* | hpux11*) |
| 16839 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16840 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 16841 | # not for PA HP-UX. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16842 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16843 | hppa*64*|ia64*) |
| 16844 | # +Z the default |
| 16845 | ;; |
| 16846 | *) |
| 16847 | lt_prog_compiler_pic_GCJ='+Z' |
| 16848 | ;; |
| 16849 | esac |
| 16850 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 16851 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
| 16852 | ;; |
| 16853 | |
| 16854 | irix5* | irix6* | nonstopux*) |
| 16855 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16856 | # PIC (with -KPIC) is the default. |
| 16857 | lt_prog_compiler_static_GCJ='-non_shared' |
| 16858 | ;; |
| 16859 | |
| 16860 | newsos6) |
| 16861 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 16862 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16863 | ;; |
| 16864 | |
| 16865 | linux*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16866 | case $cc_basename in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16867 | icc* | ecc*) |
| 16868 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16869 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 16870 | lt_prog_compiler_static_GCJ='-static' |
| 16871 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16872 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 16873 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 16874 | # which looks to be a dead project) |
| 16875 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16876 | lt_prog_compiler_pic_GCJ='-fpic' |
| 16877 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16878 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16879 | ccc*) |
| 16880 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16881 | # All Alpha code is PIC. |
| 16882 | lt_prog_compiler_static_GCJ='-non_shared' |
| 16883 | ;; |
| 16884 | esac |
| 16885 | ;; |
| 16886 | |
| 16887 | osf3* | osf4* | osf5*) |
| 16888 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16889 | # All OSF/1 code is PIC. |
| 16890 | lt_prog_compiler_static_GCJ='-non_shared' |
| 16891 | ;; |
| 16892 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16893 | solaris*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16894 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 16895 | lt_prog_compiler_static_GCJ='-Bstatic' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16896 | case $cc_basename in |
| 16897 | f77* | f90* | f95*) |
| 16898 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
| 16899 | *) |
| 16900 | lt_prog_compiler_wl_GCJ='-Wl,';; |
| 16901 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16902 | ;; |
| 16903 | |
| 16904 | sunos4*) |
| 16905 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
| 16906 | lt_prog_compiler_pic_GCJ='-PIC' |
| 16907 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16908 | ;; |
| 16909 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16910 | sysv4 | sysv4.2uw2* | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16911 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16912 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 16913 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16914 | ;; |
| 16915 | |
| 16916 | sysv4*MP*) |
| 16917 | if test -d /usr/nec ;then |
| 16918 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
| 16919 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16920 | fi |
| 16921 | ;; |
| 16922 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16923 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 16924 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16925 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 16926 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16927 | ;; |
| 16928 | |
| 16929 | unicos*) |
| 16930 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16931 | lt_prog_compiler_can_build_shared_GCJ=no |
| 16932 | ;; |
| 16933 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16934 | uts4*) |
| 16935 | lt_prog_compiler_pic_GCJ='-pic' |
| 16936 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16937 | ;; |
| 16938 | |
| 16939 | *) |
| 16940 | lt_prog_compiler_can_build_shared_GCJ=no |
| 16941 | ;; |
| 16942 | esac |
| 16943 | fi |
| 16944 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16945 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
| 16946 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16947 | |
| 16948 | # |
| 16949 | # Check to make sure the PIC flag actually works. |
| 16950 | # |
| 16951 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
| 16952 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16953 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
| 16954 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16955 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
| 16956 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16957 | else |
| 16958 | lt_prog_compiler_pic_works_GCJ=no |
| 16959 | ac_outfile=conftest.$ac_objext |
| 16960 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16961 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
| 16962 | # Insert the option either (1) after the last *FLAGS variable, or |
| 16963 | # (2) before a word containing "conftest.", or (3) at the end. |
| 16964 | # Note that $ac_compile itself does not contain backslashes and begins |
| 16965 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 16966 | # The option is referenced via a variable to avoid confusing sed. |
| 16967 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16968 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16969 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 16970 | -e 's:$: $lt_compiler_flag:'` |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 16971 | (eval echo "\"\$as_me:16971: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16972 | (eval "$lt_compile" 2>conftest.err) |
| 16973 | ac_status=$? |
| 16974 | cat conftest.err >&5 |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 16975 | echo "$as_me:16975: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16976 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 16977 | # The compiler can only warn and ignore the option if not recognized |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16978 | # So say no if there are warnings other than the usual output. |
| 16979 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 16980 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 16981 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16982 | lt_prog_compiler_pic_works_GCJ=yes |
| 16983 | fi |
| 16984 | fi |
| 16985 | $rm conftest* |
| 16986 | |
| 16987 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16988 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
| 16989 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16990 | |
| 16991 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
| 16992 | case $lt_prog_compiler_pic_GCJ in |
| 16993 | "" | " "*) ;; |
| 16994 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
| 16995 | esac |
| 16996 | else |
| 16997 | lt_prog_compiler_pic_GCJ= |
| 16998 | lt_prog_compiler_can_build_shared_GCJ=no |
| 16999 | fi |
| 17000 | |
| 17001 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17002 | case $host_os in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17003 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 17004 | *djgpp*) |
| 17005 | lt_prog_compiler_pic_GCJ= |
| 17006 | ;; |
| 17007 | *) |
| 17008 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
| 17009 | ;; |
| 17010 | esac |
| 17011 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17012 | # |
| 17013 | # Check to make sure the static flag actually works. |
| 17014 | # |
| 17015 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
| 17016 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 17017 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 17018 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
| 17019 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17020 | else |
| 17021 | lt_prog_compiler_static_works_GCJ=no |
| 17022 | save_LDFLAGS="$LDFLAGS" |
| 17023 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 17024 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 17025 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 17026 | # The linker can only warn and ignore the option if not recognized |
| 17027 | # So say no if there are warnings |
| 17028 | if test -s conftest.err; then |
| 17029 | # Append any errors to the config.log. |
| 17030 | cat conftest.err 1>&5 |
| 17031 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 17032 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 17033 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 17034 | lt_prog_compiler_static_works_GCJ=yes |
| 17035 | fi |
| 17036 | else |
| 17037 | lt_prog_compiler_static_works_GCJ=yes |
| 17038 | fi |
| 17039 | fi |
| 17040 | $rm conftest* |
| 17041 | LDFLAGS="$save_LDFLAGS" |
| 17042 | |
| 17043 | fi |
| 17044 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
| 17045 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } |
| 17046 | |
| 17047 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
| 17048 | : |
| 17049 | else |
| 17050 | lt_prog_compiler_static_GCJ= |
| 17051 | fi |
| 17052 | |
| 17053 | |
| 17054 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 17055 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17056 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
| 17057 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17058 | else |
| 17059 | lt_cv_prog_compiler_c_o_GCJ=no |
| 17060 | $rm -r conftest 2>/dev/null |
| 17061 | mkdir conftest |
| 17062 | cd conftest |
| 17063 | mkdir out |
| 17064 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 17065 | |
| 17066 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 17067 | # Insert the option either (1) after the last *FLAGS variable, or |
| 17068 | # (2) before a word containing "conftest.", or (3) at the end. |
| 17069 | # Note that $ac_compile itself does not contain backslashes and begins |
| 17070 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 17071 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17072 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17073 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 17074 | -e 's:$: $lt_compiler_flag:'` |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 17075 | (eval echo "\"\$as_me:17075: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17076 | (eval "$lt_compile" 2>out/conftest.err) |
| 17077 | ac_status=$? |
| 17078 | cat out/conftest.err >&5 |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 17079 | echo "$as_me:17079: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17080 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 17081 | then |
| 17082 | # The compiler can only warn and ignore the option if not recognized |
| 17083 | # So say no if there are warnings |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17084 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 17085 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 17086 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17087 | lt_cv_prog_compiler_c_o_GCJ=yes |
| 17088 | fi |
| 17089 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17090 | chmod u+w . 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17091 | $rm conftest* |
| 17092 | # SGI C++ compiler will create directory out/ii_files/ for |
| 17093 | # template instantiation |
| 17094 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 17095 | $rm out/* && rmdir out |
| 17096 | cd .. |
| 17097 | rmdir conftest |
| 17098 | $rm conftest* |
| 17099 | |
| 17100 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17101 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
| 17102 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17103 | |
| 17104 | |
| 17105 | hard_links="nottested" |
| 17106 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
| 17107 | # do not overwrite the value of need_locks provided by the user |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17108 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 17109 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17110 | hard_links=yes |
| 17111 | $rm conftest* |
| 17112 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 17113 | touch conftest.a |
| 17114 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 17115 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17116 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 17117 | echo "${ECHO_T}$hard_links" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17118 | if test "$hard_links" = no; then |
| 17119 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 17120 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 17121 | need_locks=warn |
| 17122 | fi |
| 17123 | else |
| 17124 | need_locks=no |
| 17125 | fi |
| 17126 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17127 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 17128 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17129 | |
| 17130 | runpath_var= |
| 17131 | allow_undefined_flag_GCJ= |
| 17132 | enable_shared_with_static_runtimes_GCJ=no |
| 17133 | archive_cmds_GCJ= |
| 17134 | archive_expsym_cmds_GCJ= |
| 17135 | old_archive_From_new_cmds_GCJ= |
| 17136 | old_archive_from_expsyms_cmds_GCJ= |
| 17137 | export_dynamic_flag_spec_GCJ= |
| 17138 | whole_archive_flag_spec_GCJ= |
| 17139 | thread_safe_flag_spec_GCJ= |
| 17140 | hardcode_libdir_flag_spec_GCJ= |
| 17141 | hardcode_libdir_flag_spec_ld_GCJ= |
| 17142 | hardcode_libdir_separator_GCJ= |
| 17143 | hardcode_direct_GCJ=no |
| 17144 | hardcode_minus_L_GCJ=no |
| 17145 | hardcode_shlibpath_var_GCJ=unsupported |
| 17146 | link_all_deplibs_GCJ=unknown |
| 17147 | hardcode_automatic_GCJ=no |
| 17148 | module_cmds_GCJ= |
| 17149 | module_expsym_cmds_GCJ= |
| 17150 | always_export_symbols_GCJ=no |
| 17151 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 17152 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 17153 | # included in the symbol list |
| 17154 | include_expsyms_GCJ= |
| 17155 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 17156 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 17157 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 17158 | # as well as any symbol that contains `d'. |
| 17159 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
| 17160 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 17161 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 17162 | # the symbol is explicitly referenced. Since portable code cannot |
| 17163 | # rely on this symbol name, it's probably fine to never include it in |
| 17164 | # preloaded symbol tables. |
| 17165 | extract_expsyms_cmds= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17166 | # Just being paranoid about ensuring that cc_basename is set. |
| 17167 | for cc_temp in $compiler""; do |
| 17168 | case $cc_temp in |
| 17169 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 17170 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 17171 | \-*) ;; |
| 17172 | *) break;; |
| 17173 | esac |
| 17174 | done |
| 17175 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17176 | |
| 17177 | case $host_os in |
| 17178 | cygwin* | mingw* | pw32*) |
| 17179 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 17180 | # When not using gcc, we currently assume that we are using |
| 17181 | # Microsoft Visual C++. |
| 17182 | if test "$GCC" != yes; then |
| 17183 | with_gnu_ld=no |
| 17184 | fi |
| 17185 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17186 | interix*) |
| 17187 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 17188 | with_gnu_ld=yes |
| 17189 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17190 | openbsd*) |
| 17191 | with_gnu_ld=no |
| 17192 | ;; |
| 17193 | esac |
| 17194 | |
| 17195 | ld_shlibs_GCJ=yes |
| 17196 | if test "$with_gnu_ld" = yes; then |
| 17197 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 17198 | wlarc='${wl}' |
| 17199 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17200 | # Set some defaults for GNU ld with shared library support. These |
| 17201 | # are reset later if shared libraries are not supported. Putting them |
| 17202 | # here allows them to be overridden if necessary. |
| 17203 | runpath_var=LD_RUN_PATH |
| 17204 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
| 17205 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
| 17206 | # ancient GNU ld didn't support --whole-archive et. al. |
| 17207 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 17208 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 17209 | else |
| 17210 | whole_archive_flag_spec_GCJ= |
| 17211 | fi |
| 17212 | supports_anon_versioning=no |
| 17213 | case `$LD -v 2>/dev/null` in |
| 17214 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 17215 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 17216 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 17217 | *\ 2.11.*) ;; # other 2.11 versions |
| 17218 | *) supports_anon_versioning=yes ;; |
| 17219 | esac |
| 17220 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17221 | # See if GNU ld supports shared libraries. |
| 17222 | case $host_os in |
| 17223 | aix3* | aix4* | aix5*) |
| 17224 | # On AIX/PPC, the GNU linker is very broken |
| 17225 | if test "$host_cpu" != ia64; then |
| 17226 | ld_shlibs_GCJ=no |
| 17227 | cat <<EOF 1>&2 |
| 17228 | |
| 17229 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 17230 | *** to be unable to reliably create shared libraries on AIX. |
| 17231 | *** Therefore, libtool is disabling shared libraries support. If you |
| 17232 | *** really care for shared libraries, you may want to modify your PATH |
| 17233 | *** so that a non-GNU linker is found, and then restart. |
| 17234 | |
| 17235 | EOF |
| 17236 | fi |
| 17237 | ;; |
| 17238 | |
| 17239 | amigaos*) |
| 17240 | 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)' |
| 17241 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17242 | hardcode_minus_L_GCJ=yes |
| 17243 | |
| 17244 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 17245 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 17246 | # to version 4, is to share data among multiple programs linked |
| 17247 | # with the same dynamic library. Since this doesn't match the |
| 17248 | # behavior of shared libraries on other platforms, we can't use |
| 17249 | # them. |
| 17250 | ld_shlibs_GCJ=no |
| 17251 | ;; |
| 17252 | |
| 17253 | beos*) |
| 17254 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 17255 | allow_undefined_flag_GCJ=unsupported |
| 17256 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 17257 | # support --undefined. This deserves some investigation. FIXME |
| 17258 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17259 | else |
| 17260 | ld_shlibs_GCJ=no |
| 17261 | fi |
| 17262 | ;; |
| 17263 | |
| 17264 | cygwin* | mingw* | pw32*) |
| 17265 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
| 17266 | # as there is no search path for DLLs. |
| 17267 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17268 | allow_undefined_flag_GCJ=unsupported |
| 17269 | always_export_symbols_GCJ=no |
| 17270 | enable_shared_with_static_runtimes_GCJ=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17271 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17272 | |
| 17273 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17274 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17275 | # If the export-symbols file already is a .def file (1st line |
| 17276 | # is EXPORTS), use it as is; otherwise, prepend... |
| 17277 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 17278 | cp $export_symbols $output_objdir/$soname.def; |
| 17279 | else |
| 17280 | echo EXPORTS > $output_objdir/$soname.def; |
| 17281 | cat $export_symbols >> $output_objdir/$soname.def; |
| 17282 | fi~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17283 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17284 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17285 | ld_shlibs_GCJ=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17286 | fi |
| 17287 | ;; |
| 17288 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17289 | interix3*) |
| 17290 | hardcode_direct_GCJ=no |
| 17291 | hardcode_shlibpath_var_GCJ=no |
| 17292 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 17293 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 17294 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 17295 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 17296 | # default) and relocated if they conflict, which is a slow very memory |
| 17297 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 17298 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 17299 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 17300 | 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' |
| 17301 | 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' |
| 17302 | ;; |
| 17303 | |
| 17304 | linux*) |
| 17305 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 17306 | tmp_addflag= |
| 17307 | case $cc_basename,$host_cpu in |
| 17308 | pgcc*) # Portland Group C compiler |
| 17309 | 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' |
| 17310 | tmp_addflag=' $pic_flag' |
| 17311 | ;; |
| 17312 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 17313 | 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' |
| 17314 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 17315 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 17316 | tmp_addflag=' -i_dynamic' ;; |
| 17317 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 17318 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 17319 | ifc* | ifort*) # Intel Fortran compiler |
| 17320 | tmp_addflag=' -nofor_main' ;; |
| 17321 | esac |
| 17322 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17323 | |
| 17324 | if test $supports_anon_versioning = yes; then |
| 17325 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 17326 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 17327 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 17328 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 17329 | fi |
| 17330 | else |
| 17331 | ld_shlibs_GCJ=no |
| 17332 | fi |
| 17333 | ;; |
| 17334 | |
| 17335 | netbsd*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17336 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 17337 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 17338 | wlarc= |
| 17339 | else |
| 17340 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17341 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 17342 | fi |
| 17343 | ;; |
| 17344 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17345 | solaris*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17346 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 17347 | ld_shlibs_GCJ=no |
| 17348 | cat <<EOF 1>&2 |
| 17349 | |
| 17350 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 17351 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 17352 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 17353 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 17354 | *** your PATH or compiler configuration so that the native linker is |
| 17355 | *** used, and then restart. |
| 17356 | |
| 17357 | EOF |
| 17358 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 17359 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17360 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 17361 | else |
| 17362 | ld_shlibs_GCJ=no |
| 17363 | fi |
| 17364 | ;; |
| 17365 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17366 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 17367 | case `$LD -v 2>&1` in |
| 17368 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 17369 | ld_shlibs_GCJ=no |
| 17370 | cat <<_LT_EOF 1>&2 |
| 17371 | |
| 17372 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 17373 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 17374 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 17375 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 17376 | *** your PATH or compiler configuration so that the native linker is |
| 17377 | *** used, and then restart. |
| 17378 | |
| 17379 | _LT_EOF |
| 17380 | ;; |
| 17381 | *) |
| 17382 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 17383 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 17384 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 17385 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 17386 | else |
| 17387 | ld_shlibs_GCJ=no |
| 17388 | fi |
| 17389 | ;; |
| 17390 | esac |
| 17391 | ;; |
| 17392 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17393 | sunos4*) |
| 17394 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 17395 | wlarc= |
| 17396 | hardcode_direct_GCJ=yes |
| 17397 | hardcode_shlibpath_var_GCJ=no |
| 17398 | ;; |
| 17399 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17400 | *) |
| 17401 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 17402 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17403 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 17404 | else |
| 17405 | ld_shlibs_GCJ=no |
| 17406 | fi |
| 17407 | ;; |
| 17408 | esac |
| 17409 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17410 | if test "$ld_shlibs_GCJ" = no; then |
| 17411 | runpath_var= |
| 17412 | hardcode_libdir_flag_spec_GCJ= |
| 17413 | export_dynamic_flag_spec_GCJ= |
| 17414 | whole_archive_flag_spec_GCJ= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17415 | fi |
| 17416 | else |
| 17417 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 17418 | case $host_os in |
| 17419 | aix3*) |
| 17420 | allow_undefined_flag_GCJ=unsupported |
| 17421 | always_export_symbols_GCJ=yes |
| 17422 | 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' |
| 17423 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 17424 | # are no directories specified by -L. |
| 17425 | hardcode_minus_L_GCJ=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17426 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17427 | # Neither direct hardcoding nor static linking is supported with a |
| 17428 | # broken collect2. |
| 17429 | hardcode_direct_GCJ=unsupported |
| 17430 | fi |
| 17431 | ;; |
| 17432 | |
| 17433 | aix4* | aix5*) |
| 17434 | if test "$host_cpu" = ia64; then |
| 17435 | # On IA64, the linker does run time linking by default, so we don't |
| 17436 | # have to do anything special. |
| 17437 | aix_use_runtimelinking=no |
| 17438 | exp_sym_flag='-Bexport' |
| 17439 | no_entry_flag="" |
| 17440 | else |
| 17441 | # If we're using GNU nm, then we don't want the "-C" option. |
| 17442 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 17443 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 17444 | 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' |
| 17445 | else |
| 17446 | 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' |
| 17447 | fi |
| 17448 | aix_use_runtimelinking=no |
| 17449 | |
| 17450 | # Test if we are trying to use run time linking or normal |
| 17451 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 17452 | # need to do runtime linking. |
| 17453 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 17454 | for ld_flag in $LDFLAGS; do |
| 17455 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 17456 | aix_use_runtimelinking=yes |
| 17457 | break |
| 17458 | fi |
| 17459 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17460 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17461 | esac |
| 17462 | |
| 17463 | exp_sym_flag='-bexport' |
| 17464 | no_entry_flag='-bnoentry' |
| 17465 | fi |
| 17466 | |
| 17467 | # When large executables or shared objects are built, AIX ld can |
| 17468 | # have problems creating the table of contents. If linking a library |
| 17469 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 17470 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 17471 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 17472 | |
| 17473 | archive_cmds_GCJ='' |
| 17474 | hardcode_direct_GCJ=yes |
| 17475 | hardcode_libdir_separator_GCJ=':' |
| 17476 | link_all_deplibs_GCJ=yes |
| 17477 | |
| 17478 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17479 | case $host_os in aix4.[012]|aix4.[012].*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17480 | # We only want to do this on AIX 4.2 and lower, the check |
| 17481 | # below for broken collect2 doesn't work under 4.3+ |
| 17482 | collect2name=`${CC} -print-prog-name=collect2` |
| 17483 | if test -f "$collect2name" && \ |
| 17484 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 17485 | then |
| 17486 | # We have reworked collect2 |
| 17487 | hardcode_direct_GCJ=yes |
| 17488 | else |
| 17489 | # We have old collect2 |
| 17490 | hardcode_direct_GCJ=unsupported |
| 17491 | # It fails to find uninstalled libraries when the uninstalled |
| 17492 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 17493 | # to unsupported forces relinking |
| 17494 | hardcode_minus_L_GCJ=yes |
| 17495 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17496 | hardcode_libdir_separator_GCJ= |
| 17497 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17498 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17499 | esac |
| 17500 | shared_flag='-shared' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17501 | if test "$aix_use_runtimelinking" = yes; then |
| 17502 | shared_flag="$shared_flag "'${wl}-G' |
| 17503 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17504 | else |
| 17505 | # not using gcc |
| 17506 | if test "$host_cpu" = ia64; then |
| 17507 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 17508 | # chokes on -Wl,-G. The following line is correct: |
| 17509 | shared_flag='-G' |
| 17510 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17511 | if test "$aix_use_runtimelinking" = yes; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17512 | shared_flag='${wl}-G' |
| 17513 | else |
| 17514 | shared_flag='${wl}-bM:SRE' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17515 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17516 | fi |
| 17517 | fi |
| 17518 | |
| 17519 | # It seems that -bexpall does not export symbols beginning with |
| 17520 | # underscore (_), so it is better to generate a list of symbols to export. |
| 17521 | always_export_symbols_GCJ=yes |
| 17522 | if test "$aix_use_runtimelinking" = yes; then |
| 17523 | # Warning - without using the other runtime loading flags (-brtl), |
| 17524 | # -berok will link without error, but may produce a broken library. |
| 17525 | allow_undefined_flag_GCJ='-berok' |
| 17526 | # Determine the default libpath from the value encoded in an empty executable. |
| 17527 | cat >conftest.$ac_ext <<_ACEOF |
| 17528 | /* confdefs.h. */ |
| 17529 | _ACEOF |
| 17530 | cat confdefs.h >>conftest.$ac_ext |
| 17531 | cat >>conftest.$ac_ext <<_ACEOF |
| 17532 | /* end confdefs.h. */ |
| 17533 | |
| 17534 | int |
| 17535 | main () |
| 17536 | { |
| 17537 | |
| 17538 | ; |
| 17539 | return 0; |
| 17540 | } |
| 17541 | _ACEOF |
| 17542 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17543 | if { (ac_try="$ac_link" |
| 17544 | case "(($ac_try" in |
| 17545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17546 | *) ac_try_echo=$ac_try;; |
| 17547 | esac |
| 17548 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17549 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17550 | ac_status=$? |
| 17551 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17552 | rm -f conftest.er1 |
| 17553 | cat conftest.err >&5 |
| 17554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17555 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17556 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17557 | { (case "(($ac_try" in |
| 17558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17559 | *) ac_try_echo=$ac_try;; |
| 17560 | esac |
| 17561 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17562 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17563 | ac_status=$? |
| 17564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17565 | (exit $ac_status); }; } && |
| 17566 | { ac_try='test -s conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17567 | { (case "(($ac_try" in |
| 17568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17569 | *) ac_try_echo=$ac_try;; |
| 17570 | esac |
| 17571 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17572 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17573 | ac_status=$? |
| 17574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17575 | (exit $ac_status); }; }; then |
| 17576 | |
| 17577 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 17578 | }'` |
| 17579 | # Check for a 64-bit object if we didn't find anything. |
| 17580 | 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; } |
| 17581 | }'`; fi |
| 17582 | else |
| 17583 | echo "$as_me: failed program was:" >&5 |
| 17584 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17585 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17586 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17587 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17588 | |
| 17589 | rm -f core conftest.err conftest.$ac_objext \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17590 | conftest$ac_exeext conftest.$ac_ext |
| 17591 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 17592 | |
| 17593 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17594 | 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" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17595 | else |
| 17596 | if test "$host_cpu" = ia64; then |
| 17597 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
| 17598 | allow_undefined_flag_GCJ="-z nodefs" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17599 | 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" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17600 | else |
| 17601 | # Determine the default libpath from the value encoded in an empty executable. |
| 17602 | cat >conftest.$ac_ext <<_ACEOF |
| 17603 | /* confdefs.h. */ |
| 17604 | _ACEOF |
| 17605 | cat confdefs.h >>conftest.$ac_ext |
| 17606 | cat >>conftest.$ac_ext <<_ACEOF |
| 17607 | /* end confdefs.h. */ |
| 17608 | |
| 17609 | int |
| 17610 | main () |
| 17611 | { |
| 17612 | |
| 17613 | ; |
| 17614 | return 0; |
| 17615 | } |
| 17616 | _ACEOF |
| 17617 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17618 | if { (ac_try="$ac_link" |
| 17619 | case "(($ac_try" in |
| 17620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17621 | *) ac_try_echo=$ac_try;; |
| 17622 | esac |
| 17623 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17624 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17625 | ac_status=$? |
| 17626 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17627 | rm -f conftest.er1 |
| 17628 | cat conftest.err >&5 |
| 17629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17630 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17631 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17632 | { (case "(($ac_try" in |
| 17633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17634 | *) ac_try_echo=$ac_try;; |
| 17635 | esac |
| 17636 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17637 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17638 | ac_status=$? |
| 17639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17640 | (exit $ac_status); }; } && |
| 17641 | { ac_try='test -s conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17642 | { (case "(($ac_try" in |
| 17643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17644 | *) ac_try_echo=$ac_try;; |
| 17645 | esac |
| 17646 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17647 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17648 | ac_status=$? |
| 17649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17650 | (exit $ac_status); }; }; then |
| 17651 | |
| 17652 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 17653 | }'` |
| 17654 | # Check for a 64-bit object if we didn't find anything. |
| 17655 | 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; } |
| 17656 | }'`; fi |
| 17657 | else |
| 17658 | echo "$as_me: failed program was:" >&5 |
| 17659 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17660 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17661 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17662 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17663 | |
| 17664 | rm -f core conftest.err conftest.$ac_objext \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17665 | conftest$ac_exeext conftest.$ac_ext |
| 17666 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 17667 | |
| 17668 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 17669 | # Warning - without using the other run time loading flags, |
| 17670 | # -berok will link without error, but may produce a broken library. |
| 17671 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
| 17672 | allow_undefined_flag_GCJ=' ${wl}-berok' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17673 | # Exported symbols can be pulled into shared objects from archives |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17674 | whole_archive_flag_spec_GCJ='$convenience' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17675 | archive_cmds_need_lc_GCJ=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17676 | # This is similar to how AIX traditionally builds its shared libraries. |
| 17677 | 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' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17678 | fi |
| 17679 | fi |
| 17680 | ;; |
| 17681 | |
| 17682 | amigaos*) |
| 17683 | 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)' |
| 17684 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17685 | hardcode_minus_L_GCJ=yes |
| 17686 | # see comment about different semantics on the GNU ld section |
| 17687 | ld_shlibs_GCJ=no |
| 17688 | ;; |
| 17689 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17690 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17691 | export_dynamic_flag_spec_GCJ=-rdynamic |
| 17692 | ;; |
| 17693 | |
| 17694 | cygwin* | mingw* | pw32*) |
| 17695 | # When not using gcc, we currently assume that we are using |
| 17696 | # Microsoft Visual C++. |
| 17697 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 17698 | # no search path for DLLs. |
| 17699 | hardcode_libdir_flag_spec_GCJ=' ' |
| 17700 | allow_undefined_flag_GCJ=unsupported |
| 17701 | # Tell ltmain to make .lib files, not .a files. |
| 17702 | libext=lib |
| 17703 | # Tell ltmain to make .dll files, not .so files. |
| 17704 | shrext_cmds=".dll" |
| 17705 | # FIXME: Setting linknames here is a bad hack. |
| 17706 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 17707 | # The linker will automatically build a .lib file if we build a DLL. |
| 17708 | old_archive_From_new_cmds_GCJ='true' |
| 17709 | # FIXME: Should let the user specify the lib program. |
| 17710 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17711 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17712 | enable_shared_with_static_runtimes_GCJ=yes |
| 17713 | ;; |
| 17714 | |
| 17715 | darwin* | rhapsody*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17716 | case $host_os in |
| 17717 | rhapsody* | darwin1.[012]) |
| 17718 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
| 17719 | ;; |
| 17720 | *) # Darwin 1.3 on |
| 17721 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 17722 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 17723 | else |
| 17724 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 17725 | 10.[012]) |
| 17726 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 17727 | ;; |
| 17728 | 10.*) |
| 17729 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
| 17730 | ;; |
| 17731 | esac |
| 17732 | fi |
| 17733 | ;; |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 17734 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17735 | archive_cmds_need_lc_GCJ=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17736 | hardcode_direct_GCJ=no |
| 17737 | hardcode_automatic_GCJ=yes |
| 17738 | hardcode_shlibpath_var_GCJ=unsupported |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17739 | whole_archive_flag_spec_GCJ='' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17740 | link_all_deplibs_GCJ=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17741 | if test "$GCC" = yes ; then |
| 17742 | output_verbose_link_cmd='echo' |
| 17743 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 17744 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 17745 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 17746 | 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}' |
| 17747 | 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}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17748 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17749 | case $cc_basename in |
| 17750 | xlc*) |
| 17751 | output_verbose_link_cmd='echo' |
| 17752 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 17753 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 17754 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 17755 | 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}' |
| 17756 | 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}' |
| 17757 | ;; |
| 17758 | *) |
| 17759 | ld_shlibs_GCJ=no |
| 17760 | ;; |
| 17761 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17762 | fi |
| 17763 | ;; |
| 17764 | |
| 17765 | dgux*) |
| 17766 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17767 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17768 | hardcode_shlibpath_var_GCJ=no |
| 17769 | ;; |
| 17770 | |
| 17771 | freebsd1*) |
| 17772 | ld_shlibs_GCJ=no |
| 17773 | ;; |
| 17774 | |
| 17775 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 17776 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 17777 | # does not break anything, and helps significantly (at the cost of a little |
| 17778 | # extra space). |
| 17779 | freebsd2.2*) |
| 17780 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 17781 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 17782 | hardcode_direct_GCJ=yes |
| 17783 | hardcode_shlibpath_var_GCJ=no |
| 17784 | ;; |
| 17785 | |
| 17786 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 17787 | freebsd2*) |
| 17788 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 17789 | hardcode_direct_GCJ=yes |
| 17790 | hardcode_minus_L_GCJ=yes |
| 17791 | hardcode_shlibpath_var_GCJ=no |
| 17792 | ;; |
| 17793 | |
| 17794 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17795 | freebsd* | kfreebsd*-gnu | dragonfly*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17796 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 17797 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 17798 | hardcode_direct_GCJ=yes |
| 17799 | hardcode_shlibpath_var_GCJ=no |
| 17800 | ;; |
| 17801 | |
| 17802 | hpux9*) |
| 17803 | if test "$GCC" = yes; then |
| 17804 | 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' |
| 17805 | else |
| 17806 | 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' |
| 17807 | fi |
| 17808 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 17809 | hardcode_libdir_separator_GCJ=: |
| 17810 | hardcode_direct_GCJ=yes |
| 17811 | |
| 17812 | # hardcode_minus_L: Not really in the search PATH, |
| 17813 | # but as the default location of the library. |
| 17814 | hardcode_minus_L_GCJ=yes |
| 17815 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 17816 | ;; |
| 17817 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17818 | hpux10*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17819 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17820 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 17821 | else |
| 17822 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 17823 | fi |
| 17824 | if test "$with_gnu_ld" = no; then |
| 17825 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 17826 | hardcode_libdir_separator_GCJ=: |
| 17827 | |
| 17828 | hardcode_direct_GCJ=yes |
| 17829 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 17830 | |
| 17831 | # hardcode_minus_L: Not really in the search PATH, |
| 17832 | # but as the default location of the library. |
| 17833 | hardcode_minus_L_GCJ=yes |
| 17834 | fi |
| 17835 | ;; |
| 17836 | |
| 17837 | hpux11*) |
| 17838 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 17839 | case $host_cpu in |
| 17840 | hppa*64*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17841 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17842 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17843 | ia64*) |
| 17844 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 17845 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17846 | *) |
| 17847 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 17848 | ;; |
| 17849 | esac |
| 17850 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17851 | case $host_cpu in |
| 17852 | hppa*64*) |
| 17853 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17854 | ;; |
| 17855 | ia64*) |
| 17856 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17857 | ;; |
| 17858 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17859 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17860 | ;; |
| 17861 | esac |
| 17862 | fi |
| 17863 | if test "$with_gnu_ld" = no; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17864 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 17865 | hardcode_libdir_separator_GCJ=: |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 17866 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17867 | case $host_cpu in |
| 17868 | hppa*64*|ia64*) |
| 17869 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
| 17870 | hardcode_direct_GCJ=no |
| 17871 | hardcode_shlibpath_var_GCJ=no |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 17872 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17873 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17874 | hardcode_direct_GCJ=yes |
| 17875 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 17876 | |
| 17877 | # hardcode_minus_L: Not really in the search PATH, |
| 17878 | # but as the default location of the library. |
| 17879 | hardcode_minus_L_GCJ=yes |
| 17880 | ;; |
| 17881 | esac |
| 17882 | fi |
| 17883 | ;; |
| 17884 | |
| 17885 | irix5* | irix6* | nonstopux*) |
| 17886 | if test "$GCC" = yes; then |
| 17887 | 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' |
| 17888 | else |
| 17889 | 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' |
| 17890 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
| 17891 | fi |
| 17892 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 17893 | hardcode_libdir_separator_GCJ=: |
| 17894 | link_all_deplibs_GCJ=yes |
| 17895 | ;; |
| 17896 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17897 | netbsd*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17898 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 17899 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 17900 | else |
| 17901 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 17902 | fi |
| 17903 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 17904 | hardcode_direct_GCJ=yes |
| 17905 | hardcode_shlibpath_var_GCJ=no |
| 17906 | ;; |
| 17907 | |
| 17908 | newsos6) |
| 17909 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17910 | hardcode_direct_GCJ=yes |
| 17911 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 17912 | hardcode_libdir_separator_GCJ=: |
| 17913 | hardcode_shlibpath_var_GCJ=no |
| 17914 | ;; |
| 17915 | |
| 17916 | openbsd*) |
| 17917 | hardcode_direct_GCJ=yes |
| 17918 | hardcode_shlibpath_var_GCJ=no |
| 17919 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 17920 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17921 | archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17922 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 17923 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 17924 | else |
| 17925 | case $host_os in |
| 17926 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 17927 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 17928 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 17929 | ;; |
| 17930 | *) |
| 17931 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 17932 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 17933 | ;; |
| 17934 | esac |
| 17935 | fi |
| 17936 | ;; |
| 17937 | |
| 17938 | os2*) |
| 17939 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17940 | hardcode_minus_L_GCJ=yes |
| 17941 | allow_undefined_flag_GCJ=unsupported |
| 17942 | 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' |
| 17943 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 17944 | ;; |
| 17945 | |
| 17946 | osf3*) |
| 17947 | if test "$GCC" = yes; then |
| 17948 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 17949 | 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' |
| 17950 | else |
| 17951 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 17952 | 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' |
| 17953 | fi |
| 17954 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 17955 | hardcode_libdir_separator_GCJ=: |
| 17956 | ;; |
| 17957 | |
| 17958 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 17959 | if test "$GCC" = yes; then |
| 17960 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 17961 | 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' |
| 17962 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 17963 | else |
| 17964 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 17965 | 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' |
| 17966 | 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~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17967 | $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' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17968 | |
| 17969 | # Both c and cxx compiler support -rpath directly |
| 17970 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
| 17971 | fi |
| 17972 | hardcode_libdir_separator_GCJ=: |
| 17973 | ;; |
| 17974 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17975 | solaris*) |
| 17976 | no_undefined_flag_GCJ=' -z text' |
| 17977 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17978 | wlarc='${wl}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17979 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17980 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 17981 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 17982 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17983 | wlarc='' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17984 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17985 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 17986 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 17987 | fi |
| 17988 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 17989 | hardcode_shlibpath_var_GCJ=no |
| 17990 | case $host_os in |
| 17991 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17992 | *) |
| 17993 | # The compiler driver will combine linker options so we |
| 17994 | # cannot just pass the convience library names through |
| 17995 | # without $wl, iff we do not link with $LD. |
| 17996 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 17997 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 17998 | case $wlarc in |
| 17999 | '') |
| 18000 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
| 18001 | *) |
| 18002 | 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' ;; |
| 18003 | esac ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18004 | esac |
| 18005 | link_all_deplibs_GCJ=yes |
| 18006 | ;; |
| 18007 | |
| 18008 | sunos4*) |
| 18009 | if test "x$host_vendor" = xsequent; then |
| 18010 | # Use $CC to link under sequent, because it throws in some extra .o |
| 18011 | # files that make .init and .fini sections work. |
| 18012 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18013 | else |
| 18014 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 18015 | fi |
| 18016 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 18017 | hardcode_direct_GCJ=yes |
| 18018 | hardcode_minus_L_GCJ=yes |
| 18019 | hardcode_shlibpath_var_GCJ=no |
| 18020 | ;; |
| 18021 | |
| 18022 | sysv4) |
| 18023 | case $host_vendor in |
| 18024 | sni) |
| 18025 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 18026 | hardcode_direct_GCJ=yes # is this really true??? |
| 18027 | ;; |
| 18028 | siemens) |
| 18029 | ## LD is ld it makes a PLAMLIB |
| 18030 | ## CC just makes a GrossModule. |
| 18031 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 18032 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
| 18033 | hardcode_direct_GCJ=no |
| 18034 | ;; |
| 18035 | motorola) |
| 18036 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 18037 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
| 18038 | ;; |
| 18039 | esac |
| 18040 | runpath_var='LD_RUN_PATH' |
| 18041 | hardcode_shlibpath_var_GCJ=no |
| 18042 | ;; |
| 18043 | |
| 18044 | sysv4.3*) |
| 18045 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 18046 | hardcode_shlibpath_var_GCJ=no |
| 18047 | export_dynamic_flag_spec_GCJ='-Bexport' |
| 18048 | ;; |
| 18049 | |
| 18050 | sysv4*MP*) |
| 18051 | if test -d /usr/nec; then |
| 18052 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 18053 | hardcode_shlibpath_var_GCJ=no |
| 18054 | runpath_var=LD_RUN_PATH |
| 18055 | hardcode_runpath_var=yes |
| 18056 | ld_shlibs_GCJ=yes |
| 18057 | fi |
| 18058 | ;; |
| 18059 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18060 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 18061 | no_undefined_flag_GCJ='${wl}-z,text' |
| 18062 | archive_cmds_need_lc_GCJ=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18063 | hardcode_shlibpath_var_GCJ=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18064 | runpath_var='LD_RUN_PATH' |
bryner | 07f8ef5 | 2006-09-05 19:42:57 +0000 | [diff] [blame] | 18065 | |
mmentovai | 3261e8b | 2006-09-06 02:56:44 +0000 | [diff] [blame] | 18066 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18067 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18068 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
mmentovai | 3261e8b | 2006-09-06 02:56:44 +0000 | [diff] [blame] | 18069 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18070 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18071 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
mmentovai | 3261e8b | 2006-09-06 02:56:44 +0000 | [diff] [blame] | 18072 | fi |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 18073 | ;; |
| 18074 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18075 | sysv5* | sco3.2v5* | sco5v6*) |
| 18076 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 18077 | # link with -lc, and that would cause any symbols used from libc to |
| 18078 | # always be unresolved, which means just about no library would |
| 18079 | # ever link correctly. If we're not using GNU ld we use -z text |
| 18080 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 18081 | # as -z defs. |
| 18082 | no_undefined_flag_GCJ='${wl}-z,text' |
| 18083 | allow_undefined_flag_GCJ='${wl}-z,nodefs' |
| 18084 | archive_cmds_need_lc_GCJ=no |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 18085 | hardcode_shlibpath_var_GCJ=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18086 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 18087 | hardcode_libdir_separator_GCJ=':' |
| 18088 | link_all_deplibs_GCJ=yes |
| 18089 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 18090 | runpath_var='LD_RUN_PATH' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18091 | |
| 18092 | if test "$GCC" = yes; then |
| 18093 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18094 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18095 | else |
| 18096 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18097 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18098 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18099 | ;; |
| 18100 | |
| 18101 | uts4*) |
| 18102 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 18103 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 18104 | hardcode_shlibpath_var_GCJ=no |
| 18105 | ;; |
| 18106 | |
| 18107 | *) |
| 18108 | ld_shlibs_GCJ=no |
| 18109 | ;; |
| 18110 | esac |
| 18111 | fi |
| 18112 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18113 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
| 18114 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18115 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
| 18116 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18117 | # |
| 18118 | # Do we need to explicitly link libc? |
| 18119 | # |
| 18120 | case "x$archive_cmds_need_lc_GCJ" in |
| 18121 | x|xyes) |
| 18122 | # Assume -lc should be added |
| 18123 | archive_cmds_need_lc_GCJ=yes |
| 18124 | |
| 18125 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 18126 | case $archive_cmds_GCJ in |
| 18127 | *'~'*) |
| 18128 | # FIXME: we may have to deal with multi-command sequences. |
| 18129 | ;; |
| 18130 | '$CC '*) |
| 18131 | # Test whether the compiler implicitly links with -lc since on some |
| 18132 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 18133 | # to ld, don't add -lc before -lgcc. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18134 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 18135 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18136 | $rm conftest* |
| 18137 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 18138 | |
| 18139 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18140 | (eval $ac_compile) 2>&5 |
| 18141 | ac_status=$? |
| 18142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18143 | (exit $ac_status); } 2>conftest.err; then |
| 18144 | soname=conftest |
| 18145 | lib=conftest |
| 18146 | libobjs=conftest.$ac_objext |
| 18147 | deplibs= |
| 18148 | wl=$lt_prog_compiler_wl_GCJ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18149 | pic_flag=$lt_prog_compiler_pic_GCJ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18150 | compiler_flags=-v |
| 18151 | linker_flags=-v |
| 18152 | verstring= |
| 18153 | output_objdir=. |
| 18154 | libname=conftest |
| 18155 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
| 18156 | allow_undefined_flag_GCJ= |
| 18157 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 18158 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 18159 | ac_status=$? |
| 18160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18161 | (exit $ac_status); } |
| 18162 | then |
| 18163 | archive_cmds_need_lc_GCJ=no |
| 18164 | else |
| 18165 | archive_cmds_need_lc_GCJ=yes |
| 18166 | fi |
| 18167 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
| 18168 | else |
| 18169 | cat conftest.err 1>&5 |
| 18170 | fi |
| 18171 | $rm conftest* |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18172 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
| 18173 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18174 | ;; |
| 18175 | esac |
| 18176 | fi |
| 18177 | ;; |
| 18178 | esac |
| 18179 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18180 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 18181 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18182 | library_names_spec= |
| 18183 | libname_spec='lib$name' |
| 18184 | soname_spec= |
| 18185 | shrext_cmds=".so" |
| 18186 | postinstall_cmds= |
| 18187 | postuninstall_cmds= |
| 18188 | finish_cmds= |
| 18189 | finish_eval= |
| 18190 | shlibpath_var= |
| 18191 | shlibpath_overrides_runpath=unknown |
| 18192 | version_type=none |
| 18193 | dynamic_linker="$host_os ld.so" |
| 18194 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 18195 | if test "$GCC" = yes; then |
| 18196 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 18197 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 18198 | # if the path contains ";" then we assume it to be the separator |
| 18199 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 18200 | # assumed that no part of a normal pathname contains ";" but that should |
| 18201 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 18202 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 18203 | else |
| 18204 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 18205 | fi |
| 18206 | else |
| 18207 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 18208 | fi |
| 18209 | need_lib_prefix=unknown |
| 18210 | hardcode_into_libs=no |
| 18211 | |
| 18212 | # when you set need_version to no, make sure it does not cause -set_version |
| 18213 | # flags to be left without arguments |
| 18214 | need_version=unknown |
| 18215 | |
| 18216 | case $host_os in |
| 18217 | aix3*) |
| 18218 | version_type=linux |
| 18219 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 18220 | shlibpath_var=LIBPATH |
| 18221 | |
| 18222 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 18223 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18224 | ;; |
| 18225 | |
| 18226 | aix4* | aix5*) |
| 18227 | version_type=linux |
| 18228 | need_lib_prefix=no |
| 18229 | need_version=no |
| 18230 | hardcode_into_libs=yes |
| 18231 | if test "$host_cpu" = ia64; then |
| 18232 | # AIX 5 supports IA64 |
| 18233 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 18234 | shlibpath_var=LD_LIBRARY_PATH |
| 18235 | else |
| 18236 | # With GCC up to 2.95.x, collect2 would create an import file |
| 18237 | # for dependence libraries. The import file would start with |
| 18238 | # the line `#! .'. This would cause the generated library to |
| 18239 | # depend on `.', always an invalid library. This was fixed in |
| 18240 | # development snapshots of GCC prior to 3.0. |
| 18241 | case $host_os in |
| 18242 | aix4 | aix4.[01] | aix4.[01].*) |
| 18243 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 18244 | echo ' yes ' |
| 18245 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 18246 | : |
| 18247 | else |
| 18248 | can_build_shared=no |
| 18249 | fi |
| 18250 | ;; |
| 18251 | esac |
| 18252 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 18253 | # soname into executable. Probably we can add versioning support to |
| 18254 | # collect2, so additional links can be useful in future. |
| 18255 | if test "$aix_use_runtimelinking" = yes; then |
| 18256 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 18257 | # instead of lib<name>.a to let people know that these are not |
| 18258 | # typical AIX shared libraries. |
| 18259 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18260 | else |
| 18261 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 18262 | # and later when we are not doing run time linking. |
| 18263 | library_names_spec='${libname}${release}.a $libname.a' |
| 18264 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18265 | fi |
| 18266 | shlibpath_var=LIBPATH |
| 18267 | fi |
| 18268 | ;; |
| 18269 | |
| 18270 | amigaos*) |
| 18271 | library_names_spec='$libname.ixlibrary $libname.a' |
| 18272 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 18273 | 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' |
| 18274 | ;; |
| 18275 | |
| 18276 | beos*) |
| 18277 | library_names_spec='${libname}${shared_ext}' |
| 18278 | dynamic_linker="$host_os ld.so" |
| 18279 | shlibpath_var=LIBRARY_PATH |
| 18280 | ;; |
| 18281 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18282 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18283 | version_type=linux |
| 18284 | need_version=no |
| 18285 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18286 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18287 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 18288 | shlibpath_var=LD_LIBRARY_PATH |
| 18289 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 18290 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 18291 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 18292 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 18293 | # libtool to hard-code these into programs |
| 18294 | ;; |
| 18295 | |
| 18296 | cygwin* | mingw* | pw32*) |
| 18297 | version_type=windows |
| 18298 | shrext_cmds=".dll" |
| 18299 | need_version=no |
| 18300 | need_lib_prefix=no |
| 18301 | |
| 18302 | case $GCC,$host_os in |
| 18303 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 18304 | library_names_spec='$libname.dll.a' |
| 18305 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 18306 | postinstall_cmds='base_file=`basename \${file}`~ |
| 18307 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 18308 | dldir=$destdir/`dirname \$dlpath`~ |
| 18309 | test -d \$dldir || mkdir -p \$dldir~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18310 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 18311 | chmod a+x \$dldir/$dlname' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18312 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 18313 | dlpath=$dir/\$dldll~ |
| 18314 | $rm \$dlpath' |
| 18315 | shlibpath_overrides_runpath=yes |
| 18316 | |
| 18317 | case $host_os in |
| 18318 | cygwin*) |
| 18319 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 18320 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 18321 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 18322 | ;; |
| 18323 | mingw*) |
| 18324 | # MinGW DLLs use traditional 'lib' prefix |
| 18325 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 18326 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 18327 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 18328 | # It is most probably a Windows format PATH printed by |
| 18329 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 18330 | # path with ; separators, and with drive letters. We can handle the |
| 18331 | # drive letters (cygwin fileutils understands them), so leave them, |
| 18332 | # especially as we might pass files found there to a mingw objdump, |
| 18333 | # which wouldn't understand a cygwinified path. Ahh. |
| 18334 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 18335 | else |
| 18336 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 18337 | fi |
| 18338 | ;; |
| 18339 | pw32*) |
| 18340 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18341 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18342 | ;; |
| 18343 | esac |
| 18344 | ;; |
| 18345 | |
| 18346 | *) |
| 18347 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 18348 | ;; |
| 18349 | esac |
| 18350 | dynamic_linker='Win32 ld.exe' |
| 18351 | # FIXME: first we should search . and the directory the executable is in |
| 18352 | shlibpath_var=PATH |
| 18353 | ;; |
| 18354 | |
| 18355 | darwin* | rhapsody*) |
| 18356 | dynamic_linker="$host_os dyld" |
| 18357 | version_type=darwin |
| 18358 | need_lib_prefix=no |
| 18359 | need_version=no |
| 18360 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 18361 | soname_spec='${libname}${release}${major}$shared_ext' |
| 18362 | shlibpath_overrides_runpath=yes |
| 18363 | shlibpath_var=DYLD_LIBRARY_PATH |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18364 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18365 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 18366 | if test "$GCC" = yes; then |
| 18367 | 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"` |
| 18368 | else |
| 18369 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 18370 | fi |
| 18371 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 18372 | ;; |
| 18373 | |
| 18374 | dgux*) |
| 18375 | version_type=linux |
| 18376 | need_lib_prefix=no |
| 18377 | need_version=no |
| 18378 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 18379 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18380 | shlibpath_var=LD_LIBRARY_PATH |
| 18381 | ;; |
| 18382 | |
| 18383 | freebsd1*) |
| 18384 | dynamic_linker=no |
| 18385 | ;; |
| 18386 | |
| 18387 | kfreebsd*-gnu) |
| 18388 | version_type=linux |
| 18389 | need_lib_prefix=no |
| 18390 | need_version=no |
| 18391 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 18392 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18393 | shlibpath_var=LD_LIBRARY_PATH |
| 18394 | shlibpath_overrides_runpath=no |
| 18395 | hardcode_into_libs=yes |
| 18396 | dynamic_linker='GNU ld.so' |
| 18397 | ;; |
| 18398 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18399 | freebsd* | dragonfly*) |
| 18400 | # DragonFly does not have aout. When/if they implement a new |
| 18401 | # versioning mechanism, adjust this. |
| 18402 | if test -x /usr/bin/objformat; then |
| 18403 | objformat=`/usr/bin/objformat` |
| 18404 | else |
| 18405 | case $host_os in |
| 18406 | freebsd[123]*) objformat=aout ;; |
| 18407 | *) objformat=elf ;; |
| 18408 | esac |
| 18409 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18410 | version_type=freebsd-$objformat |
| 18411 | case $version_type in |
| 18412 | freebsd-elf*) |
| 18413 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 18414 | need_version=no |
| 18415 | need_lib_prefix=no |
| 18416 | ;; |
| 18417 | freebsd-*) |
| 18418 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 18419 | need_version=yes |
| 18420 | ;; |
| 18421 | esac |
| 18422 | shlibpath_var=LD_LIBRARY_PATH |
| 18423 | case $host_os in |
| 18424 | freebsd2*) |
| 18425 | shlibpath_overrides_runpath=yes |
| 18426 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18427 | freebsd3.[01]* | freebsdelf3.[01]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18428 | shlibpath_overrides_runpath=yes |
| 18429 | hardcode_into_libs=yes |
| 18430 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18431 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 18432 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18433 | shlibpath_overrides_runpath=no |
| 18434 | hardcode_into_libs=yes |
| 18435 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18436 | freebsd*) # from 4.6 on |
| 18437 | shlibpath_overrides_runpath=yes |
| 18438 | hardcode_into_libs=yes |
| 18439 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18440 | esac |
| 18441 | ;; |
| 18442 | |
| 18443 | gnu*) |
| 18444 | version_type=linux |
| 18445 | need_lib_prefix=no |
| 18446 | need_version=no |
| 18447 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 18448 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18449 | shlibpath_var=LD_LIBRARY_PATH |
| 18450 | hardcode_into_libs=yes |
| 18451 | ;; |
| 18452 | |
| 18453 | hpux9* | hpux10* | hpux11*) |
| 18454 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 18455 | # link against other versions. |
| 18456 | version_type=sunos |
| 18457 | need_lib_prefix=no |
| 18458 | need_version=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18459 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18460 | ia64*) |
| 18461 | shrext_cmds='.so' |
| 18462 | hardcode_into_libs=yes |
| 18463 | dynamic_linker="$host_os dld.so" |
| 18464 | shlibpath_var=LD_LIBRARY_PATH |
| 18465 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 18466 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18467 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18468 | if test "X$HPUX_IA64_MODE" = X32; then |
| 18469 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 18470 | else |
| 18471 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 18472 | fi |
| 18473 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 18474 | ;; |
| 18475 | hppa*64*) |
| 18476 | shrext_cmds='.sl' |
| 18477 | hardcode_into_libs=yes |
| 18478 | dynamic_linker="$host_os dld.sl" |
| 18479 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 18480 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 18481 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18482 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18483 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 18484 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 18485 | ;; |
| 18486 | *) |
| 18487 | shrext_cmds='.sl' |
| 18488 | dynamic_linker="$host_os dld.sl" |
| 18489 | shlibpath_var=SHLIB_PATH |
| 18490 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 18491 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18492 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18493 | ;; |
| 18494 | esac |
| 18495 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 18496 | postinstall_cmds='chmod 555 $lib' |
| 18497 | ;; |
| 18498 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18499 | interix3*) |
| 18500 | version_type=linux |
| 18501 | need_lib_prefix=no |
| 18502 | need_version=no |
| 18503 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 18504 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18505 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 18506 | shlibpath_var=LD_LIBRARY_PATH |
| 18507 | shlibpath_overrides_runpath=no |
| 18508 | hardcode_into_libs=yes |
| 18509 | ;; |
| 18510 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18511 | irix5* | irix6* | nonstopux*) |
| 18512 | case $host_os in |
| 18513 | nonstopux*) version_type=nonstopux ;; |
| 18514 | *) |
| 18515 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 18516 | version_type=linux |
| 18517 | else |
| 18518 | version_type=irix |
| 18519 | fi ;; |
| 18520 | esac |
| 18521 | need_lib_prefix=no |
| 18522 | need_version=no |
| 18523 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18524 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 18525 | case $host_os in |
| 18526 | irix5* | nonstopux*) |
| 18527 | libsuff= shlibsuff= |
| 18528 | ;; |
| 18529 | *) |
| 18530 | case $LD in # libtool.m4 will add one of these switches to LD |
| 18531 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 18532 | libsuff= shlibsuff= libmagic=32-bit;; |
| 18533 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 18534 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 18535 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 18536 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 18537 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 18538 | esac |
| 18539 | ;; |
| 18540 | esac |
| 18541 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 18542 | shlibpath_overrides_runpath=no |
| 18543 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 18544 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 18545 | hardcode_into_libs=yes |
| 18546 | ;; |
| 18547 | |
| 18548 | # No shared lib support for Linux oldld, aout, or coff. |
| 18549 | linux*oldld* | linux*aout* | linux*coff*) |
| 18550 | dynamic_linker=no |
| 18551 | ;; |
| 18552 | |
| 18553 | # This must be Linux ELF. |
| 18554 | linux*) |
| 18555 | version_type=linux |
| 18556 | need_lib_prefix=no |
| 18557 | need_version=no |
| 18558 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18559 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18560 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 18561 | shlibpath_var=LD_LIBRARY_PATH |
| 18562 | shlibpath_overrides_runpath=no |
| 18563 | # This implies no fast_install, which is unacceptable. |
| 18564 | # Some rework will be needed to allow for fast_install |
| 18565 | # before this can be enabled. |
| 18566 | hardcode_into_libs=yes |
| 18567 | |
| 18568 | # Append ld.so.conf contents to the search path |
| 18569 | if test -f /etc/ld.so.conf; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18570 | 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' ' '` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18571 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 18572 | fi |
| 18573 | |
| 18574 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 18575 | # powerpc, because MkLinux only supported shared libraries with the |
| 18576 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 18577 | # most powerpc-linux boxes support dynamic linking these days and |
| 18578 | # people can always --disable-shared, the test was removed, and we |
| 18579 | # assume the GNU/Linux dynamic linker is in use. |
| 18580 | dynamic_linker='GNU/Linux ld.so' |
| 18581 | ;; |
| 18582 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18583 | knetbsd*-gnu) |
| 18584 | version_type=linux |
| 18585 | need_lib_prefix=no |
| 18586 | need_version=no |
| 18587 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 18588 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18589 | shlibpath_var=LD_LIBRARY_PATH |
| 18590 | shlibpath_overrides_runpath=no |
| 18591 | hardcode_into_libs=yes |
| 18592 | dynamic_linker='GNU ld.so' |
| 18593 | ;; |
| 18594 | |
| 18595 | netbsd*) |
| 18596 | version_type=sunos |
| 18597 | need_lib_prefix=no |
| 18598 | need_version=no |
| 18599 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 18600 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 18601 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 18602 | dynamic_linker='NetBSD (a.out) ld.so' |
| 18603 | else |
| 18604 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 18605 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18606 | dynamic_linker='NetBSD ld.elf_so' |
| 18607 | fi |
| 18608 | shlibpath_var=LD_LIBRARY_PATH |
| 18609 | shlibpath_overrides_runpath=yes |
| 18610 | hardcode_into_libs=yes |
| 18611 | ;; |
| 18612 | |
| 18613 | newsos6) |
| 18614 | version_type=linux |
| 18615 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18616 | shlibpath_var=LD_LIBRARY_PATH |
| 18617 | shlibpath_overrides_runpath=yes |
| 18618 | ;; |
| 18619 | |
| 18620 | nto-qnx*) |
| 18621 | version_type=linux |
| 18622 | need_lib_prefix=no |
| 18623 | need_version=no |
| 18624 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18625 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18626 | shlibpath_var=LD_LIBRARY_PATH |
| 18627 | shlibpath_overrides_runpath=yes |
| 18628 | ;; |
| 18629 | |
| 18630 | openbsd*) |
| 18631 | version_type=sunos |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18632 | sys_lib_dlsearch_path_spec="/usr/lib" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18633 | need_lib_prefix=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18634 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 18635 | case $host_os in |
| 18636 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 18637 | *) need_version=no ;; |
| 18638 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18639 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 18640 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 18641 | shlibpath_var=LD_LIBRARY_PATH |
| 18642 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 18643 | case $host_os in |
| 18644 | openbsd2.[89] | openbsd2.[89].*) |
| 18645 | shlibpath_overrides_runpath=no |
| 18646 | ;; |
| 18647 | *) |
| 18648 | shlibpath_overrides_runpath=yes |
| 18649 | ;; |
| 18650 | esac |
| 18651 | else |
| 18652 | shlibpath_overrides_runpath=yes |
| 18653 | fi |
| 18654 | ;; |
| 18655 | |
| 18656 | os2*) |
| 18657 | libname_spec='$name' |
| 18658 | shrext_cmds=".dll" |
| 18659 | need_lib_prefix=no |
| 18660 | library_names_spec='$libname${shared_ext} $libname.a' |
| 18661 | dynamic_linker='OS/2 ld.exe' |
| 18662 | shlibpath_var=LIBPATH |
| 18663 | ;; |
| 18664 | |
| 18665 | osf3* | osf4* | osf5*) |
| 18666 | version_type=osf |
| 18667 | need_lib_prefix=no |
| 18668 | need_version=no |
| 18669 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18670 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18671 | shlibpath_var=LD_LIBRARY_PATH |
| 18672 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 18673 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 18674 | ;; |
| 18675 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18676 | solaris*) |
| 18677 | version_type=linux |
| 18678 | need_lib_prefix=no |
| 18679 | need_version=no |
| 18680 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18681 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18682 | shlibpath_var=LD_LIBRARY_PATH |
| 18683 | shlibpath_overrides_runpath=yes |
| 18684 | hardcode_into_libs=yes |
| 18685 | # ldd complains unless libraries are executable |
| 18686 | postinstall_cmds='chmod +x $lib' |
| 18687 | ;; |
| 18688 | |
| 18689 | sunos4*) |
| 18690 | version_type=sunos |
| 18691 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 18692 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 18693 | shlibpath_var=LD_LIBRARY_PATH |
| 18694 | shlibpath_overrides_runpath=yes |
| 18695 | if test "$with_gnu_ld" = yes; then |
| 18696 | need_lib_prefix=no |
| 18697 | fi |
| 18698 | need_version=yes |
| 18699 | ;; |
| 18700 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18701 | sysv4 | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18702 | version_type=linux |
| 18703 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18704 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18705 | shlibpath_var=LD_LIBRARY_PATH |
| 18706 | case $host_vendor in |
| 18707 | sni) |
| 18708 | shlibpath_overrides_runpath=no |
| 18709 | need_lib_prefix=no |
| 18710 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 18711 | runpath_var=LD_RUN_PATH |
| 18712 | ;; |
| 18713 | siemens) |
| 18714 | need_lib_prefix=no |
| 18715 | ;; |
| 18716 | motorola) |
| 18717 | need_lib_prefix=no |
| 18718 | need_version=no |
| 18719 | shlibpath_overrides_runpath=no |
| 18720 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 18721 | ;; |
| 18722 | esac |
| 18723 | ;; |
| 18724 | |
| 18725 | sysv4*MP*) |
| 18726 | if test -d /usr/nec ;then |
| 18727 | version_type=linux |
| 18728 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 18729 | soname_spec='$libname${shared_ext}.$major' |
| 18730 | shlibpath_var=LD_LIBRARY_PATH |
| 18731 | fi |
| 18732 | ;; |
| 18733 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18734 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 18735 | version_type=freebsd-elf |
| 18736 | need_lib_prefix=no |
| 18737 | need_version=no |
| 18738 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 18739 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18740 | shlibpath_var=LD_LIBRARY_PATH |
| 18741 | hardcode_into_libs=yes |
| 18742 | if test "$with_gnu_ld" = yes; then |
| 18743 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 18744 | shlibpath_overrides_runpath=no |
| 18745 | else |
| 18746 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 18747 | shlibpath_overrides_runpath=yes |
| 18748 | case $host_os in |
| 18749 | sco3.2v5*) |
| 18750 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 18751 | ;; |
| 18752 | esac |
| 18753 | fi |
| 18754 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 18755 | ;; |
| 18756 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18757 | uts4*) |
| 18758 | version_type=linux |
| 18759 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18760 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18761 | shlibpath_var=LD_LIBRARY_PATH |
| 18762 | ;; |
| 18763 | |
| 18764 | *) |
| 18765 | dynamic_linker=no |
| 18766 | ;; |
| 18767 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18768 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 18769 | echo "${ECHO_T}$dynamic_linker" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18770 | test "$dynamic_linker" = no && can_build_shared=no |
| 18771 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18772 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 18773 | if test "$GCC" = yes; then |
| 18774 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 18775 | fi |
| 18776 | |
| 18777 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 18778 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18779 | hardcode_action_GCJ= |
| 18780 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18781 | test -n "$runpath_var_GCJ" || \ |
| 18782 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18783 | |
| 18784 | # We can hardcode non-existant directories. |
| 18785 | if test "$hardcode_direct_GCJ" != no && |
| 18786 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 18787 | # have to relink, otherwise we might link with an installed library |
| 18788 | # when we should be linking with a yet-to-be-installed one |
| 18789 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
| 18790 | test "$hardcode_minus_L_GCJ" != no; then |
| 18791 | # Linking always hardcodes the temporary library directory. |
| 18792 | hardcode_action_GCJ=relink |
| 18793 | else |
| 18794 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 18795 | hardcode_action_GCJ=immediate |
| 18796 | fi |
| 18797 | else |
| 18798 | # We cannot hardcode anything, or else we can only hardcode existing |
| 18799 | # directories. |
| 18800 | hardcode_action_GCJ=unsupported |
| 18801 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18802 | { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
| 18803 | echo "${ECHO_T}$hardcode_action_GCJ" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18804 | |
| 18805 | if test "$hardcode_action_GCJ" = relink; then |
| 18806 | # Fast installation is not supported |
| 18807 | enable_fast_install=no |
| 18808 | elif test "$shlibpath_overrides_runpath" = yes || |
| 18809 | test "$enable_shared" = no; then |
| 18810 | # Fast installation is not necessary |
| 18811 | enable_fast_install=needless |
| 18812 | fi |
| 18813 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18814 | |
| 18815 | # The else clause should only fire when bootstrapping the |
| 18816 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 18817 | # with your package, and you will get complaints that there are |
| 18818 | # no rules to generate ltmain.sh. |
| 18819 | if test -f "$ltmain"; then |
| 18820 | # See if we are running on zsh, and set the options which allow our commands through |
| 18821 | # without removal of \ escapes. |
| 18822 | if test -n "${ZSH_VERSION+set}" ; then |
| 18823 | setopt NO_GLOB_SUBST |
| 18824 | fi |
| 18825 | # Now quote all the things that may contain metacharacters while being |
| 18826 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 18827 | # variables and quote the copies for generation of the libtool script. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18828 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18829 | SED SHELL STRIP \ |
| 18830 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 18831 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 18832 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 18833 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 18834 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 18835 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 18836 | old_postinstall_cmds old_postuninstall_cmds \ |
| 18837 | compiler_GCJ \ |
| 18838 | CC_GCJ \ |
| 18839 | LD_GCJ \ |
| 18840 | lt_prog_compiler_wl_GCJ \ |
| 18841 | lt_prog_compiler_pic_GCJ \ |
| 18842 | lt_prog_compiler_static_GCJ \ |
| 18843 | lt_prog_compiler_no_builtin_flag_GCJ \ |
| 18844 | export_dynamic_flag_spec_GCJ \ |
| 18845 | thread_safe_flag_spec_GCJ \ |
| 18846 | whole_archive_flag_spec_GCJ \ |
| 18847 | enable_shared_with_static_runtimes_GCJ \ |
| 18848 | old_archive_cmds_GCJ \ |
| 18849 | old_archive_from_new_cmds_GCJ \ |
| 18850 | predep_objects_GCJ \ |
| 18851 | postdep_objects_GCJ \ |
| 18852 | predeps_GCJ \ |
| 18853 | postdeps_GCJ \ |
| 18854 | compiler_lib_search_path_GCJ \ |
| 18855 | archive_cmds_GCJ \ |
| 18856 | archive_expsym_cmds_GCJ \ |
| 18857 | postinstall_cmds_GCJ \ |
| 18858 | postuninstall_cmds_GCJ \ |
| 18859 | old_archive_from_expsyms_cmds_GCJ \ |
| 18860 | allow_undefined_flag_GCJ \ |
| 18861 | no_undefined_flag_GCJ \ |
| 18862 | export_symbols_cmds_GCJ \ |
| 18863 | hardcode_libdir_flag_spec_GCJ \ |
| 18864 | hardcode_libdir_flag_spec_ld_GCJ \ |
| 18865 | hardcode_libdir_separator_GCJ \ |
| 18866 | hardcode_automatic_GCJ \ |
| 18867 | module_cmds_GCJ \ |
| 18868 | module_expsym_cmds_GCJ \ |
| 18869 | lt_cv_prog_compiler_c_o_GCJ \ |
| 18870 | exclude_expsyms_GCJ \ |
| 18871 | include_expsyms_GCJ; do |
| 18872 | |
| 18873 | case $var in |
| 18874 | old_archive_cmds_GCJ | \ |
| 18875 | old_archive_from_new_cmds_GCJ | \ |
| 18876 | archive_cmds_GCJ | \ |
| 18877 | archive_expsym_cmds_GCJ | \ |
| 18878 | module_cmds_GCJ | \ |
| 18879 | module_expsym_cmds_GCJ | \ |
| 18880 | old_archive_from_expsyms_cmds_GCJ | \ |
| 18881 | export_symbols_cmds_GCJ | \ |
| 18882 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 18883 | postinstall_cmds | postuninstall_cmds | \ |
| 18884 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 18885 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 18886 | # Double-quote double-evaled strings. |
| 18887 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 18888 | ;; |
| 18889 | *) |
| 18890 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 18891 | ;; |
| 18892 | esac |
| 18893 | done |
| 18894 | |
| 18895 | case $lt_echo in |
| 18896 | *'\$0 --fallback-echo"') |
| 18897 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 18898 | ;; |
| 18899 | esac |
| 18900 | |
| 18901 | cfgfile="$ofile" |
| 18902 | |
| 18903 | cat <<__EOF__ >> "$cfgfile" |
| 18904 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 18905 | |
| 18906 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 18907 | |
| 18908 | # Shell to use when invoking shell scripts. |
| 18909 | SHELL=$lt_SHELL |
| 18910 | |
| 18911 | # Whether or not to build shared libraries. |
| 18912 | build_libtool_libs=$enable_shared |
| 18913 | |
| 18914 | # Whether or not to build static libraries. |
| 18915 | build_old_libs=$enable_static |
| 18916 | |
| 18917 | # Whether or not to add -lc for building shared libraries. |
| 18918 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
| 18919 | |
| 18920 | # Whether or not to disallow shared libs when runtime libs are static |
| 18921 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
| 18922 | |
| 18923 | # Whether or not to optimize for fast installation. |
| 18924 | fast_install=$enable_fast_install |
| 18925 | |
| 18926 | # The host system. |
| 18927 | host_alias=$host_alias |
| 18928 | host=$host |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18929 | host_os=$host_os |
| 18930 | |
| 18931 | # The build system. |
| 18932 | build_alias=$build_alias |
| 18933 | build=$build |
| 18934 | build_os=$build_os |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18935 | |
| 18936 | # An echo program that does not interpret backslashes. |
| 18937 | echo=$lt_echo |
| 18938 | |
| 18939 | # The archiver. |
| 18940 | AR=$lt_AR |
| 18941 | AR_FLAGS=$lt_AR_FLAGS |
| 18942 | |
| 18943 | # A C compiler. |
| 18944 | LTCC=$lt_LTCC |
| 18945 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18946 | # LTCC compiler flags. |
| 18947 | LTCFLAGS=$lt_LTCFLAGS |
| 18948 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18949 | # A language-specific compiler. |
| 18950 | CC=$lt_compiler_GCJ |
| 18951 | |
| 18952 | # Is the compiler the GNU C compiler? |
| 18953 | with_gcc=$GCC_GCJ |
| 18954 | |
| 18955 | # An ERE matcher. |
| 18956 | EGREP=$lt_EGREP |
| 18957 | |
| 18958 | # The linker used to build libraries. |
| 18959 | LD=$lt_LD_GCJ |
| 18960 | |
| 18961 | # Whether we need hard or soft links. |
| 18962 | LN_S=$lt_LN_S |
| 18963 | |
| 18964 | # A BSD-compatible nm program. |
| 18965 | NM=$lt_NM |
| 18966 | |
| 18967 | # A symbol stripping program |
| 18968 | STRIP=$lt_STRIP |
| 18969 | |
| 18970 | # Used to examine libraries when file_magic_cmd begins "file" |
| 18971 | MAGIC_CMD=$MAGIC_CMD |
| 18972 | |
| 18973 | # Used on cygwin: DLL creation program. |
| 18974 | DLLTOOL="$DLLTOOL" |
| 18975 | |
| 18976 | # Used on cygwin: object dumper. |
| 18977 | OBJDUMP="$OBJDUMP" |
| 18978 | |
| 18979 | # Used on cygwin: assembler. |
| 18980 | AS="$AS" |
| 18981 | |
| 18982 | # The name of the directory that contains temporary libtool files. |
| 18983 | objdir=$objdir |
| 18984 | |
| 18985 | # How to create reloadable object files. |
| 18986 | reload_flag=$lt_reload_flag |
| 18987 | reload_cmds=$lt_reload_cmds |
| 18988 | |
| 18989 | # How to pass a linker flag through the compiler. |
| 18990 | wl=$lt_lt_prog_compiler_wl_GCJ |
| 18991 | |
| 18992 | # Object file suffix (normally "o"). |
| 18993 | objext="$ac_objext" |
| 18994 | |
| 18995 | # Old archive suffix (normally "a"). |
| 18996 | libext="$libext" |
| 18997 | |
| 18998 | # Shared library suffix (normally ".so"). |
| 18999 | shrext_cmds='$shrext_cmds' |
| 19000 | |
| 19001 | # Executable file suffix (normally ""). |
| 19002 | exeext="$exeext" |
| 19003 | |
| 19004 | # Additional compiler flags for building library objects. |
| 19005 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
| 19006 | pic_mode=$pic_mode |
| 19007 | |
| 19008 | # What is the maximum length of a command? |
| 19009 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 19010 | |
| 19011 | # Does compiler simultaneously support -c and -o options? |
| 19012 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
| 19013 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19014 | # Must we lock files when doing compilation? |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19015 | need_locks=$lt_need_locks |
| 19016 | |
| 19017 | # Do we need the lib prefix for modules? |
| 19018 | need_lib_prefix=$need_lib_prefix |
| 19019 | |
| 19020 | # Do we need a version for libraries? |
| 19021 | need_version=$need_version |
| 19022 | |
| 19023 | # Whether dlopen is supported. |
| 19024 | dlopen_support=$enable_dlopen |
| 19025 | |
| 19026 | # Whether dlopen of programs is supported. |
| 19027 | dlopen_self=$enable_dlopen_self |
| 19028 | |
| 19029 | # Whether dlopen of statically linked programs is supported. |
| 19030 | dlopen_self_static=$enable_dlopen_self_static |
| 19031 | |
| 19032 | # Compiler flag to prevent dynamic linking. |
| 19033 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
| 19034 | |
| 19035 | # Compiler flag to turn off builtin functions. |
| 19036 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
| 19037 | |
| 19038 | # Compiler flag to allow reflexive dlopens. |
| 19039 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
| 19040 | |
| 19041 | # Compiler flag to generate shared objects directly from archives. |
| 19042 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
| 19043 | |
| 19044 | # Compiler flag to generate thread-safe objects. |
| 19045 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
| 19046 | |
| 19047 | # Library versioning type. |
| 19048 | version_type=$version_type |
| 19049 | |
| 19050 | # Format of library name prefix. |
| 19051 | libname_spec=$lt_libname_spec |
| 19052 | |
| 19053 | # List of archive names. First name is the real one, the rest are links. |
| 19054 | # The last name is the one that the linker finds with -lNAME. |
| 19055 | library_names_spec=$lt_library_names_spec |
| 19056 | |
| 19057 | # The coded name of the library, if different from the real name. |
| 19058 | soname_spec=$lt_soname_spec |
| 19059 | |
| 19060 | # Commands used to build and install an old-style archive. |
| 19061 | RANLIB=$lt_RANLIB |
| 19062 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
| 19063 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 19064 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 19065 | |
| 19066 | # Create an old-style archive from a shared archive. |
| 19067 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
| 19068 | |
| 19069 | # Create a temporary old-style archive to link instead of a shared archive. |
| 19070 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
| 19071 | |
| 19072 | # Commands used to build and install a shared archive. |
| 19073 | archive_cmds=$lt_archive_cmds_GCJ |
| 19074 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
| 19075 | postinstall_cmds=$lt_postinstall_cmds |
| 19076 | postuninstall_cmds=$lt_postuninstall_cmds |
| 19077 | |
| 19078 | # Commands used to build a loadable module (assumed same as above if empty) |
| 19079 | module_cmds=$lt_module_cmds_GCJ |
| 19080 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
| 19081 | |
| 19082 | # Commands to strip libraries. |
| 19083 | old_striplib=$lt_old_striplib |
| 19084 | striplib=$lt_striplib |
| 19085 | |
| 19086 | # Dependencies to place before the objects being linked to create a |
| 19087 | # shared library. |
| 19088 | predep_objects=$lt_predep_objects_GCJ |
| 19089 | |
| 19090 | # Dependencies to place after the objects being linked to create a |
| 19091 | # shared library. |
| 19092 | postdep_objects=$lt_postdep_objects_GCJ |
| 19093 | |
| 19094 | # Dependencies to place before the objects being linked to create a |
| 19095 | # shared library. |
| 19096 | predeps=$lt_predeps_GCJ |
| 19097 | |
| 19098 | # Dependencies to place after the objects being linked to create a |
| 19099 | # shared library. |
| 19100 | postdeps=$lt_postdeps_GCJ |
| 19101 | |
| 19102 | # The library search path used internally by the compiler when linking |
| 19103 | # a shared library. |
| 19104 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
| 19105 | |
| 19106 | # Method to check whether dependent libraries are shared objects. |
| 19107 | deplibs_check_method=$lt_deplibs_check_method |
| 19108 | |
| 19109 | # Command to use when deplibs_check_method == file_magic. |
| 19110 | file_magic_cmd=$lt_file_magic_cmd |
| 19111 | |
| 19112 | # Flag that allows shared libraries with undefined symbols to be built. |
| 19113 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
| 19114 | |
| 19115 | # Flag that forces no undefined symbols. |
| 19116 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
| 19117 | |
| 19118 | # Commands used to finish a libtool library installation in a directory. |
| 19119 | finish_cmds=$lt_finish_cmds |
| 19120 | |
| 19121 | # Same as above, but a single script fragment to be evaled but not shown. |
| 19122 | finish_eval=$lt_finish_eval |
| 19123 | |
| 19124 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 19125 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 19126 | |
| 19127 | # Transform the output of nm in a proper C declaration |
| 19128 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 19129 | |
| 19130 | # Transform the output of nm in a C name address pair |
| 19131 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 19132 | |
| 19133 | # This is the shared library runtime path variable. |
| 19134 | runpath_var=$runpath_var |
| 19135 | |
| 19136 | # This is the shared library path variable. |
| 19137 | shlibpath_var=$shlibpath_var |
| 19138 | |
| 19139 | # Is shlibpath searched before the hard-coded library search path? |
| 19140 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 19141 | |
| 19142 | # How to hardcode a shared library path into an executable. |
| 19143 | hardcode_action=$hardcode_action_GCJ |
| 19144 | |
| 19145 | # Whether we should hardcode library paths into libraries. |
| 19146 | hardcode_into_libs=$hardcode_into_libs |
| 19147 | |
| 19148 | # Flag to hardcode \$libdir into a binary during linking. |
| 19149 | # This must work even if \$libdir does not exist. |
| 19150 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
| 19151 | |
| 19152 | # If ld is used when linking, flag to hardcode \$libdir into |
| 19153 | # a binary during linking. This must work even if \$libdir does |
| 19154 | # not exist. |
| 19155 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
| 19156 | |
| 19157 | # Whether we need a single -rpath flag with a separated argument. |
| 19158 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
| 19159 | |
| 19160 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 19161 | # resulting binary. |
| 19162 | hardcode_direct=$hardcode_direct_GCJ |
| 19163 | |
| 19164 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 19165 | # resulting binary. |
| 19166 | hardcode_minus_L=$hardcode_minus_L_GCJ |
| 19167 | |
| 19168 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 19169 | # the resulting binary. |
| 19170 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
| 19171 | |
| 19172 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 19173 | # and all subsequent libraries and executables linked against it. |
| 19174 | hardcode_automatic=$hardcode_automatic_GCJ |
| 19175 | |
| 19176 | # Variables whose values should be saved in libtool wrapper scripts and |
| 19177 | # restored at relink time. |
| 19178 | variables_saved_for_relink="$variables_saved_for_relink" |
| 19179 | |
| 19180 | # Whether libtool must link a program against all its dependency libraries. |
| 19181 | link_all_deplibs=$link_all_deplibs_GCJ |
| 19182 | |
| 19183 | # Compile-time system search path for libraries |
| 19184 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 19185 | |
| 19186 | # Run-time system search path for libraries |
| 19187 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 19188 | |
| 19189 | # Fix the shell variable \$srcfile for the compiler. |
| 19190 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
| 19191 | |
| 19192 | # Set to yes if exported symbols are required. |
| 19193 | always_export_symbols=$always_export_symbols_GCJ |
| 19194 | |
| 19195 | # The commands to list exported symbols. |
| 19196 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
| 19197 | |
| 19198 | # The commands to extract the exported symbol list from a shared archive. |
| 19199 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 19200 | |
| 19201 | # Symbols that should not be listed in the preloaded symbols. |
| 19202 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
| 19203 | |
| 19204 | # Symbols that must always be exported. |
| 19205 | include_expsyms=$lt_include_expsyms_GCJ |
| 19206 | |
| 19207 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 19208 | |
| 19209 | __EOF__ |
| 19210 | |
| 19211 | |
| 19212 | else |
| 19213 | # If there is no Makefile yet, we rely on a make rule to execute |
| 19214 | # `config.status --recheck' to rerun these tests and create the |
| 19215 | # libtool script then. |
| 19216 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 19217 | if test -f "$ltmain_in"; then |
| 19218 | test -f Makefile && make "$ltmain" |
| 19219 | fi |
| 19220 | fi |
| 19221 | |
| 19222 | |
| 19223 | ac_ext=c |
| 19224 | ac_cpp='$CPP $CPPFLAGS' |
| 19225 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19226 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19227 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19228 | |
| 19229 | CC="$lt_save_CC" |
| 19230 | |
| 19231 | else |
| 19232 | tagname="" |
| 19233 | fi |
| 19234 | ;; |
| 19235 | |
| 19236 | RC) |
| 19237 | |
| 19238 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19239 | # Source file extension for RC test sources. |
| 19240 | ac_ext=rc |
| 19241 | |
| 19242 | # Object file extension for compiled RC test sources. |
| 19243 | objext=o |
| 19244 | objext_RC=$objext |
| 19245 | |
| 19246 | # Code to be used in simple compile tests |
| 19247 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
| 19248 | |
| 19249 | # Code to be used in simple link tests |
| 19250 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
| 19251 | |
| 19252 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 19253 | |
| 19254 | # If no C compiler was specified, use CC. |
| 19255 | LTCC=${LTCC-"$CC"} |
| 19256 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19257 | # If no C compiler flags were specified, use CFLAGS. |
| 19258 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 19259 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19260 | # Allow CC to be a program name with arguments. |
| 19261 | compiler=$CC |
| 19262 | |
| 19263 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19264 | # save warnings/boilerplate of simple test code |
| 19265 | ac_outfile=conftest.$ac_objext |
| 19266 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 19267 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 19268 | _lt_compiler_boilerplate=`cat conftest.err` |
| 19269 | $rm conftest* |
| 19270 | |
| 19271 | ac_outfile=conftest.$ac_objext |
| 19272 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 19273 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 19274 | _lt_linker_boilerplate=`cat conftest.err` |
| 19275 | $rm conftest* |
| 19276 | |
| 19277 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19278 | # Allow CC to be a program name with arguments. |
| 19279 | lt_save_CC="$CC" |
| 19280 | CC=${RC-"windres"} |
| 19281 | compiler=$CC |
| 19282 | compiler_RC=$CC |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19283 | for cc_temp in $compiler""; do |
| 19284 | case $cc_temp in |
| 19285 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 19286 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 19287 | \-*) ;; |
| 19288 | *) break;; |
| 19289 | esac |
| 19290 | done |
| 19291 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 19292 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19293 | lt_cv_prog_compiler_c_o_RC=yes |
| 19294 | |
| 19295 | # The else clause should only fire when bootstrapping the |
| 19296 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 19297 | # with your package, and you will get complaints that there are |
| 19298 | # no rules to generate ltmain.sh. |
| 19299 | if test -f "$ltmain"; then |
| 19300 | # See if we are running on zsh, and set the options which allow our commands through |
| 19301 | # without removal of \ escapes. |
| 19302 | if test -n "${ZSH_VERSION+set}" ; then |
| 19303 | setopt NO_GLOB_SUBST |
| 19304 | fi |
| 19305 | # Now quote all the things that may contain metacharacters while being |
| 19306 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 19307 | # variables and quote the copies for generation of the libtool script. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19308 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19309 | SED SHELL STRIP \ |
| 19310 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 19311 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 19312 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 19313 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 19314 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 19315 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 19316 | old_postinstall_cmds old_postuninstall_cmds \ |
| 19317 | compiler_RC \ |
| 19318 | CC_RC \ |
| 19319 | LD_RC \ |
| 19320 | lt_prog_compiler_wl_RC \ |
| 19321 | lt_prog_compiler_pic_RC \ |
| 19322 | lt_prog_compiler_static_RC \ |
| 19323 | lt_prog_compiler_no_builtin_flag_RC \ |
| 19324 | export_dynamic_flag_spec_RC \ |
| 19325 | thread_safe_flag_spec_RC \ |
| 19326 | whole_archive_flag_spec_RC \ |
| 19327 | enable_shared_with_static_runtimes_RC \ |
| 19328 | old_archive_cmds_RC \ |
| 19329 | old_archive_from_new_cmds_RC \ |
| 19330 | predep_objects_RC \ |
| 19331 | postdep_objects_RC \ |
| 19332 | predeps_RC \ |
| 19333 | postdeps_RC \ |
| 19334 | compiler_lib_search_path_RC \ |
| 19335 | archive_cmds_RC \ |
| 19336 | archive_expsym_cmds_RC \ |
| 19337 | postinstall_cmds_RC \ |
| 19338 | postuninstall_cmds_RC \ |
| 19339 | old_archive_from_expsyms_cmds_RC \ |
| 19340 | allow_undefined_flag_RC \ |
| 19341 | no_undefined_flag_RC \ |
| 19342 | export_symbols_cmds_RC \ |
| 19343 | hardcode_libdir_flag_spec_RC \ |
| 19344 | hardcode_libdir_flag_spec_ld_RC \ |
| 19345 | hardcode_libdir_separator_RC \ |
| 19346 | hardcode_automatic_RC \ |
| 19347 | module_cmds_RC \ |
| 19348 | module_expsym_cmds_RC \ |
| 19349 | lt_cv_prog_compiler_c_o_RC \ |
| 19350 | exclude_expsyms_RC \ |
| 19351 | include_expsyms_RC; do |
| 19352 | |
| 19353 | case $var in |
| 19354 | old_archive_cmds_RC | \ |
| 19355 | old_archive_from_new_cmds_RC | \ |
| 19356 | archive_cmds_RC | \ |
| 19357 | archive_expsym_cmds_RC | \ |
| 19358 | module_cmds_RC | \ |
| 19359 | module_expsym_cmds_RC | \ |
| 19360 | old_archive_from_expsyms_cmds_RC | \ |
| 19361 | export_symbols_cmds_RC | \ |
| 19362 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 19363 | postinstall_cmds | postuninstall_cmds | \ |
| 19364 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 19365 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 19366 | # Double-quote double-evaled strings. |
| 19367 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 19368 | ;; |
| 19369 | *) |
| 19370 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 19371 | ;; |
| 19372 | esac |
| 19373 | done |
| 19374 | |
| 19375 | case $lt_echo in |
| 19376 | *'\$0 --fallback-echo"') |
| 19377 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 19378 | ;; |
| 19379 | esac |
| 19380 | |
| 19381 | cfgfile="$ofile" |
| 19382 | |
| 19383 | cat <<__EOF__ >> "$cfgfile" |
| 19384 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 19385 | |
| 19386 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 19387 | |
| 19388 | # Shell to use when invoking shell scripts. |
| 19389 | SHELL=$lt_SHELL |
| 19390 | |
| 19391 | # Whether or not to build shared libraries. |
| 19392 | build_libtool_libs=$enable_shared |
| 19393 | |
| 19394 | # Whether or not to build static libraries. |
| 19395 | build_old_libs=$enable_static |
| 19396 | |
| 19397 | # Whether or not to add -lc for building shared libraries. |
| 19398 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
| 19399 | |
| 19400 | # Whether or not to disallow shared libs when runtime libs are static |
| 19401 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
| 19402 | |
| 19403 | # Whether or not to optimize for fast installation. |
| 19404 | fast_install=$enable_fast_install |
| 19405 | |
| 19406 | # The host system. |
| 19407 | host_alias=$host_alias |
| 19408 | host=$host |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19409 | host_os=$host_os |
| 19410 | |
| 19411 | # The build system. |
| 19412 | build_alias=$build_alias |
| 19413 | build=$build |
| 19414 | build_os=$build_os |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19415 | |
| 19416 | # An echo program that does not interpret backslashes. |
| 19417 | echo=$lt_echo |
| 19418 | |
| 19419 | # The archiver. |
| 19420 | AR=$lt_AR |
| 19421 | AR_FLAGS=$lt_AR_FLAGS |
| 19422 | |
| 19423 | # A C compiler. |
| 19424 | LTCC=$lt_LTCC |
| 19425 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19426 | # LTCC compiler flags. |
| 19427 | LTCFLAGS=$lt_LTCFLAGS |
| 19428 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19429 | # A language-specific compiler. |
| 19430 | CC=$lt_compiler_RC |
| 19431 | |
| 19432 | # Is the compiler the GNU C compiler? |
| 19433 | with_gcc=$GCC_RC |
| 19434 | |
| 19435 | # An ERE matcher. |
| 19436 | EGREP=$lt_EGREP |
| 19437 | |
| 19438 | # The linker used to build libraries. |
| 19439 | LD=$lt_LD_RC |
| 19440 | |
| 19441 | # Whether we need hard or soft links. |
| 19442 | LN_S=$lt_LN_S |
| 19443 | |
| 19444 | # A BSD-compatible nm program. |
| 19445 | NM=$lt_NM |
| 19446 | |
| 19447 | # A symbol stripping program |
| 19448 | STRIP=$lt_STRIP |
| 19449 | |
| 19450 | # Used to examine libraries when file_magic_cmd begins "file" |
| 19451 | MAGIC_CMD=$MAGIC_CMD |
| 19452 | |
| 19453 | # Used on cygwin: DLL creation program. |
| 19454 | DLLTOOL="$DLLTOOL" |
| 19455 | |
| 19456 | # Used on cygwin: object dumper. |
| 19457 | OBJDUMP="$OBJDUMP" |
| 19458 | |
| 19459 | # Used on cygwin: assembler. |
| 19460 | AS="$AS" |
| 19461 | |
| 19462 | # The name of the directory that contains temporary libtool files. |
| 19463 | objdir=$objdir |
| 19464 | |
| 19465 | # How to create reloadable object files. |
| 19466 | reload_flag=$lt_reload_flag |
| 19467 | reload_cmds=$lt_reload_cmds |
| 19468 | |
| 19469 | # How to pass a linker flag through the compiler. |
| 19470 | wl=$lt_lt_prog_compiler_wl_RC |
| 19471 | |
| 19472 | # Object file suffix (normally "o"). |
| 19473 | objext="$ac_objext" |
| 19474 | |
| 19475 | # Old archive suffix (normally "a"). |
| 19476 | libext="$libext" |
| 19477 | |
| 19478 | # Shared library suffix (normally ".so"). |
| 19479 | shrext_cmds='$shrext_cmds' |
| 19480 | |
| 19481 | # Executable file suffix (normally ""). |
| 19482 | exeext="$exeext" |
| 19483 | |
| 19484 | # Additional compiler flags for building library objects. |
| 19485 | pic_flag=$lt_lt_prog_compiler_pic_RC |
| 19486 | pic_mode=$pic_mode |
| 19487 | |
| 19488 | # What is the maximum length of a command? |
| 19489 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 19490 | |
| 19491 | # Does compiler simultaneously support -c and -o options? |
| 19492 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
| 19493 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19494 | # Must we lock files when doing compilation? |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19495 | need_locks=$lt_need_locks |
| 19496 | |
| 19497 | # Do we need the lib prefix for modules? |
| 19498 | need_lib_prefix=$need_lib_prefix |
| 19499 | |
| 19500 | # Do we need a version for libraries? |
| 19501 | need_version=$need_version |
| 19502 | |
| 19503 | # Whether dlopen is supported. |
| 19504 | dlopen_support=$enable_dlopen |
| 19505 | |
| 19506 | # Whether dlopen of programs is supported. |
| 19507 | dlopen_self=$enable_dlopen_self |
| 19508 | |
| 19509 | # Whether dlopen of statically linked programs is supported. |
| 19510 | dlopen_self_static=$enable_dlopen_self_static |
| 19511 | |
| 19512 | # Compiler flag to prevent dynamic linking. |
| 19513 | link_static_flag=$lt_lt_prog_compiler_static_RC |
| 19514 | |
| 19515 | # Compiler flag to turn off builtin functions. |
| 19516 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
| 19517 | |
| 19518 | # Compiler flag to allow reflexive dlopens. |
| 19519 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
| 19520 | |
| 19521 | # Compiler flag to generate shared objects directly from archives. |
| 19522 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
| 19523 | |
| 19524 | # Compiler flag to generate thread-safe objects. |
| 19525 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
| 19526 | |
| 19527 | # Library versioning type. |
| 19528 | version_type=$version_type |
| 19529 | |
| 19530 | # Format of library name prefix. |
| 19531 | libname_spec=$lt_libname_spec |
| 19532 | |
| 19533 | # List of archive names. First name is the real one, the rest are links. |
| 19534 | # The last name is the one that the linker finds with -lNAME. |
| 19535 | library_names_spec=$lt_library_names_spec |
| 19536 | |
| 19537 | # The coded name of the library, if different from the real name. |
| 19538 | soname_spec=$lt_soname_spec |
| 19539 | |
| 19540 | # Commands used to build and install an old-style archive. |
| 19541 | RANLIB=$lt_RANLIB |
| 19542 | old_archive_cmds=$lt_old_archive_cmds_RC |
| 19543 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 19544 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 19545 | |
| 19546 | # Create an old-style archive from a shared archive. |
| 19547 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
| 19548 | |
| 19549 | # Create a temporary old-style archive to link instead of a shared archive. |
| 19550 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
| 19551 | |
| 19552 | # Commands used to build and install a shared archive. |
| 19553 | archive_cmds=$lt_archive_cmds_RC |
| 19554 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
| 19555 | postinstall_cmds=$lt_postinstall_cmds |
| 19556 | postuninstall_cmds=$lt_postuninstall_cmds |
| 19557 | |
| 19558 | # Commands used to build a loadable module (assumed same as above if empty) |
| 19559 | module_cmds=$lt_module_cmds_RC |
| 19560 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
| 19561 | |
| 19562 | # Commands to strip libraries. |
| 19563 | old_striplib=$lt_old_striplib |
| 19564 | striplib=$lt_striplib |
| 19565 | |
| 19566 | # Dependencies to place before the objects being linked to create a |
| 19567 | # shared library. |
| 19568 | predep_objects=$lt_predep_objects_RC |
| 19569 | |
| 19570 | # Dependencies to place after the objects being linked to create a |
| 19571 | # shared library. |
| 19572 | postdep_objects=$lt_postdep_objects_RC |
| 19573 | |
| 19574 | # Dependencies to place before the objects being linked to create a |
| 19575 | # shared library. |
| 19576 | predeps=$lt_predeps_RC |
| 19577 | |
| 19578 | # Dependencies to place after the objects being linked to create a |
| 19579 | # shared library. |
| 19580 | postdeps=$lt_postdeps_RC |
| 19581 | |
| 19582 | # The library search path used internally by the compiler when linking |
| 19583 | # a shared library. |
| 19584 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
| 19585 | |
| 19586 | # Method to check whether dependent libraries are shared objects. |
| 19587 | deplibs_check_method=$lt_deplibs_check_method |
| 19588 | |
| 19589 | # Command to use when deplibs_check_method == file_magic. |
| 19590 | file_magic_cmd=$lt_file_magic_cmd |
| 19591 | |
| 19592 | # Flag that allows shared libraries with undefined symbols to be built. |
| 19593 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
| 19594 | |
| 19595 | # Flag that forces no undefined symbols. |
| 19596 | no_undefined_flag=$lt_no_undefined_flag_RC |
| 19597 | |
| 19598 | # Commands used to finish a libtool library installation in a directory. |
| 19599 | finish_cmds=$lt_finish_cmds |
| 19600 | |
| 19601 | # Same as above, but a single script fragment to be evaled but not shown. |
| 19602 | finish_eval=$lt_finish_eval |
| 19603 | |
| 19604 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 19605 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 19606 | |
| 19607 | # Transform the output of nm in a proper C declaration |
| 19608 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 19609 | |
| 19610 | # Transform the output of nm in a C name address pair |
| 19611 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 19612 | |
| 19613 | # This is the shared library runtime path variable. |
| 19614 | runpath_var=$runpath_var |
| 19615 | |
| 19616 | # This is the shared library path variable. |
| 19617 | shlibpath_var=$shlibpath_var |
| 19618 | |
| 19619 | # Is shlibpath searched before the hard-coded library search path? |
| 19620 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 19621 | |
| 19622 | # How to hardcode a shared library path into an executable. |
| 19623 | hardcode_action=$hardcode_action_RC |
| 19624 | |
| 19625 | # Whether we should hardcode library paths into libraries. |
| 19626 | hardcode_into_libs=$hardcode_into_libs |
| 19627 | |
| 19628 | # Flag to hardcode \$libdir into a binary during linking. |
| 19629 | # This must work even if \$libdir does not exist. |
| 19630 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
| 19631 | |
| 19632 | # If ld is used when linking, flag to hardcode \$libdir into |
| 19633 | # a binary during linking. This must work even if \$libdir does |
| 19634 | # not exist. |
| 19635 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
| 19636 | |
| 19637 | # Whether we need a single -rpath flag with a separated argument. |
| 19638 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
| 19639 | |
| 19640 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 19641 | # resulting binary. |
| 19642 | hardcode_direct=$hardcode_direct_RC |
| 19643 | |
| 19644 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 19645 | # resulting binary. |
| 19646 | hardcode_minus_L=$hardcode_minus_L_RC |
| 19647 | |
| 19648 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 19649 | # the resulting binary. |
| 19650 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
| 19651 | |
| 19652 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 19653 | # and all subsequent libraries and executables linked against it. |
| 19654 | hardcode_automatic=$hardcode_automatic_RC |
| 19655 | |
| 19656 | # Variables whose values should be saved in libtool wrapper scripts and |
| 19657 | # restored at relink time. |
| 19658 | variables_saved_for_relink="$variables_saved_for_relink" |
| 19659 | |
| 19660 | # Whether libtool must link a program against all its dependency libraries. |
| 19661 | link_all_deplibs=$link_all_deplibs_RC |
| 19662 | |
| 19663 | # Compile-time system search path for libraries |
| 19664 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 19665 | |
| 19666 | # Run-time system search path for libraries |
| 19667 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 19668 | |
| 19669 | # Fix the shell variable \$srcfile for the compiler. |
| 19670 | fix_srcfile_path="$fix_srcfile_path_RC" |
| 19671 | |
| 19672 | # Set to yes if exported symbols are required. |
| 19673 | always_export_symbols=$always_export_symbols_RC |
| 19674 | |
| 19675 | # The commands to list exported symbols. |
| 19676 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
| 19677 | |
| 19678 | # The commands to extract the exported symbol list from a shared archive. |
| 19679 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 19680 | |
| 19681 | # Symbols that should not be listed in the preloaded symbols. |
| 19682 | exclude_expsyms=$lt_exclude_expsyms_RC |
| 19683 | |
| 19684 | # Symbols that must always be exported. |
| 19685 | include_expsyms=$lt_include_expsyms_RC |
| 19686 | |
| 19687 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 19688 | |
| 19689 | __EOF__ |
| 19690 | |
| 19691 | |
| 19692 | else |
| 19693 | # If there is no Makefile yet, we rely on a make rule to execute |
| 19694 | # `config.status --recheck' to rerun these tests and create the |
| 19695 | # libtool script then. |
| 19696 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 19697 | if test -f "$ltmain_in"; then |
| 19698 | test -f Makefile && make "$ltmain" |
| 19699 | fi |
| 19700 | fi |
| 19701 | |
| 19702 | |
| 19703 | ac_ext=c |
| 19704 | ac_cpp='$CPP $CPPFLAGS' |
| 19705 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19706 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19707 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19708 | |
| 19709 | CC="$lt_save_CC" |
| 19710 | |
| 19711 | ;; |
| 19712 | |
| 19713 | *) |
| 19714 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
| 19715 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
| 19716 | { (exit 1); exit 1; }; } |
| 19717 | ;; |
| 19718 | esac |
| 19719 | |
| 19720 | # Append the new tag name to the list of available tags. |
| 19721 | if test -n "$tagname" ; then |
| 19722 | available_tags="$available_tags $tagname" |
| 19723 | fi |
| 19724 | fi |
| 19725 | done |
| 19726 | IFS="$lt_save_ifs" |
| 19727 | |
| 19728 | # Now substitute the updated list of available tags. |
| 19729 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
| 19730 | mv "${ofile}T" "$ofile" |
| 19731 | chmod +x "$ofile" |
| 19732 | else |
| 19733 | rm -f "${ofile}T" |
| 19734 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
| 19735 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
| 19736 | { (exit 1); exit 1; }; } |
| 19737 | fi |
| 19738 | fi |
| 19739 | |
| 19740 | |
| 19741 | |
| 19742 | # This can be used to rebuild libtool when needed |
| 19743 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 19744 | |
| 19745 | # Always use our own libtool. |
| 19746 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 19747 | |
| 19748 | # Prevent multiple expansion |
| 19749 | |
| 19750 | |
| 19751 | |
| 19752 | |
| 19753 | |
| 19754 | |
| 19755 | |
| 19756 | |
| 19757 | |
| 19758 | |
| 19759 | |
| 19760 | |
| 19761 | |
| 19762 | |
| 19763 | |
| 19764 | |
| 19765 | |
| 19766 | |
| 19767 | |
| 19768 | |
| 19769 | |
| 19770 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19771 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 19772 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19773 | if test "${ac_cv_header_stdc+set}" = set; then |
| 19774 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19775 | else |
| 19776 | cat >conftest.$ac_ext <<_ACEOF |
| 19777 | /* confdefs.h. */ |
| 19778 | _ACEOF |
| 19779 | cat confdefs.h >>conftest.$ac_ext |
| 19780 | cat >>conftest.$ac_ext <<_ACEOF |
| 19781 | /* end confdefs.h. */ |
| 19782 | #include <stdlib.h> |
| 19783 | #include <stdarg.h> |
| 19784 | #include <string.h> |
| 19785 | #include <float.h> |
| 19786 | |
| 19787 | int |
| 19788 | main () |
| 19789 | { |
| 19790 | |
| 19791 | ; |
| 19792 | return 0; |
| 19793 | } |
| 19794 | _ACEOF |
| 19795 | rm -f conftest.$ac_objext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19796 | if { (ac_try="$ac_compile" |
| 19797 | case "(($ac_try" in |
| 19798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19799 | *) ac_try_echo=$ac_try;; |
| 19800 | esac |
| 19801 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19802 | (eval "$ac_compile") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19803 | ac_status=$? |
| 19804 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19805 | rm -f conftest.er1 |
| 19806 | cat conftest.err >&5 |
| 19807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19808 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19809 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19810 | { (case "(($ac_try" in |
| 19811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19812 | *) ac_try_echo=$ac_try;; |
| 19813 | esac |
| 19814 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19815 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19816 | ac_status=$? |
| 19817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19818 | (exit $ac_status); }; } && |
| 19819 | { ac_try='test -s conftest.$ac_objext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19820 | { (case "(($ac_try" in |
| 19821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19822 | *) ac_try_echo=$ac_try;; |
| 19823 | esac |
| 19824 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19825 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19826 | ac_status=$? |
| 19827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19828 | (exit $ac_status); }; }; then |
| 19829 | ac_cv_header_stdc=yes |
| 19830 | else |
| 19831 | echo "$as_me: failed program was:" >&5 |
| 19832 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19833 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19834 | ac_cv_header_stdc=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19835 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19836 | |
| 19837 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19838 | |
| 19839 | if test $ac_cv_header_stdc = yes; then |
| 19840 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 19841 | cat >conftest.$ac_ext <<_ACEOF |
| 19842 | /* confdefs.h. */ |
| 19843 | _ACEOF |
| 19844 | cat confdefs.h >>conftest.$ac_ext |
| 19845 | cat >>conftest.$ac_ext <<_ACEOF |
| 19846 | /* end confdefs.h. */ |
| 19847 | #include <string.h> |
| 19848 | |
| 19849 | _ACEOF |
| 19850 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 19851 | $EGREP "memchr" >/dev/null 2>&1; then |
| 19852 | : |
| 19853 | else |
| 19854 | ac_cv_header_stdc=no |
| 19855 | fi |
| 19856 | rm -f conftest* |
| 19857 | |
| 19858 | fi |
| 19859 | |
| 19860 | if test $ac_cv_header_stdc = yes; then |
| 19861 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 19862 | cat >conftest.$ac_ext <<_ACEOF |
| 19863 | /* confdefs.h. */ |
| 19864 | _ACEOF |
| 19865 | cat confdefs.h >>conftest.$ac_ext |
| 19866 | cat >>conftest.$ac_ext <<_ACEOF |
| 19867 | /* end confdefs.h. */ |
| 19868 | #include <stdlib.h> |
| 19869 | |
| 19870 | _ACEOF |
| 19871 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 19872 | $EGREP "free" >/dev/null 2>&1; then |
| 19873 | : |
| 19874 | else |
| 19875 | ac_cv_header_stdc=no |
| 19876 | fi |
| 19877 | rm -f conftest* |
| 19878 | |
| 19879 | fi |
| 19880 | |
| 19881 | if test $ac_cv_header_stdc = yes; then |
| 19882 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 19883 | if test "$cross_compiling" = yes; then |
| 19884 | : |
| 19885 | else |
| 19886 | cat >conftest.$ac_ext <<_ACEOF |
| 19887 | /* confdefs.h. */ |
| 19888 | _ACEOF |
| 19889 | cat confdefs.h >>conftest.$ac_ext |
| 19890 | cat >>conftest.$ac_ext <<_ACEOF |
| 19891 | /* end confdefs.h. */ |
| 19892 | #include <ctype.h> |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19893 | #include <stdlib.h> |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19894 | #if ((' ' & 0x0FF) == 0x020) |
| 19895 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 19896 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 19897 | #else |
| 19898 | # define ISLOWER(c) \ |
| 19899 | (('a' <= (c) && (c) <= 'i') \ |
| 19900 | || ('j' <= (c) && (c) <= 'r') \ |
| 19901 | || ('s' <= (c) && (c) <= 'z')) |
| 19902 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 19903 | #endif |
| 19904 | |
| 19905 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 19906 | int |
| 19907 | main () |
| 19908 | { |
| 19909 | int i; |
| 19910 | for (i = 0; i < 256; i++) |
| 19911 | if (XOR (islower (i), ISLOWER (i)) |
| 19912 | || toupper (i) != TOUPPER (i)) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19913 | return 2; |
| 19914 | return 0; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19915 | } |
| 19916 | _ACEOF |
| 19917 | rm -f conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19918 | if { (ac_try="$ac_link" |
| 19919 | case "(($ac_try" in |
| 19920 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19921 | *) ac_try_echo=$ac_try;; |
| 19922 | esac |
| 19923 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19924 | (eval "$ac_link") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19925 | ac_status=$? |
| 19926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19927 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19928 | { (case "(($ac_try" in |
| 19929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19930 | *) ac_try_echo=$ac_try;; |
| 19931 | esac |
| 19932 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19933 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19934 | ac_status=$? |
| 19935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19936 | (exit $ac_status); }; }; then |
| 19937 | : |
| 19938 | else |
| 19939 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19940 | echo "$as_me: failed program was:" >&5 |
| 19941 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19942 | |
| 19943 | ( exit $ac_status ) |
| 19944 | ac_cv_header_stdc=no |
| 19945 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19946 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 19947 | fi |
| 19948 | |
| 19949 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19950 | fi |
| 19951 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19952 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 19953 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19954 | if test $ac_cv_header_stdc = yes; then |
| 19955 | |
| 19956 | cat >>confdefs.h <<\_ACEOF |
| 19957 | #define STDC_HEADERS 1 |
| 19958 | _ACEOF |
| 19959 | |
| 19960 | fi |
| 19961 | |
| 19962 | |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 19963 | # Check whether --enable-selftest was given. |
| 19964 | if test "${enable_selftest+set}" = set; then |
| 19965 | enableval=$enable_selftest; case "${enableval}" in |
| 19966 | yes) |
| 19967 | selftest=true |
| 19968 | ;; |
| 19969 | no) |
| 19970 | selftest=false |
| 19971 | ;; |
| 19972 | *) |
| 19973 | { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-selftest" >&5 |
| 19974 | echo "$as_me: error: bad value ${enableval} for --enable-selftest" >&2;} |
| 19975 | { (exit 1); exit 1; }; } |
| 19976 | ;; |
| 19977 | esac |
| 19978 | else |
| 19979 | selftest=false |
| 19980 | fi |
| 19981 | |
| 19982 | |
| 19983 | |
| 19984 | if test x$selftest = xtrue; then |
| 19985 | SELFTEST_TRUE= |
| 19986 | SELFTEST_FALSE='#' |
| 19987 | else |
| 19988 | SELFTEST_TRUE='#' |
| 19989 | SELFTEST_FALSE= |
| 19990 | fi |
| 19991 | |
| 19992 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19993 | ac_config_files="$ac_config_files Makefile" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19994 | |
| 19995 | cat >confcache <<\_ACEOF |
| 19996 | # This file is a shell script that caches the results of configure |
| 19997 | # tests run on this system so they can be shared between configure |
| 19998 | # scripts and configure runs, see configure's option --config-cache. |
| 19999 | # It is not useful on other systems. If it contains results you don't |
| 20000 | # want to keep, you may remove or edit it. |
| 20001 | # |
| 20002 | # config.status only pays attention to the cache file if you give it |
| 20003 | # the --recheck option to rerun configure. |
| 20004 | # |
| 20005 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 20006 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 20007 | # following values. |
| 20008 | |
| 20009 | _ACEOF |
| 20010 | |
| 20011 | # The following way of writing the cache mishandles newlines in values, |
| 20012 | # but we know of no workaround that is simple, portable, and efficient. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20013 | # So, we kill variables containing newlines. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20014 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 20015 | # and sets the high bit in the cache file unless we assign to the vars. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20016 | ( |
| 20017 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 20018 | eval ac_val=\$$ac_var |
| 20019 | case $ac_val in #( |
| 20020 | *${as_nl}*) |
| 20021 | case $ac_var in #( |
| 20022 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 20023 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 20024 | esac |
| 20025 | case $ac_var in #( |
| 20026 | _ | IFS | as_nl) ;; #( |
| 20027 | *) $as_unset $ac_var ;; |
| 20028 | esac ;; |
| 20029 | esac |
| 20030 | done |
| 20031 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20032 | (set) 2>&1 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20033 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 20034 | *${as_nl}ac_space=\ *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20035 | # `set' does not quote correctly, so add quotes (double-quote |
| 20036 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 20037 | sed -n \ |
| 20038 | "s/'/'\\\\''/g; |
| 20039 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20040 | ;; #( |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20041 | *) |
| 20042 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20043 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20044 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20045 | esac | |
| 20046 | sort |
| 20047 | ) | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20048 | sed ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20049 | /^ac_cv_env_/b end |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20050 | t clear |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20051 | :clear |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20052 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 20053 | t end |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20054 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 20055 | :end' >>confcache |
| 20056 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 20057 | if test -w "$cache_file"; then |
| 20058 | test "x$cache_file" != "x/dev/null" && |
| 20059 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 20060 | echo "$as_me: updating cache $cache_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20061 | cat confcache >$cache_file |
| 20062 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20063 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 20064 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20065 | fi |
| 20066 | fi |
| 20067 | rm -f confcache |
| 20068 | |
| 20069 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 20070 | # Let make expand exec_prefix. |
| 20071 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 20072 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20073 | DEFS=-DHAVE_CONFIG_H |
| 20074 | |
| 20075 | ac_libobjs= |
| 20076 | ac_ltlibobjs= |
| 20077 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 20078 | # 1. Remove the extension, and $U if already installed. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20079 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 20080 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 20081 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 20082 | # will be set to the directory where LIBOBJS objects are built. |
| 20083 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 20084 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20085 | done |
| 20086 | LIBOBJS=$ac_libobjs |
| 20087 | |
| 20088 | LTLIBOBJS=$ac_ltlibobjs |
| 20089 | |
| 20090 | |
| 20091 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 20092 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
| 20093 | Usually this means the macro was only invoked conditionally." >&5 |
| 20094 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
| 20095 | Usually this means the macro was only invoked conditionally." >&2;} |
| 20096 | { (exit 1); exit 1; }; } |
| 20097 | fi |
| 20098 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 20099 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
| 20100 | Usually this means the macro was only invoked conditionally." >&5 |
| 20101 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
| 20102 | Usually this means the macro was only invoked conditionally." >&2;} |
| 20103 | { (exit 1); exit 1; }; } |
| 20104 | fi |
| 20105 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
| 20106 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
| 20107 | Usually this means the macro was only invoked conditionally." >&5 |
| 20108 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
| 20109 | Usually this means the macro was only invoked conditionally." >&2;} |
| 20110 | { (exit 1); exit 1; }; } |
| 20111 | fi |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 20112 | if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then |
| 20113 | { { echo "$as_me:$LINENO: error: conditional \"SELFTEST\" was never defined. |
| 20114 | Usually this means the macro was only invoked conditionally." >&5 |
| 20115 | echo "$as_me: error: conditional \"SELFTEST\" was never defined. |
| 20116 | Usually this means the macro was only invoked conditionally." >&2;} |
| 20117 | { (exit 1); exit 1; }; } |
| 20118 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20119 | |
| 20120 | : ${CONFIG_STATUS=./config.status} |
| 20121 | ac_clean_files_save=$ac_clean_files |
| 20122 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 20123 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 20124 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 20125 | cat >$CONFIG_STATUS <<_ACEOF |
| 20126 | #! $SHELL |
| 20127 | # Generated by $as_me. |
| 20128 | # Run this file to recreate the current configuration. |
| 20129 | # Compiler output produced by configure, useful for debugging |
| 20130 | # configure, is in config.log if it exists. |
| 20131 | |
| 20132 | debug=false |
| 20133 | ac_cs_recheck=false |
| 20134 | ac_cs_silent=false |
| 20135 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 20136 | _ACEOF |
| 20137 | |
| 20138 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20139 | ## --------------------- ## |
| 20140 | ## M4sh Initialization. ## |
| 20141 | ## --------------------- ## |
| 20142 | |
| 20143 | # Be Bourne compatible |
| 20144 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 20145 | emulate sh |
| 20146 | NULLCMD=: |
| 20147 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 20148 | # is contrary to our usage. Disable this feature. |
| 20149 | alias -g '${1+"$@"}'='"$@"' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20150 | setopt NO_GLOB_SUBST |
| 20151 | else |
| 20152 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20153 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20154 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20155 | DUALCASE=1; export DUALCASE # for MKS sh |
| 20156 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20157 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20158 | # PATH needs CR |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20159 | # Avoid depending upon Character Ranges. |
| 20160 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 20161 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 20162 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 20163 | as_cr_digits='0123456789' |
| 20164 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 20165 | |
| 20166 | # The user is always right. |
| 20167 | if test "${PATH_SEPARATOR+set}" != set; then |
| 20168 | echo "#! /bin/sh" >conf$$.sh |
| 20169 | echo "exit 0" >>conf$$.sh |
| 20170 | chmod +x conf$$.sh |
| 20171 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 20172 | PATH_SEPARATOR=';' |
| 20173 | else |
| 20174 | PATH_SEPARATOR=: |
| 20175 | fi |
| 20176 | rm -f conf$$.sh |
| 20177 | fi |
| 20178 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20179 | # Support unset when possible. |
| 20180 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 20181 | as_unset=unset |
| 20182 | else |
| 20183 | as_unset=false |
| 20184 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20185 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20186 | |
| 20187 | # IFS |
| 20188 | # We need space, tab and new line, in precisely that order. Quoting is |
| 20189 | # there to prevent editors from complaining about space-tab. |
| 20190 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 20191 | # splitting by setting IFS to empty value.) |
| 20192 | as_nl=' |
| 20193 | ' |
| 20194 | IFS=" "" $as_nl" |
| 20195 | |
| 20196 | # Find who we are. Look in the path if we contain no directory separator. |
| 20197 | case $0 in |
| 20198 | *[\\/]* ) as_myself=$0 ;; |
| 20199 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20200 | for as_dir in $PATH |
| 20201 | do |
| 20202 | IFS=$as_save_IFS |
| 20203 | test -z "$as_dir" && as_dir=. |
| 20204 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 20205 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20206 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20207 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20208 | ;; |
| 20209 | esac |
| 20210 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 20211 | # in which case we are not to be found in the path. |
| 20212 | if test "x$as_myself" = x; then |
| 20213 | as_myself=$0 |
| 20214 | fi |
| 20215 | if test ! -f "$as_myself"; then |
| 20216 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 20217 | { (exit 1); exit 1; } |
| 20218 | fi |
| 20219 | |
| 20220 | # Work around bugs in pre-3.0 UWIN ksh. |
| 20221 | for as_var in ENV MAIL MAILPATH |
| 20222 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 20223 | done |
| 20224 | PS1='$ ' |
| 20225 | PS2='> ' |
| 20226 | PS4='+ ' |
| 20227 | |
| 20228 | # NLS nuisances. |
| 20229 | for as_var in \ |
| 20230 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 20231 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 20232 | LC_TELEPHONE LC_TIME |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20233 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20234 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 20235 | eval $as_var=C; export $as_var |
| 20236 | else |
| 20237 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 20238 | fi |
| 20239 | done |
| 20240 | |
| 20241 | # Required to use basename. |
| 20242 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 20243 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 20244 | as_expr=expr |
| 20245 | else |
| 20246 | as_expr=false |
| 20247 | fi |
| 20248 | |
| 20249 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 20250 | as_basename=basename |
| 20251 | else |
| 20252 | as_basename=false |
| 20253 | fi |
| 20254 | |
| 20255 | |
| 20256 | # Name of the executable. |
| 20257 | as_me=`$as_basename -- "$0" || |
| 20258 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 20259 | X"$0" : 'X\(//\)$' \| \ |
| 20260 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 20261 | echo X/"$0" | |
| 20262 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 20263 | s//\1/ |
| 20264 | q |
| 20265 | } |
| 20266 | /^X\/\(\/\/\)$/{ |
| 20267 | s//\1/ |
| 20268 | q |
| 20269 | } |
| 20270 | /^X\/\(\/\).*/{ |
| 20271 | s//\1/ |
| 20272 | q |
| 20273 | } |
| 20274 | s/.*/./; q'` |
| 20275 | |
| 20276 | # CDPATH. |
| 20277 | $as_unset CDPATH |
| 20278 | |
| 20279 | |
| 20280 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20281 | as_lineno_1=$LINENO |
| 20282 | as_lineno_2=$LINENO |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20283 | test "x$as_lineno_1" != "x$as_lineno_2" && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20284 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20285 | |
| 20286 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 20287 | # uniformly replaced by the line number. The first 'sed' inserts a |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20288 | # line-number line after each line using $LINENO; the second 'sed' |
| 20289 | # does the real work. The second script uses 'N' to pair each |
| 20290 | # line-number line with the line containing $LINENO, and appends |
| 20291 | # trailing '-' during substitution so that $LINENO is not a special |
| 20292 | # case at line end. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20293 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20294 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 20295 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 20296 | sed -n ' |
| 20297 | p |
| 20298 | /[$]LINENO/= |
| 20299 | ' <$as_myself | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20300 | sed ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20301 | s/[$]LINENO.*/&-/ |
| 20302 | t lineno |
| 20303 | b |
| 20304 | :lineno |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20305 | N |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20306 | :loop |
| 20307 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20308 | t loop |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20309 | s/-\n.*// |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20310 | ' >$as_me.lineno && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20311 | chmod +x "$as_me.lineno" || |
| 20312 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20313 | { (exit 1); exit 1; }; } |
| 20314 | |
| 20315 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 20316 | # (the dirname of $[0] is not the place where we might find the |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20317 | # original and so on. Autoconf is especially sensitive to this). |
| 20318 | . "./$as_me.lineno" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20319 | # Exit status is that of the last command. |
| 20320 | exit |
| 20321 | } |
| 20322 | |
| 20323 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20324 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 20325 | as_dirname=dirname |
| 20326 | else |
| 20327 | as_dirname=false |
| 20328 | fi |
| 20329 | |
| 20330 | ECHO_C= ECHO_N= ECHO_T= |
| 20331 | case `echo -n x` in |
| 20332 | -n*) |
| 20333 | case `echo 'x\c'` in |
| 20334 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 20335 | *) ECHO_C='\c';; |
| 20336 | esac;; |
| 20337 | *) |
| 20338 | ECHO_N='-n';; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20339 | esac |
| 20340 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20341 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 20342 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20343 | as_expr=expr |
| 20344 | else |
| 20345 | as_expr=false |
| 20346 | fi |
| 20347 | |
| 20348 | rm -f conf$$ conf$$.exe conf$$.file |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20349 | if test -d conf$$.dir; then |
| 20350 | rm -f conf$$.dir/conf$$.file |
| 20351 | else |
| 20352 | rm -f conf$$.dir |
| 20353 | mkdir conf$$.dir |
| 20354 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20355 | echo >conf$$.file |
| 20356 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20357 | as_ln_s='ln -s' |
| 20358 | # ... but there are two gotchas: |
| 20359 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 20360 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 20361 | # In both cases, we have to default to `cp -p'. |
| 20362 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20363 | as_ln_s='cp -p' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20364 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 20365 | as_ln_s=ln |
| 20366 | else |
| 20367 | as_ln_s='cp -p' |
| 20368 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20369 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 20370 | rmdir conf$$.dir 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20371 | |
| 20372 | if mkdir -p . 2>/dev/null; then |
| 20373 | as_mkdir_p=: |
| 20374 | else |
| 20375 | test -d ./-p && rmdir ./-p |
| 20376 | as_mkdir_p=false |
| 20377 | fi |
| 20378 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20379 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 20380 | # systems may use methods other than mode bits to determine executability. |
| 20381 | cat >conf$$.file <<_ASEOF |
| 20382 | #! /bin/sh |
| 20383 | exit 0 |
| 20384 | _ASEOF |
| 20385 | chmod +x conf$$.file |
| 20386 | if test -x conf$$.file >/dev/null 2>&1; then |
| 20387 | as_executable_p="test -x" |
| 20388 | else |
| 20389 | as_executable_p=: |
| 20390 | fi |
| 20391 | rm -f conf$$.file |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20392 | |
| 20393 | # Sed expression to map a string onto a valid CPP name. |
| 20394 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 20395 | |
| 20396 | # Sed expression to map a string onto a valid variable name. |
| 20397 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 20398 | |
| 20399 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20400 | exec 6>&1 |
| 20401 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20402 | # Save the log message, to keep $[0] and so on meaningful, and to |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20403 | # report actual input values of CONFIG_FILES etc. instead of their |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20404 | # values after options handling. |
| 20405 | ac_log=" |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame^] | 20406 | This file was extended by breakpad $as_me 0.1, which was |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20407 | generated by GNU Autoconf 2.60. Invocation command line was |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20408 | |
| 20409 | CONFIG_FILES = $CONFIG_FILES |
| 20410 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 20411 | CONFIG_LINKS = $CONFIG_LINKS |
| 20412 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 20413 | $ $0 $@ |
| 20414 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20415 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 20416 | " |
| 20417 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20418 | _ACEOF |
| 20419 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20420 | cat >>$CONFIG_STATUS <<_ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20421 | # Files that config.status was made for. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20422 | config_files="$ac_config_files" |
| 20423 | config_headers="$ac_config_headers" |
| 20424 | config_commands="$ac_config_commands" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20425 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20426 | _ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20427 | |
| 20428 | cat >>$CONFIG_STATUS <<\_ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20429 | ac_cs_usage="\ |
| 20430 | \`$as_me' instantiates files from templates according to the |
| 20431 | current configuration. |
| 20432 | |
| 20433 | Usage: $0 [OPTIONS] [FILE]... |
| 20434 | |
| 20435 | -h, --help print this help, then exit |
| 20436 | -V, --version print version number, then exit |
| 20437 | -q, --quiet do not print progress messages |
| 20438 | -d, --debug don't remove temporary files |
| 20439 | --recheck update $as_me by reconfiguring in the same conditions |
| 20440 | --file=FILE[:TEMPLATE] |
| 20441 | instantiate the configuration file FILE |
| 20442 | --header=FILE[:TEMPLATE] |
| 20443 | instantiate the configuration header FILE |
| 20444 | |
| 20445 | Configuration files: |
| 20446 | $config_files |
| 20447 | |
| 20448 | Configuration headers: |
| 20449 | $config_headers |
| 20450 | |
| 20451 | Configuration commands: |
| 20452 | $config_commands |
| 20453 | |
| 20454 | Report bugs to <bug-autoconf@gnu.org>." |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20455 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20456 | _ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20457 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20458 | ac_cs_version="\\ |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame^] | 20459 | breakpad config.status 0.1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20460 | configured by $0, generated by GNU Autoconf 2.60, |
| 20461 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20462 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20463 | Copyright (C) 2006 Free Software Foundation, Inc. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20464 | This config.status script is free software; the Free Software Foundation |
| 20465 | gives unlimited permission to copy, distribute and modify it." |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20466 | |
| 20467 | ac_pwd='$ac_pwd' |
| 20468 | srcdir='$srcdir' |
| 20469 | INSTALL='$INSTALL' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20470 | _ACEOF |
| 20471 | |
| 20472 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20473 | # If no file are specified by the user, then we need to provide default |
| 20474 | # value. By we need to know if files were specified by the user. |
| 20475 | ac_need_defaults=: |
| 20476 | while test $# != 0 |
| 20477 | do |
| 20478 | case $1 in |
| 20479 | --*=*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20480 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 20481 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20482 | ac_shift=: |
| 20483 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20484 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20485 | ac_option=$1 |
| 20486 | ac_optarg=$2 |
| 20487 | ac_shift=shift |
| 20488 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20489 | esac |
| 20490 | |
| 20491 | case $ac_option in |
| 20492 | # Handling of the options. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20493 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 20494 | ac_cs_recheck=: ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20495 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 20496 | echo "$ac_cs_version"; exit ;; |
| 20497 | --debug | --debu | --deb | --de | --d | -d ) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20498 | debug=: ;; |
| 20499 | --file | --fil | --fi | --f ) |
| 20500 | $ac_shift |
| 20501 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 20502 | ac_need_defaults=false;; |
| 20503 | --header | --heade | --head | --hea ) |
| 20504 | $ac_shift |
| 20505 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
| 20506 | ac_need_defaults=false;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20507 | --he | --h) |
| 20508 | # Conflict between --help and --header |
| 20509 | { echo "$as_me: error: ambiguous option: $1 |
| 20510 | Try \`$0 --help' for more information." >&2 |
| 20511 | { (exit 1); exit 1; }; };; |
| 20512 | --help | --hel | -h ) |
| 20513 | echo "$ac_cs_usage"; exit ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20514 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 20515 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 20516 | ac_cs_silent=: ;; |
| 20517 | |
| 20518 | # This is an error. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20519 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 20520 | Try \`$0 --help' for more information." >&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20521 | { (exit 1); exit 1; }; } ;; |
| 20522 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20523 | *) ac_config_targets="$ac_config_targets $1" |
| 20524 | ac_need_defaults=false ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20525 | |
| 20526 | esac |
| 20527 | shift |
| 20528 | done |
| 20529 | |
| 20530 | ac_configure_extra_args= |
| 20531 | |
| 20532 | if $ac_cs_silent; then |
| 20533 | exec 6>/dev/null |
| 20534 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 20535 | fi |
| 20536 | |
| 20537 | _ACEOF |
| 20538 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20539 | if \$ac_cs_recheck; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20540 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 20541 | CONFIG_SHELL=$SHELL |
| 20542 | export CONFIG_SHELL |
| 20543 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20544 | fi |
| 20545 | |
| 20546 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20547 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20548 | exec 5>>config.log |
| 20549 | { |
| 20550 | echo |
| 20551 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 20552 | ## Running $as_me. ## |
| 20553 | _ASBOX |
| 20554 | echo "$ac_log" |
| 20555 | } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20556 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20557 | _ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20558 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20559 | # |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20560 | # INIT-COMMANDS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20561 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20562 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 20563 | |
| 20564 | _ACEOF |
| 20565 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20566 | cat >>$CONFIG_STATUS <<\_ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20567 | |
| 20568 | # Handling of arguments. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20569 | for ac_config_target in $ac_config_targets |
| 20570 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20571 | case $ac_config_target in |
| 20572 | "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; |
| 20573 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 20574 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 20575 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20576 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 20577 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 20578 | { (exit 1); exit 1; }; };; |
| 20579 | esac |
| 20580 | done |
| 20581 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20582 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20583 | # If the user did not use the arguments to specify the items to instantiate, |
| 20584 | # then the envvar interface is used. Set only those that are not. |
| 20585 | # We use the long form for the default assignment because of an extremely |
| 20586 | # bizarre bug on SunOS 4.1.3. |
| 20587 | if $ac_need_defaults; then |
| 20588 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 20589 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 20590 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 20591 | fi |
| 20592 | |
| 20593 | # Have a temporary directory for convenience. Make it in the build tree |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20594 | # simply because there is no reason against having it here, and in addition, |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20595 | # creating and moving files from /tmp can sometimes cause problems. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20596 | # Hook for its removal unless debugging. |
| 20597 | # Note that there is a small window in which the directory will not be cleaned: |
| 20598 | # after its creation but before its name has been assigned to `$tmp'. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20599 | $debug || |
| 20600 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20601 | tmp= |
| 20602 | trap 'exit_status=$? |
| 20603 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 20604 | ' 0 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20605 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 20606 | } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20607 | # Create a (secure) tmp directory for tmp files. |
| 20608 | |
| 20609 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20610 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20611 | test -n "$tmp" && test -d "$tmp" |
| 20612 | } || |
| 20613 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20614 | tmp=./conf$$-$RANDOM |
| 20615 | (umask 077 && mkdir "$tmp") |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20616 | } || |
| 20617 | { |
| 20618 | echo "$me: cannot create a temporary directory in ." >&2 |
| 20619 | { (exit 1); exit 1; } |
| 20620 | } |
| 20621 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20622 | # |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20623 | # Set up the sed scripts for CONFIG_FILES section. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20624 | # |
| 20625 | |
| 20626 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 20627 | # This happens for instance when ./config.status config.h |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20628 | if test -n "$CONFIG_FILES"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20629 | |
| 20630 | _ACEOF |
| 20631 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20632 | |
| 20633 | |
| 20634 | ac_delim='%!_!# ' |
| 20635 | for ac_last_try in false false false false false :; do |
| 20636 | cat >conf$$subs.sed <<_ACEOF |
| 20637 | SHELL!$SHELL$ac_delim |
| 20638 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 20639 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 20640 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 20641 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 20642 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 20643 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 20644 | exec_prefix!$exec_prefix$ac_delim |
| 20645 | prefix!$prefix$ac_delim |
| 20646 | program_transform_name!$program_transform_name$ac_delim |
| 20647 | bindir!$bindir$ac_delim |
| 20648 | sbindir!$sbindir$ac_delim |
| 20649 | libexecdir!$libexecdir$ac_delim |
| 20650 | datarootdir!$datarootdir$ac_delim |
| 20651 | datadir!$datadir$ac_delim |
| 20652 | sysconfdir!$sysconfdir$ac_delim |
| 20653 | sharedstatedir!$sharedstatedir$ac_delim |
| 20654 | localstatedir!$localstatedir$ac_delim |
| 20655 | includedir!$includedir$ac_delim |
| 20656 | oldincludedir!$oldincludedir$ac_delim |
| 20657 | docdir!$docdir$ac_delim |
| 20658 | infodir!$infodir$ac_delim |
| 20659 | htmldir!$htmldir$ac_delim |
| 20660 | dvidir!$dvidir$ac_delim |
| 20661 | pdfdir!$pdfdir$ac_delim |
| 20662 | psdir!$psdir$ac_delim |
| 20663 | libdir!$libdir$ac_delim |
| 20664 | localedir!$localedir$ac_delim |
| 20665 | mandir!$mandir$ac_delim |
| 20666 | DEFS!$DEFS$ac_delim |
| 20667 | ECHO_C!$ECHO_C$ac_delim |
| 20668 | ECHO_N!$ECHO_N$ac_delim |
| 20669 | ECHO_T!$ECHO_T$ac_delim |
| 20670 | LIBS!$LIBS$ac_delim |
| 20671 | build_alias!$build_alias$ac_delim |
| 20672 | host_alias!$host_alias$ac_delim |
| 20673 | target_alias!$target_alias$ac_delim |
| 20674 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 20675 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 20676 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 20677 | CYGPATH_W!$CYGPATH_W$ac_delim |
| 20678 | PACKAGE!$PACKAGE$ac_delim |
| 20679 | VERSION!$VERSION$ac_delim |
| 20680 | ACLOCAL!$ACLOCAL$ac_delim |
| 20681 | AUTOCONF!$AUTOCONF$ac_delim |
| 20682 | AUTOMAKE!$AUTOMAKE$ac_delim |
| 20683 | AUTOHEADER!$AUTOHEADER$ac_delim |
| 20684 | MAKEINFO!$MAKEINFO$ac_delim |
| 20685 | install_sh!$install_sh$ac_delim |
| 20686 | STRIP!$STRIP$ac_delim |
| 20687 | INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim |
| 20688 | mkdir_p!$mkdir_p$ac_delim |
| 20689 | AWK!$AWK$ac_delim |
| 20690 | SET_MAKE!$SET_MAKE$ac_delim |
| 20691 | am__leading_dot!$am__leading_dot$ac_delim |
| 20692 | AMTAR!$AMTAR$ac_delim |
| 20693 | am__tar!$am__tar$ac_delim |
| 20694 | am__untar!$am__untar$ac_delim |
| 20695 | CC!$CC$ac_delim |
| 20696 | CFLAGS!$CFLAGS$ac_delim |
| 20697 | LDFLAGS!$LDFLAGS$ac_delim |
| 20698 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 20699 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 20700 | EXEEXT!$EXEEXT$ac_delim |
| 20701 | OBJEXT!$OBJEXT$ac_delim |
| 20702 | DEPDIR!$DEPDIR$ac_delim |
| 20703 | am__include!$am__include$ac_delim |
| 20704 | am__quote!$am__quote$ac_delim |
| 20705 | AMDEP_TRUE!$AMDEP_TRUE$ac_delim |
| 20706 | AMDEP_FALSE!$AMDEP_FALSE$ac_delim |
| 20707 | AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim |
| 20708 | CCDEPMODE!$CCDEPMODE$ac_delim |
| 20709 | am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim |
| 20710 | am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim |
| 20711 | CPP!$CPP$ac_delim |
| 20712 | CXX!$CXX$ac_delim |
| 20713 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 20714 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 20715 | CXXDEPMODE!$CXXDEPMODE$ac_delim |
| 20716 | am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim |
| 20717 | am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim |
| 20718 | build!$build$ac_delim |
| 20719 | build_cpu!$build_cpu$ac_delim |
| 20720 | build_vendor!$build_vendor$ac_delim |
| 20721 | build_os!$build_os$ac_delim |
| 20722 | host!$host$ac_delim |
| 20723 | host_cpu!$host_cpu$ac_delim |
| 20724 | host_vendor!$host_vendor$ac_delim |
| 20725 | host_os!$host_os$ac_delim |
| 20726 | GREP!$GREP$ac_delim |
| 20727 | EGREP!$EGREP$ac_delim |
| 20728 | LN_S!$LN_S$ac_delim |
| 20729 | ECHO!$ECHO$ac_delim |
| 20730 | AR!$AR$ac_delim |
| 20731 | RANLIB!$RANLIB$ac_delim |
| 20732 | CXXCPP!$CXXCPP$ac_delim |
| 20733 | F77!$F77$ac_delim |
| 20734 | _ACEOF |
| 20735 | |
| 20736 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
| 20737 | break |
| 20738 | elif $ac_last_try; then |
| 20739 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 20740 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 20741 | { (exit 1); exit 1; }; } |
| 20742 | else |
| 20743 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20744 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20745 | done |
| 20746 | |
| 20747 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 20748 | if test -n "$ac_eof"; then |
| 20749 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 20750 | ac_eof=`expr $ac_eof + 1` |
| 20751 | fi |
| 20752 | |
| 20753 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20754 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 20755 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 20756 | _ACEOF |
| 20757 | sed ' |
| 20758 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 20759 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 20760 | :n |
| 20761 | t n |
| 20762 | s/'"$ac_delim"'$/,g/; t |
| 20763 | s/$/\\/; p |
| 20764 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 20765 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 20766 | rm -f conf$$subs.sed |
| 20767 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20768 | CEOF$ac_eof |
| 20769 | _ACEOF |
| 20770 | |
| 20771 | |
| 20772 | ac_delim='%!_!# ' |
| 20773 | for ac_last_try in false false false false false :; do |
| 20774 | cat >conf$$subs.sed <<_ACEOF |
| 20775 | FFLAGS!$FFLAGS$ac_delim |
| 20776 | ac_ct_F77!$ac_ct_F77$ac_delim |
| 20777 | LIBTOOL!$LIBTOOL$ac_delim |
| 20778 | LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 20779 | SELFTEST_TRUE!$SELFTEST_TRUE$ac_delim |
| 20780 | SELFTEST_FALSE!$SELFTEST_FALSE$ac_delim |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20781 | LIBOBJS!$LIBOBJS$ac_delim |
| 20782 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 20783 | _ACEOF |
| 20784 | |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 20785 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20786 | break |
| 20787 | elif $ac_last_try; then |
| 20788 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 20789 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 20790 | { (exit 1); exit 1; }; } |
| 20791 | else |
| 20792 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 20793 | fi |
| 20794 | done |
| 20795 | |
| 20796 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 20797 | if test -n "$ac_eof"; then |
| 20798 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 20799 | ac_eof=`expr $ac_eof + 1` |
| 20800 | fi |
| 20801 | |
| 20802 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20803 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 20804 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 20805 | _ACEOF |
| 20806 | sed ' |
| 20807 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 20808 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 20809 | :n |
| 20810 | t n |
| 20811 | s/'"$ac_delim"'$/,g/; t |
| 20812 | s/$/\\/; p |
| 20813 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 20814 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 20815 | rm -f conf$$subs.sed |
| 20816 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20817 | :end |
| 20818 | s/|#_!!_#|//g |
| 20819 | CEOF$ac_eof |
| 20820 | _ACEOF |
| 20821 | |
| 20822 | |
| 20823 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 20824 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 20825 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 20826 | # (actually we leave an empty line to preserve line numbers). |
| 20827 | if test "x$srcdir" = x.; then |
| 20828 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 20829 | s/:*\$(srcdir):*/:/ |
| 20830 | s/:*\${srcdir}:*/:/ |
| 20831 | s/:*@srcdir@:*/:/ |
| 20832 | s/^\([^=]*=[ ]*\):*/\1/ |
| 20833 | s/:*$// |
| 20834 | s/^[^=]*=[ ]*$// |
| 20835 | }' |
| 20836 | fi |
| 20837 | |
| 20838 | cat >>$CONFIG_STATUS <<\_ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20839 | fi # test -n "$CONFIG_FILES" |
| 20840 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20841 | |
| 20842 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
| 20843 | do |
| 20844 | case $ac_tag in |
| 20845 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 20846 | esac |
| 20847 | case $ac_mode$ac_tag in |
| 20848 | :[FHL]*:*);; |
| 20849 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 20850 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 20851 | { (exit 1); exit 1; }; };; |
| 20852 | :[FH]-) ac_tag=-:-;; |
| 20853 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 20854 | esac |
| 20855 | ac_save_IFS=$IFS |
| 20856 | IFS=: |
| 20857 | set x $ac_tag |
| 20858 | IFS=$ac_save_IFS |
| 20859 | shift |
| 20860 | ac_file=$1 |
| 20861 | shift |
| 20862 | |
| 20863 | case $ac_mode in |
| 20864 | :L) ac_source=$1;; |
| 20865 | :[FH]) |
| 20866 | ac_file_inputs= |
| 20867 | for ac_f |
| 20868 | do |
| 20869 | case $ac_f in |
| 20870 | -) ac_f="$tmp/stdin";; |
| 20871 | *) # Look for the file first in the build tree, then in the source tree |
| 20872 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 20873 | # because $ac_f cannot contain `:'. |
| 20874 | test -f "$ac_f" || |
| 20875 | case $ac_f in |
| 20876 | [\\/$]*) false;; |
| 20877 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 20878 | esac || |
| 20879 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 20880 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 20881 | { (exit 1); exit 1; }; };; |
| 20882 | esac |
| 20883 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 20884 | done |
| 20885 | |
| 20886 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 20887 | # use $as_me), people would be surprised to read: |
| 20888 | # /* config.h. Generated by config.status. */ |
| 20889 | configure_input="Generated from "`IFS=: |
| 20890 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 20891 | if test x"$ac_file" != x-; then |
| 20892 | configure_input="$ac_file. $configure_input" |
| 20893 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 20894 | echo "$as_me: creating $ac_file" >&6;} |
| 20895 | fi |
| 20896 | |
| 20897 | case $ac_tag in |
| 20898 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 20899 | esac |
| 20900 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20901 | esac |
| 20902 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20903 | ac_dir=`$as_dirname -- "$ac_file" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20904 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 20905 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 20906 | X"$ac_file" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20907 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20908 | echo X"$ac_file" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20909 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 20910 | s//\1/ |
| 20911 | q |
| 20912 | } |
| 20913 | /^X\(\/\/\)[^/].*/{ |
| 20914 | s//\1/ |
| 20915 | q |
| 20916 | } |
| 20917 | /^X\(\/\/\)$/{ |
| 20918 | s//\1/ |
| 20919 | q |
| 20920 | } |
| 20921 | /^X\(\/\).*/{ |
| 20922 | s//\1/ |
| 20923 | q |
| 20924 | } |
| 20925 | s/.*/./; q'` |
| 20926 | { as_dir="$ac_dir" |
| 20927 | case $as_dir in #( |
| 20928 | -*) as_dir=./$as_dir;; |
| 20929 | esac |
| 20930 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20931 | as_dirs= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20932 | while :; do |
| 20933 | case $as_dir in #( |
| 20934 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 20935 | *) as_qdir=$as_dir;; |
| 20936 | esac |
| 20937 | as_dirs="'$as_qdir' $as_dirs" |
| 20938 | as_dir=`$as_dirname -- "$as_dir" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20939 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 20940 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 20941 | X"$as_dir" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20942 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20943 | echo X"$as_dir" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20944 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 20945 | s//\1/ |
| 20946 | q |
| 20947 | } |
| 20948 | /^X\(\/\/\)[^/].*/{ |
| 20949 | s//\1/ |
| 20950 | q |
| 20951 | } |
| 20952 | /^X\(\/\/\)$/{ |
| 20953 | s//\1/ |
| 20954 | q |
| 20955 | } |
| 20956 | /^X\(\/\).*/{ |
| 20957 | s//\1/ |
| 20958 | q |
| 20959 | } |
| 20960 | s/.*/./; q'` |
| 20961 | test -d "$as_dir" && break |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20962 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20963 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 20964 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 20965 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20966 | { (exit 1); exit 1; }; }; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20967 | ac_builddir=. |
| 20968 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20969 | case "$ac_dir" in |
| 20970 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 20971 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20972 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20973 | # A ".." for each directory in $ac_dir_suffix. |
| 20974 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 20975 | case $ac_top_builddir_sub in |
| 20976 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 20977 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 20978 | esac ;; |
| 20979 | esac |
| 20980 | ac_abs_top_builddir=$ac_pwd |
| 20981 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 20982 | # for backward compatibility: |
| 20983 | ac_top_builddir=$ac_top_build_prefix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20984 | |
| 20985 | case $srcdir in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20986 | .) # We are building in place. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20987 | ac_srcdir=. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20988 | ac_top_srcdir=$ac_top_builddir_sub |
| 20989 | ac_abs_top_srcdir=$ac_pwd ;; |
| 20990 | [\\/]* | ?:[\\/]* ) # Absolute name. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20991 | ac_srcdir=$srcdir$ac_dir_suffix; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20992 | ac_top_srcdir=$srcdir |
| 20993 | ac_abs_top_srcdir=$srcdir ;; |
| 20994 | *) # Relative name. |
| 20995 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 20996 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 20997 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20998 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20999 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21000 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21001 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21002 | case $ac_mode in |
| 21003 | :F) |
| 21004 | # |
| 21005 | # CONFIG_FILE |
| 21006 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21007 | |
| 21008 | case $INSTALL in |
| 21009 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21010 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21011 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21012 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21013 | |
| 21014 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21015 | # If the template does not know about datarootdir, expand it. |
| 21016 | # FIXME: This hack should be removed a few years after 2.60. |
| 21017 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 21018 | |
| 21019 | case `sed -n '/datarootdir/ { |
| 21020 | p |
| 21021 | q |
| 21022 | } |
| 21023 | /@datadir@/p |
| 21024 | /@docdir@/p |
| 21025 | /@infodir@/p |
| 21026 | /@localedir@/p |
| 21027 | /@mandir@/p |
| 21028 | ' $ac_file_inputs` in |
| 21029 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 21030 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 21031 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 21032 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 21033 | _ACEOF |
| 21034 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21035 | ac_datarootdir_hack=' |
| 21036 | s&@datadir@&$datadir&g |
| 21037 | s&@docdir@&$docdir&g |
| 21038 | s&@infodir@&$infodir&g |
| 21039 | s&@localedir@&$localedir&g |
| 21040 | s&@mandir@&$mandir&g |
| 21041 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 21042 | esac |
| 21043 | _ACEOF |
| 21044 | |
| 21045 | # Neutralize VPATH when `$srcdir' = `.'. |
| 21046 | # Shell code in configure.ac might set extrasub. |
| 21047 | # FIXME: do we really want to maintain this feature? |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21048 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21049 | sed "$ac_vpsub |
| 21050 | $extrasub |
| 21051 | _ACEOF |
| 21052 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21053 | :t |
| 21054 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21055 | s&@configure_input@&$configure_input&;t t |
| 21056 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 21057 | s&@srcdir@&$ac_srcdir&;t t |
| 21058 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 21059 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 21060 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 21061 | s&@builddir@&$ac_builddir&;t t |
| 21062 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 21063 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 21064 | s&@INSTALL@&$ac_INSTALL&;t t |
| 21065 | $ac_datarootdir_hack |
| 21066 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21067 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21068 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 21069 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 21070 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 21071 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 21072 | which seems to be undefined. Please make sure it is defined." >&5 |
| 21073 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 21074 | which seems to be undefined. Please make sure it is defined." >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21075 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21076 | rm -f "$tmp/stdin" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21077 | case $ac_file in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21078 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 21079 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21080 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21081 | ;; |
| 21082 | :H) |
| 21083 | # |
| 21084 | # CONFIG_HEADER |
| 21085 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21086 | _ACEOF |
| 21087 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21088 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 21089 | # substitutes the proper values into config.h.in to produce config.h. |
| 21090 | rm -f conftest.defines conftest.tail |
| 21091 | # First, append a space to every undef/define line, to ease matching. |
| 21092 | echo 's/$/ /' >conftest.defines |
| 21093 | # Then, protect against being on the right side of a sed subst, or in |
| 21094 | # an unquoted here document, in config.status. If some macros were |
| 21095 | # called several times there might be several #defines for the same |
| 21096 | # symbol, which is useless. But do not sort them, since the last |
| 21097 | # AC_DEFINE must be honored. |
| 21098 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 21099 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 21100 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 21101 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 21102 | # just an empty string. |
| 21103 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 21104 | ac_dB='\\)[ (].*,\\1define\\2' |
| 21105 | ac_dC=' ' |
| 21106 | ac_dD=' ,' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21107 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21108 | uniq confdefs.h | |
| 21109 | sed -n ' |
| 21110 | t rset |
| 21111 | :rset |
| 21112 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 21113 | t ok |
| 21114 | d |
| 21115 | :ok |
| 21116 | s/[\\&,]/\\&/g |
| 21117 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 21118 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 21119 | ' >>conftest.defines |
| 21120 | |
| 21121 | # Remove the space that was appended to ease matching. |
| 21122 | # Then replace #undef with comments. This is necessary, for |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21123 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 21124 | # on some systems where configure will not decide to define it. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21125 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 21126 | echo 's/ $// |
| 21127 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21128 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21129 | # Break up conftest.defines: |
| 21130 | ac_max_sed_lines=50 |
| 21131 | |
| 21132 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 21133 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 21134 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 21135 | # et cetera. |
| 21136 | ac_in='$ac_file_inputs' |
| 21137 | ac_out='"$tmp/out1"' |
| 21138 | ac_nxt='"$tmp/out2"' |
| 21139 | |
| 21140 | while : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21141 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21142 | # Write a here document: |
| 21143 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21144 | # First, check the format of the line: |
| 21145 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 21146 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 21147 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 21148 | b |
| 21149 | :def |
| 21150 | _ACEOF |
| 21151 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21152 | echo 'CEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21153 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 21154 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 21155 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 21156 | grep . conftest.tail >/dev/null || break |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21157 | rm -f conftest.defines |
| 21158 | mv conftest.tail conftest.defines |
| 21159 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21160 | rm -f conftest.defines conftest.tail |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21161 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21162 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21163 | cat >>$CONFIG_STATUS <<\_ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21164 | if test x"$ac_file" != x-; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21165 | echo "/* $configure_input */" >"$tmp/config.h" |
| 21166 | cat "$ac_result" >>"$tmp/config.h" |
| 21167 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21168 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 21169 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 21170 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21171 | rm -f $ac_file |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21172 | mv "$tmp/config.h" $ac_file |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21173 | fi |
| 21174 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21175 | echo "/* $configure_input */" |
| 21176 | cat "$ac_result" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21177 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21178 | rm -f "$tmp/out12" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21179 | # Compute $ac_file's index in $config_headers. |
| 21180 | _am_stamp_count=1 |
| 21181 | for _am_header in $config_headers :; do |
| 21182 | case $_am_header in |
| 21183 | $ac_file | $ac_file:* ) |
| 21184 | break ;; |
| 21185 | * ) |
| 21186 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 21187 | esac |
| 21188 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21189 | echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21190 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 21191 | X$ac_file : 'X\(//\)[^/]' \| \ |
| 21192 | X$ac_file : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21193 | X$ac_file : 'X\(/\)' \| . 2>/dev/null || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21194 | echo X$ac_file | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21195 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 21196 | s//\1/ |
| 21197 | q |
| 21198 | } |
| 21199 | /^X\(\/\/\)[^/].*/{ |
| 21200 | s//\1/ |
| 21201 | q |
| 21202 | } |
| 21203 | /^X\(\/\/\)$/{ |
| 21204 | s//\1/ |
| 21205 | q |
| 21206 | } |
| 21207 | /^X\(\/\).*/{ |
| 21208 | s//\1/ |
| 21209 | q |
| 21210 | } |
| 21211 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 21212 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21213 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21214 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 21215 | echo "$as_me: executing $ac_file commands" >&6;} |
| 21216 | ;; |
| 21217 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21218 | |
| 21219 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21220 | case $ac_file$ac_mode in |
| 21221 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21222 | # Strip MF so we end up with the name of the file. |
| 21223 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 21224 | # Check whether this is an Automake generated Makefile or not. |
| 21225 | # We used to match only the files named `Makefile.in', but |
| 21226 | # some people rename them; so instead we look at the file content. |
| 21227 | # Grep'ing the first line is not enough: some people post-process |
| 21228 | # each Makefile.in and add a new line on top of each file to say so. |
| 21229 | # So let's grep whole file. |
| 21230 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21231 | dirpart=`$as_dirname -- "$mf" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21232 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 21233 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 21234 | X"$mf" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21235 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21236 | echo X"$mf" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21237 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 21238 | s//\1/ |
| 21239 | q |
| 21240 | } |
| 21241 | /^X\(\/\/\)[^/].*/{ |
| 21242 | s//\1/ |
| 21243 | q |
| 21244 | } |
| 21245 | /^X\(\/\/\)$/{ |
| 21246 | s//\1/ |
| 21247 | q |
| 21248 | } |
| 21249 | /^X\(\/\).*/{ |
| 21250 | s//\1/ |
| 21251 | q |
| 21252 | } |
| 21253 | s/.*/./; q'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21254 | else |
| 21255 | continue |
| 21256 | fi |
| 21257 | # Extract the definition of DEPDIR, am__include, and am__quote |
| 21258 | # from the Makefile without running `make'. |
| 21259 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 21260 | test -z "$DEPDIR" && continue |
| 21261 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 21262 | test -z "am__include" && continue |
| 21263 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 21264 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 21265 | U=`sed -n 's/^U = //p' < "$mf"` |
| 21266 | # Find all dependency output files, they are included files with |
| 21267 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 21268 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 21269 | # expansion. |
| 21270 | for file in `sed -n " |
| 21271 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 21272 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 21273 | # Make sure the directory exists. |
| 21274 | test -f "$dirpart/$file" && continue |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21275 | fdir=`$as_dirname -- "$file" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21276 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 21277 | X"$file" : 'X\(//\)[^/]' \| \ |
| 21278 | X"$file" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21279 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21280 | echo X"$file" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21281 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 21282 | s//\1/ |
| 21283 | q |
| 21284 | } |
| 21285 | /^X\(\/\/\)[^/].*/{ |
| 21286 | s//\1/ |
| 21287 | q |
| 21288 | } |
| 21289 | /^X\(\/\/\)$/{ |
| 21290 | s//\1/ |
| 21291 | q |
| 21292 | } |
| 21293 | /^X\(\/\).*/{ |
| 21294 | s//\1/ |
| 21295 | q |
| 21296 | } |
| 21297 | s/.*/./; q'` |
| 21298 | { as_dir=$dirpart/$fdir |
| 21299 | case $as_dir in #( |
| 21300 | -*) as_dir=./$as_dir;; |
| 21301 | esac |
| 21302 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21303 | as_dirs= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21304 | while :; do |
| 21305 | case $as_dir in #( |
| 21306 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 21307 | *) as_qdir=$as_dir;; |
| 21308 | esac |
| 21309 | as_dirs="'$as_qdir' $as_dirs" |
| 21310 | as_dir=`$as_dirname -- "$as_dir" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21311 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 21312 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 21313 | X"$as_dir" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21314 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21315 | echo X"$as_dir" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21316 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 21317 | s//\1/ |
| 21318 | q |
| 21319 | } |
| 21320 | /^X\(\/\/\)[^/].*/{ |
| 21321 | s//\1/ |
| 21322 | q |
| 21323 | } |
| 21324 | /^X\(\/\/\)$/{ |
| 21325 | s//\1/ |
| 21326 | q |
| 21327 | } |
| 21328 | /^X\(\/\).*/{ |
| 21329 | s//\1/ |
| 21330 | q |
| 21331 | } |
| 21332 | s/.*/./; q'` |
| 21333 | test -d "$as_dir" && break |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21334 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21335 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 21336 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 21337 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21338 | { (exit 1); exit 1; }; }; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21339 | # echo "creating $dirpart/$file" |
| 21340 | echo '# dummy' > "$dirpart/$file" |
| 21341 | done |
| 21342 | done |
| 21343 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21344 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21345 | esac |
| 21346 | done # for ac_tag |
| 21347 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21348 | |
| 21349 | { (exit 0); exit 0; } |
| 21350 | _ACEOF |
| 21351 | chmod +x $CONFIG_STATUS |
| 21352 | ac_clean_files=$ac_clean_files_save |
| 21353 | |
| 21354 | |
| 21355 | # configure is writing to config.log, and then calls config.status. |
| 21356 | # config.status does its own redirection, appending to config.log. |
| 21357 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 21358 | # by configure, so config.status won't be able to write to it; its |
| 21359 | # output is simply discarded. So we exec the FD to /dev/null, |
| 21360 | # effectively closing config.log, so it can be properly (re)opened and |
| 21361 | # appended to by config.status. When coming back to configure, we |
| 21362 | # need to make the FD available again. |
| 21363 | if test "$no_create" != yes; then |
| 21364 | ac_cs_success=: |
| 21365 | ac_config_status_args= |
| 21366 | test "$silent" = yes && |
| 21367 | ac_config_status_args="$ac_config_status_args --quiet" |
| 21368 | exec 5>/dev/null |
| 21369 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 21370 | exec 5>>config.log |
| 21371 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 21372 | # would make configure fail if this is the last instruction. |
| 21373 | $ac_cs_success || { (exit 1); exit 1; } |
| 21374 | fi |
| 21375 | |