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 | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3 | # Generated by GNU Autoconf 2.60 for airbag 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. |
| 714 | PACKAGE_NAME='airbag' |
| 715 | PACKAGE_TARNAME='airbag' |
| 716 | PACKAGE_VERSION='0.1' |
| 717 | PACKAGE_STRING='airbag 0.1' |
| 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 |
| 858 | LIBOBJS |
| 859 | LTLIBOBJS' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 860 | ac_subst_files='' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 861 | ac_precious_vars='build_alias |
| 862 | host_alias |
| 863 | target_alias |
| 864 | CC |
| 865 | CFLAGS |
| 866 | LDFLAGS |
| 867 | CPPFLAGS |
| 868 | CPP |
| 869 | CXX |
| 870 | CXXFLAGS |
| 871 | CCC |
| 872 | CXXCPP |
| 873 | F77 |
| 874 | FFLAGS' |
| 875 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 876 | |
| 877 | # Initialize some variables set by options. |
| 878 | ac_init_help= |
| 879 | ac_init_version=false |
| 880 | # The variables have the same names as the options, with |
| 881 | # dashes changed to underlines. |
| 882 | cache_file=/dev/null |
| 883 | exec_prefix=NONE |
| 884 | no_create= |
| 885 | no_recursion= |
| 886 | prefix=NONE |
| 887 | program_prefix=NONE |
| 888 | program_suffix=NONE |
| 889 | program_transform_name=s,x,x, |
| 890 | silent= |
| 891 | site= |
| 892 | srcdir= |
| 893 | verbose= |
| 894 | x_includes=NONE |
| 895 | x_libraries=NONE |
| 896 | |
| 897 | # Installation directory options. |
| 898 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 899 | # and all the variables that are supposed to be based on exec_prefix |
| 900 | # by default will actually change. |
| 901 | # Use braces instead of parens because sh, perl, etc. also accept them. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 902 | # (The list follows the same order as the GNU Coding Standards.) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 903 | bindir='${exec_prefix}/bin' |
| 904 | sbindir='${exec_prefix}/sbin' |
| 905 | libexecdir='${exec_prefix}/libexec' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 906 | datarootdir='${prefix}/share' |
| 907 | datadir='${datarootdir}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 908 | sysconfdir='${prefix}/etc' |
| 909 | sharedstatedir='${prefix}/com' |
| 910 | localstatedir='${prefix}/var' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 911 | includedir='${prefix}/include' |
| 912 | oldincludedir='/usr/include' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 913 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 914 | infodir='${datarootdir}/info' |
| 915 | htmldir='${docdir}' |
| 916 | dvidir='${docdir}' |
| 917 | pdfdir='${docdir}' |
| 918 | psdir='${docdir}' |
| 919 | libdir='${exec_prefix}/lib' |
| 920 | localedir='${datarootdir}/locale' |
| 921 | mandir='${datarootdir}/man' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 922 | |
| 923 | ac_prev= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 924 | ac_dashdash= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 925 | for ac_option |
| 926 | do |
| 927 | # If the previous option needs an argument, assign it. |
| 928 | if test -n "$ac_prev"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 929 | eval $ac_prev=\$ac_option |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 930 | ac_prev= |
| 931 | continue |
| 932 | fi |
| 933 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 934 | case $ac_option in |
| 935 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 936 | *) ac_optarg=yes ;; |
| 937 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 938 | |
| 939 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 940 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 941 | case $ac_dashdash$ac_option in |
| 942 | --) |
| 943 | ac_dashdash=yes ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 944 | |
| 945 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 946 | ac_prev=bindir ;; |
| 947 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 948 | bindir=$ac_optarg ;; |
| 949 | |
| 950 | -build | --build | --buil | --bui | --bu) |
| 951 | ac_prev=build_alias ;; |
| 952 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 953 | build_alias=$ac_optarg ;; |
| 954 | |
| 955 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 956 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 957 | ac_prev=cache_file ;; |
| 958 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 959 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 960 | cache_file=$ac_optarg ;; |
| 961 | |
| 962 | --config-cache | -C) |
| 963 | cache_file=config.cache ;; |
| 964 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 965 | -datadir | --datadir | --datadi | --datad) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 966 | ac_prev=datadir ;; |
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 | datadir=$ac_optarg ;; |
| 969 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 970 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 971 | | --dataroo | --dataro | --datar) |
| 972 | ac_prev=datarootdir ;; |
| 973 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 974 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 975 | datarootdir=$ac_optarg ;; |
| 976 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 977 | -disable-* | --disable-*) |
| 978 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 979 | # Reject names that are not valid shell variable names. |
| 980 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 981 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 982 | { (exit 1); exit 1; }; } |
| 983 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 984 | eval enable_$ac_feature=no ;; |
| 985 | |
| 986 | -docdir | --docdir | --docdi | --doc | --do) |
| 987 | ac_prev=docdir ;; |
| 988 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 989 | docdir=$ac_optarg ;; |
| 990 | |
| 991 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 992 | ac_prev=dvidir ;; |
| 993 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 994 | dvidir=$ac_optarg ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 995 | |
| 996 | -enable-* | --enable-*) |
| 997 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 998 | # Reject names that are not valid shell variable names. |
| 999 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1000 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 1001 | { (exit 1); exit 1; }; } |
| 1002 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1003 | eval enable_$ac_feature=\$ac_optarg ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1004 | |
| 1005 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1006 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1007 | | --exec | --exe | --ex) |
| 1008 | ac_prev=exec_prefix ;; |
| 1009 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1010 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1011 | | --exec=* | --exe=* | --ex=*) |
| 1012 | exec_prefix=$ac_optarg ;; |
| 1013 | |
| 1014 | -gas | --gas | --ga | --g) |
| 1015 | # Obsolete; use --with-gas. |
| 1016 | with_gas=yes ;; |
| 1017 | |
| 1018 | -help | --help | --hel | --he | -h) |
| 1019 | ac_init_help=long ;; |
| 1020 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1021 | ac_init_help=recursive ;; |
| 1022 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1023 | ac_init_help=short ;; |
| 1024 | |
| 1025 | -host | --host | --hos | --ho) |
| 1026 | ac_prev=host_alias ;; |
| 1027 | -host=* | --host=* | --hos=* | --ho=*) |
| 1028 | host_alias=$ac_optarg ;; |
| 1029 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1030 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1031 | ac_prev=htmldir ;; |
| 1032 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1033 | | --ht=*) |
| 1034 | htmldir=$ac_optarg ;; |
| 1035 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1036 | -includedir | --includedir | --includedi | --included | --include \ |
| 1037 | | --includ | --inclu | --incl | --inc) |
| 1038 | ac_prev=includedir ;; |
| 1039 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1040 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1041 | includedir=$ac_optarg ;; |
| 1042 | |
| 1043 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1044 | ac_prev=infodir ;; |
| 1045 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1046 | infodir=$ac_optarg ;; |
| 1047 | |
| 1048 | -libdir | --libdir | --libdi | --libd) |
| 1049 | ac_prev=libdir ;; |
| 1050 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1051 | libdir=$ac_optarg ;; |
| 1052 | |
| 1053 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1054 | | --libexe | --libex | --libe) |
| 1055 | ac_prev=libexecdir ;; |
| 1056 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1057 | | --libexe=* | --libex=* | --libe=*) |
| 1058 | libexecdir=$ac_optarg ;; |
| 1059 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1060 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1061 | ac_prev=localedir ;; |
| 1062 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1063 | localedir=$ac_optarg ;; |
| 1064 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1065 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1066 | | --localstate | --localstat | --localsta | --localst | --locals) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1067 | ac_prev=localstatedir ;; |
| 1068 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1069 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1070 | localstatedir=$ac_optarg ;; |
| 1071 | |
| 1072 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1073 | ac_prev=mandir ;; |
| 1074 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1075 | mandir=$ac_optarg ;; |
| 1076 | |
| 1077 | -nfp | --nfp | --nf) |
| 1078 | # Obsolete; use --without-fp. |
| 1079 | with_fp=no ;; |
| 1080 | |
| 1081 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1082 | | --no-cr | --no-c | -n) |
| 1083 | no_create=yes ;; |
| 1084 | |
| 1085 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1086 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1087 | no_recursion=yes ;; |
| 1088 | |
| 1089 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1090 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1091 | | --oldin | --oldi | --old | --ol | --o) |
| 1092 | ac_prev=oldincludedir ;; |
| 1093 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1094 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1095 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1096 | oldincludedir=$ac_optarg ;; |
| 1097 | |
| 1098 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1099 | ac_prev=prefix ;; |
| 1100 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1101 | prefix=$ac_optarg ;; |
| 1102 | |
| 1103 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1104 | | --program-pre | --program-pr | --program-p) |
| 1105 | ac_prev=program_prefix ;; |
| 1106 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1107 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1108 | program_prefix=$ac_optarg ;; |
| 1109 | |
| 1110 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1111 | | --program-suf | --program-su | --program-s) |
| 1112 | ac_prev=program_suffix ;; |
| 1113 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1114 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1115 | program_suffix=$ac_optarg ;; |
| 1116 | |
| 1117 | -program-transform-name | --program-transform-name \ |
| 1118 | | --program-transform-nam | --program-transform-na \ |
| 1119 | | --program-transform-n | --program-transform- \ |
| 1120 | | --program-transform | --program-transfor \ |
| 1121 | | --program-transfo | --program-transf \ |
| 1122 | | --program-trans | --program-tran \ |
| 1123 | | --progr-tra | --program-tr | --program-t) |
| 1124 | ac_prev=program_transform_name ;; |
| 1125 | -program-transform-name=* | --program-transform-name=* \ |
| 1126 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1127 | | --program-transform-n=* | --program-transform-=* \ |
| 1128 | | --program-transform=* | --program-transfor=* \ |
| 1129 | | --program-transfo=* | --program-transf=* \ |
| 1130 | | --program-trans=* | --program-tran=* \ |
| 1131 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1132 | program_transform_name=$ac_optarg ;; |
| 1133 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1134 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1135 | ac_prev=pdfdir ;; |
| 1136 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1137 | pdfdir=$ac_optarg ;; |
| 1138 | |
| 1139 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1140 | ac_prev=psdir ;; |
| 1141 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1142 | psdir=$ac_optarg ;; |
| 1143 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1144 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1145 | | -silent | --silent | --silen | --sile | --sil) |
| 1146 | silent=yes ;; |
| 1147 | |
| 1148 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1149 | ac_prev=sbindir ;; |
| 1150 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1151 | | --sbi=* | --sb=*) |
| 1152 | sbindir=$ac_optarg ;; |
| 1153 | |
| 1154 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1155 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1156 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1157 | | --sha | --sh) |
| 1158 | ac_prev=sharedstatedir ;; |
| 1159 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1160 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1161 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1162 | | --sha=* | --sh=*) |
| 1163 | sharedstatedir=$ac_optarg ;; |
| 1164 | |
| 1165 | -site | --site | --sit) |
| 1166 | ac_prev=site ;; |
| 1167 | -site=* | --site=* | --sit=*) |
| 1168 | site=$ac_optarg ;; |
| 1169 | |
| 1170 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1171 | ac_prev=srcdir ;; |
| 1172 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1173 | srcdir=$ac_optarg ;; |
| 1174 | |
| 1175 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1176 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1177 | ac_prev=sysconfdir ;; |
| 1178 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1179 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1180 | sysconfdir=$ac_optarg ;; |
| 1181 | |
| 1182 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1183 | ac_prev=target_alias ;; |
| 1184 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1185 | target_alias=$ac_optarg ;; |
| 1186 | |
| 1187 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1188 | verbose=yes ;; |
| 1189 | |
| 1190 | -version | --version | --versio | --versi | --vers | -V) |
| 1191 | ac_init_version=: ;; |
| 1192 | |
| 1193 | -with-* | --with-*) |
| 1194 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1195 | # Reject names that are not valid shell variable names. |
| 1196 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1197 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1198 | { (exit 1); exit 1; }; } |
| 1199 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1200 | eval with_$ac_package=\$ac_optarg ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1201 | |
| 1202 | -without-* | --without-*) |
| 1203 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1204 | # Reject names that are not valid shell variable names. |
| 1205 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1206 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1207 | { (exit 1); exit 1; }; } |
| 1208 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1209 | eval with_$ac_package=no ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1210 | |
| 1211 | --x) |
| 1212 | # Obsolete; use --with-x. |
| 1213 | with_x=yes ;; |
| 1214 | |
| 1215 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1216 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1217 | ac_prev=x_includes ;; |
| 1218 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1219 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1220 | x_includes=$ac_optarg ;; |
| 1221 | |
| 1222 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1223 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1224 | ac_prev=x_libraries ;; |
| 1225 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1226 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1227 | x_libraries=$ac_optarg ;; |
| 1228 | |
| 1229 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1230 | Try \`$0 --help' for more information." >&2 |
| 1231 | { (exit 1); exit 1; }; } |
| 1232 | ;; |
| 1233 | |
| 1234 | *=*) |
| 1235 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1236 | # Reject names that are not valid shell variable names. |
| 1237 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1238 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1239 | { (exit 1); exit 1; }; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1240 | eval $ac_envvar=\$ac_optarg |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1241 | export $ac_envvar ;; |
| 1242 | |
| 1243 | *) |
| 1244 | # FIXME: should be removed in autoconf 3.0. |
| 1245 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1246 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1247 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1248 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1249 | ;; |
| 1250 | |
| 1251 | esac |
| 1252 | done |
| 1253 | |
| 1254 | if test -n "$ac_prev"; then |
| 1255 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1256 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1257 | { (exit 1); exit 1; }; } |
| 1258 | fi |
| 1259 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1260 | # Be sure to have absolute directory names. |
| 1261 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1262 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1263 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1264 | libdir localedir mandir |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1265 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1266 | eval ac_val=\$$ac_var |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1267 | case $ac_val in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1268 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1269 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1270 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1271 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1272 | { (exit 1); exit 1; }; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1273 | done |
| 1274 | |
| 1275 | # There might be people who depend on the old broken behavior: `$host' |
| 1276 | # used to hold the argument of --host etc. |
| 1277 | # FIXME: To remove some day. |
| 1278 | build=$build_alias |
| 1279 | host=$host_alias |
| 1280 | target=$target_alias |
| 1281 | |
| 1282 | # FIXME: To remove some day. |
| 1283 | if test "x$host_alias" != x; then |
| 1284 | if test "x$build_alias" = x; then |
| 1285 | cross_compiling=maybe |
| 1286 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1287 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1288 | elif test "x$build_alias" != "x$host_alias"; then |
| 1289 | cross_compiling=yes |
| 1290 | fi |
| 1291 | fi |
| 1292 | |
| 1293 | ac_tool_prefix= |
| 1294 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1295 | |
| 1296 | test "$silent" = yes && exec 6>/dev/null |
| 1297 | |
| 1298 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1299 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1300 | ac_ls_di=`ls -di .` && |
| 1301 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1302 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1303 | { (exit 1); exit 1; }; } |
| 1304 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1305 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1306 | { (exit 1); exit 1; }; } |
| 1307 | |
| 1308 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1309 | # Find the source files, if location was not specified. |
| 1310 | if test -z "$srcdir"; then |
| 1311 | ac_srcdir_defaulted=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1312 | # Try the directory containing this script, then the parent directory. |
| 1313 | ac_confdir=`$as_dirname -- "$0" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1314 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1315 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1316 | X"$0" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1317 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1318 | echo X"$0" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1319 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1320 | s//\1/ |
| 1321 | q |
| 1322 | } |
| 1323 | /^X\(\/\/\)[^/].*/{ |
| 1324 | s//\1/ |
| 1325 | q |
| 1326 | } |
| 1327 | /^X\(\/\/\)$/{ |
| 1328 | s//\1/ |
| 1329 | q |
| 1330 | } |
| 1331 | /^X\(\/\).*/{ |
| 1332 | s//\1/ |
| 1333 | q |
| 1334 | } |
| 1335 | s/.*/./; q'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1336 | srcdir=$ac_confdir |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1337 | if test ! -r "$srcdir/$ac_unique_file"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1338 | srcdir=.. |
| 1339 | fi |
| 1340 | else |
| 1341 | ac_srcdir_defaulted=no |
| 1342 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1343 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1344 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1345 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1346 | { (exit 1); exit 1; }; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1347 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1348 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1349 | ac_abs_confdir=`( |
| 1350 | 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] | 1351 | { (exit 1); exit 1; }; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1352 | pwd)` |
| 1353 | # When building in place, set srcdir=. |
| 1354 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1355 | srcdir=. |
| 1356 | fi |
| 1357 | # Remove unnecessary trailing slashes from srcdir. |
| 1358 | # Double slashes in file names in object file debugging info |
| 1359 | # mess up M-x gdb in Emacs. |
| 1360 | case $srcdir in |
| 1361 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1362 | esac |
| 1363 | for ac_var in $ac_precious_vars; do |
| 1364 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1365 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1366 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1367 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1368 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1369 | |
| 1370 | # |
| 1371 | # Report the --help message. |
| 1372 | # |
| 1373 | if test "$ac_init_help" = "long"; then |
| 1374 | # Omit some internal or obsolete options to make the list less imposing. |
| 1375 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1376 | cat <<_ACEOF |
| 1377 | \`configure' configures airbag 0.1 to adapt to many kinds of systems. |
| 1378 | |
| 1379 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1380 | |
| 1381 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1382 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1383 | |
| 1384 | Defaults for the options are specified in brackets. |
| 1385 | |
| 1386 | Configuration: |
| 1387 | -h, --help display this help and exit |
| 1388 | --help=short display options specific to this package |
| 1389 | --help=recursive display the short help of all the included packages |
| 1390 | -V, --version display version information and exit |
| 1391 | -q, --quiet, --silent do not print \`checking...' messages |
| 1392 | --cache-file=FILE cache test results in FILE [disabled] |
| 1393 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1394 | -n, --no-create do not create output files |
| 1395 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1396 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1397 | Installation directories: |
| 1398 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1399 | [$ac_default_prefix] |
| 1400 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1401 | [PREFIX] |
| 1402 | |
| 1403 | By default, \`make install' will install all the files in |
| 1404 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1405 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1406 | for instance \`--prefix=\$HOME'. |
| 1407 | |
| 1408 | For better control, use the options below. |
| 1409 | |
| 1410 | Fine tuning of the installation directories: |
| 1411 | --bindir=DIR user executables [EPREFIX/bin] |
| 1412 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1413 | --libexecdir=DIR program executables [EPREFIX/libexec] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1414 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1415 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1416 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1417 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1418 | --includedir=DIR C header files [PREFIX/include] |
| 1419 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1420 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1421 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1422 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1423 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1424 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1425 | --docdir=DIR documentation root [DATAROOTDIR/doc/airbag] |
| 1426 | --htmldir=DIR html documentation [DOCDIR] |
| 1427 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1428 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1429 | --psdir=DIR ps documentation [DOCDIR] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1430 | _ACEOF |
| 1431 | |
| 1432 | cat <<\_ACEOF |
| 1433 | |
| 1434 | Program names: |
| 1435 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1436 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1437 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1438 | |
| 1439 | System types: |
| 1440 | --build=BUILD configure for building on BUILD [guessed] |
| 1441 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1442 | _ACEOF |
| 1443 | fi |
| 1444 | |
| 1445 | if test -n "$ac_init_help"; then |
| 1446 | case $ac_init_help in |
| 1447 | short | recursive ) echo "Configuration of airbag 0.1:";; |
| 1448 | esac |
| 1449 | cat <<\_ACEOF |
| 1450 | |
| 1451 | Optional Features: |
| 1452 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1453 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1454 | --disable-dependency-tracking speeds up one-time build |
| 1455 | --enable-dependency-tracking do not reject slow dependency extractors |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1456 | --enable-shared[=PKGS] build shared libraries [default=yes] |
| 1457 | --enable-static[=PKGS] build static libraries [default=yes] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1458 | --enable-fast-install[=PKGS] |
| 1459 | optimize for fast installation [default=yes] |
| 1460 | --disable-libtool-lock avoid locking (might break parallel builds) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1461 | |
| 1462 | Optional Packages: |
| 1463 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1464 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1465 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1466 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1467 | both] |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1468 | --with-tags[=TAGS] include additional configurations [automatic] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1469 | |
| 1470 | Some influential environment variables: |
| 1471 | CC C compiler command |
| 1472 | CFLAGS C compiler flags |
| 1473 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1474 | nonstandard directory <lib dir> |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1475 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1476 | you have headers in a nonstandard directory <include dir> |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1477 | CPP C preprocessor |
| 1478 | CXX C++ compiler command |
| 1479 | CXXFLAGS C++ compiler flags |
| 1480 | CXXCPP C++ preprocessor |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1481 | F77 Fortran 77 compiler command |
| 1482 | FFLAGS Fortran 77 compiler flags |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1483 | |
| 1484 | Use these variables to override the choices made by `configure' or to help |
| 1485 | it to find libraries and programs with nonstandard names/locations. |
| 1486 | |
| 1487 | Report bugs to <opensource@google.com>. |
| 1488 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1489 | ac_status=$? |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1490 | fi |
| 1491 | |
| 1492 | if test "$ac_init_help" = "recursive"; then |
| 1493 | # If there are subdirs, report their specific --help. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1494 | 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^] | 1495 | test -d "$ac_dir" || continue |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1496 | ac_builddir=. |
| 1497 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1498 | case "$ac_dir" in |
| 1499 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1500 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1501 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1502 | # A ".." for each directory in $ac_dir_suffix. |
| 1503 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1504 | case $ac_top_builddir_sub in |
| 1505 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1506 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1507 | esac ;; |
| 1508 | esac |
| 1509 | ac_abs_top_builddir=$ac_pwd |
| 1510 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1511 | # for backward compatibility: |
| 1512 | ac_top_builddir=$ac_top_build_prefix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1513 | |
| 1514 | case $srcdir in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1515 | .) # We are building in place. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1516 | ac_srcdir=. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1517 | ac_top_srcdir=$ac_top_builddir_sub |
| 1518 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1519 | [\\/]* | ?:[\\/]* ) # Absolute name. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1520 | ac_srcdir=$srcdir$ac_dir_suffix; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1521 | ac_top_srcdir=$srcdir |
| 1522 | ac_abs_top_srcdir=$srcdir ;; |
| 1523 | *) # Relative name. |
| 1524 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1525 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1526 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1527 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1528 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1529 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1530 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1531 | # Check for guested configure. |
| 1532 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1533 | echo && |
| 1534 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1535 | elif test -f "$ac_srcdir/configure"; then |
| 1536 | echo && |
| 1537 | $SHELL "$ac_srcdir/configure" --help=recursive |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1538 | else |
| 1539 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1540 | fi || ac_status=$? |
| 1541 | cd "$ac_pwd" || { ac_status=$?; break; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1542 | done |
| 1543 | fi |
| 1544 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1545 | test -n "$ac_init_help" && exit $ac_status |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1546 | if $ac_init_version; then |
| 1547 | cat <<\_ACEOF |
| 1548 | airbag configure 0.1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1549 | generated by GNU Autoconf 2.60 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1550 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1551 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1552 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1553 | This configure script is free software; the Free Software Foundation |
| 1554 | gives unlimited permission to copy, distribute and modify it. |
| 1555 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1556 | exit |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1557 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1558 | cat >config.log <<_ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1559 | This file contains any messages produced by compilers while |
| 1560 | running configure, to aid debugging if configure makes a mistake. |
| 1561 | |
| 1562 | It was created by airbag $as_me 0.1, which was |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1563 | generated by GNU Autoconf 2.60. Invocation command line was |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1564 | |
| 1565 | $ $0 $@ |
| 1566 | |
| 1567 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1568 | exec 5>>config.log |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1569 | { |
| 1570 | cat <<_ASUNAME |
| 1571 | ## --------- ## |
| 1572 | ## Platform. ## |
| 1573 | ## --------- ## |
| 1574 | |
| 1575 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1576 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1577 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1578 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1579 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1580 | |
| 1581 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1582 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1583 | |
| 1584 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1585 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1586 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1587 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1588 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1589 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1590 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1591 | |
| 1592 | _ASUNAME |
| 1593 | |
| 1594 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1595 | for as_dir in $PATH |
| 1596 | do |
| 1597 | IFS=$as_save_IFS |
| 1598 | test -z "$as_dir" && as_dir=. |
| 1599 | echo "PATH: $as_dir" |
| 1600 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1601 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1602 | |
| 1603 | } >&5 |
| 1604 | |
| 1605 | cat >&5 <<_ACEOF |
| 1606 | |
| 1607 | |
| 1608 | ## ----------- ## |
| 1609 | ## Core tests. ## |
| 1610 | ## ----------- ## |
| 1611 | |
| 1612 | _ACEOF |
| 1613 | |
| 1614 | |
| 1615 | # Keep a trace of the command line. |
| 1616 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1617 | # Strip out --silent because we don't want to record it for future runs. |
| 1618 | # Also quote any args containing shell meta-characters. |
| 1619 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1620 | ac_configure_args= |
| 1621 | ac_configure_args0= |
| 1622 | ac_configure_args1= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1623 | ac_must_keep_next=false |
| 1624 | for ac_pass in 1 2 |
| 1625 | do |
| 1626 | for ac_arg |
| 1627 | do |
| 1628 | case $ac_arg in |
| 1629 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1630 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1631 | | -silent | --silent | --silen | --sile | --sil) |
| 1632 | continue ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1633 | *\'*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1634 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1635 | esac |
| 1636 | case $ac_pass in |
| 1637 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1638 | 2) |
| 1639 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1640 | if test $ac_must_keep_next = true; then |
| 1641 | ac_must_keep_next=false # Got value, back to normal. |
| 1642 | else |
| 1643 | case $ac_arg in |
| 1644 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1645 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1646 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1647 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1648 | case "$ac_configure_args0 " in |
| 1649 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1650 | esac |
| 1651 | ;; |
| 1652 | -* ) ac_must_keep_next=true ;; |
| 1653 | esac |
| 1654 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1655 | ac_configure_args="$ac_configure_args '$ac_arg'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1656 | ;; |
| 1657 | esac |
| 1658 | done |
| 1659 | done |
| 1660 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1661 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1662 | |
| 1663 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1664 | # config.log. We remove comments because anyway the quotes in there |
| 1665 | # would cause problems or look ugly. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1666 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1667 | # 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] | 1668 | trap 'exit_status=$? |
| 1669 | # Save into config.log some information that might help in debugging. |
| 1670 | { |
| 1671 | echo |
| 1672 | |
| 1673 | cat <<\_ASBOX |
| 1674 | ## ---------------- ## |
| 1675 | ## Cache variables. ## |
| 1676 | ## ---------------- ## |
| 1677 | _ASBOX |
| 1678 | echo |
| 1679 | # The following way of writing the cache mishandles newlines in values, |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1680 | ( |
| 1681 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1682 | eval ac_val=\$$ac_var |
| 1683 | case $ac_val in #( |
| 1684 | *${as_nl}*) |
| 1685 | case $ac_var in #( |
| 1686 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1687 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1688 | esac |
| 1689 | case $ac_var in #( |
| 1690 | _ | IFS | as_nl) ;; #( |
| 1691 | *) $as_unset $ac_var ;; |
| 1692 | esac ;; |
| 1693 | esac |
| 1694 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1695 | (set) 2>&1 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1696 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1697 | *${as_nl}ac_space=\ *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1698 | sed -n \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1699 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1700 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1701 | ;; #( |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1702 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1703 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1704 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1705 | esac | |
| 1706 | sort |
| 1707 | ) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1708 | echo |
| 1709 | |
| 1710 | cat <<\_ASBOX |
| 1711 | ## ----------------- ## |
| 1712 | ## Output variables. ## |
| 1713 | ## ----------------- ## |
| 1714 | _ASBOX |
| 1715 | echo |
| 1716 | for ac_var in $ac_subst_vars |
| 1717 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1718 | eval ac_val=\$$ac_var |
| 1719 | case $ac_val in |
| 1720 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1721 | esac |
| 1722 | echo "$ac_var='\''$ac_val'\''" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1723 | done | sort |
| 1724 | echo |
| 1725 | |
| 1726 | if test -n "$ac_subst_files"; then |
| 1727 | cat <<\_ASBOX |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1728 | ## ------------------- ## |
| 1729 | ## File substitutions. ## |
| 1730 | ## ------------------- ## |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1731 | _ASBOX |
| 1732 | echo |
| 1733 | for ac_var in $ac_subst_files |
| 1734 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1735 | eval ac_val=\$$ac_var |
| 1736 | case $ac_val in |
| 1737 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1738 | esac |
| 1739 | echo "$ac_var='\''$ac_val'\''" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1740 | done | sort |
| 1741 | echo |
| 1742 | fi |
| 1743 | |
| 1744 | if test -s confdefs.h; then |
| 1745 | cat <<\_ASBOX |
| 1746 | ## ----------- ## |
| 1747 | ## confdefs.h. ## |
| 1748 | ## ----------- ## |
| 1749 | _ASBOX |
| 1750 | echo |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1751 | cat confdefs.h |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1752 | echo |
| 1753 | fi |
| 1754 | test "$ac_signal" != 0 && |
| 1755 | echo "$as_me: caught signal $ac_signal" |
| 1756 | echo "$as_me: exit $exit_status" |
| 1757 | } >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1758 | rm -f core *.core core.conftest.* && |
| 1759 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1760 | exit $exit_status |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1761 | ' 0 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1762 | for ac_signal in 1 2 13 15; do |
| 1763 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1764 | done |
| 1765 | ac_signal=0 |
| 1766 | |
| 1767 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1768 | rm -f -r conftest* confdefs.h |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1769 | |
| 1770 | # Predefined preprocessor variables. |
| 1771 | |
| 1772 | cat >>confdefs.h <<_ACEOF |
| 1773 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1774 | _ACEOF |
| 1775 | |
| 1776 | |
| 1777 | cat >>confdefs.h <<_ACEOF |
| 1778 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1779 | _ACEOF |
| 1780 | |
| 1781 | |
| 1782 | cat >>confdefs.h <<_ACEOF |
| 1783 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1784 | _ACEOF |
| 1785 | |
| 1786 | |
| 1787 | cat >>confdefs.h <<_ACEOF |
| 1788 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1789 | _ACEOF |
| 1790 | |
| 1791 | |
| 1792 | cat >>confdefs.h <<_ACEOF |
| 1793 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1794 | _ACEOF |
| 1795 | |
| 1796 | |
| 1797 | # Let the site file select an alternate cache file if it wants to. |
| 1798 | # Prefer explicitly selected file to automatically selected ones. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1799 | if test -n "$CONFIG_SITE"; then |
| 1800 | set x "$CONFIG_SITE" |
| 1801 | elif test "x$prefix" != xNONE; then |
| 1802 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1803 | else |
| 1804 | set x "$ac_default_prefix/share/config.site" \ |
| 1805 | "$ac_default_prefix/etc/config.site" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1806 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1807 | shift |
| 1808 | for ac_site_file |
| 1809 | do |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1810 | if test -r "$ac_site_file"; then |
| 1811 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1812 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1813 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1814 | . "$ac_site_file" |
| 1815 | fi |
| 1816 | done |
| 1817 | |
| 1818 | if test -r "$cache_file"; then |
| 1819 | # Some versions of bash will fail to source /dev/null (special |
| 1820 | # files actually), so we avoid doing that. |
| 1821 | if test -f "$cache_file"; then |
| 1822 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1823 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1824 | case $cache_file in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1825 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1826 | *) . "./$cache_file";; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1827 | esac |
| 1828 | fi |
| 1829 | else |
| 1830 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1831 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1832 | >$cache_file |
| 1833 | fi |
| 1834 | |
| 1835 | # Check that the precious variables saved in the cache have kept the same |
| 1836 | # value. |
| 1837 | ac_cache_corrupted=false |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1838 | for ac_var in $ac_precious_vars; do |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1839 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1840 | eval ac_new_set=\$ac_env_${ac_var}_set |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1841 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1842 | eval ac_new_val=\$ac_env_${ac_var}_value |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1843 | case $ac_old_set,$ac_new_set in |
| 1844 | set,) |
| 1845 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1846 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1847 | ac_cache_corrupted=: ;; |
| 1848 | ,set) |
| 1849 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1850 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1851 | ac_cache_corrupted=: ;; |
| 1852 | ,);; |
| 1853 | *) |
| 1854 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1855 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1856 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1857 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1858 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1859 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1860 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1861 | ac_cache_corrupted=: |
| 1862 | fi;; |
| 1863 | esac |
| 1864 | # Pass precious variables to config.status. |
| 1865 | if test "$ac_new_set" = set; then |
| 1866 | case $ac_new_val in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1867 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1868 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1869 | esac |
| 1870 | case " $ac_configure_args " in |
| 1871 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1872 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1873 | esac |
| 1874 | fi |
| 1875 | done |
| 1876 | if $ac_cache_corrupted; then |
| 1877 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1878 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1879 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1880 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1881 | { (exit 1); exit 1; }; } |
| 1882 | fi |
| 1883 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1884 | |
| 1885 | |
| 1886 | |
| 1887 | |
| 1888 | |
| 1889 | |
| 1890 | |
| 1891 | |
| 1892 | |
| 1893 | |
| 1894 | |
| 1895 | |
| 1896 | |
| 1897 | |
| 1898 | |
| 1899 | |
| 1900 | |
| 1901 | |
| 1902 | |
| 1903 | |
| 1904 | |
| 1905 | |
| 1906 | |
| 1907 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1908 | ac_ext=c |
| 1909 | ac_cpp='$CPP $CPPFLAGS' |
| 1910 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1911 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1912 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1913 | |
| 1914 | |
| 1915 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1916 | ac_aux_dir= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1917 | for ac_dir in autotools "$srcdir"/autotools; do |
| 1918 | if test -f "$ac_dir/install-sh"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1919 | ac_aux_dir=$ac_dir |
| 1920 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1921 | break |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1922 | elif 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/shtool"; 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/shtool install -c" |
| 1929 | break |
| 1930 | fi |
| 1931 | done |
| 1932 | if test -z "$ac_aux_dir"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1933 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autotools \"$srcdir\"/autotools" >&5 |
| 1934 | 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] | 1935 | { (exit 1); exit 1; }; } |
| 1936 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1937 | |
| 1938 | # These three variables are undocumented and unsupported, |
| 1939 | # and are intended to be withdrawn in a future Autoconf release. |
| 1940 | # They can cause serious problems if a builder's source tree is in a directory |
| 1941 | # whose full name contains unusual characters. |
| 1942 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1943 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1944 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1945 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1946 | |
mmentovai | 425d256 | 2006-08-30 20:05:05 +0000 | [diff] [blame] | 1947 | |
| 1948 | am__api_version="1.9" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1949 | # Find a good install program. We prefer a C program (faster), |
| 1950 | # so one script is as good as another. But avoid the broken or |
| 1951 | # incompatible versions: |
| 1952 | # SysV /etc/install, /usr/sbin/install |
| 1953 | # SunOS /usr/etc/install |
| 1954 | # IRIX /sbin/install |
| 1955 | # AIX /bin/install |
| 1956 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 1957 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 1958 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1959 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1960 | # OS/2's system install, which has a completely different semantic |
| 1961 | # ./install, which can be erroneously created by make from ./install.sh. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1962 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 1963 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1964 | if test -z "$INSTALL"; then |
| 1965 | if test "${ac_cv_path_install+set}" = set; then |
| 1966 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1967 | else |
| 1968 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1969 | for as_dir in $PATH |
| 1970 | do |
| 1971 | IFS=$as_save_IFS |
| 1972 | test -z "$as_dir" && as_dir=. |
| 1973 | # Account for people who put trailing slashes in PATH elements. |
| 1974 | case $as_dir/ in |
| 1975 | ./ | .// | /cC/* | \ |
| 1976 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 1977 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 1978 | /usr/ucb/* ) ;; |
| 1979 | *) |
| 1980 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 1981 | # Don't use installbsd from OSF since it installs stuff as root |
| 1982 | # by default. |
| 1983 | for ac_prog in ginstall scoinst install; do |
| 1984 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 1985 | 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] | 1986 | if test $ac_prog = install && |
| 1987 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1988 | # AIX install. It has an incompatible calling convention. |
| 1989 | : |
| 1990 | elif test $ac_prog = install && |
| 1991 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1992 | # program-specific install script used by HP pwplus--don't use. |
| 1993 | : |
| 1994 | else |
| 1995 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 1996 | break 3 |
| 1997 | fi |
| 1998 | fi |
| 1999 | done |
| 2000 | done |
| 2001 | ;; |
| 2002 | esac |
| 2003 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2004 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2005 | |
| 2006 | |
| 2007 | fi |
| 2008 | if test "${ac_cv_path_install+set}" = set; then |
| 2009 | INSTALL=$ac_cv_path_install |
| 2010 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2011 | # As a last resort, use the slow shell script. Don't cache a |
| 2012 | # value for INSTALL within a source directory, because that will |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2013 | # break other packages using the cache if that directory is |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2014 | # removed, or if the value is a relative name. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2015 | INSTALL=$ac_install_sh |
| 2016 | fi |
| 2017 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2018 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 2019 | echo "${ECHO_T}$INSTALL" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2020 | |
| 2021 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2022 | # It thinks the first close brace ends the variable substitution. |
| 2023 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2024 | |
| 2025 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 2026 | |
| 2027 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2028 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2029 | { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
| 2030 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2031 | # Just in case |
| 2032 | sleep 1 |
| 2033 | echo timestamp > conftest.file |
| 2034 | # Do `set' in a subshell so we don't clobber the current shell's |
| 2035 | # arguments. Must try -L first in case configure is actually a |
| 2036 | # symlink; some systems play weird games with the mod time of symlinks |
| 2037 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 2038 | # directory). |
| 2039 | if ( |
| 2040 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
| 2041 | if test "$*" = "X"; then |
| 2042 | # -L didn't work. |
| 2043 | set X `ls -t $srcdir/configure conftest.file` |
| 2044 | fi |
| 2045 | rm -f conftest.file |
| 2046 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 2047 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 2048 | |
| 2049 | # If neither matched, then we have a broken ls. This can happen |
| 2050 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 2051 | # broken ls alias from the environment. This has actually |
| 2052 | # happened. Such a system could not be considered "sane". |
| 2053 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
| 2054 | alias in your environment" >&5 |
| 2055 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
| 2056 | alias in your environment" >&2;} |
| 2057 | { (exit 1); exit 1; }; } |
| 2058 | fi |
| 2059 | |
| 2060 | test "$2" = conftest.file |
| 2061 | ) |
| 2062 | then |
| 2063 | # Ok. |
| 2064 | : |
| 2065 | else |
| 2066 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
| 2067 | Check your system clock" >&5 |
| 2068 | echo "$as_me: error: newly created file is older than distributed files! |
| 2069 | Check your system clock" >&2;} |
| 2070 | { (exit 1); exit 1; }; } |
| 2071 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2072 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2073 | echo "${ECHO_T}yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2074 | test "$program_prefix" != NONE && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2075 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2076 | # Use a double $ so make ignores it. |
| 2077 | test "$program_suffix" != NONE && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2078 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2079 | # Double any \ or $. echo might interpret backslashes. |
| 2080 | # By default was `s,x,x', remove it if useless. |
| 2081 | cat <<\_ACEOF >conftest.sed |
| 2082 | s/[\\$]/&&/g;s/;s,x,x,$// |
| 2083 | _ACEOF |
| 2084 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2085 | rm -f conftest.sed |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2086 | |
| 2087 | # expand $ac_aux_dir to an absolute path |
| 2088 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 2089 | |
| 2090 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
| 2091 | # Use eval to expand $SHELL |
| 2092 | if eval "$MISSING --run true"; then |
| 2093 | am_missing_run="$MISSING --run " |
| 2094 | else |
| 2095 | am_missing_run= |
| 2096 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
| 2097 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
| 2098 | fi |
| 2099 | |
| 2100 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
| 2101 | # We used to keeping the `.' as first argument, in order to |
| 2102 | # allow $(mkdir_p) to be used without argument. As in |
| 2103 | # $(mkdir_p) $(somedir) |
| 2104 | # where $(somedir) is conditionally defined. However this is wrong |
| 2105 | # for two reasons: |
| 2106 | # 1. if the package is installed by a user who cannot write `.' |
| 2107 | # make install will fail, |
| 2108 | # 2. the above comment should most certainly read |
| 2109 | # $(mkdir_p) $(DESTDIR)$(somedir) |
| 2110 | # so it does not work when $(somedir) is undefined and |
| 2111 | # $(DESTDIR) is not. |
| 2112 | # To support the latter case, we have to write |
| 2113 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), |
| 2114 | # so the `.' trick is pointless. |
| 2115 | mkdir_p='mkdir -p --' |
| 2116 | else |
| 2117 | # On NextStep and OpenStep, the `mkdir' command does not |
| 2118 | # recognize any option. It will interpret all options as |
| 2119 | # directories to create, and then abort because `.' already |
| 2120 | # exists. |
| 2121 | for d in ./-p ./--version; |
| 2122 | do |
| 2123 | test -d $d && rmdir $d |
| 2124 | done |
| 2125 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
| 2126 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
| 2127 | mkdir_p='$(mkinstalldirs)' |
| 2128 | else |
| 2129 | mkdir_p='$(install_sh) -d' |
| 2130 | fi |
| 2131 | fi |
| 2132 | |
| 2133 | for ac_prog in gawk mawk nawk awk |
| 2134 | do |
| 2135 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2136 | set dummy $ac_prog; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2137 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2138 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2139 | if test "${ac_cv_prog_AWK+set}" = set; then |
| 2140 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2141 | else |
| 2142 | if test -n "$AWK"; then |
| 2143 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 2144 | else |
| 2145 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2146 | for as_dir in $PATH |
| 2147 | do |
| 2148 | IFS=$as_save_IFS |
| 2149 | test -z "$as_dir" && as_dir=. |
| 2150 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2151 | 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] | 2152 | ac_cv_prog_AWK="$ac_prog" |
| 2153 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2154 | break 2 |
| 2155 | fi |
| 2156 | done |
| 2157 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2158 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2159 | |
| 2160 | fi |
| 2161 | fi |
| 2162 | AWK=$ac_cv_prog_AWK |
| 2163 | if test -n "$AWK"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2164 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
| 2165 | echo "${ECHO_T}$AWK" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2166 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2167 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2168 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2169 | fi |
| 2170 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2171 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2172 | test -n "$AWK" && break |
| 2173 | done |
| 2174 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2175 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 2176 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
| 2177 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 2178 | 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] | 2179 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2180 | else |
| 2181 | cat >conftest.make <<\_ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2182 | SHELL = /bin/sh |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2183 | all: |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2184 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2185 | _ACEOF |
| 2186 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2187 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 2188 | *@@@%%%=?*=@@@%%%*) |
| 2189 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 2190 | *) |
| 2191 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 2192 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2193 | rm -f conftest.make |
| 2194 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2195 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 2196 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2197 | echo "${ECHO_T}yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2198 | SET_MAKE= |
| 2199 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2200 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2201 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2202 | SET_MAKE="MAKE=${MAKE-make}" |
| 2203 | fi |
| 2204 | |
| 2205 | rm -rf .tst 2>/dev/null |
| 2206 | mkdir .tst 2>/dev/null |
| 2207 | if test -d .tst; then |
| 2208 | am__leading_dot=. |
| 2209 | else |
| 2210 | am__leading_dot=_ |
| 2211 | fi |
| 2212 | rmdir .tst 2>/dev/null |
| 2213 | |
| 2214 | # test to see if srcdir already configured |
| 2215 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
| 2216 | test -f $srcdir/config.status; then |
| 2217 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
| 2218 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
| 2219 | { (exit 1); exit 1; }; } |
| 2220 | fi |
| 2221 | |
| 2222 | # test whether we have cygpath |
| 2223 | if test -z "$CYGPATH_W"; then |
| 2224 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 2225 | CYGPATH_W='cygpath -w' |
| 2226 | else |
| 2227 | CYGPATH_W=echo |
| 2228 | fi |
| 2229 | fi |
| 2230 | |
| 2231 | |
| 2232 | # Define the identity of the package. |
| 2233 | PACKAGE='airbag' |
| 2234 | VERSION='0.1' |
| 2235 | |
| 2236 | |
| 2237 | cat >>confdefs.h <<_ACEOF |
| 2238 | #define PACKAGE "$PACKAGE" |
| 2239 | _ACEOF |
| 2240 | |
| 2241 | |
| 2242 | cat >>confdefs.h <<_ACEOF |
| 2243 | #define VERSION "$VERSION" |
| 2244 | _ACEOF |
| 2245 | |
| 2246 | # Some tools Automake needs. |
| 2247 | |
| 2248 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 2249 | |
| 2250 | |
| 2251 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 2252 | |
| 2253 | |
| 2254 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 2255 | |
| 2256 | |
| 2257 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 2258 | |
| 2259 | |
| 2260 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 2261 | |
| 2262 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
| 2263 | |
| 2264 | # Installed binaries are usually stripped using `strip' when the user |
| 2265 | # run `make install-strip'. However `strip' might not be the right |
| 2266 | # tool to use in cross-compilation environments, therefore Automake |
| 2267 | # will honor the `STRIP' environment variable to overrule this program. |
| 2268 | if test "$cross_compiling" != no; then |
| 2269 | if test -n "$ac_tool_prefix"; then |
| 2270 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 2271 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2272 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2273 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2274 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 2275 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2276 | else |
| 2277 | if test -n "$STRIP"; then |
| 2278 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2279 | else |
| 2280 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2281 | for as_dir in $PATH |
| 2282 | do |
| 2283 | IFS=$as_save_IFS |
| 2284 | test -z "$as_dir" && as_dir=. |
| 2285 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2286 | 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] | 2287 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 2288 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2289 | break 2 |
| 2290 | fi |
| 2291 | done |
| 2292 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2293 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2294 | |
| 2295 | fi |
| 2296 | fi |
| 2297 | STRIP=$ac_cv_prog_STRIP |
| 2298 | if test -n "$STRIP"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2299 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 2300 | echo "${ECHO_T}$STRIP" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2301 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2302 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2303 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2304 | fi |
| 2305 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2306 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2307 | fi |
| 2308 | if test -z "$ac_cv_prog_STRIP"; then |
| 2309 | ac_ct_STRIP=$STRIP |
| 2310 | # Extract the first word of "strip", so it can be a program name with args. |
| 2311 | set dummy strip; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2312 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2313 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2314 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 2315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2316 | else |
| 2317 | if test -n "$ac_ct_STRIP"; then |
| 2318 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 2319 | else |
| 2320 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2321 | for as_dir in $PATH |
| 2322 | do |
| 2323 | IFS=$as_save_IFS |
| 2324 | test -z "$as_dir" && as_dir=. |
| 2325 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2326 | 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] | 2327 | ac_cv_prog_ac_ct_STRIP="strip" |
| 2328 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2329 | break 2 |
| 2330 | fi |
| 2331 | done |
| 2332 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2333 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2334 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2335 | fi |
| 2336 | fi |
| 2337 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 2338 | if test -n "$ac_ct_STRIP"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2339 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 2340 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2341 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2342 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2343 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2344 | fi |
| 2345 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2346 | if test "x$ac_ct_STRIP" = x; then |
| 2347 | STRIP=":" |
| 2348 | else |
| 2349 | case $cross_compiling:$ac_tool_warned in |
| 2350 | yes:) |
| 2351 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2352 | whose name does not start with the host triplet. If you think this |
| 2353 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2354 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2355 | whose name does not start with the host triplet. If you think this |
| 2356 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2357 | ac_tool_warned=yes ;; |
| 2358 | esac |
| 2359 | STRIP=$ac_ct_STRIP |
| 2360 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2361 | else |
| 2362 | STRIP="$ac_cv_prog_STRIP" |
| 2363 | fi |
| 2364 | |
| 2365 | fi |
| 2366 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
| 2367 | |
| 2368 | # We need awk for the "check" target. The system "awk" is bad on |
| 2369 | # some platforms. |
| 2370 | # Always define AMTAR for backward compatibility. |
| 2371 | |
| 2372 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 2373 | |
| 2374 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
| 2375 | |
| 2376 | |
| 2377 | |
| 2378 | |
| 2379 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2380 | ac_config_headers="$ac_config_headers src/config.h" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2381 | |
| 2382 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2383 | ac_ext=c |
| 2384 | ac_cpp='$CPP $CPPFLAGS' |
| 2385 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2386 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2387 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2388 | if test -n "$ac_tool_prefix"; then |
| 2389 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2390 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2391 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2392 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2393 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2395 | else |
| 2396 | if test -n "$CC"; then |
| 2397 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2398 | else |
| 2399 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2400 | for as_dir in $PATH |
| 2401 | do |
| 2402 | IFS=$as_save_IFS |
| 2403 | test -z "$as_dir" && as_dir=. |
| 2404 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2405 | 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] | 2406 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2407 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2408 | break 2 |
| 2409 | fi |
| 2410 | done |
| 2411 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2412 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2413 | |
| 2414 | fi |
| 2415 | fi |
| 2416 | CC=$ac_cv_prog_CC |
| 2417 | if test -n "$CC"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2418 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2419 | echo "${ECHO_T}$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2420 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2421 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2422 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2423 | fi |
| 2424 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2425 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2426 | fi |
| 2427 | if test -z "$ac_cv_prog_CC"; then |
| 2428 | ac_ct_CC=$CC |
| 2429 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2430 | set dummy gcc; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2431 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2432 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2433 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2434 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2435 | else |
| 2436 | if test -n "$ac_ct_CC"; then |
| 2437 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2438 | else |
| 2439 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2440 | for as_dir in $PATH |
| 2441 | do |
| 2442 | IFS=$as_save_IFS |
| 2443 | test -z "$as_dir" && as_dir=. |
| 2444 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2445 | 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] | 2446 | ac_cv_prog_ac_ct_CC="gcc" |
| 2447 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2448 | break 2 |
| 2449 | fi |
| 2450 | done |
| 2451 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2452 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2453 | |
| 2454 | fi |
| 2455 | fi |
| 2456 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2457 | if test -n "$ac_ct_CC"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2458 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2459 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2460 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2461 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2462 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2463 | fi |
| 2464 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2465 | if test "x$ac_ct_CC" = x; then |
| 2466 | CC="" |
| 2467 | else |
| 2468 | case $cross_compiling:$ac_tool_warned in |
| 2469 | yes:) |
| 2470 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2471 | whose name does not start with the host triplet. If you think this |
| 2472 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2473 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2474 | whose name does not start with the host triplet. If you think this |
| 2475 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2476 | ac_tool_warned=yes ;; |
| 2477 | esac |
| 2478 | CC=$ac_ct_CC |
| 2479 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2480 | else |
| 2481 | CC="$ac_cv_prog_CC" |
| 2482 | fi |
| 2483 | |
| 2484 | if test -z "$CC"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2485 | if test -n "$ac_tool_prefix"; then |
| 2486 | # 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] | 2487 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2488 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2489 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2490 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2492 | else |
| 2493 | if test -n "$CC"; then |
| 2494 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2495 | else |
| 2496 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2497 | for as_dir in $PATH |
| 2498 | do |
| 2499 | IFS=$as_save_IFS |
| 2500 | test -z "$as_dir" && as_dir=. |
| 2501 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2502 | 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] | 2503 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2504 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2505 | break 2 |
| 2506 | fi |
| 2507 | done |
| 2508 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2509 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2510 | |
| 2511 | fi |
| 2512 | fi |
| 2513 | CC=$ac_cv_prog_CC |
| 2514 | if test -n "$CC"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2515 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2516 | echo "${ECHO_T}$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2517 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2518 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2519 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2520 | fi |
| 2521 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2522 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2523 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2524 | fi |
| 2525 | if test -z "$CC"; then |
| 2526 | # Extract the first word of "cc", so it can be a program name with args. |
| 2527 | set dummy cc; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2528 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2529 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2530 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2531 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2532 | else |
| 2533 | if test -n "$CC"; then |
| 2534 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2535 | else |
| 2536 | ac_prog_rejected=no |
| 2537 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2538 | for as_dir in $PATH |
| 2539 | do |
| 2540 | IFS=$as_save_IFS |
| 2541 | test -z "$as_dir" && as_dir=. |
| 2542 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2543 | 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] | 2544 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2545 | ac_prog_rejected=yes |
| 2546 | continue |
| 2547 | fi |
| 2548 | ac_cv_prog_CC="cc" |
| 2549 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2550 | break 2 |
| 2551 | fi |
| 2552 | done |
| 2553 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2554 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2555 | |
| 2556 | if test $ac_prog_rejected = yes; then |
| 2557 | # We found a bogon in the path, so make sure we never use it. |
| 2558 | set dummy $ac_cv_prog_CC |
| 2559 | shift |
| 2560 | if test $# != 0; then |
| 2561 | # We chose a different compiler from the bogus one. |
| 2562 | # However, it has the same basename, so the bogon will be chosen |
| 2563 | # first if we set CC to just the basename; use the full file name. |
| 2564 | shift |
| 2565 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2566 | fi |
| 2567 | fi |
| 2568 | fi |
| 2569 | fi |
| 2570 | CC=$ac_cv_prog_CC |
| 2571 | if test -n "$CC"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2572 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2573 | echo "${ECHO_T}$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2574 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2575 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2576 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2577 | fi |
| 2578 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2579 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2580 | fi |
| 2581 | if test -z "$CC"; then |
| 2582 | if test -n "$ac_tool_prefix"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2583 | for ac_prog in cl.exe |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2584 | do |
| 2585 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2586 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2587 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2588 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2589 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2590 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2591 | else |
| 2592 | if test -n "$CC"; then |
| 2593 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2594 | else |
| 2595 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2596 | for as_dir in $PATH |
| 2597 | do |
| 2598 | IFS=$as_save_IFS |
| 2599 | test -z "$as_dir" && as_dir=. |
| 2600 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2601 | 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] | 2602 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2603 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2604 | break 2 |
| 2605 | fi |
| 2606 | done |
| 2607 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2608 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2609 | |
| 2610 | fi |
| 2611 | fi |
| 2612 | CC=$ac_cv_prog_CC |
| 2613 | if test -n "$CC"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2614 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2615 | echo "${ECHO_T}$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2616 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2617 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2618 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2619 | fi |
| 2620 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2621 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2622 | test -n "$CC" && break |
| 2623 | done |
| 2624 | fi |
| 2625 | if test -z "$CC"; then |
| 2626 | ac_ct_CC=$CC |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2627 | for ac_prog in cl.exe |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2628 | do |
| 2629 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2630 | set dummy $ac_prog; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2631 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2632 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2633 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2634 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2635 | else |
| 2636 | if test -n "$ac_ct_CC"; then |
| 2637 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2638 | else |
| 2639 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2640 | for as_dir in $PATH |
| 2641 | do |
| 2642 | IFS=$as_save_IFS |
| 2643 | test -z "$as_dir" && as_dir=. |
| 2644 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2645 | 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] | 2646 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2647 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2648 | break 2 |
| 2649 | fi |
| 2650 | done |
| 2651 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2652 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2653 | |
| 2654 | fi |
| 2655 | fi |
| 2656 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2657 | if test -n "$ac_ct_CC"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2658 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2659 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2660 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2661 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2662 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2663 | fi |
| 2664 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2665 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2666 | test -n "$ac_ct_CC" && break |
| 2667 | done |
| 2668 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2669 | if test "x$ac_ct_CC" = x; then |
| 2670 | CC="" |
| 2671 | else |
| 2672 | case $cross_compiling:$ac_tool_warned in |
| 2673 | yes:) |
| 2674 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2675 | whose name does not start with the host triplet. If you think this |
| 2676 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2677 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2678 | whose name does not start with the host triplet. If you think this |
| 2679 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2680 | ac_tool_warned=yes ;; |
| 2681 | esac |
| 2682 | CC=$ac_ct_CC |
| 2683 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2684 | fi |
| 2685 | |
| 2686 | fi |
| 2687 | |
| 2688 | |
| 2689 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2690 | See \`config.log' for more details." >&5 |
| 2691 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2692 | See \`config.log' for more details." >&2;} |
| 2693 | { (exit 1); exit 1; }; } |
| 2694 | |
| 2695 | # Provide some information about the compiler. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2696 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2697 | ac_compiler=`set X $ac_compile; echo $2` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2698 | { (ac_try="$ac_compiler --version >&5" |
| 2699 | case "(($ac_try" in |
| 2700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2701 | *) ac_try_echo=$ac_try;; |
| 2702 | esac |
| 2703 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2704 | (eval "$ac_compiler --version >&5") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2705 | ac_status=$? |
| 2706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2707 | (exit $ac_status); } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2708 | { (ac_try="$ac_compiler -v >&5" |
| 2709 | case "(($ac_try" in |
| 2710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2711 | *) ac_try_echo=$ac_try;; |
| 2712 | esac |
| 2713 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2714 | (eval "$ac_compiler -v >&5") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2715 | ac_status=$? |
| 2716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2717 | (exit $ac_status); } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2718 | { (ac_try="$ac_compiler -V >&5" |
| 2719 | case "(($ac_try" in |
| 2720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2721 | *) ac_try_echo=$ac_try;; |
| 2722 | esac |
| 2723 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2724 | (eval "$ac_compiler -V >&5") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2725 | ac_status=$? |
| 2726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2727 | (exit $ac_status); } |
| 2728 | |
| 2729 | cat >conftest.$ac_ext <<_ACEOF |
| 2730 | /* confdefs.h. */ |
| 2731 | _ACEOF |
| 2732 | cat confdefs.h >>conftest.$ac_ext |
| 2733 | cat >>conftest.$ac_ext <<_ACEOF |
| 2734 | /* end confdefs.h. */ |
| 2735 | |
| 2736 | int |
| 2737 | main () |
| 2738 | { |
| 2739 | |
| 2740 | ; |
| 2741 | return 0; |
| 2742 | } |
| 2743 | _ACEOF |
| 2744 | ac_clean_files_save=$ac_clean_files |
| 2745 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 2746 | # Try to create an executable without -o first, disregard a.out. |
| 2747 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2748 | # of exeext. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2749 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2750 | 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] | 2751 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2752 | # |
| 2753 | # List of possible output files, starting from the most likely. |
| 2754 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2755 | # only as a last resort. b.out is created by i960 compilers. |
| 2756 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2757 | # |
| 2758 | # The IRIX 6 linker writes into existing files which may not be |
| 2759 | # executable, retaining their permissions. Remove them first so a |
| 2760 | # subsequent execution test works. |
| 2761 | ac_rmfiles= |
| 2762 | for ac_file in $ac_files |
| 2763 | do |
| 2764 | case $ac_file in |
| 2765 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2766 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2767 | esac |
| 2768 | done |
| 2769 | rm -f $ac_rmfiles |
| 2770 | |
| 2771 | if { (ac_try="$ac_link_default" |
| 2772 | case "(($ac_try" in |
| 2773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2774 | *) ac_try_echo=$ac_try;; |
| 2775 | esac |
| 2776 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2777 | (eval "$ac_link_default") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2778 | ac_status=$? |
| 2779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2780 | (exit $ac_status); }; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2781 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2782 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2783 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2784 | # so that the user can short-circuit this test for compilers unknown to |
| 2785 | # Autoconf. |
| 2786 | for ac_file in $ac_files |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2787 | do |
| 2788 | test -f "$ac_file" || continue |
| 2789 | case $ac_file in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2790 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2791 | ;; |
| 2792 | [ab].out ) |
| 2793 | # We found the default executable, but exeext='' is most |
| 2794 | # certainly right. |
| 2795 | break;; |
| 2796 | *.* ) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2797 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2798 | then :; else |
| 2799 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2800 | fi |
| 2801 | # We set ac_cv_exeext here because the later test for it is not |
| 2802 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2803 | # argument, so we may need to know it at that point already. |
| 2804 | # Even if this section looks crufty: it has the advantage of |
| 2805 | # actually working. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2806 | break;; |
| 2807 | * ) |
| 2808 | break;; |
| 2809 | esac |
| 2810 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2811 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2812 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2813 | else |
| 2814 | echo "$as_me: failed program was:" >&5 |
| 2815 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2816 | |
| 2817 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2818 | See \`config.log' for more details." >&5 |
| 2819 | echo "$as_me: error: C compiler cannot create executables |
| 2820 | See \`config.log' for more details." >&2;} |
| 2821 | { (exit 77); exit 77; }; } |
| 2822 | fi |
| 2823 | |
| 2824 | ac_exeext=$ac_cv_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2825 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2826 | echo "${ECHO_T}$ac_file" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2827 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2828 | # Check that the compiler produces executables we can run. If not, either |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2829 | # the compiler is broken, or we cross compile. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2830 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2831 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2832 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2833 | # If not cross compiling, check that we can run a simple program. |
| 2834 | if test "$cross_compiling" != yes; then |
| 2835 | if { ac_try='./$ac_file' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2836 | { (case "(($ac_try" in |
| 2837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2838 | *) ac_try_echo=$ac_try;; |
| 2839 | esac |
| 2840 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2841 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2842 | ac_status=$? |
| 2843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2844 | (exit $ac_status); }; }; then |
| 2845 | cross_compiling=no |
| 2846 | else |
| 2847 | if test "$cross_compiling" = maybe; then |
| 2848 | cross_compiling=yes |
| 2849 | else |
| 2850 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2851 | If you meant to cross compile, use \`--host'. |
| 2852 | See \`config.log' for more details." >&5 |
| 2853 | echo "$as_me: error: cannot run C compiled programs. |
| 2854 | If you meant to cross compile, use \`--host'. |
| 2855 | See \`config.log' for more details." >&2;} |
| 2856 | { (exit 1); exit 1; }; } |
| 2857 | fi |
| 2858 | fi |
| 2859 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2860 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2861 | echo "${ECHO_T}yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2862 | |
| 2863 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 2864 | ac_clean_files=$ac_clean_files_save |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2865 | # Check that the compiler produces executables we can run. If not, either |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2866 | # the compiler is broken, or we cross compile. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2867 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2868 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2869 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2870 | echo "${ECHO_T}$cross_compiling" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2871 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2872 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2873 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2874 | if { (ac_try="$ac_link" |
| 2875 | case "(($ac_try" in |
| 2876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2877 | *) ac_try_echo=$ac_try;; |
| 2878 | esac |
| 2879 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2880 | (eval "$ac_link") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2881 | ac_status=$? |
| 2882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2883 | (exit $ac_status); }; then |
| 2884 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2885 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2886 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2887 | # `rm'. |
| 2888 | for ac_file in conftest.exe conftest conftest.*; do |
| 2889 | test -f "$ac_file" || continue |
| 2890 | case $ac_file in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2891 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2892 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2893 | break;; |
| 2894 | * ) break;; |
| 2895 | esac |
| 2896 | done |
| 2897 | else |
| 2898 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2899 | See \`config.log' for more details." >&5 |
| 2900 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2901 | See \`config.log' for more details." >&2;} |
| 2902 | { (exit 1); exit 1; }; } |
| 2903 | fi |
| 2904 | |
| 2905 | rm -f conftest$ac_cv_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2906 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2907 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2908 | |
| 2909 | rm -f conftest.$ac_ext |
| 2910 | EXEEXT=$ac_cv_exeext |
| 2911 | ac_exeext=$EXEEXT |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2912 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2913 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2914 | if test "${ac_cv_objext+set}" = set; then |
| 2915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2916 | else |
| 2917 | cat >conftest.$ac_ext <<_ACEOF |
| 2918 | /* confdefs.h. */ |
| 2919 | _ACEOF |
| 2920 | cat confdefs.h >>conftest.$ac_ext |
| 2921 | cat >>conftest.$ac_ext <<_ACEOF |
| 2922 | /* end confdefs.h. */ |
| 2923 | |
| 2924 | int |
| 2925 | main () |
| 2926 | { |
| 2927 | |
| 2928 | ; |
| 2929 | return 0; |
| 2930 | } |
| 2931 | _ACEOF |
| 2932 | rm -f conftest.o conftest.obj |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2933 | if { (ac_try="$ac_compile" |
| 2934 | case "(($ac_try" in |
| 2935 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2936 | *) ac_try_echo=$ac_try;; |
| 2937 | esac |
| 2938 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2939 | (eval "$ac_compile") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2940 | ac_status=$? |
| 2941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2942 | (exit $ac_status); }; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2943 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2944 | test -f "$ac_file" || continue; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2945 | case $ac_file in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2946 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2947 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2948 | break;; |
| 2949 | esac |
| 2950 | done |
| 2951 | else |
| 2952 | echo "$as_me: failed program was:" >&5 |
| 2953 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2954 | |
| 2955 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2956 | See \`config.log' for more details." >&5 |
| 2957 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2958 | See \`config.log' for more details." >&2;} |
| 2959 | { (exit 1); exit 1; }; } |
| 2960 | fi |
| 2961 | |
| 2962 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2963 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2964 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2965 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2966 | OBJEXT=$ac_cv_objext |
| 2967 | ac_objext=$OBJEXT |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2968 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2969 | 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] | 2970 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2971 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2972 | else |
| 2973 | cat >conftest.$ac_ext <<_ACEOF |
| 2974 | /* confdefs.h. */ |
| 2975 | _ACEOF |
| 2976 | cat confdefs.h >>conftest.$ac_ext |
| 2977 | cat >>conftest.$ac_ext <<_ACEOF |
| 2978 | /* end confdefs.h. */ |
| 2979 | |
| 2980 | int |
| 2981 | main () |
| 2982 | { |
| 2983 | #ifndef __GNUC__ |
| 2984 | choke me |
| 2985 | #endif |
| 2986 | |
| 2987 | ; |
| 2988 | return 0; |
| 2989 | } |
| 2990 | _ACEOF |
| 2991 | rm -f conftest.$ac_objext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 2992 | if { (ac_try="$ac_compile" |
| 2993 | case "(($ac_try" in |
| 2994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2995 | *) ac_try_echo=$ac_try;; |
| 2996 | esac |
| 2997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2998 | (eval "$ac_compile") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2999 | ac_status=$? |
| 3000 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3001 | rm -f conftest.er1 |
| 3002 | cat conftest.err >&5 |
| 3003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3004 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3005 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3006 | { (case "(($ac_try" in |
| 3007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3008 | *) ac_try_echo=$ac_try;; |
| 3009 | esac |
| 3010 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3011 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3012 | ac_status=$? |
| 3013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3014 | (exit $ac_status); }; } && |
| 3015 | { ac_try='test -s conftest.$ac_objext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3016 | { (case "(($ac_try" in |
| 3017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3018 | *) ac_try_echo=$ac_try;; |
| 3019 | esac |
| 3020 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3021 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3022 | ac_status=$? |
| 3023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3024 | (exit $ac_status); }; }; then |
| 3025 | ac_compiler_gnu=yes |
| 3026 | else |
| 3027 | echo "$as_me: failed program was:" >&5 |
| 3028 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3029 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3030 | ac_compiler_gnu=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3031 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3032 | |
| 3033 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3034 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3035 | |
| 3036 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3037 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3038 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3039 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 3040 | ac_test_CFLAGS=${CFLAGS+set} |
| 3041 | ac_save_CFLAGS=$CFLAGS |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3042 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3043 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3044 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 3045 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3046 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3047 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3048 | ac_c_werror_flag=yes |
| 3049 | ac_cv_prog_cc_g=no |
| 3050 | CFLAGS="-g" |
| 3051 | cat >conftest.$ac_ext <<_ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3052 | /* confdefs.h. */ |
| 3053 | _ACEOF |
| 3054 | cat confdefs.h >>conftest.$ac_ext |
| 3055 | cat >>conftest.$ac_ext <<_ACEOF |
| 3056 | /* end confdefs.h. */ |
| 3057 | |
| 3058 | int |
| 3059 | main () |
| 3060 | { |
| 3061 | |
| 3062 | ; |
| 3063 | return 0; |
| 3064 | } |
| 3065 | _ACEOF |
| 3066 | rm -f conftest.$ac_objext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3067 | if { (ac_try="$ac_compile" |
| 3068 | case "(($ac_try" in |
| 3069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3070 | *) ac_try_echo=$ac_try;; |
| 3071 | esac |
| 3072 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3073 | (eval "$ac_compile") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3074 | ac_status=$? |
| 3075 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3076 | rm -f conftest.er1 |
| 3077 | cat conftest.err >&5 |
| 3078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3079 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3080 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3081 | { (case "(($ac_try" in |
| 3082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3083 | *) ac_try_echo=$ac_try;; |
| 3084 | esac |
| 3085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3086 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3087 | ac_status=$? |
| 3088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3089 | (exit $ac_status); }; } && |
| 3090 | { ac_try='test -s conftest.$ac_objext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 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); }; }; then |
| 3100 | ac_cv_prog_cc_g=yes |
| 3101 | else |
| 3102 | echo "$as_me: failed program was:" >&5 |
| 3103 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3104 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3105 | CFLAGS="" |
| 3106 | cat >conftest.$ac_ext <<_ACEOF |
| 3107 | /* confdefs.h. */ |
| 3108 | _ACEOF |
| 3109 | cat confdefs.h >>conftest.$ac_ext |
| 3110 | cat >>conftest.$ac_ext <<_ACEOF |
| 3111 | /* end confdefs.h. */ |
| 3112 | |
| 3113 | int |
| 3114 | main () |
| 3115 | { |
| 3116 | |
| 3117 | ; |
| 3118 | return 0; |
| 3119 | } |
| 3120 | _ACEOF |
| 3121 | rm -f conftest.$ac_objext |
| 3122 | if { (ac_try="$ac_compile" |
| 3123 | case "(($ac_try" in |
| 3124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3125 | *) ac_try_echo=$ac_try;; |
| 3126 | esac |
| 3127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3128 | (eval "$ac_compile") 2>conftest.er1 |
| 3129 | ac_status=$? |
| 3130 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3131 | rm -f conftest.er1 |
| 3132 | cat conftest.err >&5 |
| 3133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3134 | (exit $ac_status); } && |
| 3135 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3136 | { (case "(($ac_try" in |
| 3137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3138 | *) ac_try_echo=$ac_try;; |
| 3139 | esac |
| 3140 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3141 | (eval "$ac_try") 2>&5 |
| 3142 | ac_status=$? |
| 3143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3144 | (exit $ac_status); }; } && |
| 3145 | { ac_try='test -s conftest.$ac_objext' |
| 3146 | { (case "(($ac_try" in |
| 3147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3148 | *) ac_try_echo=$ac_try;; |
| 3149 | esac |
| 3150 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3151 | (eval "$ac_try") 2>&5 |
| 3152 | ac_status=$? |
| 3153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3154 | (exit $ac_status); }; }; then |
| 3155 | : |
| 3156 | else |
| 3157 | echo "$as_me: failed program was:" >&5 |
| 3158 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3159 | |
| 3160 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3161 | CFLAGS="-g" |
| 3162 | cat >conftest.$ac_ext <<_ACEOF |
| 3163 | /* confdefs.h. */ |
| 3164 | _ACEOF |
| 3165 | cat confdefs.h >>conftest.$ac_ext |
| 3166 | cat >>conftest.$ac_ext <<_ACEOF |
| 3167 | /* end confdefs.h. */ |
| 3168 | |
| 3169 | int |
| 3170 | main () |
| 3171 | { |
| 3172 | |
| 3173 | ; |
| 3174 | return 0; |
| 3175 | } |
| 3176 | _ACEOF |
| 3177 | rm -f conftest.$ac_objext |
| 3178 | if { (ac_try="$ac_compile" |
| 3179 | case "(($ac_try" in |
| 3180 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3181 | *) ac_try_echo=$ac_try;; |
| 3182 | esac |
| 3183 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3184 | (eval "$ac_compile") 2>conftest.er1 |
| 3185 | ac_status=$? |
| 3186 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3187 | rm -f conftest.er1 |
| 3188 | cat conftest.err >&5 |
| 3189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3190 | (exit $ac_status); } && |
| 3191 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3192 | { (case "(($ac_try" in |
| 3193 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3194 | *) ac_try_echo=$ac_try;; |
| 3195 | esac |
| 3196 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3197 | (eval "$ac_try") 2>&5 |
| 3198 | ac_status=$? |
| 3199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3200 | (exit $ac_status); }; } && |
| 3201 | { ac_try='test -s conftest.$ac_objext' |
| 3202 | { (case "(($ac_try" in |
| 3203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3204 | *) ac_try_echo=$ac_try;; |
| 3205 | esac |
| 3206 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3207 | (eval "$ac_try") 2>&5 |
| 3208 | ac_status=$? |
| 3209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3210 | (exit $ac_status); }; }; then |
| 3211 | ac_cv_prog_cc_g=yes |
| 3212 | else |
| 3213 | echo "$as_me: failed program was:" >&5 |
| 3214 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3215 | |
| 3216 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3217 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3218 | |
| 3219 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3220 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3221 | |
| 3222 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3223 | fi |
| 3224 | |
| 3225 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3226 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3227 | fi |
| 3228 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3229 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3230 | if test "$ac_test_CFLAGS" = set; then |
| 3231 | CFLAGS=$ac_save_CFLAGS |
| 3232 | elif test $ac_cv_prog_cc_g = yes; then |
| 3233 | if test "$GCC" = yes; then |
| 3234 | CFLAGS="-g -O2" |
| 3235 | else |
| 3236 | CFLAGS="-g" |
| 3237 | fi |
| 3238 | else |
| 3239 | if test "$GCC" = yes; then |
| 3240 | CFLAGS="-O2" |
| 3241 | else |
| 3242 | CFLAGS= |
| 3243 | fi |
| 3244 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3245 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3246 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 3247 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3248 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3249 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3250 | ac_cv_prog_cc_c89=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3251 | ac_save_CC=$CC |
| 3252 | cat >conftest.$ac_ext <<_ACEOF |
| 3253 | /* confdefs.h. */ |
| 3254 | _ACEOF |
| 3255 | cat confdefs.h >>conftest.$ac_ext |
| 3256 | cat >>conftest.$ac_ext <<_ACEOF |
| 3257 | /* end confdefs.h. */ |
| 3258 | #include <stdarg.h> |
| 3259 | #include <stdio.h> |
| 3260 | #include <sys/types.h> |
| 3261 | #include <sys/stat.h> |
| 3262 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3263 | struct buf { int x; }; |
| 3264 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3265 | static char *e (p, i) |
| 3266 | char **p; |
| 3267 | int i; |
| 3268 | { |
| 3269 | return p[i]; |
| 3270 | } |
| 3271 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3272 | { |
| 3273 | char *s; |
| 3274 | va_list v; |
| 3275 | va_start (v,p); |
| 3276 | s = g (p, va_arg (v,int)); |
| 3277 | va_end (v); |
| 3278 | return s; |
| 3279 | } |
| 3280 | |
| 3281 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3282 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3283 | These don't provoke an error unfortunately, instead are silently treated |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3284 | as 'x'. The following induces an error, until -std is added to get |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3285 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3286 | 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^] | 3287 | that's true only with -std. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3288 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3289 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3290 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3291 | inside strings and character constants. */ |
| 3292 | #define FOO(x) 'x' |
| 3293 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3294 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3295 | int test (int i, double x); |
| 3296 | struct s1 {int (*f) (int a);}; |
| 3297 | struct s2 {int (*f) (double a);}; |
| 3298 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3299 | int argc; |
| 3300 | char **argv; |
| 3301 | int |
| 3302 | main () |
| 3303 | { |
| 3304 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3305 | ; |
| 3306 | return 0; |
| 3307 | } |
| 3308 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3309 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3310 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3311 | do |
| 3312 | CC="$ac_save_CC $ac_arg" |
| 3313 | rm -f conftest.$ac_objext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3314 | if { (ac_try="$ac_compile" |
| 3315 | case "(($ac_try" in |
| 3316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3317 | *) ac_try_echo=$ac_try;; |
| 3318 | esac |
| 3319 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3320 | (eval "$ac_compile") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3321 | ac_status=$? |
| 3322 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3323 | rm -f conftest.er1 |
| 3324 | cat conftest.err >&5 |
| 3325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3326 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3327 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3328 | { (case "(($ac_try" in |
| 3329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3330 | *) ac_try_echo=$ac_try;; |
| 3331 | esac |
| 3332 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3333 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3334 | ac_status=$? |
| 3335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3336 | (exit $ac_status); }; } && |
| 3337 | { ac_try='test -s conftest.$ac_objext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3338 | { (case "(($ac_try" in |
| 3339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3340 | *) ac_try_echo=$ac_try;; |
| 3341 | esac |
| 3342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3343 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3344 | ac_status=$? |
| 3345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3346 | (exit $ac_status); }; }; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3347 | ac_cv_prog_cc_c89=$ac_arg |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3348 | else |
| 3349 | echo "$as_me: failed program was:" >&5 |
| 3350 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3351 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3352 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3353 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3354 | |
| 3355 | rm -f core conftest.err conftest.$ac_objext |
| 3356 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3357 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3358 | rm -f conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3359 | CC=$ac_save_CC |
| 3360 | |
| 3361 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3362 | # AC_CACHE_VAL |
| 3363 | case "x$ac_cv_prog_cc_c89" in |
| 3364 | x) |
| 3365 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3366 | echo "${ECHO_T}none needed" >&6; } ;; |
| 3367 | xno) |
| 3368 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3369 | echo "${ECHO_T}unsupported" >&6; } ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3370 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3371 | CC="$CC $ac_cv_prog_cc_c89" |
| 3372 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3373 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3374 | esac |
| 3375 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3376 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3377 | ac_ext=c |
| 3378 | ac_cpp='$CPP $CPPFLAGS' |
| 3379 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3380 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3381 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3382 | DEPDIR="${am__leading_dot}deps" |
| 3383 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3384 | ac_config_commands="$ac_config_commands depfiles" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3385 | |
| 3386 | |
| 3387 | am_make=${MAKE-make} |
| 3388 | cat > confinc << 'END' |
| 3389 | am__doit: |
| 3390 | @echo done |
| 3391 | .PHONY: am__doit |
| 3392 | END |
| 3393 | # If we don't find an include directive, just comment out the code. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3394 | { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
| 3395 | 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] | 3396 | am__include="#" |
| 3397 | am__quote= |
| 3398 | _am_result=none |
| 3399 | # First try GNU make style include. |
| 3400 | echo "include confinc" > confmf |
| 3401 | # We grep out `Entering directory' and `Leaving directory' |
| 3402 | # messages which can occur if `w' ends up in MAKEFLAGS. |
| 3403 | # In particular we don't look at `^make:' because GNU make might |
| 3404 | # be invoked under some other name (usually "gmake"), in which |
| 3405 | # case it prints its new name instead of `make'. |
| 3406 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
| 3407 | am__include=include |
| 3408 | am__quote= |
| 3409 | _am_result=GNU |
| 3410 | fi |
| 3411 | # Now try BSD make style include. |
| 3412 | if test "$am__include" = "#"; then |
| 3413 | echo '.include "confinc"' > confmf |
| 3414 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
| 3415 | am__include=.include |
| 3416 | am__quote="\"" |
| 3417 | _am_result=BSD |
| 3418 | fi |
| 3419 | fi |
| 3420 | |
| 3421 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3422 | { echo "$as_me:$LINENO: result: $_am_result" >&5 |
| 3423 | echo "${ECHO_T}$_am_result" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3424 | rm -f confinc confmf |
| 3425 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3426 | # Check whether --enable-dependency-tracking was given. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3427 | if test "${enable_dependency_tracking+set}" = set; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3428 | enableval=$enable_dependency_tracking; |
| 3429 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3430 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3431 | if test "x$enable_dependency_tracking" != xno; then |
| 3432 | am_depcomp="$ac_aux_dir/depcomp" |
| 3433 | AMDEPBACKSLASH='\' |
| 3434 | fi |
| 3435 | |
| 3436 | |
| 3437 | if test "x$enable_dependency_tracking" != xno; then |
| 3438 | AMDEP_TRUE= |
| 3439 | AMDEP_FALSE='#' |
| 3440 | else |
| 3441 | AMDEP_TRUE='#' |
| 3442 | AMDEP_FALSE= |
| 3443 | fi |
| 3444 | |
| 3445 | |
| 3446 | |
| 3447 | |
| 3448 | depcc="$CC" am_compiler_list= |
| 3449 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3450 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 3451 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3452 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
| 3453 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3454 | else |
| 3455 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 3456 | # We make a subdir and do the tests there. Otherwise we can end up |
| 3457 | # making bogus files that we don't know about and never remove. For |
| 3458 | # instance it was reported that on HP-UX the gcc test will end up |
| 3459 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 3460 | # in D'. |
| 3461 | mkdir conftest.dir |
| 3462 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 3463 | # using a relative directory. |
| 3464 | cp "$am_depcomp" conftest.dir |
| 3465 | cd conftest.dir |
| 3466 | # We will build objects and dependencies in a subdirectory because |
| 3467 | # it helps to detect inapplicable dependency modes. For instance |
| 3468 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 3469 | # side effect of compilation, but ICC will put the dependencies in |
| 3470 | # the current directory while Tru64 will put them in the object |
| 3471 | # directory. |
| 3472 | mkdir sub |
| 3473 | |
| 3474 | am_cv_CC_dependencies_compiler_type=none |
| 3475 | if test "$am_compiler_list" = ""; then |
| 3476 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 3477 | fi |
| 3478 | for depmode in $am_compiler_list; do |
| 3479 | # Setup a source with many dependencies, because some compilers |
| 3480 | # like to wrap large dependency lists on column 80 (with \), and |
| 3481 | # we should not choose a depcomp mode which is confused by this. |
| 3482 | # |
| 3483 | # We need to recreate these files for each test, as the compiler may |
| 3484 | # overwrite some of them when testing with obscure command lines. |
| 3485 | # This happens at least with the AIX C compiler. |
| 3486 | : > sub/conftest.c |
| 3487 | for i in 1 2 3 4 5 6; do |
| 3488 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 3489 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 3490 | # Solaris 8's {/usr,}/bin/sh. |
| 3491 | touch sub/conftst$i.h |
| 3492 | done |
| 3493 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 3494 | |
| 3495 | case $depmode in |
| 3496 | nosideeffect) |
| 3497 | # after this tag, mechanisms are not by side-effect, so they'll |
| 3498 | # only be used when explicitly requested |
| 3499 | if test "x$enable_dependency_tracking" = xyes; then |
| 3500 | continue |
| 3501 | else |
| 3502 | break |
| 3503 | fi |
| 3504 | ;; |
| 3505 | none) break ;; |
| 3506 | esac |
| 3507 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 3508 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 3509 | # handle `-M -o', and we need to detect this. |
| 3510 | if depmode=$depmode \ |
| 3511 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| 3512 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 3513 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| 3514 | >/dev/null 2>conftest.err && |
| 3515 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 3516 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
| 3517 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 3518 | # icc doesn't choke on unknown options, it will just issue warnings |
| 3519 | # or remarks (even with -Werror). So we grep stderr for any message |
| 3520 | # that says an option was ignored or not supported. |
| 3521 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 3522 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 3523 | # The diagnosis changed in icc 8.0: |
| 3524 | # icc: Command line remark: option '-MP' not supported |
| 3525 | if (grep 'ignoring option' conftest.err || |
| 3526 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 3527 | am_cv_CC_dependencies_compiler_type=$depmode |
| 3528 | break |
| 3529 | fi |
| 3530 | fi |
| 3531 | done |
| 3532 | |
| 3533 | cd .. |
| 3534 | rm -rf conftest.dir |
| 3535 | else |
| 3536 | am_cv_CC_dependencies_compiler_type=none |
| 3537 | fi |
| 3538 | |
| 3539 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3540 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 3541 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3542 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 3543 | |
| 3544 | |
| 3545 | |
| 3546 | if |
| 3547 | test "x$enable_dependency_tracking" != xno \ |
| 3548 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 3549 | am__fastdepCC_TRUE= |
| 3550 | am__fastdepCC_FALSE='#' |
| 3551 | else |
| 3552 | am__fastdepCC_TRUE='#' |
| 3553 | am__fastdepCC_FALSE= |
| 3554 | fi |
| 3555 | |
| 3556 | |
| 3557 | ac_ext=c |
| 3558 | ac_cpp='$CPP $CPPFLAGS' |
| 3559 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3560 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3561 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3562 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3563 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3564 | # On Suns, sometimes $CPP names a directory. |
| 3565 | if test -n "$CPP" && test -d "$CPP"; then |
| 3566 | CPP= |
| 3567 | fi |
| 3568 | if test -z "$CPP"; then |
| 3569 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3570 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3571 | else |
| 3572 | # Double quotes because CPP needs to be expanded |
| 3573 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3574 | do |
| 3575 | ac_preproc_ok=false |
| 3576 | for ac_c_preproc_warn_flag in '' yes |
| 3577 | do |
| 3578 | # Use a header file that comes with gcc, so configuring glibc |
| 3579 | # with a fresh cross-compiler works. |
| 3580 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3581 | # <limits.h> exists even on freestanding compilers. |
| 3582 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3583 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3584 | cat >conftest.$ac_ext <<_ACEOF |
| 3585 | /* confdefs.h. */ |
| 3586 | _ACEOF |
| 3587 | cat confdefs.h >>conftest.$ac_ext |
| 3588 | cat >>conftest.$ac_ext <<_ACEOF |
| 3589 | /* end confdefs.h. */ |
| 3590 | #ifdef __STDC__ |
| 3591 | # include <limits.h> |
| 3592 | #else |
| 3593 | # include <assert.h> |
| 3594 | #endif |
| 3595 | Syntax error |
| 3596 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3597 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3598 | case "(($ac_try" in |
| 3599 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3600 | *) ac_try_echo=$ac_try;; |
| 3601 | esac |
| 3602 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3603 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3604 | ac_status=$? |
| 3605 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3606 | rm -f conftest.er1 |
| 3607 | cat conftest.err >&5 |
| 3608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3609 | (exit $ac_status); } >/dev/null; then |
| 3610 | if test -s conftest.err; then |
| 3611 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3612 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3613 | else |
| 3614 | ac_cpp_err= |
| 3615 | fi |
| 3616 | else |
| 3617 | ac_cpp_err=yes |
| 3618 | fi |
| 3619 | if test -z "$ac_cpp_err"; then |
| 3620 | : |
| 3621 | else |
| 3622 | echo "$as_me: failed program was:" >&5 |
| 3623 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3624 | |
| 3625 | # Broken: fails on valid input. |
| 3626 | continue |
| 3627 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3628 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3629 | rm -f conftest.err conftest.$ac_ext |
| 3630 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3631 | # OK, works on sane cases. Now check whether nonexistent headers |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3632 | # can be detected and how. |
| 3633 | cat >conftest.$ac_ext <<_ACEOF |
| 3634 | /* confdefs.h. */ |
| 3635 | _ACEOF |
| 3636 | cat confdefs.h >>conftest.$ac_ext |
| 3637 | cat >>conftest.$ac_ext <<_ACEOF |
| 3638 | /* end confdefs.h. */ |
| 3639 | #include <ac_nonexistent.h> |
| 3640 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3641 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3642 | case "(($ac_try" in |
| 3643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3644 | *) ac_try_echo=$ac_try;; |
| 3645 | esac |
| 3646 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3647 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3648 | ac_status=$? |
| 3649 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3650 | rm -f conftest.er1 |
| 3651 | cat conftest.err >&5 |
| 3652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3653 | (exit $ac_status); } >/dev/null; then |
| 3654 | if test -s conftest.err; then |
| 3655 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3656 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3657 | else |
| 3658 | ac_cpp_err= |
| 3659 | fi |
| 3660 | else |
| 3661 | ac_cpp_err=yes |
| 3662 | fi |
| 3663 | if test -z "$ac_cpp_err"; then |
| 3664 | # Broken: success on invalid input. |
| 3665 | continue |
| 3666 | else |
| 3667 | echo "$as_me: failed program was:" >&5 |
| 3668 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3669 | |
| 3670 | # Passes both tests. |
| 3671 | ac_preproc_ok=: |
| 3672 | break |
| 3673 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3674 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3675 | rm -f conftest.err conftest.$ac_ext |
| 3676 | |
| 3677 | done |
| 3678 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3679 | rm -f conftest.err conftest.$ac_ext |
| 3680 | if $ac_preproc_ok; then |
| 3681 | break |
| 3682 | fi |
| 3683 | |
| 3684 | done |
| 3685 | ac_cv_prog_CPP=$CPP |
| 3686 | |
| 3687 | fi |
| 3688 | CPP=$ac_cv_prog_CPP |
| 3689 | else |
| 3690 | ac_cv_prog_CPP=$CPP |
| 3691 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3692 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3693 | echo "${ECHO_T}$CPP" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3694 | ac_preproc_ok=false |
| 3695 | for ac_c_preproc_warn_flag in '' yes |
| 3696 | do |
| 3697 | # Use a header file that comes with gcc, so configuring glibc |
| 3698 | # with a fresh cross-compiler works. |
| 3699 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3700 | # <limits.h> exists even on freestanding compilers. |
| 3701 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3702 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3703 | cat >conftest.$ac_ext <<_ACEOF |
| 3704 | /* confdefs.h. */ |
| 3705 | _ACEOF |
| 3706 | cat confdefs.h >>conftest.$ac_ext |
| 3707 | cat >>conftest.$ac_ext <<_ACEOF |
| 3708 | /* end confdefs.h. */ |
| 3709 | #ifdef __STDC__ |
| 3710 | # include <limits.h> |
| 3711 | #else |
| 3712 | # include <assert.h> |
| 3713 | #endif |
| 3714 | Syntax error |
| 3715 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3716 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3717 | case "(($ac_try" in |
| 3718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3719 | *) ac_try_echo=$ac_try;; |
| 3720 | esac |
| 3721 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3722 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3723 | ac_status=$? |
| 3724 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3725 | rm -f conftest.er1 |
| 3726 | cat conftest.err >&5 |
| 3727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3728 | (exit $ac_status); } >/dev/null; then |
| 3729 | if test -s conftest.err; then |
| 3730 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3731 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3732 | else |
| 3733 | ac_cpp_err= |
| 3734 | fi |
| 3735 | else |
| 3736 | ac_cpp_err=yes |
| 3737 | fi |
| 3738 | if test -z "$ac_cpp_err"; then |
| 3739 | : |
| 3740 | else |
| 3741 | echo "$as_me: failed program was:" >&5 |
| 3742 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3743 | |
| 3744 | # Broken: fails on valid input. |
| 3745 | continue |
| 3746 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3747 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3748 | rm -f conftest.err conftest.$ac_ext |
| 3749 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3750 | # OK, works on sane cases. Now check whether nonexistent headers |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3751 | # can be detected and how. |
| 3752 | cat >conftest.$ac_ext <<_ACEOF |
| 3753 | /* confdefs.h. */ |
| 3754 | _ACEOF |
| 3755 | cat confdefs.h >>conftest.$ac_ext |
| 3756 | cat >>conftest.$ac_ext <<_ACEOF |
| 3757 | /* end confdefs.h. */ |
| 3758 | #include <ac_nonexistent.h> |
| 3759 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3760 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3761 | case "(($ac_try" in |
| 3762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3763 | *) ac_try_echo=$ac_try;; |
| 3764 | esac |
| 3765 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3766 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3767 | ac_status=$? |
| 3768 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3769 | rm -f conftest.er1 |
| 3770 | cat conftest.err >&5 |
| 3771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3772 | (exit $ac_status); } >/dev/null; then |
| 3773 | if test -s conftest.err; then |
| 3774 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3775 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3776 | else |
| 3777 | ac_cpp_err= |
| 3778 | fi |
| 3779 | else |
| 3780 | ac_cpp_err=yes |
| 3781 | fi |
| 3782 | if test -z "$ac_cpp_err"; then |
| 3783 | # Broken: success on invalid input. |
| 3784 | continue |
| 3785 | else |
| 3786 | echo "$as_me: failed program was:" >&5 |
| 3787 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3788 | |
| 3789 | # Passes both tests. |
| 3790 | ac_preproc_ok=: |
| 3791 | break |
| 3792 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3793 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3794 | rm -f conftest.err conftest.$ac_ext |
| 3795 | |
| 3796 | done |
| 3797 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3798 | rm -f conftest.err conftest.$ac_ext |
| 3799 | if $ac_preproc_ok; then |
| 3800 | : |
| 3801 | else |
| 3802 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3803 | See \`config.log' for more details." >&5 |
| 3804 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3805 | See \`config.log' for more details." >&2;} |
| 3806 | { (exit 1); exit 1; }; } |
| 3807 | fi |
| 3808 | |
| 3809 | ac_ext=c |
| 3810 | ac_cpp='$CPP $CPPFLAGS' |
| 3811 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3812 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3813 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3814 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3815 | ac_ext=cpp |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3816 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 3817 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3818 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3819 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3820 | if test -z "$CXX"; then |
| 3821 | if test -n "$CCC"; then |
| 3822 | CXX=$CCC |
| 3823 | else |
| 3824 | if test -n "$ac_tool_prefix"; then |
| 3825 | 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] | 3826 | do |
| 3827 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3828 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3829 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3830 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3831 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 3832 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3833 | else |
| 3834 | if test -n "$CXX"; then |
| 3835 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3836 | else |
| 3837 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3838 | for as_dir in $PATH |
| 3839 | do |
| 3840 | IFS=$as_save_IFS |
| 3841 | test -z "$as_dir" && as_dir=. |
| 3842 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3843 | 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] | 3844 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 3845 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3846 | break 2 |
| 3847 | fi |
| 3848 | done |
| 3849 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3850 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3851 | |
| 3852 | fi |
| 3853 | fi |
| 3854 | CXX=$ac_cv_prog_CXX |
| 3855 | if test -n "$CXX"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3856 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3857 | echo "${ECHO_T}$CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3858 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3859 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3860 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3861 | fi |
| 3862 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3863 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3864 | test -n "$CXX" && break |
| 3865 | done |
| 3866 | fi |
| 3867 | if test -z "$CXX"; then |
| 3868 | ac_ct_CXX=$CXX |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3869 | 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] | 3870 | do |
| 3871 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3872 | set dummy $ac_prog; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3873 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3874 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3875 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 3876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3877 | else |
| 3878 | if test -n "$ac_ct_CXX"; then |
| 3879 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 3880 | else |
| 3881 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3882 | for as_dir in $PATH |
| 3883 | do |
| 3884 | IFS=$as_save_IFS |
| 3885 | test -z "$as_dir" && as_dir=. |
| 3886 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3887 | 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] | 3888 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 3889 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3890 | break 2 |
| 3891 | fi |
| 3892 | done |
| 3893 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3894 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3895 | |
| 3896 | fi |
| 3897 | fi |
| 3898 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 3899 | if test -n "$ac_ct_CXX"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3900 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 3901 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3902 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3903 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3904 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3905 | fi |
| 3906 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3907 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3908 | test -n "$ac_ct_CXX" && break |
| 3909 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3910 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3911 | if test "x$ac_ct_CXX" = x; then |
| 3912 | CXX="g++" |
| 3913 | else |
| 3914 | case $cross_compiling:$ac_tool_warned in |
| 3915 | yes:) |
| 3916 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 3917 | whose name does not start with the host triplet. If you think this |
| 3918 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 3919 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 3920 | whose name does not start with the host triplet. If you think this |
| 3921 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 3922 | ac_tool_warned=yes ;; |
| 3923 | esac |
| 3924 | CXX=$ac_ct_CXX |
| 3925 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3926 | fi |
| 3927 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3928 | fi |
| 3929 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3930 | # Provide some information about the compiler. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3931 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3932 | ac_compiler=`set X $ac_compile; echo $2` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3933 | { (ac_try="$ac_compiler --version >&5" |
| 3934 | case "(($ac_try" in |
| 3935 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3936 | *) ac_try_echo=$ac_try;; |
| 3937 | esac |
| 3938 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3939 | (eval "$ac_compiler --version >&5") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3940 | ac_status=$? |
| 3941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3942 | (exit $ac_status); } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3943 | { (ac_try="$ac_compiler -v >&5" |
| 3944 | case "(($ac_try" in |
| 3945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3946 | *) ac_try_echo=$ac_try;; |
| 3947 | esac |
| 3948 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3949 | (eval "$ac_compiler -v >&5") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3950 | ac_status=$? |
| 3951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3952 | (exit $ac_status); } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3953 | { (ac_try="$ac_compiler -V >&5" |
| 3954 | case "(($ac_try" in |
| 3955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3956 | *) ac_try_echo=$ac_try;; |
| 3957 | esac |
| 3958 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3959 | (eval "$ac_compiler -V >&5") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3960 | ac_status=$? |
| 3961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3962 | (exit $ac_status); } |
| 3963 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3964 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 3965 | 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] | 3966 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 3967 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3968 | else |
| 3969 | cat >conftest.$ac_ext <<_ACEOF |
| 3970 | /* confdefs.h. */ |
| 3971 | _ACEOF |
| 3972 | cat confdefs.h >>conftest.$ac_ext |
| 3973 | cat >>conftest.$ac_ext <<_ACEOF |
| 3974 | /* end confdefs.h. */ |
| 3975 | |
| 3976 | int |
| 3977 | main () |
| 3978 | { |
| 3979 | #ifndef __GNUC__ |
| 3980 | choke me |
| 3981 | #endif |
| 3982 | |
| 3983 | ; |
| 3984 | return 0; |
| 3985 | } |
| 3986 | _ACEOF |
| 3987 | rm -f conftest.$ac_objext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 3988 | if { (ac_try="$ac_compile" |
| 3989 | case "(($ac_try" in |
| 3990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3991 | *) ac_try_echo=$ac_try;; |
| 3992 | esac |
| 3993 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3994 | (eval "$ac_compile") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3995 | ac_status=$? |
| 3996 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3997 | rm -f conftest.er1 |
| 3998 | cat conftest.err >&5 |
| 3999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4000 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4001 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 4002 | { (case "(($ac_try" in |
| 4003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4004 | *) ac_try_echo=$ac_try;; |
| 4005 | esac |
| 4006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4007 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4008 | ac_status=$? |
| 4009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4010 | (exit $ac_status); }; } && |
| 4011 | { ac_try='test -s conftest.$ac_objext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4012 | { (case "(($ac_try" in |
| 4013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4014 | *) ac_try_echo=$ac_try;; |
| 4015 | esac |
| 4016 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4017 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4018 | ac_status=$? |
| 4019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4020 | (exit $ac_status); }; }; then |
| 4021 | ac_compiler_gnu=yes |
| 4022 | else |
| 4023 | echo "$as_me: failed program was:" >&5 |
| 4024 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4025 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4026 | ac_compiler_gnu=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4027 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4028 | |
| 4029 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4030 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 4031 | |
| 4032 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4033 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 4034 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4035 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 4036 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 4037 | ac_save_CXXFLAGS=$CXXFLAGS |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4038 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 4039 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4040 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 4041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4042 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4043 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 4044 | ac_cxx_werror_flag=yes |
| 4045 | ac_cv_prog_cxx_g=no |
| 4046 | CXXFLAGS="-g" |
| 4047 | cat >conftest.$ac_ext <<_ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4048 | /* confdefs.h. */ |
| 4049 | _ACEOF |
| 4050 | cat confdefs.h >>conftest.$ac_ext |
| 4051 | cat >>conftest.$ac_ext <<_ACEOF |
| 4052 | /* end confdefs.h. */ |
| 4053 | |
| 4054 | int |
| 4055 | main () |
| 4056 | { |
| 4057 | |
| 4058 | ; |
| 4059 | return 0; |
| 4060 | } |
| 4061 | _ACEOF |
| 4062 | rm -f conftest.$ac_objext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4063 | if { (ac_try="$ac_compile" |
| 4064 | case "(($ac_try" in |
| 4065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4066 | *) ac_try_echo=$ac_try;; |
| 4067 | esac |
| 4068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4069 | (eval "$ac_compile") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4070 | ac_status=$? |
| 4071 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4072 | rm -f conftest.er1 |
| 4073 | cat conftest.err >&5 |
| 4074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4075 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4076 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 4077 | { (case "(($ac_try" in |
| 4078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4079 | *) ac_try_echo=$ac_try;; |
| 4080 | esac |
| 4081 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4082 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4083 | ac_status=$? |
| 4084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4085 | (exit $ac_status); }; } && |
| 4086 | { ac_try='test -s conftest.$ac_objext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 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); }; }; then |
| 4096 | ac_cv_prog_cxx_g=yes |
| 4097 | else |
| 4098 | echo "$as_me: failed program was:" >&5 |
| 4099 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4100 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4101 | CXXFLAGS="" |
| 4102 | cat >conftest.$ac_ext <<_ACEOF |
| 4103 | /* confdefs.h. */ |
| 4104 | _ACEOF |
| 4105 | cat confdefs.h >>conftest.$ac_ext |
| 4106 | cat >>conftest.$ac_ext <<_ACEOF |
| 4107 | /* end confdefs.h. */ |
| 4108 | |
| 4109 | int |
| 4110 | main () |
| 4111 | { |
| 4112 | |
| 4113 | ; |
| 4114 | return 0; |
| 4115 | } |
| 4116 | _ACEOF |
| 4117 | rm -f conftest.$ac_objext |
| 4118 | if { (ac_try="$ac_compile" |
| 4119 | case "(($ac_try" in |
| 4120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4121 | *) ac_try_echo=$ac_try;; |
| 4122 | esac |
| 4123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4124 | (eval "$ac_compile") 2>conftest.er1 |
| 4125 | ac_status=$? |
| 4126 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4127 | rm -f conftest.er1 |
| 4128 | cat conftest.err >&5 |
| 4129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4130 | (exit $ac_status); } && |
| 4131 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 4132 | { (case "(($ac_try" in |
| 4133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4134 | *) ac_try_echo=$ac_try;; |
| 4135 | esac |
| 4136 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4137 | (eval "$ac_try") 2>&5 |
| 4138 | ac_status=$? |
| 4139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4140 | (exit $ac_status); }; } && |
| 4141 | { ac_try='test -s conftest.$ac_objext' |
| 4142 | { (case "(($ac_try" in |
| 4143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4144 | *) ac_try_echo=$ac_try;; |
| 4145 | esac |
| 4146 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4147 | (eval "$ac_try") 2>&5 |
| 4148 | ac_status=$? |
| 4149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4150 | (exit $ac_status); }; }; then |
| 4151 | : |
| 4152 | else |
| 4153 | echo "$as_me: failed program was:" >&5 |
| 4154 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4155 | |
| 4156 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 4157 | CXXFLAGS="-g" |
| 4158 | cat >conftest.$ac_ext <<_ACEOF |
| 4159 | /* confdefs.h. */ |
| 4160 | _ACEOF |
| 4161 | cat confdefs.h >>conftest.$ac_ext |
| 4162 | cat >>conftest.$ac_ext <<_ACEOF |
| 4163 | /* end confdefs.h. */ |
| 4164 | |
| 4165 | int |
| 4166 | main () |
| 4167 | { |
| 4168 | |
| 4169 | ; |
| 4170 | return 0; |
| 4171 | } |
| 4172 | _ACEOF |
| 4173 | rm -f conftest.$ac_objext |
| 4174 | if { (ac_try="$ac_compile" |
| 4175 | case "(($ac_try" in |
| 4176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4177 | *) ac_try_echo=$ac_try;; |
| 4178 | esac |
| 4179 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4180 | (eval "$ac_compile") 2>conftest.er1 |
| 4181 | ac_status=$? |
| 4182 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4183 | rm -f conftest.er1 |
| 4184 | cat conftest.err >&5 |
| 4185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4186 | (exit $ac_status); } && |
| 4187 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 4188 | { (case "(($ac_try" in |
| 4189 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4190 | *) ac_try_echo=$ac_try;; |
| 4191 | esac |
| 4192 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4193 | (eval "$ac_try") 2>&5 |
| 4194 | ac_status=$? |
| 4195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4196 | (exit $ac_status); }; } && |
| 4197 | { ac_try='test -s conftest.$ac_objext' |
| 4198 | { (case "(($ac_try" in |
| 4199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4200 | *) ac_try_echo=$ac_try;; |
| 4201 | esac |
| 4202 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4203 | (eval "$ac_try") 2>&5 |
| 4204 | ac_status=$? |
| 4205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4206 | (exit $ac_status); }; }; then |
| 4207 | ac_cv_prog_cxx_g=yes |
| 4208 | else |
| 4209 | echo "$as_me: failed program was:" >&5 |
| 4210 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4211 | |
| 4212 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4213 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4214 | |
| 4215 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4216 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4217 | |
| 4218 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4219 | fi |
| 4220 | |
| 4221 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4222 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 4223 | fi |
| 4224 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 4225 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4226 | if test "$ac_test_CXXFLAGS" = set; then |
| 4227 | CXXFLAGS=$ac_save_CXXFLAGS |
| 4228 | elif test $ac_cv_prog_cxx_g = yes; then |
| 4229 | if test "$GXX" = yes; then |
| 4230 | CXXFLAGS="-g -O2" |
| 4231 | else |
| 4232 | CXXFLAGS="-g" |
| 4233 | fi |
| 4234 | else |
| 4235 | if test "$GXX" = yes; then |
| 4236 | CXXFLAGS="-O2" |
| 4237 | else |
| 4238 | CXXFLAGS= |
| 4239 | fi |
| 4240 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4241 | ac_ext=c |
| 4242 | ac_cpp='$CPP $CPPFLAGS' |
| 4243 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4244 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4245 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4246 | |
| 4247 | depcc="$CXX" am_compiler_list= |
| 4248 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4249 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 4250 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4251 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
| 4252 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4253 | else |
| 4254 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 4255 | # We make a subdir and do the tests there. Otherwise we can end up |
| 4256 | # making bogus files that we don't know about and never remove. For |
| 4257 | # instance it was reported that on HP-UX the gcc test will end up |
| 4258 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 4259 | # in D'. |
| 4260 | mkdir conftest.dir |
| 4261 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 4262 | # using a relative directory. |
| 4263 | cp "$am_depcomp" conftest.dir |
| 4264 | cd conftest.dir |
| 4265 | # We will build objects and dependencies in a subdirectory because |
| 4266 | # it helps to detect inapplicable dependency modes. For instance |
| 4267 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 4268 | # side effect of compilation, but ICC will put the dependencies in |
| 4269 | # the current directory while Tru64 will put them in the object |
| 4270 | # directory. |
| 4271 | mkdir sub |
| 4272 | |
| 4273 | am_cv_CXX_dependencies_compiler_type=none |
| 4274 | if test "$am_compiler_list" = ""; then |
| 4275 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 4276 | fi |
| 4277 | for depmode in $am_compiler_list; do |
| 4278 | # Setup a source with many dependencies, because some compilers |
| 4279 | # like to wrap large dependency lists on column 80 (with \), and |
| 4280 | # we should not choose a depcomp mode which is confused by this. |
| 4281 | # |
| 4282 | # We need to recreate these files for each test, as the compiler may |
| 4283 | # overwrite some of them when testing with obscure command lines. |
| 4284 | # This happens at least with the AIX C compiler. |
| 4285 | : > sub/conftest.c |
| 4286 | for i in 1 2 3 4 5 6; do |
| 4287 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 4288 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 4289 | # Solaris 8's {/usr,}/bin/sh. |
| 4290 | touch sub/conftst$i.h |
| 4291 | done |
| 4292 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 4293 | |
| 4294 | case $depmode in |
| 4295 | nosideeffect) |
| 4296 | # after this tag, mechanisms are not by side-effect, so they'll |
| 4297 | # only be used when explicitly requested |
| 4298 | if test "x$enable_dependency_tracking" = xyes; then |
| 4299 | continue |
| 4300 | else |
| 4301 | break |
| 4302 | fi |
| 4303 | ;; |
| 4304 | none) break ;; |
| 4305 | esac |
| 4306 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 4307 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 4308 | # handle `-M -o', and we need to detect this. |
| 4309 | if depmode=$depmode \ |
| 4310 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| 4311 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 4312 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| 4313 | >/dev/null 2>conftest.err && |
| 4314 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 4315 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
| 4316 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 4317 | # icc doesn't choke on unknown options, it will just issue warnings |
| 4318 | # or remarks (even with -Werror). So we grep stderr for any message |
| 4319 | # that says an option was ignored or not supported. |
| 4320 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 4321 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 4322 | # The diagnosis changed in icc 8.0: |
| 4323 | # icc: Command line remark: option '-MP' not supported |
| 4324 | if (grep 'ignoring option' conftest.err || |
| 4325 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 4326 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 4327 | break |
| 4328 | fi |
| 4329 | fi |
| 4330 | done |
| 4331 | |
| 4332 | cd .. |
| 4333 | rm -rf conftest.dir |
| 4334 | else |
| 4335 | am_cv_CXX_dependencies_compiler_type=none |
| 4336 | fi |
| 4337 | |
| 4338 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4339 | { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 4340 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4341 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 4342 | |
| 4343 | |
| 4344 | |
| 4345 | if |
| 4346 | test "x$enable_dependency_tracking" != xno \ |
| 4347 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 4348 | am__fastdepCXX_TRUE= |
| 4349 | am__fastdepCXX_FALSE='#' |
| 4350 | else |
| 4351 | am__fastdepCXX_TRUE='#' |
| 4352 | am__fastdepCXX_FALSE= |
| 4353 | fi |
| 4354 | |
| 4355 | |
| 4356 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4357 | # Check whether --enable-shared was given. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4358 | if test "${enable_shared+set}" = set; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4359 | enableval=$enable_shared; p=${PACKAGE-default} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4360 | case $enableval in |
| 4361 | yes) enable_shared=yes ;; |
| 4362 | no) enable_shared=no ;; |
| 4363 | *) |
| 4364 | enable_shared=no |
| 4365 | # Look at the argument we got. We use all the common list separators. |
| 4366 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 4367 | for pkg in $enableval; do |
| 4368 | IFS="$lt_save_ifs" |
| 4369 | if test "X$pkg" = "X$p"; then |
| 4370 | enable_shared=yes |
| 4371 | fi |
| 4372 | done |
| 4373 | IFS="$lt_save_ifs" |
| 4374 | ;; |
| 4375 | esac |
| 4376 | else |
| 4377 | enable_shared=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4378 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4379 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4380 | |
| 4381 | # Check whether --enable-static was given. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4382 | if test "${enable_static+set}" = set; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4383 | enableval=$enable_static; p=${PACKAGE-default} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4384 | case $enableval in |
| 4385 | yes) enable_static=yes ;; |
| 4386 | no) enable_static=no ;; |
| 4387 | *) |
| 4388 | enable_static=no |
| 4389 | # Look at the argument we got. We use all the common list separators. |
| 4390 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 4391 | for pkg in $enableval; do |
| 4392 | IFS="$lt_save_ifs" |
| 4393 | if test "X$pkg" = "X$p"; then |
| 4394 | enable_static=yes |
| 4395 | fi |
| 4396 | done |
| 4397 | IFS="$lt_save_ifs" |
| 4398 | ;; |
| 4399 | esac |
| 4400 | else |
| 4401 | enable_static=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4402 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4403 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4404 | |
| 4405 | # Check whether --enable-fast-install was given. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4406 | if test "${enable_fast_install+set}" = set; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4407 | enableval=$enable_fast_install; p=${PACKAGE-default} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4408 | case $enableval in |
| 4409 | yes) enable_fast_install=yes ;; |
| 4410 | no) enable_fast_install=no ;; |
| 4411 | *) |
| 4412 | enable_fast_install=no |
| 4413 | # Look at the argument we got. We use all the common list separators. |
| 4414 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 4415 | for pkg in $enableval; do |
| 4416 | IFS="$lt_save_ifs" |
| 4417 | if test "X$pkg" = "X$p"; then |
| 4418 | enable_fast_install=yes |
| 4419 | fi |
| 4420 | done |
| 4421 | IFS="$lt_save_ifs" |
| 4422 | ;; |
| 4423 | esac |
| 4424 | else |
| 4425 | enable_fast_install=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4426 | fi |
| 4427 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4428 | |
| 4429 | # Make sure we can run config.sub. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4430 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 4431 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 4432 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4433 | { (exit 1); exit 1; }; } |
| 4434 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4435 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 4436 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4437 | if test "${ac_cv_build+set}" = set; then |
| 4438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4439 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4440 | ac_build_alias=$build_alias |
| 4441 | test "x$ac_build_alias" = x && |
| 4442 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 4443 | test "x$ac_build_alias" = x && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4444 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 4445 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 4446 | { (exit 1); exit 1; }; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4447 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 4448 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 4449 | 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] | 4450 | { (exit 1); exit 1; }; } |
| 4451 | |
| 4452 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4453 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 4454 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 4455 | case $ac_cv_build in |
| 4456 | *-*-*) ;; |
| 4457 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 4458 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 4459 | { (exit 1); exit 1; }; };; |
| 4460 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4461 | build=$ac_cv_build |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4462 | ac_save_IFS=$IFS; IFS='-' |
| 4463 | set x $ac_cv_build |
| 4464 | shift |
| 4465 | build_cpu=$1 |
| 4466 | build_vendor=$2 |
| 4467 | shift; shift |
| 4468 | # Remember, the first character of IFS is used to create $*, |
| 4469 | # except with old shells: |
| 4470 | build_os=$* |
| 4471 | IFS=$ac_save_IFS |
| 4472 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4473 | |
| 4474 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4475 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 4476 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4477 | if test "${ac_cv_host+set}" = set; then |
| 4478 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4479 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4480 | if test "x$host_alias" = x; then |
| 4481 | ac_cv_host=$ac_cv_build |
| 4482 | else |
| 4483 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 4484 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 4485 | 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] | 4486 | { (exit 1); exit 1; }; } |
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 | |
| 4489 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4490 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 4491 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 4492 | case $ac_cv_host in |
| 4493 | *-*-*) ;; |
| 4494 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 4495 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 4496 | { (exit 1); exit 1; }; };; |
| 4497 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4498 | host=$ac_cv_host |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4499 | ac_save_IFS=$IFS; IFS='-' |
| 4500 | set x $ac_cv_host |
| 4501 | shift |
| 4502 | host_cpu=$1 |
| 4503 | host_vendor=$2 |
| 4504 | shift; shift |
| 4505 | # Remember, the first character of IFS is used to create $*, |
| 4506 | # except with old shells: |
| 4507 | host_os=$* |
| 4508 | IFS=$ac_save_IFS |
| 4509 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4510 | |
| 4511 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4512 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 4513 | 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] | 4514 | if test "${lt_cv_path_SED+set}" = set; then |
| 4515 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4516 | else |
| 4517 | # Loop through the user's path and test for sed and gsed. |
| 4518 | # Then use that list of sed's as ones to test for truncation. |
| 4519 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4520 | for as_dir in $PATH |
| 4521 | do |
| 4522 | IFS=$as_save_IFS |
| 4523 | test -z "$as_dir" && as_dir=. |
| 4524 | for lt_ac_prog in sed gsed; do |
| 4525 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4526 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
| 4527 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
| 4528 | fi |
| 4529 | done |
| 4530 | done |
| 4531 | done |
| 4532 | lt_ac_max=0 |
| 4533 | lt_ac_count=0 |
| 4534 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 4535 | # along with /bin/sed that truncates output. |
| 4536 | 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^] | 4537 | test ! -f $lt_ac_sed && continue |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4538 | cat /dev/null > conftest.in |
| 4539 | lt_ac_count=0 |
| 4540 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| 4541 | # Check for GNU sed and select it if it is found. |
| 4542 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
| 4543 | lt_cv_path_SED=$lt_ac_sed |
| 4544 | break |
| 4545 | fi |
| 4546 | while true; do |
| 4547 | cat conftest.in conftest.in >conftest.tmp |
| 4548 | mv conftest.tmp conftest.in |
| 4549 | cp conftest.in conftest.nl |
| 4550 | echo >>conftest.nl |
| 4551 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
| 4552 | cmp -s conftest.out conftest.nl || break |
| 4553 | # 10000 chars as input seems more than enough |
| 4554 | test $lt_ac_count -gt 10 && break |
| 4555 | lt_ac_count=`expr $lt_ac_count + 1` |
| 4556 | if test $lt_ac_count -gt $lt_ac_max; then |
| 4557 | lt_ac_max=$lt_ac_count |
| 4558 | lt_cv_path_SED=$lt_ac_sed |
| 4559 | fi |
| 4560 | done |
| 4561 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4562 | |
| 4563 | fi |
| 4564 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4565 | SED=$lt_cv_path_SED |
| 4566 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 4567 | echo "${ECHO_T}$SED" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4568 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4569 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 4570 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 4571 | if test "${ac_cv_path_GREP+set}" = set; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4573 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4574 | # Extract the first word of "grep ggrep" to use in msg output |
| 4575 | if test -z "$GREP"; then |
| 4576 | set dummy grep ggrep; ac_prog_name=$2 |
| 4577 | if test "${ac_cv_path_GREP+set}" = set; then |
| 4578 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4579 | else |
| 4580 | ac_path_GREP_found=false |
| 4581 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4583 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4584 | do |
| 4585 | IFS=$as_save_IFS |
| 4586 | test -z "$as_dir" && as_dir=. |
| 4587 | for ac_prog in grep ggrep; do |
| 4588 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4589 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4590 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
| 4591 | # Check for GNU ac_path_GREP and select it if it is found. |
| 4592 | # Check for GNU $ac_path_GREP |
| 4593 | case `"$ac_path_GREP" --version 2>&1` in |
| 4594 | *GNU*) |
| 4595 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4596 | *) |
| 4597 | ac_count=0 |
| 4598 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 4599 | while : |
| 4600 | do |
| 4601 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4602 | mv "conftest.tmp" "conftest.in" |
| 4603 | cp "conftest.in" "conftest.nl" |
| 4604 | echo 'GREP' >> "conftest.nl" |
| 4605 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4606 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4607 | ac_count=`expr $ac_count + 1` |
| 4608 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4609 | # Best one so far, save it but keep looking for a better one |
| 4610 | ac_cv_path_GREP="$ac_path_GREP" |
| 4611 | ac_path_GREP_max=$ac_count |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4612 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4613 | # 10*(2^10) chars as input seems more than enough |
| 4614 | test $ac_count -gt 10 && break |
| 4615 | done |
| 4616 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4617 | esac |
| 4618 | |
| 4619 | |
| 4620 | $ac_path_GREP_found && break 3 |
| 4621 | done |
| 4622 | done |
| 4623 | |
| 4624 | done |
| 4625 | IFS=$as_save_IFS |
| 4626 | |
| 4627 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4628 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4629 | |
| 4630 | GREP="$ac_cv_path_GREP" |
| 4631 | if test -z "$GREP"; then |
| 4632 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 4633 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 4634 | { (exit 1); exit 1; }; } |
| 4635 | fi |
| 4636 | |
| 4637 | else |
| 4638 | ac_cv_path_GREP=$GREP |
| 4639 | fi |
| 4640 | |
| 4641 | |
| 4642 | fi |
| 4643 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 4644 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 4645 | GREP="$ac_cv_path_GREP" |
| 4646 | |
| 4647 | |
| 4648 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 4649 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 4650 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 4651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4652 | else |
| 4653 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4654 | then ac_cv_path_EGREP="$GREP -E" |
| 4655 | else |
| 4656 | # Extract the first word of "egrep" to use in msg output |
| 4657 | if test -z "$EGREP"; then |
| 4658 | set dummy egrep; ac_prog_name=$2 |
| 4659 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 4660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4661 | else |
| 4662 | ac_path_EGREP_found=false |
| 4663 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4665 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4666 | do |
| 4667 | IFS=$as_save_IFS |
| 4668 | test -z "$as_dir" && as_dir=. |
| 4669 | for ac_prog in egrep; do |
| 4670 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4671 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4672 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
| 4673 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 4674 | # Check for GNU $ac_path_EGREP |
| 4675 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4676 | *GNU*) |
| 4677 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4678 | *) |
| 4679 | ac_count=0 |
| 4680 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 4681 | while : |
| 4682 | do |
| 4683 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4684 | mv "conftest.tmp" "conftest.in" |
| 4685 | cp "conftest.in" "conftest.nl" |
| 4686 | echo 'EGREP' >> "conftest.nl" |
| 4687 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4688 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4689 | ac_count=`expr $ac_count + 1` |
| 4690 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4691 | # Best one so far, save it but keep looking for a better one |
| 4692 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4693 | ac_path_EGREP_max=$ac_count |
| 4694 | fi |
| 4695 | # 10*(2^10) chars as input seems more than enough |
| 4696 | test $ac_count -gt 10 && break |
| 4697 | done |
| 4698 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4699 | esac |
| 4700 | |
| 4701 | |
| 4702 | $ac_path_EGREP_found && break 3 |
| 4703 | done |
| 4704 | done |
| 4705 | |
| 4706 | done |
| 4707 | IFS=$as_save_IFS |
| 4708 | |
| 4709 | |
| 4710 | fi |
| 4711 | |
| 4712 | EGREP="$ac_cv_path_EGREP" |
| 4713 | if test -z "$EGREP"; then |
| 4714 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 4715 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 4716 | { (exit 1); exit 1; }; } |
| 4717 | fi |
| 4718 | |
| 4719 | else |
| 4720 | ac_cv_path_EGREP=$EGREP |
| 4721 | fi |
| 4722 | |
| 4723 | |
| 4724 | fi |
| 4725 | fi |
| 4726 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 4727 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 4728 | EGREP="$ac_cv_path_EGREP" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4729 | |
| 4730 | |
| 4731 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4732 | # Check whether --with-gnu-ld was given. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4733 | if test "${with_gnu_ld+set}" = set; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4734 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4735 | else |
| 4736 | with_gnu_ld=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4737 | fi |
| 4738 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4739 | ac_prog=ld |
| 4740 | if test "$GCC" = yes; then |
| 4741 | # Check if gcc -print-prog-name=ld gives a path. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4742 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 4743 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4744 | case $host in |
| 4745 | *-*-mingw*) |
| 4746 | # gcc leaves a trailing carriage return which upsets mingw |
| 4747 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 4748 | *) |
| 4749 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 4750 | esac |
| 4751 | case $ac_prog in |
| 4752 | # Accept absolute paths. |
| 4753 | [\\/]* | ?:[\\/]*) |
| 4754 | re_direlt='/[^/][^/]*/\.\./' |
| 4755 | # Canonicalize the pathname of ld |
| 4756 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 4757 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 4758 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 4759 | done |
| 4760 | test -z "$LD" && LD="$ac_prog" |
| 4761 | ;; |
| 4762 | "") |
| 4763 | # If it fails, then pretend we aren't using GCC. |
| 4764 | ac_prog=ld |
| 4765 | ;; |
| 4766 | *) |
| 4767 | # If it is relative, then search for the first ld in PATH. |
| 4768 | with_gnu_ld=unknown |
| 4769 | ;; |
| 4770 | esac |
| 4771 | elif test "$with_gnu_ld" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4772 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 4773 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4774 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4775 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 4776 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4777 | fi |
| 4778 | if test "${lt_cv_path_LD+set}" = set; then |
| 4779 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4780 | else |
| 4781 | if test -z "$LD"; then |
| 4782 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 4783 | for ac_dir in $PATH; do |
| 4784 | IFS="$lt_save_ifs" |
| 4785 | test -z "$ac_dir" && ac_dir=. |
| 4786 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 4787 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 4788 | # 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^] | 4789 | # but apparently some variants of GNU ld only accept -v. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4790 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 4791 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 4792 | *GNU* | *'with BFD'*) |
| 4793 | test "$with_gnu_ld" != no && break |
| 4794 | ;; |
| 4795 | *) |
| 4796 | test "$with_gnu_ld" != yes && break |
| 4797 | ;; |
| 4798 | esac |
| 4799 | fi |
| 4800 | done |
| 4801 | IFS="$lt_save_ifs" |
| 4802 | else |
| 4803 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 4804 | fi |
| 4805 | fi |
| 4806 | |
| 4807 | LD="$lt_cv_path_LD" |
| 4808 | if test -n "$LD"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4809 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 4810 | echo "${ECHO_T}$LD" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4811 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4812 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4813 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4814 | fi |
| 4815 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 4816 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 4817 | { (exit 1); exit 1; }; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4818 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 4819 | 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] | 4820 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 4821 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4822 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4823 | # 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] | 4824 | case `$LD -v 2>&1 </dev/null` in |
| 4825 | *GNU* | *'with BFD'*) |
| 4826 | lt_cv_prog_gnu_ld=yes |
| 4827 | ;; |
| 4828 | *) |
| 4829 | lt_cv_prog_gnu_ld=no |
| 4830 | ;; |
| 4831 | esac |
| 4832 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4833 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 4834 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4835 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 4836 | |
| 4837 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4838 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 4839 | 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] | 4840 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 4841 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4842 | else |
| 4843 | lt_cv_ld_reload_flag='-r' |
| 4844 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4845 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 4846 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4847 | reload_flag=$lt_cv_ld_reload_flag |
| 4848 | case $reload_flag in |
| 4849 | "" | " "*) ;; |
| 4850 | *) reload_flag=" $reload_flag" ;; |
| 4851 | esac |
| 4852 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4853 | case $host_os in |
| 4854 | darwin*) |
| 4855 | if test "$GCC" = yes; then |
| 4856 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 4857 | else |
| 4858 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 4859 | fi |
| 4860 | ;; |
| 4861 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4862 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4863 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 4864 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4865 | if test "${lt_cv_path_NM+set}" = set; then |
| 4866 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4867 | else |
| 4868 | if test -n "$NM"; then |
| 4869 | # Let the user override the test. |
| 4870 | lt_cv_path_NM="$NM" |
| 4871 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4872 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 4873 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 4874 | lt_nm_to_check="$lt_nm_to_check nm" |
| 4875 | fi |
| 4876 | for lt_tmp_nm in $lt_nm_to_check; do |
| 4877 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 4878 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 4879 | IFS="$lt_save_ifs" |
| 4880 | test -z "$ac_dir" && ac_dir=. |
| 4881 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 4882 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 4883 | # Check to see if the nm accepts a BSD-compat flag. |
| 4884 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 4885 | # nm: unknown option "B" ignored |
| 4886 | # Tru64's nm complains that /dev/null is an invalid object file |
| 4887 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 4888 | */dev/null* | *'Invalid file or object type'*) |
| 4889 | lt_cv_path_NM="$tmp_nm -B" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4890 | break |
| 4891 | ;; |
| 4892 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4893 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 4894 | */dev/null*) |
| 4895 | lt_cv_path_NM="$tmp_nm -p" |
| 4896 | break |
| 4897 | ;; |
| 4898 | *) |
| 4899 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 4900 | continue # so that we can try to find one that supports BSD flags |
| 4901 | ;; |
| 4902 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4903 | ;; |
| 4904 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4905 | fi |
| 4906 | done |
| 4907 | IFS="$lt_save_ifs" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4908 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4909 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 4910 | fi |
| 4911 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4912 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 4913 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4914 | NM="$lt_cv_path_NM" |
| 4915 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4916 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 4917 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4918 | LN_S=$as_ln_s |
| 4919 | if test "$LN_S" = "ln -s"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4920 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4921 | echo "${ECHO_T}yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4922 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4923 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 4924 | echo "${ECHO_T}no, using $LN_S" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4925 | fi |
| 4926 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4927 | { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 4928 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4929 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 4930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4931 | else |
| 4932 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 4933 | lt_cv_file_magic_test_file= |
| 4934 | lt_cv_deplibs_check_method='unknown' |
| 4935 | # Need to set the preceding variable on all platforms that support |
| 4936 | # interlibrary dependencies. |
| 4937 | # 'none' -- dependencies not supported. |
| 4938 | # `unknown' -- same as none, but documents that we really don't know. |
| 4939 | # 'pass_all' -- all dependencies passed with no checks. |
| 4940 | # 'test_compile' -- check by making test program. |
| 4941 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 4942 | # which responds to the $file_magic_cmd with a given extended regex. |
| 4943 | # If you have `file' or equivalent on your system and you're not sure |
| 4944 | # whether `pass_all' will *always* work, you probably want this one. |
| 4945 | |
| 4946 | case $host_os in |
| 4947 | aix4* | aix5*) |
| 4948 | lt_cv_deplibs_check_method=pass_all |
| 4949 | ;; |
| 4950 | |
| 4951 | beos*) |
| 4952 | lt_cv_deplibs_check_method=pass_all |
| 4953 | ;; |
| 4954 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4955 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4956 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 4957 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 4958 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 4959 | ;; |
| 4960 | |
| 4961 | cygwin*) |
| 4962 | # func_win32_libid is a shell function defined in ltmain.sh |
| 4963 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 4964 | lt_cv_file_magic_cmd='func_win32_libid' |
| 4965 | ;; |
| 4966 | |
| 4967 | mingw* | pw32*) |
| 4968 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 4969 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
| 4970 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 4971 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 4972 | ;; |
| 4973 | |
| 4974 | darwin* | rhapsody*) |
| 4975 | lt_cv_deplibs_check_method=pass_all |
| 4976 | ;; |
| 4977 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4978 | freebsd* | kfreebsd*-gnu | dragonfly*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4979 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 4980 | case $host_cpu in |
| 4981 | i*86 ) |
| 4982 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 4983 | # Let's accept both of them until this is cleared up. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 4984 | 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] | 4985 | lt_cv_file_magic_cmd=/usr/bin/file |
| 4986 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 4987 | ;; |
| 4988 | esac |
| 4989 | else |
| 4990 | lt_cv_deplibs_check_method=pass_all |
| 4991 | fi |
| 4992 | ;; |
| 4993 | |
| 4994 | gnu*) |
| 4995 | lt_cv_deplibs_check_method=pass_all |
| 4996 | ;; |
| 4997 | |
| 4998 | hpux10.20* | hpux11*) |
| 4999 | lt_cv_file_magic_cmd=/usr/bin/file |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5000 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5001 | ia64*) |
| 5002 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 5003 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 5004 | ;; |
| 5005 | hppa*64*) |
| 5006 | 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]' |
| 5007 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 5008 | ;; |
| 5009 | *) |
| 5010 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 5011 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 5012 | ;; |
| 5013 | esac |
| 5014 | ;; |
| 5015 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5016 | interix3*) |
| 5017 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 5018 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 5019 | ;; |
| 5020 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5021 | irix5* | irix6* | nonstopux*) |
| 5022 | case $LD in |
| 5023 | *-32|*"-32 ") libmagic=32-bit;; |
| 5024 | *-n32|*"-n32 ") libmagic=N32;; |
| 5025 | *-64|*"-64 ") libmagic=64-bit;; |
| 5026 | *) libmagic=never-match;; |
| 5027 | esac |
| 5028 | lt_cv_deplibs_check_method=pass_all |
| 5029 | ;; |
| 5030 | |
| 5031 | # This must be Linux ELF. |
| 5032 | linux*) |
| 5033 | lt_cv_deplibs_check_method=pass_all |
| 5034 | ;; |
| 5035 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5036 | netbsd*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5037 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 5038 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 5039 | else |
| 5040 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 5041 | fi |
| 5042 | ;; |
| 5043 | |
| 5044 | newos6*) |
| 5045 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 5046 | lt_cv_file_magic_cmd=/usr/bin/file |
| 5047 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 5048 | ;; |
| 5049 | |
| 5050 | nto-qnx*) |
| 5051 | lt_cv_deplibs_check_method=unknown |
| 5052 | ;; |
| 5053 | |
| 5054 | openbsd*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5055 | 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^] | 5056 | 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] | 5057 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5058 | 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] | 5059 | fi |
| 5060 | ;; |
| 5061 | |
| 5062 | osf3* | osf4* | osf5*) |
| 5063 | lt_cv_deplibs_check_method=pass_all |
| 5064 | ;; |
| 5065 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5066 | solaris*) |
| 5067 | lt_cv_deplibs_check_method=pass_all |
| 5068 | ;; |
| 5069 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5070 | sysv4 | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5071 | case $host_vendor in |
| 5072 | motorola) |
| 5073 | 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]' |
| 5074 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 5075 | ;; |
| 5076 | ncr) |
| 5077 | lt_cv_deplibs_check_method=pass_all |
| 5078 | ;; |
| 5079 | sequent) |
| 5080 | lt_cv_file_magic_cmd='/bin/file' |
| 5081 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 5082 | ;; |
| 5083 | sni) |
| 5084 | lt_cv_file_magic_cmd='/bin/file' |
| 5085 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 5086 | lt_cv_file_magic_test_file=/lib/libc.so |
| 5087 | ;; |
| 5088 | siemens) |
| 5089 | lt_cv_deplibs_check_method=pass_all |
| 5090 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5091 | pc) |
| 5092 | lt_cv_deplibs_check_method=pass_all |
| 5093 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5094 | esac |
| 5095 | ;; |
| 5096 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5097 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5098 | lt_cv_deplibs_check_method=pass_all |
| 5099 | ;; |
| 5100 | esac |
| 5101 | |
| 5102 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5103 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 5104 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5105 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 5106 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 5107 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 5108 | |
| 5109 | |
| 5110 | |
| 5111 | |
| 5112 | # If no C compiler was specified, use CC. |
| 5113 | LTCC=${LTCC-"$CC"} |
| 5114 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5115 | # If no C compiler flags were specified, use CFLAGS. |
| 5116 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 5117 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5118 | # Allow CC to be a program name with arguments. |
| 5119 | compiler=$CC |
| 5120 | |
| 5121 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5122 | # Check whether --enable-libtool-lock was given. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5123 | if test "${enable_libtool_lock+set}" = set; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5124 | enableval=$enable_libtool_lock; |
| 5125 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5126 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5127 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 5128 | |
| 5129 | # Some flags need to be propagated to the compiler or linker for good |
| 5130 | # libtool support. |
| 5131 | case $host in |
| 5132 | ia64-*-hpux*) |
| 5133 | # Find out which ABI we are using. |
| 5134 | echo 'int i;' > conftest.$ac_ext |
| 5135 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5136 | (eval $ac_compile) 2>&5 |
| 5137 | ac_status=$? |
| 5138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5139 | (exit $ac_status); }; then |
| 5140 | case `/usr/bin/file conftest.$ac_objext` in |
| 5141 | *ELF-32*) |
| 5142 | HPUX_IA64_MODE="32" |
| 5143 | ;; |
| 5144 | *ELF-64*) |
| 5145 | HPUX_IA64_MODE="64" |
| 5146 | ;; |
| 5147 | esac |
| 5148 | fi |
| 5149 | rm -rf conftest* |
| 5150 | ;; |
| 5151 | *-*-irix6*) |
| 5152 | # Find out which ABI we are using. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5153 | echo '#line 5153 "configure"' > conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5154 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5155 | (eval $ac_compile) 2>&5 |
| 5156 | ac_status=$? |
| 5157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5158 | (exit $ac_status); }; then |
| 5159 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 5160 | case `/usr/bin/file conftest.$ac_objext` in |
| 5161 | *32-bit*) |
| 5162 | LD="${LD-ld} -melf32bsmip" |
| 5163 | ;; |
| 5164 | *N32*) |
| 5165 | LD="${LD-ld} -melf32bmipn32" |
| 5166 | ;; |
| 5167 | *64-bit*) |
| 5168 | LD="${LD-ld} -melf64bmip" |
| 5169 | ;; |
| 5170 | esac |
| 5171 | else |
| 5172 | case `/usr/bin/file conftest.$ac_objext` in |
| 5173 | *32-bit*) |
| 5174 | LD="${LD-ld} -32" |
| 5175 | ;; |
| 5176 | *N32*) |
| 5177 | LD="${LD-ld} -n32" |
| 5178 | ;; |
| 5179 | *64-bit*) |
| 5180 | LD="${LD-ld} -64" |
| 5181 | ;; |
| 5182 | esac |
| 5183 | fi |
| 5184 | fi |
| 5185 | rm -rf conftest* |
| 5186 | ;; |
| 5187 | |
| 5188 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| 5189 | # Find out which ABI we are using. |
| 5190 | echo 'int i;' > conftest.$ac_ext |
| 5191 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5192 | (eval $ac_compile) 2>&5 |
| 5193 | ac_status=$? |
| 5194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5195 | (exit $ac_status); }; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5196 | case `/usr/bin/file conftest.o` in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5197 | *32-bit*) |
| 5198 | case $host in |
| 5199 | x86_64-*linux*) |
| 5200 | LD="${LD-ld} -m elf_i386" |
| 5201 | ;; |
| 5202 | ppc64-*linux*|powerpc64-*linux*) |
| 5203 | LD="${LD-ld} -m elf32ppclinux" |
| 5204 | ;; |
| 5205 | s390x-*linux*) |
| 5206 | LD="${LD-ld} -m elf_s390" |
| 5207 | ;; |
| 5208 | sparc64-*linux*) |
| 5209 | LD="${LD-ld} -m elf32_sparc" |
| 5210 | ;; |
| 5211 | esac |
| 5212 | ;; |
| 5213 | *64-bit*) |
| 5214 | case $host in |
| 5215 | x86_64-*linux*) |
| 5216 | LD="${LD-ld} -m elf_x86_64" |
| 5217 | ;; |
| 5218 | ppc*-*linux*|powerpc*-*linux*) |
| 5219 | LD="${LD-ld} -m elf64ppc" |
| 5220 | ;; |
| 5221 | s390*-*linux*) |
| 5222 | LD="${LD-ld} -m elf64_s390" |
| 5223 | ;; |
| 5224 | sparc*-*linux*) |
| 5225 | LD="${LD-ld} -m elf64_sparc" |
| 5226 | ;; |
| 5227 | esac |
| 5228 | ;; |
| 5229 | esac |
| 5230 | fi |
| 5231 | rm -rf conftest* |
| 5232 | ;; |
| 5233 | |
| 5234 | *-*-sco3.2v5*) |
| 5235 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 5236 | SAVE_CFLAGS="$CFLAGS" |
| 5237 | CFLAGS="$CFLAGS -belf" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5238 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 5239 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5240 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 5241 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5242 | else |
| 5243 | ac_ext=c |
| 5244 | ac_cpp='$CPP $CPPFLAGS' |
| 5245 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5246 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5247 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5248 | |
| 5249 | cat >conftest.$ac_ext <<_ACEOF |
| 5250 | /* confdefs.h. */ |
| 5251 | _ACEOF |
| 5252 | cat confdefs.h >>conftest.$ac_ext |
| 5253 | cat >>conftest.$ac_ext <<_ACEOF |
| 5254 | /* end confdefs.h. */ |
| 5255 | |
| 5256 | int |
| 5257 | main () |
| 5258 | { |
| 5259 | |
| 5260 | ; |
| 5261 | return 0; |
| 5262 | } |
| 5263 | _ACEOF |
| 5264 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5265 | if { (ac_try="$ac_link" |
| 5266 | case "(($ac_try" in |
| 5267 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5268 | *) ac_try_echo=$ac_try;; |
| 5269 | esac |
| 5270 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5271 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5272 | ac_status=$? |
| 5273 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5274 | rm -f conftest.er1 |
| 5275 | cat conftest.err >&5 |
| 5276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5277 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5278 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5279 | { (case "(($ac_try" in |
| 5280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5281 | *) ac_try_echo=$ac_try;; |
| 5282 | esac |
| 5283 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5284 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5285 | ac_status=$? |
| 5286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5287 | (exit $ac_status); }; } && |
| 5288 | { ac_try='test -s conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5289 | { (case "(($ac_try" in |
| 5290 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5291 | *) ac_try_echo=$ac_try;; |
| 5292 | esac |
| 5293 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5294 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5295 | ac_status=$? |
| 5296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5297 | (exit $ac_status); }; }; then |
| 5298 | lt_cv_cc_needs_belf=yes |
| 5299 | else |
| 5300 | echo "$as_me: failed program was:" >&5 |
| 5301 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5302 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5303 | lt_cv_cc_needs_belf=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5304 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5305 | |
| 5306 | rm -f core conftest.err conftest.$ac_objext \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5307 | conftest$ac_exeext conftest.$ac_ext |
| 5308 | ac_ext=c |
| 5309 | ac_cpp='$CPP $CPPFLAGS' |
| 5310 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5311 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5312 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5313 | |
| 5314 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5315 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 5316 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5317 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 5318 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 5319 | CFLAGS="$SAVE_CFLAGS" |
| 5320 | fi |
| 5321 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5322 | sparc*-*solaris*) |
| 5323 | # Find out which ABI we are using. |
| 5324 | echo 'int i;' > conftest.$ac_ext |
| 5325 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5326 | (eval $ac_compile) 2>&5 |
| 5327 | ac_status=$? |
| 5328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5329 | (exit $ac_status); }; then |
| 5330 | case `/usr/bin/file conftest.o` in |
| 5331 | *64-bit*) |
| 5332 | case $lt_cv_prog_gnu_ld in |
| 5333 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 5334 | *) LD="${LD-ld} -64" ;; |
| 5335 | esac |
| 5336 | ;; |
| 5337 | esac |
| 5338 | fi |
| 5339 | rm -rf conftest* |
| 5340 | ;; |
| 5341 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5342 | |
| 5343 | esac |
| 5344 | |
| 5345 | need_locks="$enable_libtool_lock" |
| 5346 | |
| 5347 | |
| 5348 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5349 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 5350 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5351 | if test "${ac_cv_header_stdc+set}" = set; then |
| 5352 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5353 | else |
| 5354 | cat >conftest.$ac_ext <<_ACEOF |
| 5355 | /* confdefs.h. */ |
| 5356 | _ACEOF |
| 5357 | cat confdefs.h >>conftest.$ac_ext |
| 5358 | cat >>conftest.$ac_ext <<_ACEOF |
| 5359 | /* end confdefs.h. */ |
| 5360 | #include <stdlib.h> |
| 5361 | #include <stdarg.h> |
| 5362 | #include <string.h> |
| 5363 | #include <float.h> |
| 5364 | |
| 5365 | int |
| 5366 | main () |
| 5367 | { |
| 5368 | |
| 5369 | ; |
| 5370 | return 0; |
| 5371 | } |
| 5372 | _ACEOF |
| 5373 | rm -f conftest.$ac_objext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5374 | if { (ac_try="$ac_compile" |
| 5375 | case "(($ac_try" in |
| 5376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5377 | *) ac_try_echo=$ac_try;; |
| 5378 | esac |
| 5379 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5380 | (eval "$ac_compile") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5381 | ac_status=$? |
| 5382 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5383 | rm -f conftest.er1 |
| 5384 | cat conftest.err >&5 |
| 5385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5386 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5387 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5388 | { (case "(($ac_try" in |
| 5389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5390 | *) ac_try_echo=$ac_try;; |
| 5391 | esac |
| 5392 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5393 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5394 | ac_status=$? |
| 5395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5396 | (exit $ac_status); }; } && |
| 5397 | { ac_try='test -s conftest.$ac_objext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5398 | { (case "(($ac_try" in |
| 5399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5400 | *) ac_try_echo=$ac_try;; |
| 5401 | esac |
| 5402 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5403 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5404 | ac_status=$? |
| 5405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5406 | (exit $ac_status); }; }; then |
| 5407 | ac_cv_header_stdc=yes |
| 5408 | else |
| 5409 | echo "$as_me: failed program was:" >&5 |
| 5410 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5411 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5412 | ac_cv_header_stdc=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5413 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5414 | |
| 5415 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5416 | |
| 5417 | if test $ac_cv_header_stdc = yes; then |
| 5418 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 5419 | cat >conftest.$ac_ext <<_ACEOF |
| 5420 | /* confdefs.h. */ |
| 5421 | _ACEOF |
| 5422 | cat confdefs.h >>conftest.$ac_ext |
| 5423 | cat >>conftest.$ac_ext <<_ACEOF |
| 5424 | /* end confdefs.h. */ |
| 5425 | #include <string.h> |
| 5426 | |
| 5427 | _ACEOF |
| 5428 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5429 | $EGREP "memchr" >/dev/null 2>&1; then |
| 5430 | : |
| 5431 | else |
| 5432 | ac_cv_header_stdc=no |
| 5433 | fi |
| 5434 | rm -f conftest* |
| 5435 | |
| 5436 | fi |
| 5437 | |
| 5438 | if test $ac_cv_header_stdc = yes; then |
| 5439 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 5440 | cat >conftest.$ac_ext <<_ACEOF |
| 5441 | /* confdefs.h. */ |
| 5442 | _ACEOF |
| 5443 | cat confdefs.h >>conftest.$ac_ext |
| 5444 | cat >>conftest.$ac_ext <<_ACEOF |
| 5445 | /* end confdefs.h. */ |
| 5446 | #include <stdlib.h> |
| 5447 | |
| 5448 | _ACEOF |
| 5449 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5450 | $EGREP "free" >/dev/null 2>&1; then |
| 5451 | : |
| 5452 | else |
| 5453 | ac_cv_header_stdc=no |
| 5454 | fi |
| 5455 | rm -f conftest* |
| 5456 | |
| 5457 | fi |
| 5458 | |
| 5459 | if test $ac_cv_header_stdc = yes; then |
| 5460 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 5461 | if test "$cross_compiling" = yes; then |
| 5462 | : |
| 5463 | else |
| 5464 | cat >conftest.$ac_ext <<_ACEOF |
| 5465 | /* confdefs.h. */ |
| 5466 | _ACEOF |
| 5467 | cat confdefs.h >>conftest.$ac_ext |
| 5468 | cat >>conftest.$ac_ext <<_ACEOF |
| 5469 | /* end confdefs.h. */ |
| 5470 | #include <ctype.h> |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5471 | #include <stdlib.h> |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5472 | #if ((' ' & 0x0FF) == 0x020) |
| 5473 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5474 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5475 | #else |
| 5476 | # define ISLOWER(c) \ |
| 5477 | (('a' <= (c) && (c) <= 'i') \ |
| 5478 | || ('j' <= (c) && (c) <= 'r') \ |
| 5479 | || ('s' <= (c) && (c) <= 'z')) |
| 5480 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5481 | #endif |
| 5482 | |
| 5483 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5484 | int |
| 5485 | main () |
| 5486 | { |
| 5487 | int i; |
| 5488 | for (i = 0; i < 256; i++) |
| 5489 | if (XOR (islower (i), ISLOWER (i)) |
| 5490 | || toupper (i) != TOUPPER (i)) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5491 | return 2; |
| 5492 | return 0; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5493 | } |
| 5494 | _ACEOF |
| 5495 | rm -f conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5496 | if { (ac_try="$ac_link" |
| 5497 | case "(($ac_try" in |
| 5498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5499 | *) ac_try_echo=$ac_try;; |
| 5500 | esac |
| 5501 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5502 | (eval "$ac_link") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5503 | ac_status=$? |
| 5504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5505 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5506 | { (case "(($ac_try" in |
| 5507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5508 | *) ac_try_echo=$ac_try;; |
| 5509 | esac |
| 5510 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5511 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5512 | ac_status=$? |
| 5513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5514 | (exit $ac_status); }; }; then |
| 5515 | : |
| 5516 | else |
| 5517 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5518 | echo "$as_me: failed program was:" >&5 |
| 5519 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5520 | |
| 5521 | ( exit $ac_status ) |
| 5522 | ac_cv_header_stdc=no |
| 5523 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5524 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5525 | fi |
| 5526 | |
| 5527 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5528 | fi |
| 5529 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5530 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 5531 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5532 | if test $ac_cv_header_stdc = yes; then |
| 5533 | |
| 5534 | cat >>confdefs.h <<\_ACEOF |
| 5535 | #define STDC_HEADERS 1 |
| 5536 | _ACEOF |
| 5537 | |
| 5538 | fi |
| 5539 | |
| 5540 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 5541 | |
| 5542 | |
| 5543 | |
| 5544 | |
| 5545 | |
| 5546 | |
| 5547 | |
| 5548 | |
| 5549 | |
| 5550 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 5551 | inttypes.h stdint.h unistd.h |
| 5552 | do |
| 5553 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5554 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5555 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5556 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5557 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5558 | else |
| 5559 | cat >conftest.$ac_ext <<_ACEOF |
| 5560 | /* confdefs.h. */ |
| 5561 | _ACEOF |
| 5562 | cat confdefs.h >>conftest.$ac_ext |
| 5563 | cat >>conftest.$ac_ext <<_ACEOF |
| 5564 | /* end confdefs.h. */ |
| 5565 | $ac_includes_default |
| 5566 | |
| 5567 | #include <$ac_header> |
| 5568 | _ACEOF |
| 5569 | rm -f conftest.$ac_objext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5570 | if { (ac_try="$ac_compile" |
| 5571 | case "(($ac_try" in |
| 5572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5573 | *) ac_try_echo=$ac_try;; |
| 5574 | esac |
| 5575 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5576 | (eval "$ac_compile") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5577 | ac_status=$? |
| 5578 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5579 | rm -f conftest.er1 |
| 5580 | cat conftest.err >&5 |
| 5581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5582 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5583 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5584 | { (case "(($ac_try" in |
| 5585 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5586 | *) ac_try_echo=$ac_try;; |
| 5587 | esac |
| 5588 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5589 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5590 | ac_status=$? |
| 5591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5592 | (exit $ac_status); }; } && |
| 5593 | { ac_try='test -s conftest.$ac_objext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5594 | { (case "(($ac_try" in |
| 5595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5596 | *) ac_try_echo=$ac_try;; |
| 5597 | esac |
| 5598 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5599 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5600 | ac_status=$? |
| 5601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5602 | (exit $ac_status); }; }; then |
| 5603 | eval "$as_ac_Header=yes" |
| 5604 | else |
| 5605 | echo "$as_me: failed program was:" >&5 |
| 5606 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5607 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5608 | eval "$as_ac_Header=no" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5609 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5610 | |
| 5611 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5612 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5613 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5614 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5615 | echo "${ECHO_T}$ac_res" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5616 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5617 | cat >>confdefs.h <<_ACEOF |
| 5618 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5619 | _ACEOF |
| 5620 | |
| 5621 | fi |
| 5622 | |
| 5623 | done |
| 5624 | |
| 5625 | |
| 5626 | |
| 5627 | for ac_header in dlfcn.h |
| 5628 | do |
| 5629 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5630 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 5631 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5632 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5633 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5634 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5635 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5636 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5637 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5638 | echo "${ECHO_T}$ac_res" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5639 | else |
| 5640 | # Is the header compilable? |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5641 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 5642 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5643 | cat >conftest.$ac_ext <<_ACEOF |
| 5644 | /* confdefs.h. */ |
| 5645 | _ACEOF |
| 5646 | cat confdefs.h >>conftest.$ac_ext |
| 5647 | cat >>conftest.$ac_ext <<_ACEOF |
| 5648 | /* end confdefs.h. */ |
| 5649 | $ac_includes_default |
| 5650 | #include <$ac_header> |
| 5651 | _ACEOF |
| 5652 | rm -f conftest.$ac_objext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5653 | if { (ac_try="$ac_compile" |
| 5654 | case "(($ac_try" in |
| 5655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5656 | *) ac_try_echo=$ac_try;; |
| 5657 | esac |
| 5658 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5659 | (eval "$ac_compile") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5660 | ac_status=$? |
| 5661 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5662 | rm -f conftest.er1 |
| 5663 | cat conftest.err >&5 |
| 5664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5665 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5666 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5667 | { (case "(($ac_try" in |
| 5668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5669 | *) ac_try_echo=$ac_try;; |
| 5670 | esac |
| 5671 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5672 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5673 | ac_status=$? |
| 5674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5675 | (exit $ac_status); }; } && |
| 5676 | { ac_try='test -s conftest.$ac_objext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5677 | { (case "(($ac_try" in |
| 5678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5679 | *) ac_try_echo=$ac_try;; |
| 5680 | esac |
| 5681 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5682 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5683 | ac_status=$? |
| 5684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5685 | (exit $ac_status); }; }; then |
| 5686 | ac_header_compiler=yes |
| 5687 | else |
| 5688 | echo "$as_me: failed program was:" >&5 |
| 5689 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5690 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5691 | ac_header_compiler=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5692 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5693 | |
| 5694 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5695 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5696 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5697 | |
| 5698 | # Is the header present? |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5699 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 5700 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5701 | cat >conftest.$ac_ext <<_ACEOF |
| 5702 | /* confdefs.h. */ |
| 5703 | _ACEOF |
| 5704 | cat confdefs.h >>conftest.$ac_ext |
| 5705 | cat >>conftest.$ac_ext <<_ACEOF |
| 5706 | /* end confdefs.h. */ |
| 5707 | #include <$ac_header> |
| 5708 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5709 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5710 | case "(($ac_try" in |
| 5711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5712 | *) ac_try_echo=$ac_try;; |
| 5713 | esac |
| 5714 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5715 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5716 | ac_status=$? |
| 5717 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5718 | rm -f conftest.er1 |
| 5719 | cat conftest.err >&5 |
| 5720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5721 | (exit $ac_status); } >/dev/null; then |
| 5722 | if test -s conftest.err; then |
| 5723 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5724 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5725 | else |
| 5726 | ac_cpp_err= |
| 5727 | fi |
| 5728 | else |
| 5729 | ac_cpp_err=yes |
| 5730 | fi |
| 5731 | if test -z "$ac_cpp_err"; then |
| 5732 | ac_header_preproc=yes |
| 5733 | else |
| 5734 | echo "$as_me: failed program was:" >&5 |
| 5735 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5736 | |
| 5737 | ac_header_preproc=no |
| 5738 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5739 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5740 | rm -f conftest.err conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5741 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5742 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5743 | |
| 5744 | # So? What about this header? |
| 5745 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5746 | yes:no: ) |
| 5747 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5748 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5749 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 5750 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 5751 | ac_header_preproc=yes |
| 5752 | ;; |
| 5753 | no:yes:* ) |
| 5754 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 5755 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 5756 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 5757 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 5758 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 5759 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 5760 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 5761 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5762 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5763 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 5764 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 5765 | 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^] | 5766 | ( cat <<\_ASBOX |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5767 | ## ------------------------------------ ## |
| 5768 | ## Report this to opensource@google.com ## |
| 5769 | ## ------------------------------------ ## |
| 5770 | _ASBOX |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5771 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5772 | ;; |
| 5773 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5774 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5775 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5776 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5777 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5778 | else |
| 5779 | eval "$as_ac_Header=\$ac_header_preproc" |
| 5780 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5781 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5782 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5783 | echo "${ECHO_T}$ac_res" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5784 | |
| 5785 | fi |
| 5786 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5787 | cat >>confdefs.h <<_ACEOF |
| 5788 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5789 | _ACEOF |
| 5790 | |
| 5791 | fi |
| 5792 | |
| 5793 | done |
| 5794 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5795 | |
| 5796 | |
| 5797 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 5798 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 5799 | (test "X$CXX" != "Xg++"))) ; then |
| 5800 | ac_ext=cpp |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5801 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5802 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5803 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5804 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5805 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 5806 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5807 | if test -z "$CXXCPP"; then |
| 5808 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
| 5809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5810 | else |
| 5811 | # Double quotes because CXXCPP needs to be expanded |
| 5812 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 5813 | do |
| 5814 | ac_preproc_ok=false |
| 5815 | for ac_cxx_preproc_warn_flag in '' yes |
| 5816 | do |
| 5817 | # Use a header file that comes with gcc, so configuring glibc |
| 5818 | # with a fresh cross-compiler works. |
| 5819 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5820 | # <limits.h> exists even on freestanding compilers. |
| 5821 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5822 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5823 | cat >conftest.$ac_ext <<_ACEOF |
| 5824 | /* confdefs.h. */ |
| 5825 | _ACEOF |
| 5826 | cat confdefs.h >>conftest.$ac_ext |
| 5827 | cat >>conftest.$ac_ext <<_ACEOF |
| 5828 | /* end confdefs.h. */ |
| 5829 | #ifdef __STDC__ |
| 5830 | # include <limits.h> |
| 5831 | #else |
| 5832 | # include <assert.h> |
| 5833 | #endif |
| 5834 | Syntax error |
| 5835 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5836 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5837 | case "(($ac_try" in |
| 5838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5839 | *) ac_try_echo=$ac_try;; |
| 5840 | esac |
| 5841 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5842 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5843 | ac_status=$? |
| 5844 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5845 | rm -f conftest.er1 |
| 5846 | cat conftest.err >&5 |
| 5847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5848 | (exit $ac_status); } >/dev/null; then |
| 5849 | if test -s conftest.err; then |
| 5850 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 5851 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 5852 | else |
| 5853 | ac_cpp_err= |
| 5854 | fi |
| 5855 | else |
| 5856 | ac_cpp_err=yes |
| 5857 | fi |
| 5858 | if test -z "$ac_cpp_err"; then |
| 5859 | : |
| 5860 | else |
| 5861 | echo "$as_me: failed program was:" >&5 |
| 5862 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5863 | |
| 5864 | # Broken: fails on valid input. |
| 5865 | continue |
| 5866 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5867 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5868 | rm -f conftest.err conftest.$ac_ext |
| 5869 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5870 | # OK, works on sane cases. Now check whether nonexistent headers |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5871 | # can be detected and how. |
| 5872 | cat >conftest.$ac_ext <<_ACEOF |
| 5873 | /* confdefs.h. */ |
| 5874 | _ACEOF |
| 5875 | cat confdefs.h >>conftest.$ac_ext |
| 5876 | cat >>conftest.$ac_ext <<_ACEOF |
| 5877 | /* end confdefs.h. */ |
| 5878 | #include <ac_nonexistent.h> |
| 5879 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5880 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5881 | case "(($ac_try" in |
| 5882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5883 | *) ac_try_echo=$ac_try;; |
| 5884 | esac |
| 5885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5886 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5887 | ac_status=$? |
| 5888 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5889 | rm -f conftest.er1 |
| 5890 | cat conftest.err >&5 |
| 5891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5892 | (exit $ac_status); } >/dev/null; then |
| 5893 | if test -s conftest.err; then |
| 5894 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 5895 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 5896 | else |
| 5897 | ac_cpp_err= |
| 5898 | fi |
| 5899 | else |
| 5900 | ac_cpp_err=yes |
| 5901 | fi |
| 5902 | if test -z "$ac_cpp_err"; then |
| 5903 | # Broken: success on invalid input. |
| 5904 | continue |
| 5905 | else |
| 5906 | echo "$as_me: failed program was:" >&5 |
| 5907 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5908 | |
| 5909 | # Passes both tests. |
| 5910 | ac_preproc_ok=: |
| 5911 | break |
| 5912 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5913 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5914 | rm -f conftest.err conftest.$ac_ext |
| 5915 | |
| 5916 | done |
| 5917 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5918 | rm -f conftest.err conftest.$ac_ext |
| 5919 | if $ac_preproc_ok; then |
| 5920 | break |
| 5921 | fi |
| 5922 | |
| 5923 | done |
| 5924 | ac_cv_prog_CXXCPP=$CXXCPP |
| 5925 | |
| 5926 | fi |
| 5927 | CXXCPP=$ac_cv_prog_CXXCPP |
| 5928 | else |
| 5929 | ac_cv_prog_CXXCPP=$CXXCPP |
| 5930 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5931 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 5932 | echo "${ECHO_T}$CXXCPP" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5933 | ac_preproc_ok=false |
| 5934 | for ac_cxx_preproc_warn_flag in '' yes |
| 5935 | do |
| 5936 | # Use a header file that comes with gcc, so configuring glibc |
| 5937 | # with a fresh cross-compiler works. |
| 5938 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5939 | # <limits.h> exists even on freestanding compilers. |
| 5940 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5941 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5942 | cat >conftest.$ac_ext <<_ACEOF |
| 5943 | /* confdefs.h. */ |
| 5944 | _ACEOF |
| 5945 | cat confdefs.h >>conftest.$ac_ext |
| 5946 | cat >>conftest.$ac_ext <<_ACEOF |
| 5947 | /* end confdefs.h. */ |
| 5948 | #ifdef __STDC__ |
| 5949 | # include <limits.h> |
| 5950 | #else |
| 5951 | # include <assert.h> |
| 5952 | #endif |
| 5953 | Syntax error |
| 5954 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5955 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5956 | case "(($ac_try" in |
| 5957 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5958 | *) ac_try_echo=$ac_try;; |
| 5959 | esac |
| 5960 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5961 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5962 | ac_status=$? |
| 5963 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5964 | rm -f conftest.er1 |
| 5965 | cat conftest.err >&5 |
| 5966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5967 | (exit $ac_status); } >/dev/null; then |
| 5968 | if test -s conftest.err; then |
| 5969 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 5970 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 5971 | else |
| 5972 | ac_cpp_err= |
| 5973 | fi |
| 5974 | else |
| 5975 | ac_cpp_err=yes |
| 5976 | fi |
| 5977 | if test -z "$ac_cpp_err"; then |
| 5978 | : |
| 5979 | else |
| 5980 | echo "$as_me: failed program was:" >&5 |
| 5981 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5982 | |
| 5983 | # Broken: fails on valid input. |
| 5984 | continue |
| 5985 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5986 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5987 | rm -f conftest.err conftest.$ac_ext |
| 5988 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5989 | # OK, works on sane cases. Now check whether nonexistent headers |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5990 | # can be detected and how. |
| 5991 | cat >conftest.$ac_ext <<_ACEOF |
| 5992 | /* confdefs.h. */ |
| 5993 | _ACEOF |
| 5994 | cat confdefs.h >>conftest.$ac_ext |
| 5995 | cat >>conftest.$ac_ext <<_ACEOF |
| 5996 | /* end confdefs.h. */ |
| 5997 | #include <ac_nonexistent.h> |
| 5998 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 5999 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6000 | case "(($ac_try" in |
| 6001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6002 | *) ac_try_echo=$ac_try;; |
| 6003 | esac |
| 6004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6005 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6006 | ac_status=$? |
| 6007 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6008 | rm -f conftest.er1 |
| 6009 | cat conftest.err >&5 |
| 6010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6011 | (exit $ac_status); } >/dev/null; then |
| 6012 | if test -s conftest.err; then |
| 6013 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 6014 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 6015 | else |
| 6016 | ac_cpp_err= |
| 6017 | fi |
| 6018 | else |
| 6019 | ac_cpp_err=yes |
| 6020 | fi |
| 6021 | if test -z "$ac_cpp_err"; then |
| 6022 | # Broken: success on invalid input. |
| 6023 | continue |
| 6024 | else |
| 6025 | echo "$as_me: failed program was:" >&5 |
| 6026 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6027 | |
| 6028 | # Passes both tests. |
| 6029 | ac_preproc_ok=: |
| 6030 | break |
| 6031 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 6032 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6033 | rm -f conftest.err conftest.$ac_ext |
| 6034 | |
| 6035 | done |
| 6036 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 6037 | rm -f conftest.err conftest.$ac_ext |
| 6038 | if $ac_preproc_ok; then |
| 6039 | : |
| 6040 | else |
| 6041 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 6042 | See \`config.log' for more details." >&5 |
| 6043 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 6044 | See \`config.log' for more details." >&2;} |
| 6045 | { (exit 1); exit 1; }; } |
| 6046 | fi |
| 6047 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 6048 | ac_ext=cpp |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6049 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 6050 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6051 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6052 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 6053 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 6054 | fi |
| 6055 | |
| 6056 | |
| 6057 | ac_ext=f |
| 6058 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 6059 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6060 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 6061 | if test -n "$ac_tool_prefix"; then |
| 6062 | 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 |
| 6063 | do |
| 6064 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6065 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 6066 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6067 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6068 | if test "${ac_cv_prog_F77+set}" = set; then |
| 6069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6070 | else |
| 6071 | if test -n "$F77"; then |
| 6072 | ac_cv_prog_F77="$F77" # Let the user override the test. |
| 6073 | else |
| 6074 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6075 | for as_dir in $PATH |
| 6076 | do |
| 6077 | IFS=$as_save_IFS |
| 6078 | test -z "$as_dir" && as_dir=. |
| 6079 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6080 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6081 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
| 6082 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6083 | break 2 |
| 6084 | fi |
| 6085 | done |
| 6086 | done |
| 6087 | IFS=$as_save_IFS |
| 6088 | |
| 6089 | fi |
| 6090 | fi |
| 6091 | F77=$ac_cv_prog_F77 |
| 6092 | if test -n "$F77"; then |
| 6093 | { echo "$as_me:$LINENO: result: $F77" >&5 |
| 6094 | echo "${ECHO_T}$F77" >&6; } |
| 6095 | else |
| 6096 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6097 | echo "${ECHO_T}no" >&6; } |
| 6098 | fi |
| 6099 | |
| 6100 | |
| 6101 | test -n "$F77" && break |
| 6102 | done |
| 6103 | fi |
| 6104 | if test -z "$F77"; then |
| 6105 | ac_ct_F77=$F77 |
| 6106 | 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 |
| 6107 | do |
| 6108 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6109 | set dummy $ac_prog; ac_word=$2 |
| 6110 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6111 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6112 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
| 6113 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6114 | else |
| 6115 | if test -n "$ac_ct_F77"; then |
| 6116 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
| 6117 | else |
| 6118 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6119 | for as_dir in $PATH |
| 6120 | do |
| 6121 | IFS=$as_save_IFS |
| 6122 | test -z "$as_dir" && as_dir=. |
| 6123 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6124 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6125 | ac_cv_prog_ac_ct_F77="$ac_prog" |
| 6126 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6127 | break 2 |
| 6128 | fi |
| 6129 | done |
| 6130 | done |
| 6131 | IFS=$as_save_IFS |
| 6132 | |
| 6133 | fi |
| 6134 | fi |
| 6135 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
| 6136 | if test -n "$ac_ct_F77"; then |
| 6137 | { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
| 6138 | echo "${ECHO_T}$ac_ct_F77" >&6; } |
| 6139 | else |
| 6140 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6141 | echo "${ECHO_T}no" >&6; } |
| 6142 | fi |
| 6143 | |
| 6144 | |
| 6145 | test -n "$ac_ct_F77" && break |
| 6146 | done |
| 6147 | |
| 6148 | if test "x$ac_ct_F77" = x; then |
| 6149 | F77="" |
| 6150 | else |
| 6151 | case $cross_compiling:$ac_tool_warned in |
| 6152 | yes:) |
| 6153 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6154 | whose name does not start with the host triplet. If you think this |
| 6155 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6156 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6157 | whose name does not start with the host triplet. If you think this |
| 6158 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6159 | ac_tool_warned=yes ;; |
| 6160 | esac |
| 6161 | F77=$ac_ct_F77 |
| 6162 | fi |
| 6163 | fi |
| 6164 | |
| 6165 | |
| 6166 | # Provide some information about the compiler. |
| 6167 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 |
| 6168 | ac_compiler=`set X $ac_compile; echo $2` |
| 6169 | { (ac_try="$ac_compiler --version >&5" |
| 6170 | case "(($ac_try" in |
| 6171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6172 | *) ac_try_echo=$ac_try;; |
| 6173 | esac |
| 6174 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6175 | (eval "$ac_compiler --version >&5") 2>&5 |
| 6176 | ac_status=$? |
| 6177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6178 | (exit $ac_status); } |
| 6179 | { (ac_try="$ac_compiler -v >&5" |
| 6180 | case "(($ac_try" in |
| 6181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6182 | *) ac_try_echo=$ac_try;; |
| 6183 | esac |
| 6184 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6185 | (eval "$ac_compiler -v >&5") 2>&5 |
| 6186 | ac_status=$? |
| 6187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6188 | (exit $ac_status); } |
| 6189 | { (ac_try="$ac_compiler -V >&5" |
| 6190 | case "(($ac_try" in |
| 6191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6192 | *) ac_try_echo=$ac_try;; |
| 6193 | esac |
| 6194 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6195 | (eval "$ac_compiler -V >&5") 2>&5 |
| 6196 | ac_status=$? |
| 6197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6198 | (exit $ac_status); } |
| 6199 | rm -f a.out |
| 6200 | |
| 6201 | # If we don't use `.F' as extension, the preprocessor is not run on the |
| 6202 | # input file. (Note that this only needs to work for GNU compilers.) |
| 6203 | ac_save_ext=$ac_ext |
| 6204 | ac_ext=F |
| 6205 | { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
| 6206 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } |
| 6207 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
| 6208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6209 | else |
| 6210 | cat >conftest.$ac_ext <<_ACEOF |
| 6211 | program main |
| 6212 | #ifndef __GNUC__ |
| 6213 | choke me |
| 6214 | #endif |
| 6215 | |
| 6216 | end |
| 6217 | _ACEOF |
| 6218 | rm -f conftest.$ac_objext |
| 6219 | if { (ac_try="$ac_compile" |
| 6220 | case "(($ac_try" in |
| 6221 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6222 | *) ac_try_echo=$ac_try;; |
| 6223 | esac |
| 6224 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6225 | (eval "$ac_compile") 2>conftest.er1 |
| 6226 | ac_status=$? |
| 6227 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6228 | rm -f conftest.er1 |
| 6229 | cat conftest.err >&5 |
| 6230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6231 | (exit $ac_status); } && |
| 6232 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 6233 | { (case "(($ac_try" in |
| 6234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6235 | *) ac_try_echo=$ac_try;; |
| 6236 | esac |
| 6237 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6238 | (eval "$ac_try") 2>&5 |
| 6239 | ac_status=$? |
| 6240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6241 | (exit $ac_status); }; } && |
| 6242 | { ac_try='test -s conftest.$ac_objext' |
| 6243 | { (case "(($ac_try" in |
| 6244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6245 | *) ac_try_echo=$ac_try;; |
| 6246 | esac |
| 6247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6248 | (eval "$ac_try") 2>&5 |
| 6249 | ac_status=$? |
| 6250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6251 | (exit $ac_status); }; }; then |
| 6252 | ac_compiler_gnu=yes |
| 6253 | else |
| 6254 | echo "$as_me: failed program was:" >&5 |
| 6255 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6256 | |
| 6257 | ac_compiler_gnu=no |
| 6258 | fi |
| 6259 | |
| 6260 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6261 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
| 6262 | |
| 6263 | fi |
| 6264 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
| 6265 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } |
| 6266 | ac_ext=$ac_save_ext |
| 6267 | ac_test_FFLAGS=${FFLAGS+set} |
| 6268 | ac_save_FFLAGS=$FFLAGS |
| 6269 | FFLAGS= |
| 6270 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
| 6271 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } |
| 6272 | if test "${ac_cv_prog_f77_g+set}" = set; then |
| 6273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6274 | else |
| 6275 | FFLAGS=-g |
| 6276 | cat >conftest.$ac_ext <<_ACEOF |
| 6277 | program main |
| 6278 | |
| 6279 | end |
| 6280 | _ACEOF |
| 6281 | rm -f conftest.$ac_objext |
| 6282 | if { (ac_try="$ac_compile" |
| 6283 | case "(($ac_try" in |
| 6284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6285 | *) ac_try_echo=$ac_try;; |
| 6286 | esac |
| 6287 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6288 | (eval "$ac_compile") 2>conftest.er1 |
| 6289 | ac_status=$? |
| 6290 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6291 | rm -f conftest.er1 |
| 6292 | cat conftest.err >&5 |
| 6293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6294 | (exit $ac_status); } && |
| 6295 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 6296 | { (case "(($ac_try" in |
| 6297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6298 | *) ac_try_echo=$ac_try;; |
| 6299 | esac |
| 6300 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6301 | (eval "$ac_try") 2>&5 |
| 6302 | ac_status=$? |
| 6303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6304 | (exit $ac_status); }; } && |
| 6305 | { ac_try='test -s conftest.$ac_objext' |
| 6306 | { (case "(($ac_try" in |
| 6307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6308 | *) ac_try_echo=$ac_try;; |
| 6309 | esac |
| 6310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6311 | (eval "$ac_try") 2>&5 |
| 6312 | ac_status=$? |
| 6313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6314 | (exit $ac_status); }; }; then |
| 6315 | ac_cv_prog_f77_g=yes |
| 6316 | else |
| 6317 | echo "$as_me: failed program was:" >&5 |
| 6318 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6319 | |
| 6320 | ac_cv_prog_f77_g=no |
| 6321 | fi |
| 6322 | |
| 6323 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6324 | |
| 6325 | fi |
| 6326 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
| 6327 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } |
| 6328 | if test "$ac_test_FFLAGS" = set; then |
| 6329 | FFLAGS=$ac_save_FFLAGS |
| 6330 | elif test $ac_cv_prog_f77_g = yes; then |
| 6331 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
| 6332 | FFLAGS="-g -O2" |
| 6333 | else |
| 6334 | FFLAGS="-g" |
| 6335 | fi |
| 6336 | else |
| 6337 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
| 6338 | FFLAGS="-O2" |
| 6339 | else |
| 6340 | FFLAGS= |
| 6341 | fi |
| 6342 | fi |
| 6343 | |
| 6344 | G77=`test $ac_compiler_gnu = yes && echo yes` |
| 6345 | ac_ext=c |
| 6346 | ac_cpp='$CPP $CPPFLAGS' |
| 6347 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6348 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6349 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6350 | |
| 6351 | |
| 6352 | |
| 6353 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| 6354 | |
| 6355 | # find the maximum length of command line arguments |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 6356 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 6357 | 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] | 6358 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| 6359 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6360 | else |
| 6361 | i=0 |
| 6362 | teststring="ABCD" |
| 6363 | |
| 6364 | case $build_os in |
| 6365 | msdosdjgpp*) |
| 6366 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 6367 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 6368 | # during glob expansion). Even if it were fixed, the result of this |
| 6369 | # check would be larger than it should be. |
| 6370 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 6371 | ;; |
| 6372 | |
| 6373 | gnu*) |
| 6374 | # Under GNU Hurd, this test is not required because there is |
| 6375 | # no limit to the length of command line arguments. |
| 6376 | # Libtool will interpret -1 as no limit whatsoever |
| 6377 | lt_cv_sys_max_cmd_len=-1; |
| 6378 | ;; |
| 6379 | |
| 6380 | cygwin* | mingw*) |
| 6381 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 6382 | # about 5 minutes as the teststring grows exponentially. |
| 6383 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 6384 | # you end up with a "frozen" computer, even though with patience |
| 6385 | # the test eventually succeeds (with a max line length of 256k). |
| 6386 | # Instead, let's just punt: use the minimum linelength reported by |
| 6387 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 6388 | lt_cv_sys_max_cmd_len=8192; |
| 6389 | ;; |
| 6390 | |
| 6391 | amigaos*) |
| 6392 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 6393 | # So we just punt and use a minimum line length of 8192. |
| 6394 | lt_cv_sys_max_cmd_len=8192; |
| 6395 | ;; |
| 6396 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 6397 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 6398 | # This has been around since 386BSD, at least. Likely further. |
| 6399 | if test -x /sbin/sysctl; then |
| 6400 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 6401 | elif test -x /usr/sbin/sysctl; then |
| 6402 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 6403 | else |
| 6404 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 6405 | fi |
| 6406 | # And add a safety zone |
| 6407 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 6408 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 6409 | ;; |
| 6410 | |
| 6411 | interix*) |
| 6412 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 6413 | lt_cv_sys_max_cmd_len=196608 |
| 6414 | ;; |
| 6415 | |
| 6416 | osf*) |
| 6417 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 6418 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 6419 | # nice to cause kernel panics so lets avoid the loop below. |
| 6420 | # First set a reasonable default. |
| 6421 | lt_cv_sys_max_cmd_len=16384 |
| 6422 | # |
| 6423 | if test -x /sbin/sysconfig; then |
| 6424 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 6425 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 6426 | esac |
| 6427 | fi |
| 6428 | ;; |
| 6429 | sco3.2v5*) |
| 6430 | lt_cv_sys_max_cmd_len=102400 |
| 6431 | ;; |
| 6432 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 6433 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 6434 | if test -n "$kargmax"; then |
| 6435 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 6436 | else |
| 6437 | lt_cv_sys_max_cmd_len=32768 |
| 6438 | fi |
| 6439 | ;; |
| 6440 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6441 | # If test is not a shell built-in, we'll probably end up computing a |
| 6442 | # maximum length that is only half of the actual maximum length, but |
| 6443 | # we can't tell. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 6444 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 6445 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6446 | = "XX$teststring") >/dev/null 2>&1 && |
| 6447 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
| 6448 | lt_cv_sys_max_cmd_len=$new_result && |
| 6449 | test $i != 17 # 1/2 MB should be enough |
| 6450 | do |
| 6451 | i=`expr $i + 1` |
| 6452 | teststring=$teststring$teststring |
| 6453 | done |
| 6454 | teststring= |
| 6455 | # Add a significant safety factor because C++ compilers can tack on massive |
| 6456 | # amounts of additional arguments before passing them to the linker. |
| 6457 | # It appears as though 1/2 is a usable value. |
| 6458 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 6459 | ;; |
| 6460 | esac |
| 6461 | |
| 6462 | fi |
| 6463 | |
| 6464 | if test -n $lt_cv_sys_max_cmd_len ; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 6465 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 6466 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6467 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 6468 | { echo "$as_me:$LINENO: result: none" >&5 |
| 6469 | echo "${ECHO_T}none" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6470 | fi |
| 6471 | |
| 6472 | |
| 6473 | |
| 6474 | |
| 6475 | # 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^] | 6476 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 6477 | 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] | 6478 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 6479 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6480 | else |
| 6481 | |
| 6482 | # These are sane defaults that work on at least a few old systems. |
| 6483 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 6484 | |
| 6485 | # Character class describing NM global symbol codes. |
| 6486 | symcode='[BCDEGRST]' |
| 6487 | |
| 6488 | # Regexp to match symbols that can be accessed directly from C. |
| 6489 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 6490 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6491 | # Transform an extracted symbol line into a proper C declaration |
| 6492 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 6493 | |
| 6494 | # Transform an extracted symbol line into symbol name and symbol address |
| 6495 | 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'" |
| 6496 | |
| 6497 | # Define system-specific variables. |
| 6498 | case $host_os in |
| 6499 | aix*) |
| 6500 | symcode='[BCDT]' |
| 6501 | ;; |
| 6502 | cygwin* | mingw* | pw32*) |
| 6503 | symcode='[ABCDGISTW]' |
| 6504 | ;; |
| 6505 | hpux*) # Its linker distinguishes data from code symbols |
| 6506 | if test "$host_cpu" = ia64; then |
| 6507 | symcode='[ABCDEGRST]' |
| 6508 | fi |
| 6509 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 6510 | 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'" |
| 6511 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 6512 | linux*) |
| 6513 | if test "$host_cpu" = ia64; then |
| 6514 | symcode='[ABCDGIRSTW]' |
| 6515 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 6516 | 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'" |
| 6517 | fi |
| 6518 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6519 | irix* | nonstopux*) |
| 6520 | symcode='[BCDEGRST]' |
| 6521 | ;; |
| 6522 | osf*) |
| 6523 | symcode='[BCDEGQRST]' |
| 6524 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 6525 | solaris*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6526 | symcode='[BDRT]' |
| 6527 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 6528 | sco3.2v5*) |
| 6529 | symcode='[DT]' |
| 6530 | ;; |
| 6531 | sysv4.2uw2*) |
| 6532 | symcode='[DT]' |
| 6533 | ;; |
| 6534 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 6535 | symcode='[ABDT]' |
| 6536 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6537 | sysv4) |
| 6538 | symcode='[DFNSTU]' |
| 6539 | ;; |
| 6540 | esac |
| 6541 | |
| 6542 | # Handle CRLF in mingw tool chain |
| 6543 | opt_cr= |
| 6544 | case $build_os in |
| 6545 | mingw*) |
| 6546 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 6547 | ;; |
| 6548 | esac |
| 6549 | |
| 6550 | # If we're using GNU nm, then use its standard symbol codes. |
| 6551 | case `$NM -V 2>&1` in |
| 6552 | *GNU* | *'with BFD'*) |
| 6553 | symcode='[ABCDGIRSTW]' ;; |
| 6554 | esac |
| 6555 | |
| 6556 | # Try without a prefix undercore, then with it. |
| 6557 | for ac_symprfx in "" "_"; do |
| 6558 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 6559 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 6560 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 6561 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6562 | # Write the raw and C identifiers. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 6563 | 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] | 6564 | |
| 6565 | # Check to see that the pipe works correctly. |
| 6566 | pipe_works=no |
| 6567 | |
| 6568 | rm -f conftest* |
| 6569 | cat > conftest.$ac_ext <<EOF |
| 6570 | #ifdef __cplusplus |
| 6571 | extern "C" { |
| 6572 | #endif |
| 6573 | char nm_test_var; |
| 6574 | void nm_test_func(){} |
| 6575 | #ifdef __cplusplus |
| 6576 | } |
| 6577 | #endif |
| 6578 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 6579 | EOF |
| 6580 | |
| 6581 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6582 | (eval $ac_compile) 2>&5 |
| 6583 | ac_status=$? |
| 6584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6585 | (exit $ac_status); }; then |
| 6586 | # Now try to grab the symbols. |
| 6587 | nlist=conftest.nm |
| 6588 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 6589 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 6590 | ac_status=$? |
| 6591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6592 | (exit $ac_status); } && test -s "$nlist"; then |
| 6593 | # Try sorting and uniquifying the output. |
| 6594 | if sort "$nlist" | uniq > "$nlist"T; then |
| 6595 | mv -f "$nlist"T "$nlist" |
| 6596 | else |
| 6597 | rm -f "$nlist"T |
| 6598 | fi |
| 6599 | |
| 6600 | # Make sure that we snagged all the symbols we need. |
| 6601 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 6602 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 6603 | cat <<EOF > conftest.$ac_ext |
| 6604 | #ifdef __cplusplus |
| 6605 | extern "C" { |
| 6606 | #endif |
| 6607 | |
| 6608 | EOF |
| 6609 | # Now generate the symbol file. |
| 6610 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 6611 | |
| 6612 | cat <<EOF >> conftest.$ac_ext |
| 6613 | #if defined (__STDC__) && __STDC__ |
| 6614 | # define lt_ptr_t void * |
| 6615 | #else |
| 6616 | # define lt_ptr_t char * |
| 6617 | # define const |
| 6618 | #endif |
| 6619 | |
| 6620 | /* The mapping between symbol names and symbols. */ |
| 6621 | const struct { |
| 6622 | const char *name; |
| 6623 | lt_ptr_t address; |
| 6624 | } |
| 6625 | lt_preloaded_symbols[] = |
| 6626 | { |
| 6627 | EOF |
| 6628 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 6629 | cat <<\EOF >> conftest.$ac_ext |
| 6630 | {0, (lt_ptr_t) 0} |
| 6631 | }; |
| 6632 | |
| 6633 | #ifdef __cplusplus |
| 6634 | } |
| 6635 | #endif |
| 6636 | EOF |
| 6637 | # Now try linking the two files. |
| 6638 | mv conftest.$ac_objext conftstm.$ac_objext |
| 6639 | lt_save_LIBS="$LIBS" |
| 6640 | lt_save_CFLAGS="$CFLAGS" |
| 6641 | LIBS="conftstm.$ac_objext" |
| 6642 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 6643 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6644 | (eval $ac_link) 2>&5 |
| 6645 | ac_status=$? |
| 6646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6647 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 6648 | pipe_works=yes |
| 6649 | fi |
| 6650 | LIBS="$lt_save_LIBS" |
| 6651 | CFLAGS="$lt_save_CFLAGS" |
| 6652 | else |
| 6653 | echo "cannot find nm_test_func in $nlist" >&5 |
| 6654 | fi |
| 6655 | else |
| 6656 | echo "cannot find nm_test_var in $nlist" >&5 |
| 6657 | fi |
| 6658 | else |
| 6659 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 6660 | fi |
| 6661 | else |
| 6662 | echo "$progname: failed program was:" >&5 |
| 6663 | cat conftest.$ac_ext >&5 |
| 6664 | fi |
| 6665 | rm -f conftest* conftst* |
| 6666 | |
| 6667 | # Do not use the global_symbol_pipe unless it works. |
| 6668 | if test "$pipe_works" = yes; then |
| 6669 | break |
| 6670 | else |
| 6671 | lt_cv_sys_global_symbol_pipe= |
| 6672 | fi |
| 6673 | done |
| 6674 | |
| 6675 | fi |
| 6676 | |
| 6677 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 6678 | lt_cv_sys_global_symbol_to_cdecl= |
| 6679 | fi |
| 6680 | 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^] | 6681 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 6682 | echo "${ECHO_T}failed" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6683 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 6684 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 6685 | echo "${ECHO_T}ok" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6686 | fi |
| 6687 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 6688 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 6689 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6690 | if test "${lt_cv_objdir+set}" = set; then |
| 6691 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6692 | else |
| 6693 | rm -f .libs 2>/dev/null |
| 6694 | mkdir .libs 2>/dev/null |
| 6695 | if test -d .libs; then |
| 6696 | lt_cv_objdir=.libs |
| 6697 | else |
| 6698 | # MS-DOS does not allow filenames that begin with a dot. |
| 6699 | lt_cv_objdir=_libs |
| 6700 | fi |
| 6701 | rmdir .libs 2>/dev/null |
| 6702 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 6703 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
| 6704 | echo "${ECHO_T}$lt_cv_objdir" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6705 | objdir=$lt_cv_objdir |
| 6706 | |
| 6707 | |
| 6708 | |
| 6709 | |
| 6710 | |
| 6711 | case $host_os in |
| 6712 | aix3*) |
| 6713 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 6714 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 6715 | # vanish in a puff of smoke. |
| 6716 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 6717 | COLLECT_NAMES= |
| 6718 | export COLLECT_NAMES |
| 6719 | fi |
| 6720 | ;; |
| 6721 | esac |
| 6722 | |
| 6723 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 6724 | # metacharacters that are still active within double-quoted strings. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 6725 | Xsed='sed -e 1s/^X//' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6726 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 6727 | |
| 6728 | # Same as above, but do not quote variable references. |
| 6729 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 6730 | |
| 6731 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 6732 | # double_quote_subst'ed string. |
| 6733 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 6734 | |
| 6735 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 6736 | no_glob_subst='s/\*/\\\*/g' |
| 6737 | |
| 6738 | # Constants: |
| 6739 | rm="rm -f" |
| 6740 | |
| 6741 | # Global variables: |
| 6742 | default_ofile=libtool |
| 6743 | can_build_shared=yes |
| 6744 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 6745 | # All known linkers require a `.a' archive for static linking (except MSVC, |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6746 | # which needs '.lib'). |
| 6747 | libext=a |
| 6748 | ltmain="$ac_aux_dir/ltmain.sh" |
| 6749 | ofile="$default_ofile" |
| 6750 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 6751 | |
| 6752 | if test -n "$ac_tool_prefix"; then |
| 6753 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 6754 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 6755 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6756 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6757 | if test "${ac_cv_prog_AR+set}" = set; then |
| 6758 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6759 | else |
| 6760 | if test -n "$AR"; then |
| 6761 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 6762 | else |
| 6763 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6764 | for as_dir in $PATH |
| 6765 | do |
| 6766 | IFS=$as_save_IFS |
| 6767 | test -z "$as_dir" && as_dir=. |
| 6768 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 6769 | 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] | 6770 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 6771 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6772 | break 2 |
| 6773 | fi |
| 6774 | done |
| 6775 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 6776 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6777 | |
| 6778 | fi |
| 6779 | fi |
| 6780 | AR=$ac_cv_prog_AR |
| 6781 | if test -n "$AR"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 6782 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 6783 | echo "${ECHO_T}$AR" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6784 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 6785 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6786 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6787 | fi |
| 6788 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 6789 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6790 | fi |
| 6791 | if test -z "$ac_cv_prog_AR"; then |
| 6792 | ac_ct_AR=$AR |
| 6793 | # Extract the first word of "ar", so it can be a program name with args. |
| 6794 | set dummy ar; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 6795 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6796 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6797 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 6798 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6799 | else |
| 6800 | if test -n "$ac_ct_AR"; then |
| 6801 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 6802 | else |
| 6803 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6804 | for as_dir in $PATH |
| 6805 | do |
| 6806 | IFS=$as_save_IFS |
| 6807 | test -z "$as_dir" && as_dir=. |
| 6808 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 6809 | 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] | 6810 | ac_cv_prog_ac_ct_AR="ar" |
| 6811 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6812 | break 2 |
| 6813 | fi |
| 6814 | done |
| 6815 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 6816 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6817 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6818 | fi |
| 6819 | fi |
| 6820 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 6821 | if test -n "$ac_ct_AR"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 6822 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 6823 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6824 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 6825 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6826 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6827 | fi |
| 6828 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 6829 | if test "x$ac_ct_AR" = x; then |
| 6830 | AR="false" |
| 6831 | else |
| 6832 | case $cross_compiling:$ac_tool_warned in |
| 6833 | yes:) |
| 6834 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6835 | whose name does not start with the host triplet. If you think this |
| 6836 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6837 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6838 | whose name does not start with the host triplet. If you think this |
| 6839 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6840 | ac_tool_warned=yes ;; |
| 6841 | esac |
| 6842 | AR=$ac_ct_AR |
| 6843 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6844 | else |
| 6845 | AR="$ac_cv_prog_AR" |
| 6846 | fi |
| 6847 | |
| 6848 | if test -n "$ac_tool_prefix"; then |
| 6849 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6850 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 6851 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6852 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6853 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 6854 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6855 | else |
| 6856 | if test -n "$RANLIB"; then |
| 6857 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6858 | else |
| 6859 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6860 | for as_dir in $PATH |
| 6861 | do |
| 6862 | IFS=$as_save_IFS |
| 6863 | test -z "$as_dir" && as_dir=. |
| 6864 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 6865 | 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] | 6866 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 6867 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6868 | break 2 |
| 6869 | fi |
| 6870 | done |
| 6871 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 6872 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6873 | |
| 6874 | fi |
| 6875 | fi |
| 6876 | RANLIB=$ac_cv_prog_RANLIB |
| 6877 | if test -n "$RANLIB"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 6878 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 6879 | echo "${ECHO_T}$RANLIB" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6880 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 6881 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6882 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6883 | fi |
| 6884 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 6885 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6886 | fi |
| 6887 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6888 | ac_ct_RANLIB=$RANLIB |
| 6889 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6890 | set dummy ranlib; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 6891 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6892 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6893 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 6894 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6895 | else |
| 6896 | if test -n "$ac_ct_RANLIB"; then |
| 6897 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6898 | else |
| 6899 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6900 | for as_dir in $PATH |
| 6901 | do |
| 6902 | IFS=$as_save_IFS |
| 6903 | test -z "$as_dir" && as_dir=. |
| 6904 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 6905 | 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] | 6906 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 6907 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6908 | break 2 |
| 6909 | fi |
| 6910 | done |
| 6911 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 6912 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6913 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6914 | fi |
| 6915 | fi |
| 6916 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6917 | if test -n "$ac_ct_RANLIB"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 6918 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 6919 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6920 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 6921 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6922 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6923 | fi |
| 6924 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 6925 | if test "x$ac_ct_RANLIB" = x; then |
| 6926 | RANLIB=":" |
| 6927 | else |
| 6928 | case $cross_compiling:$ac_tool_warned in |
| 6929 | yes:) |
| 6930 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6931 | whose name does not start with the host triplet. If you think this |
| 6932 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6933 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6934 | whose name does not start with the host triplet. If you think this |
| 6935 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6936 | ac_tool_warned=yes ;; |
| 6937 | esac |
| 6938 | RANLIB=$ac_ct_RANLIB |
| 6939 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6940 | else |
| 6941 | RANLIB="$ac_cv_prog_RANLIB" |
| 6942 | fi |
| 6943 | |
| 6944 | if test -n "$ac_tool_prefix"; then |
| 6945 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 6946 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 6947 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6948 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6949 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 6950 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6951 | else |
| 6952 | if test -n "$STRIP"; then |
| 6953 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 6954 | else |
| 6955 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6956 | for as_dir in $PATH |
| 6957 | do |
| 6958 | IFS=$as_save_IFS |
| 6959 | test -z "$as_dir" && as_dir=. |
| 6960 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 6961 | 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] | 6962 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 6963 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6964 | break 2 |
| 6965 | fi |
| 6966 | done |
| 6967 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 6968 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6969 | |
| 6970 | fi |
| 6971 | fi |
| 6972 | STRIP=$ac_cv_prog_STRIP |
| 6973 | if test -n "$STRIP"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 6974 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 6975 | echo "${ECHO_T}$STRIP" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6976 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 6977 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6978 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6979 | fi |
| 6980 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 6981 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6982 | fi |
| 6983 | if test -z "$ac_cv_prog_STRIP"; then |
| 6984 | ac_ct_STRIP=$STRIP |
| 6985 | # Extract the first word of "strip", so it can be a program name with args. |
| 6986 | set dummy strip; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 6987 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6988 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6989 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 6990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6991 | else |
| 6992 | if test -n "$ac_ct_STRIP"; then |
| 6993 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 6994 | else |
| 6995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6996 | for as_dir in $PATH |
| 6997 | do |
| 6998 | IFS=$as_save_IFS |
| 6999 | test -z "$as_dir" && as_dir=. |
| 7000 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7001 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7002 | ac_cv_prog_ac_ct_STRIP="strip" |
| 7003 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7004 | break 2 |
| 7005 | fi |
| 7006 | done |
| 7007 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7008 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7009 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7010 | fi |
| 7011 | fi |
| 7012 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 7013 | if test -n "$ac_ct_STRIP"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7014 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 7015 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7016 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7017 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7018 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7019 | fi |
| 7020 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7021 | if test "x$ac_ct_STRIP" = x; then |
| 7022 | STRIP=":" |
| 7023 | else |
| 7024 | case $cross_compiling:$ac_tool_warned in |
| 7025 | yes:) |
| 7026 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 7027 | whose name does not start with the host triplet. If you think this |
| 7028 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 7029 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 7030 | whose name does not start with the host triplet. If you think this |
| 7031 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 7032 | ac_tool_warned=yes ;; |
| 7033 | esac |
| 7034 | STRIP=$ac_ct_STRIP |
| 7035 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7036 | else |
| 7037 | STRIP="$ac_cv_prog_STRIP" |
| 7038 | fi |
| 7039 | |
| 7040 | |
| 7041 | old_CC="$CC" |
| 7042 | old_CFLAGS="$CFLAGS" |
| 7043 | |
| 7044 | # Set sane defaults for various variables |
| 7045 | test -z "$AR" && AR=ar |
| 7046 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 7047 | test -z "$AS" && AS=as |
| 7048 | test -z "$CC" && CC=cc |
| 7049 | test -z "$LTCC" && LTCC=$CC |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7050 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7051 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 7052 | test -z "$LD" && LD=ld |
| 7053 | test -z "$LN_S" && LN_S="ln -s" |
| 7054 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 7055 | test -z "$NM" && NM=nm |
| 7056 | test -z "$SED" && SED=sed |
| 7057 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 7058 | test -z "$RANLIB" && RANLIB=: |
| 7059 | test -z "$STRIP" && STRIP=: |
| 7060 | test -z "$ac_objext" && ac_objext=o |
| 7061 | |
| 7062 | # Determine commands to create old-style static archives. |
| 7063 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 7064 | old_postinstall_cmds='chmod 644 $oldlib' |
| 7065 | old_postuninstall_cmds= |
| 7066 | |
| 7067 | if test -n "$RANLIB"; then |
| 7068 | case $host_os in |
| 7069 | openbsd*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7070 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7071 | ;; |
| 7072 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7073 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7074 | ;; |
| 7075 | esac |
| 7076 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 7077 | fi |
| 7078 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7079 | for cc_temp in $compiler""; do |
| 7080 | case $cc_temp in |
| 7081 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 7082 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 7083 | \-*) ;; |
| 7084 | *) break;; |
| 7085 | esac |
| 7086 | done |
| 7087 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 7088 | |
| 7089 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7090 | # Only perform the check for file, if the check method requires it |
| 7091 | case $deplibs_check_method in |
| 7092 | file_magic*) |
| 7093 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7094 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 7095 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7096 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 7097 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7098 | else |
| 7099 | case $MAGIC_CMD in |
| 7100 | [\\/*] | ?:[\\/]*) |
| 7101 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 7102 | ;; |
| 7103 | *) |
| 7104 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 7105 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 7106 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 7107 | for ac_dir in $ac_dummy; do |
| 7108 | IFS="$lt_save_ifs" |
| 7109 | test -z "$ac_dir" && ac_dir=. |
| 7110 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 7111 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 7112 | if test -n "$file_magic_test_file"; then |
| 7113 | case $deplibs_check_method in |
| 7114 | "file_magic "*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7115 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7116 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7117 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 7118 | $EGREP "$file_magic_regex" > /dev/null; then |
| 7119 | : |
| 7120 | else |
| 7121 | cat <<EOF 1>&2 |
| 7122 | |
| 7123 | *** Warning: the command libtool uses to detect shared libraries, |
| 7124 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 7125 | *** The result is that libtool may fail to recognize shared libraries |
| 7126 | *** as such. This will affect the creation of libtool libraries that |
| 7127 | *** depend on shared libraries, but programs linked with such libtool |
| 7128 | *** libraries will work regardless of this problem. Nevertheless, you |
| 7129 | *** may want to report the problem to your system manager and/or to |
| 7130 | *** bug-libtool@gnu.org |
| 7131 | |
| 7132 | EOF |
| 7133 | fi ;; |
| 7134 | esac |
| 7135 | fi |
| 7136 | break |
| 7137 | fi |
| 7138 | done |
| 7139 | IFS="$lt_save_ifs" |
| 7140 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 7141 | ;; |
| 7142 | esac |
| 7143 | fi |
| 7144 | |
| 7145 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7146 | if test -n "$MAGIC_CMD"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7147 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 7148 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7149 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7150 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7151 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7152 | fi |
| 7153 | |
| 7154 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 7155 | if test -n "$ac_tool_prefix"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7156 | { echo "$as_me:$LINENO: checking for file" >&5 |
| 7157 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7158 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 7159 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7160 | else |
| 7161 | case $MAGIC_CMD in |
| 7162 | [\\/*] | ?:[\\/]*) |
| 7163 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 7164 | ;; |
| 7165 | *) |
| 7166 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 7167 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 7168 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 7169 | for ac_dir in $ac_dummy; do |
| 7170 | IFS="$lt_save_ifs" |
| 7171 | test -z "$ac_dir" && ac_dir=. |
| 7172 | if test -f $ac_dir/file; then |
| 7173 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 7174 | if test -n "$file_magic_test_file"; then |
| 7175 | case $deplibs_check_method in |
| 7176 | "file_magic "*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7177 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7178 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7179 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 7180 | $EGREP "$file_magic_regex" > /dev/null; then |
| 7181 | : |
| 7182 | else |
| 7183 | cat <<EOF 1>&2 |
| 7184 | |
| 7185 | *** Warning: the command libtool uses to detect shared libraries, |
| 7186 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 7187 | *** The result is that libtool may fail to recognize shared libraries |
| 7188 | *** as such. This will affect the creation of libtool libraries that |
| 7189 | *** depend on shared libraries, but programs linked with such libtool |
| 7190 | *** libraries will work regardless of this problem. Nevertheless, you |
| 7191 | *** may want to report the problem to your system manager and/or to |
| 7192 | *** bug-libtool@gnu.org |
| 7193 | |
| 7194 | EOF |
| 7195 | fi ;; |
| 7196 | esac |
| 7197 | fi |
| 7198 | break |
| 7199 | fi |
| 7200 | done |
| 7201 | IFS="$lt_save_ifs" |
| 7202 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 7203 | ;; |
| 7204 | esac |
| 7205 | fi |
| 7206 | |
| 7207 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7208 | if test -n "$MAGIC_CMD"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7209 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 7210 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7211 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7212 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7213 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7214 | fi |
| 7215 | |
| 7216 | else |
| 7217 | MAGIC_CMD=: |
| 7218 | fi |
| 7219 | fi |
| 7220 | |
| 7221 | fi |
| 7222 | ;; |
| 7223 | esac |
| 7224 | |
| 7225 | enable_dlopen=no |
| 7226 | enable_win32_dll=no |
| 7227 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7228 | # Check whether --enable-libtool-lock was given. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7229 | if test "${enable_libtool_lock+set}" = set; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7230 | enableval=$enable_libtool_lock; |
| 7231 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7232 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7233 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 7234 | |
| 7235 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7236 | # Check whether --with-pic was given. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7237 | if test "${with_pic+set}" = set; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7238 | withval=$with_pic; pic_mode="$withval" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7239 | else |
| 7240 | pic_mode=default |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7241 | fi |
| 7242 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7243 | test -z "$pic_mode" && pic_mode=default |
| 7244 | |
| 7245 | # Use C for the default configuration in the libtool script |
| 7246 | tagname= |
| 7247 | lt_save_CC="$CC" |
| 7248 | ac_ext=c |
| 7249 | ac_cpp='$CPP $CPPFLAGS' |
| 7250 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7251 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7252 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7253 | |
| 7254 | |
| 7255 | # Source file extension for C test sources. |
| 7256 | ac_ext=c |
| 7257 | |
| 7258 | # Object file extension for compiled C test sources. |
| 7259 | objext=o |
| 7260 | objext=$objext |
| 7261 | |
| 7262 | # Code to be used in simple compile tests |
| 7263 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 7264 | |
| 7265 | # Code to be used in simple link tests |
| 7266 | lt_simple_link_test_code='int main(){return(0);}\n' |
| 7267 | |
| 7268 | |
| 7269 | # If no C compiler was specified, use CC. |
| 7270 | LTCC=${LTCC-"$CC"} |
| 7271 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7272 | # If no C compiler flags were specified, use CFLAGS. |
| 7273 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 7274 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7275 | # Allow CC to be a program name with arguments. |
| 7276 | compiler=$CC |
| 7277 | |
| 7278 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7279 | # save warnings/boilerplate of simple test code |
| 7280 | ac_outfile=conftest.$ac_objext |
| 7281 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 7282 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 7283 | _lt_compiler_boilerplate=`cat conftest.err` |
| 7284 | $rm conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7285 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7286 | ac_outfile=conftest.$ac_objext |
| 7287 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 7288 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 7289 | _lt_linker_boilerplate=`cat conftest.err` |
| 7290 | $rm conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7291 | |
| 7292 | |
| 7293 | |
| 7294 | lt_prog_compiler_no_builtin_flag= |
| 7295 | |
| 7296 | if test "$GCC" = yes; then |
| 7297 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 7298 | |
| 7299 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7300 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 7301 | 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] | 7302 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 7303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7304 | else |
| 7305 | lt_cv_prog_compiler_rtti_exceptions=no |
| 7306 | ac_outfile=conftest.$ac_objext |
| 7307 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 7308 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 7309 | # Insert the option either (1) after the last *FLAGS variable, or |
| 7310 | # (2) before a word containing "conftest.", or (3) at the end. |
| 7311 | # Note that $ac_compile itself does not contain backslashes and begins |
| 7312 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 7313 | # The option is referenced via a variable to avoid confusing sed. |
| 7314 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7315 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7316 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 7317 | -e 's:$: $lt_compiler_flag:'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7318 | (eval echo "\"\$as_me:7318: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7319 | (eval "$lt_compile" 2>conftest.err) |
| 7320 | ac_status=$? |
| 7321 | cat conftest.err >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7322 | echo "$as_me:7322: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7323 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 7324 | # The compiler can only warn and ignore the option if not recognized |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7325 | # So say no if there are warnings other than the usual output. |
| 7326 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 7327 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 7328 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7329 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 7330 | fi |
| 7331 | fi |
| 7332 | $rm conftest* |
| 7333 | |
| 7334 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7335 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 7336 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7337 | |
| 7338 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 7339 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 7340 | else |
| 7341 | : |
| 7342 | fi |
| 7343 | |
| 7344 | fi |
| 7345 | |
| 7346 | lt_prog_compiler_wl= |
| 7347 | lt_prog_compiler_pic= |
| 7348 | lt_prog_compiler_static= |
| 7349 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7350 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 7351 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7352 | |
| 7353 | if test "$GCC" = yes; then |
| 7354 | lt_prog_compiler_wl='-Wl,' |
| 7355 | lt_prog_compiler_static='-static' |
| 7356 | |
| 7357 | case $host_os in |
| 7358 | aix*) |
| 7359 | # All AIX code is PIC. |
| 7360 | if test "$host_cpu" = ia64; then |
| 7361 | # AIX 5 now supports IA64 processor |
| 7362 | lt_prog_compiler_static='-Bstatic' |
| 7363 | fi |
| 7364 | ;; |
| 7365 | |
| 7366 | amigaos*) |
| 7367 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 7368 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 7369 | # like `-m68040'. |
| 7370 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 7371 | ;; |
| 7372 | |
| 7373 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 7374 | # PIC is the default for these OSes. |
| 7375 | ;; |
| 7376 | |
| 7377 | mingw* | pw32* | os2*) |
| 7378 | # This hack is so that the source file can tell whether it is being |
| 7379 | # built for inclusion in a dll (and should export symbols for example). |
| 7380 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 7381 | ;; |
| 7382 | |
| 7383 | darwin* | rhapsody*) |
| 7384 | # PIC is the default on this platform |
| 7385 | # Common symbols not allowed in MH_DYLIB files |
| 7386 | lt_prog_compiler_pic='-fno-common' |
| 7387 | ;; |
| 7388 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7389 | interix3*) |
| 7390 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 7391 | # Instead, we relocate shared libraries at runtime. |
| 7392 | ;; |
| 7393 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7394 | msdosdjgpp*) |
| 7395 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 7396 | # on systems that don't support them. |
| 7397 | lt_prog_compiler_can_build_shared=no |
| 7398 | enable_shared=no |
| 7399 | ;; |
| 7400 | |
| 7401 | sysv4*MP*) |
| 7402 | if test -d /usr/nec; then |
| 7403 | lt_prog_compiler_pic=-Kconform_pic |
| 7404 | fi |
| 7405 | ;; |
| 7406 | |
| 7407 | hpux*) |
| 7408 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 7409 | # not for PA HP-UX. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7410 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7411 | hppa*64*|ia64*) |
| 7412 | # +Z the default |
| 7413 | ;; |
| 7414 | *) |
| 7415 | lt_prog_compiler_pic='-fPIC' |
| 7416 | ;; |
| 7417 | esac |
| 7418 | ;; |
| 7419 | |
| 7420 | *) |
| 7421 | lt_prog_compiler_pic='-fPIC' |
| 7422 | ;; |
| 7423 | esac |
| 7424 | else |
| 7425 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 7426 | case $host_os in |
| 7427 | aix*) |
| 7428 | lt_prog_compiler_wl='-Wl,' |
| 7429 | if test "$host_cpu" = ia64; then |
| 7430 | # AIX 5 now supports IA64 processor |
| 7431 | lt_prog_compiler_static='-Bstatic' |
| 7432 | else |
| 7433 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 7434 | fi |
| 7435 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7436 | darwin*) |
| 7437 | # PIC is the default on this platform |
| 7438 | # Common symbols not allowed in MH_DYLIB files |
| 7439 | case $cc_basename in |
| 7440 | xlc*) |
| 7441 | lt_prog_compiler_pic='-qnocommon' |
| 7442 | lt_prog_compiler_wl='-Wl,' |
| 7443 | ;; |
| 7444 | esac |
| 7445 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7446 | |
| 7447 | mingw* | pw32* | os2*) |
| 7448 | # This hack is so that the source file can tell whether it is being |
| 7449 | # built for inclusion in a dll (and should export symbols for example). |
| 7450 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 7451 | ;; |
| 7452 | |
| 7453 | hpux9* | hpux10* | hpux11*) |
| 7454 | lt_prog_compiler_wl='-Wl,' |
| 7455 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 7456 | # not for PA HP-UX. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7457 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7458 | hppa*64*|ia64*) |
| 7459 | # +Z the default |
| 7460 | ;; |
| 7461 | *) |
| 7462 | lt_prog_compiler_pic='+Z' |
| 7463 | ;; |
| 7464 | esac |
| 7465 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 7466 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
| 7467 | ;; |
| 7468 | |
| 7469 | irix5* | irix6* | nonstopux*) |
| 7470 | lt_prog_compiler_wl='-Wl,' |
| 7471 | # PIC (with -KPIC) is the default. |
| 7472 | lt_prog_compiler_static='-non_shared' |
| 7473 | ;; |
| 7474 | |
| 7475 | newsos6) |
| 7476 | lt_prog_compiler_pic='-KPIC' |
| 7477 | lt_prog_compiler_static='-Bstatic' |
| 7478 | ;; |
| 7479 | |
| 7480 | linux*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7481 | case $cc_basename in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7482 | icc* | ecc*) |
| 7483 | lt_prog_compiler_wl='-Wl,' |
| 7484 | lt_prog_compiler_pic='-KPIC' |
| 7485 | lt_prog_compiler_static='-static' |
| 7486 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7487 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 7488 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 7489 | # which looks to be a dead project) |
| 7490 | lt_prog_compiler_wl='-Wl,' |
| 7491 | lt_prog_compiler_pic='-fpic' |
| 7492 | lt_prog_compiler_static='-Bstatic' |
| 7493 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7494 | ccc*) |
| 7495 | lt_prog_compiler_wl='-Wl,' |
| 7496 | # All Alpha code is PIC. |
| 7497 | lt_prog_compiler_static='-non_shared' |
| 7498 | ;; |
| 7499 | esac |
| 7500 | ;; |
| 7501 | |
| 7502 | osf3* | osf4* | osf5*) |
| 7503 | lt_prog_compiler_wl='-Wl,' |
| 7504 | # All OSF/1 code is PIC. |
| 7505 | lt_prog_compiler_static='-non_shared' |
| 7506 | ;; |
| 7507 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7508 | solaris*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7509 | lt_prog_compiler_pic='-KPIC' |
| 7510 | lt_prog_compiler_static='-Bstatic' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7511 | case $cc_basename in |
| 7512 | f77* | f90* | f95*) |
| 7513 | lt_prog_compiler_wl='-Qoption ld ';; |
| 7514 | *) |
| 7515 | lt_prog_compiler_wl='-Wl,';; |
| 7516 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7517 | ;; |
| 7518 | |
| 7519 | sunos4*) |
| 7520 | lt_prog_compiler_wl='-Qoption ld ' |
| 7521 | lt_prog_compiler_pic='-PIC' |
| 7522 | lt_prog_compiler_static='-Bstatic' |
| 7523 | ;; |
| 7524 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7525 | sysv4 | sysv4.2uw2* | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7526 | lt_prog_compiler_wl='-Wl,' |
| 7527 | lt_prog_compiler_pic='-KPIC' |
| 7528 | lt_prog_compiler_static='-Bstatic' |
| 7529 | ;; |
| 7530 | |
| 7531 | sysv4*MP*) |
| 7532 | if test -d /usr/nec ;then |
| 7533 | lt_prog_compiler_pic='-Kconform_pic' |
| 7534 | lt_prog_compiler_static='-Bstatic' |
| 7535 | fi |
| 7536 | ;; |
| 7537 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7538 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 7539 | lt_prog_compiler_wl='-Wl,' |
| 7540 | lt_prog_compiler_pic='-KPIC' |
| 7541 | lt_prog_compiler_static='-Bstatic' |
| 7542 | ;; |
| 7543 | |
| 7544 | unicos*) |
| 7545 | lt_prog_compiler_wl='-Wl,' |
| 7546 | lt_prog_compiler_can_build_shared=no |
| 7547 | ;; |
| 7548 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7549 | uts4*) |
| 7550 | lt_prog_compiler_pic='-pic' |
| 7551 | lt_prog_compiler_static='-Bstatic' |
| 7552 | ;; |
| 7553 | |
| 7554 | *) |
| 7555 | lt_prog_compiler_can_build_shared=no |
| 7556 | ;; |
| 7557 | esac |
| 7558 | fi |
| 7559 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7560 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
| 7561 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7562 | |
| 7563 | # |
| 7564 | # Check to make sure the PIC flag actually works. |
| 7565 | # |
| 7566 | if test -n "$lt_prog_compiler_pic"; then |
| 7567 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7568 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 7569 | 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] | 7570 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
| 7571 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7572 | else |
| 7573 | lt_prog_compiler_pic_works=no |
| 7574 | ac_outfile=conftest.$ac_objext |
| 7575 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 7576 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 7577 | # Insert the option either (1) after the last *FLAGS variable, or |
| 7578 | # (2) before a word containing "conftest.", or (3) at the end. |
| 7579 | # Note that $ac_compile itself does not contain backslashes and begins |
| 7580 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 7581 | # The option is referenced via a variable to avoid confusing sed. |
| 7582 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7583 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7584 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 7585 | -e 's:$: $lt_compiler_flag:'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7586 | (eval echo "\"\$as_me:7586: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7587 | (eval "$lt_compile" 2>conftest.err) |
| 7588 | ac_status=$? |
| 7589 | cat conftest.err >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7590 | echo "$as_me:7590: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7591 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 7592 | # The compiler can only warn and ignore the option if not recognized |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7593 | # So say no if there are warnings other than the usual output. |
| 7594 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 7595 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 7596 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7597 | lt_prog_compiler_pic_works=yes |
| 7598 | fi |
| 7599 | fi |
| 7600 | $rm conftest* |
| 7601 | |
| 7602 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7603 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
| 7604 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7605 | |
| 7606 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
| 7607 | case $lt_prog_compiler_pic in |
| 7608 | "" | " "*) ;; |
| 7609 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 7610 | esac |
| 7611 | else |
| 7612 | lt_prog_compiler_pic= |
| 7613 | lt_prog_compiler_can_build_shared=no |
| 7614 | fi |
| 7615 | |
| 7616 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7617 | case $host_os in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7618 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 7619 | *djgpp*) |
| 7620 | lt_prog_compiler_pic= |
| 7621 | ;; |
| 7622 | *) |
| 7623 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 7624 | ;; |
| 7625 | esac |
| 7626 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7627 | # |
| 7628 | # Check to make sure the static flag actually works. |
| 7629 | # |
| 7630 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 7631 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 7632 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 7633 | if test "${lt_prog_compiler_static_works+set}" = set; then |
| 7634 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7635 | else |
| 7636 | lt_prog_compiler_static_works=no |
| 7637 | save_LDFLAGS="$LDFLAGS" |
| 7638 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 7639 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 7640 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 7641 | # The linker can only warn and ignore the option if not recognized |
| 7642 | # So say no if there are warnings |
| 7643 | if test -s conftest.err; then |
| 7644 | # Append any errors to the config.log. |
| 7645 | cat conftest.err 1>&5 |
| 7646 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 7647 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 7648 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 7649 | lt_prog_compiler_static_works=yes |
| 7650 | fi |
| 7651 | else |
| 7652 | lt_prog_compiler_static_works=yes |
| 7653 | fi |
| 7654 | fi |
| 7655 | $rm conftest* |
| 7656 | LDFLAGS="$save_LDFLAGS" |
| 7657 | |
| 7658 | fi |
| 7659 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
| 7660 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } |
| 7661 | |
| 7662 | if test x"$lt_prog_compiler_static_works" = xyes; then |
| 7663 | : |
| 7664 | else |
| 7665 | lt_prog_compiler_static= |
| 7666 | fi |
| 7667 | |
| 7668 | |
| 7669 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 7670 | 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] | 7671 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
| 7672 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7673 | else |
| 7674 | lt_cv_prog_compiler_c_o=no |
| 7675 | $rm -r conftest 2>/dev/null |
| 7676 | mkdir conftest |
| 7677 | cd conftest |
| 7678 | mkdir out |
| 7679 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 7680 | |
| 7681 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 7682 | # Insert the option either (1) after the last *FLAGS variable, or |
| 7683 | # (2) before a word containing "conftest.", or (3) at the end. |
| 7684 | # Note that $ac_compile itself does not contain backslashes and begins |
| 7685 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 7686 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7687 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7688 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 7689 | -e 's:$: $lt_compiler_flag:'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7690 | (eval echo "\"\$as_me:7690: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7691 | (eval "$lt_compile" 2>out/conftest.err) |
| 7692 | ac_status=$? |
| 7693 | cat out/conftest.err >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7694 | echo "$as_me:7694: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7695 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 7696 | then |
| 7697 | # The compiler can only warn and ignore the option if not recognized |
| 7698 | # So say no if there are warnings |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7699 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 7700 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 7701 | 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] | 7702 | lt_cv_prog_compiler_c_o=yes |
| 7703 | fi |
| 7704 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7705 | chmod u+w . 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7706 | $rm conftest* |
| 7707 | # SGI C++ compiler will create directory out/ii_files/ for |
| 7708 | # template instantiation |
| 7709 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 7710 | $rm out/* && rmdir out |
| 7711 | cd .. |
| 7712 | rmdir conftest |
| 7713 | $rm conftest* |
| 7714 | |
| 7715 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7716 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 7717 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7718 | |
| 7719 | |
| 7720 | hard_links="nottested" |
| 7721 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
| 7722 | # do not overwrite the value of need_locks provided by the user |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7723 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 7724 | 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] | 7725 | hard_links=yes |
| 7726 | $rm conftest* |
| 7727 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 7728 | touch conftest.a |
| 7729 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 7730 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7731 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 7732 | echo "${ECHO_T}$hard_links" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7733 | if test "$hard_links" = no; then |
| 7734 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 7735 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 7736 | need_locks=warn |
| 7737 | fi |
| 7738 | else |
| 7739 | need_locks=no |
| 7740 | fi |
| 7741 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7742 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 7743 | 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] | 7744 | |
| 7745 | runpath_var= |
| 7746 | allow_undefined_flag= |
| 7747 | enable_shared_with_static_runtimes=no |
| 7748 | archive_cmds= |
| 7749 | archive_expsym_cmds= |
| 7750 | old_archive_From_new_cmds= |
| 7751 | old_archive_from_expsyms_cmds= |
| 7752 | export_dynamic_flag_spec= |
| 7753 | whole_archive_flag_spec= |
| 7754 | thread_safe_flag_spec= |
| 7755 | hardcode_libdir_flag_spec= |
| 7756 | hardcode_libdir_flag_spec_ld= |
| 7757 | hardcode_libdir_separator= |
| 7758 | hardcode_direct=no |
| 7759 | hardcode_minus_L=no |
| 7760 | hardcode_shlibpath_var=unsupported |
| 7761 | link_all_deplibs=unknown |
| 7762 | hardcode_automatic=no |
| 7763 | module_cmds= |
| 7764 | module_expsym_cmds= |
| 7765 | always_export_symbols=no |
| 7766 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 7767 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 7768 | # included in the symbol list |
| 7769 | include_expsyms= |
| 7770 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 7771 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 7772 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 7773 | # as well as any symbol that contains `d'. |
| 7774 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 7775 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 7776 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 7777 | # the symbol is explicitly referenced. Since portable code cannot |
| 7778 | # rely on this symbol name, it's probably fine to never include it in |
| 7779 | # preloaded symbol tables. |
| 7780 | extract_expsyms_cmds= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7781 | # Just being paranoid about ensuring that cc_basename is set. |
| 7782 | for cc_temp in $compiler""; do |
| 7783 | case $cc_temp in |
| 7784 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 7785 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 7786 | \-*) ;; |
| 7787 | *) break;; |
| 7788 | esac |
| 7789 | done |
| 7790 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7791 | |
| 7792 | case $host_os in |
| 7793 | cygwin* | mingw* | pw32*) |
| 7794 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 7795 | # When not using gcc, we currently assume that we are using |
| 7796 | # Microsoft Visual C++. |
| 7797 | if test "$GCC" != yes; then |
| 7798 | with_gnu_ld=no |
| 7799 | fi |
| 7800 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7801 | interix*) |
| 7802 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 7803 | with_gnu_ld=yes |
| 7804 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7805 | openbsd*) |
| 7806 | with_gnu_ld=no |
| 7807 | ;; |
| 7808 | esac |
| 7809 | |
| 7810 | ld_shlibs=yes |
| 7811 | if test "$with_gnu_ld" = yes; then |
| 7812 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 7813 | wlarc='${wl}' |
| 7814 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7815 | # Set some defaults for GNU ld with shared library support. These |
| 7816 | # are reset later if shared libraries are not supported. Putting them |
| 7817 | # here allows them to be overridden if necessary. |
| 7818 | runpath_var=LD_RUN_PATH |
| 7819 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 7820 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 7821 | # ancient GNU ld didn't support --whole-archive et. al. |
| 7822 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 7823 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 7824 | else |
| 7825 | whole_archive_flag_spec= |
| 7826 | fi |
| 7827 | supports_anon_versioning=no |
| 7828 | case `$LD -v 2>/dev/null` in |
| 7829 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 7830 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 7831 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 7832 | *\ 2.11.*) ;; # other 2.11 versions |
| 7833 | *) supports_anon_versioning=yes ;; |
| 7834 | esac |
| 7835 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7836 | # See if GNU ld supports shared libraries. |
| 7837 | case $host_os in |
| 7838 | aix3* | aix4* | aix5*) |
| 7839 | # On AIX/PPC, the GNU linker is very broken |
| 7840 | if test "$host_cpu" != ia64; then |
| 7841 | ld_shlibs=no |
| 7842 | cat <<EOF 1>&2 |
| 7843 | |
| 7844 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 7845 | *** to be unable to reliably create shared libraries on AIX. |
| 7846 | *** Therefore, libtool is disabling shared libraries support. If you |
| 7847 | *** really care for shared libraries, you may want to modify your PATH |
| 7848 | *** so that a non-GNU linker is found, and then restart. |
| 7849 | |
| 7850 | EOF |
| 7851 | fi |
| 7852 | ;; |
| 7853 | |
| 7854 | amigaos*) |
| 7855 | 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)' |
| 7856 | hardcode_libdir_flag_spec='-L$libdir' |
| 7857 | hardcode_minus_L=yes |
| 7858 | |
| 7859 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 7860 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 7861 | # to version 4, is to share data among multiple programs linked |
| 7862 | # with the same dynamic library. Since this doesn't match the |
| 7863 | # behavior of shared libraries on other platforms, we can't use |
| 7864 | # them. |
| 7865 | ld_shlibs=no |
| 7866 | ;; |
| 7867 | |
| 7868 | beos*) |
| 7869 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 7870 | allow_undefined_flag=unsupported |
| 7871 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 7872 | # support --undefined. This deserves some investigation. FIXME |
| 7873 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7874 | else |
| 7875 | ld_shlibs=no |
| 7876 | fi |
| 7877 | ;; |
| 7878 | |
| 7879 | cygwin* | mingw* | pw32*) |
| 7880 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 7881 | # as there is no search path for DLLs. |
| 7882 | hardcode_libdir_flag_spec='-L$libdir' |
| 7883 | allow_undefined_flag=unsupported |
| 7884 | always_export_symbols=no |
| 7885 | enable_shared_with_static_runtimes=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7886 | 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] | 7887 | |
| 7888 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7889 | 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] | 7890 | # If the export-symbols file already is a .def file (1st line |
| 7891 | # is EXPORTS), use it as is; otherwise, prepend... |
| 7892 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 7893 | cp $export_symbols $output_objdir/$soname.def; |
| 7894 | else |
| 7895 | echo EXPORTS > $output_objdir/$soname.def; |
| 7896 | cat $export_symbols >> $output_objdir/$soname.def; |
| 7897 | fi~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7898 | $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] | 7899 | else |
| 7900 | ld_shlibs=no |
| 7901 | fi |
| 7902 | ;; |
| 7903 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7904 | interix3*) |
| 7905 | hardcode_direct=no |
| 7906 | hardcode_shlibpath_var=no |
| 7907 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 7908 | export_dynamic_flag_spec='${wl}-E' |
| 7909 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 7910 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 7911 | # default) and relocated if they conflict, which is a slow very memory |
| 7912 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 7913 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 7914 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 7915 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 7916 | 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' |
| 7917 | ;; |
| 7918 | |
| 7919 | linux*) |
| 7920 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 7921 | tmp_addflag= |
| 7922 | case $cc_basename,$host_cpu in |
| 7923 | pgcc*) # Portland Group C compiler |
| 7924 | 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' |
| 7925 | tmp_addflag=' $pic_flag' |
| 7926 | ;; |
| 7927 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 7928 | 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' |
| 7929 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 7930 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 7931 | tmp_addflag=' -i_dynamic' ;; |
| 7932 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 7933 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 7934 | ifc* | ifort*) # Intel Fortran compiler |
| 7935 | tmp_addflag=' -nofor_main' ;; |
| 7936 | esac |
| 7937 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7938 | |
| 7939 | if test $supports_anon_versioning = yes; then |
| 7940 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 7941 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 7942 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 7943 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 7944 | fi |
| 7945 | else |
| 7946 | ld_shlibs=no |
| 7947 | fi |
| 7948 | ;; |
| 7949 | |
| 7950 | netbsd*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7951 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 7952 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 7953 | wlarc= |
| 7954 | else |
| 7955 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7956 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 7957 | fi |
| 7958 | ;; |
| 7959 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7960 | solaris*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7961 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 7962 | ld_shlibs=no |
| 7963 | cat <<EOF 1>&2 |
| 7964 | |
| 7965 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 7966 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 7967 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 7968 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 7969 | *** your PATH or compiler configuration so that the native linker is |
| 7970 | *** used, and then restart. |
| 7971 | |
| 7972 | EOF |
| 7973 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 7974 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7975 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 7976 | else |
| 7977 | ld_shlibs=no |
| 7978 | fi |
| 7979 | ;; |
| 7980 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 7981 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 7982 | case `$LD -v 2>&1` in |
| 7983 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 7984 | ld_shlibs=no |
| 7985 | cat <<_LT_EOF 1>&2 |
| 7986 | |
| 7987 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 7988 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 7989 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 7990 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 7991 | *** your PATH or compiler configuration so that the native linker is |
| 7992 | *** used, and then restart. |
| 7993 | |
| 7994 | _LT_EOF |
| 7995 | ;; |
| 7996 | *) |
| 7997 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 7998 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 7999 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 8000 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 8001 | else |
| 8002 | ld_shlibs=no |
| 8003 | fi |
| 8004 | ;; |
| 8005 | esac |
| 8006 | ;; |
| 8007 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8008 | sunos4*) |
| 8009 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 8010 | wlarc= |
| 8011 | hardcode_direct=yes |
| 8012 | hardcode_shlibpath_var=no |
| 8013 | ;; |
| 8014 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8015 | *) |
| 8016 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 8017 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8018 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 8019 | else |
| 8020 | ld_shlibs=no |
| 8021 | fi |
| 8022 | ;; |
| 8023 | esac |
| 8024 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8025 | if test "$ld_shlibs" = no; then |
| 8026 | runpath_var= |
| 8027 | hardcode_libdir_flag_spec= |
| 8028 | export_dynamic_flag_spec= |
| 8029 | whole_archive_flag_spec= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8030 | fi |
| 8031 | else |
| 8032 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 8033 | case $host_os in |
| 8034 | aix3*) |
| 8035 | allow_undefined_flag=unsupported |
| 8036 | always_export_symbols=yes |
| 8037 | 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' |
| 8038 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 8039 | # are no directories specified by -L. |
| 8040 | hardcode_minus_L=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8041 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8042 | # Neither direct hardcoding nor static linking is supported with a |
| 8043 | # broken collect2. |
| 8044 | hardcode_direct=unsupported |
| 8045 | fi |
| 8046 | ;; |
| 8047 | |
| 8048 | aix4* | aix5*) |
| 8049 | if test "$host_cpu" = ia64; then |
| 8050 | # On IA64, the linker does run time linking by default, so we don't |
| 8051 | # have to do anything special. |
| 8052 | aix_use_runtimelinking=no |
| 8053 | exp_sym_flag='-Bexport' |
| 8054 | no_entry_flag="" |
| 8055 | else |
| 8056 | # If we're using GNU nm, then we don't want the "-C" option. |
| 8057 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 8058 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 8059 | 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' |
| 8060 | else |
| 8061 | 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' |
| 8062 | fi |
| 8063 | aix_use_runtimelinking=no |
| 8064 | |
| 8065 | # Test if we are trying to use run time linking or normal |
| 8066 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 8067 | # need to do runtime linking. |
| 8068 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 8069 | for ld_flag in $LDFLAGS; do |
| 8070 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 8071 | aix_use_runtimelinking=yes |
| 8072 | break |
| 8073 | fi |
| 8074 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8075 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8076 | esac |
| 8077 | |
| 8078 | exp_sym_flag='-bexport' |
| 8079 | no_entry_flag='-bnoentry' |
| 8080 | fi |
| 8081 | |
| 8082 | # When large executables or shared objects are built, AIX ld can |
| 8083 | # have problems creating the table of contents. If linking a library |
| 8084 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 8085 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 8086 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 8087 | |
| 8088 | archive_cmds='' |
| 8089 | hardcode_direct=yes |
| 8090 | hardcode_libdir_separator=':' |
| 8091 | link_all_deplibs=yes |
| 8092 | |
| 8093 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8094 | case $host_os in aix4.[012]|aix4.[012].*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8095 | # We only want to do this on AIX 4.2 and lower, the check |
| 8096 | # below for broken collect2 doesn't work under 4.3+ |
| 8097 | collect2name=`${CC} -print-prog-name=collect2` |
| 8098 | if test -f "$collect2name" && \ |
| 8099 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 8100 | then |
| 8101 | # We have reworked collect2 |
| 8102 | hardcode_direct=yes |
| 8103 | else |
| 8104 | # We have old collect2 |
| 8105 | hardcode_direct=unsupported |
| 8106 | # It fails to find uninstalled libraries when the uninstalled |
| 8107 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 8108 | # to unsupported forces relinking |
| 8109 | hardcode_minus_L=yes |
| 8110 | hardcode_libdir_flag_spec='-L$libdir' |
| 8111 | hardcode_libdir_separator= |
| 8112 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8113 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8114 | esac |
| 8115 | shared_flag='-shared' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8116 | if test "$aix_use_runtimelinking" = yes; then |
| 8117 | shared_flag="$shared_flag "'${wl}-G' |
| 8118 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8119 | else |
| 8120 | # not using gcc |
| 8121 | if test "$host_cpu" = ia64; then |
| 8122 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 8123 | # chokes on -Wl,-G. The following line is correct: |
| 8124 | shared_flag='-G' |
| 8125 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8126 | if test "$aix_use_runtimelinking" = yes; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8127 | shared_flag='${wl}-G' |
| 8128 | else |
| 8129 | shared_flag='${wl}-bM:SRE' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8130 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8131 | fi |
| 8132 | fi |
| 8133 | |
| 8134 | # It seems that -bexpall does not export symbols beginning with |
| 8135 | # underscore (_), so it is better to generate a list of symbols to export. |
| 8136 | always_export_symbols=yes |
| 8137 | if test "$aix_use_runtimelinking" = yes; then |
| 8138 | # Warning - without using the other runtime loading flags (-brtl), |
| 8139 | # -berok will link without error, but may produce a broken library. |
| 8140 | allow_undefined_flag='-berok' |
| 8141 | # Determine the default libpath from the value encoded in an empty executable. |
| 8142 | cat >conftest.$ac_ext <<_ACEOF |
| 8143 | /* confdefs.h. */ |
| 8144 | _ACEOF |
| 8145 | cat confdefs.h >>conftest.$ac_ext |
| 8146 | cat >>conftest.$ac_ext <<_ACEOF |
| 8147 | /* end confdefs.h. */ |
| 8148 | |
| 8149 | int |
| 8150 | main () |
| 8151 | { |
| 8152 | |
| 8153 | ; |
| 8154 | return 0; |
| 8155 | } |
| 8156 | _ACEOF |
| 8157 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8158 | if { (ac_try="$ac_link" |
| 8159 | case "(($ac_try" in |
| 8160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8161 | *) ac_try_echo=$ac_try;; |
| 8162 | esac |
| 8163 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8164 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8165 | ac_status=$? |
| 8166 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8167 | rm -f conftest.er1 |
| 8168 | cat conftest.err >&5 |
| 8169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8170 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8171 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8172 | { (case "(($ac_try" in |
| 8173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8174 | *) ac_try_echo=$ac_try;; |
| 8175 | esac |
| 8176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8177 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8178 | ac_status=$? |
| 8179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8180 | (exit $ac_status); }; } && |
| 8181 | { ac_try='test -s conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8182 | { (case "(($ac_try" in |
| 8183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8184 | *) ac_try_echo=$ac_try;; |
| 8185 | esac |
| 8186 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8187 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8188 | ac_status=$? |
| 8189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8190 | (exit $ac_status); }; }; then |
| 8191 | |
| 8192 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 8193 | }'` |
| 8194 | # Check for a 64-bit object if we didn't find anything. |
| 8195 | 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; } |
| 8196 | }'`; fi |
| 8197 | else |
| 8198 | echo "$as_me: failed program was:" >&5 |
| 8199 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8200 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8201 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8202 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8203 | |
| 8204 | rm -f core conftest.err conftest.$ac_objext \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8205 | conftest$ac_exeext conftest.$ac_ext |
| 8206 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 8207 | |
| 8208 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8209 | 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] | 8210 | else |
| 8211 | if test "$host_cpu" = ia64; then |
| 8212 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 8213 | allow_undefined_flag="-z nodefs" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8214 | 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] | 8215 | else |
| 8216 | # Determine the default libpath from the value encoded in an empty executable. |
| 8217 | cat >conftest.$ac_ext <<_ACEOF |
| 8218 | /* confdefs.h. */ |
| 8219 | _ACEOF |
| 8220 | cat confdefs.h >>conftest.$ac_ext |
| 8221 | cat >>conftest.$ac_ext <<_ACEOF |
| 8222 | /* end confdefs.h. */ |
| 8223 | |
| 8224 | int |
| 8225 | main () |
| 8226 | { |
| 8227 | |
| 8228 | ; |
| 8229 | return 0; |
| 8230 | } |
| 8231 | _ACEOF |
| 8232 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8233 | if { (ac_try="$ac_link" |
| 8234 | case "(($ac_try" in |
| 8235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8236 | *) ac_try_echo=$ac_try;; |
| 8237 | esac |
| 8238 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8239 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8240 | ac_status=$? |
| 8241 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8242 | rm -f conftest.er1 |
| 8243 | cat conftest.err >&5 |
| 8244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8245 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8246 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8247 | { (case "(($ac_try" in |
| 8248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8249 | *) ac_try_echo=$ac_try;; |
| 8250 | esac |
| 8251 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8252 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8253 | ac_status=$? |
| 8254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8255 | (exit $ac_status); }; } && |
| 8256 | { ac_try='test -s conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 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); }; }; then |
| 8266 | |
| 8267 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 8268 | }'` |
| 8269 | # Check for a 64-bit object if we didn't find anything. |
| 8270 | 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; } |
| 8271 | }'`; fi |
| 8272 | else |
| 8273 | echo "$as_me: failed program was:" >&5 |
| 8274 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8275 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8276 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8277 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8278 | |
| 8279 | rm -f core conftest.err conftest.$ac_objext \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8280 | conftest$ac_exeext conftest.$ac_ext |
| 8281 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 8282 | |
| 8283 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 8284 | # Warning - without using the other run time loading flags, |
| 8285 | # -berok will link without error, but may produce a broken library. |
| 8286 | no_undefined_flag=' ${wl}-bernotok' |
| 8287 | allow_undefined_flag=' ${wl}-berok' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8288 | # Exported symbols can be pulled into shared objects from archives |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8289 | whole_archive_flag_spec='$convenience' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8290 | archive_cmds_need_lc=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8291 | # This is similar to how AIX traditionally builds its shared libraries. |
| 8292 | 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] | 8293 | fi |
| 8294 | fi |
| 8295 | ;; |
| 8296 | |
| 8297 | amigaos*) |
| 8298 | 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)' |
| 8299 | hardcode_libdir_flag_spec='-L$libdir' |
| 8300 | hardcode_minus_L=yes |
| 8301 | # see comment about different semantics on the GNU ld section |
| 8302 | ld_shlibs=no |
| 8303 | ;; |
| 8304 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8305 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8306 | export_dynamic_flag_spec=-rdynamic |
| 8307 | ;; |
| 8308 | |
| 8309 | cygwin* | mingw* | pw32*) |
| 8310 | # When not using gcc, we currently assume that we are using |
| 8311 | # Microsoft Visual C++. |
| 8312 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 8313 | # no search path for DLLs. |
| 8314 | hardcode_libdir_flag_spec=' ' |
| 8315 | allow_undefined_flag=unsupported |
| 8316 | # Tell ltmain to make .lib files, not .a files. |
| 8317 | libext=lib |
| 8318 | # Tell ltmain to make .dll files, not .so files. |
| 8319 | shrext_cmds=".dll" |
| 8320 | # FIXME: Setting linknames here is a bad hack. |
| 8321 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 8322 | # The linker will automatically build a .lib file if we build a DLL. |
| 8323 | old_archive_From_new_cmds='true' |
| 8324 | # FIXME: Should let the user specify the lib program. |
| 8325 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 8326 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 8327 | enable_shared_with_static_runtimes=yes |
| 8328 | ;; |
| 8329 | |
| 8330 | darwin* | rhapsody*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8331 | case $host_os in |
| 8332 | rhapsody* | darwin1.[012]) |
| 8333 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
| 8334 | ;; |
| 8335 | *) # Darwin 1.3 on |
| 8336 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 8337 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 8338 | else |
| 8339 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 8340 | 10.[012]) |
| 8341 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 8342 | ;; |
| 8343 | 10.*) |
| 8344 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
| 8345 | ;; |
| 8346 | esac |
| 8347 | fi |
| 8348 | ;; |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 8349 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8350 | archive_cmds_need_lc=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8351 | hardcode_direct=no |
| 8352 | hardcode_automatic=yes |
| 8353 | hardcode_shlibpath_var=unsupported |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8354 | whole_archive_flag_spec='' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8355 | link_all_deplibs=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8356 | if test "$GCC" = yes ; then |
| 8357 | output_verbose_link_cmd='echo' |
| 8358 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 8359 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 8360 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 8361 | 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}' |
| 8362 | 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] | 8363 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8364 | case $cc_basename in |
| 8365 | xlc*) |
| 8366 | output_verbose_link_cmd='echo' |
| 8367 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 8368 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 8369 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 8370 | 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}' |
| 8371 | 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}' |
| 8372 | ;; |
| 8373 | *) |
| 8374 | ld_shlibs=no |
| 8375 | ;; |
| 8376 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8377 | fi |
| 8378 | ;; |
| 8379 | |
| 8380 | dgux*) |
| 8381 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8382 | hardcode_libdir_flag_spec='-L$libdir' |
| 8383 | hardcode_shlibpath_var=no |
| 8384 | ;; |
| 8385 | |
| 8386 | freebsd1*) |
| 8387 | ld_shlibs=no |
| 8388 | ;; |
| 8389 | |
| 8390 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 8391 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 8392 | # does not break anything, and helps significantly (at the cost of a little |
| 8393 | # extra space). |
| 8394 | freebsd2.2*) |
| 8395 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 8396 | hardcode_libdir_flag_spec='-R$libdir' |
| 8397 | hardcode_direct=yes |
| 8398 | hardcode_shlibpath_var=no |
| 8399 | ;; |
| 8400 | |
| 8401 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 8402 | freebsd2*) |
| 8403 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 8404 | hardcode_direct=yes |
| 8405 | hardcode_minus_L=yes |
| 8406 | hardcode_shlibpath_var=no |
| 8407 | ;; |
| 8408 | |
| 8409 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8410 | freebsd* | kfreebsd*-gnu | dragonfly*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8411 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 8412 | hardcode_libdir_flag_spec='-R$libdir' |
| 8413 | hardcode_direct=yes |
| 8414 | hardcode_shlibpath_var=no |
| 8415 | ;; |
| 8416 | |
| 8417 | hpux9*) |
| 8418 | if test "$GCC" = yes; then |
| 8419 | 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' |
| 8420 | else |
| 8421 | 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' |
| 8422 | fi |
| 8423 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 8424 | hardcode_libdir_separator=: |
| 8425 | hardcode_direct=yes |
| 8426 | |
| 8427 | # hardcode_minus_L: Not really in the search PATH, |
| 8428 | # but as the default location of the library. |
| 8429 | hardcode_minus_L=yes |
| 8430 | export_dynamic_flag_spec='${wl}-E' |
| 8431 | ;; |
| 8432 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8433 | hpux10*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8434 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8435 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 8436 | else |
| 8437 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 8438 | fi |
| 8439 | if test "$with_gnu_ld" = no; then |
| 8440 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 8441 | hardcode_libdir_separator=: |
| 8442 | |
| 8443 | hardcode_direct=yes |
| 8444 | export_dynamic_flag_spec='${wl}-E' |
| 8445 | |
| 8446 | # hardcode_minus_L: Not really in the search PATH, |
| 8447 | # but as the default location of the library. |
| 8448 | hardcode_minus_L=yes |
| 8449 | fi |
| 8450 | ;; |
| 8451 | |
| 8452 | hpux11*) |
| 8453 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 8454 | case $host_cpu in |
| 8455 | hppa*64*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8456 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8457 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8458 | ia64*) |
| 8459 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 8460 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8461 | *) |
| 8462 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 8463 | ;; |
| 8464 | esac |
| 8465 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8466 | case $host_cpu in |
| 8467 | hppa*64*) |
| 8468 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8469 | ;; |
| 8470 | ia64*) |
| 8471 | 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] | 8472 | ;; |
| 8473 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8474 | 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] | 8475 | ;; |
| 8476 | esac |
| 8477 | fi |
| 8478 | if test "$with_gnu_ld" = no; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8479 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 8480 | hardcode_libdir_separator=: |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 8481 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8482 | case $host_cpu in |
| 8483 | hppa*64*|ia64*) |
| 8484 | hardcode_libdir_flag_spec_ld='+b $libdir' |
| 8485 | hardcode_direct=no |
| 8486 | hardcode_shlibpath_var=no |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 8487 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8488 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8489 | hardcode_direct=yes |
| 8490 | export_dynamic_flag_spec='${wl}-E' |
| 8491 | |
| 8492 | # hardcode_minus_L: Not really in the search PATH, |
| 8493 | # but as the default location of the library. |
| 8494 | hardcode_minus_L=yes |
| 8495 | ;; |
| 8496 | esac |
| 8497 | fi |
| 8498 | ;; |
| 8499 | |
| 8500 | irix5* | irix6* | nonstopux*) |
| 8501 | if test "$GCC" = yes; then |
| 8502 | 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' |
| 8503 | else |
| 8504 | 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' |
| 8505 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 8506 | fi |
| 8507 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8508 | hardcode_libdir_separator=: |
| 8509 | link_all_deplibs=yes |
| 8510 | ;; |
| 8511 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8512 | netbsd*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8513 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 8514 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 8515 | else |
| 8516 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 8517 | fi |
| 8518 | hardcode_libdir_flag_spec='-R$libdir' |
| 8519 | hardcode_direct=yes |
| 8520 | hardcode_shlibpath_var=no |
| 8521 | ;; |
| 8522 | |
| 8523 | newsos6) |
| 8524 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8525 | hardcode_direct=yes |
| 8526 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8527 | hardcode_libdir_separator=: |
| 8528 | hardcode_shlibpath_var=no |
| 8529 | ;; |
| 8530 | |
| 8531 | openbsd*) |
| 8532 | hardcode_direct=yes |
| 8533 | hardcode_shlibpath_var=no |
| 8534 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 8535 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8536 | 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] | 8537 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 8538 | export_dynamic_flag_spec='${wl}-E' |
| 8539 | else |
| 8540 | case $host_os in |
| 8541 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 8542 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 8543 | hardcode_libdir_flag_spec='-R$libdir' |
| 8544 | ;; |
| 8545 | *) |
| 8546 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 8547 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 8548 | ;; |
| 8549 | esac |
| 8550 | fi |
| 8551 | ;; |
| 8552 | |
| 8553 | os2*) |
| 8554 | hardcode_libdir_flag_spec='-L$libdir' |
| 8555 | hardcode_minus_L=yes |
| 8556 | allow_undefined_flag=unsupported |
| 8557 | 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' |
| 8558 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 8559 | ;; |
| 8560 | |
| 8561 | osf3*) |
| 8562 | if test "$GCC" = yes; then |
| 8563 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 8564 | 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' |
| 8565 | else |
| 8566 | allow_undefined_flag=' -expect_unresolved \*' |
| 8567 | 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' |
| 8568 | fi |
| 8569 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8570 | hardcode_libdir_separator=: |
| 8571 | ;; |
| 8572 | |
| 8573 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 8574 | if test "$GCC" = yes; then |
| 8575 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 8576 | 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' |
| 8577 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8578 | else |
| 8579 | allow_undefined_flag=' -expect_unresolved \*' |
| 8580 | 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' |
| 8581 | 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^] | 8582 | $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] | 8583 | |
| 8584 | # Both c and cxx compiler support -rpath directly |
| 8585 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 8586 | fi |
| 8587 | hardcode_libdir_separator=: |
| 8588 | ;; |
| 8589 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8590 | solaris*) |
| 8591 | no_undefined_flag=' -z text' |
| 8592 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8593 | wlarc='${wl}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8594 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8595 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 8596 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 8597 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8598 | wlarc='' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8599 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8600 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 8601 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 8602 | fi |
| 8603 | hardcode_libdir_flag_spec='-R$libdir' |
| 8604 | hardcode_shlibpath_var=no |
| 8605 | case $host_os in |
| 8606 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8607 | *) |
| 8608 | # The compiler driver will combine linker options so we |
| 8609 | # cannot just pass the convience library names through |
| 8610 | # without $wl, iff we do not link with $LD. |
| 8611 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 8612 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 8613 | case $wlarc in |
| 8614 | '') |
| 8615 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 8616 | *) |
| 8617 | 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' ;; |
| 8618 | esac ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8619 | esac |
| 8620 | link_all_deplibs=yes |
| 8621 | ;; |
| 8622 | |
| 8623 | sunos4*) |
| 8624 | if test "x$host_vendor" = xsequent; then |
| 8625 | # Use $CC to link under sequent, because it throws in some extra .o |
| 8626 | # files that make .init and .fini sections work. |
| 8627 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8628 | else |
| 8629 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 8630 | fi |
| 8631 | hardcode_libdir_flag_spec='-L$libdir' |
| 8632 | hardcode_direct=yes |
| 8633 | hardcode_minus_L=yes |
| 8634 | hardcode_shlibpath_var=no |
| 8635 | ;; |
| 8636 | |
| 8637 | sysv4) |
| 8638 | case $host_vendor in |
| 8639 | sni) |
| 8640 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8641 | hardcode_direct=yes # is this really true??? |
| 8642 | ;; |
| 8643 | siemens) |
| 8644 | ## LD is ld it makes a PLAMLIB |
| 8645 | ## CC just makes a GrossModule. |
| 8646 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 8647 | reload_cmds='$CC -r -o $output$reload_objs' |
| 8648 | hardcode_direct=no |
| 8649 | ;; |
| 8650 | motorola) |
| 8651 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8652 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 8653 | ;; |
| 8654 | esac |
| 8655 | runpath_var='LD_RUN_PATH' |
| 8656 | hardcode_shlibpath_var=no |
| 8657 | ;; |
| 8658 | |
| 8659 | sysv4.3*) |
| 8660 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8661 | hardcode_shlibpath_var=no |
| 8662 | export_dynamic_flag_spec='-Bexport' |
| 8663 | ;; |
| 8664 | |
| 8665 | sysv4*MP*) |
| 8666 | if test -d /usr/nec; then |
| 8667 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8668 | hardcode_shlibpath_var=no |
| 8669 | runpath_var=LD_RUN_PATH |
| 8670 | hardcode_runpath_var=yes |
| 8671 | ld_shlibs=yes |
| 8672 | fi |
| 8673 | ;; |
| 8674 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8675 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 8676 | no_undefined_flag='${wl}-z,text' |
| 8677 | archive_cmds_need_lc=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8678 | hardcode_shlibpath_var=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8679 | runpath_var='LD_RUN_PATH' |
bryner | 07f8ef5 | 2006-09-05 19:42:57 +0000 | [diff] [blame] | 8680 | |
mmentovai | 3261e8b | 2006-09-06 02:56:44 +0000 | [diff] [blame] | 8681 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8682 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8683 | 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] | 8684 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8685 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8686 | 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] | 8687 | fi |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 8688 | ;; |
| 8689 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8690 | sysv5* | sco3.2v5* | sco5v6*) |
| 8691 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 8692 | # link with -lc, and that would cause any symbols used from libc to |
| 8693 | # always be unresolved, which means just about no library would |
| 8694 | # ever link correctly. If we're not using GNU ld we use -z text |
| 8695 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 8696 | # as -z defs. |
| 8697 | no_undefined_flag='${wl}-z,text' |
| 8698 | allow_undefined_flag='${wl}-z,nodefs' |
| 8699 | archive_cmds_need_lc=no |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 8700 | hardcode_shlibpath_var=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8701 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 8702 | hardcode_libdir_separator=':' |
| 8703 | link_all_deplibs=yes |
| 8704 | export_dynamic_flag_spec='${wl}-Bexport' |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 8705 | runpath_var='LD_RUN_PATH' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8706 | |
| 8707 | if test "$GCC" = yes; then |
| 8708 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8709 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8710 | else |
| 8711 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8712 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8713 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8714 | ;; |
| 8715 | |
| 8716 | uts4*) |
| 8717 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8718 | hardcode_libdir_flag_spec='-L$libdir' |
| 8719 | hardcode_shlibpath_var=no |
| 8720 | ;; |
| 8721 | |
| 8722 | *) |
| 8723 | ld_shlibs=no |
| 8724 | ;; |
| 8725 | esac |
| 8726 | fi |
| 8727 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8728 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 8729 | echo "${ECHO_T}$ld_shlibs" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8730 | test "$ld_shlibs" = no && can_build_shared=no |
| 8731 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8732 | # |
| 8733 | # Do we need to explicitly link libc? |
| 8734 | # |
| 8735 | case "x$archive_cmds_need_lc" in |
| 8736 | x|xyes) |
| 8737 | # Assume -lc should be added |
| 8738 | archive_cmds_need_lc=yes |
| 8739 | |
| 8740 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 8741 | case $archive_cmds in |
| 8742 | *'~'*) |
| 8743 | # FIXME: we may have to deal with multi-command sequences. |
| 8744 | ;; |
| 8745 | '$CC '*) |
| 8746 | # Test whether the compiler implicitly links with -lc since on some |
| 8747 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 8748 | # to ld, don't add -lc before -lgcc. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8749 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 8750 | 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] | 8751 | $rm conftest* |
| 8752 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8753 | |
| 8754 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8755 | (eval $ac_compile) 2>&5 |
| 8756 | ac_status=$? |
| 8757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8758 | (exit $ac_status); } 2>conftest.err; then |
| 8759 | soname=conftest |
| 8760 | lib=conftest |
| 8761 | libobjs=conftest.$ac_objext |
| 8762 | deplibs= |
| 8763 | wl=$lt_prog_compiler_wl |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8764 | pic_flag=$lt_prog_compiler_pic |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8765 | compiler_flags=-v |
| 8766 | linker_flags=-v |
| 8767 | verstring= |
| 8768 | output_objdir=. |
| 8769 | libname=conftest |
| 8770 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 8771 | allow_undefined_flag= |
| 8772 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 8773 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 8774 | ac_status=$? |
| 8775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8776 | (exit $ac_status); } |
| 8777 | then |
| 8778 | archive_cmds_need_lc=no |
| 8779 | else |
| 8780 | archive_cmds_need_lc=yes |
| 8781 | fi |
| 8782 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 8783 | else |
| 8784 | cat conftest.err 1>&5 |
| 8785 | fi |
| 8786 | $rm conftest* |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8787 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
| 8788 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8789 | ;; |
| 8790 | esac |
| 8791 | fi |
| 8792 | ;; |
| 8793 | esac |
| 8794 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8795 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 8796 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8797 | library_names_spec= |
| 8798 | libname_spec='lib$name' |
| 8799 | soname_spec= |
| 8800 | shrext_cmds=".so" |
| 8801 | postinstall_cmds= |
| 8802 | postuninstall_cmds= |
| 8803 | finish_cmds= |
| 8804 | finish_eval= |
| 8805 | shlibpath_var= |
| 8806 | shlibpath_overrides_runpath=unknown |
| 8807 | version_type=none |
| 8808 | dynamic_linker="$host_os ld.so" |
| 8809 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 8810 | if test "$GCC" = yes; then |
| 8811 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8812 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 8813 | # if the path contains ";" then we assume it to be the separator |
| 8814 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 8815 | # assumed that no part of a normal pathname contains ";" but that should |
| 8816 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 8817 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8818 | else |
| 8819 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8820 | fi |
| 8821 | else |
| 8822 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 8823 | fi |
| 8824 | need_lib_prefix=unknown |
| 8825 | hardcode_into_libs=no |
| 8826 | |
| 8827 | # when you set need_version to no, make sure it does not cause -set_version |
| 8828 | # flags to be left without arguments |
| 8829 | need_version=unknown |
| 8830 | |
| 8831 | case $host_os in |
| 8832 | aix3*) |
| 8833 | version_type=linux |
| 8834 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 8835 | shlibpath_var=LIBPATH |
| 8836 | |
| 8837 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 8838 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8839 | ;; |
| 8840 | |
| 8841 | aix4* | aix5*) |
| 8842 | version_type=linux |
| 8843 | need_lib_prefix=no |
| 8844 | need_version=no |
| 8845 | hardcode_into_libs=yes |
| 8846 | if test "$host_cpu" = ia64; then |
| 8847 | # AIX 5 supports IA64 |
| 8848 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 8849 | shlibpath_var=LD_LIBRARY_PATH |
| 8850 | else |
| 8851 | # With GCC up to 2.95.x, collect2 would create an import file |
| 8852 | # for dependence libraries. The import file would start with |
| 8853 | # the line `#! .'. This would cause the generated library to |
| 8854 | # depend on `.', always an invalid library. This was fixed in |
| 8855 | # development snapshots of GCC prior to 3.0. |
| 8856 | case $host_os in |
| 8857 | aix4 | aix4.[01] | aix4.[01].*) |
| 8858 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 8859 | echo ' yes ' |
| 8860 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 8861 | : |
| 8862 | else |
| 8863 | can_build_shared=no |
| 8864 | fi |
| 8865 | ;; |
| 8866 | esac |
| 8867 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 8868 | # soname into executable. Probably we can add versioning support to |
| 8869 | # collect2, so additional links can be useful in future. |
| 8870 | if test "$aix_use_runtimelinking" = yes; then |
| 8871 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 8872 | # instead of lib<name>.a to let people know that these are not |
| 8873 | # typical AIX shared libraries. |
| 8874 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8875 | else |
| 8876 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 8877 | # and later when we are not doing run time linking. |
| 8878 | library_names_spec='${libname}${release}.a $libname.a' |
| 8879 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8880 | fi |
| 8881 | shlibpath_var=LIBPATH |
| 8882 | fi |
| 8883 | ;; |
| 8884 | |
| 8885 | amigaos*) |
| 8886 | library_names_spec='$libname.ixlibrary $libname.a' |
| 8887 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 8888 | 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' |
| 8889 | ;; |
| 8890 | |
| 8891 | beos*) |
| 8892 | library_names_spec='${libname}${shared_ext}' |
| 8893 | dynamic_linker="$host_os ld.so" |
| 8894 | shlibpath_var=LIBRARY_PATH |
| 8895 | ;; |
| 8896 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8897 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8898 | version_type=linux |
| 8899 | need_version=no |
| 8900 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8901 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8902 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 8903 | shlibpath_var=LD_LIBRARY_PATH |
| 8904 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 8905 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 8906 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 8907 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 8908 | # libtool to hard-code these into programs |
| 8909 | ;; |
| 8910 | |
| 8911 | cygwin* | mingw* | pw32*) |
| 8912 | version_type=windows |
| 8913 | shrext_cmds=".dll" |
| 8914 | need_version=no |
| 8915 | need_lib_prefix=no |
| 8916 | |
| 8917 | case $GCC,$host_os in |
| 8918 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 8919 | library_names_spec='$libname.dll.a' |
| 8920 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 8921 | postinstall_cmds='base_file=`basename \${file}`~ |
| 8922 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 8923 | dldir=$destdir/`dirname \$dlpath`~ |
| 8924 | test -d \$dldir || mkdir -p \$dldir~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8925 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 8926 | chmod a+x \$dldir/$dlname' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8927 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 8928 | dlpath=$dir/\$dldll~ |
| 8929 | $rm \$dlpath' |
| 8930 | shlibpath_overrides_runpath=yes |
| 8931 | |
| 8932 | case $host_os in |
| 8933 | cygwin*) |
| 8934 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 8935 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8936 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 8937 | ;; |
| 8938 | mingw*) |
| 8939 | # MinGW DLLs use traditional 'lib' prefix |
| 8940 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8941 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8942 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 8943 | # It is most probably a Windows format PATH printed by |
| 8944 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 8945 | # path with ; separators, and with drive letters. We can handle the |
| 8946 | # drive letters (cygwin fileutils understands them), so leave them, |
| 8947 | # especially as we might pass files found there to a mingw objdump, |
| 8948 | # which wouldn't understand a cygwinified path. Ahh. |
| 8949 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8950 | else |
| 8951 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8952 | fi |
| 8953 | ;; |
| 8954 | pw32*) |
| 8955 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8956 | 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] | 8957 | ;; |
| 8958 | esac |
| 8959 | ;; |
| 8960 | |
| 8961 | *) |
| 8962 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 8963 | ;; |
| 8964 | esac |
| 8965 | dynamic_linker='Win32 ld.exe' |
| 8966 | # FIXME: first we should search . and the directory the executable is in |
| 8967 | shlibpath_var=PATH |
| 8968 | ;; |
| 8969 | |
| 8970 | darwin* | rhapsody*) |
| 8971 | dynamic_linker="$host_os dyld" |
| 8972 | version_type=darwin |
| 8973 | need_lib_prefix=no |
| 8974 | need_version=no |
| 8975 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 8976 | soname_spec='${libname}${release}${major}$shared_ext' |
| 8977 | shlibpath_overrides_runpath=yes |
| 8978 | shlibpath_var=DYLD_LIBRARY_PATH |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 8979 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8980 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 8981 | if test "$GCC" = yes; then |
| 8982 | 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"` |
| 8983 | else |
| 8984 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 8985 | fi |
| 8986 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 8987 | ;; |
| 8988 | |
| 8989 | dgux*) |
| 8990 | version_type=linux |
| 8991 | need_lib_prefix=no |
| 8992 | need_version=no |
| 8993 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 8994 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8995 | shlibpath_var=LD_LIBRARY_PATH |
| 8996 | ;; |
| 8997 | |
| 8998 | freebsd1*) |
| 8999 | dynamic_linker=no |
| 9000 | ;; |
| 9001 | |
| 9002 | kfreebsd*-gnu) |
| 9003 | version_type=linux |
| 9004 | need_lib_prefix=no |
| 9005 | need_version=no |
| 9006 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9007 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9008 | shlibpath_var=LD_LIBRARY_PATH |
| 9009 | shlibpath_overrides_runpath=no |
| 9010 | hardcode_into_libs=yes |
| 9011 | dynamic_linker='GNU ld.so' |
| 9012 | ;; |
| 9013 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9014 | freebsd* | dragonfly*) |
| 9015 | # DragonFly does not have aout. When/if they implement a new |
| 9016 | # versioning mechanism, adjust this. |
| 9017 | if test -x /usr/bin/objformat; then |
| 9018 | objformat=`/usr/bin/objformat` |
| 9019 | else |
| 9020 | case $host_os in |
| 9021 | freebsd[123]*) objformat=aout ;; |
| 9022 | *) objformat=elf ;; |
| 9023 | esac |
| 9024 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9025 | version_type=freebsd-$objformat |
| 9026 | case $version_type in |
| 9027 | freebsd-elf*) |
| 9028 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9029 | need_version=no |
| 9030 | need_lib_prefix=no |
| 9031 | ;; |
| 9032 | freebsd-*) |
| 9033 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 9034 | need_version=yes |
| 9035 | ;; |
| 9036 | esac |
| 9037 | shlibpath_var=LD_LIBRARY_PATH |
| 9038 | case $host_os in |
| 9039 | freebsd2*) |
| 9040 | shlibpath_overrides_runpath=yes |
| 9041 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9042 | freebsd3.[01]* | freebsdelf3.[01]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9043 | shlibpath_overrides_runpath=yes |
| 9044 | hardcode_into_libs=yes |
| 9045 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9046 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 9047 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9048 | shlibpath_overrides_runpath=no |
| 9049 | hardcode_into_libs=yes |
| 9050 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9051 | freebsd*) # from 4.6 on |
| 9052 | shlibpath_overrides_runpath=yes |
| 9053 | hardcode_into_libs=yes |
| 9054 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9055 | esac |
| 9056 | ;; |
| 9057 | |
| 9058 | gnu*) |
| 9059 | version_type=linux |
| 9060 | need_lib_prefix=no |
| 9061 | need_version=no |
| 9062 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 9063 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9064 | shlibpath_var=LD_LIBRARY_PATH |
| 9065 | hardcode_into_libs=yes |
| 9066 | ;; |
| 9067 | |
| 9068 | hpux9* | hpux10* | hpux11*) |
| 9069 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 9070 | # link against other versions. |
| 9071 | version_type=sunos |
| 9072 | need_lib_prefix=no |
| 9073 | need_version=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9074 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9075 | ia64*) |
| 9076 | shrext_cmds='.so' |
| 9077 | hardcode_into_libs=yes |
| 9078 | dynamic_linker="$host_os dld.so" |
| 9079 | shlibpath_var=LD_LIBRARY_PATH |
| 9080 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9081 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9082 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9083 | if test "X$HPUX_IA64_MODE" = X32; then |
| 9084 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 9085 | else |
| 9086 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 9087 | fi |
| 9088 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9089 | ;; |
| 9090 | hppa*64*) |
| 9091 | shrext_cmds='.sl' |
| 9092 | hardcode_into_libs=yes |
| 9093 | dynamic_linker="$host_os dld.sl" |
| 9094 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 9095 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9096 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9097 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9098 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 9099 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9100 | ;; |
| 9101 | *) |
| 9102 | shrext_cmds='.sl' |
| 9103 | dynamic_linker="$host_os dld.sl" |
| 9104 | shlibpath_var=SHLIB_PATH |
| 9105 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 9106 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9107 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9108 | ;; |
| 9109 | esac |
| 9110 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 9111 | postinstall_cmds='chmod 555 $lib' |
| 9112 | ;; |
| 9113 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9114 | interix3*) |
| 9115 | version_type=linux |
| 9116 | need_lib_prefix=no |
| 9117 | need_version=no |
| 9118 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9119 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9120 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 9121 | shlibpath_var=LD_LIBRARY_PATH |
| 9122 | shlibpath_overrides_runpath=no |
| 9123 | hardcode_into_libs=yes |
| 9124 | ;; |
| 9125 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9126 | irix5* | irix6* | nonstopux*) |
| 9127 | case $host_os in |
| 9128 | nonstopux*) version_type=nonstopux ;; |
| 9129 | *) |
| 9130 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 9131 | version_type=linux |
| 9132 | else |
| 9133 | version_type=irix |
| 9134 | fi ;; |
| 9135 | esac |
| 9136 | need_lib_prefix=no |
| 9137 | need_version=no |
| 9138 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9139 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9140 | case $host_os in |
| 9141 | irix5* | nonstopux*) |
| 9142 | libsuff= shlibsuff= |
| 9143 | ;; |
| 9144 | *) |
| 9145 | case $LD in # libtool.m4 will add one of these switches to LD |
| 9146 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 9147 | libsuff= shlibsuff= libmagic=32-bit;; |
| 9148 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 9149 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 9150 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 9151 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 9152 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 9153 | esac |
| 9154 | ;; |
| 9155 | esac |
| 9156 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 9157 | shlibpath_overrides_runpath=no |
| 9158 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 9159 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 9160 | hardcode_into_libs=yes |
| 9161 | ;; |
| 9162 | |
| 9163 | # No shared lib support for Linux oldld, aout, or coff. |
| 9164 | linux*oldld* | linux*aout* | linux*coff*) |
| 9165 | dynamic_linker=no |
| 9166 | ;; |
| 9167 | |
| 9168 | # This must be Linux ELF. |
| 9169 | linux*) |
| 9170 | version_type=linux |
| 9171 | need_lib_prefix=no |
| 9172 | need_version=no |
| 9173 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9174 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9175 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 9176 | shlibpath_var=LD_LIBRARY_PATH |
| 9177 | shlibpath_overrides_runpath=no |
| 9178 | # This implies no fast_install, which is unacceptable. |
| 9179 | # Some rework will be needed to allow for fast_install |
| 9180 | # before this can be enabled. |
| 9181 | hardcode_into_libs=yes |
| 9182 | |
| 9183 | # Append ld.so.conf contents to the search path |
| 9184 | if test -f /etc/ld.so.conf; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9185 | 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] | 9186 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 9187 | fi |
| 9188 | |
| 9189 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 9190 | # powerpc, because MkLinux only supported shared libraries with the |
| 9191 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 9192 | # most powerpc-linux boxes support dynamic linking these days and |
| 9193 | # people can always --disable-shared, the test was removed, and we |
| 9194 | # assume the GNU/Linux dynamic linker is in use. |
| 9195 | dynamic_linker='GNU/Linux ld.so' |
| 9196 | ;; |
| 9197 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9198 | knetbsd*-gnu) |
| 9199 | version_type=linux |
| 9200 | need_lib_prefix=no |
| 9201 | need_version=no |
| 9202 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9203 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9204 | shlibpath_var=LD_LIBRARY_PATH |
| 9205 | shlibpath_overrides_runpath=no |
| 9206 | hardcode_into_libs=yes |
| 9207 | dynamic_linker='GNU ld.so' |
| 9208 | ;; |
| 9209 | |
| 9210 | netbsd*) |
| 9211 | version_type=sunos |
| 9212 | need_lib_prefix=no |
| 9213 | need_version=no |
| 9214 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 9215 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9216 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9217 | dynamic_linker='NetBSD (a.out) ld.so' |
| 9218 | else |
| 9219 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9220 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9221 | dynamic_linker='NetBSD ld.elf_so' |
| 9222 | fi |
| 9223 | shlibpath_var=LD_LIBRARY_PATH |
| 9224 | shlibpath_overrides_runpath=yes |
| 9225 | hardcode_into_libs=yes |
| 9226 | ;; |
| 9227 | |
| 9228 | newsos6) |
| 9229 | version_type=linux |
| 9230 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9231 | shlibpath_var=LD_LIBRARY_PATH |
| 9232 | shlibpath_overrides_runpath=yes |
| 9233 | ;; |
| 9234 | |
| 9235 | nto-qnx*) |
| 9236 | version_type=linux |
| 9237 | need_lib_prefix=no |
| 9238 | need_version=no |
| 9239 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9240 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9241 | shlibpath_var=LD_LIBRARY_PATH |
| 9242 | shlibpath_overrides_runpath=yes |
| 9243 | ;; |
| 9244 | |
| 9245 | openbsd*) |
| 9246 | version_type=sunos |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9247 | sys_lib_dlsearch_path_spec="/usr/lib" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9248 | need_lib_prefix=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9249 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 9250 | case $host_os in |
| 9251 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 9252 | *) need_version=no ;; |
| 9253 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9254 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9255 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9256 | shlibpath_var=LD_LIBRARY_PATH |
| 9257 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 9258 | case $host_os in |
| 9259 | openbsd2.[89] | openbsd2.[89].*) |
| 9260 | shlibpath_overrides_runpath=no |
| 9261 | ;; |
| 9262 | *) |
| 9263 | shlibpath_overrides_runpath=yes |
| 9264 | ;; |
| 9265 | esac |
| 9266 | else |
| 9267 | shlibpath_overrides_runpath=yes |
| 9268 | fi |
| 9269 | ;; |
| 9270 | |
| 9271 | os2*) |
| 9272 | libname_spec='$name' |
| 9273 | shrext_cmds=".dll" |
| 9274 | need_lib_prefix=no |
| 9275 | library_names_spec='$libname${shared_ext} $libname.a' |
| 9276 | dynamic_linker='OS/2 ld.exe' |
| 9277 | shlibpath_var=LIBPATH |
| 9278 | ;; |
| 9279 | |
| 9280 | osf3* | osf4* | osf5*) |
| 9281 | version_type=osf |
| 9282 | need_lib_prefix=no |
| 9283 | need_version=no |
| 9284 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9285 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9286 | shlibpath_var=LD_LIBRARY_PATH |
| 9287 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 9288 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 9289 | ;; |
| 9290 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9291 | solaris*) |
| 9292 | version_type=linux |
| 9293 | need_lib_prefix=no |
| 9294 | need_version=no |
| 9295 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9296 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9297 | shlibpath_var=LD_LIBRARY_PATH |
| 9298 | shlibpath_overrides_runpath=yes |
| 9299 | hardcode_into_libs=yes |
| 9300 | # ldd complains unless libraries are executable |
| 9301 | postinstall_cmds='chmod +x $lib' |
| 9302 | ;; |
| 9303 | |
| 9304 | sunos4*) |
| 9305 | version_type=sunos |
| 9306 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9307 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 9308 | shlibpath_var=LD_LIBRARY_PATH |
| 9309 | shlibpath_overrides_runpath=yes |
| 9310 | if test "$with_gnu_ld" = yes; then |
| 9311 | need_lib_prefix=no |
| 9312 | fi |
| 9313 | need_version=yes |
| 9314 | ;; |
| 9315 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9316 | sysv4 | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9317 | version_type=linux |
| 9318 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9319 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9320 | shlibpath_var=LD_LIBRARY_PATH |
| 9321 | case $host_vendor in |
| 9322 | sni) |
| 9323 | shlibpath_overrides_runpath=no |
| 9324 | need_lib_prefix=no |
| 9325 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 9326 | runpath_var=LD_RUN_PATH |
| 9327 | ;; |
| 9328 | siemens) |
| 9329 | need_lib_prefix=no |
| 9330 | ;; |
| 9331 | motorola) |
| 9332 | need_lib_prefix=no |
| 9333 | need_version=no |
| 9334 | shlibpath_overrides_runpath=no |
| 9335 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 9336 | ;; |
| 9337 | esac |
| 9338 | ;; |
| 9339 | |
| 9340 | sysv4*MP*) |
| 9341 | if test -d /usr/nec ;then |
| 9342 | version_type=linux |
| 9343 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 9344 | soname_spec='$libname${shared_ext}.$major' |
| 9345 | shlibpath_var=LD_LIBRARY_PATH |
| 9346 | fi |
| 9347 | ;; |
| 9348 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9349 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 9350 | version_type=freebsd-elf |
| 9351 | need_lib_prefix=no |
| 9352 | need_version=no |
| 9353 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9354 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9355 | shlibpath_var=LD_LIBRARY_PATH |
| 9356 | hardcode_into_libs=yes |
| 9357 | if test "$with_gnu_ld" = yes; then |
| 9358 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 9359 | shlibpath_overrides_runpath=no |
| 9360 | else |
| 9361 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 9362 | shlibpath_overrides_runpath=yes |
| 9363 | case $host_os in |
| 9364 | sco3.2v5*) |
| 9365 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 9366 | ;; |
| 9367 | esac |
| 9368 | fi |
| 9369 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 9370 | ;; |
| 9371 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9372 | uts4*) |
| 9373 | version_type=linux |
| 9374 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9375 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9376 | shlibpath_var=LD_LIBRARY_PATH |
| 9377 | ;; |
| 9378 | |
| 9379 | *) |
| 9380 | dynamic_linker=no |
| 9381 | ;; |
| 9382 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9383 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 9384 | echo "${ECHO_T}$dynamic_linker" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9385 | test "$dynamic_linker" = no && can_build_shared=no |
| 9386 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9387 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 9388 | if test "$GCC" = yes; then |
| 9389 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 9390 | fi |
| 9391 | |
| 9392 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 9393 | 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] | 9394 | hardcode_action= |
| 9395 | if test -n "$hardcode_libdir_flag_spec" || \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9396 | test -n "$runpath_var" || \ |
| 9397 | test "X$hardcode_automatic" = "Xyes" ; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9398 | |
| 9399 | # We can hardcode non-existant directories. |
| 9400 | if test "$hardcode_direct" != no && |
| 9401 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 9402 | # have to relink, otherwise we might link with an installed library |
| 9403 | # when we should be linking with a yet-to-be-installed one |
| 9404 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 9405 | test "$hardcode_minus_L" != no; then |
| 9406 | # Linking always hardcodes the temporary library directory. |
| 9407 | hardcode_action=relink |
| 9408 | else |
| 9409 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 9410 | hardcode_action=immediate |
| 9411 | fi |
| 9412 | else |
| 9413 | # We cannot hardcode anything, or else we can only hardcode existing |
| 9414 | # directories. |
| 9415 | hardcode_action=unsupported |
| 9416 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9417 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 9418 | echo "${ECHO_T}$hardcode_action" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9419 | |
| 9420 | if test "$hardcode_action" = relink; then |
| 9421 | # Fast installation is not supported |
| 9422 | enable_fast_install=no |
| 9423 | elif test "$shlibpath_overrides_runpath" = yes || |
| 9424 | test "$enable_shared" = no; then |
| 9425 | # Fast installation is not necessary |
| 9426 | enable_fast_install=needless |
| 9427 | fi |
| 9428 | |
| 9429 | striplib= |
| 9430 | old_striplib= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9431 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 9432 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9433 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 9434 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 9435 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9436 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9437 | echo "${ECHO_T}yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9438 | else |
| 9439 | # FIXME - insert some real tests, host_os isn't really good enough |
| 9440 | case $host_os in |
| 9441 | darwin*) |
| 9442 | if test -n "$STRIP" ; then |
| 9443 | striplib="$STRIP -x" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9444 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9445 | echo "${ECHO_T}yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9446 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9447 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9448 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9449 | fi |
| 9450 | ;; |
| 9451 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9452 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9453 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9454 | ;; |
| 9455 | esac |
| 9456 | fi |
| 9457 | |
| 9458 | if test "x$enable_dlopen" != xyes; then |
| 9459 | enable_dlopen=unknown |
| 9460 | enable_dlopen_self=unknown |
| 9461 | enable_dlopen_self_static=unknown |
| 9462 | else |
| 9463 | lt_cv_dlopen=no |
| 9464 | lt_cv_dlopen_libs= |
| 9465 | |
| 9466 | case $host_os in |
| 9467 | beos*) |
| 9468 | lt_cv_dlopen="load_add_on" |
| 9469 | lt_cv_dlopen_libs= |
| 9470 | lt_cv_dlopen_self=yes |
| 9471 | ;; |
| 9472 | |
| 9473 | mingw* | pw32*) |
| 9474 | lt_cv_dlopen="LoadLibrary" |
| 9475 | lt_cv_dlopen_libs= |
| 9476 | ;; |
| 9477 | |
| 9478 | cygwin*) |
| 9479 | lt_cv_dlopen="dlopen" |
| 9480 | lt_cv_dlopen_libs= |
| 9481 | ;; |
| 9482 | |
| 9483 | darwin*) |
| 9484 | # if libdl is installed we need to link against it |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9485 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 9486 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9487 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 9488 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9489 | else |
| 9490 | ac_check_lib_save_LIBS=$LIBS |
| 9491 | LIBS="-ldl $LIBS" |
| 9492 | cat >conftest.$ac_ext <<_ACEOF |
| 9493 | /* confdefs.h. */ |
| 9494 | _ACEOF |
| 9495 | cat confdefs.h >>conftest.$ac_ext |
| 9496 | cat >>conftest.$ac_ext <<_ACEOF |
| 9497 | /* end confdefs.h. */ |
| 9498 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9499 | /* Override any GCC internal prototype to avoid an error. |
| 9500 | Use char because int might match the return type of a GCC |
| 9501 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9502 | #ifdef __cplusplus |
| 9503 | extern "C" |
| 9504 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9505 | char dlopen (); |
| 9506 | int |
| 9507 | main () |
| 9508 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9509 | return dlopen (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9510 | ; |
| 9511 | return 0; |
| 9512 | } |
| 9513 | _ACEOF |
| 9514 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9515 | if { (ac_try="$ac_link" |
| 9516 | case "(($ac_try" in |
| 9517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9518 | *) ac_try_echo=$ac_try;; |
| 9519 | esac |
| 9520 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9521 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9522 | ac_status=$? |
| 9523 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9524 | rm -f conftest.er1 |
| 9525 | cat conftest.err >&5 |
| 9526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9527 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9528 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9529 | { (case "(($ac_try" in |
| 9530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9531 | *) ac_try_echo=$ac_try;; |
| 9532 | esac |
| 9533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9534 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9535 | ac_status=$? |
| 9536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9537 | (exit $ac_status); }; } && |
| 9538 | { ac_try='test -s conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9539 | { (case "(($ac_try" in |
| 9540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9541 | *) ac_try_echo=$ac_try;; |
| 9542 | esac |
| 9543 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9544 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9545 | ac_status=$? |
| 9546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9547 | (exit $ac_status); }; }; then |
| 9548 | ac_cv_lib_dl_dlopen=yes |
| 9549 | else |
| 9550 | echo "$as_me: failed program was:" >&5 |
| 9551 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9552 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9553 | ac_cv_lib_dl_dlopen=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9554 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9555 | |
| 9556 | rm -f core conftest.err conftest.$ac_objext \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9557 | conftest$ac_exeext conftest.$ac_ext |
| 9558 | LIBS=$ac_check_lib_save_LIBS |
| 9559 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9560 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9561 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9562 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 9563 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 9564 | else |
| 9565 | |
| 9566 | lt_cv_dlopen="dyld" |
| 9567 | lt_cv_dlopen_libs= |
| 9568 | lt_cv_dlopen_self=yes |
| 9569 | |
| 9570 | fi |
| 9571 | |
| 9572 | ;; |
| 9573 | |
| 9574 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9575 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 9576 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9577 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 9578 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9579 | else |
| 9580 | cat >conftest.$ac_ext <<_ACEOF |
| 9581 | /* confdefs.h. */ |
| 9582 | _ACEOF |
| 9583 | cat confdefs.h >>conftest.$ac_ext |
| 9584 | cat >>conftest.$ac_ext <<_ACEOF |
| 9585 | /* end confdefs.h. */ |
| 9586 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 9587 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9588 | #define shl_load innocuous_shl_load |
| 9589 | |
| 9590 | /* System header to define __stub macros and hopefully few prototypes, |
| 9591 | which can conflict with char shl_load (); below. |
| 9592 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9593 | <limits.h> exists even on freestanding compilers. */ |
| 9594 | |
| 9595 | #ifdef __STDC__ |
| 9596 | # include <limits.h> |
| 9597 | #else |
| 9598 | # include <assert.h> |
| 9599 | #endif |
| 9600 | |
| 9601 | #undef shl_load |
| 9602 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9603 | /* Override any GCC internal prototype to avoid an error. |
| 9604 | Use char because int might match the return type of a GCC |
| 9605 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9606 | #ifdef __cplusplus |
| 9607 | extern "C" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9608 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9609 | char shl_load (); |
| 9610 | /* The GNU C library defines this for functions which it implements |
| 9611 | to always fail with ENOSYS. Some functions are actually named |
| 9612 | something starting with __ and the normal name is an alias. */ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9613 | #if defined __stub_shl_load || defined __stub___shl_load |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9614 | choke me |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9615 | #endif |
| 9616 | |
| 9617 | int |
| 9618 | main () |
| 9619 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9620 | return shl_load (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9621 | ; |
| 9622 | return 0; |
| 9623 | } |
| 9624 | _ACEOF |
| 9625 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9626 | if { (ac_try="$ac_link" |
| 9627 | case "(($ac_try" in |
| 9628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9629 | *) ac_try_echo=$ac_try;; |
| 9630 | esac |
| 9631 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9632 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9633 | ac_status=$? |
| 9634 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9635 | rm -f conftest.er1 |
| 9636 | cat conftest.err >&5 |
| 9637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9638 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9639 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9640 | { (case "(($ac_try" in |
| 9641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9642 | *) ac_try_echo=$ac_try;; |
| 9643 | esac |
| 9644 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9645 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9646 | ac_status=$? |
| 9647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9648 | (exit $ac_status); }; } && |
| 9649 | { ac_try='test -s conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9650 | { (case "(($ac_try" in |
| 9651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9652 | *) ac_try_echo=$ac_try;; |
| 9653 | esac |
| 9654 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9655 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9656 | ac_status=$? |
| 9657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9658 | (exit $ac_status); }; }; then |
| 9659 | ac_cv_func_shl_load=yes |
| 9660 | else |
| 9661 | echo "$as_me: failed program was:" >&5 |
| 9662 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9663 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9664 | ac_cv_func_shl_load=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9665 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9666 | |
| 9667 | rm -f core conftest.err conftest.$ac_objext \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9668 | conftest$ac_exeext conftest.$ac_ext |
| 9669 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9670 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 9671 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9672 | if test $ac_cv_func_shl_load = yes; then |
| 9673 | lt_cv_dlopen="shl_load" |
| 9674 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9675 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 9676 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9677 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 9678 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9679 | else |
| 9680 | ac_check_lib_save_LIBS=$LIBS |
| 9681 | LIBS="-ldld $LIBS" |
| 9682 | cat >conftest.$ac_ext <<_ACEOF |
| 9683 | /* confdefs.h. */ |
| 9684 | _ACEOF |
| 9685 | cat confdefs.h >>conftest.$ac_ext |
| 9686 | cat >>conftest.$ac_ext <<_ACEOF |
| 9687 | /* end confdefs.h. */ |
| 9688 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9689 | /* Override any GCC internal prototype to avoid an error. |
| 9690 | Use char because int might match the return type of a GCC |
| 9691 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9692 | #ifdef __cplusplus |
| 9693 | extern "C" |
| 9694 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9695 | char shl_load (); |
| 9696 | int |
| 9697 | main () |
| 9698 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9699 | return shl_load (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9700 | ; |
| 9701 | return 0; |
| 9702 | } |
| 9703 | _ACEOF |
| 9704 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9705 | if { (ac_try="$ac_link" |
| 9706 | case "(($ac_try" in |
| 9707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9708 | *) ac_try_echo=$ac_try;; |
| 9709 | esac |
| 9710 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9711 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9712 | ac_status=$? |
| 9713 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9714 | rm -f conftest.er1 |
| 9715 | cat conftest.err >&5 |
| 9716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9717 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9718 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9719 | { (case "(($ac_try" in |
| 9720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9721 | *) ac_try_echo=$ac_try;; |
| 9722 | esac |
| 9723 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9724 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9725 | ac_status=$? |
| 9726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9727 | (exit $ac_status); }; } && |
| 9728 | { ac_try='test -s conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9729 | { (case "(($ac_try" in |
| 9730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9731 | *) ac_try_echo=$ac_try;; |
| 9732 | esac |
| 9733 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9734 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9735 | ac_status=$? |
| 9736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9737 | (exit $ac_status); }; }; then |
| 9738 | ac_cv_lib_dld_shl_load=yes |
| 9739 | else |
| 9740 | echo "$as_me: failed program was:" >&5 |
| 9741 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9742 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9743 | ac_cv_lib_dld_shl_load=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9744 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9745 | |
| 9746 | rm -f core conftest.err conftest.$ac_objext \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9747 | conftest$ac_exeext conftest.$ac_ext |
| 9748 | LIBS=$ac_check_lib_save_LIBS |
| 9749 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9750 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9751 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9752 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 9753 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 9754 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9755 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 9756 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9757 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 9758 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9759 | else |
| 9760 | cat >conftest.$ac_ext <<_ACEOF |
| 9761 | /* confdefs.h. */ |
| 9762 | _ACEOF |
| 9763 | cat confdefs.h >>conftest.$ac_ext |
| 9764 | cat >>conftest.$ac_ext <<_ACEOF |
| 9765 | /* end confdefs.h. */ |
| 9766 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 9767 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9768 | #define dlopen innocuous_dlopen |
| 9769 | |
| 9770 | /* System header to define __stub macros and hopefully few prototypes, |
| 9771 | which can conflict with char dlopen (); below. |
| 9772 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9773 | <limits.h> exists even on freestanding compilers. */ |
| 9774 | |
| 9775 | #ifdef __STDC__ |
| 9776 | # include <limits.h> |
| 9777 | #else |
| 9778 | # include <assert.h> |
| 9779 | #endif |
| 9780 | |
| 9781 | #undef dlopen |
| 9782 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9783 | /* Override any GCC internal prototype to avoid an error. |
| 9784 | Use char because int might match the return type of a GCC |
| 9785 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9786 | #ifdef __cplusplus |
| 9787 | extern "C" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9788 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9789 | char dlopen (); |
| 9790 | /* The GNU C library defines this for functions which it implements |
| 9791 | to always fail with ENOSYS. Some functions are actually named |
| 9792 | something starting with __ and the normal name is an alias. */ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9793 | #if defined __stub_dlopen || defined __stub___dlopen |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9794 | choke me |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9795 | #endif |
| 9796 | |
| 9797 | int |
| 9798 | main () |
| 9799 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9800 | return dlopen (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9801 | ; |
| 9802 | return 0; |
| 9803 | } |
| 9804 | _ACEOF |
| 9805 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9806 | if { (ac_try="$ac_link" |
| 9807 | case "(($ac_try" in |
| 9808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9809 | *) ac_try_echo=$ac_try;; |
| 9810 | esac |
| 9811 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9812 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9813 | ac_status=$? |
| 9814 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9815 | rm -f conftest.er1 |
| 9816 | cat conftest.err >&5 |
| 9817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9818 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9819 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9820 | { (case "(($ac_try" in |
| 9821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9822 | *) ac_try_echo=$ac_try;; |
| 9823 | esac |
| 9824 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9825 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9826 | ac_status=$? |
| 9827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9828 | (exit $ac_status); }; } && |
| 9829 | { ac_try='test -s conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9830 | { (case "(($ac_try" in |
| 9831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9832 | *) ac_try_echo=$ac_try;; |
| 9833 | esac |
| 9834 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9835 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9836 | ac_status=$? |
| 9837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9838 | (exit $ac_status); }; }; then |
| 9839 | ac_cv_func_dlopen=yes |
| 9840 | else |
| 9841 | echo "$as_me: failed program was:" >&5 |
| 9842 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9843 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9844 | ac_cv_func_dlopen=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9845 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9846 | |
| 9847 | rm -f core conftest.err conftest.$ac_objext \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9848 | conftest$ac_exeext conftest.$ac_ext |
| 9849 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9850 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 9851 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9852 | if test $ac_cv_func_dlopen = yes; then |
| 9853 | lt_cv_dlopen="dlopen" |
| 9854 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9855 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 9856 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9857 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 9858 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9859 | else |
| 9860 | ac_check_lib_save_LIBS=$LIBS |
| 9861 | LIBS="-ldl $LIBS" |
| 9862 | cat >conftest.$ac_ext <<_ACEOF |
| 9863 | /* confdefs.h. */ |
| 9864 | _ACEOF |
| 9865 | cat confdefs.h >>conftest.$ac_ext |
| 9866 | cat >>conftest.$ac_ext <<_ACEOF |
| 9867 | /* end confdefs.h. */ |
| 9868 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9869 | /* Override any GCC internal prototype to avoid an error. |
| 9870 | Use char because int might match the return type of a GCC |
| 9871 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9872 | #ifdef __cplusplus |
| 9873 | extern "C" |
| 9874 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9875 | char dlopen (); |
| 9876 | int |
| 9877 | main () |
| 9878 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9879 | return dlopen (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9880 | ; |
| 9881 | return 0; |
| 9882 | } |
| 9883 | _ACEOF |
| 9884 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9885 | if { (ac_try="$ac_link" |
| 9886 | case "(($ac_try" in |
| 9887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9888 | *) ac_try_echo=$ac_try;; |
| 9889 | esac |
| 9890 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9891 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9892 | ac_status=$? |
| 9893 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9894 | rm -f conftest.er1 |
| 9895 | cat conftest.err >&5 |
| 9896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9897 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9898 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9899 | { (case "(($ac_try" in |
| 9900 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9901 | *) ac_try_echo=$ac_try;; |
| 9902 | esac |
| 9903 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9904 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9905 | ac_status=$? |
| 9906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9907 | (exit $ac_status); }; } && |
| 9908 | { ac_try='test -s conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9909 | { (case "(($ac_try" in |
| 9910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9911 | *) ac_try_echo=$ac_try;; |
| 9912 | esac |
| 9913 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9914 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9915 | ac_status=$? |
| 9916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9917 | (exit $ac_status); }; }; then |
| 9918 | ac_cv_lib_dl_dlopen=yes |
| 9919 | else |
| 9920 | echo "$as_me: failed program was:" >&5 |
| 9921 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9922 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9923 | ac_cv_lib_dl_dlopen=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9924 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9925 | |
| 9926 | rm -f core conftest.err conftest.$ac_objext \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9927 | conftest$ac_exeext conftest.$ac_ext |
| 9928 | LIBS=$ac_check_lib_save_LIBS |
| 9929 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9930 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9931 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9932 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 9933 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 9934 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9935 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 9936 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9937 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 9938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9939 | else |
| 9940 | ac_check_lib_save_LIBS=$LIBS |
| 9941 | LIBS="-lsvld $LIBS" |
| 9942 | cat >conftest.$ac_ext <<_ACEOF |
| 9943 | /* confdefs.h. */ |
| 9944 | _ACEOF |
| 9945 | cat confdefs.h >>conftest.$ac_ext |
| 9946 | cat >>conftest.$ac_ext <<_ACEOF |
| 9947 | /* end confdefs.h. */ |
| 9948 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9949 | /* Override any GCC internal prototype to avoid an error. |
| 9950 | Use char because int might match the return type of a GCC |
| 9951 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9952 | #ifdef __cplusplus |
| 9953 | extern "C" |
| 9954 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9955 | char dlopen (); |
| 9956 | int |
| 9957 | main () |
| 9958 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9959 | return dlopen (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9960 | ; |
| 9961 | return 0; |
| 9962 | } |
| 9963 | _ACEOF |
| 9964 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9965 | if { (ac_try="$ac_link" |
| 9966 | case "(($ac_try" in |
| 9967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9968 | *) ac_try_echo=$ac_try;; |
| 9969 | esac |
| 9970 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9971 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9972 | ac_status=$? |
| 9973 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9974 | rm -f conftest.er1 |
| 9975 | cat conftest.err >&5 |
| 9976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9977 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9978 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9979 | { (case "(($ac_try" in |
| 9980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9981 | *) ac_try_echo=$ac_try;; |
| 9982 | esac |
| 9983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9984 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9985 | ac_status=$? |
| 9986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9987 | (exit $ac_status); }; } && |
| 9988 | { ac_try='test -s conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 9989 | { (case "(($ac_try" in |
| 9990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9991 | *) ac_try_echo=$ac_try;; |
| 9992 | esac |
| 9993 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9994 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9995 | ac_status=$? |
| 9996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9997 | (exit $ac_status); }; }; then |
| 9998 | ac_cv_lib_svld_dlopen=yes |
| 9999 | else |
| 10000 | echo "$as_me: failed program was:" >&5 |
| 10001 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10002 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 10003 | ac_cv_lib_svld_dlopen=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10004 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 10005 | |
| 10006 | rm -f core conftest.err conftest.$ac_objext \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10007 | conftest$ac_exeext conftest.$ac_ext |
| 10008 | LIBS=$ac_check_lib_save_LIBS |
| 10009 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 10010 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 10011 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10012 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 10013 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 10014 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 10015 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 10016 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10017 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 10018 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10019 | else |
| 10020 | ac_check_lib_save_LIBS=$LIBS |
| 10021 | LIBS="-ldld $LIBS" |
| 10022 | cat >conftest.$ac_ext <<_ACEOF |
| 10023 | /* confdefs.h. */ |
| 10024 | _ACEOF |
| 10025 | cat confdefs.h >>conftest.$ac_ext |
| 10026 | cat >>conftest.$ac_ext <<_ACEOF |
| 10027 | /* end confdefs.h. */ |
| 10028 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 10029 | /* Override any GCC internal prototype to avoid an error. |
| 10030 | Use char because int might match the return type of a GCC |
| 10031 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10032 | #ifdef __cplusplus |
| 10033 | extern "C" |
| 10034 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10035 | char dld_link (); |
| 10036 | int |
| 10037 | main () |
| 10038 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 10039 | return dld_link (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10040 | ; |
| 10041 | return 0; |
| 10042 | } |
| 10043 | _ACEOF |
| 10044 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 10045 | if { (ac_try="$ac_link" |
| 10046 | case "(($ac_try" in |
| 10047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10048 | *) ac_try_echo=$ac_try;; |
| 10049 | esac |
| 10050 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10051 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10052 | ac_status=$? |
| 10053 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10054 | rm -f conftest.er1 |
| 10055 | cat conftest.err >&5 |
| 10056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10057 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 10058 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10059 | { (case "(($ac_try" in |
| 10060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10061 | *) ac_try_echo=$ac_try;; |
| 10062 | esac |
| 10063 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10064 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10065 | ac_status=$? |
| 10066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10067 | (exit $ac_status); }; } && |
| 10068 | { ac_try='test -s conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 10069 | { (case "(($ac_try" in |
| 10070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10071 | *) ac_try_echo=$ac_try;; |
| 10072 | esac |
| 10073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10074 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10075 | ac_status=$? |
| 10076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10077 | (exit $ac_status); }; }; then |
| 10078 | ac_cv_lib_dld_dld_link=yes |
| 10079 | else |
| 10080 | echo "$as_me: failed program was:" >&5 |
| 10081 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10082 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 10083 | ac_cv_lib_dld_dld_link=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10084 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 10085 | |
| 10086 | rm -f core conftest.err conftest.$ac_objext \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10087 | conftest$ac_exeext conftest.$ac_ext |
| 10088 | LIBS=$ac_check_lib_save_LIBS |
| 10089 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 10090 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 10091 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10092 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 10093 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 10094 | fi |
| 10095 | |
| 10096 | |
| 10097 | fi |
| 10098 | |
| 10099 | |
| 10100 | fi |
| 10101 | |
| 10102 | |
| 10103 | fi |
| 10104 | |
| 10105 | |
| 10106 | fi |
| 10107 | |
| 10108 | |
| 10109 | fi |
| 10110 | |
| 10111 | ;; |
| 10112 | esac |
| 10113 | |
| 10114 | if test "x$lt_cv_dlopen" != xno; then |
| 10115 | enable_dlopen=yes |
| 10116 | else |
| 10117 | enable_dlopen=no |
| 10118 | fi |
| 10119 | |
| 10120 | case $lt_cv_dlopen in |
| 10121 | dlopen) |
| 10122 | save_CPPFLAGS="$CPPFLAGS" |
| 10123 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 10124 | |
| 10125 | save_LDFLAGS="$LDFLAGS" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 10126 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10127 | |
| 10128 | save_LIBS="$LIBS" |
| 10129 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 10130 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 10131 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 10132 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10133 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 10134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10135 | else |
| 10136 | if test "$cross_compiling" = yes; then : |
| 10137 | lt_cv_dlopen_self=cross |
| 10138 | else |
| 10139 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 10140 | lt_status=$lt_dlunknown |
| 10141 | cat > conftest.$ac_ext <<EOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 10142 | #line 10142 "configure" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10143 | #include "confdefs.h" |
| 10144 | |
| 10145 | #if HAVE_DLFCN_H |
| 10146 | #include <dlfcn.h> |
| 10147 | #endif |
| 10148 | |
| 10149 | #include <stdio.h> |
| 10150 | |
| 10151 | #ifdef RTLD_GLOBAL |
| 10152 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 10153 | #else |
| 10154 | # ifdef DL_GLOBAL |
| 10155 | # define LT_DLGLOBAL DL_GLOBAL |
| 10156 | # else |
| 10157 | # define LT_DLGLOBAL 0 |
| 10158 | # endif |
| 10159 | #endif |
| 10160 | |
| 10161 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 10162 | find out it does not work in some platform. */ |
| 10163 | #ifndef LT_DLLAZY_OR_NOW |
| 10164 | # ifdef RTLD_LAZY |
| 10165 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 10166 | # else |
| 10167 | # ifdef DL_LAZY |
| 10168 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 10169 | # else |
| 10170 | # ifdef RTLD_NOW |
| 10171 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 10172 | # else |
| 10173 | # ifdef DL_NOW |
| 10174 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 10175 | # else |
| 10176 | # define LT_DLLAZY_OR_NOW 0 |
| 10177 | # endif |
| 10178 | # endif |
| 10179 | # endif |
| 10180 | # endif |
| 10181 | #endif |
| 10182 | |
| 10183 | #ifdef __cplusplus |
| 10184 | extern "C" void exit (int); |
| 10185 | #endif |
| 10186 | |
| 10187 | void fnord() { int i=42;} |
| 10188 | int main () |
| 10189 | { |
| 10190 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 10191 | int status = $lt_dlunknown; |
| 10192 | |
| 10193 | if (self) |
| 10194 | { |
| 10195 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 10196 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 10197 | /* dlclose (self); */ |
| 10198 | } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 10199 | else |
| 10200 | puts (dlerror ()); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10201 | |
| 10202 | exit (status); |
| 10203 | } |
| 10204 | EOF |
| 10205 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10206 | (eval $ac_link) 2>&5 |
| 10207 | ac_status=$? |
| 10208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10209 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 10210 | (./conftest; exit; ) >&5 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10211 | lt_status=$? |
| 10212 | case x$lt_status in |
| 10213 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 10214 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 10215 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10216 | esac |
| 10217 | else : |
| 10218 | # compilation failed |
| 10219 | lt_cv_dlopen_self=no |
| 10220 | fi |
| 10221 | fi |
| 10222 | rm -fr conftest* |
| 10223 | |
| 10224 | |
| 10225 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 10226 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 10227 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10228 | |
| 10229 | if test "x$lt_cv_dlopen_self" = xyes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 10230 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 10231 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 10232 | 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] | 10233 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 10234 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10235 | else |
| 10236 | if test "$cross_compiling" = yes; then : |
| 10237 | lt_cv_dlopen_self_static=cross |
| 10238 | else |
| 10239 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 10240 | lt_status=$lt_dlunknown |
| 10241 | cat > conftest.$ac_ext <<EOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 10242 | #line 10242 "configure" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10243 | #include "confdefs.h" |
| 10244 | |
| 10245 | #if HAVE_DLFCN_H |
| 10246 | #include <dlfcn.h> |
| 10247 | #endif |
| 10248 | |
| 10249 | #include <stdio.h> |
| 10250 | |
| 10251 | #ifdef RTLD_GLOBAL |
| 10252 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 10253 | #else |
| 10254 | # ifdef DL_GLOBAL |
| 10255 | # define LT_DLGLOBAL DL_GLOBAL |
| 10256 | # else |
| 10257 | # define LT_DLGLOBAL 0 |
| 10258 | # endif |
| 10259 | #endif |
| 10260 | |
| 10261 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 10262 | find out it does not work in some platform. */ |
| 10263 | #ifndef LT_DLLAZY_OR_NOW |
| 10264 | # ifdef RTLD_LAZY |
| 10265 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 10266 | # else |
| 10267 | # ifdef DL_LAZY |
| 10268 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 10269 | # else |
| 10270 | # ifdef RTLD_NOW |
| 10271 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 10272 | # else |
| 10273 | # ifdef DL_NOW |
| 10274 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 10275 | # else |
| 10276 | # define LT_DLLAZY_OR_NOW 0 |
| 10277 | # endif |
| 10278 | # endif |
| 10279 | # endif |
| 10280 | # endif |
| 10281 | #endif |
| 10282 | |
| 10283 | #ifdef __cplusplus |
| 10284 | extern "C" void exit (int); |
| 10285 | #endif |
| 10286 | |
| 10287 | void fnord() { int i=42;} |
| 10288 | int main () |
| 10289 | { |
| 10290 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 10291 | int status = $lt_dlunknown; |
| 10292 | |
| 10293 | if (self) |
| 10294 | { |
| 10295 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 10296 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 10297 | /* dlclose (self); */ |
| 10298 | } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 10299 | else |
| 10300 | puts (dlerror ()); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10301 | |
| 10302 | exit (status); |
| 10303 | } |
| 10304 | EOF |
| 10305 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10306 | (eval $ac_link) 2>&5 |
| 10307 | ac_status=$? |
| 10308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10309 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 10310 | (./conftest; exit; ) >&5 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10311 | lt_status=$? |
| 10312 | case x$lt_status in |
| 10313 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 10314 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 10315 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10316 | esac |
| 10317 | else : |
| 10318 | # compilation failed |
| 10319 | lt_cv_dlopen_self_static=no |
| 10320 | fi |
| 10321 | fi |
| 10322 | rm -fr conftest* |
| 10323 | |
| 10324 | |
| 10325 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 10326 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 10327 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10328 | fi |
| 10329 | |
| 10330 | CPPFLAGS="$save_CPPFLAGS" |
| 10331 | LDFLAGS="$save_LDFLAGS" |
| 10332 | LIBS="$save_LIBS" |
| 10333 | ;; |
| 10334 | esac |
| 10335 | |
| 10336 | case $lt_cv_dlopen_self in |
| 10337 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 10338 | *) enable_dlopen_self=unknown ;; |
| 10339 | esac |
| 10340 | |
| 10341 | case $lt_cv_dlopen_self_static in |
| 10342 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 10343 | *) enable_dlopen_self_static=unknown ;; |
| 10344 | esac |
| 10345 | fi |
| 10346 | |
| 10347 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 10348 | # Report which library types will actually be built |
| 10349 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 10350 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
| 10351 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 10352 | echo "${ECHO_T}$can_build_shared" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10353 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 10354 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 10355 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10356 | test "$can_build_shared" = "no" && enable_shared=no |
| 10357 | |
| 10358 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 10359 | # are all built from PIC. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 10360 | case $host_os in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10361 | aix3*) |
| 10362 | test "$enable_shared" = yes && enable_static=no |
| 10363 | if test -n "$RANLIB"; then |
| 10364 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 10365 | postinstall_cmds='$RANLIB $lib' |
| 10366 | fi |
| 10367 | ;; |
| 10368 | |
| 10369 | aix4* | aix5*) |
| 10370 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 10371 | test "$enable_shared" = yes && enable_static=no |
| 10372 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10373 | ;; |
| 10374 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 10375 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 10376 | echo "${ECHO_T}$enable_shared" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10377 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 10378 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 10379 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10380 | # Make sure either enable_shared or enable_static is yes. |
| 10381 | test "$enable_shared" = yes || enable_static=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 10382 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 10383 | echo "${ECHO_T}$enable_static" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10384 | |
| 10385 | # The else clause should only fire when bootstrapping the |
| 10386 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 10387 | # with your package, and you will get complaints that there are |
| 10388 | # no rules to generate ltmain.sh. |
| 10389 | if test -f "$ltmain"; then |
| 10390 | # See if we are running on zsh, and set the options which allow our commands through |
| 10391 | # without removal of \ escapes. |
| 10392 | if test -n "${ZSH_VERSION+set}" ; then |
| 10393 | setopt NO_GLOB_SUBST |
| 10394 | fi |
| 10395 | # Now quote all the things that may contain metacharacters while being |
| 10396 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 10397 | # variables and quote the copies for generation of the libtool script. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 10398 | 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] | 10399 | SED SHELL STRIP \ |
| 10400 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 10401 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 10402 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 10403 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 10404 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 10405 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 10406 | old_postinstall_cmds old_postuninstall_cmds \ |
| 10407 | compiler \ |
| 10408 | CC \ |
| 10409 | LD \ |
| 10410 | lt_prog_compiler_wl \ |
| 10411 | lt_prog_compiler_pic \ |
| 10412 | lt_prog_compiler_static \ |
| 10413 | lt_prog_compiler_no_builtin_flag \ |
| 10414 | export_dynamic_flag_spec \ |
| 10415 | thread_safe_flag_spec \ |
| 10416 | whole_archive_flag_spec \ |
| 10417 | enable_shared_with_static_runtimes \ |
| 10418 | old_archive_cmds \ |
| 10419 | old_archive_from_new_cmds \ |
| 10420 | predep_objects \ |
| 10421 | postdep_objects \ |
| 10422 | predeps \ |
| 10423 | postdeps \ |
| 10424 | compiler_lib_search_path \ |
| 10425 | archive_cmds \ |
| 10426 | archive_expsym_cmds \ |
| 10427 | postinstall_cmds \ |
| 10428 | postuninstall_cmds \ |
| 10429 | old_archive_from_expsyms_cmds \ |
| 10430 | allow_undefined_flag \ |
| 10431 | no_undefined_flag \ |
| 10432 | export_symbols_cmds \ |
| 10433 | hardcode_libdir_flag_spec \ |
| 10434 | hardcode_libdir_flag_spec_ld \ |
| 10435 | hardcode_libdir_separator \ |
| 10436 | hardcode_automatic \ |
| 10437 | module_cmds \ |
| 10438 | module_expsym_cmds \ |
| 10439 | lt_cv_prog_compiler_c_o \ |
| 10440 | exclude_expsyms \ |
| 10441 | include_expsyms; do |
| 10442 | |
| 10443 | case $var in |
| 10444 | old_archive_cmds | \ |
| 10445 | old_archive_from_new_cmds | \ |
| 10446 | archive_cmds | \ |
| 10447 | archive_expsym_cmds | \ |
| 10448 | module_cmds | \ |
| 10449 | module_expsym_cmds | \ |
| 10450 | old_archive_from_expsyms_cmds | \ |
| 10451 | export_symbols_cmds | \ |
| 10452 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 10453 | postinstall_cmds | postuninstall_cmds | \ |
| 10454 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 10455 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 10456 | # Double-quote double-evaled strings. |
| 10457 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 10458 | ;; |
| 10459 | *) |
| 10460 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 10461 | ;; |
| 10462 | esac |
| 10463 | done |
| 10464 | |
| 10465 | case $lt_echo in |
| 10466 | *'\$0 --fallback-echo"') |
| 10467 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 10468 | ;; |
| 10469 | esac |
| 10470 | |
| 10471 | cfgfile="${ofile}T" |
| 10472 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
| 10473 | $rm -f "$cfgfile" |
| 10474 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
| 10475 | echo "$as_me: creating $ofile" >&6;} |
| 10476 | |
| 10477 | cat <<__EOF__ >> "$cfgfile" |
| 10478 | #! $SHELL |
| 10479 | |
| 10480 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 10481 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 10482 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 10483 | # |
| 10484 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
| 10485 | # Free Software Foundation, Inc. |
| 10486 | # |
| 10487 | # This file is part of GNU Libtool: |
| 10488 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 10489 | # |
| 10490 | # This program is free software; you can redistribute it and/or modify |
| 10491 | # it under the terms of the GNU General Public License as published by |
| 10492 | # the Free Software Foundation; either version 2 of the License, or |
| 10493 | # (at your option) any later version. |
| 10494 | # |
| 10495 | # This program is distributed in the hope that it will be useful, but |
| 10496 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10497 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 10498 | # General Public License for more details. |
| 10499 | # |
| 10500 | # You should have received a copy of the GNU General Public License |
| 10501 | # along with this program; if not, write to the Free Software |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 10502 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10503 | # |
| 10504 | # As a special exception to the GNU General Public License, if you |
| 10505 | # distribute this file as part of a program that contains a |
| 10506 | # configuration script generated by Autoconf, you may include it under |
| 10507 | # the same distribution terms that you use for the rest of that program. |
| 10508 | |
| 10509 | # A sed program that does not truncate output. |
| 10510 | SED=$lt_SED |
| 10511 | |
| 10512 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 10513 | Xsed="$SED -e 1s/^X//" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10514 | |
| 10515 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 10516 | # if CDPATH is set. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 10517 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10518 | |
| 10519 | # The names of the tagged configurations supported by this script. |
| 10520 | available_tags= |
| 10521 | |
| 10522 | # ### BEGIN LIBTOOL CONFIG |
| 10523 | |
| 10524 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 10525 | |
| 10526 | # Shell to use when invoking shell scripts. |
| 10527 | SHELL=$lt_SHELL |
| 10528 | |
| 10529 | # Whether or not to build shared libraries. |
| 10530 | build_libtool_libs=$enable_shared |
| 10531 | |
| 10532 | # Whether or not to build static libraries. |
| 10533 | build_old_libs=$enable_static |
| 10534 | |
| 10535 | # Whether or not to add -lc for building shared libraries. |
| 10536 | build_libtool_need_lc=$archive_cmds_need_lc |
| 10537 | |
| 10538 | # Whether or not to disallow shared libs when runtime libs are static |
| 10539 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 10540 | |
| 10541 | # Whether or not to optimize for fast installation. |
| 10542 | fast_install=$enable_fast_install |
| 10543 | |
| 10544 | # The host system. |
| 10545 | host_alias=$host_alias |
| 10546 | host=$host |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 10547 | host_os=$host_os |
| 10548 | |
| 10549 | # The build system. |
| 10550 | build_alias=$build_alias |
| 10551 | build=$build |
| 10552 | build_os=$build_os |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10553 | |
| 10554 | # An echo program that does not interpret backslashes. |
| 10555 | echo=$lt_echo |
| 10556 | |
| 10557 | # The archiver. |
| 10558 | AR=$lt_AR |
| 10559 | AR_FLAGS=$lt_AR_FLAGS |
| 10560 | |
| 10561 | # A C compiler. |
| 10562 | LTCC=$lt_LTCC |
| 10563 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 10564 | # LTCC compiler flags. |
| 10565 | LTCFLAGS=$lt_LTCFLAGS |
| 10566 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10567 | # A language-specific compiler. |
| 10568 | CC=$lt_compiler |
| 10569 | |
| 10570 | # Is the compiler the GNU C compiler? |
| 10571 | with_gcc=$GCC |
| 10572 | |
| 10573 | # An ERE matcher. |
| 10574 | EGREP=$lt_EGREP |
| 10575 | |
| 10576 | # The linker used to build libraries. |
| 10577 | LD=$lt_LD |
| 10578 | |
| 10579 | # Whether we need hard or soft links. |
| 10580 | LN_S=$lt_LN_S |
| 10581 | |
| 10582 | # A BSD-compatible nm program. |
| 10583 | NM=$lt_NM |
| 10584 | |
| 10585 | # A symbol stripping program |
| 10586 | STRIP=$lt_STRIP |
| 10587 | |
| 10588 | # Used to examine libraries when file_magic_cmd begins "file" |
| 10589 | MAGIC_CMD=$MAGIC_CMD |
| 10590 | |
| 10591 | # Used on cygwin: DLL creation program. |
| 10592 | DLLTOOL="$DLLTOOL" |
| 10593 | |
| 10594 | # Used on cygwin: object dumper. |
| 10595 | OBJDUMP="$OBJDUMP" |
| 10596 | |
| 10597 | # Used on cygwin: assembler. |
| 10598 | AS="$AS" |
| 10599 | |
| 10600 | # The name of the directory that contains temporary libtool files. |
| 10601 | objdir=$objdir |
| 10602 | |
| 10603 | # How to create reloadable object files. |
| 10604 | reload_flag=$lt_reload_flag |
| 10605 | reload_cmds=$lt_reload_cmds |
| 10606 | |
| 10607 | # How to pass a linker flag through the compiler. |
| 10608 | wl=$lt_lt_prog_compiler_wl |
| 10609 | |
| 10610 | # Object file suffix (normally "o"). |
| 10611 | objext="$ac_objext" |
| 10612 | |
| 10613 | # Old archive suffix (normally "a"). |
| 10614 | libext="$libext" |
| 10615 | |
| 10616 | # Shared library suffix (normally ".so"). |
| 10617 | shrext_cmds='$shrext_cmds' |
| 10618 | |
| 10619 | # Executable file suffix (normally ""). |
| 10620 | exeext="$exeext" |
| 10621 | |
| 10622 | # Additional compiler flags for building library objects. |
| 10623 | pic_flag=$lt_lt_prog_compiler_pic |
| 10624 | pic_mode=$pic_mode |
| 10625 | |
| 10626 | # What is the maximum length of a command? |
| 10627 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 10628 | |
| 10629 | # Does compiler simultaneously support -c and -o options? |
| 10630 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 10631 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 10632 | # Must we lock files when doing compilation? |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10633 | need_locks=$lt_need_locks |
| 10634 | |
| 10635 | # Do we need the lib prefix for modules? |
| 10636 | need_lib_prefix=$need_lib_prefix |
| 10637 | |
| 10638 | # Do we need a version for libraries? |
| 10639 | need_version=$need_version |
| 10640 | |
| 10641 | # Whether dlopen is supported. |
| 10642 | dlopen_support=$enable_dlopen |
| 10643 | |
| 10644 | # Whether dlopen of programs is supported. |
| 10645 | dlopen_self=$enable_dlopen_self |
| 10646 | |
| 10647 | # Whether dlopen of statically linked programs is supported. |
| 10648 | dlopen_self_static=$enable_dlopen_self_static |
| 10649 | |
| 10650 | # Compiler flag to prevent dynamic linking. |
| 10651 | link_static_flag=$lt_lt_prog_compiler_static |
| 10652 | |
| 10653 | # Compiler flag to turn off builtin functions. |
| 10654 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 10655 | |
| 10656 | # Compiler flag to allow reflexive dlopens. |
| 10657 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 10658 | |
| 10659 | # Compiler flag to generate shared objects directly from archives. |
| 10660 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 10661 | |
| 10662 | # Compiler flag to generate thread-safe objects. |
| 10663 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 10664 | |
| 10665 | # Library versioning type. |
| 10666 | version_type=$version_type |
| 10667 | |
| 10668 | # Format of library name prefix. |
| 10669 | libname_spec=$lt_libname_spec |
| 10670 | |
| 10671 | # List of archive names. First name is the real one, the rest are links. |
| 10672 | # The last name is the one that the linker finds with -lNAME. |
| 10673 | library_names_spec=$lt_library_names_spec |
| 10674 | |
| 10675 | # The coded name of the library, if different from the real name. |
| 10676 | soname_spec=$lt_soname_spec |
| 10677 | |
| 10678 | # Commands used to build and install an old-style archive. |
| 10679 | RANLIB=$lt_RANLIB |
| 10680 | old_archive_cmds=$lt_old_archive_cmds |
| 10681 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 10682 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 10683 | |
| 10684 | # Create an old-style archive from a shared archive. |
| 10685 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 10686 | |
| 10687 | # Create a temporary old-style archive to link instead of a shared archive. |
| 10688 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 10689 | |
| 10690 | # Commands used to build and install a shared archive. |
| 10691 | archive_cmds=$lt_archive_cmds |
| 10692 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 10693 | postinstall_cmds=$lt_postinstall_cmds |
| 10694 | postuninstall_cmds=$lt_postuninstall_cmds |
| 10695 | |
| 10696 | # Commands used to build a loadable module (assumed same as above if empty) |
| 10697 | module_cmds=$lt_module_cmds |
| 10698 | module_expsym_cmds=$lt_module_expsym_cmds |
| 10699 | |
| 10700 | # Commands to strip libraries. |
| 10701 | old_striplib=$lt_old_striplib |
| 10702 | striplib=$lt_striplib |
| 10703 | |
| 10704 | # Dependencies to place before the objects being linked to create a |
| 10705 | # shared library. |
| 10706 | predep_objects=$lt_predep_objects |
| 10707 | |
| 10708 | # Dependencies to place after the objects being linked to create a |
| 10709 | # shared library. |
| 10710 | postdep_objects=$lt_postdep_objects |
| 10711 | |
| 10712 | # Dependencies to place before the objects being linked to create a |
| 10713 | # shared library. |
| 10714 | predeps=$lt_predeps |
| 10715 | |
| 10716 | # Dependencies to place after the objects being linked to create a |
| 10717 | # shared library. |
| 10718 | postdeps=$lt_postdeps |
| 10719 | |
| 10720 | # The library search path used internally by the compiler when linking |
| 10721 | # a shared library. |
| 10722 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 10723 | |
| 10724 | # Method to check whether dependent libraries are shared objects. |
| 10725 | deplibs_check_method=$lt_deplibs_check_method |
| 10726 | |
| 10727 | # Command to use when deplibs_check_method == file_magic. |
| 10728 | file_magic_cmd=$lt_file_magic_cmd |
| 10729 | |
| 10730 | # Flag that allows shared libraries with undefined symbols to be built. |
| 10731 | allow_undefined_flag=$lt_allow_undefined_flag |
| 10732 | |
| 10733 | # Flag that forces no undefined symbols. |
| 10734 | no_undefined_flag=$lt_no_undefined_flag |
| 10735 | |
| 10736 | # Commands used to finish a libtool library installation in a directory. |
| 10737 | finish_cmds=$lt_finish_cmds |
| 10738 | |
| 10739 | # Same as above, but a single script fragment to be evaled but not shown. |
| 10740 | finish_eval=$lt_finish_eval |
| 10741 | |
| 10742 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 10743 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 10744 | |
| 10745 | # Transform the output of nm in a proper C declaration |
| 10746 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 10747 | |
| 10748 | # Transform the output of nm in a C name address pair |
| 10749 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 10750 | |
| 10751 | # This is the shared library runtime path variable. |
| 10752 | runpath_var=$runpath_var |
| 10753 | |
| 10754 | # This is the shared library path variable. |
| 10755 | shlibpath_var=$shlibpath_var |
| 10756 | |
| 10757 | # Is shlibpath searched before the hard-coded library search path? |
| 10758 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 10759 | |
| 10760 | # How to hardcode a shared library path into an executable. |
| 10761 | hardcode_action=$hardcode_action |
| 10762 | |
| 10763 | # Whether we should hardcode library paths into libraries. |
| 10764 | hardcode_into_libs=$hardcode_into_libs |
| 10765 | |
| 10766 | # Flag to hardcode \$libdir into a binary during linking. |
| 10767 | # This must work even if \$libdir does not exist. |
| 10768 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 10769 | |
| 10770 | # If ld is used when linking, flag to hardcode \$libdir into |
| 10771 | # a binary during linking. This must work even if \$libdir does |
| 10772 | # not exist. |
| 10773 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 10774 | |
| 10775 | # Whether we need a single -rpath flag with a separated argument. |
| 10776 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 10777 | |
| 10778 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 10779 | # resulting binary. |
| 10780 | hardcode_direct=$hardcode_direct |
| 10781 | |
| 10782 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 10783 | # resulting binary. |
| 10784 | hardcode_minus_L=$hardcode_minus_L |
| 10785 | |
| 10786 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 10787 | # the resulting binary. |
| 10788 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 10789 | |
| 10790 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 10791 | # and all subsequent libraries and executables linked against it. |
| 10792 | hardcode_automatic=$hardcode_automatic |
| 10793 | |
| 10794 | # Variables whose values should be saved in libtool wrapper scripts and |
| 10795 | # restored at relink time. |
| 10796 | variables_saved_for_relink="$variables_saved_for_relink" |
| 10797 | |
| 10798 | # Whether libtool must link a program against all its dependency libraries. |
| 10799 | link_all_deplibs=$link_all_deplibs |
| 10800 | |
| 10801 | # Compile-time system search path for libraries |
| 10802 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 10803 | |
| 10804 | # Run-time system search path for libraries |
| 10805 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 10806 | |
| 10807 | # Fix the shell variable \$srcfile for the compiler. |
| 10808 | fix_srcfile_path="$fix_srcfile_path" |
| 10809 | |
| 10810 | # Set to yes if exported symbols are required. |
| 10811 | always_export_symbols=$always_export_symbols |
| 10812 | |
| 10813 | # The commands to list exported symbols. |
| 10814 | export_symbols_cmds=$lt_export_symbols_cmds |
| 10815 | |
| 10816 | # The commands to extract the exported symbol list from a shared archive. |
| 10817 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 10818 | |
| 10819 | # Symbols that should not be listed in the preloaded symbols. |
| 10820 | exclude_expsyms=$lt_exclude_expsyms |
| 10821 | |
| 10822 | # Symbols that must always be exported. |
| 10823 | include_expsyms=$lt_include_expsyms |
| 10824 | |
| 10825 | # ### END LIBTOOL CONFIG |
| 10826 | |
| 10827 | __EOF__ |
| 10828 | |
| 10829 | |
| 10830 | case $host_os in |
| 10831 | aix3*) |
| 10832 | cat <<\EOF >> "$cfgfile" |
| 10833 | |
| 10834 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 10835 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 10836 | # vanish in a puff of smoke. |
| 10837 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 10838 | COLLECT_NAMES= |
| 10839 | export COLLECT_NAMES |
| 10840 | fi |
| 10841 | EOF |
| 10842 | ;; |
| 10843 | esac |
| 10844 | |
| 10845 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 10846 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 10847 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 10848 | # is reportedly fixed, but why not run on old versions too? |
| 10849 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
| 10850 | |
| 10851 | mv -f "$cfgfile" "$ofile" || \ |
| 10852 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 10853 | chmod +x "$ofile" |
| 10854 | |
| 10855 | else |
| 10856 | # If there is no Makefile yet, we rely on a make rule to execute |
| 10857 | # `config.status --recheck' to rerun these tests and create the |
| 10858 | # libtool script then. |
| 10859 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 10860 | if test -f "$ltmain_in"; then |
| 10861 | test -f Makefile && make "$ltmain" |
| 10862 | fi |
| 10863 | fi |
| 10864 | |
| 10865 | |
| 10866 | ac_ext=c |
| 10867 | ac_cpp='$CPP $CPPFLAGS' |
| 10868 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10869 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10870 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10871 | |
| 10872 | CC="$lt_save_CC" |
| 10873 | |
| 10874 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 10875 | # Check whether --with-tags was given. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10876 | if test "${with_tags+set}" = set; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 10877 | withval=$with_tags; tagnames="$withval" |
| 10878 | fi |
| 10879 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10880 | |
| 10881 | if test -f "$ltmain" && test -n "$tagnames"; then |
| 10882 | if test ! -f "${ofile}"; then |
| 10883 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
| 10884 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
| 10885 | fi |
| 10886 | |
| 10887 | if test -z "$LTCC"; then |
| 10888 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
| 10889 | if test -z "$LTCC"; then |
| 10890 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
| 10891 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
| 10892 | else |
| 10893 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
| 10894 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
| 10895 | fi |
| 10896 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 10897 | if test -z "$LTCFLAGS"; then |
| 10898 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
| 10899 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10900 | |
| 10901 | # Extract list of available tagged configurations in $ofile. |
| 10902 | # Note that this assumes the entire list is on one line. |
| 10903 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
| 10904 | |
| 10905 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 10906 | for tagname in $tagnames; do |
| 10907 | IFS="$lt_save_ifs" |
| 10908 | # Check whether tagname contains only valid characters |
| 10909 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
| 10910 | "") ;; |
| 10911 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
| 10912 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
| 10913 | { (exit 1); exit 1; }; } |
| 10914 | ;; |
| 10915 | esac |
| 10916 | |
| 10917 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
| 10918 | then |
| 10919 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
| 10920 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
| 10921 | { (exit 1); exit 1; }; } |
| 10922 | fi |
| 10923 | |
| 10924 | # Update the list of available tags. |
| 10925 | if test -n "$tagname"; then |
| 10926 | echo appending configuration tag \"$tagname\" to $ofile |
| 10927 | |
| 10928 | case $tagname in |
| 10929 | CXX) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 10930 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 10931 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 10932 | (test "X$CXX" != "Xg++"))) ; then |
| 10933 | ac_ext=cpp |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10934 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 10935 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10936 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10937 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 10938 | |
| 10939 | |
| 10940 | |
| 10941 | |
| 10942 | archive_cmds_need_lc_CXX=no |
| 10943 | allow_undefined_flag_CXX= |
| 10944 | always_export_symbols_CXX=no |
| 10945 | archive_expsym_cmds_CXX= |
| 10946 | export_dynamic_flag_spec_CXX= |
| 10947 | hardcode_direct_CXX=no |
| 10948 | hardcode_libdir_flag_spec_CXX= |
| 10949 | hardcode_libdir_flag_spec_ld_CXX= |
| 10950 | hardcode_libdir_separator_CXX= |
| 10951 | hardcode_minus_L_CXX=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 10952 | hardcode_shlibpath_var_CXX=unsupported |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10953 | hardcode_automatic_CXX=no |
| 10954 | module_cmds_CXX= |
| 10955 | module_expsym_cmds_CXX= |
| 10956 | link_all_deplibs_CXX=unknown |
| 10957 | old_archive_cmds_CXX=$old_archive_cmds |
| 10958 | no_undefined_flag_CXX= |
| 10959 | whole_archive_flag_spec_CXX= |
| 10960 | enable_shared_with_static_runtimes_CXX=no |
| 10961 | |
| 10962 | # Dependencies to place before and after the object being linked: |
| 10963 | predep_objects_CXX= |
| 10964 | postdep_objects_CXX= |
| 10965 | predeps_CXX= |
| 10966 | postdeps_CXX= |
| 10967 | compiler_lib_search_path_CXX= |
| 10968 | |
| 10969 | # Source file extension for C++ test sources. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 10970 | ac_ext=cpp |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10971 | |
| 10972 | # Object file extension for compiled C++ test sources. |
| 10973 | objext=o |
| 10974 | objext_CXX=$objext |
| 10975 | |
| 10976 | # Code to be used in simple compile tests |
| 10977 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 10978 | |
| 10979 | # Code to be used in simple link tests |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 10980 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10981 | |
| 10982 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 10983 | |
| 10984 | # If no C compiler was specified, use CC. |
| 10985 | LTCC=${LTCC-"$CC"} |
| 10986 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 10987 | # If no C compiler flags were specified, use CFLAGS. |
| 10988 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 10989 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10990 | # Allow CC to be a program name with arguments. |
| 10991 | compiler=$CC |
| 10992 | |
| 10993 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 10994 | # save warnings/boilerplate of simple test code |
| 10995 | ac_outfile=conftest.$ac_objext |
| 10996 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 10997 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 10998 | _lt_compiler_boilerplate=`cat conftest.err` |
| 10999 | $rm conftest* |
| 11000 | |
| 11001 | ac_outfile=conftest.$ac_objext |
| 11002 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 11003 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 11004 | _lt_linker_boilerplate=`cat conftest.err` |
| 11005 | $rm conftest* |
| 11006 | |
| 11007 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11008 | # Allow CC to be a program name with arguments. |
| 11009 | lt_save_CC=$CC |
| 11010 | lt_save_LD=$LD |
| 11011 | lt_save_GCC=$GCC |
| 11012 | GCC=$GXX |
| 11013 | lt_save_with_gnu_ld=$with_gnu_ld |
| 11014 | lt_save_path_LD=$lt_cv_path_LD |
| 11015 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 11016 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 11017 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11018 | $as_unset lt_cv_prog_gnu_ld |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11019 | fi |
| 11020 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 11021 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 11022 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11023 | $as_unset lt_cv_path_LD |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11024 | fi |
| 11025 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 11026 | CC=${CXX-"c++"} |
| 11027 | compiler=$CC |
| 11028 | compiler_CXX=$CC |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11029 | for cc_temp in $compiler""; do |
| 11030 | case $cc_temp in |
| 11031 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 11032 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 11033 | \-*) ;; |
| 11034 | *) break;; |
| 11035 | esac |
| 11036 | done |
| 11037 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 11038 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11039 | |
| 11040 | # We don't want -fno-exception wen compiling C++ code, so set the |
| 11041 | # no_builtin_flag separately |
| 11042 | if test "$GXX" = yes; then |
| 11043 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 11044 | else |
| 11045 | lt_prog_compiler_no_builtin_flag_CXX= |
| 11046 | fi |
| 11047 | |
| 11048 | if test "$GXX" = yes; then |
| 11049 | # Set up default GNU C++ configuration |
| 11050 | |
| 11051 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11052 | # Check whether --with-gnu-ld was given. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11053 | if test "${with_gnu_ld+set}" = set; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11054 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11055 | else |
| 11056 | with_gnu_ld=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11057 | fi |
| 11058 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11059 | ac_prog=ld |
| 11060 | if test "$GCC" = yes; then |
| 11061 | # Check if gcc -print-prog-name=ld gives a path. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11062 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 11063 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11064 | case $host in |
| 11065 | *-*-mingw*) |
| 11066 | # gcc leaves a trailing carriage return which upsets mingw |
| 11067 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 11068 | *) |
| 11069 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 11070 | esac |
| 11071 | case $ac_prog in |
| 11072 | # Accept absolute paths. |
| 11073 | [\\/]* | ?:[\\/]*) |
| 11074 | re_direlt='/[^/][^/]*/\.\./' |
| 11075 | # Canonicalize the pathname of ld |
| 11076 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 11077 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 11078 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 11079 | done |
| 11080 | test -z "$LD" && LD="$ac_prog" |
| 11081 | ;; |
| 11082 | "") |
| 11083 | # If it fails, then pretend we aren't using GCC. |
| 11084 | ac_prog=ld |
| 11085 | ;; |
| 11086 | *) |
| 11087 | # If it is relative, then search for the first ld in PATH. |
| 11088 | with_gnu_ld=unknown |
| 11089 | ;; |
| 11090 | esac |
| 11091 | elif test "$with_gnu_ld" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11092 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 11093 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11094 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11095 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 11096 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11097 | fi |
| 11098 | if test "${lt_cv_path_LD+set}" = set; then |
| 11099 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11100 | else |
| 11101 | if test -z "$LD"; then |
| 11102 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 11103 | for ac_dir in $PATH; do |
| 11104 | IFS="$lt_save_ifs" |
| 11105 | test -z "$ac_dir" && ac_dir=. |
| 11106 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 11107 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 11108 | # 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^] | 11109 | # but apparently some variants of GNU ld only accept -v. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11110 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 11111 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 11112 | *GNU* | *'with BFD'*) |
| 11113 | test "$with_gnu_ld" != no && break |
| 11114 | ;; |
| 11115 | *) |
| 11116 | test "$with_gnu_ld" != yes && break |
| 11117 | ;; |
| 11118 | esac |
| 11119 | fi |
| 11120 | done |
| 11121 | IFS="$lt_save_ifs" |
| 11122 | else |
| 11123 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 11124 | fi |
| 11125 | fi |
| 11126 | |
| 11127 | LD="$lt_cv_path_LD" |
| 11128 | if test -n "$LD"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11129 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 11130 | echo "${ECHO_T}$LD" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11131 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11132 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11133 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11134 | fi |
| 11135 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 11136 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 11137 | { (exit 1); exit 1; }; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11138 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 11139 | 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] | 11140 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 11141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11142 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11143 | # 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] | 11144 | case `$LD -v 2>&1 </dev/null` in |
| 11145 | *GNU* | *'with BFD'*) |
| 11146 | lt_cv_prog_gnu_ld=yes |
| 11147 | ;; |
| 11148 | *) |
| 11149 | lt_cv_prog_gnu_ld=no |
| 11150 | ;; |
| 11151 | esac |
| 11152 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11153 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 11154 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11155 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 11156 | |
| 11157 | |
| 11158 | |
| 11159 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 11160 | # archiving commands below assume that GNU ld is being used. |
| 11161 | if test "$with_gnu_ld" = yes; then |
| 11162 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11163 | 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' |
| 11164 | |
| 11165 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 11166 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 11167 | |
| 11168 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 11169 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 11170 | # investigate it a little bit more. (MM) |
| 11171 | wlarc='${wl}' |
| 11172 | |
| 11173 | # ancient GNU ld didn't support --whole-archive et. al. |
| 11174 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
| 11175 | grep 'no-whole-archive' > /dev/null; then |
| 11176 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 11177 | else |
| 11178 | whole_archive_flag_spec_CXX= |
| 11179 | fi |
| 11180 | else |
| 11181 | with_gnu_ld=no |
| 11182 | wlarc= |
| 11183 | |
| 11184 | # A generic and very simple default shared library creation |
| 11185 | # command for GNU C++ for the case where it uses the native |
| 11186 | # linker, instead of GNU ld. If possible, this setting should |
| 11187 | # overridden to take advantage of the native linker features on |
| 11188 | # the platform it is being used on. |
| 11189 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 11190 | fi |
| 11191 | |
| 11192 | # Commands to make compiler produce verbose output that lists |
| 11193 | # what "hidden" libraries, object files and flags are used when |
| 11194 | # linking a shared library. |
| 11195 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 11196 | |
| 11197 | else |
| 11198 | GXX=no |
| 11199 | with_gnu_ld=no |
| 11200 | wlarc= |
| 11201 | fi |
| 11202 | |
| 11203 | # PORTME: fill in a description of your system's C++ link characteristics |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11204 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 11205 | 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] | 11206 | ld_shlibs_CXX=yes |
| 11207 | case $host_os in |
| 11208 | aix3*) |
| 11209 | # FIXME: insert proper C++ library support |
| 11210 | ld_shlibs_CXX=no |
| 11211 | ;; |
| 11212 | aix4* | aix5*) |
| 11213 | if test "$host_cpu" = ia64; then |
| 11214 | # On IA64, the linker does run time linking by default, so we don't |
| 11215 | # have to do anything special. |
| 11216 | aix_use_runtimelinking=no |
| 11217 | exp_sym_flag='-Bexport' |
| 11218 | no_entry_flag="" |
| 11219 | else |
| 11220 | aix_use_runtimelinking=no |
| 11221 | |
| 11222 | # Test if we are trying to use run time linking or normal |
| 11223 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 11224 | # need to do runtime linking. |
| 11225 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 11226 | for ld_flag in $LDFLAGS; do |
| 11227 | case $ld_flag in |
| 11228 | *-brtl*) |
| 11229 | aix_use_runtimelinking=yes |
| 11230 | break |
| 11231 | ;; |
| 11232 | esac |
| 11233 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11234 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11235 | esac |
| 11236 | |
| 11237 | exp_sym_flag='-bexport' |
| 11238 | no_entry_flag='-bnoentry' |
| 11239 | fi |
| 11240 | |
| 11241 | # When large executables or shared objects are built, AIX ld can |
| 11242 | # have problems creating the table of contents. If linking a library |
| 11243 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 11244 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 11245 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 11246 | |
| 11247 | archive_cmds_CXX='' |
| 11248 | hardcode_direct_CXX=yes |
| 11249 | hardcode_libdir_separator_CXX=':' |
| 11250 | link_all_deplibs_CXX=yes |
| 11251 | |
| 11252 | if test "$GXX" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11253 | case $host_os in aix4.[012]|aix4.[012].*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11254 | # We only want to do this on AIX 4.2 and lower, the check |
| 11255 | # below for broken collect2 doesn't work under 4.3+ |
| 11256 | collect2name=`${CC} -print-prog-name=collect2` |
| 11257 | if test -f "$collect2name" && \ |
| 11258 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 11259 | then |
| 11260 | # We have reworked collect2 |
| 11261 | hardcode_direct_CXX=yes |
| 11262 | else |
| 11263 | # We have old collect2 |
| 11264 | hardcode_direct_CXX=unsupported |
| 11265 | # It fails to find uninstalled libraries when the uninstalled |
| 11266 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 11267 | # to unsupported forces relinking |
| 11268 | hardcode_minus_L_CXX=yes |
| 11269 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 11270 | hardcode_libdir_separator_CXX= |
| 11271 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11272 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11273 | esac |
| 11274 | shared_flag='-shared' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11275 | if test "$aix_use_runtimelinking" = yes; then |
| 11276 | shared_flag="$shared_flag "'${wl}-G' |
| 11277 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11278 | else |
| 11279 | # not using gcc |
| 11280 | if test "$host_cpu" = ia64; then |
| 11281 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 11282 | # chokes on -Wl,-G. The following line is correct: |
| 11283 | shared_flag='-G' |
| 11284 | else |
| 11285 | if test "$aix_use_runtimelinking" = yes; then |
| 11286 | shared_flag='${wl}-G' |
| 11287 | else |
| 11288 | shared_flag='${wl}-bM:SRE' |
| 11289 | fi |
| 11290 | fi |
| 11291 | fi |
| 11292 | |
| 11293 | # It seems that -bexpall does not export symbols beginning with |
| 11294 | # underscore (_), so it is better to generate a list of symbols to export. |
| 11295 | always_export_symbols_CXX=yes |
| 11296 | if test "$aix_use_runtimelinking" = yes; then |
| 11297 | # Warning - without using the other runtime loading flags (-brtl), |
| 11298 | # -berok will link without error, but may produce a broken library. |
| 11299 | allow_undefined_flag_CXX='-berok' |
| 11300 | # Determine the default libpath from the value encoded in an empty executable. |
| 11301 | cat >conftest.$ac_ext <<_ACEOF |
| 11302 | /* confdefs.h. */ |
| 11303 | _ACEOF |
| 11304 | cat confdefs.h >>conftest.$ac_ext |
| 11305 | cat >>conftest.$ac_ext <<_ACEOF |
| 11306 | /* end confdefs.h. */ |
| 11307 | |
| 11308 | int |
| 11309 | main () |
| 11310 | { |
| 11311 | |
| 11312 | ; |
| 11313 | return 0; |
| 11314 | } |
| 11315 | _ACEOF |
| 11316 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11317 | if { (ac_try="$ac_link" |
| 11318 | case "(($ac_try" in |
| 11319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11320 | *) ac_try_echo=$ac_try;; |
| 11321 | esac |
| 11322 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11323 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11324 | ac_status=$? |
| 11325 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11326 | rm -f conftest.er1 |
| 11327 | cat conftest.err >&5 |
| 11328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11329 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11330 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 11331 | { (case "(($ac_try" in |
| 11332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11333 | *) ac_try_echo=$ac_try;; |
| 11334 | esac |
| 11335 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11336 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11337 | ac_status=$? |
| 11338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11339 | (exit $ac_status); }; } && |
| 11340 | { ac_try='test -s conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11341 | { (case "(($ac_try" in |
| 11342 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11343 | *) ac_try_echo=$ac_try;; |
| 11344 | esac |
| 11345 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11346 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11347 | ac_status=$? |
| 11348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11349 | (exit $ac_status); }; }; then |
| 11350 | |
| 11351 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 11352 | }'` |
| 11353 | # Check for a 64-bit object if we didn't find anything. |
| 11354 | 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; } |
| 11355 | }'`; fi |
| 11356 | else |
| 11357 | echo "$as_me: failed program was:" >&5 |
| 11358 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11359 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11360 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11361 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11362 | |
| 11363 | rm -f core conftest.err conftest.$ac_objext \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11364 | conftest$ac_exeext conftest.$ac_ext |
| 11365 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 11366 | |
| 11367 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 11368 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11369 | 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] | 11370 | else |
| 11371 | if test "$host_cpu" = ia64; then |
| 11372 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 11373 | allow_undefined_flag_CXX="-z nodefs" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11374 | 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] | 11375 | else |
| 11376 | # Determine the default libpath from the value encoded in an empty executable. |
| 11377 | cat >conftest.$ac_ext <<_ACEOF |
| 11378 | /* confdefs.h. */ |
| 11379 | _ACEOF |
| 11380 | cat confdefs.h >>conftest.$ac_ext |
| 11381 | cat >>conftest.$ac_ext <<_ACEOF |
| 11382 | /* end confdefs.h. */ |
| 11383 | |
| 11384 | int |
| 11385 | main () |
| 11386 | { |
| 11387 | |
| 11388 | ; |
| 11389 | return 0; |
| 11390 | } |
| 11391 | _ACEOF |
| 11392 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11393 | if { (ac_try="$ac_link" |
| 11394 | case "(($ac_try" in |
| 11395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11396 | *) ac_try_echo=$ac_try;; |
| 11397 | esac |
| 11398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11399 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11400 | ac_status=$? |
| 11401 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11402 | rm -f conftest.er1 |
| 11403 | cat conftest.err >&5 |
| 11404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11405 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11406 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 11407 | { (case "(($ac_try" in |
| 11408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11409 | *) ac_try_echo=$ac_try;; |
| 11410 | esac |
| 11411 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11412 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11413 | ac_status=$? |
| 11414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11415 | (exit $ac_status); }; } && |
| 11416 | { ac_try='test -s conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11417 | { (case "(($ac_try" in |
| 11418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11419 | *) ac_try_echo=$ac_try;; |
| 11420 | esac |
| 11421 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11422 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11423 | ac_status=$? |
| 11424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11425 | (exit $ac_status); }; }; then |
| 11426 | |
| 11427 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 11428 | }'` |
| 11429 | # Check for a 64-bit object if we didn't find anything. |
| 11430 | 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; } |
| 11431 | }'`; fi |
| 11432 | else |
| 11433 | echo "$as_me: failed program was:" >&5 |
| 11434 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11435 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11436 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11437 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11438 | |
| 11439 | rm -f core conftest.err conftest.$ac_objext \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11440 | conftest$ac_exeext conftest.$ac_ext |
| 11441 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 11442 | |
| 11443 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 11444 | # Warning - without using the other run time loading flags, |
| 11445 | # -berok will link without error, but may produce a broken library. |
| 11446 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 11447 | allow_undefined_flag_CXX=' ${wl}-berok' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11448 | # Exported symbols can be pulled into shared objects from archives |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11449 | whole_archive_flag_spec_CXX='$convenience' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11450 | archive_cmds_need_lc_CXX=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11451 | # This is similar to how AIX traditionally builds its shared libraries. |
| 11452 | 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] | 11453 | fi |
| 11454 | fi |
| 11455 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11456 | |
| 11457 | beos*) |
| 11458 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 11459 | allow_undefined_flag_CXX=unsupported |
| 11460 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 11461 | # support --undefined. This deserves some investigation. FIXME |
| 11462 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11463 | else |
| 11464 | ld_shlibs_CXX=no |
| 11465 | fi |
| 11466 | ;; |
| 11467 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11468 | chorus*) |
| 11469 | case $cc_basename in |
| 11470 | *) |
| 11471 | # FIXME: insert proper C++ library support |
| 11472 | ld_shlibs_CXX=no |
| 11473 | ;; |
| 11474 | esac |
| 11475 | ;; |
| 11476 | |
| 11477 | cygwin* | mingw* | pw32*) |
| 11478 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 11479 | # as there is no search path for DLLs. |
| 11480 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 11481 | allow_undefined_flag_CXX=unsupported |
| 11482 | always_export_symbols_CXX=no |
| 11483 | enable_shared_with_static_runtimes_CXX=yes |
| 11484 | |
| 11485 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11486 | 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] | 11487 | # If the export-symbols file already is a .def file (1st line |
| 11488 | # is EXPORTS), use it as is; otherwise, prepend... |
| 11489 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 11490 | cp $export_symbols $output_objdir/$soname.def; |
| 11491 | else |
| 11492 | echo EXPORTS > $output_objdir/$soname.def; |
| 11493 | cat $export_symbols >> $output_objdir/$soname.def; |
| 11494 | fi~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11495 | $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] | 11496 | else |
| 11497 | ld_shlibs_CXX=no |
| 11498 | fi |
| 11499 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11500 | darwin* | rhapsody*) |
| 11501 | case $host_os in |
| 11502 | rhapsody* | darwin1.[012]) |
| 11503 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
| 11504 | ;; |
| 11505 | *) # Darwin 1.3 on |
| 11506 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 11507 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 11508 | else |
| 11509 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 11510 | 10.[012]) |
| 11511 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 11512 | ;; |
| 11513 | 10.*) |
| 11514 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
| 11515 | ;; |
| 11516 | esac |
| 11517 | fi |
| 11518 | ;; |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 11519 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11520 | archive_cmds_need_lc_CXX=no |
| 11521 | hardcode_direct_CXX=no |
| 11522 | hardcode_automatic_CXX=yes |
| 11523 | hardcode_shlibpath_var_CXX=unsupported |
| 11524 | whole_archive_flag_spec_CXX='' |
| 11525 | link_all_deplibs_CXX=yes |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 11526 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11527 | if test "$GXX" = yes ; then |
| 11528 | lt_int_apple_cc_single_mod=no |
| 11529 | output_verbose_link_cmd='echo' |
| 11530 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
| 11531 | lt_int_apple_cc_single_mod=yes |
| 11532 | fi |
| 11533 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 11534 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 11535 | else |
| 11536 | 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' |
| 11537 | fi |
| 11538 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 11539 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 11540 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 11541 | 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}' |
| 11542 | else |
| 11543 | 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}' |
| 11544 | fi |
| 11545 | 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}' |
| 11546 | else |
| 11547 | case $cc_basename in |
| 11548 | xlc*) |
| 11549 | output_verbose_link_cmd='echo' |
| 11550 | 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' |
| 11551 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 11552 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 11553 | 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}' |
| 11554 | 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}' |
| 11555 | ;; |
| 11556 | *) |
| 11557 | ld_shlibs_CXX=no |
| 11558 | ;; |
| 11559 | esac |
| 11560 | fi |
| 11561 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11562 | |
| 11563 | dgux*) |
| 11564 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11565 | ec++*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11566 | # FIXME: insert proper C++ library support |
| 11567 | ld_shlibs_CXX=no |
| 11568 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11569 | ghcx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11570 | # Green Hills C++ Compiler |
| 11571 | # FIXME: insert proper C++ library support |
| 11572 | ld_shlibs_CXX=no |
| 11573 | ;; |
| 11574 | *) |
| 11575 | # FIXME: insert proper C++ library support |
| 11576 | ld_shlibs_CXX=no |
| 11577 | ;; |
| 11578 | esac |
| 11579 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11580 | freebsd[12]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11581 | # C++ shared libraries reported to be fairly broken before switch to ELF |
| 11582 | ld_shlibs_CXX=no |
| 11583 | ;; |
| 11584 | freebsd-elf*) |
| 11585 | archive_cmds_need_lc_CXX=no |
| 11586 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11587 | freebsd* | kfreebsd*-gnu | dragonfly*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11588 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 11589 | # conventions |
| 11590 | ld_shlibs_CXX=yes |
| 11591 | ;; |
| 11592 | gnu*) |
| 11593 | ;; |
| 11594 | hpux9*) |
| 11595 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 11596 | hardcode_libdir_separator_CXX=: |
| 11597 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 11598 | hardcode_direct_CXX=yes |
| 11599 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 11600 | # but as the default |
| 11601 | # location of the library. |
| 11602 | |
| 11603 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11604 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11605 | # FIXME: insert proper C++ library support |
| 11606 | ld_shlibs_CXX=no |
| 11607 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11608 | aCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11609 | 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' |
| 11610 | # Commands to make compiler produce verbose output that lists |
| 11611 | # what "hidden" libraries, object files and flags are used when |
| 11612 | # linking a shared library. |
| 11613 | # |
| 11614 | # There doesn't appear to be a way to prevent this compiler from |
| 11615 | # explicitly linking system object files so we need to strip them |
| 11616 | # from the output so that they don't get included in the library |
| 11617 | # dependencies. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11618 | 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] | 11619 | ;; |
| 11620 | *) |
| 11621 | if test "$GXX" = yes; then |
| 11622 | 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' |
| 11623 | else |
| 11624 | # FIXME: insert proper C++ library support |
| 11625 | ld_shlibs_CXX=no |
| 11626 | fi |
| 11627 | ;; |
| 11628 | esac |
| 11629 | ;; |
| 11630 | hpux10*|hpux11*) |
| 11631 | if test $with_gnu_ld = no; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11632 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 11633 | hardcode_libdir_separator_CXX=: |
| 11634 | |
| 11635 | case $host_cpu in |
| 11636 | hppa*64*|ia64*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11637 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11638 | ;; |
| 11639 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11640 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 11641 | ;; |
| 11642 | esac |
| 11643 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11644 | case $host_cpu in |
| 11645 | hppa*64*|ia64*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11646 | hardcode_direct_CXX=no |
| 11647 | hardcode_shlibpath_var_CXX=no |
| 11648 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11649 | *) |
| 11650 | hardcode_direct_CXX=yes |
| 11651 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 11652 | # but as the default |
| 11653 | # location of the library. |
| 11654 | ;; |
| 11655 | esac |
| 11656 | |
| 11657 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11658 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11659 | # FIXME: insert proper C++ library support |
| 11660 | ld_shlibs_CXX=no |
| 11661 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11662 | aCC*) |
| 11663 | case $host_cpu in |
| 11664 | hppa*64*) |
| 11665 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 11666 | ;; |
| 11667 | ia64*) |
| 11668 | 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] | 11669 | ;; |
| 11670 | *) |
| 11671 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 11672 | ;; |
| 11673 | esac |
| 11674 | # Commands to make compiler produce verbose output that lists |
| 11675 | # what "hidden" libraries, object files and flags are used when |
| 11676 | # linking a shared library. |
| 11677 | # |
| 11678 | # There doesn't appear to be a way to prevent this compiler from |
| 11679 | # explicitly linking system object files so we need to strip them |
| 11680 | # from the output so that they don't get included in the library |
| 11681 | # dependencies. |
| 11682 | 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' |
| 11683 | ;; |
| 11684 | *) |
| 11685 | if test "$GXX" = yes; then |
| 11686 | if test $with_gnu_ld = no; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11687 | case $host_cpu in |
| 11688 | hppa*64*) |
| 11689 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 11690 | ;; |
| 11691 | ia64*) |
| 11692 | 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] | 11693 | ;; |
| 11694 | *) |
| 11695 | 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' |
| 11696 | ;; |
| 11697 | esac |
| 11698 | fi |
| 11699 | else |
| 11700 | # FIXME: insert proper C++ library support |
| 11701 | ld_shlibs_CXX=no |
| 11702 | fi |
| 11703 | ;; |
| 11704 | esac |
| 11705 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11706 | interix3*) |
| 11707 | hardcode_direct_CXX=no |
| 11708 | hardcode_shlibpath_var_CXX=no |
| 11709 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 11710 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 11711 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 11712 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 11713 | # default) and relocated if they conflict, which is a slow very memory |
| 11714 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 11715 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 11716 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 11717 | 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' |
| 11718 | 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' |
| 11719 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11720 | irix5* | irix6*) |
| 11721 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11722 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11723 | # SGI C++ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11724 | 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] | 11725 | |
| 11726 | # Archives containing C++ object files must be created using |
| 11727 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 11728 | # necessary to make sure instantiated templates are included |
| 11729 | # in the archive. |
| 11730 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 11731 | ;; |
| 11732 | *) |
| 11733 | if test "$GXX" = yes; then |
| 11734 | if test "$with_gnu_ld" = no; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11735 | 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] | 11736 | else |
| 11737 | 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' |
| 11738 | fi |
| 11739 | fi |
| 11740 | link_all_deplibs_CXX=yes |
| 11741 | ;; |
| 11742 | esac |
| 11743 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 11744 | hardcode_libdir_separator_CXX=: |
| 11745 | ;; |
| 11746 | linux*) |
| 11747 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11748 | KCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11749 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 11750 | |
| 11751 | # KCC will only create a shared library if the output file |
| 11752 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 11753 | # to its proper name (with version) after linking. |
| 11754 | 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' |
| 11755 | 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' |
| 11756 | # Commands to make compiler produce verbose output that lists |
| 11757 | # what "hidden" libraries, object files and flags are used when |
| 11758 | # linking a shared library. |
| 11759 | # |
| 11760 | # There doesn't appear to be a way to prevent this compiler from |
| 11761 | # explicitly linking system object files so we need to strip them |
| 11762 | # from the output so that they don't get included in the library |
| 11763 | # dependencies. |
| 11764 | 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' |
| 11765 | |
| 11766 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
| 11767 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 11768 | |
| 11769 | # Archives containing C++ object files must be created using |
| 11770 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 11771 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 11772 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11773 | icpc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11774 | # Intel C++ |
| 11775 | with_gnu_ld=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11776 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 11777 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 11778 | # earlier do not add the objects themselves. |
| 11779 | case `$CC -V 2>&1` in |
| 11780 | *"Version 7."*) |
| 11781 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11782 | 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' |
| 11783 | ;; |
| 11784 | *) # Version 8.0 or newer |
| 11785 | tmp_idyn= |
| 11786 | case $host_cpu in |
| 11787 | ia64*) tmp_idyn=' -i_dynamic';; |
| 11788 | esac |
| 11789 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11790 | 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' |
| 11791 | ;; |
| 11792 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11793 | archive_cmds_need_lc_CXX=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11794 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 11795 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 11796 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 11797 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11798 | pgCC*) |
| 11799 | # Portland Group C++ compiler |
| 11800 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 11801 | 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' |
| 11802 | |
| 11803 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 11804 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 11805 | 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' |
| 11806 | ;; |
| 11807 | cxx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11808 | # Compaq C++ |
| 11809 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11810 | 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' |
| 11811 | |
| 11812 | runpath_var=LD_RUN_PATH |
| 11813 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 11814 | hardcode_libdir_separator_CXX=: |
| 11815 | |
| 11816 | # Commands to make compiler produce verbose output that lists |
| 11817 | # what "hidden" libraries, object files and flags are used when |
| 11818 | # linking a shared library. |
| 11819 | # |
| 11820 | # There doesn't appear to be a way to prevent this compiler from |
| 11821 | # explicitly linking system object files so we need to strip them |
| 11822 | # from the output so that they don't get included in the library |
| 11823 | # dependencies. |
| 11824 | 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' |
| 11825 | ;; |
| 11826 | esac |
| 11827 | ;; |
| 11828 | lynxos*) |
| 11829 | # FIXME: insert proper C++ library support |
| 11830 | ld_shlibs_CXX=no |
| 11831 | ;; |
| 11832 | m88k*) |
| 11833 | # FIXME: insert proper C++ library support |
| 11834 | ld_shlibs_CXX=no |
| 11835 | ;; |
| 11836 | mvs*) |
| 11837 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11838 | cxx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11839 | # FIXME: insert proper C++ library support |
| 11840 | ld_shlibs_CXX=no |
| 11841 | ;; |
| 11842 | *) |
| 11843 | # FIXME: insert proper C++ library support |
| 11844 | ld_shlibs_CXX=no |
| 11845 | ;; |
| 11846 | esac |
| 11847 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11848 | netbsd*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11849 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 11850 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 11851 | wlarc= |
| 11852 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 11853 | hardcode_direct_CXX=yes |
| 11854 | hardcode_shlibpath_var_CXX=no |
| 11855 | fi |
| 11856 | # Workaround some broken pre-1.5 toolchains |
| 11857 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 11858 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11859 | openbsd2*) |
| 11860 | # C++ shared libraries are fairly broken |
| 11861 | ld_shlibs_CXX=no |
| 11862 | ;; |
| 11863 | openbsd*) |
| 11864 | hardcode_direct_CXX=yes |
| 11865 | hardcode_shlibpath_var_CXX=no |
| 11866 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 11867 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 11868 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 11869 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| 11870 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 11871 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 11872 | fi |
| 11873 | output_verbose_link_cmd='echo' |
| 11874 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11875 | osf3*) |
| 11876 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11877 | KCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11878 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 11879 | |
| 11880 | # KCC will only create a shared library if the output file |
| 11881 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 11882 | # to its proper name (with version) after linking. |
| 11883 | 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' |
| 11884 | |
| 11885 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 11886 | hardcode_libdir_separator_CXX=: |
| 11887 | |
| 11888 | # Archives containing C++ object files must be created using |
| 11889 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 11890 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 11891 | |
| 11892 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11893 | RCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11894 | # Rational C++ 2.4.1 |
| 11895 | # FIXME: insert proper C++ library support |
| 11896 | ld_shlibs_CXX=no |
| 11897 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11898 | cxx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11899 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11900 | 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] | 11901 | |
| 11902 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 11903 | hardcode_libdir_separator_CXX=: |
| 11904 | |
| 11905 | # Commands to make compiler produce verbose output that lists |
| 11906 | # what "hidden" libraries, object files and flags are used when |
| 11907 | # linking a shared library. |
| 11908 | # |
| 11909 | # There doesn't appear to be a way to prevent this compiler from |
| 11910 | # explicitly linking system object files so we need to strip them |
| 11911 | # from the output so that they don't get included in the library |
| 11912 | # dependencies. |
| 11913 | 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' |
| 11914 | ;; |
| 11915 | *) |
| 11916 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 11917 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11918 | 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] | 11919 | |
| 11920 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 11921 | hardcode_libdir_separator_CXX=: |
| 11922 | |
| 11923 | # Commands to make compiler produce verbose output that lists |
| 11924 | # what "hidden" libraries, object files and flags are used when |
| 11925 | # linking a shared library. |
| 11926 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 11927 | |
| 11928 | else |
| 11929 | # FIXME: insert proper C++ library support |
| 11930 | ld_shlibs_CXX=no |
| 11931 | fi |
| 11932 | ;; |
| 11933 | esac |
| 11934 | ;; |
| 11935 | osf4* | osf5*) |
| 11936 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11937 | KCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11938 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 11939 | |
| 11940 | # KCC will only create a shared library if the output file |
| 11941 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 11942 | # to its proper name (with version) after linking. |
| 11943 | 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' |
| 11944 | |
| 11945 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 11946 | hardcode_libdir_separator_CXX=: |
| 11947 | |
| 11948 | # Archives containing C++ object files must be created using |
| 11949 | # the KAI C++ compiler. |
| 11950 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
| 11951 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11952 | RCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11953 | # Rational C++ 2.4.1 |
| 11954 | # FIXME: insert proper C++ library support |
| 11955 | ld_shlibs_CXX=no |
| 11956 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11957 | cxx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11958 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11959 | 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] | 11960 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 11961 | echo "-hidden">> $lib.exp~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11962 | $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] | 11963 | $rm $lib.exp' |
| 11964 | |
| 11965 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 11966 | hardcode_libdir_separator_CXX=: |
| 11967 | |
| 11968 | # Commands to make compiler produce verbose output that lists |
| 11969 | # what "hidden" libraries, object files and flags are used when |
| 11970 | # linking a shared library. |
| 11971 | # |
| 11972 | # There doesn't appear to be a way to prevent this compiler from |
| 11973 | # explicitly linking system object files so we need to strip them |
| 11974 | # from the output so that they don't get included in the library |
| 11975 | # dependencies. |
| 11976 | 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' |
| 11977 | ;; |
| 11978 | *) |
| 11979 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 11980 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 11981 | 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] | 11982 | |
| 11983 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 11984 | hardcode_libdir_separator_CXX=: |
| 11985 | |
| 11986 | # Commands to make compiler produce verbose output that lists |
| 11987 | # what "hidden" libraries, object files and flags are used when |
| 11988 | # linking a shared library. |
| 11989 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 11990 | |
| 11991 | else |
| 11992 | # FIXME: insert proper C++ library support |
| 11993 | ld_shlibs_CXX=no |
| 11994 | fi |
| 11995 | ;; |
| 11996 | esac |
| 11997 | ;; |
| 11998 | psos*) |
| 11999 | # FIXME: insert proper C++ library support |
| 12000 | ld_shlibs_CXX=no |
| 12001 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12002 | sunos4*) |
| 12003 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12004 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12005 | # Sun C++ 4.x |
| 12006 | # FIXME: insert proper C++ library support |
| 12007 | ld_shlibs_CXX=no |
| 12008 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12009 | lcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12010 | # Lucid |
| 12011 | # FIXME: insert proper C++ library support |
| 12012 | ld_shlibs_CXX=no |
| 12013 | ;; |
| 12014 | *) |
| 12015 | # FIXME: insert proper C++ library support |
| 12016 | ld_shlibs_CXX=no |
| 12017 | ;; |
| 12018 | esac |
| 12019 | ;; |
| 12020 | solaris*) |
| 12021 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12022 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12023 | # Sun C++ 4.2, 5.x and Centerline C++ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12024 | archive_cmds_need_lc_CXX=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12025 | no_undefined_flag_CXX=' -zdefs' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12026 | 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] | 12027 | 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^] | 12028 | $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] | 12029 | |
| 12030 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 12031 | hardcode_shlibpath_var_CXX=no |
| 12032 | case $host_os in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12033 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12034 | *) |
| 12035 | # The C++ compiler is used as linker so we must use $wl |
| 12036 | # flag to pass the commands to the underlying system |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12037 | # linker. We must also pass each convience library through |
| 12038 | # to the system linker between allextract/defaultextract. |
| 12039 | # The C++ compiler will combine linker options so we |
| 12040 | # cannot just pass the convience library names through |
| 12041 | # without $wl. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12042 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12043 | 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] | 12044 | ;; |
| 12045 | esac |
| 12046 | link_all_deplibs_CXX=yes |
| 12047 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12048 | output_verbose_link_cmd='echo' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12049 | |
| 12050 | # Archives containing C++ object files must be created using |
| 12051 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 12052 | # necessary to make sure instantiated templates are included |
| 12053 | # in the archive. |
| 12054 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 12055 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12056 | gcx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12057 | # Green Hills C++ Compiler |
| 12058 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 12059 | |
| 12060 | # The C++ compiler must be used to create the archive. |
| 12061 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 12062 | ;; |
| 12063 | *) |
| 12064 | # GNU C++ compiler with Solaris linker |
| 12065 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 12066 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 12067 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
| 12068 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 12069 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 12070 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 12071 | |
| 12072 | # Commands to make compiler produce verbose output that lists |
| 12073 | # what "hidden" libraries, object files and flags are used when |
| 12074 | # linking a shared library. |
| 12075 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 12076 | else |
| 12077 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 12078 | # platform. |
| 12079 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 12080 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 12081 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 12082 | |
| 12083 | # Commands to make compiler produce verbose output that lists |
| 12084 | # what "hidden" libraries, object files and flags are used when |
| 12085 | # linking a shared library. |
| 12086 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 12087 | fi |
| 12088 | |
| 12089 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 12090 | fi |
| 12091 | ;; |
| 12092 | esac |
| 12093 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12094 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 12095 | no_undefined_flag_CXX='${wl}-z,text' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12096 | archive_cmds_need_lc_CXX=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12097 | hardcode_shlibpath_var_CXX=no |
| 12098 | runpath_var='LD_RUN_PATH' |
| 12099 | |
| 12100 | case $cc_basename in |
| 12101 | CC*) |
| 12102 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12103 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12104 | ;; |
| 12105 | *) |
| 12106 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12107 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12108 | ;; |
| 12109 | esac |
| 12110 | ;; |
| 12111 | sysv5* | sco3.2v5* | sco5v6*) |
| 12112 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 12113 | # link with -lc, and that would cause any symbols used from libc to |
| 12114 | # always be unresolved, which means just about no library would |
| 12115 | # ever link correctly. If we're not using GNU ld we use -z text |
| 12116 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 12117 | # as -z defs. |
| 12118 | # For security reasons, it is highly recommended that you always |
| 12119 | # use absolute paths for naming shared libraries, and exclude the |
| 12120 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 12121 | # requires that you compile everything twice, which is a pain. |
| 12122 | # So that behaviour is only enabled if SCOABSPATH is set to a |
| 12123 | # non-empty value in the environment. Most likely only useful for |
| 12124 | # creating official distributions of packages. |
| 12125 | # This is a hack until libtool officially supports absolute path |
| 12126 | # names for shared libraries. |
| 12127 | no_undefined_flag_CXX='${wl}-z,text' |
| 12128 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
| 12129 | archive_cmds_need_lc_CXX=no |
| 12130 | hardcode_shlibpath_var_CXX=no |
| 12131 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 12132 | hardcode_libdir_separator_CXX=':' |
| 12133 | link_all_deplibs_CXX=yes |
| 12134 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
| 12135 | runpath_var='LD_RUN_PATH' |
| 12136 | |
| 12137 | case $cc_basename in |
| 12138 | CC*) |
| 12139 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12140 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12141 | ;; |
| 12142 | *) |
| 12143 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12144 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12145 | ;; |
| 12146 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12147 | ;; |
| 12148 | tandem*) |
| 12149 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12150 | NCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12151 | # NonStop-UX NCC 3.20 |
| 12152 | # FIXME: insert proper C++ library support |
| 12153 | ld_shlibs_CXX=no |
| 12154 | ;; |
| 12155 | *) |
| 12156 | # FIXME: insert proper C++ library support |
| 12157 | ld_shlibs_CXX=no |
| 12158 | ;; |
| 12159 | esac |
| 12160 | ;; |
| 12161 | vxworks*) |
| 12162 | # FIXME: insert proper C++ library support |
| 12163 | ld_shlibs_CXX=no |
| 12164 | ;; |
| 12165 | *) |
| 12166 | # FIXME: insert proper C++ library support |
| 12167 | ld_shlibs_CXX=no |
| 12168 | ;; |
| 12169 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12170 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 12171 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12172 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 12173 | |
| 12174 | GCC_CXX="$GXX" |
| 12175 | LD_CXX="$LD" |
| 12176 | |
| 12177 | |
| 12178 | cat > conftest.$ac_ext <<EOF |
| 12179 | class Foo |
| 12180 | { |
| 12181 | public: |
| 12182 | Foo (void) { a = 0; } |
| 12183 | private: |
| 12184 | int a; |
| 12185 | }; |
| 12186 | EOF |
| 12187 | |
| 12188 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12189 | (eval $ac_compile) 2>&5 |
| 12190 | ac_status=$? |
| 12191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12192 | (exit $ac_status); }; then |
| 12193 | # Parse the compiler output and extract the necessary |
| 12194 | # objects, libraries and library flags. |
| 12195 | |
| 12196 | # Sentinel used to keep track of whether or not we are before |
| 12197 | # the conftest object file. |
| 12198 | pre_test_object_deps_done=no |
| 12199 | |
| 12200 | # The `*' in the case matches for architectures that use `case' in |
| 12201 | # $output_verbose_cmd can trigger glob expansion during the loop |
| 12202 | # eval without this substitution. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12203 | 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] | 12204 | |
| 12205 | for p in `eval $output_verbose_link_cmd`; do |
| 12206 | case $p in |
| 12207 | |
| 12208 | -L* | -R* | -l*) |
| 12209 | # Some compilers place space between "-{L,R}" and the path. |
| 12210 | # Remove the space. |
| 12211 | if test $p = "-L" \ |
| 12212 | || test $p = "-R"; then |
| 12213 | prev=$p |
| 12214 | continue |
| 12215 | else |
| 12216 | prev= |
| 12217 | fi |
| 12218 | |
| 12219 | if test "$pre_test_object_deps_done" = no; then |
| 12220 | case $p in |
| 12221 | -L* | -R*) |
| 12222 | # Internal compiler library paths should come after those |
| 12223 | # provided the user. The postdeps already come after the |
| 12224 | # user supplied libs so there is no need to process them. |
| 12225 | if test -z "$compiler_lib_search_path_CXX"; then |
| 12226 | compiler_lib_search_path_CXX="${prev}${p}" |
| 12227 | else |
| 12228 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 12229 | fi |
| 12230 | ;; |
| 12231 | # The "-l" case would never come before the object being |
| 12232 | # linked, so don't bother handling this case. |
| 12233 | esac |
| 12234 | else |
| 12235 | if test -z "$postdeps_CXX"; then |
| 12236 | postdeps_CXX="${prev}${p}" |
| 12237 | else |
| 12238 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 12239 | fi |
| 12240 | fi |
| 12241 | ;; |
| 12242 | |
| 12243 | *.$objext) |
| 12244 | # This assumes that the test object file only shows up |
| 12245 | # once in the compiler output. |
| 12246 | if test "$p" = "conftest.$objext"; then |
| 12247 | pre_test_object_deps_done=yes |
| 12248 | continue |
| 12249 | fi |
| 12250 | |
| 12251 | if test "$pre_test_object_deps_done" = no; then |
| 12252 | if test -z "$predep_objects_CXX"; then |
| 12253 | predep_objects_CXX="$p" |
| 12254 | else |
| 12255 | predep_objects_CXX="$predep_objects_CXX $p" |
| 12256 | fi |
| 12257 | else |
| 12258 | if test -z "$postdep_objects_CXX"; then |
| 12259 | postdep_objects_CXX="$p" |
| 12260 | else |
| 12261 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 12262 | fi |
| 12263 | fi |
| 12264 | ;; |
| 12265 | |
| 12266 | *) ;; # Ignore the rest. |
| 12267 | |
| 12268 | esac |
| 12269 | done |
| 12270 | |
| 12271 | # Clean up. |
| 12272 | rm -f a.out a.exe |
| 12273 | else |
| 12274 | echo "libtool.m4: error: problem compiling CXX test program" |
| 12275 | fi |
| 12276 | |
| 12277 | $rm -f confest.$objext |
| 12278 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12279 | # PORTME: override above test on systems where it is broken |
| 12280 | case $host_os in |
| 12281 | interix3*) |
| 12282 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 12283 | # hack all around it, let's just trust "g++" to DTRT. |
| 12284 | predep_objects_CXX= |
| 12285 | postdep_objects_CXX= |
| 12286 | postdeps_CXX= |
| 12287 | ;; |
| 12288 | |
| 12289 | solaris*) |
| 12290 | case $cc_basename in |
| 12291 | CC*) |
| 12292 | # Adding this requires a known-good setup of shared libraries for |
| 12293 | # Sun compiler versions before 5.6, else PIC objects from an old |
| 12294 | # archive will be linked into the output, leading to subtle bugs. |
| 12295 | postdeps_CXX='-lCstd -lCrun' |
| 12296 | ;; |
| 12297 | esac |
| 12298 | ;; |
| 12299 | esac |
| 12300 | |
| 12301 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12302 | case " $postdeps_CXX " in |
| 12303 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 12304 | esac |
| 12305 | |
| 12306 | lt_prog_compiler_wl_CXX= |
| 12307 | lt_prog_compiler_pic_CXX= |
| 12308 | lt_prog_compiler_static_CXX= |
| 12309 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12310 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 12311 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12312 | |
| 12313 | # C++ specific cases for pic, static, wl, etc. |
| 12314 | if test "$GXX" = yes; then |
| 12315 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12316 | lt_prog_compiler_static_CXX='-static' |
| 12317 | |
| 12318 | case $host_os in |
| 12319 | aix*) |
| 12320 | # All AIX code is PIC. |
| 12321 | if test "$host_cpu" = ia64; then |
| 12322 | # AIX 5 now supports IA64 processor |
| 12323 | lt_prog_compiler_static_CXX='-Bstatic' |
| 12324 | fi |
| 12325 | ;; |
| 12326 | amigaos*) |
| 12327 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 12328 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 12329 | # like `-m68040'. |
| 12330 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 12331 | ;; |
| 12332 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 12333 | # PIC is the default for these OSes. |
| 12334 | ;; |
| 12335 | mingw* | os2* | pw32*) |
| 12336 | # This hack is so that the source file can tell whether it is being |
| 12337 | # built for inclusion in a dll (and should export symbols for example). |
| 12338 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 12339 | ;; |
| 12340 | darwin* | rhapsody*) |
| 12341 | # PIC is the default on this platform |
| 12342 | # Common symbols not allowed in MH_DYLIB files |
| 12343 | lt_prog_compiler_pic_CXX='-fno-common' |
| 12344 | ;; |
| 12345 | *djgpp*) |
| 12346 | # DJGPP does not support shared libraries at all |
| 12347 | lt_prog_compiler_pic_CXX= |
| 12348 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12349 | interix3*) |
| 12350 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 12351 | # Instead, we relocate shared libraries at runtime. |
| 12352 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12353 | sysv4*MP*) |
| 12354 | if test -d /usr/nec; then |
| 12355 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 12356 | fi |
| 12357 | ;; |
| 12358 | hpux*) |
| 12359 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 12360 | # not for PA HP-UX. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12361 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12362 | hppa*64*|ia64*) |
| 12363 | ;; |
| 12364 | *) |
| 12365 | lt_prog_compiler_pic_CXX='-fPIC' |
| 12366 | ;; |
| 12367 | esac |
| 12368 | ;; |
| 12369 | *) |
| 12370 | lt_prog_compiler_pic_CXX='-fPIC' |
| 12371 | ;; |
| 12372 | esac |
| 12373 | else |
| 12374 | case $host_os in |
| 12375 | aix4* | aix5*) |
| 12376 | # All AIX code is PIC. |
| 12377 | if test "$host_cpu" = ia64; then |
| 12378 | # AIX 5 now supports IA64 processor |
| 12379 | lt_prog_compiler_static_CXX='-Bstatic' |
| 12380 | else |
| 12381 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 12382 | fi |
| 12383 | ;; |
| 12384 | chorus*) |
| 12385 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12386 | cxch68*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12387 | # Green Hills C++ Compiler |
| 12388 | # _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" |
| 12389 | ;; |
| 12390 | esac |
| 12391 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12392 | darwin*) |
| 12393 | # PIC is the default on this platform |
| 12394 | # Common symbols not allowed in MH_DYLIB files |
| 12395 | case $cc_basename in |
| 12396 | xlc*) |
| 12397 | lt_prog_compiler_pic_CXX='-qnocommon' |
| 12398 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12399 | ;; |
| 12400 | esac |
| 12401 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12402 | dgux*) |
| 12403 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12404 | ec++*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12405 | lt_prog_compiler_pic_CXX='-KPIC' |
| 12406 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12407 | ghcx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12408 | # Green Hills C++ Compiler |
| 12409 | lt_prog_compiler_pic_CXX='-pic' |
| 12410 | ;; |
| 12411 | *) |
| 12412 | ;; |
| 12413 | esac |
| 12414 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12415 | freebsd* | kfreebsd*-gnu | dragonfly*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12416 | # FreeBSD uses GNU C++ |
| 12417 | ;; |
| 12418 | hpux9* | hpux10* | hpux11*) |
| 12419 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12420 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12421 | lt_prog_compiler_wl_CXX='-Wl,' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12422 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12423 | if test "$host_cpu" != ia64; then |
| 12424 | lt_prog_compiler_pic_CXX='+Z' |
| 12425 | fi |
| 12426 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12427 | aCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12428 | lt_prog_compiler_wl_CXX='-Wl,' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12429 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 12430 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12431 | hppa*64*|ia64*) |
| 12432 | # +Z the default |
| 12433 | ;; |
| 12434 | *) |
| 12435 | lt_prog_compiler_pic_CXX='+Z' |
| 12436 | ;; |
| 12437 | esac |
| 12438 | ;; |
| 12439 | *) |
| 12440 | ;; |
| 12441 | esac |
| 12442 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12443 | interix*) |
| 12444 | # This is c89, which is MS Visual C++ (no shared libs) |
| 12445 | # Anyone wants to do a port? |
| 12446 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12447 | irix5* | irix6* | nonstopux*) |
| 12448 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12449 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12450 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12451 | lt_prog_compiler_static_CXX='-non_shared' |
| 12452 | # CC pic flag -KPIC is the default. |
| 12453 | ;; |
| 12454 | *) |
| 12455 | ;; |
| 12456 | esac |
| 12457 | ;; |
| 12458 | linux*) |
| 12459 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12460 | KCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12461 | # KAI C++ Compiler |
| 12462 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 12463 | lt_prog_compiler_pic_CXX='-fPIC' |
| 12464 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12465 | icpc* | ecpc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12466 | # Intel C++ |
| 12467 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12468 | lt_prog_compiler_pic_CXX='-KPIC' |
| 12469 | lt_prog_compiler_static_CXX='-static' |
| 12470 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12471 | pgCC*) |
| 12472 | # Portland Group C++ compiler. |
| 12473 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12474 | lt_prog_compiler_pic_CXX='-fpic' |
| 12475 | lt_prog_compiler_static_CXX='-Bstatic' |
| 12476 | ;; |
| 12477 | cxx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12478 | # Compaq C++ |
| 12479 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 12480 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 12481 | lt_prog_compiler_pic_CXX= |
| 12482 | lt_prog_compiler_static_CXX='-non_shared' |
| 12483 | ;; |
| 12484 | *) |
| 12485 | ;; |
| 12486 | esac |
| 12487 | ;; |
| 12488 | lynxos*) |
| 12489 | ;; |
| 12490 | m88k*) |
| 12491 | ;; |
| 12492 | mvs*) |
| 12493 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12494 | cxx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12495 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 12496 | ;; |
| 12497 | *) |
| 12498 | ;; |
| 12499 | esac |
| 12500 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12501 | netbsd*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12502 | ;; |
| 12503 | osf3* | osf4* | osf5*) |
| 12504 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12505 | KCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12506 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 12507 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12508 | RCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12509 | # Rational C++ 2.4.1 |
| 12510 | lt_prog_compiler_pic_CXX='-pic' |
| 12511 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12512 | cxx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12513 | # Digital/Compaq C++ |
| 12514 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12515 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 12516 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 12517 | lt_prog_compiler_pic_CXX= |
| 12518 | lt_prog_compiler_static_CXX='-non_shared' |
| 12519 | ;; |
| 12520 | *) |
| 12521 | ;; |
| 12522 | esac |
| 12523 | ;; |
| 12524 | psos*) |
| 12525 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12526 | solaris*) |
| 12527 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12528 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12529 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 12530 | lt_prog_compiler_pic_CXX='-KPIC' |
| 12531 | lt_prog_compiler_static_CXX='-Bstatic' |
| 12532 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 12533 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12534 | gcx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12535 | # Green Hills C++ Compiler |
| 12536 | lt_prog_compiler_pic_CXX='-PIC' |
| 12537 | ;; |
| 12538 | *) |
| 12539 | ;; |
| 12540 | esac |
| 12541 | ;; |
| 12542 | sunos4*) |
| 12543 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12544 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12545 | # Sun C++ 4.x |
| 12546 | lt_prog_compiler_pic_CXX='-pic' |
| 12547 | lt_prog_compiler_static_CXX='-Bstatic' |
| 12548 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12549 | lcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12550 | # Lucid |
| 12551 | lt_prog_compiler_pic_CXX='-pic' |
| 12552 | ;; |
| 12553 | *) |
| 12554 | ;; |
| 12555 | esac |
| 12556 | ;; |
| 12557 | tandem*) |
| 12558 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12559 | NCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12560 | # NonStop-UX NCC 3.20 |
| 12561 | lt_prog_compiler_pic_CXX='-KPIC' |
| 12562 | ;; |
| 12563 | *) |
| 12564 | ;; |
| 12565 | esac |
| 12566 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12567 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 12568 | case $cc_basename in |
| 12569 | CC*) |
| 12570 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12571 | lt_prog_compiler_pic_CXX='-KPIC' |
| 12572 | lt_prog_compiler_static_CXX='-Bstatic' |
| 12573 | ;; |
| 12574 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12575 | ;; |
| 12576 | vxworks*) |
| 12577 | ;; |
| 12578 | *) |
| 12579 | lt_prog_compiler_can_build_shared_CXX=no |
| 12580 | ;; |
| 12581 | esac |
| 12582 | fi |
| 12583 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12584 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
| 12585 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12586 | |
| 12587 | # |
| 12588 | # Check to make sure the PIC flag actually works. |
| 12589 | # |
| 12590 | if test -n "$lt_prog_compiler_pic_CXX"; then |
| 12591 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12592 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 12593 | 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] | 12594 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
| 12595 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12596 | else |
| 12597 | lt_prog_compiler_pic_works_CXX=no |
| 12598 | ac_outfile=conftest.$ac_objext |
| 12599 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12600 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 12601 | # Insert the option either (1) after the last *FLAGS variable, or |
| 12602 | # (2) before a word containing "conftest.", or (3) at the end. |
| 12603 | # Note that $ac_compile itself does not contain backslashes and begins |
| 12604 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 12605 | # The option is referenced via a variable to avoid confusing sed. |
| 12606 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12607 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12608 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 12609 | -e 's:$: $lt_compiler_flag:'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12610 | (eval echo "\"\$as_me:12610: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12611 | (eval "$lt_compile" 2>conftest.err) |
| 12612 | ac_status=$? |
| 12613 | cat conftest.err >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12614 | echo "$as_me:12614: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12615 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 12616 | # The compiler can only warn and ignore the option if not recognized |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12617 | # So say no if there are warnings other than the usual output. |
| 12618 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 12619 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 12620 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12621 | lt_prog_compiler_pic_works_CXX=yes |
| 12622 | fi |
| 12623 | fi |
| 12624 | $rm conftest* |
| 12625 | |
| 12626 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12627 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
| 12628 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12629 | |
| 12630 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
| 12631 | case $lt_prog_compiler_pic_CXX in |
| 12632 | "" | " "*) ;; |
| 12633 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 12634 | esac |
| 12635 | else |
| 12636 | lt_prog_compiler_pic_CXX= |
| 12637 | lt_prog_compiler_can_build_shared_CXX=no |
| 12638 | fi |
| 12639 | |
| 12640 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12641 | case $host_os in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12642 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 12643 | *djgpp*) |
| 12644 | lt_prog_compiler_pic_CXX= |
| 12645 | ;; |
| 12646 | *) |
| 12647 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 12648 | ;; |
| 12649 | esac |
| 12650 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12651 | # |
| 12652 | # Check to make sure the static flag actually works. |
| 12653 | # |
| 12654 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
| 12655 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 12656 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 12657 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
| 12658 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12659 | else |
| 12660 | lt_prog_compiler_static_works_CXX=no |
| 12661 | save_LDFLAGS="$LDFLAGS" |
| 12662 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 12663 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 12664 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 12665 | # The linker can only warn and ignore the option if not recognized |
| 12666 | # So say no if there are warnings |
| 12667 | if test -s conftest.err; then |
| 12668 | # Append any errors to the config.log. |
| 12669 | cat conftest.err 1>&5 |
| 12670 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 12671 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 12672 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 12673 | lt_prog_compiler_static_works_CXX=yes |
| 12674 | fi |
| 12675 | else |
| 12676 | lt_prog_compiler_static_works_CXX=yes |
| 12677 | fi |
| 12678 | fi |
| 12679 | $rm conftest* |
| 12680 | LDFLAGS="$save_LDFLAGS" |
| 12681 | |
| 12682 | fi |
| 12683 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
| 12684 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } |
| 12685 | |
| 12686 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
| 12687 | : |
| 12688 | else |
| 12689 | lt_prog_compiler_static_CXX= |
| 12690 | fi |
| 12691 | |
| 12692 | |
| 12693 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 12694 | 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] | 12695 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
| 12696 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12697 | else |
| 12698 | lt_cv_prog_compiler_c_o_CXX=no |
| 12699 | $rm -r conftest 2>/dev/null |
| 12700 | mkdir conftest |
| 12701 | cd conftest |
| 12702 | mkdir out |
| 12703 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12704 | |
| 12705 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 12706 | # Insert the option either (1) after the last *FLAGS variable, or |
| 12707 | # (2) before a word containing "conftest.", or (3) at the end. |
| 12708 | # Note that $ac_compile itself does not contain backslashes and begins |
| 12709 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 12710 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12711 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12712 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 12713 | -e 's:$: $lt_compiler_flag:'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12714 | (eval echo "\"\$as_me:12714: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12715 | (eval "$lt_compile" 2>out/conftest.err) |
| 12716 | ac_status=$? |
| 12717 | cat out/conftest.err >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12718 | echo "$as_me:12718: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12719 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 12720 | then |
| 12721 | # The compiler can only warn and ignore the option if not recognized |
| 12722 | # So say no if there are warnings |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12723 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 12724 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 12725 | 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] | 12726 | lt_cv_prog_compiler_c_o_CXX=yes |
| 12727 | fi |
| 12728 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12729 | chmod u+w . 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12730 | $rm conftest* |
| 12731 | # SGI C++ compiler will create directory out/ii_files/ for |
| 12732 | # template instantiation |
| 12733 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 12734 | $rm out/* && rmdir out |
| 12735 | cd .. |
| 12736 | rmdir conftest |
| 12737 | $rm conftest* |
| 12738 | |
| 12739 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12740 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 12741 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12742 | |
| 12743 | |
| 12744 | hard_links="nottested" |
| 12745 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 12746 | # do not overwrite the value of need_locks provided by the user |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12747 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 12748 | 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] | 12749 | hard_links=yes |
| 12750 | $rm conftest* |
| 12751 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 12752 | touch conftest.a |
| 12753 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 12754 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12755 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 12756 | echo "${ECHO_T}$hard_links" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12757 | if test "$hard_links" = no; then |
| 12758 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 12759 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 12760 | need_locks=warn |
| 12761 | fi |
| 12762 | else |
| 12763 | need_locks=no |
| 12764 | fi |
| 12765 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12766 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 12767 | 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] | 12768 | |
| 12769 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 12770 | case $host_os in |
| 12771 | aix4* | aix5*) |
| 12772 | # If we're using GNU nm, then we don't want the "-C" option. |
| 12773 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 12774 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 12775 | 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' |
| 12776 | else |
| 12777 | 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' |
| 12778 | fi |
| 12779 | ;; |
| 12780 | pw32*) |
| 12781 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 12782 | ;; |
| 12783 | cygwin* | mingw*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12784 | 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] | 12785 | ;; |
| 12786 | *) |
| 12787 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 12788 | ;; |
| 12789 | esac |
| 12790 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12791 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 12792 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12793 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 12794 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12795 | # |
| 12796 | # Do we need to explicitly link libc? |
| 12797 | # |
| 12798 | case "x$archive_cmds_need_lc_CXX" in |
| 12799 | x|xyes) |
| 12800 | # Assume -lc should be added |
| 12801 | archive_cmds_need_lc_CXX=yes |
| 12802 | |
| 12803 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 12804 | case $archive_cmds_CXX in |
| 12805 | *'~'*) |
| 12806 | # FIXME: we may have to deal with multi-command sequences. |
| 12807 | ;; |
| 12808 | '$CC '*) |
| 12809 | # Test whether the compiler implicitly links with -lc since on some |
| 12810 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 12811 | # to ld, don't add -lc before -lgcc. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12812 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 12813 | 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] | 12814 | $rm conftest* |
| 12815 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12816 | |
| 12817 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12818 | (eval $ac_compile) 2>&5 |
| 12819 | ac_status=$? |
| 12820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12821 | (exit $ac_status); } 2>conftest.err; then |
| 12822 | soname=conftest |
| 12823 | lib=conftest |
| 12824 | libobjs=conftest.$ac_objext |
| 12825 | deplibs= |
| 12826 | wl=$lt_prog_compiler_wl_CXX |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12827 | pic_flag=$lt_prog_compiler_pic_CXX |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12828 | compiler_flags=-v |
| 12829 | linker_flags=-v |
| 12830 | verstring= |
| 12831 | output_objdir=. |
| 12832 | libname=conftest |
| 12833 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 12834 | allow_undefined_flag_CXX= |
| 12835 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 12836 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 12837 | ac_status=$? |
| 12838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12839 | (exit $ac_status); } |
| 12840 | then |
| 12841 | archive_cmds_need_lc_CXX=no |
| 12842 | else |
| 12843 | archive_cmds_need_lc_CXX=yes |
| 12844 | fi |
| 12845 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 12846 | else |
| 12847 | cat conftest.err 1>&5 |
| 12848 | fi |
| 12849 | $rm conftest* |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12850 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
| 12851 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12852 | ;; |
| 12853 | esac |
| 12854 | fi |
| 12855 | ;; |
| 12856 | esac |
| 12857 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12858 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 12859 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12860 | library_names_spec= |
| 12861 | libname_spec='lib$name' |
| 12862 | soname_spec= |
| 12863 | shrext_cmds=".so" |
| 12864 | postinstall_cmds= |
| 12865 | postuninstall_cmds= |
| 12866 | finish_cmds= |
| 12867 | finish_eval= |
| 12868 | shlibpath_var= |
| 12869 | shlibpath_overrides_runpath=unknown |
| 12870 | version_type=none |
| 12871 | dynamic_linker="$host_os ld.so" |
| 12872 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 12873 | if test "$GCC" = yes; then |
| 12874 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 12875 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 12876 | # if the path contains ";" then we assume it to be the separator |
| 12877 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 12878 | # assumed that no part of a normal pathname contains ";" but that should |
| 12879 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 12880 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 12881 | else |
| 12882 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 12883 | fi |
| 12884 | else |
| 12885 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 12886 | fi |
| 12887 | need_lib_prefix=unknown |
| 12888 | hardcode_into_libs=no |
| 12889 | |
| 12890 | # when you set need_version to no, make sure it does not cause -set_version |
| 12891 | # flags to be left without arguments |
| 12892 | need_version=unknown |
| 12893 | |
| 12894 | case $host_os in |
| 12895 | aix3*) |
| 12896 | version_type=linux |
| 12897 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 12898 | shlibpath_var=LIBPATH |
| 12899 | |
| 12900 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 12901 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12902 | ;; |
| 12903 | |
| 12904 | aix4* | aix5*) |
| 12905 | version_type=linux |
| 12906 | need_lib_prefix=no |
| 12907 | need_version=no |
| 12908 | hardcode_into_libs=yes |
| 12909 | if test "$host_cpu" = ia64; then |
| 12910 | # AIX 5 supports IA64 |
| 12911 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 12912 | shlibpath_var=LD_LIBRARY_PATH |
| 12913 | else |
| 12914 | # With GCC up to 2.95.x, collect2 would create an import file |
| 12915 | # for dependence libraries. The import file would start with |
| 12916 | # the line `#! .'. This would cause the generated library to |
| 12917 | # depend on `.', always an invalid library. This was fixed in |
| 12918 | # development snapshots of GCC prior to 3.0. |
| 12919 | case $host_os in |
| 12920 | aix4 | aix4.[01] | aix4.[01].*) |
| 12921 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 12922 | echo ' yes ' |
| 12923 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 12924 | : |
| 12925 | else |
| 12926 | can_build_shared=no |
| 12927 | fi |
| 12928 | ;; |
| 12929 | esac |
| 12930 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 12931 | # soname into executable. Probably we can add versioning support to |
| 12932 | # collect2, so additional links can be useful in future. |
| 12933 | if test "$aix_use_runtimelinking" = yes; then |
| 12934 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 12935 | # instead of lib<name>.a to let people know that these are not |
| 12936 | # typical AIX shared libraries. |
| 12937 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12938 | else |
| 12939 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 12940 | # and later when we are not doing run time linking. |
| 12941 | library_names_spec='${libname}${release}.a $libname.a' |
| 12942 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12943 | fi |
| 12944 | shlibpath_var=LIBPATH |
| 12945 | fi |
| 12946 | ;; |
| 12947 | |
| 12948 | amigaos*) |
| 12949 | library_names_spec='$libname.ixlibrary $libname.a' |
| 12950 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 12951 | 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' |
| 12952 | ;; |
| 12953 | |
| 12954 | beos*) |
| 12955 | library_names_spec='${libname}${shared_ext}' |
| 12956 | dynamic_linker="$host_os ld.so" |
| 12957 | shlibpath_var=LIBRARY_PATH |
| 12958 | ;; |
| 12959 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12960 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12961 | version_type=linux |
| 12962 | need_version=no |
| 12963 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12964 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12965 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 12966 | shlibpath_var=LD_LIBRARY_PATH |
| 12967 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 12968 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 12969 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 12970 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 12971 | # libtool to hard-code these into programs |
| 12972 | ;; |
| 12973 | |
| 12974 | cygwin* | mingw* | pw32*) |
| 12975 | version_type=windows |
| 12976 | shrext_cmds=".dll" |
| 12977 | need_version=no |
| 12978 | need_lib_prefix=no |
| 12979 | |
| 12980 | case $GCC,$host_os in |
| 12981 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 12982 | library_names_spec='$libname.dll.a' |
| 12983 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 12984 | postinstall_cmds='base_file=`basename \${file}`~ |
| 12985 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 12986 | dldir=$destdir/`dirname \$dlpath`~ |
| 12987 | test -d \$dldir || mkdir -p \$dldir~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 12988 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 12989 | chmod a+x \$dldir/$dlname' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12990 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 12991 | dlpath=$dir/\$dldll~ |
| 12992 | $rm \$dlpath' |
| 12993 | shlibpath_overrides_runpath=yes |
| 12994 | |
| 12995 | case $host_os in |
| 12996 | cygwin*) |
| 12997 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 12998 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 12999 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 13000 | ;; |
| 13001 | mingw*) |
| 13002 | # MinGW DLLs use traditional 'lib' prefix |
| 13003 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 13004 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 13005 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 13006 | # It is most probably a Windows format PATH printed by |
| 13007 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 13008 | # path with ; separators, and with drive letters. We can handle the |
| 13009 | # drive letters (cygwin fileutils understands them), so leave them, |
| 13010 | # especially as we might pass files found there to a mingw objdump, |
| 13011 | # which wouldn't understand a cygwinified path. Ahh. |
| 13012 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 13013 | else |
| 13014 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 13015 | fi |
| 13016 | ;; |
| 13017 | pw32*) |
| 13018 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 13019 | 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] | 13020 | ;; |
| 13021 | esac |
| 13022 | ;; |
| 13023 | |
| 13024 | *) |
| 13025 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 13026 | ;; |
| 13027 | esac |
| 13028 | dynamic_linker='Win32 ld.exe' |
| 13029 | # FIXME: first we should search . and the directory the executable is in |
| 13030 | shlibpath_var=PATH |
| 13031 | ;; |
| 13032 | |
| 13033 | darwin* | rhapsody*) |
| 13034 | dynamic_linker="$host_os dyld" |
| 13035 | version_type=darwin |
| 13036 | need_lib_prefix=no |
| 13037 | need_version=no |
| 13038 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 13039 | soname_spec='${libname}${release}${major}$shared_ext' |
| 13040 | shlibpath_overrides_runpath=yes |
| 13041 | shlibpath_var=DYLD_LIBRARY_PATH |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 13042 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13043 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 13044 | if test "$GCC" = yes; then |
| 13045 | 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"` |
| 13046 | else |
| 13047 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 13048 | fi |
| 13049 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 13050 | ;; |
| 13051 | |
| 13052 | dgux*) |
| 13053 | version_type=linux |
| 13054 | need_lib_prefix=no |
| 13055 | need_version=no |
| 13056 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 13057 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13058 | shlibpath_var=LD_LIBRARY_PATH |
| 13059 | ;; |
| 13060 | |
| 13061 | freebsd1*) |
| 13062 | dynamic_linker=no |
| 13063 | ;; |
| 13064 | |
| 13065 | kfreebsd*-gnu) |
| 13066 | version_type=linux |
| 13067 | need_lib_prefix=no |
| 13068 | need_version=no |
| 13069 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 13070 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13071 | shlibpath_var=LD_LIBRARY_PATH |
| 13072 | shlibpath_overrides_runpath=no |
| 13073 | hardcode_into_libs=yes |
| 13074 | dynamic_linker='GNU ld.so' |
| 13075 | ;; |
| 13076 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 13077 | freebsd* | dragonfly*) |
| 13078 | # DragonFly does not have aout. When/if they implement a new |
| 13079 | # versioning mechanism, adjust this. |
| 13080 | if test -x /usr/bin/objformat; then |
| 13081 | objformat=`/usr/bin/objformat` |
| 13082 | else |
| 13083 | case $host_os in |
| 13084 | freebsd[123]*) objformat=aout ;; |
| 13085 | *) objformat=elf ;; |
| 13086 | esac |
| 13087 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13088 | version_type=freebsd-$objformat |
| 13089 | case $version_type in |
| 13090 | freebsd-elf*) |
| 13091 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 13092 | need_version=no |
| 13093 | need_lib_prefix=no |
| 13094 | ;; |
| 13095 | freebsd-*) |
| 13096 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 13097 | need_version=yes |
| 13098 | ;; |
| 13099 | esac |
| 13100 | shlibpath_var=LD_LIBRARY_PATH |
| 13101 | case $host_os in |
| 13102 | freebsd2*) |
| 13103 | shlibpath_overrides_runpath=yes |
| 13104 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 13105 | freebsd3.[01]* | freebsdelf3.[01]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13106 | shlibpath_overrides_runpath=yes |
| 13107 | hardcode_into_libs=yes |
| 13108 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 13109 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 13110 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13111 | shlibpath_overrides_runpath=no |
| 13112 | hardcode_into_libs=yes |
| 13113 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 13114 | freebsd*) # from 4.6 on |
| 13115 | shlibpath_overrides_runpath=yes |
| 13116 | hardcode_into_libs=yes |
| 13117 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13118 | esac |
| 13119 | ;; |
| 13120 | |
| 13121 | gnu*) |
| 13122 | version_type=linux |
| 13123 | need_lib_prefix=no |
| 13124 | need_version=no |
| 13125 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 13126 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13127 | shlibpath_var=LD_LIBRARY_PATH |
| 13128 | hardcode_into_libs=yes |
| 13129 | ;; |
| 13130 | |
| 13131 | hpux9* | hpux10* | hpux11*) |
| 13132 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 13133 | # link against other versions. |
| 13134 | version_type=sunos |
| 13135 | need_lib_prefix=no |
| 13136 | need_version=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 13137 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13138 | ia64*) |
| 13139 | shrext_cmds='.so' |
| 13140 | hardcode_into_libs=yes |
| 13141 | dynamic_linker="$host_os dld.so" |
| 13142 | shlibpath_var=LD_LIBRARY_PATH |
| 13143 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13144 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13145 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13146 | if test "X$HPUX_IA64_MODE" = X32; then |
| 13147 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 13148 | else |
| 13149 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 13150 | fi |
| 13151 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13152 | ;; |
| 13153 | hppa*64*) |
| 13154 | shrext_cmds='.sl' |
| 13155 | hardcode_into_libs=yes |
| 13156 | dynamic_linker="$host_os dld.sl" |
| 13157 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 13158 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13159 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13160 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13161 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 13162 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13163 | ;; |
| 13164 | *) |
| 13165 | shrext_cmds='.sl' |
| 13166 | dynamic_linker="$host_os dld.sl" |
| 13167 | shlibpath_var=SHLIB_PATH |
| 13168 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 13169 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13170 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13171 | ;; |
| 13172 | esac |
| 13173 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 13174 | postinstall_cmds='chmod 555 $lib' |
| 13175 | ;; |
| 13176 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 13177 | interix3*) |
| 13178 | version_type=linux |
| 13179 | need_lib_prefix=no |
| 13180 | need_version=no |
| 13181 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 13182 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13183 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 13184 | shlibpath_var=LD_LIBRARY_PATH |
| 13185 | shlibpath_overrides_runpath=no |
| 13186 | hardcode_into_libs=yes |
| 13187 | ;; |
| 13188 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13189 | irix5* | irix6* | nonstopux*) |
| 13190 | case $host_os in |
| 13191 | nonstopux*) version_type=nonstopux ;; |
| 13192 | *) |
| 13193 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 13194 | version_type=linux |
| 13195 | else |
| 13196 | version_type=irix |
| 13197 | fi ;; |
| 13198 | esac |
| 13199 | need_lib_prefix=no |
| 13200 | need_version=no |
| 13201 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13202 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 13203 | case $host_os in |
| 13204 | irix5* | nonstopux*) |
| 13205 | libsuff= shlibsuff= |
| 13206 | ;; |
| 13207 | *) |
| 13208 | case $LD in # libtool.m4 will add one of these switches to LD |
| 13209 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 13210 | libsuff= shlibsuff= libmagic=32-bit;; |
| 13211 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 13212 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 13213 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 13214 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 13215 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 13216 | esac |
| 13217 | ;; |
| 13218 | esac |
| 13219 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 13220 | shlibpath_overrides_runpath=no |
| 13221 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 13222 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 13223 | hardcode_into_libs=yes |
| 13224 | ;; |
| 13225 | |
| 13226 | # No shared lib support for Linux oldld, aout, or coff. |
| 13227 | linux*oldld* | linux*aout* | linux*coff*) |
| 13228 | dynamic_linker=no |
| 13229 | ;; |
| 13230 | |
| 13231 | # This must be Linux ELF. |
| 13232 | linux*) |
| 13233 | version_type=linux |
| 13234 | need_lib_prefix=no |
| 13235 | need_version=no |
| 13236 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13237 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13238 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 13239 | shlibpath_var=LD_LIBRARY_PATH |
| 13240 | shlibpath_overrides_runpath=no |
| 13241 | # This implies no fast_install, which is unacceptable. |
| 13242 | # Some rework will be needed to allow for fast_install |
| 13243 | # before this can be enabled. |
| 13244 | hardcode_into_libs=yes |
| 13245 | |
| 13246 | # Append ld.so.conf contents to the search path |
| 13247 | if test -f /etc/ld.so.conf; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 13248 | 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] | 13249 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 13250 | fi |
| 13251 | |
| 13252 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 13253 | # powerpc, because MkLinux only supported shared libraries with the |
| 13254 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 13255 | # most powerpc-linux boxes support dynamic linking these days and |
| 13256 | # people can always --disable-shared, the test was removed, and we |
| 13257 | # assume the GNU/Linux dynamic linker is in use. |
| 13258 | dynamic_linker='GNU/Linux ld.so' |
| 13259 | ;; |
| 13260 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13261 | knetbsd*-gnu) |
| 13262 | version_type=linux |
| 13263 | need_lib_prefix=no |
| 13264 | need_version=no |
| 13265 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 13266 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13267 | shlibpath_var=LD_LIBRARY_PATH |
| 13268 | shlibpath_overrides_runpath=no |
| 13269 | hardcode_into_libs=yes |
| 13270 | dynamic_linker='GNU ld.so' |
| 13271 | ;; |
| 13272 | |
| 13273 | netbsd*) |
| 13274 | version_type=sunos |
| 13275 | need_lib_prefix=no |
| 13276 | need_version=no |
| 13277 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 13278 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 13279 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 13280 | dynamic_linker='NetBSD (a.out) ld.so' |
| 13281 | else |
| 13282 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 13283 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13284 | dynamic_linker='NetBSD ld.elf_so' |
| 13285 | fi |
| 13286 | shlibpath_var=LD_LIBRARY_PATH |
| 13287 | shlibpath_overrides_runpath=yes |
| 13288 | hardcode_into_libs=yes |
| 13289 | ;; |
| 13290 | |
| 13291 | newsos6) |
| 13292 | version_type=linux |
| 13293 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13294 | shlibpath_var=LD_LIBRARY_PATH |
| 13295 | shlibpath_overrides_runpath=yes |
| 13296 | ;; |
| 13297 | |
| 13298 | nto-qnx*) |
| 13299 | version_type=linux |
| 13300 | need_lib_prefix=no |
| 13301 | need_version=no |
| 13302 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13303 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13304 | shlibpath_var=LD_LIBRARY_PATH |
| 13305 | shlibpath_overrides_runpath=yes |
| 13306 | ;; |
| 13307 | |
| 13308 | openbsd*) |
| 13309 | version_type=sunos |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 13310 | sys_lib_dlsearch_path_spec="/usr/lib" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13311 | need_lib_prefix=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 13312 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 13313 | case $host_os in |
| 13314 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 13315 | *) need_version=no ;; |
| 13316 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13317 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 13318 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 13319 | shlibpath_var=LD_LIBRARY_PATH |
| 13320 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 13321 | case $host_os in |
| 13322 | openbsd2.[89] | openbsd2.[89].*) |
| 13323 | shlibpath_overrides_runpath=no |
| 13324 | ;; |
| 13325 | *) |
| 13326 | shlibpath_overrides_runpath=yes |
| 13327 | ;; |
| 13328 | esac |
| 13329 | else |
| 13330 | shlibpath_overrides_runpath=yes |
| 13331 | fi |
| 13332 | ;; |
| 13333 | |
| 13334 | os2*) |
| 13335 | libname_spec='$name' |
| 13336 | shrext_cmds=".dll" |
| 13337 | need_lib_prefix=no |
| 13338 | library_names_spec='$libname${shared_ext} $libname.a' |
| 13339 | dynamic_linker='OS/2 ld.exe' |
| 13340 | shlibpath_var=LIBPATH |
| 13341 | ;; |
| 13342 | |
| 13343 | osf3* | osf4* | osf5*) |
| 13344 | version_type=osf |
| 13345 | need_lib_prefix=no |
| 13346 | need_version=no |
| 13347 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13348 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13349 | shlibpath_var=LD_LIBRARY_PATH |
| 13350 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 13351 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 13352 | ;; |
| 13353 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13354 | solaris*) |
| 13355 | version_type=linux |
| 13356 | need_lib_prefix=no |
| 13357 | need_version=no |
| 13358 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13359 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13360 | shlibpath_var=LD_LIBRARY_PATH |
| 13361 | shlibpath_overrides_runpath=yes |
| 13362 | hardcode_into_libs=yes |
| 13363 | # ldd complains unless libraries are executable |
| 13364 | postinstall_cmds='chmod +x $lib' |
| 13365 | ;; |
| 13366 | |
| 13367 | sunos4*) |
| 13368 | version_type=sunos |
| 13369 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 13370 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 13371 | shlibpath_var=LD_LIBRARY_PATH |
| 13372 | shlibpath_overrides_runpath=yes |
| 13373 | if test "$with_gnu_ld" = yes; then |
| 13374 | need_lib_prefix=no |
| 13375 | fi |
| 13376 | need_version=yes |
| 13377 | ;; |
| 13378 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 13379 | sysv4 | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13380 | version_type=linux |
| 13381 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13382 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13383 | shlibpath_var=LD_LIBRARY_PATH |
| 13384 | case $host_vendor in |
| 13385 | sni) |
| 13386 | shlibpath_overrides_runpath=no |
| 13387 | need_lib_prefix=no |
| 13388 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 13389 | runpath_var=LD_RUN_PATH |
| 13390 | ;; |
| 13391 | siemens) |
| 13392 | need_lib_prefix=no |
| 13393 | ;; |
| 13394 | motorola) |
| 13395 | need_lib_prefix=no |
| 13396 | need_version=no |
| 13397 | shlibpath_overrides_runpath=no |
| 13398 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 13399 | ;; |
| 13400 | esac |
| 13401 | ;; |
| 13402 | |
| 13403 | sysv4*MP*) |
| 13404 | if test -d /usr/nec ;then |
| 13405 | version_type=linux |
| 13406 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 13407 | soname_spec='$libname${shared_ext}.$major' |
| 13408 | shlibpath_var=LD_LIBRARY_PATH |
| 13409 | fi |
| 13410 | ;; |
| 13411 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 13412 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 13413 | version_type=freebsd-elf |
| 13414 | need_lib_prefix=no |
| 13415 | need_version=no |
| 13416 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 13417 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13418 | shlibpath_var=LD_LIBRARY_PATH |
| 13419 | hardcode_into_libs=yes |
| 13420 | if test "$with_gnu_ld" = yes; then |
| 13421 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 13422 | shlibpath_overrides_runpath=no |
| 13423 | else |
| 13424 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 13425 | shlibpath_overrides_runpath=yes |
| 13426 | case $host_os in |
| 13427 | sco3.2v5*) |
| 13428 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 13429 | ;; |
| 13430 | esac |
| 13431 | fi |
| 13432 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 13433 | ;; |
| 13434 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13435 | uts4*) |
| 13436 | version_type=linux |
| 13437 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13438 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13439 | shlibpath_var=LD_LIBRARY_PATH |
| 13440 | ;; |
| 13441 | |
| 13442 | *) |
| 13443 | dynamic_linker=no |
| 13444 | ;; |
| 13445 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 13446 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 13447 | echo "${ECHO_T}$dynamic_linker" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13448 | test "$dynamic_linker" = no && can_build_shared=no |
| 13449 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 13450 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 13451 | if test "$GCC" = yes; then |
| 13452 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 13453 | fi |
| 13454 | |
| 13455 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 13456 | 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] | 13457 | hardcode_action_CXX= |
| 13458 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 13459 | test -n "$runpath_var_CXX" || \ |
| 13460 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13461 | |
| 13462 | # We can hardcode non-existant directories. |
| 13463 | if test "$hardcode_direct_CXX" != no && |
| 13464 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 13465 | # have to relink, otherwise we might link with an installed library |
| 13466 | # when we should be linking with a yet-to-be-installed one |
| 13467 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 13468 | test "$hardcode_minus_L_CXX" != no; then |
| 13469 | # Linking always hardcodes the temporary library directory. |
| 13470 | hardcode_action_CXX=relink |
| 13471 | else |
| 13472 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 13473 | hardcode_action_CXX=immediate |
| 13474 | fi |
| 13475 | else |
| 13476 | # We cannot hardcode anything, or else we can only hardcode existing |
| 13477 | # directories. |
| 13478 | hardcode_action_CXX=unsupported |
| 13479 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 13480 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
| 13481 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13482 | |
| 13483 | if test "$hardcode_action_CXX" = relink; then |
| 13484 | # Fast installation is not supported |
| 13485 | enable_fast_install=no |
| 13486 | elif test "$shlibpath_overrides_runpath" = yes || |
| 13487 | test "$enable_shared" = no; then |
| 13488 | # Fast installation is not necessary |
| 13489 | enable_fast_install=needless |
| 13490 | fi |
| 13491 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13492 | |
| 13493 | # The else clause should only fire when bootstrapping the |
| 13494 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 13495 | # with your package, and you will get complaints that there are |
| 13496 | # no rules to generate ltmain.sh. |
| 13497 | if test -f "$ltmain"; then |
| 13498 | # See if we are running on zsh, and set the options which allow our commands through |
| 13499 | # without removal of \ escapes. |
| 13500 | if test -n "${ZSH_VERSION+set}" ; then |
| 13501 | setopt NO_GLOB_SUBST |
| 13502 | fi |
| 13503 | # Now quote all the things that may contain metacharacters while being |
| 13504 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 13505 | # variables and quote the copies for generation of the libtool script. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 13506 | 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] | 13507 | SED SHELL STRIP \ |
| 13508 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 13509 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 13510 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 13511 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 13512 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 13513 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 13514 | old_postinstall_cmds old_postuninstall_cmds \ |
| 13515 | compiler_CXX \ |
| 13516 | CC_CXX \ |
| 13517 | LD_CXX \ |
| 13518 | lt_prog_compiler_wl_CXX \ |
| 13519 | lt_prog_compiler_pic_CXX \ |
| 13520 | lt_prog_compiler_static_CXX \ |
| 13521 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 13522 | export_dynamic_flag_spec_CXX \ |
| 13523 | thread_safe_flag_spec_CXX \ |
| 13524 | whole_archive_flag_spec_CXX \ |
| 13525 | enable_shared_with_static_runtimes_CXX \ |
| 13526 | old_archive_cmds_CXX \ |
| 13527 | old_archive_from_new_cmds_CXX \ |
| 13528 | predep_objects_CXX \ |
| 13529 | postdep_objects_CXX \ |
| 13530 | predeps_CXX \ |
| 13531 | postdeps_CXX \ |
| 13532 | compiler_lib_search_path_CXX \ |
| 13533 | archive_cmds_CXX \ |
| 13534 | archive_expsym_cmds_CXX \ |
| 13535 | postinstall_cmds_CXX \ |
| 13536 | postuninstall_cmds_CXX \ |
| 13537 | old_archive_from_expsyms_cmds_CXX \ |
| 13538 | allow_undefined_flag_CXX \ |
| 13539 | no_undefined_flag_CXX \ |
| 13540 | export_symbols_cmds_CXX \ |
| 13541 | hardcode_libdir_flag_spec_CXX \ |
| 13542 | hardcode_libdir_flag_spec_ld_CXX \ |
| 13543 | hardcode_libdir_separator_CXX \ |
| 13544 | hardcode_automatic_CXX \ |
| 13545 | module_cmds_CXX \ |
| 13546 | module_expsym_cmds_CXX \ |
| 13547 | lt_cv_prog_compiler_c_o_CXX \ |
| 13548 | exclude_expsyms_CXX \ |
| 13549 | include_expsyms_CXX; do |
| 13550 | |
| 13551 | case $var in |
| 13552 | old_archive_cmds_CXX | \ |
| 13553 | old_archive_from_new_cmds_CXX | \ |
| 13554 | archive_cmds_CXX | \ |
| 13555 | archive_expsym_cmds_CXX | \ |
| 13556 | module_cmds_CXX | \ |
| 13557 | module_expsym_cmds_CXX | \ |
| 13558 | old_archive_from_expsyms_cmds_CXX | \ |
| 13559 | export_symbols_cmds_CXX | \ |
| 13560 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 13561 | postinstall_cmds | postuninstall_cmds | \ |
| 13562 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 13563 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 13564 | # Double-quote double-evaled strings. |
| 13565 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 13566 | ;; |
| 13567 | *) |
| 13568 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 13569 | ;; |
| 13570 | esac |
| 13571 | done |
| 13572 | |
| 13573 | case $lt_echo in |
| 13574 | *'\$0 --fallback-echo"') |
| 13575 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 13576 | ;; |
| 13577 | esac |
| 13578 | |
| 13579 | cfgfile="$ofile" |
| 13580 | |
| 13581 | cat <<__EOF__ >> "$cfgfile" |
| 13582 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 13583 | |
| 13584 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 13585 | |
| 13586 | # Shell to use when invoking shell scripts. |
| 13587 | SHELL=$lt_SHELL |
| 13588 | |
| 13589 | # Whether or not to build shared libraries. |
| 13590 | build_libtool_libs=$enable_shared |
| 13591 | |
| 13592 | # Whether or not to build static libraries. |
| 13593 | build_old_libs=$enable_static |
| 13594 | |
| 13595 | # Whether or not to add -lc for building shared libraries. |
| 13596 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 13597 | |
| 13598 | # Whether or not to disallow shared libs when runtime libs are static |
| 13599 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 13600 | |
| 13601 | # Whether or not to optimize for fast installation. |
| 13602 | fast_install=$enable_fast_install |
| 13603 | |
| 13604 | # The host system. |
| 13605 | host_alias=$host_alias |
| 13606 | host=$host |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 13607 | host_os=$host_os |
| 13608 | |
| 13609 | # The build system. |
| 13610 | build_alias=$build_alias |
| 13611 | build=$build |
| 13612 | build_os=$build_os |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13613 | |
| 13614 | # An echo program that does not interpret backslashes. |
| 13615 | echo=$lt_echo |
| 13616 | |
| 13617 | # The archiver. |
| 13618 | AR=$lt_AR |
| 13619 | AR_FLAGS=$lt_AR_FLAGS |
| 13620 | |
| 13621 | # A C compiler. |
| 13622 | LTCC=$lt_LTCC |
| 13623 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 13624 | # LTCC compiler flags. |
| 13625 | LTCFLAGS=$lt_LTCFLAGS |
| 13626 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13627 | # A language-specific compiler. |
| 13628 | CC=$lt_compiler_CXX |
| 13629 | |
| 13630 | # Is the compiler the GNU C compiler? |
| 13631 | with_gcc=$GCC_CXX |
| 13632 | |
| 13633 | # An ERE matcher. |
| 13634 | EGREP=$lt_EGREP |
| 13635 | |
| 13636 | # The linker used to build libraries. |
| 13637 | LD=$lt_LD_CXX |
| 13638 | |
| 13639 | # Whether we need hard or soft links. |
| 13640 | LN_S=$lt_LN_S |
| 13641 | |
| 13642 | # A BSD-compatible nm program. |
| 13643 | NM=$lt_NM |
| 13644 | |
| 13645 | # A symbol stripping program |
| 13646 | STRIP=$lt_STRIP |
| 13647 | |
| 13648 | # Used to examine libraries when file_magic_cmd begins "file" |
| 13649 | MAGIC_CMD=$MAGIC_CMD |
| 13650 | |
| 13651 | # Used on cygwin: DLL creation program. |
| 13652 | DLLTOOL="$DLLTOOL" |
| 13653 | |
| 13654 | # Used on cygwin: object dumper. |
| 13655 | OBJDUMP="$OBJDUMP" |
| 13656 | |
| 13657 | # Used on cygwin: assembler. |
| 13658 | AS="$AS" |
| 13659 | |
| 13660 | # The name of the directory that contains temporary libtool files. |
| 13661 | objdir=$objdir |
| 13662 | |
| 13663 | # How to create reloadable object files. |
| 13664 | reload_flag=$lt_reload_flag |
| 13665 | reload_cmds=$lt_reload_cmds |
| 13666 | |
| 13667 | # How to pass a linker flag through the compiler. |
| 13668 | wl=$lt_lt_prog_compiler_wl_CXX |
| 13669 | |
| 13670 | # Object file suffix (normally "o"). |
| 13671 | objext="$ac_objext" |
| 13672 | |
| 13673 | # Old archive suffix (normally "a"). |
| 13674 | libext="$libext" |
| 13675 | |
| 13676 | # Shared library suffix (normally ".so"). |
| 13677 | shrext_cmds='$shrext_cmds' |
| 13678 | |
| 13679 | # Executable file suffix (normally ""). |
| 13680 | exeext="$exeext" |
| 13681 | |
| 13682 | # Additional compiler flags for building library objects. |
| 13683 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 13684 | pic_mode=$pic_mode |
| 13685 | |
| 13686 | # What is the maximum length of a command? |
| 13687 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 13688 | |
| 13689 | # Does compiler simultaneously support -c and -o options? |
| 13690 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 13691 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 13692 | # Must we lock files when doing compilation? |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13693 | need_locks=$lt_need_locks |
| 13694 | |
| 13695 | # Do we need the lib prefix for modules? |
| 13696 | need_lib_prefix=$need_lib_prefix |
| 13697 | |
| 13698 | # Do we need a version for libraries? |
| 13699 | need_version=$need_version |
| 13700 | |
| 13701 | # Whether dlopen is supported. |
| 13702 | dlopen_support=$enable_dlopen |
| 13703 | |
| 13704 | # Whether dlopen of programs is supported. |
| 13705 | dlopen_self=$enable_dlopen_self |
| 13706 | |
| 13707 | # Whether dlopen of statically linked programs is supported. |
| 13708 | dlopen_self_static=$enable_dlopen_self_static |
| 13709 | |
| 13710 | # Compiler flag to prevent dynamic linking. |
| 13711 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 13712 | |
| 13713 | # Compiler flag to turn off builtin functions. |
| 13714 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 13715 | |
| 13716 | # Compiler flag to allow reflexive dlopens. |
| 13717 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 13718 | |
| 13719 | # Compiler flag to generate shared objects directly from archives. |
| 13720 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 13721 | |
| 13722 | # Compiler flag to generate thread-safe objects. |
| 13723 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
| 13724 | |
| 13725 | # Library versioning type. |
| 13726 | version_type=$version_type |
| 13727 | |
| 13728 | # Format of library name prefix. |
| 13729 | libname_spec=$lt_libname_spec |
| 13730 | |
| 13731 | # List of archive names. First name is the real one, the rest are links. |
| 13732 | # The last name is the one that the linker finds with -lNAME. |
| 13733 | library_names_spec=$lt_library_names_spec |
| 13734 | |
| 13735 | # The coded name of the library, if different from the real name. |
| 13736 | soname_spec=$lt_soname_spec |
| 13737 | |
| 13738 | # Commands used to build and install an old-style archive. |
| 13739 | RANLIB=$lt_RANLIB |
| 13740 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 13741 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 13742 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 13743 | |
| 13744 | # Create an old-style archive from a shared archive. |
| 13745 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 13746 | |
| 13747 | # Create a temporary old-style archive to link instead of a shared archive. |
| 13748 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 13749 | |
| 13750 | # Commands used to build and install a shared archive. |
| 13751 | archive_cmds=$lt_archive_cmds_CXX |
| 13752 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 13753 | postinstall_cmds=$lt_postinstall_cmds |
| 13754 | postuninstall_cmds=$lt_postuninstall_cmds |
| 13755 | |
| 13756 | # Commands used to build a loadable module (assumed same as above if empty) |
| 13757 | module_cmds=$lt_module_cmds_CXX |
| 13758 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 13759 | |
| 13760 | # Commands to strip libraries. |
| 13761 | old_striplib=$lt_old_striplib |
| 13762 | striplib=$lt_striplib |
| 13763 | |
| 13764 | # Dependencies to place before the objects being linked to create a |
| 13765 | # shared library. |
| 13766 | predep_objects=$lt_predep_objects_CXX |
| 13767 | |
| 13768 | # Dependencies to place after the objects being linked to create a |
| 13769 | # shared library. |
| 13770 | postdep_objects=$lt_postdep_objects_CXX |
| 13771 | |
| 13772 | # Dependencies to place before the objects being linked to create a |
| 13773 | # shared library. |
| 13774 | predeps=$lt_predeps_CXX |
| 13775 | |
| 13776 | # Dependencies to place after the objects being linked to create a |
| 13777 | # shared library. |
| 13778 | postdeps=$lt_postdeps_CXX |
| 13779 | |
| 13780 | # The library search path used internally by the compiler when linking |
| 13781 | # a shared library. |
| 13782 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 13783 | |
| 13784 | # Method to check whether dependent libraries are shared objects. |
| 13785 | deplibs_check_method=$lt_deplibs_check_method |
| 13786 | |
| 13787 | # Command to use when deplibs_check_method == file_magic. |
| 13788 | file_magic_cmd=$lt_file_magic_cmd |
| 13789 | |
| 13790 | # Flag that allows shared libraries with undefined symbols to be built. |
| 13791 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 13792 | |
| 13793 | # Flag that forces no undefined symbols. |
| 13794 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 13795 | |
| 13796 | # Commands used to finish a libtool library installation in a directory. |
| 13797 | finish_cmds=$lt_finish_cmds |
| 13798 | |
| 13799 | # Same as above, but a single script fragment to be evaled but not shown. |
| 13800 | finish_eval=$lt_finish_eval |
| 13801 | |
| 13802 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 13803 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 13804 | |
| 13805 | # Transform the output of nm in a proper C declaration |
| 13806 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 13807 | |
| 13808 | # Transform the output of nm in a C name address pair |
| 13809 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 13810 | |
| 13811 | # This is the shared library runtime path variable. |
| 13812 | runpath_var=$runpath_var |
| 13813 | |
| 13814 | # This is the shared library path variable. |
| 13815 | shlibpath_var=$shlibpath_var |
| 13816 | |
| 13817 | # Is shlibpath searched before the hard-coded library search path? |
| 13818 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 13819 | |
| 13820 | # How to hardcode a shared library path into an executable. |
| 13821 | hardcode_action=$hardcode_action_CXX |
| 13822 | |
| 13823 | # Whether we should hardcode library paths into libraries. |
| 13824 | hardcode_into_libs=$hardcode_into_libs |
| 13825 | |
| 13826 | # Flag to hardcode \$libdir into a binary during linking. |
| 13827 | # This must work even if \$libdir does not exist. |
| 13828 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 13829 | |
| 13830 | # If ld is used when linking, flag to hardcode \$libdir into |
| 13831 | # a binary during linking. This must work even if \$libdir does |
| 13832 | # not exist. |
| 13833 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 13834 | |
| 13835 | # Whether we need a single -rpath flag with a separated argument. |
| 13836 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 13837 | |
| 13838 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 13839 | # resulting binary. |
| 13840 | hardcode_direct=$hardcode_direct_CXX |
| 13841 | |
| 13842 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 13843 | # resulting binary. |
| 13844 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 13845 | |
| 13846 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 13847 | # the resulting binary. |
| 13848 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 13849 | |
| 13850 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 13851 | # and all subsequent libraries and executables linked against it. |
| 13852 | hardcode_automatic=$hardcode_automatic_CXX |
| 13853 | |
| 13854 | # Variables whose values should be saved in libtool wrapper scripts and |
| 13855 | # restored at relink time. |
| 13856 | variables_saved_for_relink="$variables_saved_for_relink" |
| 13857 | |
| 13858 | # Whether libtool must link a program against all its dependency libraries. |
| 13859 | link_all_deplibs=$link_all_deplibs_CXX |
| 13860 | |
| 13861 | # Compile-time system search path for libraries |
| 13862 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 13863 | |
| 13864 | # Run-time system search path for libraries |
| 13865 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 13866 | |
| 13867 | # Fix the shell variable \$srcfile for the compiler. |
| 13868 | fix_srcfile_path="$fix_srcfile_path_CXX" |
| 13869 | |
| 13870 | # Set to yes if exported symbols are required. |
| 13871 | always_export_symbols=$always_export_symbols_CXX |
| 13872 | |
| 13873 | # The commands to list exported symbols. |
| 13874 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 13875 | |
| 13876 | # The commands to extract the exported symbol list from a shared archive. |
| 13877 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 13878 | |
| 13879 | # Symbols that should not be listed in the preloaded symbols. |
| 13880 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 13881 | |
| 13882 | # Symbols that must always be exported. |
| 13883 | include_expsyms=$lt_include_expsyms_CXX |
| 13884 | |
| 13885 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 13886 | |
| 13887 | __EOF__ |
| 13888 | |
| 13889 | |
| 13890 | else |
| 13891 | # If there is no Makefile yet, we rely on a make rule to execute |
| 13892 | # `config.status --recheck' to rerun these tests and create the |
| 13893 | # libtool script then. |
| 13894 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 13895 | if test -f "$ltmain_in"; then |
| 13896 | test -f Makefile && make "$ltmain" |
| 13897 | fi |
| 13898 | fi |
| 13899 | |
| 13900 | |
| 13901 | ac_ext=c |
| 13902 | ac_cpp='$CPP $CPPFLAGS' |
| 13903 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13904 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13905 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 13906 | |
| 13907 | CC=$lt_save_CC |
| 13908 | LDCXX=$LD |
| 13909 | LD=$lt_save_LD |
| 13910 | GCC=$lt_save_GCC |
| 13911 | with_gnu_ldcxx=$with_gnu_ld |
| 13912 | with_gnu_ld=$lt_save_with_gnu_ld |
| 13913 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 13914 | lt_cv_path_LD=$lt_save_path_LD |
| 13915 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 13916 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 13917 | |
| 13918 | else |
| 13919 | tagname="" |
| 13920 | fi |
| 13921 | ;; |
| 13922 | |
| 13923 | F77) |
| 13924 | if test -n "$F77" && test "X$F77" != "Xno"; then |
| 13925 | |
| 13926 | ac_ext=f |
| 13927 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 13928 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13929 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 13930 | |
| 13931 | |
| 13932 | archive_cmds_need_lc_F77=no |
| 13933 | allow_undefined_flag_F77= |
| 13934 | always_export_symbols_F77=no |
| 13935 | archive_expsym_cmds_F77= |
| 13936 | export_dynamic_flag_spec_F77= |
| 13937 | hardcode_direct_F77=no |
| 13938 | hardcode_libdir_flag_spec_F77= |
| 13939 | hardcode_libdir_flag_spec_ld_F77= |
| 13940 | hardcode_libdir_separator_F77= |
| 13941 | hardcode_minus_L_F77=no |
| 13942 | hardcode_automatic_F77=no |
| 13943 | module_cmds_F77= |
| 13944 | module_expsym_cmds_F77= |
| 13945 | link_all_deplibs_F77=unknown |
| 13946 | old_archive_cmds_F77=$old_archive_cmds |
| 13947 | no_undefined_flag_F77= |
| 13948 | whole_archive_flag_spec_F77= |
| 13949 | enable_shared_with_static_runtimes_F77=no |
| 13950 | |
| 13951 | # Source file extension for f77 test sources. |
| 13952 | ac_ext=f |
| 13953 | |
| 13954 | # Object file extension for compiled f77 test sources. |
| 13955 | objext=o |
| 13956 | objext_F77=$objext |
| 13957 | |
| 13958 | # Code to be used in simple compile tests |
| 13959 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
| 13960 | |
| 13961 | # Code to be used in simple link tests |
| 13962 | lt_simple_link_test_code=" program t\n end\n" |
| 13963 | |
| 13964 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 13965 | |
| 13966 | # If no C compiler was specified, use CC. |
| 13967 | LTCC=${LTCC-"$CC"} |
| 13968 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 13969 | # If no C compiler flags were specified, use CFLAGS. |
| 13970 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 13971 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13972 | # Allow CC to be a program name with arguments. |
| 13973 | compiler=$CC |
| 13974 | |
| 13975 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 13976 | # save warnings/boilerplate of simple test code |
| 13977 | ac_outfile=conftest.$ac_objext |
| 13978 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 13979 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 13980 | _lt_compiler_boilerplate=`cat conftest.err` |
| 13981 | $rm conftest* |
| 13982 | |
| 13983 | ac_outfile=conftest.$ac_objext |
| 13984 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 13985 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 13986 | _lt_linker_boilerplate=`cat conftest.err` |
| 13987 | $rm conftest* |
| 13988 | |
| 13989 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13990 | # Allow CC to be a program name with arguments. |
| 13991 | lt_save_CC="$CC" |
| 13992 | CC=${F77-"f77"} |
| 13993 | compiler=$CC |
| 13994 | compiler_F77=$CC |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 13995 | for cc_temp in $compiler""; do |
| 13996 | case $cc_temp in |
| 13997 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 13998 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 13999 | \-*) ;; |
| 14000 | *) break;; |
| 14001 | esac |
| 14002 | done |
| 14003 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14004 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14005 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14006 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 14007 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
| 14008 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 14009 | echo "${ECHO_T}$can_build_shared" >&6; } |
| 14010 | |
| 14011 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 14012 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14013 | test "$can_build_shared" = "no" && enable_shared=no |
| 14014 | |
| 14015 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 14016 | # are all built from PIC. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14017 | case $host_os in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14018 | aix3*) |
| 14019 | test "$enable_shared" = yes && enable_static=no |
| 14020 | if test -n "$RANLIB"; then |
| 14021 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 14022 | postinstall_cmds='$RANLIB $lib' |
| 14023 | fi |
| 14024 | ;; |
| 14025 | aix4* | aix5*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14026 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 14027 | test "$enable_shared" = yes && enable_static=no |
| 14028 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14029 | ;; |
| 14030 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14031 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 14032 | echo "${ECHO_T}$enable_shared" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14033 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14034 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 14035 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14036 | # Make sure either enable_shared or enable_static is yes. |
| 14037 | test "$enable_shared" = yes || enable_static=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14038 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 14039 | echo "${ECHO_T}$enable_static" >&6; } |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 14040 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14041 | GCC_F77="$G77" |
| 14042 | LD_F77="$LD" |
| 14043 | |
| 14044 | lt_prog_compiler_wl_F77= |
| 14045 | lt_prog_compiler_pic_F77= |
| 14046 | lt_prog_compiler_static_F77= |
| 14047 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14048 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 14049 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14050 | |
| 14051 | if test "$GCC" = yes; then |
| 14052 | lt_prog_compiler_wl_F77='-Wl,' |
| 14053 | lt_prog_compiler_static_F77='-static' |
| 14054 | |
| 14055 | case $host_os in |
| 14056 | aix*) |
| 14057 | # All AIX code is PIC. |
| 14058 | if test "$host_cpu" = ia64; then |
| 14059 | # AIX 5 now supports IA64 processor |
| 14060 | lt_prog_compiler_static_F77='-Bstatic' |
| 14061 | fi |
| 14062 | ;; |
| 14063 | |
| 14064 | amigaos*) |
| 14065 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 14066 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 14067 | # like `-m68040'. |
| 14068 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
| 14069 | ;; |
| 14070 | |
| 14071 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 14072 | # PIC is the default for these OSes. |
| 14073 | ;; |
| 14074 | |
| 14075 | mingw* | pw32* | os2*) |
| 14076 | # This hack is so that the source file can tell whether it is being |
| 14077 | # built for inclusion in a dll (and should export symbols for example). |
| 14078 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 14079 | ;; |
| 14080 | |
| 14081 | darwin* | rhapsody*) |
| 14082 | # PIC is the default on this platform |
| 14083 | # Common symbols not allowed in MH_DYLIB files |
| 14084 | lt_prog_compiler_pic_F77='-fno-common' |
| 14085 | ;; |
| 14086 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14087 | interix3*) |
| 14088 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 14089 | # Instead, we relocate shared libraries at runtime. |
| 14090 | ;; |
| 14091 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14092 | msdosdjgpp*) |
| 14093 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 14094 | # on systems that don't support them. |
| 14095 | lt_prog_compiler_can_build_shared_F77=no |
| 14096 | enable_shared=no |
| 14097 | ;; |
| 14098 | |
| 14099 | sysv4*MP*) |
| 14100 | if test -d /usr/nec; then |
| 14101 | lt_prog_compiler_pic_F77=-Kconform_pic |
| 14102 | fi |
| 14103 | ;; |
| 14104 | |
| 14105 | hpux*) |
| 14106 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14107 | # not for PA HP-UX. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14108 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14109 | hppa*64*|ia64*) |
| 14110 | # +Z the default |
| 14111 | ;; |
| 14112 | *) |
| 14113 | lt_prog_compiler_pic_F77='-fPIC' |
| 14114 | ;; |
| 14115 | esac |
| 14116 | ;; |
| 14117 | |
| 14118 | *) |
| 14119 | lt_prog_compiler_pic_F77='-fPIC' |
| 14120 | ;; |
| 14121 | esac |
| 14122 | else |
| 14123 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 14124 | case $host_os in |
| 14125 | aix*) |
| 14126 | lt_prog_compiler_wl_F77='-Wl,' |
| 14127 | if test "$host_cpu" = ia64; then |
| 14128 | # AIX 5 now supports IA64 processor |
| 14129 | lt_prog_compiler_static_F77='-Bstatic' |
| 14130 | else |
| 14131 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
| 14132 | fi |
| 14133 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14134 | darwin*) |
| 14135 | # PIC is the default on this platform |
| 14136 | # Common symbols not allowed in MH_DYLIB files |
| 14137 | case $cc_basename in |
| 14138 | xlc*) |
| 14139 | lt_prog_compiler_pic_F77='-qnocommon' |
| 14140 | lt_prog_compiler_wl_F77='-Wl,' |
| 14141 | ;; |
| 14142 | esac |
| 14143 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14144 | |
| 14145 | mingw* | pw32* | os2*) |
| 14146 | # This hack is so that the source file can tell whether it is being |
| 14147 | # built for inclusion in a dll (and should export symbols for example). |
| 14148 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 14149 | ;; |
| 14150 | |
| 14151 | hpux9* | hpux10* | hpux11*) |
| 14152 | lt_prog_compiler_wl_F77='-Wl,' |
| 14153 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14154 | # not for PA HP-UX. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14155 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14156 | hppa*64*|ia64*) |
| 14157 | # +Z the default |
| 14158 | ;; |
| 14159 | *) |
| 14160 | lt_prog_compiler_pic_F77='+Z' |
| 14161 | ;; |
| 14162 | esac |
| 14163 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 14164 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
| 14165 | ;; |
| 14166 | |
| 14167 | irix5* | irix6* | nonstopux*) |
| 14168 | lt_prog_compiler_wl_F77='-Wl,' |
| 14169 | # PIC (with -KPIC) is the default. |
| 14170 | lt_prog_compiler_static_F77='-non_shared' |
| 14171 | ;; |
| 14172 | |
| 14173 | newsos6) |
| 14174 | lt_prog_compiler_pic_F77='-KPIC' |
| 14175 | lt_prog_compiler_static_F77='-Bstatic' |
| 14176 | ;; |
| 14177 | |
| 14178 | linux*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14179 | case $cc_basename in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14180 | icc* | ecc*) |
| 14181 | lt_prog_compiler_wl_F77='-Wl,' |
| 14182 | lt_prog_compiler_pic_F77='-KPIC' |
| 14183 | lt_prog_compiler_static_F77='-static' |
| 14184 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14185 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 14186 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 14187 | # which looks to be a dead project) |
| 14188 | lt_prog_compiler_wl_F77='-Wl,' |
| 14189 | lt_prog_compiler_pic_F77='-fpic' |
| 14190 | lt_prog_compiler_static_F77='-Bstatic' |
| 14191 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14192 | ccc*) |
| 14193 | lt_prog_compiler_wl_F77='-Wl,' |
| 14194 | # All Alpha code is PIC. |
| 14195 | lt_prog_compiler_static_F77='-non_shared' |
| 14196 | ;; |
| 14197 | esac |
| 14198 | ;; |
| 14199 | |
| 14200 | osf3* | osf4* | osf5*) |
| 14201 | lt_prog_compiler_wl_F77='-Wl,' |
| 14202 | # All OSF/1 code is PIC. |
| 14203 | lt_prog_compiler_static_F77='-non_shared' |
| 14204 | ;; |
| 14205 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14206 | solaris*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14207 | lt_prog_compiler_pic_F77='-KPIC' |
| 14208 | lt_prog_compiler_static_F77='-Bstatic' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14209 | case $cc_basename in |
| 14210 | f77* | f90* | f95*) |
| 14211 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
| 14212 | *) |
| 14213 | lt_prog_compiler_wl_F77='-Wl,';; |
| 14214 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14215 | ;; |
| 14216 | |
| 14217 | sunos4*) |
| 14218 | lt_prog_compiler_wl_F77='-Qoption ld ' |
| 14219 | lt_prog_compiler_pic_F77='-PIC' |
| 14220 | lt_prog_compiler_static_F77='-Bstatic' |
| 14221 | ;; |
| 14222 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14223 | sysv4 | sysv4.2uw2* | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14224 | lt_prog_compiler_wl_F77='-Wl,' |
| 14225 | lt_prog_compiler_pic_F77='-KPIC' |
| 14226 | lt_prog_compiler_static_F77='-Bstatic' |
| 14227 | ;; |
| 14228 | |
| 14229 | sysv4*MP*) |
| 14230 | if test -d /usr/nec ;then |
| 14231 | lt_prog_compiler_pic_F77='-Kconform_pic' |
| 14232 | lt_prog_compiler_static_F77='-Bstatic' |
| 14233 | fi |
| 14234 | ;; |
| 14235 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14236 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 14237 | lt_prog_compiler_wl_F77='-Wl,' |
| 14238 | lt_prog_compiler_pic_F77='-KPIC' |
| 14239 | lt_prog_compiler_static_F77='-Bstatic' |
| 14240 | ;; |
| 14241 | |
| 14242 | unicos*) |
| 14243 | lt_prog_compiler_wl_F77='-Wl,' |
| 14244 | lt_prog_compiler_can_build_shared_F77=no |
| 14245 | ;; |
| 14246 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14247 | uts4*) |
| 14248 | lt_prog_compiler_pic_F77='-pic' |
| 14249 | lt_prog_compiler_static_F77='-Bstatic' |
| 14250 | ;; |
| 14251 | |
| 14252 | *) |
| 14253 | lt_prog_compiler_can_build_shared_F77=no |
| 14254 | ;; |
| 14255 | esac |
| 14256 | fi |
| 14257 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14258 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
| 14259 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14260 | |
| 14261 | # |
| 14262 | # Check to make sure the PIC flag actually works. |
| 14263 | # |
| 14264 | if test -n "$lt_prog_compiler_pic_F77"; then |
| 14265 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14266 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
| 14267 | 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] | 14268 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
| 14269 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14270 | else |
| 14271 | lt_prog_compiler_pic_works_F77=no |
| 14272 | ac_outfile=conftest.$ac_objext |
| 14273 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14274 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
| 14275 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14276 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14277 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14278 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14279 | # The option is referenced via a variable to avoid confusing sed. |
| 14280 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14281 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14282 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14283 | -e 's:$: $lt_compiler_flag:'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14284 | (eval echo "\"\$as_me:14284: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14285 | (eval "$lt_compile" 2>conftest.err) |
| 14286 | ac_status=$? |
| 14287 | cat conftest.err >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14288 | echo "$as_me:14288: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14289 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14290 | # The compiler can only warn and ignore the option if not recognized |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14291 | # So say no if there are warnings other than the usual output. |
| 14292 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 14293 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14294 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14295 | lt_prog_compiler_pic_works_F77=yes |
| 14296 | fi |
| 14297 | fi |
| 14298 | $rm conftest* |
| 14299 | |
| 14300 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14301 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
| 14302 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14303 | |
| 14304 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
| 14305 | case $lt_prog_compiler_pic_F77 in |
| 14306 | "" | " "*) ;; |
| 14307 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
| 14308 | esac |
| 14309 | else |
| 14310 | lt_prog_compiler_pic_F77= |
| 14311 | lt_prog_compiler_can_build_shared_F77=no |
| 14312 | fi |
| 14313 | |
| 14314 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14315 | case $host_os in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14316 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 14317 | *djgpp*) |
| 14318 | lt_prog_compiler_pic_F77= |
| 14319 | ;; |
| 14320 | *) |
| 14321 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
| 14322 | ;; |
| 14323 | esac |
| 14324 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14325 | # |
| 14326 | # Check to make sure the static flag actually works. |
| 14327 | # |
| 14328 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
| 14329 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 14330 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 14331 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
| 14332 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14333 | else |
| 14334 | lt_prog_compiler_static_works_F77=no |
| 14335 | save_LDFLAGS="$LDFLAGS" |
| 14336 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 14337 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 14338 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 14339 | # The linker can only warn and ignore the option if not recognized |
| 14340 | # So say no if there are warnings |
| 14341 | if test -s conftest.err; then |
| 14342 | # Append any errors to the config.log. |
| 14343 | cat conftest.err 1>&5 |
| 14344 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 14345 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14346 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 14347 | lt_prog_compiler_static_works_F77=yes |
| 14348 | fi |
| 14349 | else |
| 14350 | lt_prog_compiler_static_works_F77=yes |
| 14351 | fi |
| 14352 | fi |
| 14353 | $rm conftest* |
| 14354 | LDFLAGS="$save_LDFLAGS" |
| 14355 | |
| 14356 | fi |
| 14357 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
| 14358 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } |
| 14359 | |
| 14360 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
| 14361 | : |
| 14362 | else |
| 14363 | lt_prog_compiler_static_F77= |
| 14364 | fi |
| 14365 | |
| 14366 | |
| 14367 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 14368 | 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] | 14369 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
| 14370 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14371 | else |
| 14372 | lt_cv_prog_compiler_c_o_F77=no |
| 14373 | $rm -r conftest 2>/dev/null |
| 14374 | mkdir conftest |
| 14375 | cd conftest |
| 14376 | mkdir out |
| 14377 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14378 | |
| 14379 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 14380 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14381 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14382 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14383 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14384 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14385 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14386 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14387 | -e 's:$: $lt_compiler_flag:'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14388 | (eval echo "\"\$as_me:14388: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14389 | (eval "$lt_compile" 2>out/conftest.err) |
| 14390 | ac_status=$? |
| 14391 | cat out/conftest.err >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14392 | echo "$as_me:14392: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14393 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 14394 | then |
| 14395 | # The compiler can only warn and ignore the option if not recognized |
| 14396 | # So say no if there are warnings |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14397 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 14398 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 14399 | 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] | 14400 | lt_cv_prog_compiler_c_o_F77=yes |
| 14401 | fi |
| 14402 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14403 | chmod u+w . 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14404 | $rm conftest* |
| 14405 | # SGI C++ compiler will create directory out/ii_files/ for |
| 14406 | # template instantiation |
| 14407 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 14408 | $rm out/* && rmdir out |
| 14409 | cd .. |
| 14410 | rmdir conftest |
| 14411 | $rm conftest* |
| 14412 | |
| 14413 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14414 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
| 14415 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14416 | |
| 14417 | |
| 14418 | hard_links="nottested" |
| 14419 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
| 14420 | # do not overwrite the value of need_locks provided by the user |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14421 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 14422 | 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] | 14423 | hard_links=yes |
| 14424 | $rm conftest* |
| 14425 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 14426 | touch conftest.a |
| 14427 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 14428 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14429 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 14430 | echo "${ECHO_T}$hard_links" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14431 | if test "$hard_links" = no; then |
| 14432 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 14433 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 14434 | need_locks=warn |
| 14435 | fi |
| 14436 | else |
| 14437 | need_locks=no |
| 14438 | fi |
| 14439 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14440 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 14441 | 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] | 14442 | |
| 14443 | runpath_var= |
| 14444 | allow_undefined_flag_F77= |
| 14445 | enable_shared_with_static_runtimes_F77=no |
| 14446 | archive_cmds_F77= |
| 14447 | archive_expsym_cmds_F77= |
| 14448 | old_archive_From_new_cmds_F77= |
| 14449 | old_archive_from_expsyms_cmds_F77= |
| 14450 | export_dynamic_flag_spec_F77= |
| 14451 | whole_archive_flag_spec_F77= |
| 14452 | thread_safe_flag_spec_F77= |
| 14453 | hardcode_libdir_flag_spec_F77= |
| 14454 | hardcode_libdir_flag_spec_ld_F77= |
| 14455 | hardcode_libdir_separator_F77= |
| 14456 | hardcode_direct_F77=no |
| 14457 | hardcode_minus_L_F77=no |
| 14458 | hardcode_shlibpath_var_F77=unsupported |
| 14459 | link_all_deplibs_F77=unknown |
| 14460 | hardcode_automatic_F77=no |
| 14461 | module_cmds_F77= |
| 14462 | module_expsym_cmds_F77= |
| 14463 | always_export_symbols_F77=no |
| 14464 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 14465 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 14466 | # included in the symbol list |
| 14467 | include_expsyms_F77= |
| 14468 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 14469 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 14470 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 14471 | # as well as any symbol that contains `d'. |
| 14472 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
| 14473 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 14474 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 14475 | # the symbol is explicitly referenced. Since portable code cannot |
| 14476 | # rely on this symbol name, it's probably fine to never include it in |
| 14477 | # preloaded symbol tables. |
| 14478 | extract_expsyms_cmds= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14479 | # Just being paranoid about ensuring that cc_basename is set. |
| 14480 | for cc_temp in $compiler""; do |
| 14481 | case $cc_temp in |
| 14482 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 14483 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 14484 | \-*) ;; |
| 14485 | *) break;; |
| 14486 | esac |
| 14487 | done |
| 14488 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14489 | |
| 14490 | case $host_os in |
| 14491 | cygwin* | mingw* | pw32*) |
| 14492 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 14493 | # When not using gcc, we currently assume that we are using |
| 14494 | # Microsoft Visual C++. |
| 14495 | if test "$GCC" != yes; then |
| 14496 | with_gnu_ld=no |
| 14497 | fi |
| 14498 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14499 | interix*) |
| 14500 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 14501 | with_gnu_ld=yes |
| 14502 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14503 | openbsd*) |
| 14504 | with_gnu_ld=no |
| 14505 | ;; |
| 14506 | esac |
| 14507 | |
| 14508 | ld_shlibs_F77=yes |
| 14509 | if test "$with_gnu_ld" = yes; then |
| 14510 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 14511 | wlarc='${wl}' |
| 14512 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14513 | # Set some defaults for GNU ld with shared library support. These |
| 14514 | # are reset later if shared libraries are not supported. Putting them |
| 14515 | # here allows them to be overridden if necessary. |
| 14516 | runpath_var=LD_RUN_PATH |
| 14517 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
| 14518 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
| 14519 | # ancient GNU ld didn't support --whole-archive et. al. |
| 14520 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 14521 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 14522 | else |
| 14523 | whole_archive_flag_spec_F77= |
| 14524 | fi |
| 14525 | supports_anon_versioning=no |
| 14526 | case `$LD -v 2>/dev/null` in |
| 14527 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 14528 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 14529 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 14530 | *\ 2.11.*) ;; # other 2.11 versions |
| 14531 | *) supports_anon_versioning=yes ;; |
| 14532 | esac |
| 14533 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14534 | # See if GNU ld supports shared libraries. |
| 14535 | case $host_os in |
| 14536 | aix3* | aix4* | aix5*) |
| 14537 | # On AIX/PPC, the GNU linker is very broken |
| 14538 | if test "$host_cpu" != ia64; then |
| 14539 | ld_shlibs_F77=no |
| 14540 | cat <<EOF 1>&2 |
| 14541 | |
| 14542 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 14543 | *** to be unable to reliably create shared libraries on AIX. |
| 14544 | *** Therefore, libtool is disabling shared libraries support. If you |
| 14545 | *** really care for shared libraries, you may want to modify your PATH |
| 14546 | *** so that a non-GNU linker is found, and then restart. |
| 14547 | |
| 14548 | EOF |
| 14549 | fi |
| 14550 | ;; |
| 14551 | |
| 14552 | amigaos*) |
| 14553 | 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)' |
| 14554 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14555 | hardcode_minus_L_F77=yes |
| 14556 | |
| 14557 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 14558 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 14559 | # to version 4, is to share data among multiple programs linked |
| 14560 | # with the same dynamic library. Since this doesn't match the |
| 14561 | # behavior of shared libraries on other platforms, we can't use |
| 14562 | # them. |
| 14563 | ld_shlibs_F77=no |
| 14564 | ;; |
| 14565 | |
| 14566 | beos*) |
| 14567 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14568 | allow_undefined_flag_F77=unsupported |
| 14569 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 14570 | # support --undefined. This deserves some investigation. FIXME |
| 14571 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14572 | else |
| 14573 | ld_shlibs_F77=no |
| 14574 | fi |
| 14575 | ;; |
| 14576 | |
| 14577 | cygwin* | mingw* | pw32*) |
| 14578 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
| 14579 | # as there is no search path for DLLs. |
| 14580 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14581 | allow_undefined_flag_F77=unsupported |
| 14582 | always_export_symbols_F77=no |
| 14583 | enable_shared_with_static_runtimes_F77=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14584 | 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] | 14585 | |
| 14586 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14587 | 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] | 14588 | # If the export-symbols file already is a .def file (1st line |
| 14589 | # is EXPORTS), use it as is; otherwise, prepend... |
| 14590 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 14591 | cp $export_symbols $output_objdir/$soname.def; |
| 14592 | else |
| 14593 | echo EXPORTS > $output_objdir/$soname.def; |
| 14594 | cat $export_symbols >> $output_objdir/$soname.def; |
| 14595 | fi~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14596 | $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] | 14597 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14598 | ld_shlibs_F77=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14599 | fi |
| 14600 | ;; |
| 14601 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14602 | interix3*) |
| 14603 | hardcode_direct_F77=no |
| 14604 | hardcode_shlibpath_var_F77=no |
| 14605 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 14606 | export_dynamic_flag_spec_F77='${wl}-E' |
| 14607 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 14608 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 14609 | # default) and relocated if they conflict, which is a slow very memory |
| 14610 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 14611 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 14612 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 14613 | 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' |
| 14614 | 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' |
| 14615 | ;; |
| 14616 | |
| 14617 | linux*) |
| 14618 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14619 | tmp_addflag= |
| 14620 | case $cc_basename,$host_cpu in |
| 14621 | pgcc*) # Portland Group C compiler |
| 14622 | 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' |
| 14623 | tmp_addflag=' $pic_flag' |
| 14624 | ;; |
| 14625 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 14626 | 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' |
| 14627 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 14628 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 14629 | tmp_addflag=' -i_dynamic' ;; |
| 14630 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 14631 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 14632 | ifc* | ifort*) # Intel Fortran compiler |
| 14633 | tmp_addflag=' -nofor_main' ;; |
| 14634 | esac |
| 14635 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14636 | |
| 14637 | if test $supports_anon_versioning = yes; then |
| 14638 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 14639 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 14640 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 14641 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 14642 | fi |
| 14643 | else |
| 14644 | ld_shlibs_F77=no |
| 14645 | fi |
| 14646 | ;; |
| 14647 | |
| 14648 | netbsd*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14649 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 14650 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 14651 | wlarc= |
| 14652 | else |
| 14653 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14654 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 14655 | fi |
| 14656 | ;; |
| 14657 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14658 | solaris*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14659 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 14660 | ld_shlibs_F77=no |
| 14661 | cat <<EOF 1>&2 |
| 14662 | |
| 14663 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 14664 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 14665 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 14666 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 14667 | *** your PATH or compiler configuration so that the native linker is |
| 14668 | *** used, and then restart. |
| 14669 | |
| 14670 | EOF |
| 14671 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14672 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14673 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 14674 | else |
| 14675 | ld_shlibs_F77=no |
| 14676 | fi |
| 14677 | ;; |
| 14678 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14679 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 14680 | case `$LD -v 2>&1` in |
| 14681 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 14682 | ld_shlibs_F77=no |
| 14683 | cat <<_LT_EOF 1>&2 |
| 14684 | |
| 14685 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 14686 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 14687 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 14688 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 14689 | *** your PATH or compiler configuration so that the native linker is |
| 14690 | *** used, and then restart. |
| 14691 | |
| 14692 | _LT_EOF |
| 14693 | ;; |
| 14694 | *) |
| 14695 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14696 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 14697 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 14698 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 14699 | else |
| 14700 | ld_shlibs_F77=no |
| 14701 | fi |
| 14702 | ;; |
| 14703 | esac |
| 14704 | ;; |
| 14705 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14706 | sunos4*) |
| 14707 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 14708 | wlarc= |
| 14709 | hardcode_direct_F77=yes |
| 14710 | hardcode_shlibpath_var_F77=no |
| 14711 | ;; |
| 14712 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14713 | *) |
| 14714 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14715 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14716 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 14717 | else |
| 14718 | ld_shlibs_F77=no |
| 14719 | fi |
| 14720 | ;; |
| 14721 | esac |
| 14722 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14723 | if test "$ld_shlibs_F77" = no; then |
| 14724 | runpath_var= |
| 14725 | hardcode_libdir_flag_spec_F77= |
| 14726 | export_dynamic_flag_spec_F77= |
| 14727 | whole_archive_flag_spec_F77= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14728 | fi |
| 14729 | else |
| 14730 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 14731 | case $host_os in |
| 14732 | aix3*) |
| 14733 | allow_undefined_flag_F77=unsupported |
| 14734 | always_export_symbols_F77=yes |
| 14735 | 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' |
| 14736 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 14737 | # are no directories specified by -L. |
| 14738 | hardcode_minus_L_F77=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14739 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14740 | # Neither direct hardcoding nor static linking is supported with a |
| 14741 | # broken collect2. |
| 14742 | hardcode_direct_F77=unsupported |
| 14743 | fi |
| 14744 | ;; |
| 14745 | |
| 14746 | aix4* | aix5*) |
| 14747 | if test "$host_cpu" = ia64; then |
| 14748 | # On IA64, the linker does run time linking by default, so we don't |
| 14749 | # have to do anything special. |
| 14750 | aix_use_runtimelinking=no |
| 14751 | exp_sym_flag='-Bexport' |
| 14752 | no_entry_flag="" |
| 14753 | else |
| 14754 | # If we're using GNU nm, then we don't want the "-C" option. |
| 14755 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 14756 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 14757 | 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' |
| 14758 | else |
| 14759 | 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' |
| 14760 | fi |
| 14761 | aix_use_runtimelinking=no |
| 14762 | |
| 14763 | # Test if we are trying to use run time linking or normal |
| 14764 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 14765 | # need to do runtime linking. |
| 14766 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 14767 | for ld_flag in $LDFLAGS; do |
| 14768 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 14769 | aix_use_runtimelinking=yes |
| 14770 | break |
| 14771 | fi |
| 14772 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14773 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14774 | esac |
| 14775 | |
| 14776 | exp_sym_flag='-bexport' |
| 14777 | no_entry_flag='-bnoentry' |
| 14778 | fi |
| 14779 | |
| 14780 | # When large executables or shared objects are built, AIX ld can |
| 14781 | # have problems creating the table of contents. If linking a library |
| 14782 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 14783 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 14784 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 14785 | |
| 14786 | archive_cmds_F77='' |
| 14787 | hardcode_direct_F77=yes |
| 14788 | hardcode_libdir_separator_F77=':' |
| 14789 | link_all_deplibs_F77=yes |
| 14790 | |
| 14791 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14792 | case $host_os in aix4.[012]|aix4.[012].*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14793 | # We only want to do this on AIX 4.2 and lower, the check |
| 14794 | # below for broken collect2 doesn't work under 4.3+ |
| 14795 | collect2name=`${CC} -print-prog-name=collect2` |
| 14796 | if test -f "$collect2name" && \ |
| 14797 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 14798 | then |
| 14799 | # We have reworked collect2 |
| 14800 | hardcode_direct_F77=yes |
| 14801 | else |
| 14802 | # We have old collect2 |
| 14803 | hardcode_direct_F77=unsupported |
| 14804 | # It fails to find uninstalled libraries when the uninstalled |
| 14805 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 14806 | # to unsupported forces relinking |
| 14807 | hardcode_minus_L_F77=yes |
| 14808 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14809 | hardcode_libdir_separator_F77= |
| 14810 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14811 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14812 | esac |
| 14813 | shared_flag='-shared' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14814 | if test "$aix_use_runtimelinking" = yes; then |
| 14815 | shared_flag="$shared_flag "'${wl}-G' |
| 14816 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14817 | else |
| 14818 | # not using gcc |
| 14819 | if test "$host_cpu" = ia64; then |
| 14820 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 14821 | # chokes on -Wl,-G. The following line is correct: |
| 14822 | shared_flag='-G' |
| 14823 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14824 | if test "$aix_use_runtimelinking" = yes; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14825 | shared_flag='${wl}-G' |
| 14826 | else |
| 14827 | shared_flag='${wl}-bM:SRE' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14828 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14829 | fi |
| 14830 | fi |
| 14831 | |
| 14832 | # It seems that -bexpall does not export symbols beginning with |
| 14833 | # underscore (_), so it is better to generate a list of symbols to export. |
| 14834 | always_export_symbols_F77=yes |
| 14835 | if test "$aix_use_runtimelinking" = yes; then |
| 14836 | # Warning - without using the other runtime loading flags (-brtl), |
| 14837 | # -berok will link without error, but may produce a broken library. |
| 14838 | allow_undefined_flag_F77='-berok' |
| 14839 | # Determine the default libpath from the value encoded in an empty executable. |
| 14840 | cat >conftest.$ac_ext <<_ACEOF |
| 14841 | program main |
| 14842 | |
| 14843 | end |
| 14844 | _ACEOF |
| 14845 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14846 | if { (ac_try="$ac_link" |
| 14847 | case "(($ac_try" in |
| 14848 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14849 | *) ac_try_echo=$ac_try;; |
| 14850 | esac |
| 14851 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14852 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14853 | ac_status=$? |
| 14854 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14855 | rm -f conftest.er1 |
| 14856 | cat conftest.err >&5 |
| 14857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14858 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14859 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 14860 | { (case "(($ac_try" in |
| 14861 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14862 | *) ac_try_echo=$ac_try;; |
| 14863 | esac |
| 14864 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14865 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14866 | ac_status=$? |
| 14867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14868 | (exit $ac_status); }; } && |
| 14869 | { ac_try='test -s conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14870 | { (case "(($ac_try" in |
| 14871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14872 | *) ac_try_echo=$ac_try;; |
| 14873 | esac |
| 14874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14875 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14876 | ac_status=$? |
| 14877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14878 | (exit $ac_status); }; }; then |
| 14879 | |
| 14880 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 14881 | }'` |
| 14882 | # Check for a 64-bit object if we didn't find anything. |
| 14883 | 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; } |
| 14884 | }'`; fi |
| 14885 | else |
| 14886 | echo "$as_me: failed program was:" >&5 |
| 14887 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14888 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14889 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14890 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14891 | |
| 14892 | rm -f core conftest.err conftest.$ac_objext \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14893 | conftest$ac_exeext conftest.$ac_ext |
| 14894 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 14895 | |
| 14896 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14897 | 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] | 14898 | else |
| 14899 | if test "$host_cpu" = ia64; then |
| 14900 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
| 14901 | allow_undefined_flag_F77="-z nodefs" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14902 | 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] | 14903 | else |
| 14904 | # Determine the default libpath from the value encoded in an empty executable. |
| 14905 | cat >conftest.$ac_ext <<_ACEOF |
| 14906 | program main |
| 14907 | |
| 14908 | end |
| 14909 | _ACEOF |
| 14910 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14911 | if { (ac_try="$ac_link" |
| 14912 | case "(($ac_try" in |
| 14913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14914 | *) ac_try_echo=$ac_try;; |
| 14915 | esac |
| 14916 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14917 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14918 | ac_status=$? |
| 14919 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14920 | rm -f conftest.er1 |
| 14921 | cat conftest.err >&5 |
| 14922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14923 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14924 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 14925 | { (case "(($ac_try" in |
| 14926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14927 | *) ac_try_echo=$ac_try;; |
| 14928 | esac |
| 14929 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14930 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14931 | ac_status=$? |
| 14932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14933 | (exit $ac_status); }; } && |
| 14934 | { ac_try='test -s conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14935 | { (case "(($ac_try" in |
| 14936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14937 | *) ac_try_echo=$ac_try;; |
| 14938 | esac |
| 14939 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14940 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14941 | ac_status=$? |
| 14942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14943 | (exit $ac_status); }; }; then |
| 14944 | |
| 14945 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 14946 | }'` |
| 14947 | # Check for a 64-bit object if we didn't find anything. |
| 14948 | 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; } |
| 14949 | }'`; fi |
| 14950 | else |
| 14951 | echo "$as_me: failed program was:" >&5 |
| 14952 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14953 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14954 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14955 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14956 | |
| 14957 | rm -f core conftest.err conftest.$ac_objext \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14958 | conftest$ac_exeext conftest.$ac_ext |
| 14959 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 14960 | |
| 14961 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 14962 | # Warning - without using the other run time loading flags, |
| 14963 | # -berok will link without error, but may produce a broken library. |
| 14964 | no_undefined_flag_F77=' ${wl}-bernotok' |
| 14965 | allow_undefined_flag_F77=' ${wl}-berok' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14966 | # Exported symbols can be pulled into shared objects from archives |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14967 | whole_archive_flag_spec_F77='$convenience' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14968 | archive_cmds_need_lc_F77=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14969 | # This is similar to how AIX traditionally builds its shared libraries. |
| 14970 | 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] | 14971 | fi |
| 14972 | fi |
| 14973 | ;; |
| 14974 | |
| 14975 | amigaos*) |
| 14976 | 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)' |
| 14977 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14978 | hardcode_minus_L_F77=yes |
| 14979 | # see comment about different semantics on the GNU ld section |
| 14980 | ld_shlibs_F77=no |
| 14981 | ;; |
| 14982 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 14983 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14984 | export_dynamic_flag_spec_F77=-rdynamic |
| 14985 | ;; |
| 14986 | |
| 14987 | cygwin* | mingw* | pw32*) |
| 14988 | # When not using gcc, we currently assume that we are using |
| 14989 | # Microsoft Visual C++. |
| 14990 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 14991 | # no search path for DLLs. |
| 14992 | hardcode_libdir_flag_spec_F77=' ' |
| 14993 | allow_undefined_flag_F77=unsupported |
| 14994 | # Tell ltmain to make .lib files, not .a files. |
| 14995 | libext=lib |
| 14996 | # Tell ltmain to make .dll files, not .so files. |
| 14997 | shrext_cmds=".dll" |
| 14998 | # FIXME: Setting linknames here is a bad hack. |
| 14999 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 15000 | # The linker will automatically build a .lib file if we build a DLL. |
| 15001 | old_archive_From_new_cmds_F77='true' |
| 15002 | # FIXME: Should let the user specify the lib program. |
| 15003 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 15004 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15005 | enable_shared_with_static_runtimes_F77=yes |
| 15006 | ;; |
| 15007 | |
| 15008 | darwin* | rhapsody*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 15009 | case $host_os in |
| 15010 | rhapsody* | darwin1.[012]) |
| 15011 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
| 15012 | ;; |
| 15013 | *) # Darwin 1.3 on |
| 15014 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 15015 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 15016 | else |
| 15017 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 15018 | 10.[012]) |
| 15019 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 15020 | ;; |
| 15021 | 10.*) |
| 15022 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
| 15023 | ;; |
| 15024 | esac |
| 15025 | fi |
| 15026 | ;; |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 15027 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 15028 | archive_cmds_need_lc_F77=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15029 | hardcode_direct_F77=no |
| 15030 | hardcode_automatic_F77=yes |
| 15031 | hardcode_shlibpath_var_F77=unsupported |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 15032 | whole_archive_flag_spec_F77='' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15033 | link_all_deplibs_F77=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 15034 | if test "$GCC" = yes ; then |
| 15035 | output_verbose_link_cmd='echo' |
| 15036 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 15037 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 15038 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 15039 | 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}' |
| 15040 | 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] | 15041 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 15042 | case $cc_basename in |
| 15043 | xlc*) |
| 15044 | output_verbose_link_cmd='echo' |
| 15045 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 15046 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 15047 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 15048 | 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}' |
| 15049 | 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}' |
| 15050 | ;; |
| 15051 | *) |
| 15052 | ld_shlibs_F77=no |
| 15053 | ;; |
| 15054 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15055 | fi |
| 15056 | ;; |
| 15057 | |
| 15058 | dgux*) |
| 15059 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15060 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 15061 | hardcode_shlibpath_var_F77=no |
| 15062 | ;; |
| 15063 | |
| 15064 | freebsd1*) |
| 15065 | ld_shlibs_F77=no |
| 15066 | ;; |
| 15067 | |
| 15068 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 15069 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 15070 | # does not break anything, and helps significantly (at the cost of a little |
| 15071 | # extra space). |
| 15072 | freebsd2.2*) |
| 15073 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 15074 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 15075 | hardcode_direct_F77=yes |
| 15076 | hardcode_shlibpath_var_F77=no |
| 15077 | ;; |
| 15078 | |
| 15079 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 15080 | freebsd2*) |
| 15081 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15082 | hardcode_direct_F77=yes |
| 15083 | hardcode_minus_L_F77=yes |
| 15084 | hardcode_shlibpath_var_F77=no |
| 15085 | ;; |
| 15086 | |
| 15087 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 15088 | freebsd* | kfreebsd*-gnu | dragonfly*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15089 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 15090 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 15091 | hardcode_direct_F77=yes |
| 15092 | hardcode_shlibpath_var_F77=no |
| 15093 | ;; |
| 15094 | |
| 15095 | hpux9*) |
| 15096 | if test "$GCC" = yes; then |
| 15097 | 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' |
| 15098 | else |
| 15099 | 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' |
| 15100 | fi |
| 15101 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 15102 | hardcode_libdir_separator_F77=: |
| 15103 | hardcode_direct_F77=yes |
| 15104 | |
| 15105 | # hardcode_minus_L: Not really in the search PATH, |
| 15106 | # but as the default location of the library. |
| 15107 | hardcode_minus_L_F77=yes |
| 15108 | export_dynamic_flag_spec_F77='${wl}-E' |
| 15109 | ;; |
| 15110 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 15111 | hpux10*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15112 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 15113 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 15114 | else |
| 15115 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 15116 | fi |
| 15117 | if test "$with_gnu_ld" = no; then |
| 15118 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 15119 | hardcode_libdir_separator_F77=: |
| 15120 | |
| 15121 | hardcode_direct_F77=yes |
| 15122 | export_dynamic_flag_spec_F77='${wl}-E' |
| 15123 | |
| 15124 | # hardcode_minus_L: Not really in the search PATH, |
| 15125 | # but as the default location of the library. |
| 15126 | hardcode_minus_L_F77=yes |
| 15127 | fi |
| 15128 | ;; |
| 15129 | |
| 15130 | hpux11*) |
| 15131 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 15132 | case $host_cpu in |
| 15133 | hppa*64*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15134 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15135 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 15136 | ia64*) |
| 15137 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 15138 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15139 | *) |
| 15140 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 15141 | ;; |
| 15142 | esac |
| 15143 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 15144 | case $host_cpu in |
| 15145 | hppa*64*) |
| 15146 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15147 | ;; |
| 15148 | ia64*) |
| 15149 | 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] | 15150 | ;; |
| 15151 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 15152 | 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] | 15153 | ;; |
| 15154 | esac |
| 15155 | fi |
| 15156 | if test "$with_gnu_ld" = no; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 15157 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 15158 | hardcode_libdir_separator_F77=: |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 15159 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 15160 | case $host_cpu in |
| 15161 | hppa*64*|ia64*) |
| 15162 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
| 15163 | hardcode_direct_F77=no |
| 15164 | hardcode_shlibpath_var_F77=no |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 15165 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15166 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15167 | hardcode_direct_F77=yes |
| 15168 | export_dynamic_flag_spec_F77='${wl}-E' |
| 15169 | |
| 15170 | # hardcode_minus_L: Not really in the search PATH, |
| 15171 | # but as the default location of the library. |
| 15172 | hardcode_minus_L_F77=yes |
| 15173 | ;; |
| 15174 | esac |
| 15175 | fi |
| 15176 | ;; |
| 15177 | |
| 15178 | irix5* | irix6* | nonstopux*) |
| 15179 | if test "$GCC" = yes; then |
| 15180 | 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' |
| 15181 | else |
| 15182 | 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' |
| 15183 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
| 15184 | fi |
| 15185 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 15186 | hardcode_libdir_separator_F77=: |
| 15187 | link_all_deplibs_F77=yes |
| 15188 | ;; |
| 15189 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 15190 | netbsd*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15191 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 15192 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 15193 | else |
| 15194 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 15195 | fi |
| 15196 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 15197 | hardcode_direct_F77=yes |
| 15198 | hardcode_shlibpath_var_F77=no |
| 15199 | ;; |
| 15200 | |
| 15201 | newsos6) |
| 15202 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15203 | hardcode_direct_F77=yes |
| 15204 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 15205 | hardcode_libdir_separator_F77=: |
| 15206 | hardcode_shlibpath_var_F77=no |
| 15207 | ;; |
| 15208 | |
| 15209 | openbsd*) |
| 15210 | hardcode_direct_F77=yes |
| 15211 | hardcode_shlibpath_var_F77=no |
| 15212 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 15213 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 15214 | 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] | 15215 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 15216 | export_dynamic_flag_spec_F77='${wl}-E' |
| 15217 | else |
| 15218 | case $host_os in |
| 15219 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 15220 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15221 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 15222 | ;; |
| 15223 | *) |
| 15224 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 15225 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 15226 | ;; |
| 15227 | esac |
| 15228 | fi |
| 15229 | ;; |
| 15230 | |
| 15231 | os2*) |
| 15232 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 15233 | hardcode_minus_L_F77=yes |
| 15234 | allow_undefined_flag_F77=unsupported |
| 15235 | 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' |
| 15236 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 15237 | ;; |
| 15238 | |
| 15239 | osf3*) |
| 15240 | if test "$GCC" = yes; then |
| 15241 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 15242 | 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' |
| 15243 | else |
| 15244 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 15245 | 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' |
| 15246 | fi |
| 15247 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 15248 | hardcode_libdir_separator_F77=: |
| 15249 | ;; |
| 15250 | |
| 15251 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 15252 | if test "$GCC" = yes; then |
| 15253 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 15254 | 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' |
| 15255 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 15256 | else |
| 15257 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 15258 | 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' |
| 15259 | 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^] | 15260 | $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] | 15261 | |
| 15262 | # Both c and cxx compiler support -rpath directly |
| 15263 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
| 15264 | fi |
| 15265 | hardcode_libdir_separator_F77=: |
| 15266 | ;; |
| 15267 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15268 | solaris*) |
| 15269 | no_undefined_flag_F77=' -z text' |
| 15270 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 15271 | wlarc='${wl}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15272 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15273 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 15274 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 15275 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 15276 | wlarc='' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15277 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15278 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 15279 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 15280 | fi |
| 15281 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 15282 | hardcode_shlibpath_var_F77=no |
| 15283 | case $host_os in |
| 15284 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 15285 | *) |
| 15286 | # The compiler driver will combine linker options so we |
| 15287 | # cannot just pass the convience library names through |
| 15288 | # without $wl, iff we do not link with $LD. |
| 15289 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 15290 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 15291 | case $wlarc in |
| 15292 | '') |
| 15293 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
| 15294 | *) |
| 15295 | 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' ;; |
| 15296 | esac ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15297 | esac |
| 15298 | link_all_deplibs_F77=yes |
| 15299 | ;; |
| 15300 | |
| 15301 | sunos4*) |
| 15302 | if test "x$host_vendor" = xsequent; then |
| 15303 | # Use $CC to link under sequent, because it throws in some extra .o |
| 15304 | # files that make .init and .fini sections work. |
| 15305 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15306 | else |
| 15307 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 15308 | fi |
| 15309 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 15310 | hardcode_direct_F77=yes |
| 15311 | hardcode_minus_L_F77=yes |
| 15312 | hardcode_shlibpath_var_F77=no |
| 15313 | ;; |
| 15314 | |
| 15315 | sysv4) |
| 15316 | case $host_vendor in |
| 15317 | sni) |
| 15318 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15319 | hardcode_direct_F77=yes # is this really true??? |
| 15320 | ;; |
| 15321 | siemens) |
| 15322 | ## LD is ld it makes a PLAMLIB |
| 15323 | ## CC just makes a GrossModule. |
| 15324 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 15325 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
| 15326 | hardcode_direct_F77=no |
| 15327 | ;; |
| 15328 | motorola) |
| 15329 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15330 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
| 15331 | ;; |
| 15332 | esac |
| 15333 | runpath_var='LD_RUN_PATH' |
| 15334 | hardcode_shlibpath_var_F77=no |
| 15335 | ;; |
| 15336 | |
| 15337 | sysv4.3*) |
| 15338 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15339 | hardcode_shlibpath_var_F77=no |
| 15340 | export_dynamic_flag_spec_F77='-Bexport' |
| 15341 | ;; |
| 15342 | |
| 15343 | sysv4*MP*) |
| 15344 | if test -d /usr/nec; then |
| 15345 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15346 | hardcode_shlibpath_var_F77=no |
| 15347 | runpath_var=LD_RUN_PATH |
| 15348 | hardcode_runpath_var=yes |
| 15349 | ld_shlibs_F77=yes |
| 15350 | fi |
| 15351 | ;; |
| 15352 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 15353 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 15354 | no_undefined_flag_F77='${wl}-z,text' |
| 15355 | archive_cmds_need_lc_F77=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15356 | hardcode_shlibpath_var_F77=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 15357 | runpath_var='LD_RUN_PATH' |
bryner | 07f8ef5 | 2006-09-05 19:42:57 +0000 | [diff] [blame] | 15358 | |
mmentovai | 3261e8b | 2006-09-06 02:56:44 +0000 | [diff] [blame] | 15359 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 15360 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15361 | 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] | 15362 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 15363 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15364 | 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] | 15365 | fi |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 15366 | ;; |
| 15367 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 15368 | sysv5* | sco3.2v5* | sco5v6*) |
| 15369 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 15370 | # link with -lc, and that would cause any symbols used from libc to |
| 15371 | # always be unresolved, which means just about no library would |
| 15372 | # ever link correctly. If we're not using GNU ld we use -z text |
| 15373 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 15374 | # as -z defs. |
| 15375 | no_undefined_flag_F77='${wl}-z,text' |
| 15376 | allow_undefined_flag_F77='${wl}-z,nodefs' |
| 15377 | archive_cmds_need_lc_F77=no |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 15378 | hardcode_shlibpath_var_F77=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 15379 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 15380 | hardcode_libdir_separator_F77=':' |
| 15381 | link_all_deplibs_F77=yes |
| 15382 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 15383 | runpath_var='LD_RUN_PATH' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 15384 | |
| 15385 | if test "$GCC" = yes; then |
| 15386 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15387 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15388 | else |
| 15389 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15390 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15391 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15392 | ;; |
| 15393 | |
| 15394 | uts4*) |
| 15395 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15396 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 15397 | hardcode_shlibpath_var_F77=no |
| 15398 | ;; |
| 15399 | |
| 15400 | *) |
| 15401 | ld_shlibs_F77=no |
| 15402 | ;; |
| 15403 | esac |
| 15404 | fi |
| 15405 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 15406 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
| 15407 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15408 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 15409 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15410 | # |
| 15411 | # Do we need to explicitly link libc? |
| 15412 | # |
| 15413 | case "x$archive_cmds_need_lc_F77" in |
| 15414 | x|xyes) |
| 15415 | # Assume -lc should be added |
| 15416 | archive_cmds_need_lc_F77=yes |
| 15417 | |
| 15418 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 15419 | case $archive_cmds_F77 in |
| 15420 | *'~'*) |
| 15421 | # FIXME: we may have to deal with multi-command sequences. |
| 15422 | ;; |
| 15423 | '$CC '*) |
| 15424 | # Test whether the compiler implicitly links with -lc since on some |
| 15425 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 15426 | # to ld, don't add -lc before -lgcc. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 15427 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 15428 | 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] | 15429 | $rm conftest* |
| 15430 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15431 | |
| 15432 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15433 | (eval $ac_compile) 2>&5 |
| 15434 | ac_status=$? |
| 15435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15436 | (exit $ac_status); } 2>conftest.err; then |
| 15437 | soname=conftest |
| 15438 | lib=conftest |
| 15439 | libobjs=conftest.$ac_objext |
| 15440 | deplibs= |
| 15441 | wl=$lt_prog_compiler_wl_F77 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 15442 | pic_flag=$lt_prog_compiler_pic_F77 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15443 | compiler_flags=-v |
| 15444 | linker_flags=-v |
| 15445 | verstring= |
| 15446 | output_objdir=. |
| 15447 | libname=conftest |
| 15448 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
| 15449 | allow_undefined_flag_F77= |
| 15450 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 15451 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 15452 | ac_status=$? |
| 15453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15454 | (exit $ac_status); } |
| 15455 | then |
| 15456 | archive_cmds_need_lc_F77=no |
| 15457 | else |
| 15458 | archive_cmds_need_lc_F77=yes |
| 15459 | fi |
| 15460 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
| 15461 | else |
| 15462 | cat conftest.err 1>&5 |
| 15463 | fi |
| 15464 | $rm conftest* |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 15465 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
| 15466 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15467 | ;; |
| 15468 | esac |
| 15469 | fi |
| 15470 | ;; |
| 15471 | esac |
| 15472 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 15473 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 15474 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15475 | library_names_spec= |
| 15476 | libname_spec='lib$name' |
| 15477 | soname_spec= |
| 15478 | shrext_cmds=".so" |
| 15479 | postinstall_cmds= |
| 15480 | postuninstall_cmds= |
| 15481 | finish_cmds= |
| 15482 | finish_eval= |
| 15483 | shlibpath_var= |
| 15484 | shlibpath_overrides_runpath=unknown |
| 15485 | version_type=none |
| 15486 | dynamic_linker="$host_os ld.so" |
| 15487 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 15488 | if test "$GCC" = yes; then |
| 15489 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 15490 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 15491 | # if the path contains ";" then we assume it to be the separator |
| 15492 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 15493 | # assumed that no part of a normal pathname contains ";" but that should |
| 15494 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 15495 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 15496 | else |
| 15497 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 15498 | fi |
| 15499 | else |
| 15500 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 15501 | fi |
| 15502 | need_lib_prefix=unknown |
| 15503 | hardcode_into_libs=no |
| 15504 | |
| 15505 | # when you set need_version to no, make sure it does not cause -set_version |
| 15506 | # flags to be left without arguments |
| 15507 | need_version=unknown |
| 15508 | |
| 15509 | case $host_os in |
| 15510 | aix3*) |
| 15511 | version_type=linux |
| 15512 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 15513 | shlibpath_var=LIBPATH |
| 15514 | |
| 15515 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 15516 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15517 | ;; |
| 15518 | |
| 15519 | aix4* | aix5*) |
| 15520 | version_type=linux |
| 15521 | need_lib_prefix=no |
| 15522 | need_version=no |
| 15523 | hardcode_into_libs=yes |
| 15524 | if test "$host_cpu" = ia64; then |
| 15525 | # AIX 5 supports IA64 |
| 15526 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 15527 | shlibpath_var=LD_LIBRARY_PATH |
| 15528 | else |
| 15529 | # With GCC up to 2.95.x, collect2 would create an import file |
| 15530 | # for dependence libraries. The import file would start with |
| 15531 | # the line `#! .'. This would cause the generated library to |
| 15532 | # depend on `.', always an invalid library. This was fixed in |
| 15533 | # development snapshots of GCC prior to 3.0. |
| 15534 | case $host_os in |
| 15535 | aix4 | aix4.[01] | aix4.[01].*) |
| 15536 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 15537 | echo ' yes ' |
| 15538 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 15539 | : |
| 15540 | else |
| 15541 | can_build_shared=no |
| 15542 | fi |
| 15543 | ;; |
| 15544 | esac |
| 15545 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 15546 | # soname into executable. Probably we can add versioning support to |
| 15547 | # collect2, so additional links can be useful in future. |
| 15548 | if test "$aix_use_runtimelinking" = yes; then |
| 15549 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 15550 | # instead of lib<name>.a to let people know that these are not |
| 15551 | # typical AIX shared libraries. |
| 15552 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15553 | else |
| 15554 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 15555 | # and later when we are not doing run time linking. |
| 15556 | library_names_spec='${libname}${release}.a $libname.a' |
| 15557 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15558 | fi |
| 15559 | shlibpath_var=LIBPATH |
| 15560 | fi |
| 15561 | ;; |
| 15562 | |
| 15563 | amigaos*) |
| 15564 | library_names_spec='$libname.ixlibrary $libname.a' |
| 15565 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 15566 | 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' |
| 15567 | ;; |
| 15568 | |
| 15569 | beos*) |
| 15570 | library_names_spec='${libname}${shared_ext}' |
| 15571 | dynamic_linker="$host_os ld.so" |
| 15572 | shlibpath_var=LIBRARY_PATH |
| 15573 | ;; |
| 15574 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 15575 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15576 | version_type=linux |
| 15577 | need_version=no |
| 15578 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15579 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15580 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 15581 | shlibpath_var=LD_LIBRARY_PATH |
| 15582 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 15583 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 15584 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 15585 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 15586 | # libtool to hard-code these into programs |
| 15587 | ;; |
| 15588 | |
| 15589 | cygwin* | mingw* | pw32*) |
| 15590 | version_type=windows |
| 15591 | shrext_cmds=".dll" |
| 15592 | need_version=no |
| 15593 | need_lib_prefix=no |
| 15594 | |
| 15595 | case $GCC,$host_os in |
| 15596 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 15597 | library_names_spec='$libname.dll.a' |
| 15598 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 15599 | postinstall_cmds='base_file=`basename \${file}`~ |
| 15600 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 15601 | dldir=$destdir/`dirname \$dlpath`~ |
| 15602 | test -d \$dldir || mkdir -p \$dldir~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 15603 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 15604 | chmod a+x \$dldir/$dlname' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15605 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 15606 | dlpath=$dir/\$dldll~ |
| 15607 | $rm \$dlpath' |
| 15608 | shlibpath_overrides_runpath=yes |
| 15609 | |
| 15610 | case $host_os in |
| 15611 | cygwin*) |
| 15612 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 15613 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 15614 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 15615 | ;; |
| 15616 | mingw*) |
| 15617 | # MinGW DLLs use traditional 'lib' prefix |
| 15618 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 15619 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 15620 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 15621 | # It is most probably a Windows format PATH printed by |
| 15622 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 15623 | # path with ; separators, and with drive letters. We can handle the |
| 15624 | # drive letters (cygwin fileutils understands them), so leave them, |
| 15625 | # especially as we might pass files found there to a mingw objdump, |
| 15626 | # which wouldn't understand a cygwinified path. Ahh. |
| 15627 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 15628 | else |
| 15629 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 15630 | fi |
| 15631 | ;; |
| 15632 | pw32*) |
| 15633 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 15634 | 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] | 15635 | ;; |
| 15636 | esac |
| 15637 | ;; |
| 15638 | |
| 15639 | *) |
| 15640 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 15641 | ;; |
| 15642 | esac |
| 15643 | dynamic_linker='Win32 ld.exe' |
| 15644 | # FIXME: first we should search . and the directory the executable is in |
| 15645 | shlibpath_var=PATH |
| 15646 | ;; |
| 15647 | |
| 15648 | darwin* | rhapsody*) |
| 15649 | dynamic_linker="$host_os dyld" |
| 15650 | version_type=darwin |
| 15651 | need_lib_prefix=no |
| 15652 | need_version=no |
| 15653 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 15654 | soname_spec='${libname}${release}${major}$shared_ext' |
| 15655 | shlibpath_overrides_runpath=yes |
| 15656 | shlibpath_var=DYLD_LIBRARY_PATH |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 15657 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15658 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 15659 | if test "$GCC" = yes; then |
| 15660 | 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"` |
| 15661 | else |
| 15662 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 15663 | fi |
| 15664 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 15665 | ;; |
| 15666 | |
| 15667 | dgux*) |
| 15668 | version_type=linux |
| 15669 | need_lib_prefix=no |
| 15670 | need_version=no |
| 15671 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 15672 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15673 | shlibpath_var=LD_LIBRARY_PATH |
| 15674 | ;; |
| 15675 | |
| 15676 | freebsd1*) |
| 15677 | dynamic_linker=no |
| 15678 | ;; |
| 15679 | |
| 15680 | kfreebsd*-gnu) |
| 15681 | version_type=linux |
| 15682 | need_lib_prefix=no |
| 15683 | need_version=no |
| 15684 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15685 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15686 | shlibpath_var=LD_LIBRARY_PATH |
| 15687 | shlibpath_overrides_runpath=no |
| 15688 | hardcode_into_libs=yes |
| 15689 | dynamic_linker='GNU ld.so' |
| 15690 | ;; |
| 15691 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 15692 | freebsd* | dragonfly*) |
| 15693 | # DragonFly does not have aout. When/if they implement a new |
| 15694 | # versioning mechanism, adjust this. |
| 15695 | if test -x /usr/bin/objformat; then |
| 15696 | objformat=`/usr/bin/objformat` |
| 15697 | else |
| 15698 | case $host_os in |
| 15699 | freebsd[123]*) objformat=aout ;; |
| 15700 | *) objformat=elf ;; |
| 15701 | esac |
| 15702 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15703 | version_type=freebsd-$objformat |
| 15704 | case $version_type in |
| 15705 | freebsd-elf*) |
| 15706 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 15707 | need_version=no |
| 15708 | need_lib_prefix=no |
| 15709 | ;; |
| 15710 | freebsd-*) |
| 15711 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 15712 | need_version=yes |
| 15713 | ;; |
| 15714 | esac |
| 15715 | shlibpath_var=LD_LIBRARY_PATH |
| 15716 | case $host_os in |
| 15717 | freebsd2*) |
| 15718 | shlibpath_overrides_runpath=yes |
| 15719 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 15720 | freebsd3.[01]* | freebsdelf3.[01]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15721 | shlibpath_overrides_runpath=yes |
| 15722 | hardcode_into_libs=yes |
| 15723 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 15724 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 15725 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15726 | shlibpath_overrides_runpath=no |
| 15727 | hardcode_into_libs=yes |
| 15728 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 15729 | freebsd*) # from 4.6 on |
| 15730 | shlibpath_overrides_runpath=yes |
| 15731 | hardcode_into_libs=yes |
| 15732 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15733 | esac |
| 15734 | ;; |
| 15735 | |
| 15736 | gnu*) |
| 15737 | version_type=linux |
| 15738 | need_lib_prefix=no |
| 15739 | need_version=no |
| 15740 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 15741 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15742 | shlibpath_var=LD_LIBRARY_PATH |
| 15743 | hardcode_into_libs=yes |
| 15744 | ;; |
| 15745 | |
| 15746 | hpux9* | hpux10* | hpux11*) |
| 15747 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 15748 | # link against other versions. |
| 15749 | version_type=sunos |
| 15750 | need_lib_prefix=no |
| 15751 | need_version=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 15752 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15753 | ia64*) |
| 15754 | shrext_cmds='.so' |
| 15755 | hardcode_into_libs=yes |
| 15756 | dynamic_linker="$host_os dld.so" |
| 15757 | shlibpath_var=LD_LIBRARY_PATH |
| 15758 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 15759 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15760 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15761 | if test "X$HPUX_IA64_MODE" = X32; then |
| 15762 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 15763 | else |
| 15764 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 15765 | fi |
| 15766 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 15767 | ;; |
| 15768 | hppa*64*) |
| 15769 | shrext_cmds='.sl' |
| 15770 | hardcode_into_libs=yes |
| 15771 | dynamic_linker="$host_os dld.sl" |
| 15772 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 15773 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 15774 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15775 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15776 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 15777 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 15778 | ;; |
| 15779 | *) |
| 15780 | shrext_cmds='.sl' |
| 15781 | dynamic_linker="$host_os dld.sl" |
| 15782 | shlibpath_var=SHLIB_PATH |
| 15783 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 15784 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15785 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15786 | ;; |
| 15787 | esac |
| 15788 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 15789 | postinstall_cmds='chmod 555 $lib' |
| 15790 | ;; |
| 15791 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 15792 | interix3*) |
| 15793 | version_type=linux |
| 15794 | need_lib_prefix=no |
| 15795 | need_version=no |
| 15796 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15797 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15798 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 15799 | shlibpath_var=LD_LIBRARY_PATH |
| 15800 | shlibpath_overrides_runpath=no |
| 15801 | hardcode_into_libs=yes |
| 15802 | ;; |
| 15803 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15804 | irix5* | irix6* | nonstopux*) |
| 15805 | case $host_os in |
| 15806 | nonstopux*) version_type=nonstopux ;; |
| 15807 | *) |
| 15808 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 15809 | version_type=linux |
| 15810 | else |
| 15811 | version_type=irix |
| 15812 | fi ;; |
| 15813 | esac |
| 15814 | need_lib_prefix=no |
| 15815 | need_version=no |
| 15816 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15817 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 15818 | case $host_os in |
| 15819 | irix5* | nonstopux*) |
| 15820 | libsuff= shlibsuff= |
| 15821 | ;; |
| 15822 | *) |
| 15823 | case $LD in # libtool.m4 will add one of these switches to LD |
| 15824 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 15825 | libsuff= shlibsuff= libmagic=32-bit;; |
| 15826 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 15827 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 15828 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 15829 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 15830 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 15831 | esac |
| 15832 | ;; |
| 15833 | esac |
| 15834 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 15835 | shlibpath_overrides_runpath=no |
| 15836 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 15837 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 15838 | hardcode_into_libs=yes |
| 15839 | ;; |
| 15840 | |
| 15841 | # No shared lib support for Linux oldld, aout, or coff. |
| 15842 | linux*oldld* | linux*aout* | linux*coff*) |
| 15843 | dynamic_linker=no |
| 15844 | ;; |
| 15845 | |
| 15846 | # This must be Linux ELF. |
| 15847 | linux*) |
| 15848 | version_type=linux |
| 15849 | need_lib_prefix=no |
| 15850 | need_version=no |
| 15851 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15852 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15853 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 15854 | shlibpath_var=LD_LIBRARY_PATH |
| 15855 | shlibpath_overrides_runpath=no |
| 15856 | # This implies no fast_install, which is unacceptable. |
| 15857 | # Some rework will be needed to allow for fast_install |
| 15858 | # before this can be enabled. |
| 15859 | hardcode_into_libs=yes |
| 15860 | |
| 15861 | # Append ld.so.conf contents to the search path |
| 15862 | if test -f /etc/ld.so.conf; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 15863 | 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] | 15864 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 15865 | fi |
| 15866 | |
| 15867 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 15868 | # powerpc, because MkLinux only supported shared libraries with the |
| 15869 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 15870 | # most powerpc-linux boxes support dynamic linking these days and |
| 15871 | # people can always --disable-shared, the test was removed, and we |
| 15872 | # assume the GNU/Linux dynamic linker is in use. |
| 15873 | dynamic_linker='GNU/Linux ld.so' |
| 15874 | ;; |
| 15875 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15876 | knetbsd*-gnu) |
| 15877 | version_type=linux |
| 15878 | need_lib_prefix=no |
| 15879 | need_version=no |
| 15880 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15881 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15882 | shlibpath_var=LD_LIBRARY_PATH |
| 15883 | shlibpath_overrides_runpath=no |
| 15884 | hardcode_into_libs=yes |
| 15885 | dynamic_linker='GNU ld.so' |
| 15886 | ;; |
| 15887 | |
| 15888 | netbsd*) |
| 15889 | version_type=sunos |
| 15890 | need_lib_prefix=no |
| 15891 | need_version=no |
| 15892 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 15893 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 15894 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 15895 | dynamic_linker='NetBSD (a.out) ld.so' |
| 15896 | else |
| 15897 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15898 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15899 | dynamic_linker='NetBSD ld.elf_so' |
| 15900 | fi |
| 15901 | shlibpath_var=LD_LIBRARY_PATH |
| 15902 | shlibpath_overrides_runpath=yes |
| 15903 | hardcode_into_libs=yes |
| 15904 | ;; |
| 15905 | |
| 15906 | newsos6) |
| 15907 | version_type=linux |
| 15908 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15909 | shlibpath_var=LD_LIBRARY_PATH |
| 15910 | shlibpath_overrides_runpath=yes |
| 15911 | ;; |
| 15912 | |
| 15913 | nto-qnx*) |
| 15914 | version_type=linux |
| 15915 | need_lib_prefix=no |
| 15916 | need_version=no |
| 15917 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15918 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15919 | shlibpath_var=LD_LIBRARY_PATH |
| 15920 | shlibpath_overrides_runpath=yes |
| 15921 | ;; |
| 15922 | |
| 15923 | openbsd*) |
| 15924 | version_type=sunos |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 15925 | sys_lib_dlsearch_path_spec="/usr/lib" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15926 | need_lib_prefix=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 15927 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 15928 | case $host_os in |
| 15929 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 15930 | *) need_version=no ;; |
| 15931 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15932 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 15933 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 15934 | shlibpath_var=LD_LIBRARY_PATH |
| 15935 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 15936 | case $host_os in |
| 15937 | openbsd2.[89] | openbsd2.[89].*) |
| 15938 | shlibpath_overrides_runpath=no |
| 15939 | ;; |
| 15940 | *) |
| 15941 | shlibpath_overrides_runpath=yes |
| 15942 | ;; |
| 15943 | esac |
| 15944 | else |
| 15945 | shlibpath_overrides_runpath=yes |
| 15946 | fi |
| 15947 | ;; |
| 15948 | |
| 15949 | os2*) |
| 15950 | libname_spec='$name' |
| 15951 | shrext_cmds=".dll" |
| 15952 | need_lib_prefix=no |
| 15953 | library_names_spec='$libname${shared_ext} $libname.a' |
| 15954 | dynamic_linker='OS/2 ld.exe' |
| 15955 | shlibpath_var=LIBPATH |
| 15956 | ;; |
| 15957 | |
| 15958 | osf3* | osf4* | osf5*) |
| 15959 | version_type=osf |
| 15960 | need_lib_prefix=no |
| 15961 | need_version=no |
| 15962 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15963 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15964 | shlibpath_var=LD_LIBRARY_PATH |
| 15965 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 15966 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 15967 | ;; |
| 15968 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15969 | solaris*) |
| 15970 | version_type=linux |
| 15971 | need_lib_prefix=no |
| 15972 | need_version=no |
| 15973 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15974 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15975 | shlibpath_var=LD_LIBRARY_PATH |
| 15976 | shlibpath_overrides_runpath=yes |
| 15977 | hardcode_into_libs=yes |
| 15978 | # ldd complains unless libraries are executable |
| 15979 | postinstall_cmds='chmod +x $lib' |
| 15980 | ;; |
| 15981 | |
| 15982 | sunos4*) |
| 15983 | version_type=sunos |
| 15984 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 15985 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 15986 | shlibpath_var=LD_LIBRARY_PATH |
| 15987 | shlibpath_overrides_runpath=yes |
| 15988 | if test "$with_gnu_ld" = yes; then |
| 15989 | need_lib_prefix=no |
| 15990 | fi |
| 15991 | need_version=yes |
| 15992 | ;; |
| 15993 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 15994 | sysv4 | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15995 | version_type=linux |
| 15996 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15997 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15998 | shlibpath_var=LD_LIBRARY_PATH |
| 15999 | case $host_vendor in |
| 16000 | sni) |
| 16001 | shlibpath_overrides_runpath=no |
| 16002 | need_lib_prefix=no |
| 16003 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 16004 | runpath_var=LD_RUN_PATH |
| 16005 | ;; |
| 16006 | siemens) |
| 16007 | need_lib_prefix=no |
| 16008 | ;; |
| 16009 | motorola) |
| 16010 | need_lib_prefix=no |
| 16011 | need_version=no |
| 16012 | shlibpath_overrides_runpath=no |
| 16013 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 16014 | ;; |
| 16015 | esac |
| 16016 | ;; |
| 16017 | |
| 16018 | sysv4*MP*) |
| 16019 | if test -d /usr/nec ;then |
| 16020 | version_type=linux |
| 16021 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 16022 | soname_spec='$libname${shared_ext}.$major' |
| 16023 | shlibpath_var=LD_LIBRARY_PATH |
| 16024 | fi |
| 16025 | ;; |
| 16026 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 16027 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 16028 | version_type=freebsd-elf |
| 16029 | need_lib_prefix=no |
| 16030 | need_version=no |
| 16031 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 16032 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16033 | shlibpath_var=LD_LIBRARY_PATH |
| 16034 | hardcode_into_libs=yes |
| 16035 | if test "$with_gnu_ld" = yes; then |
| 16036 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 16037 | shlibpath_overrides_runpath=no |
| 16038 | else |
| 16039 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 16040 | shlibpath_overrides_runpath=yes |
| 16041 | case $host_os in |
| 16042 | sco3.2v5*) |
| 16043 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 16044 | ;; |
| 16045 | esac |
| 16046 | fi |
| 16047 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 16048 | ;; |
| 16049 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16050 | uts4*) |
| 16051 | version_type=linux |
| 16052 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16053 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16054 | shlibpath_var=LD_LIBRARY_PATH |
| 16055 | ;; |
| 16056 | |
| 16057 | *) |
| 16058 | dynamic_linker=no |
| 16059 | ;; |
| 16060 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 16061 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 16062 | echo "${ECHO_T}$dynamic_linker" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16063 | test "$dynamic_linker" = no && can_build_shared=no |
| 16064 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 16065 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 16066 | if test "$GCC" = yes; then |
| 16067 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 16068 | fi |
| 16069 | |
| 16070 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 16071 | 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] | 16072 | hardcode_action_F77= |
| 16073 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 16074 | test -n "$runpath_var_F77" || \ |
| 16075 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16076 | |
| 16077 | # We can hardcode non-existant directories. |
| 16078 | if test "$hardcode_direct_F77" != no && |
| 16079 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 16080 | # have to relink, otherwise we might link with an installed library |
| 16081 | # when we should be linking with a yet-to-be-installed one |
| 16082 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
| 16083 | test "$hardcode_minus_L_F77" != no; then |
| 16084 | # Linking always hardcodes the temporary library directory. |
| 16085 | hardcode_action_F77=relink |
| 16086 | else |
| 16087 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 16088 | hardcode_action_F77=immediate |
| 16089 | fi |
| 16090 | else |
| 16091 | # We cannot hardcode anything, or else we can only hardcode existing |
| 16092 | # directories. |
| 16093 | hardcode_action_F77=unsupported |
| 16094 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 16095 | { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
| 16096 | echo "${ECHO_T}$hardcode_action_F77" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16097 | |
| 16098 | if test "$hardcode_action_F77" = relink; then |
| 16099 | # Fast installation is not supported |
| 16100 | enable_fast_install=no |
| 16101 | elif test "$shlibpath_overrides_runpath" = yes || |
| 16102 | test "$enable_shared" = no; then |
| 16103 | # Fast installation is not necessary |
| 16104 | enable_fast_install=needless |
| 16105 | fi |
| 16106 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16107 | |
| 16108 | # The else clause should only fire when bootstrapping the |
| 16109 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 16110 | # with your package, and you will get complaints that there are |
| 16111 | # no rules to generate ltmain.sh. |
| 16112 | if test -f "$ltmain"; then |
| 16113 | # See if we are running on zsh, and set the options which allow our commands through |
| 16114 | # without removal of \ escapes. |
| 16115 | if test -n "${ZSH_VERSION+set}" ; then |
| 16116 | setopt NO_GLOB_SUBST |
| 16117 | fi |
| 16118 | # Now quote all the things that may contain metacharacters while being |
| 16119 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 16120 | # variables and quote the copies for generation of the libtool script. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 16121 | 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] | 16122 | SED SHELL STRIP \ |
| 16123 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 16124 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 16125 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 16126 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 16127 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 16128 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 16129 | old_postinstall_cmds old_postuninstall_cmds \ |
| 16130 | compiler_F77 \ |
| 16131 | CC_F77 \ |
| 16132 | LD_F77 \ |
| 16133 | lt_prog_compiler_wl_F77 \ |
| 16134 | lt_prog_compiler_pic_F77 \ |
| 16135 | lt_prog_compiler_static_F77 \ |
| 16136 | lt_prog_compiler_no_builtin_flag_F77 \ |
| 16137 | export_dynamic_flag_spec_F77 \ |
| 16138 | thread_safe_flag_spec_F77 \ |
| 16139 | whole_archive_flag_spec_F77 \ |
| 16140 | enable_shared_with_static_runtimes_F77 \ |
| 16141 | old_archive_cmds_F77 \ |
| 16142 | old_archive_from_new_cmds_F77 \ |
| 16143 | predep_objects_F77 \ |
| 16144 | postdep_objects_F77 \ |
| 16145 | predeps_F77 \ |
| 16146 | postdeps_F77 \ |
| 16147 | compiler_lib_search_path_F77 \ |
| 16148 | archive_cmds_F77 \ |
| 16149 | archive_expsym_cmds_F77 \ |
| 16150 | postinstall_cmds_F77 \ |
| 16151 | postuninstall_cmds_F77 \ |
| 16152 | old_archive_from_expsyms_cmds_F77 \ |
| 16153 | allow_undefined_flag_F77 \ |
| 16154 | no_undefined_flag_F77 \ |
| 16155 | export_symbols_cmds_F77 \ |
| 16156 | hardcode_libdir_flag_spec_F77 \ |
| 16157 | hardcode_libdir_flag_spec_ld_F77 \ |
| 16158 | hardcode_libdir_separator_F77 \ |
| 16159 | hardcode_automatic_F77 \ |
| 16160 | module_cmds_F77 \ |
| 16161 | module_expsym_cmds_F77 \ |
| 16162 | lt_cv_prog_compiler_c_o_F77 \ |
| 16163 | exclude_expsyms_F77 \ |
| 16164 | include_expsyms_F77; do |
| 16165 | |
| 16166 | case $var in |
| 16167 | old_archive_cmds_F77 | \ |
| 16168 | old_archive_from_new_cmds_F77 | \ |
| 16169 | archive_cmds_F77 | \ |
| 16170 | archive_expsym_cmds_F77 | \ |
| 16171 | module_cmds_F77 | \ |
| 16172 | module_expsym_cmds_F77 | \ |
| 16173 | old_archive_from_expsyms_cmds_F77 | \ |
| 16174 | export_symbols_cmds_F77 | \ |
| 16175 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 16176 | postinstall_cmds | postuninstall_cmds | \ |
| 16177 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 16178 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 16179 | # Double-quote double-evaled strings. |
| 16180 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 16181 | ;; |
| 16182 | *) |
| 16183 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 16184 | ;; |
| 16185 | esac |
| 16186 | done |
| 16187 | |
| 16188 | case $lt_echo in |
| 16189 | *'\$0 --fallback-echo"') |
| 16190 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 16191 | ;; |
| 16192 | esac |
| 16193 | |
| 16194 | cfgfile="$ofile" |
| 16195 | |
| 16196 | cat <<__EOF__ >> "$cfgfile" |
| 16197 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 16198 | |
| 16199 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 16200 | |
| 16201 | # Shell to use when invoking shell scripts. |
| 16202 | SHELL=$lt_SHELL |
| 16203 | |
| 16204 | # Whether or not to build shared libraries. |
| 16205 | build_libtool_libs=$enable_shared |
| 16206 | |
| 16207 | # Whether or not to build static libraries. |
| 16208 | build_old_libs=$enable_static |
| 16209 | |
| 16210 | # Whether or not to add -lc for building shared libraries. |
| 16211 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
| 16212 | |
| 16213 | # Whether or not to disallow shared libs when runtime libs are static |
| 16214 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
| 16215 | |
| 16216 | # Whether or not to optimize for fast installation. |
| 16217 | fast_install=$enable_fast_install |
| 16218 | |
| 16219 | # The host system. |
| 16220 | host_alias=$host_alias |
| 16221 | host=$host |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 16222 | host_os=$host_os |
| 16223 | |
| 16224 | # The build system. |
| 16225 | build_alias=$build_alias |
| 16226 | build=$build |
| 16227 | build_os=$build_os |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16228 | |
| 16229 | # An echo program that does not interpret backslashes. |
| 16230 | echo=$lt_echo |
| 16231 | |
| 16232 | # The archiver. |
| 16233 | AR=$lt_AR |
| 16234 | AR_FLAGS=$lt_AR_FLAGS |
| 16235 | |
| 16236 | # A C compiler. |
| 16237 | LTCC=$lt_LTCC |
| 16238 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 16239 | # LTCC compiler flags. |
| 16240 | LTCFLAGS=$lt_LTCFLAGS |
| 16241 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16242 | # A language-specific compiler. |
| 16243 | CC=$lt_compiler_F77 |
| 16244 | |
| 16245 | # Is the compiler the GNU C compiler? |
| 16246 | with_gcc=$GCC_F77 |
| 16247 | |
| 16248 | # An ERE matcher. |
| 16249 | EGREP=$lt_EGREP |
| 16250 | |
| 16251 | # The linker used to build libraries. |
| 16252 | LD=$lt_LD_F77 |
| 16253 | |
| 16254 | # Whether we need hard or soft links. |
| 16255 | LN_S=$lt_LN_S |
| 16256 | |
| 16257 | # A BSD-compatible nm program. |
| 16258 | NM=$lt_NM |
| 16259 | |
| 16260 | # A symbol stripping program |
| 16261 | STRIP=$lt_STRIP |
| 16262 | |
| 16263 | # Used to examine libraries when file_magic_cmd begins "file" |
| 16264 | MAGIC_CMD=$MAGIC_CMD |
| 16265 | |
| 16266 | # Used on cygwin: DLL creation program. |
| 16267 | DLLTOOL="$DLLTOOL" |
| 16268 | |
| 16269 | # Used on cygwin: object dumper. |
| 16270 | OBJDUMP="$OBJDUMP" |
| 16271 | |
| 16272 | # Used on cygwin: assembler. |
| 16273 | AS="$AS" |
| 16274 | |
| 16275 | # The name of the directory that contains temporary libtool files. |
| 16276 | objdir=$objdir |
| 16277 | |
| 16278 | # How to create reloadable object files. |
| 16279 | reload_flag=$lt_reload_flag |
| 16280 | reload_cmds=$lt_reload_cmds |
| 16281 | |
| 16282 | # How to pass a linker flag through the compiler. |
| 16283 | wl=$lt_lt_prog_compiler_wl_F77 |
| 16284 | |
| 16285 | # Object file suffix (normally "o"). |
| 16286 | objext="$ac_objext" |
| 16287 | |
| 16288 | # Old archive suffix (normally "a"). |
| 16289 | libext="$libext" |
| 16290 | |
| 16291 | # Shared library suffix (normally ".so"). |
| 16292 | shrext_cmds='$shrext_cmds' |
| 16293 | |
| 16294 | # Executable file suffix (normally ""). |
| 16295 | exeext="$exeext" |
| 16296 | |
| 16297 | # Additional compiler flags for building library objects. |
| 16298 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
| 16299 | pic_mode=$pic_mode |
| 16300 | |
| 16301 | # What is the maximum length of a command? |
| 16302 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 16303 | |
| 16304 | # Does compiler simultaneously support -c and -o options? |
| 16305 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
| 16306 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 16307 | # Must we lock files when doing compilation? |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16308 | need_locks=$lt_need_locks |
| 16309 | |
| 16310 | # Do we need the lib prefix for modules? |
| 16311 | need_lib_prefix=$need_lib_prefix |
| 16312 | |
| 16313 | # Do we need a version for libraries? |
| 16314 | need_version=$need_version |
| 16315 | |
| 16316 | # Whether dlopen is supported. |
| 16317 | dlopen_support=$enable_dlopen |
| 16318 | |
| 16319 | # Whether dlopen of programs is supported. |
| 16320 | dlopen_self=$enable_dlopen_self |
| 16321 | |
| 16322 | # Whether dlopen of statically linked programs is supported. |
| 16323 | dlopen_self_static=$enable_dlopen_self_static |
| 16324 | |
| 16325 | # Compiler flag to prevent dynamic linking. |
| 16326 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
| 16327 | |
| 16328 | # Compiler flag to turn off builtin functions. |
| 16329 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
| 16330 | |
| 16331 | # Compiler flag to allow reflexive dlopens. |
| 16332 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
| 16333 | |
| 16334 | # Compiler flag to generate shared objects directly from archives. |
| 16335 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
| 16336 | |
| 16337 | # Compiler flag to generate thread-safe objects. |
| 16338 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
| 16339 | |
| 16340 | # Library versioning type. |
| 16341 | version_type=$version_type |
| 16342 | |
| 16343 | # Format of library name prefix. |
| 16344 | libname_spec=$lt_libname_spec |
| 16345 | |
| 16346 | # List of archive names. First name is the real one, the rest are links. |
| 16347 | # The last name is the one that the linker finds with -lNAME. |
| 16348 | library_names_spec=$lt_library_names_spec |
| 16349 | |
| 16350 | # The coded name of the library, if different from the real name. |
| 16351 | soname_spec=$lt_soname_spec |
| 16352 | |
| 16353 | # Commands used to build and install an old-style archive. |
| 16354 | RANLIB=$lt_RANLIB |
| 16355 | old_archive_cmds=$lt_old_archive_cmds_F77 |
| 16356 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 16357 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 16358 | |
| 16359 | # Create an old-style archive from a shared archive. |
| 16360 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
| 16361 | |
| 16362 | # Create a temporary old-style archive to link instead of a shared archive. |
| 16363 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
| 16364 | |
| 16365 | # Commands used to build and install a shared archive. |
| 16366 | archive_cmds=$lt_archive_cmds_F77 |
| 16367 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
| 16368 | postinstall_cmds=$lt_postinstall_cmds |
| 16369 | postuninstall_cmds=$lt_postuninstall_cmds |
| 16370 | |
| 16371 | # Commands used to build a loadable module (assumed same as above if empty) |
| 16372 | module_cmds=$lt_module_cmds_F77 |
| 16373 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
| 16374 | |
| 16375 | # Commands to strip libraries. |
| 16376 | old_striplib=$lt_old_striplib |
| 16377 | striplib=$lt_striplib |
| 16378 | |
| 16379 | # Dependencies to place before the objects being linked to create a |
| 16380 | # shared library. |
| 16381 | predep_objects=$lt_predep_objects_F77 |
| 16382 | |
| 16383 | # Dependencies to place after the objects being linked to create a |
| 16384 | # shared library. |
| 16385 | postdep_objects=$lt_postdep_objects_F77 |
| 16386 | |
| 16387 | # Dependencies to place before the objects being linked to create a |
| 16388 | # shared library. |
| 16389 | predeps=$lt_predeps_F77 |
| 16390 | |
| 16391 | # Dependencies to place after the objects being linked to create a |
| 16392 | # shared library. |
| 16393 | postdeps=$lt_postdeps_F77 |
| 16394 | |
| 16395 | # The library search path used internally by the compiler when linking |
| 16396 | # a shared library. |
| 16397 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
| 16398 | |
| 16399 | # Method to check whether dependent libraries are shared objects. |
| 16400 | deplibs_check_method=$lt_deplibs_check_method |
| 16401 | |
| 16402 | # Command to use when deplibs_check_method == file_magic. |
| 16403 | file_magic_cmd=$lt_file_magic_cmd |
| 16404 | |
| 16405 | # Flag that allows shared libraries with undefined symbols to be built. |
| 16406 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
| 16407 | |
| 16408 | # Flag that forces no undefined symbols. |
| 16409 | no_undefined_flag=$lt_no_undefined_flag_F77 |
| 16410 | |
| 16411 | # Commands used to finish a libtool library installation in a directory. |
| 16412 | finish_cmds=$lt_finish_cmds |
| 16413 | |
| 16414 | # Same as above, but a single script fragment to be evaled but not shown. |
| 16415 | finish_eval=$lt_finish_eval |
| 16416 | |
| 16417 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 16418 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 16419 | |
| 16420 | # Transform the output of nm in a proper C declaration |
| 16421 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 16422 | |
| 16423 | # Transform the output of nm in a C name address pair |
| 16424 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 16425 | |
| 16426 | # This is the shared library runtime path variable. |
| 16427 | runpath_var=$runpath_var |
| 16428 | |
| 16429 | # This is the shared library path variable. |
| 16430 | shlibpath_var=$shlibpath_var |
| 16431 | |
| 16432 | # Is shlibpath searched before the hard-coded library search path? |
| 16433 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 16434 | |
| 16435 | # How to hardcode a shared library path into an executable. |
| 16436 | hardcode_action=$hardcode_action_F77 |
| 16437 | |
| 16438 | # Whether we should hardcode library paths into libraries. |
| 16439 | hardcode_into_libs=$hardcode_into_libs |
| 16440 | |
| 16441 | # Flag to hardcode \$libdir into a binary during linking. |
| 16442 | # This must work even if \$libdir does not exist. |
| 16443 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
| 16444 | |
| 16445 | # If ld is used when linking, flag to hardcode \$libdir into |
| 16446 | # a binary during linking. This must work even if \$libdir does |
| 16447 | # not exist. |
| 16448 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
| 16449 | |
| 16450 | # Whether we need a single -rpath flag with a separated argument. |
| 16451 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
| 16452 | |
| 16453 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 16454 | # resulting binary. |
| 16455 | hardcode_direct=$hardcode_direct_F77 |
| 16456 | |
| 16457 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 16458 | # resulting binary. |
| 16459 | hardcode_minus_L=$hardcode_minus_L_F77 |
| 16460 | |
| 16461 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 16462 | # the resulting binary. |
| 16463 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
| 16464 | |
| 16465 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 16466 | # and all subsequent libraries and executables linked against it. |
| 16467 | hardcode_automatic=$hardcode_automatic_F77 |
| 16468 | |
| 16469 | # Variables whose values should be saved in libtool wrapper scripts and |
| 16470 | # restored at relink time. |
| 16471 | variables_saved_for_relink="$variables_saved_for_relink" |
| 16472 | |
| 16473 | # Whether libtool must link a program against all its dependency libraries. |
| 16474 | link_all_deplibs=$link_all_deplibs_F77 |
| 16475 | |
| 16476 | # Compile-time system search path for libraries |
| 16477 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 16478 | |
| 16479 | # Run-time system search path for libraries |
| 16480 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 16481 | |
| 16482 | # Fix the shell variable \$srcfile for the compiler. |
| 16483 | fix_srcfile_path="$fix_srcfile_path_F77" |
| 16484 | |
| 16485 | # Set to yes if exported symbols are required. |
| 16486 | always_export_symbols=$always_export_symbols_F77 |
| 16487 | |
| 16488 | # The commands to list exported symbols. |
| 16489 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
| 16490 | |
| 16491 | # The commands to extract the exported symbol list from a shared archive. |
| 16492 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 16493 | |
| 16494 | # Symbols that should not be listed in the preloaded symbols. |
| 16495 | exclude_expsyms=$lt_exclude_expsyms_F77 |
| 16496 | |
| 16497 | # Symbols that must always be exported. |
| 16498 | include_expsyms=$lt_include_expsyms_F77 |
| 16499 | |
| 16500 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 16501 | |
| 16502 | __EOF__ |
| 16503 | |
| 16504 | |
| 16505 | else |
| 16506 | # If there is no Makefile yet, we rely on a make rule to execute |
| 16507 | # `config.status --recheck' to rerun these tests and create the |
| 16508 | # libtool script then. |
| 16509 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 16510 | if test -f "$ltmain_in"; then |
| 16511 | test -f Makefile && make "$ltmain" |
| 16512 | fi |
| 16513 | fi |
| 16514 | |
| 16515 | |
| 16516 | ac_ext=c |
| 16517 | ac_cpp='$CPP $CPPFLAGS' |
| 16518 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16519 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16520 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 16521 | |
| 16522 | CC="$lt_save_CC" |
| 16523 | |
| 16524 | else |
| 16525 | tagname="" |
| 16526 | fi |
| 16527 | ;; |
| 16528 | |
| 16529 | GCJ) |
| 16530 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
| 16531 | |
| 16532 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16533 | # Source file extension for Java test sources. |
| 16534 | ac_ext=java |
| 16535 | |
| 16536 | # Object file extension for compiled Java test sources. |
| 16537 | objext=o |
| 16538 | objext_GCJ=$objext |
| 16539 | |
| 16540 | # Code to be used in simple compile tests |
| 16541 | lt_simple_compile_test_code="class foo {}\n" |
| 16542 | |
| 16543 | # Code to be used in simple link tests |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 16544 | 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] | 16545 | |
| 16546 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 16547 | |
| 16548 | # If no C compiler was specified, use CC. |
| 16549 | LTCC=${LTCC-"$CC"} |
| 16550 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 16551 | # If no C compiler flags were specified, use CFLAGS. |
| 16552 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 16553 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16554 | # Allow CC to be a program name with arguments. |
| 16555 | compiler=$CC |
| 16556 | |
| 16557 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 16558 | # save warnings/boilerplate of simple test code |
| 16559 | ac_outfile=conftest.$ac_objext |
| 16560 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 16561 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 16562 | _lt_compiler_boilerplate=`cat conftest.err` |
| 16563 | $rm conftest* |
| 16564 | |
| 16565 | ac_outfile=conftest.$ac_objext |
| 16566 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 16567 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 16568 | _lt_linker_boilerplate=`cat conftest.err` |
| 16569 | $rm conftest* |
| 16570 | |
| 16571 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16572 | # Allow CC to be a program name with arguments. |
| 16573 | lt_save_CC="$CC" |
| 16574 | CC=${GCJ-"gcj"} |
| 16575 | compiler=$CC |
| 16576 | compiler_GCJ=$CC |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 16577 | for cc_temp in $compiler""; do |
| 16578 | case $cc_temp in |
| 16579 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 16580 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 16581 | \-*) ;; |
| 16582 | *) break;; |
| 16583 | esac |
| 16584 | done |
| 16585 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 16586 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16587 | |
| 16588 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
| 16589 | archive_cmds_need_lc_GCJ=no |
| 16590 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 16591 | old_archive_cmds_GCJ=$old_archive_cmds |
| 16592 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16593 | |
| 16594 | lt_prog_compiler_no_builtin_flag_GCJ= |
| 16595 | |
| 16596 | if test "$GCC" = yes; then |
| 16597 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
| 16598 | |
| 16599 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 16600 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 16601 | 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] | 16602 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 16603 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16604 | else |
| 16605 | lt_cv_prog_compiler_rtti_exceptions=no |
| 16606 | ac_outfile=conftest.$ac_objext |
| 16607 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16608 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 16609 | # Insert the option either (1) after the last *FLAGS variable, or |
| 16610 | # (2) before a word containing "conftest.", or (3) at the end. |
| 16611 | # Note that $ac_compile itself does not contain backslashes and begins |
| 16612 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 16613 | # The option is referenced via a variable to avoid confusing sed. |
| 16614 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 16615 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16616 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 16617 | -e 's:$: $lt_compiler_flag:'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 16618 | (eval echo "\"\$as_me:16618: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16619 | (eval "$lt_compile" 2>conftest.err) |
| 16620 | ac_status=$? |
| 16621 | cat conftest.err >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 16622 | echo "$as_me:16622: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16623 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 16624 | # The compiler can only warn and ignore the option if not recognized |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 16625 | # So say no if there are warnings other than the usual output. |
| 16626 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 16627 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 16628 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16629 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 16630 | fi |
| 16631 | fi |
| 16632 | $rm conftest* |
| 16633 | |
| 16634 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 16635 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 16636 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16637 | |
| 16638 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 16639 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
| 16640 | else |
| 16641 | : |
| 16642 | fi |
| 16643 | |
| 16644 | fi |
| 16645 | |
| 16646 | lt_prog_compiler_wl_GCJ= |
| 16647 | lt_prog_compiler_pic_GCJ= |
| 16648 | lt_prog_compiler_static_GCJ= |
| 16649 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 16650 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 16651 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16652 | |
| 16653 | if test "$GCC" = yes; then |
| 16654 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16655 | lt_prog_compiler_static_GCJ='-static' |
| 16656 | |
| 16657 | case $host_os in |
| 16658 | aix*) |
| 16659 | # All AIX code is PIC. |
| 16660 | if test "$host_cpu" = ia64; then |
| 16661 | # AIX 5 now supports IA64 processor |
| 16662 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16663 | fi |
| 16664 | ;; |
| 16665 | |
| 16666 | amigaos*) |
| 16667 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 16668 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 16669 | # like `-m68040'. |
| 16670 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
| 16671 | ;; |
| 16672 | |
| 16673 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 16674 | # PIC is the default for these OSes. |
| 16675 | ;; |
| 16676 | |
| 16677 | mingw* | pw32* | os2*) |
| 16678 | # This hack is so that the source file can tell whether it is being |
| 16679 | # built for inclusion in a dll (and should export symbols for example). |
| 16680 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 16681 | ;; |
| 16682 | |
| 16683 | darwin* | rhapsody*) |
| 16684 | # PIC is the default on this platform |
| 16685 | # Common symbols not allowed in MH_DYLIB files |
| 16686 | lt_prog_compiler_pic_GCJ='-fno-common' |
| 16687 | ;; |
| 16688 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 16689 | interix3*) |
| 16690 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 16691 | # Instead, we relocate shared libraries at runtime. |
| 16692 | ;; |
| 16693 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16694 | msdosdjgpp*) |
| 16695 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 16696 | # on systems that don't support them. |
| 16697 | lt_prog_compiler_can_build_shared_GCJ=no |
| 16698 | enable_shared=no |
| 16699 | ;; |
| 16700 | |
| 16701 | sysv4*MP*) |
| 16702 | if test -d /usr/nec; then |
| 16703 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
| 16704 | fi |
| 16705 | ;; |
| 16706 | |
| 16707 | hpux*) |
| 16708 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 16709 | # not for PA HP-UX. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 16710 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16711 | hppa*64*|ia64*) |
| 16712 | # +Z the default |
| 16713 | ;; |
| 16714 | *) |
| 16715 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 16716 | ;; |
| 16717 | esac |
| 16718 | ;; |
| 16719 | |
| 16720 | *) |
| 16721 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 16722 | ;; |
| 16723 | esac |
| 16724 | else |
| 16725 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 16726 | case $host_os in |
| 16727 | aix*) |
| 16728 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16729 | if test "$host_cpu" = ia64; then |
| 16730 | # AIX 5 now supports IA64 processor |
| 16731 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16732 | else |
| 16733 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
| 16734 | fi |
| 16735 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 16736 | darwin*) |
| 16737 | # PIC is the default on this platform |
| 16738 | # Common symbols not allowed in MH_DYLIB files |
| 16739 | case $cc_basename in |
| 16740 | xlc*) |
| 16741 | lt_prog_compiler_pic_GCJ='-qnocommon' |
| 16742 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16743 | ;; |
| 16744 | esac |
| 16745 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16746 | |
| 16747 | mingw* | pw32* | os2*) |
| 16748 | # This hack is so that the source file can tell whether it is being |
| 16749 | # built for inclusion in a dll (and should export symbols for example). |
| 16750 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 16751 | ;; |
| 16752 | |
| 16753 | hpux9* | hpux10* | hpux11*) |
| 16754 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16755 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 16756 | # not for PA HP-UX. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 16757 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16758 | hppa*64*|ia64*) |
| 16759 | # +Z the default |
| 16760 | ;; |
| 16761 | *) |
| 16762 | lt_prog_compiler_pic_GCJ='+Z' |
| 16763 | ;; |
| 16764 | esac |
| 16765 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 16766 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
| 16767 | ;; |
| 16768 | |
| 16769 | irix5* | irix6* | nonstopux*) |
| 16770 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16771 | # PIC (with -KPIC) is the default. |
| 16772 | lt_prog_compiler_static_GCJ='-non_shared' |
| 16773 | ;; |
| 16774 | |
| 16775 | newsos6) |
| 16776 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 16777 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16778 | ;; |
| 16779 | |
| 16780 | linux*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 16781 | case $cc_basename in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16782 | icc* | ecc*) |
| 16783 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16784 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 16785 | lt_prog_compiler_static_GCJ='-static' |
| 16786 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 16787 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 16788 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 16789 | # which looks to be a dead project) |
| 16790 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16791 | lt_prog_compiler_pic_GCJ='-fpic' |
| 16792 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16793 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16794 | ccc*) |
| 16795 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16796 | # All Alpha code is PIC. |
| 16797 | lt_prog_compiler_static_GCJ='-non_shared' |
| 16798 | ;; |
| 16799 | esac |
| 16800 | ;; |
| 16801 | |
| 16802 | osf3* | osf4* | osf5*) |
| 16803 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16804 | # All OSF/1 code is PIC. |
| 16805 | lt_prog_compiler_static_GCJ='-non_shared' |
| 16806 | ;; |
| 16807 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16808 | solaris*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16809 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 16810 | lt_prog_compiler_static_GCJ='-Bstatic' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 16811 | case $cc_basename in |
| 16812 | f77* | f90* | f95*) |
| 16813 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
| 16814 | *) |
| 16815 | lt_prog_compiler_wl_GCJ='-Wl,';; |
| 16816 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16817 | ;; |
| 16818 | |
| 16819 | sunos4*) |
| 16820 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
| 16821 | lt_prog_compiler_pic_GCJ='-PIC' |
| 16822 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16823 | ;; |
| 16824 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 16825 | sysv4 | sysv4.2uw2* | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16826 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16827 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 16828 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16829 | ;; |
| 16830 | |
| 16831 | sysv4*MP*) |
| 16832 | if test -d /usr/nec ;then |
| 16833 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
| 16834 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16835 | fi |
| 16836 | ;; |
| 16837 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 16838 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 16839 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16840 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 16841 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16842 | ;; |
| 16843 | |
| 16844 | unicos*) |
| 16845 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16846 | lt_prog_compiler_can_build_shared_GCJ=no |
| 16847 | ;; |
| 16848 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16849 | uts4*) |
| 16850 | lt_prog_compiler_pic_GCJ='-pic' |
| 16851 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16852 | ;; |
| 16853 | |
| 16854 | *) |
| 16855 | lt_prog_compiler_can_build_shared_GCJ=no |
| 16856 | ;; |
| 16857 | esac |
| 16858 | fi |
| 16859 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 16860 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
| 16861 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16862 | |
| 16863 | # |
| 16864 | # Check to make sure the PIC flag actually works. |
| 16865 | # |
| 16866 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
| 16867 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 16868 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
| 16869 | 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] | 16870 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
| 16871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16872 | else |
| 16873 | lt_prog_compiler_pic_works_GCJ=no |
| 16874 | ac_outfile=conftest.$ac_objext |
| 16875 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16876 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
| 16877 | # Insert the option either (1) after the last *FLAGS variable, or |
| 16878 | # (2) before a word containing "conftest.", or (3) at the end. |
| 16879 | # Note that $ac_compile itself does not contain backslashes and begins |
| 16880 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 16881 | # The option is referenced via a variable to avoid confusing sed. |
| 16882 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 16883 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16884 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 16885 | -e 's:$: $lt_compiler_flag:'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 16886 | (eval echo "\"\$as_me:16886: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16887 | (eval "$lt_compile" 2>conftest.err) |
| 16888 | ac_status=$? |
| 16889 | cat conftest.err >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 16890 | echo "$as_me:16890: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16891 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 16892 | # The compiler can only warn and ignore the option if not recognized |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 16893 | # So say no if there are warnings other than the usual output. |
| 16894 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 16895 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 16896 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16897 | lt_prog_compiler_pic_works_GCJ=yes |
| 16898 | fi |
| 16899 | fi |
| 16900 | $rm conftest* |
| 16901 | |
| 16902 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 16903 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
| 16904 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16905 | |
| 16906 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
| 16907 | case $lt_prog_compiler_pic_GCJ in |
| 16908 | "" | " "*) ;; |
| 16909 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
| 16910 | esac |
| 16911 | else |
| 16912 | lt_prog_compiler_pic_GCJ= |
| 16913 | lt_prog_compiler_can_build_shared_GCJ=no |
| 16914 | fi |
| 16915 | |
| 16916 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 16917 | case $host_os in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16918 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 16919 | *djgpp*) |
| 16920 | lt_prog_compiler_pic_GCJ= |
| 16921 | ;; |
| 16922 | *) |
| 16923 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
| 16924 | ;; |
| 16925 | esac |
| 16926 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 16927 | # |
| 16928 | # Check to make sure the static flag actually works. |
| 16929 | # |
| 16930 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
| 16931 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 16932 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 16933 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
| 16934 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16935 | else |
| 16936 | lt_prog_compiler_static_works_GCJ=no |
| 16937 | save_LDFLAGS="$LDFLAGS" |
| 16938 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 16939 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 16940 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 16941 | # The linker can only warn and ignore the option if not recognized |
| 16942 | # So say no if there are warnings |
| 16943 | if test -s conftest.err; then |
| 16944 | # Append any errors to the config.log. |
| 16945 | cat conftest.err 1>&5 |
| 16946 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 16947 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 16948 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 16949 | lt_prog_compiler_static_works_GCJ=yes |
| 16950 | fi |
| 16951 | else |
| 16952 | lt_prog_compiler_static_works_GCJ=yes |
| 16953 | fi |
| 16954 | fi |
| 16955 | $rm conftest* |
| 16956 | LDFLAGS="$save_LDFLAGS" |
| 16957 | |
| 16958 | fi |
| 16959 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
| 16960 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } |
| 16961 | |
| 16962 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
| 16963 | : |
| 16964 | else |
| 16965 | lt_prog_compiler_static_GCJ= |
| 16966 | fi |
| 16967 | |
| 16968 | |
| 16969 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 16970 | 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] | 16971 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
| 16972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16973 | else |
| 16974 | lt_cv_prog_compiler_c_o_GCJ=no |
| 16975 | $rm -r conftest 2>/dev/null |
| 16976 | mkdir conftest |
| 16977 | cd conftest |
| 16978 | mkdir out |
| 16979 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16980 | |
| 16981 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 16982 | # Insert the option either (1) after the last *FLAGS variable, or |
| 16983 | # (2) before a word containing "conftest.", or (3) at the end. |
| 16984 | # Note that $ac_compile itself does not contain backslashes and begins |
| 16985 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 16986 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 16987 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16988 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 16989 | -e 's:$: $lt_compiler_flag:'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 16990 | (eval echo "\"\$as_me:16990: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16991 | (eval "$lt_compile" 2>out/conftest.err) |
| 16992 | ac_status=$? |
| 16993 | cat out/conftest.err >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 16994 | echo "$as_me:16994: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16995 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 16996 | then |
| 16997 | # The compiler can only warn and ignore the option if not recognized |
| 16998 | # So say no if there are warnings |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 16999 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 17000 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 17001 | 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] | 17002 | lt_cv_prog_compiler_c_o_GCJ=yes |
| 17003 | fi |
| 17004 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17005 | chmod u+w . 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17006 | $rm conftest* |
| 17007 | # SGI C++ compiler will create directory out/ii_files/ for |
| 17008 | # template instantiation |
| 17009 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 17010 | $rm out/* && rmdir out |
| 17011 | cd .. |
| 17012 | rmdir conftest |
| 17013 | $rm conftest* |
| 17014 | |
| 17015 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17016 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
| 17017 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17018 | |
| 17019 | |
| 17020 | hard_links="nottested" |
| 17021 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
| 17022 | # do not overwrite the value of need_locks provided by the user |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17023 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 17024 | 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] | 17025 | hard_links=yes |
| 17026 | $rm conftest* |
| 17027 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 17028 | touch conftest.a |
| 17029 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 17030 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17031 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 17032 | echo "${ECHO_T}$hard_links" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17033 | if test "$hard_links" = no; then |
| 17034 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 17035 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 17036 | need_locks=warn |
| 17037 | fi |
| 17038 | else |
| 17039 | need_locks=no |
| 17040 | fi |
| 17041 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17042 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 17043 | 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] | 17044 | |
| 17045 | runpath_var= |
| 17046 | allow_undefined_flag_GCJ= |
| 17047 | enable_shared_with_static_runtimes_GCJ=no |
| 17048 | archive_cmds_GCJ= |
| 17049 | archive_expsym_cmds_GCJ= |
| 17050 | old_archive_From_new_cmds_GCJ= |
| 17051 | old_archive_from_expsyms_cmds_GCJ= |
| 17052 | export_dynamic_flag_spec_GCJ= |
| 17053 | whole_archive_flag_spec_GCJ= |
| 17054 | thread_safe_flag_spec_GCJ= |
| 17055 | hardcode_libdir_flag_spec_GCJ= |
| 17056 | hardcode_libdir_flag_spec_ld_GCJ= |
| 17057 | hardcode_libdir_separator_GCJ= |
| 17058 | hardcode_direct_GCJ=no |
| 17059 | hardcode_minus_L_GCJ=no |
| 17060 | hardcode_shlibpath_var_GCJ=unsupported |
| 17061 | link_all_deplibs_GCJ=unknown |
| 17062 | hardcode_automatic_GCJ=no |
| 17063 | module_cmds_GCJ= |
| 17064 | module_expsym_cmds_GCJ= |
| 17065 | always_export_symbols_GCJ=no |
| 17066 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 17067 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 17068 | # included in the symbol list |
| 17069 | include_expsyms_GCJ= |
| 17070 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 17071 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 17072 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 17073 | # as well as any symbol that contains `d'. |
| 17074 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
| 17075 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 17076 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 17077 | # the symbol is explicitly referenced. Since portable code cannot |
| 17078 | # rely on this symbol name, it's probably fine to never include it in |
| 17079 | # preloaded symbol tables. |
| 17080 | extract_expsyms_cmds= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17081 | # Just being paranoid about ensuring that cc_basename is set. |
| 17082 | for cc_temp in $compiler""; do |
| 17083 | case $cc_temp in |
| 17084 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 17085 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 17086 | \-*) ;; |
| 17087 | *) break;; |
| 17088 | esac |
| 17089 | done |
| 17090 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17091 | |
| 17092 | case $host_os in |
| 17093 | cygwin* | mingw* | pw32*) |
| 17094 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 17095 | # When not using gcc, we currently assume that we are using |
| 17096 | # Microsoft Visual C++. |
| 17097 | if test "$GCC" != yes; then |
| 17098 | with_gnu_ld=no |
| 17099 | fi |
| 17100 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17101 | interix*) |
| 17102 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 17103 | with_gnu_ld=yes |
| 17104 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17105 | openbsd*) |
| 17106 | with_gnu_ld=no |
| 17107 | ;; |
| 17108 | esac |
| 17109 | |
| 17110 | ld_shlibs_GCJ=yes |
| 17111 | if test "$with_gnu_ld" = yes; then |
| 17112 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 17113 | wlarc='${wl}' |
| 17114 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17115 | # Set some defaults for GNU ld with shared library support. These |
| 17116 | # are reset later if shared libraries are not supported. Putting them |
| 17117 | # here allows them to be overridden if necessary. |
| 17118 | runpath_var=LD_RUN_PATH |
| 17119 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
| 17120 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
| 17121 | # ancient GNU ld didn't support --whole-archive et. al. |
| 17122 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 17123 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 17124 | else |
| 17125 | whole_archive_flag_spec_GCJ= |
| 17126 | fi |
| 17127 | supports_anon_versioning=no |
| 17128 | case `$LD -v 2>/dev/null` in |
| 17129 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 17130 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 17131 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 17132 | *\ 2.11.*) ;; # other 2.11 versions |
| 17133 | *) supports_anon_versioning=yes ;; |
| 17134 | esac |
| 17135 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17136 | # See if GNU ld supports shared libraries. |
| 17137 | case $host_os in |
| 17138 | aix3* | aix4* | aix5*) |
| 17139 | # On AIX/PPC, the GNU linker is very broken |
| 17140 | if test "$host_cpu" != ia64; then |
| 17141 | ld_shlibs_GCJ=no |
| 17142 | cat <<EOF 1>&2 |
| 17143 | |
| 17144 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 17145 | *** to be unable to reliably create shared libraries on AIX. |
| 17146 | *** Therefore, libtool is disabling shared libraries support. If you |
| 17147 | *** really care for shared libraries, you may want to modify your PATH |
| 17148 | *** so that a non-GNU linker is found, and then restart. |
| 17149 | |
| 17150 | EOF |
| 17151 | fi |
| 17152 | ;; |
| 17153 | |
| 17154 | amigaos*) |
| 17155 | 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)' |
| 17156 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17157 | hardcode_minus_L_GCJ=yes |
| 17158 | |
| 17159 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 17160 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 17161 | # to version 4, is to share data among multiple programs linked |
| 17162 | # with the same dynamic library. Since this doesn't match the |
| 17163 | # behavior of shared libraries on other platforms, we can't use |
| 17164 | # them. |
| 17165 | ld_shlibs_GCJ=no |
| 17166 | ;; |
| 17167 | |
| 17168 | beos*) |
| 17169 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 17170 | allow_undefined_flag_GCJ=unsupported |
| 17171 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 17172 | # support --undefined. This deserves some investigation. FIXME |
| 17173 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17174 | else |
| 17175 | ld_shlibs_GCJ=no |
| 17176 | fi |
| 17177 | ;; |
| 17178 | |
| 17179 | cygwin* | mingw* | pw32*) |
| 17180 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
| 17181 | # as there is no search path for DLLs. |
| 17182 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17183 | allow_undefined_flag_GCJ=unsupported |
| 17184 | always_export_symbols_GCJ=no |
| 17185 | enable_shared_with_static_runtimes_GCJ=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17186 | 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] | 17187 | |
| 17188 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17189 | 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] | 17190 | # If the export-symbols file already is a .def file (1st line |
| 17191 | # is EXPORTS), use it as is; otherwise, prepend... |
| 17192 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 17193 | cp $export_symbols $output_objdir/$soname.def; |
| 17194 | else |
| 17195 | echo EXPORTS > $output_objdir/$soname.def; |
| 17196 | cat $export_symbols >> $output_objdir/$soname.def; |
| 17197 | fi~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17198 | $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] | 17199 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17200 | ld_shlibs_GCJ=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17201 | fi |
| 17202 | ;; |
| 17203 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17204 | interix3*) |
| 17205 | hardcode_direct_GCJ=no |
| 17206 | hardcode_shlibpath_var_GCJ=no |
| 17207 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 17208 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 17209 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 17210 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 17211 | # default) and relocated if they conflict, which is a slow very memory |
| 17212 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 17213 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 17214 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 17215 | 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' |
| 17216 | 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' |
| 17217 | ;; |
| 17218 | |
| 17219 | linux*) |
| 17220 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 17221 | tmp_addflag= |
| 17222 | case $cc_basename,$host_cpu in |
| 17223 | pgcc*) # Portland Group C compiler |
| 17224 | 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' |
| 17225 | tmp_addflag=' $pic_flag' |
| 17226 | ;; |
| 17227 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 17228 | 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' |
| 17229 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 17230 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 17231 | tmp_addflag=' -i_dynamic' ;; |
| 17232 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 17233 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 17234 | ifc* | ifort*) # Intel Fortran compiler |
| 17235 | tmp_addflag=' -nofor_main' ;; |
| 17236 | esac |
| 17237 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17238 | |
| 17239 | if test $supports_anon_versioning = yes; then |
| 17240 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 17241 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 17242 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 17243 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 17244 | fi |
| 17245 | else |
| 17246 | ld_shlibs_GCJ=no |
| 17247 | fi |
| 17248 | ;; |
| 17249 | |
| 17250 | netbsd*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17251 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 17252 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 17253 | wlarc= |
| 17254 | else |
| 17255 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17256 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 17257 | fi |
| 17258 | ;; |
| 17259 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17260 | solaris*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17261 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 17262 | ld_shlibs_GCJ=no |
| 17263 | cat <<EOF 1>&2 |
| 17264 | |
| 17265 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 17266 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 17267 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 17268 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 17269 | *** your PATH or compiler configuration so that the native linker is |
| 17270 | *** used, and then restart. |
| 17271 | |
| 17272 | EOF |
| 17273 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 17274 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17275 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 17276 | else |
| 17277 | ld_shlibs_GCJ=no |
| 17278 | fi |
| 17279 | ;; |
| 17280 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17281 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 17282 | case `$LD -v 2>&1` in |
| 17283 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 17284 | ld_shlibs_GCJ=no |
| 17285 | cat <<_LT_EOF 1>&2 |
| 17286 | |
| 17287 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 17288 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 17289 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 17290 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 17291 | *** your PATH or compiler configuration so that the native linker is |
| 17292 | *** used, and then restart. |
| 17293 | |
| 17294 | _LT_EOF |
| 17295 | ;; |
| 17296 | *) |
| 17297 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 17298 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 17299 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 17300 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 17301 | else |
| 17302 | ld_shlibs_GCJ=no |
| 17303 | fi |
| 17304 | ;; |
| 17305 | esac |
| 17306 | ;; |
| 17307 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17308 | sunos4*) |
| 17309 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 17310 | wlarc= |
| 17311 | hardcode_direct_GCJ=yes |
| 17312 | hardcode_shlibpath_var_GCJ=no |
| 17313 | ;; |
| 17314 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17315 | *) |
| 17316 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 17317 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17318 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 17319 | else |
| 17320 | ld_shlibs_GCJ=no |
| 17321 | fi |
| 17322 | ;; |
| 17323 | esac |
| 17324 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17325 | if test "$ld_shlibs_GCJ" = no; then |
| 17326 | runpath_var= |
| 17327 | hardcode_libdir_flag_spec_GCJ= |
| 17328 | export_dynamic_flag_spec_GCJ= |
| 17329 | whole_archive_flag_spec_GCJ= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17330 | fi |
| 17331 | else |
| 17332 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 17333 | case $host_os in |
| 17334 | aix3*) |
| 17335 | allow_undefined_flag_GCJ=unsupported |
| 17336 | always_export_symbols_GCJ=yes |
| 17337 | 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' |
| 17338 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 17339 | # are no directories specified by -L. |
| 17340 | hardcode_minus_L_GCJ=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17341 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17342 | # Neither direct hardcoding nor static linking is supported with a |
| 17343 | # broken collect2. |
| 17344 | hardcode_direct_GCJ=unsupported |
| 17345 | fi |
| 17346 | ;; |
| 17347 | |
| 17348 | aix4* | aix5*) |
| 17349 | if test "$host_cpu" = ia64; then |
| 17350 | # On IA64, the linker does run time linking by default, so we don't |
| 17351 | # have to do anything special. |
| 17352 | aix_use_runtimelinking=no |
| 17353 | exp_sym_flag='-Bexport' |
| 17354 | no_entry_flag="" |
| 17355 | else |
| 17356 | # If we're using GNU nm, then we don't want the "-C" option. |
| 17357 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 17358 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 17359 | 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' |
| 17360 | else |
| 17361 | 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' |
| 17362 | fi |
| 17363 | aix_use_runtimelinking=no |
| 17364 | |
| 17365 | # Test if we are trying to use run time linking or normal |
| 17366 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 17367 | # need to do runtime linking. |
| 17368 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 17369 | for ld_flag in $LDFLAGS; do |
| 17370 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 17371 | aix_use_runtimelinking=yes |
| 17372 | break |
| 17373 | fi |
| 17374 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17375 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17376 | esac |
| 17377 | |
| 17378 | exp_sym_flag='-bexport' |
| 17379 | no_entry_flag='-bnoentry' |
| 17380 | fi |
| 17381 | |
| 17382 | # When large executables or shared objects are built, AIX ld can |
| 17383 | # have problems creating the table of contents. If linking a library |
| 17384 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 17385 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 17386 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 17387 | |
| 17388 | archive_cmds_GCJ='' |
| 17389 | hardcode_direct_GCJ=yes |
| 17390 | hardcode_libdir_separator_GCJ=':' |
| 17391 | link_all_deplibs_GCJ=yes |
| 17392 | |
| 17393 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17394 | case $host_os in aix4.[012]|aix4.[012].*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17395 | # We only want to do this on AIX 4.2 and lower, the check |
| 17396 | # below for broken collect2 doesn't work under 4.3+ |
| 17397 | collect2name=`${CC} -print-prog-name=collect2` |
| 17398 | if test -f "$collect2name" && \ |
| 17399 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 17400 | then |
| 17401 | # We have reworked collect2 |
| 17402 | hardcode_direct_GCJ=yes |
| 17403 | else |
| 17404 | # We have old collect2 |
| 17405 | hardcode_direct_GCJ=unsupported |
| 17406 | # It fails to find uninstalled libraries when the uninstalled |
| 17407 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 17408 | # to unsupported forces relinking |
| 17409 | hardcode_minus_L_GCJ=yes |
| 17410 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17411 | hardcode_libdir_separator_GCJ= |
| 17412 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17413 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17414 | esac |
| 17415 | shared_flag='-shared' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17416 | if test "$aix_use_runtimelinking" = yes; then |
| 17417 | shared_flag="$shared_flag "'${wl}-G' |
| 17418 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17419 | else |
| 17420 | # not using gcc |
| 17421 | if test "$host_cpu" = ia64; then |
| 17422 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 17423 | # chokes on -Wl,-G. The following line is correct: |
| 17424 | shared_flag='-G' |
| 17425 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17426 | if test "$aix_use_runtimelinking" = yes; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17427 | shared_flag='${wl}-G' |
| 17428 | else |
| 17429 | shared_flag='${wl}-bM:SRE' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17430 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17431 | fi |
| 17432 | fi |
| 17433 | |
| 17434 | # It seems that -bexpall does not export symbols beginning with |
| 17435 | # underscore (_), so it is better to generate a list of symbols to export. |
| 17436 | always_export_symbols_GCJ=yes |
| 17437 | if test "$aix_use_runtimelinking" = yes; then |
| 17438 | # Warning - without using the other runtime loading flags (-brtl), |
| 17439 | # -berok will link without error, but may produce a broken library. |
| 17440 | allow_undefined_flag_GCJ='-berok' |
| 17441 | # Determine the default libpath from the value encoded in an empty executable. |
| 17442 | cat >conftest.$ac_ext <<_ACEOF |
| 17443 | /* confdefs.h. */ |
| 17444 | _ACEOF |
| 17445 | cat confdefs.h >>conftest.$ac_ext |
| 17446 | cat >>conftest.$ac_ext <<_ACEOF |
| 17447 | /* end confdefs.h. */ |
| 17448 | |
| 17449 | int |
| 17450 | main () |
| 17451 | { |
| 17452 | |
| 17453 | ; |
| 17454 | return 0; |
| 17455 | } |
| 17456 | _ACEOF |
| 17457 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17458 | if { (ac_try="$ac_link" |
| 17459 | case "(($ac_try" in |
| 17460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17461 | *) ac_try_echo=$ac_try;; |
| 17462 | esac |
| 17463 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17464 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17465 | ac_status=$? |
| 17466 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17467 | rm -f conftest.er1 |
| 17468 | cat conftest.err >&5 |
| 17469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17470 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17471 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17472 | { (case "(($ac_try" in |
| 17473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17474 | *) ac_try_echo=$ac_try;; |
| 17475 | esac |
| 17476 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17477 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17478 | ac_status=$? |
| 17479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17480 | (exit $ac_status); }; } && |
| 17481 | { ac_try='test -s conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17482 | { (case "(($ac_try" in |
| 17483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17484 | *) ac_try_echo=$ac_try;; |
| 17485 | esac |
| 17486 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17487 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17488 | ac_status=$? |
| 17489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17490 | (exit $ac_status); }; }; then |
| 17491 | |
| 17492 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 17493 | }'` |
| 17494 | # Check for a 64-bit object if we didn't find anything. |
| 17495 | 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; } |
| 17496 | }'`; fi |
| 17497 | else |
| 17498 | echo "$as_me: failed program was:" >&5 |
| 17499 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17500 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17501 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17502 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17503 | |
| 17504 | rm -f core conftest.err conftest.$ac_objext \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17505 | conftest$ac_exeext conftest.$ac_ext |
| 17506 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 17507 | |
| 17508 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17509 | 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] | 17510 | else |
| 17511 | if test "$host_cpu" = ia64; then |
| 17512 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
| 17513 | allow_undefined_flag_GCJ="-z nodefs" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17514 | 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] | 17515 | else |
| 17516 | # Determine the default libpath from the value encoded in an empty executable. |
| 17517 | cat >conftest.$ac_ext <<_ACEOF |
| 17518 | /* confdefs.h. */ |
| 17519 | _ACEOF |
| 17520 | cat confdefs.h >>conftest.$ac_ext |
| 17521 | cat >>conftest.$ac_ext <<_ACEOF |
| 17522 | /* end confdefs.h. */ |
| 17523 | |
| 17524 | int |
| 17525 | main () |
| 17526 | { |
| 17527 | |
| 17528 | ; |
| 17529 | return 0; |
| 17530 | } |
| 17531 | _ACEOF |
| 17532 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17533 | if { (ac_try="$ac_link" |
| 17534 | case "(($ac_try" in |
| 17535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17536 | *) ac_try_echo=$ac_try;; |
| 17537 | esac |
| 17538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17539 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17540 | ac_status=$? |
| 17541 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17542 | rm -f conftest.er1 |
| 17543 | cat conftest.err >&5 |
| 17544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17545 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17546 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17547 | { (case "(($ac_try" in |
| 17548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17549 | *) ac_try_echo=$ac_try;; |
| 17550 | esac |
| 17551 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17552 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17553 | ac_status=$? |
| 17554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17555 | (exit $ac_status); }; } && |
| 17556 | { ac_try='test -s conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 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); }; }; then |
| 17566 | |
| 17567 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 17568 | }'` |
| 17569 | # Check for a 64-bit object if we didn't find anything. |
| 17570 | 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; } |
| 17571 | }'`; fi |
| 17572 | else |
| 17573 | echo "$as_me: failed program was:" >&5 |
| 17574 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17575 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17576 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17577 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17578 | |
| 17579 | rm -f core conftest.err conftest.$ac_objext \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17580 | conftest$ac_exeext conftest.$ac_ext |
| 17581 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 17582 | |
| 17583 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 17584 | # Warning - without using the other run time loading flags, |
| 17585 | # -berok will link without error, but may produce a broken library. |
| 17586 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
| 17587 | allow_undefined_flag_GCJ=' ${wl}-berok' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17588 | # Exported symbols can be pulled into shared objects from archives |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17589 | whole_archive_flag_spec_GCJ='$convenience' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17590 | archive_cmds_need_lc_GCJ=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17591 | # This is similar to how AIX traditionally builds its shared libraries. |
| 17592 | 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] | 17593 | fi |
| 17594 | fi |
| 17595 | ;; |
| 17596 | |
| 17597 | amigaos*) |
| 17598 | 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)' |
| 17599 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17600 | hardcode_minus_L_GCJ=yes |
| 17601 | # see comment about different semantics on the GNU ld section |
| 17602 | ld_shlibs_GCJ=no |
| 17603 | ;; |
| 17604 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17605 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17606 | export_dynamic_flag_spec_GCJ=-rdynamic |
| 17607 | ;; |
| 17608 | |
| 17609 | cygwin* | mingw* | pw32*) |
| 17610 | # When not using gcc, we currently assume that we are using |
| 17611 | # Microsoft Visual C++. |
| 17612 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 17613 | # no search path for DLLs. |
| 17614 | hardcode_libdir_flag_spec_GCJ=' ' |
| 17615 | allow_undefined_flag_GCJ=unsupported |
| 17616 | # Tell ltmain to make .lib files, not .a files. |
| 17617 | libext=lib |
| 17618 | # Tell ltmain to make .dll files, not .so files. |
| 17619 | shrext_cmds=".dll" |
| 17620 | # FIXME: Setting linknames here is a bad hack. |
| 17621 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 17622 | # The linker will automatically build a .lib file if we build a DLL. |
| 17623 | old_archive_From_new_cmds_GCJ='true' |
| 17624 | # FIXME: Should let the user specify the lib program. |
| 17625 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17626 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17627 | enable_shared_with_static_runtimes_GCJ=yes |
| 17628 | ;; |
| 17629 | |
| 17630 | darwin* | rhapsody*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17631 | case $host_os in |
| 17632 | rhapsody* | darwin1.[012]) |
| 17633 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
| 17634 | ;; |
| 17635 | *) # Darwin 1.3 on |
| 17636 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 17637 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 17638 | else |
| 17639 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 17640 | 10.[012]) |
| 17641 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 17642 | ;; |
| 17643 | 10.*) |
| 17644 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
| 17645 | ;; |
| 17646 | esac |
| 17647 | fi |
| 17648 | ;; |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 17649 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17650 | archive_cmds_need_lc_GCJ=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17651 | hardcode_direct_GCJ=no |
| 17652 | hardcode_automatic_GCJ=yes |
| 17653 | hardcode_shlibpath_var_GCJ=unsupported |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17654 | whole_archive_flag_spec_GCJ='' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17655 | link_all_deplibs_GCJ=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17656 | if test "$GCC" = yes ; then |
| 17657 | output_verbose_link_cmd='echo' |
| 17658 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 17659 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 17660 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 17661 | 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}' |
| 17662 | 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] | 17663 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17664 | case $cc_basename in |
| 17665 | xlc*) |
| 17666 | output_verbose_link_cmd='echo' |
| 17667 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 17668 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 17669 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 17670 | 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}' |
| 17671 | 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}' |
| 17672 | ;; |
| 17673 | *) |
| 17674 | ld_shlibs_GCJ=no |
| 17675 | ;; |
| 17676 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17677 | fi |
| 17678 | ;; |
| 17679 | |
| 17680 | dgux*) |
| 17681 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17682 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17683 | hardcode_shlibpath_var_GCJ=no |
| 17684 | ;; |
| 17685 | |
| 17686 | freebsd1*) |
| 17687 | ld_shlibs_GCJ=no |
| 17688 | ;; |
| 17689 | |
| 17690 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 17691 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 17692 | # does not break anything, and helps significantly (at the cost of a little |
| 17693 | # extra space). |
| 17694 | freebsd2.2*) |
| 17695 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 17696 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 17697 | hardcode_direct_GCJ=yes |
| 17698 | hardcode_shlibpath_var_GCJ=no |
| 17699 | ;; |
| 17700 | |
| 17701 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 17702 | freebsd2*) |
| 17703 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 17704 | hardcode_direct_GCJ=yes |
| 17705 | hardcode_minus_L_GCJ=yes |
| 17706 | hardcode_shlibpath_var_GCJ=no |
| 17707 | ;; |
| 17708 | |
| 17709 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17710 | freebsd* | kfreebsd*-gnu | dragonfly*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17711 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 17712 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 17713 | hardcode_direct_GCJ=yes |
| 17714 | hardcode_shlibpath_var_GCJ=no |
| 17715 | ;; |
| 17716 | |
| 17717 | hpux9*) |
| 17718 | if test "$GCC" = yes; then |
| 17719 | 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' |
| 17720 | else |
| 17721 | 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' |
| 17722 | fi |
| 17723 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 17724 | hardcode_libdir_separator_GCJ=: |
| 17725 | hardcode_direct_GCJ=yes |
| 17726 | |
| 17727 | # hardcode_minus_L: Not really in the search PATH, |
| 17728 | # but as the default location of the library. |
| 17729 | hardcode_minus_L_GCJ=yes |
| 17730 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 17731 | ;; |
| 17732 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17733 | hpux10*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17734 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17735 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 17736 | else |
| 17737 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 17738 | fi |
| 17739 | if test "$with_gnu_ld" = no; then |
| 17740 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 17741 | hardcode_libdir_separator_GCJ=: |
| 17742 | |
| 17743 | hardcode_direct_GCJ=yes |
| 17744 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 17745 | |
| 17746 | # hardcode_minus_L: Not really in the search PATH, |
| 17747 | # but as the default location of the library. |
| 17748 | hardcode_minus_L_GCJ=yes |
| 17749 | fi |
| 17750 | ;; |
| 17751 | |
| 17752 | hpux11*) |
| 17753 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 17754 | case $host_cpu in |
| 17755 | hppa*64*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17756 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17757 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17758 | ia64*) |
| 17759 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 17760 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17761 | *) |
| 17762 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 17763 | ;; |
| 17764 | esac |
| 17765 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17766 | case $host_cpu in |
| 17767 | hppa*64*) |
| 17768 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17769 | ;; |
| 17770 | ia64*) |
| 17771 | 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] | 17772 | ;; |
| 17773 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17774 | 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] | 17775 | ;; |
| 17776 | esac |
| 17777 | fi |
| 17778 | if test "$with_gnu_ld" = no; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17779 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 17780 | hardcode_libdir_separator_GCJ=: |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 17781 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17782 | case $host_cpu in |
| 17783 | hppa*64*|ia64*) |
| 17784 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
| 17785 | hardcode_direct_GCJ=no |
| 17786 | hardcode_shlibpath_var_GCJ=no |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 17787 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17788 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17789 | hardcode_direct_GCJ=yes |
| 17790 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 17791 | |
| 17792 | # hardcode_minus_L: Not really in the search PATH, |
| 17793 | # but as the default location of the library. |
| 17794 | hardcode_minus_L_GCJ=yes |
| 17795 | ;; |
| 17796 | esac |
| 17797 | fi |
| 17798 | ;; |
| 17799 | |
| 17800 | irix5* | irix6* | nonstopux*) |
| 17801 | if test "$GCC" = yes; then |
| 17802 | 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' |
| 17803 | else |
| 17804 | 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' |
| 17805 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
| 17806 | fi |
| 17807 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 17808 | hardcode_libdir_separator_GCJ=: |
| 17809 | link_all_deplibs_GCJ=yes |
| 17810 | ;; |
| 17811 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17812 | netbsd*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17813 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 17814 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 17815 | else |
| 17816 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 17817 | fi |
| 17818 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 17819 | hardcode_direct_GCJ=yes |
| 17820 | hardcode_shlibpath_var_GCJ=no |
| 17821 | ;; |
| 17822 | |
| 17823 | newsos6) |
| 17824 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17825 | hardcode_direct_GCJ=yes |
| 17826 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 17827 | hardcode_libdir_separator_GCJ=: |
| 17828 | hardcode_shlibpath_var_GCJ=no |
| 17829 | ;; |
| 17830 | |
| 17831 | openbsd*) |
| 17832 | hardcode_direct_GCJ=yes |
| 17833 | hardcode_shlibpath_var_GCJ=no |
| 17834 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 17835 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17836 | 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] | 17837 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 17838 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 17839 | else |
| 17840 | case $host_os in |
| 17841 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 17842 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 17843 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 17844 | ;; |
| 17845 | *) |
| 17846 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 17847 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 17848 | ;; |
| 17849 | esac |
| 17850 | fi |
| 17851 | ;; |
| 17852 | |
| 17853 | os2*) |
| 17854 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17855 | hardcode_minus_L_GCJ=yes |
| 17856 | allow_undefined_flag_GCJ=unsupported |
| 17857 | 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' |
| 17858 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 17859 | ;; |
| 17860 | |
| 17861 | osf3*) |
| 17862 | if test "$GCC" = yes; then |
| 17863 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 17864 | 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' |
| 17865 | else |
| 17866 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 17867 | 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' |
| 17868 | fi |
| 17869 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 17870 | hardcode_libdir_separator_GCJ=: |
| 17871 | ;; |
| 17872 | |
| 17873 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 17874 | if test "$GCC" = yes; then |
| 17875 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 17876 | 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' |
| 17877 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 17878 | else |
| 17879 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 17880 | 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' |
| 17881 | 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^] | 17882 | $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] | 17883 | |
| 17884 | # Both c and cxx compiler support -rpath directly |
| 17885 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
| 17886 | fi |
| 17887 | hardcode_libdir_separator_GCJ=: |
| 17888 | ;; |
| 17889 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17890 | solaris*) |
| 17891 | no_undefined_flag_GCJ=' -z text' |
| 17892 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17893 | wlarc='${wl}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17894 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17895 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 17896 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 17897 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17898 | wlarc='' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17899 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17900 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 17901 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 17902 | fi |
| 17903 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 17904 | hardcode_shlibpath_var_GCJ=no |
| 17905 | case $host_os in |
| 17906 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17907 | *) |
| 17908 | # The compiler driver will combine linker options so we |
| 17909 | # cannot just pass the convience library names through |
| 17910 | # without $wl, iff we do not link with $LD. |
| 17911 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 17912 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 17913 | case $wlarc in |
| 17914 | '') |
| 17915 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
| 17916 | *) |
| 17917 | 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' ;; |
| 17918 | esac ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17919 | esac |
| 17920 | link_all_deplibs_GCJ=yes |
| 17921 | ;; |
| 17922 | |
| 17923 | sunos4*) |
| 17924 | if test "x$host_vendor" = xsequent; then |
| 17925 | # Use $CC to link under sequent, because it throws in some extra .o |
| 17926 | # files that make .init and .fini sections work. |
| 17927 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17928 | else |
| 17929 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 17930 | fi |
| 17931 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17932 | hardcode_direct_GCJ=yes |
| 17933 | hardcode_minus_L_GCJ=yes |
| 17934 | hardcode_shlibpath_var_GCJ=no |
| 17935 | ;; |
| 17936 | |
| 17937 | sysv4) |
| 17938 | case $host_vendor in |
| 17939 | sni) |
| 17940 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17941 | hardcode_direct_GCJ=yes # is this really true??? |
| 17942 | ;; |
| 17943 | siemens) |
| 17944 | ## LD is ld it makes a PLAMLIB |
| 17945 | ## CC just makes a GrossModule. |
| 17946 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 17947 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
| 17948 | hardcode_direct_GCJ=no |
| 17949 | ;; |
| 17950 | motorola) |
| 17951 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17952 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
| 17953 | ;; |
| 17954 | esac |
| 17955 | runpath_var='LD_RUN_PATH' |
| 17956 | hardcode_shlibpath_var_GCJ=no |
| 17957 | ;; |
| 17958 | |
| 17959 | sysv4.3*) |
| 17960 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17961 | hardcode_shlibpath_var_GCJ=no |
| 17962 | export_dynamic_flag_spec_GCJ='-Bexport' |
| 17963 | ;; |
| 17964 | |
| 17965 | sysv4*MP*) |
| 17966 | if test -d /usr/nec; then |
| 17967 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17968 | hardcode_shlibpath_var_GCJ=no |
| 17969 | runpath_var=LD_RUN_PATH |
| 17970 | hardcode_runpath_var=yes |
| 17971 | ld_shlibs_GCJ=yes |
| 17972 | fi |
| 17973 | ;; |
| 17974 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17975 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 17976 | no_undefined_flag_GCJ='${wl}-z,text' |
| 17977 | archive_cmds_need_lc_GCJ=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17978 | hardcode_shlibpath_var_GCJ=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17979 | runpath_var='LD_RUN_PATH' |
bryner | 07f8ef5 | 2006-09-05 19:42:57 +0000 | [diff] [blame] | 17980 | |
mmentovai | 3261e8b | 2006-09-06 02:56:44 +0000 | [diff] [blame] | 17981 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17982 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17983 | 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] | 17984 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17985 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17986 | 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] | 17987 | fi |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 17988 | ;; |
| 17989 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 17990 | sysv5* | sco3.2v5* | sco5v6*) |
| 17991 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 17992 | # link with -lc, and that would cause any symbols used from libc to |
| 17993 | # always be unresolved, which means just about no library would |
| 17994 | # ever link correctly. If we're not using GNU ld we use -z text |
| 17995 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 17996 | # as -z defs. |
| 17997 | no_undefined_flag_GCJ='${wl}-z,text' |
| 17998 | allow_undefined_flag_GCJ='${wl}-z,nodefs' |
| 17999 | archive_cmds_need_lc_GCJ=no |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 18000 | hardcode_shlibpath_var_GCJ=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 18001 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 18002 | hardcode_libdir_separator_GCJ=':' |
| 18003 | link_all_deplibs_GCJ=yes |
| 18004 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 18005 | runpath_var='LD_RUN_PATH' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 18006 | |
| 18007 | if test "$GCC" = yes; then |
| 18008 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18009 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18010 | else |
| 18011 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18012 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18013 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18014 | ;; |
| 18015 | |
| 18016 | uts4*) |
| 18017 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 18018 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 18019 | hardcode_shlibpath_var_GCJ=no |
| 18020 | ;; |
| 18021 | |
| 18022 | *) |
| 18023 | ld_shlibs_GCJ=no |
| 18024 | ;; |
| 18025 | esac |
| 18026 | fi |
| 18027 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 18028 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
| 18029 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18030 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
| 18031 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18032 | # |
| 18033 | # Do we need to explicitly link libc? |
| 18034 | # |
| 18035 | case "x$archive_cmds_need_lc_GCJ" in |
| 18036 | x|xyes) |
| 18037 | # Assume -lc should be added |
| 18038 | archive_cmds_need_lc_GCJ=yes |
| 18039 | |
| 18040 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 18041 | case $archive_cmds_GCJ in |
| 18042 | *'~'*) |
| 18043 | # FIXME: we may have to deal with multi-command sequences. |
| 18044 | ;; |
| 18045 | '$CC '*) |
| 18046 | # Test whether the compiler implicitly links with -lc since on some |
| 18047 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 18048 | # to ld, don't add -lc before -lgcc. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 18049 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 18050 | 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] | 18051 | $rm conftest* |
| 18052 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 18053 | |
| 18054 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18055 | (eval $ac_compile) 2>&5 |
| 18056 | ac_status=$? |
| 18057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18058 | (exit $ac_status); } 2>conftest.err; then |
| 18059 | soname=conftest |
| 18060 | lib=conftest |
| 18061 | libobjs=conftest.$ac_objext |
| 18062 | deplibs= |
| 18063 | wl=$lt_prog_compiler_wl_GCJ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 18064 | pic_flag=$lt_prog_compiler_pic_GCJ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18065 | compiler_flags=-v |
| 18066 | linker_flags=-v |
| 18067 | verstring= |
| 18068 | output_objdir=. |
| 18069 | libname=conftest |
| 18070 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
| 18071 | allow_undefined_flag_GCJ= |
| 18072 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 18073 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 18074 | ac_status=$? |
| 18075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18076 | (exit $ac_status); } |
| 18077 | then |
| 18078 | archive_cmds_need_lc_GCJ=no |
| 18079 | else |
| 18080 | archive_cmds_need_lc_GCJ=yes |
| 18081 | fi |
| 18082 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
| 18083 | else |
| 18084 | cat conftest.err 1>&5 |
| 18085 | fi |
| 18086 | $rm conftest* |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 18087 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
| 18088 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18089 | ;; |
| 18090 | esac |
| 18091 | fi |
| 18092 | ;; |
| 18093 | esac |
| 18094 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 18095 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 18096 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18097 | library_names_spec= |
| 18098 | libname_spec='lib$name' |
| 18099 | soname_spec= |
| 18100 | shrext_cmds=".so" |
| 18101 | postinstall_cmds= |
| 18102 | postuninstall_cmds= |
| 18103 | finish_cmds= |
| 18104 | finish_eval= |
| 18105 | shlibpath_var= |
| 18106 | shlibpath_overrides_runpath=unknown |
| 18107 | version_type=none |
| 18108 | dynamic_linker="$host_os ld.so" |
| 18109 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 18110 | if test "$GCC" = yes; then |
| 18111 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 18112 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 18113 | # if the path contains ";" then we assume it to be the separator |
| 18114 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 18115 | # assumed that no part of a normal pathname contains ";" but that should |
| 18116 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 18117 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 18118 | else |
| 18119 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 18120 | fi |
| 18121 | else |
| 18122 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 18123 | fi |
| 18124 | need_lib_prefix=unknown |
| 18125 | hardcode_into_libs=no |
| 18126 | |
| 18127 | # when you set need_version to no, make sure it does not cause -set_version |
| 18128 | # flags to be left without arguments |
| 18129 | need_version=unknown |
| 18130 | |
| 18131 | case $host_os in |
| 18132 | aix3*) |
| 18133 | version_type=linux |
| 18134 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 18135 | shlibpath_var=LIBPATH |
| 18136 | |
| 18137 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 18138 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18139 | ;; |
| 18140 | |
| 18141 | aix4* | aix5*) |
| 18142 | version_type=linux |
| 18143 | need_lib_prefix=no |
| 18144 | need_version=no |
| 18145 | hardcode_into_libs=yes |
| 18146 | if test "$host_cpu" = ia64; then |
| 18147 | # AIX 5 supports IA64 |
| 18148 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 18149 | shlibpath_var=LD_LIBRARY_PATH |
| 18150 | else |
| 18151 | # With GCC up to 2.95.x, collect2 would create an import file |
| 18152 | # for dependence libraries. The import file would start with |
| 18153 | # the line `#! .'. This would cause the generated library to |
| 18154 | # depend on `.', always an invalid library. This was fixed in |
| 18155 | # development snapshots of GCC prior to 3.0. |
| 18156 | case $host_os in |
| 18157 | aix4 | aix4.[01] | aix4.[01].*) |
| 18158 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 18159 | echo ' yes ' |
| 18160 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 18161 | : |
| 18162 | else |
| 18163 | can_build_shared=no |
| 18164 | fi |
| 18165 | ;; |
| 18166 | esac |
| 18167 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 18168 | # soname into executable. Probably we can add versioning support to |
| 18169 | # collect2, so additional links can be useful in future. |
| 18170 | if test "$aix_use_runtimelinking" = yes; then |
| 18171 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 18172 | # instead of lib<name>.a to let people know that these are not |
| 18173 | # typical AIX shared libraries. |
| 18174 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18175 | else |
| 18176 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 18177 | # and later when we are not doing run time linking. |
| 18178 | library_names_spec='${libname}${release}.a $libname.a' |
| 18179 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18180 | fi |
| 18181 | shlibpath_var=LIBPATH |
| 18182 | fi |
| 18183 | ;; |
| 18184 | |
| 18185 | amigaos*) |
| 18186 | library_names_spec='$libname.ixlibrary $libname.a' |
| 18187 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 18188 | 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' |
| 18189 | ;; |
| 18190 | |
| 18191 | beos*) |
| 18192 | library_names_spec='${libname}${shared_ext}' |
| 18193 | dynamic_linker="$host_os ld.so" |
| 18194 | shlibpath_var=LIBRARY_PATH |
| 18195 | ;; |
| 18196 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 18197 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18198 | version_type=linux |
| 18199 | need_version=no |
| 18200 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18201 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18202 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 18203 | shlibpath_var=LD_LIBRARY_PATH |
| 18204 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 18205 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 18206 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 18207 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 18208 | # libtool to hard-code these into programs |
| 18209 | ;; |
| 18210 | |
| 18211 | cygwin* | mingw* | pw32*) |
| 18212 | version_type=windows |
| 18213 | shrext_cmds=".dll" |
| 18214 | need_version=no |
| 18215 | need_lib_prefix=no |
| 18216 | |
| 18217 | case $GCC,$host_os in |
| 18218 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 18219 | library_names_spec='$libname.dll.a' |
| 18220 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 18221 | postinstall_cmds='base_file=`basename \${file}`~ |
| 18222 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 18223 | dldir=$destdir/`dirname \$dlpath`~ |
| 18224 | test -d \$dldir || mkdir -p \$dldir~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 18225 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 18226 | chmod a+x \$dldir/$dlname' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18227 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 18228 | dlpath=$dir/\$dldll~ |
| 18229 | $rm \$dlpath' |
| 18230 | shlibpath_overrides_runpath=yes |
| 18231 | |
| 18232 | case $host_os in |
| 18233 | cygwin*) |
| 18234 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 18235 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 18236 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 18237 | ;; |
| 18238 | mingw*) |
| 18239 | # MinGW DLLs use traditional 'lib' prefix |
| 18240 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 18241 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 18242 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 18243 | # It is most probably a Windows format PATH printed by |
| 18244 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 18245 | # path with ; separators, and with drive letters. We can handle the |
| 18246 | # drive letters (cygwin fileutils understands them), so leave them, |
| 18247 | # especially as we might pass files found there to a mingw objdump, |
| 18248 | # which wouldn't understand a cygwinified path. Ahh. |
| 18249 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 18250 | else |
| 18251 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 18252 | fi |
| 18253 | ;; |
| 18254 | pw32*) |
| 18255 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 18256 | 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] | 18257 | ;; |
| 18258 | esac |
| 18259 | ;; |
| 18260 | |
| 18261 | *) |
| 18262 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 18263 | ;; |
| 18264 | esac |
| 18265 | dynamic_linker='Win32 ld.exe' |
| 18266 | # FIXME: first we should search . and the directory the executable is in |
| 18267 | shlibpath_var=PATH |
| 18268 | ;; |
| 18269 | |
| 18270 | darwin* | rhapsody*) |
| 18271 | dynamic_linker="$host_os dyld" |
| 18272 | version_type=darwin |
| 18273 | need_lib_prefix=no |
| 18274 | need_version=no |
| 18275 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 18276 | soname_spec='${libname}${release}${major}$shared_ext' |
| 18277 | shlibpath_overrides_runpath=yes |
| 18278 | shlibpath_var=DYLD_LIBRARY_PATH |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 18279 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18280 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 18281 | if test "$GCC" = yes; then |
| 18282 | 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"` |
| 18283 | else |
| 18284 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 18285 | fi |
| 18286 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 18287 | ;; |
| 18288 | |
| 18289 | dgux*) |
| 18290 | version_type=linux |
| 18291 | need_lib_prefix=no |
| 18292 | need_version=no |
| 18293 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 18294 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18295 | shlibpath_var=LD_LIBRARY_PATH |
| 18296 | ;; |
| 18297 | |
| 18298 | freebsd1*) |
| 18299 | dynamic_linker=no |
| 18300 | ;; |
| 18301 | |
| 18302 | kfreebsd*-gnu) |
| 18303 | version_type=linux |
| 18304 | need_lib_prefix=no |
| 18305 | need_version=no |
| 18306 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 18307 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18308 | shlibpath_var=LD_LIBRARY_PATH |
| 18309 | shlibpath_overrides_runpath=no |
| 18310 | hardcode_into_libs=yes |
| 18311 | dynamic_linker='GNU ld.so' |
| 18312 | ;; |
| 18313 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 18314 | freebsd* | dragonfly*) |
| 18315 | # DragonFly does not have aout. When/if they implement a new |
| 18316 | # versioning mechanism, adjust this. |
| 18317 | if test -x /usr/bin/objformat; then |
| 18318 | objformat=`/usr/bin/objformat` |
| 18319 | else |
| 18320 | case $host_os in |
| 18321 | freebsd[123]*) objformat=aout ;; |
| 18322 | *) objformat=elf ;; |
| 18323 | esac |
| 18324 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18325 | version_type=freebsd-$objformat |
| 18326 | case $version_type in |
| 18327 | freebsd-elf*) |
| 18328 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 18329 | need_version=no |
| 18330 | need_lib_prefix=no |
| 18331 | ;; |
| 18332 | freebsd-*) |
| 18333 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 18334 | need_version=yes |
| 18335 | ;; |
| 18336 | esac |
| 18337 | shlibpath_var=LD_LIBRARY_PATH |
| 18338 | case $host_os in |
| 18339 | freebsd2*) |
| 18340 | shlibpath_overrides_runpath=yes |
| 18341 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 18342 | freebsd3.[01]* | freebsdelf3.[01]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18343 | shlibpath_overrides_runpath=yes |
| 18344 | hardcode_into_libs=yes |
| 18345 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 18346 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 18347 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18348 | shlibpath_overrides_runpath=no |
| 18349 | hardcode_into_libs=yes |
| 18350 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 18351 | freebsd*) # from 4.6 on |
| 18352 | shlibpath_overrides_runpath=yes |
| 18353 | hardcode_into_libs=yes |
| 18354 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18355 | esac |
| 18356 | ;; |
| 18357 | |
| 18358 | gnu*) |
| 18359 | version_type=linux |
| 18360 | need_lib_prefix=no |
| 18361 | need_version=no |
| 18362 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 18363 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18364 | shlibpath_var=LD_LIBRARY_PATH |
| 18365 | hardcode_into_libs=yes |
| 18366 | ;; |
| 18367 | |
| 18368 | hpux9* | hpux10* | hpux11*) |
| 18369 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 18370 | # link against other versions. |
| 18371 | version_type=sunos |
| 18372 | need_lib_prefix=no |
| 18373 | need_version=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 18374 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18375 | ia64*) |
| 18376 | shrext_cmds='.so' |
| 18377 | hardcode_into_libs=yes |
| 18378 | dynamic_linker="$host_os dld.so" |
| 18379 | shlibpath_var=LD_LIBRARY_PATH |
| 18380 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 18381 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18382 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18383 | if test "X$HPUX_IA64_MODE" = X32; then |
| 18384 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 18385 | else |
| 18386 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 18387 | fi |
| 18388 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 18389 | ;; |
| 18390 | hppa*64*) |
| 18391 | shrext_cmds='.sl' |
| 18392 | hardcode_into_libs=yes |
| 18393 | dynamic_linker="$host_os dld.sl" |
| 18394 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 18395 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 18396 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18397 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18398 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 18399 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 18400 | ;; |
| 18401 | *) |
| 18402 | shrext_cmds='.sl' |
| 18403 | dynamic_linker="$host_os dld.sl" |
| 18404 | shlibpath_var=SHLIB_PATH |
| 18405 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 18406 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18407 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18408 | ;; |
| 18409 | esac |
| 18410 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 18411 | postinstall_cmds='chmod 555 $lib' |
| 18412 | ;; |
| 18413 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 18414 | interix3*) |
| 18415 | version_type=linux |
| 18416 | need_lib_prefix=no |
| 18417 | need_version=no |
| 18418 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 18419 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18420 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 18421 | shlibpath_var=LD_LIBRARY_PATH |
| 18422 | shlibpath_overrides_runpath=no |
| 18423 | hardcode_into_libs=yes |
| 18424 | ;; |
| 18425 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18426 | irix5* | irix6* | nonstopux*) |
| 18427 | case $host_os in |
| 18428 | nonstopux*) version_type=nonstopux ;; |
| 18429 | *) |
| 18430 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 18431 | version_type=linux |
| 18432 | else |
| 18433 | version_type=irix |
| 18434 | fi ;; |
| 18435 | esac |
| 18436 | need_lib_prefix=no |
| 18437 | need_version=no |
| 18438 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18439 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 18440 | case $host_os in |
| 18441 | irix5* | nonstopux*) |
| 18442 | libsuff= shlibsuff= |
| 18443 | ;; |
| 18444 | *) |
| 18445 | case $LD in # libtool.m4 will add one of these switches to LD |
| 18446 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 18447 | libsuff= shlibsuff= libmagic=32-bit;; |
| 18448 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 18449 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 18450 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 18451 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 18452 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 18453 | esac |
| 18454 | ;; |
| 18455 | esac |
| 18456 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 18457 | shlibpath_overrides_runpath=no |
| 18458 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 18459 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 18460 | hardcode_into_libs=yes |
| 18461 | ;; |
| 18462 | |
| 18463 | # No shared lib support for Linux oldld, aout, or coff. |
| 18464 | linux*oldld* | linux*aout* | linux*coff*) |
| 18465 | dynamic_linker=no |
| 18466 | ;; |
| 18467 | |
| 18468 | # This must be Linux ELF. |
| 18469 | linux*) |
| 18470 | version_type=linux |
| 18471 | need_lib_prefix=no |
| 18472 | need_version=no |
| 18473 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18474 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18475 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 18476 | shlibpath_var=LD_LIBRARY_PATH |
| 18477 | shlibpath_overrides_runpath=no |
| 18478 | # This implies no fast_install, which is unacceptable. |
| 18479 | # Some rework will be needed to allow for fast_install |
| 18480 | # before this can be enabled. |
| 18481 | hardcode_into_libs=yes |
| 18482 | |
| 18483 | # Append ld.so.conf contents to the search path |
| 18484 | if test -f /etc/ld.so.conf; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 18485 | 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] | 18486 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 18487 | fi |
| 18488 | |
| 18489 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 18490 | # powerpc, because MkLinux only supported shared libraries with the |
| 18491 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 18492 | # most powerpc-linux boxes support dynamic linking these days and |
| 18493 | # people can always --disable-shared, the test was removed, and we |
| 18494 | # assume the GNU/Linux dynamic linker is in use. |
| 18495 | dynamic_linker='GNU/Linux ld.so' |
| 18496 | ;; |
| 18497 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18498 | knetbsd*-gnu) |
| 18499 | version_type=linux |
| 18500 | need_lib_prefix=no |
| 18501 | need_version=no |
| 18502 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 18503 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18504 | shlibpath_var=LD_LIBRARY_PATH |
| 18505 | shlibpath_overrides_runpath=no |
| 18506 | hardcode_into_libs=yes |
| 18507 | dynamic_linker='GNU ld.so' |
| 18508 | ;; |
| 18509 | |
| 18510 | netbsd*) |
| 18511 | version_type=sunos |
| 18512 | need_lib_prefix=no |
| 18513 | need_version=no |
| 18514 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 18515 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 18516 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 18517 | dynamic_linker='NetBSD (a.out) ld.so' |
| 18518 | else |
| 18519 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 18520 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18521 | dynamic_linker='NetBSD ld.elf_so' |
| 18522 | fi |
| 18523 | shlibpath_var=LD_LIBRARY_PATH |
| 18524 | shlibpath_overrides_runpath=yes |
| 18525 | hardcode_into_libs=yes |
| 18526 | ;; |
| 18527 | |
| 18528 | newsos6) |
| 18529 | version_type=linux |
| 18530 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18531 | shlibpath_var=LD_LIBRARY_PATH |
| 18532 | shlibpath_overrides_runpath=yes |
| 18533 | ;; |
| 18534 | |
| 18535 | nto-qnx*) |
| 18536 | version_type=linux |
| 18537 | need_lib_prefix=no |
| 18538 | need_version=no |
| 18539 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18540 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18541 | shlibpath_var=LD_LIBRARY_PATH |
| 18542 | shlibpath_overrides_runpath=yes |
| 18543 | ;; |
| 18544 | |
| 18545 | openbsd*) |
| 18546 | version_type=sunos |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 18547 | sys_lib_dlsearch_path_spec="/usr/lib" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18548 | need_lib_prefix=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 18549 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 18550 | case $host_os in |
| 18551 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 18552 | *) need_version=no ;; |
| 18553 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18554 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 18555 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 18556 | shlibpath_var=LD_LIBRARY_PATH |
| 18557 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 18558 | case $host_os in |
| 18559 | openbsd2.[89] | openbsd2.[89].*) |
| 18560 | shlibpath_overrides_runpath=no |
| 18561 | ;; |
| 18562 | *) |
| 18563 | shlibpath_overrides_runpath=yes |
| 18564 | ;; |
| 18565 | esac |
| 18566 | else |
| 18567 | shlibpath_overrides_runpath=yes |
| 18568 | fi |
| 18569 | ;; |
| 18570 | |
| 18571 | os2*) |
| 18572 | libname_spec='$name' |
| 18573 | shrext_cmds=".dll" |
| 18574 | need_lib_prefix=no |
| 18575 | library_names_spec='$libname${shared_ext} $libname.a' |
| 18576 | dynamic_linker='OS/2 ld.exe' |
| 18577 | shlibpath_var=LIBPATH |
| 18578 | ;; |
| 18579 | |
| 18580 | osf3* | osf4* | osf5*) |
| 18581 | version_type=osf |
| 18582 | need_lib_prefix=no |
| 18583 | need_version=no |
| 18584 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18585 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18586 | shlibpath_var=LD_LIBRARY_PATH |
| 18587 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 18588 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 18589 | ;; |
| 18590 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18591 | solaris*) |
| 18592 | version_type=linux |
| 18593 | need_lib_prefix=no |
| 18594 | need_version=no |
| 18595 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18596 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18597 | shlibpath_var=LD_LIBRARY_PATH |
| 18598 | shlibpath_overrides_runpath=yes |
| 18599 | hardcode_into_libs=yes |
| 18600 | # ldd complains unless libraries are executable |
| 18601 | postinstall_cmds='chmod +x $lib' |
| 18602 | ;; |
| 18603 | |
| 18604 | sunos4*) |
| 18605 | version_type=sunos |
| 18606 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 18607 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 18608 | shlibpath_var=LD_LIBRARY_PATH |
| 18609 | shlibpath_overrides_runpath=yes |
| 18610 | if test "$with_gnu_ld" = yes; then |
| 18611 | need_lib_prefix=no |
| 18612 | fi |
| 18613 | need_version=yes |
| 18614 | ;; |
| 18615 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 18616 | sysv4 | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18617 | version_type=linux |
| 18618 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18619 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18620 | shlibpath_var=LD_LIBRARY_PATH |
| 18621 | case $host_vendor in |
| 18622 | sni) |
| 18623 | shlibpath_overrides_runpath=no |
| 18624 | need_lib_prefix=no |
| 18625 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 18626 | runpath_var=LD_RUN_PATH |
| 18627 | ;; |
| 18628 | siemens) |
| 18629 | need_lib_prefix=no |
| 18630 | ;; |
| 18631 | motorola) |
| 18632 | need_lib_prefix=no |
| 18633 | need_version=no |
| 18634 | shlibpath_overrides_runpath=no |
| 18635 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 18636 | ;; |
| 18637 | esac |
| 18638 | ;; |
| 18639 | |
| 18640 | sysv4*MP*) |
| 18641 | if test -d /usr/nec ;then |
| 18642 | version_type=linux |
| 18643 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 18644 | soname_spec='$libname${shared_ext}.$major' |
| 18645 | shlibpath_var=LD_LIBRARY_PATH |
| 18646 | fi |
| 18647 | ;; |
| 18648 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 18649 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 18650 | version_type=freebsd-elf |
| 18651 | need_lib_prefix=no |
| 18652 | need_version=no |
| 18653 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 18654 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18655 | shlibpath_var=LD_LIBRARY_PATH |
| 18656 | hardcode_into_libs=yes |
| 18657 | if test "$with_gnu_ld" = yes; then |
| 18658 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 18659 | shlibpath_overrides_runpath=no |
| 18660 | else |
| 18661 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 18662 | shlibpath_overrides_runpath=yes |
| 18663 | case $host_os in |
| 18664 | sco3.2v5*) |
| 18665 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 18666 | ;; |
| 18667 | esac |
| 18668 | fi |
| 18669 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 18670 | ;; |
| 18671 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18672 | uts4*) |
| 18673 | version_type=linux |
| 18674 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18675 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18676 | shlibpath_var=LD_LIBRARY_PATH |
| 18677 | ;; |
| 18678 | |
| 18679 | *) |
| 18680 | dynamic_linker=no |
| 18681 | ;; |
| 18682 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 18683 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 18684 | echo "${ECHO_T}$dynamic_linker" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18685 | test "$dynamic_linker" = no && can_build_shared=no |
| 18686 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 18687 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 18688 | if test "$GCC" = yes; then |
| 18689 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 18690 | fi |
| 18691 | |
| 18692 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 18693 | 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] | 18694 | hardcode_action_GCJ= |
| 18695 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 18696 | test -n "$runpath_var_GCJ" || \ |
| 18697 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18698 | |
| 18699 | # We can hardcode non-existant directories. |
| 18700 | if test "$hardcode_direct_GCJ" != no && |
| 18701 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 18702 | # have to relink, otherwise we might link with an installed library |
| 18703 | # when we should be linking with a yet-to-be-installed one |
| 18704 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
| 18705 | test "$hardcode_minus_L_GCJ" != no; then |
| 18706 | # Linking always hardcodes the temporary library directory. |
| 18707 | hardcode_action_GCJ=relink |
| 18708 | else |
| 18709 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 18710 | hardcode_action_GCJ=immediate |
| 18711 | fi |
| 18712 | else |
| 18713 | # We cannot hardcode anything, or else we can only hardcode existing |
| 18714 | # directories. |
| 18715 | hardcode_action_GCJ=unsupported |
| 18716 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 18717 | { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
| 18718 | echo "${ECHO_T}$hardcode_action_GCJ" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18719 | |
| 18720 | if test "$hardcode_action_GCJ" = relink; then |
| 18721 | # Fast installation is not supported |
| 18722 | enable_fast_install=no |
| 18723 | elif test "$shlibpath_overrides_runpath" = yes || |
| 18724 | test "$enable_shared" = no; then |
| 18725 | # Fast installation is not necessary |
| 18726 | enable_fast_install=needless |
| 18727 | fi |
| 18728 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18729 | |
| 18730 | # The else clause should only fire when bootstrapping the |
| 18731 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 18732 | # with your package, and you will get complaints that there are |
| 18733 | # no rules to generate ltmain.sh. |
| 18734 | if test -f "$ltmain"; then |
| 18735 | # See if we are running on zsh, and set the options which allow our commands through |
| 18736 | # without removal of \ escapes. |
| 18737 | if test -n "${ZSH_VERSION+set}" ; then |
| 18738 | setopt NO_GLOB_SUBST |
| 18739 | fi |
| 18740 | # Now quote all the things that may contain metacharacters while being |
| 18741 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 18742 | # variables and quote the copies for generation of the libtool script. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 18743 | 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] | 18744 | SED SHELL STRIP \ |
| 18745 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 18746 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 18747 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 18748 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 18749 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 18750 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 18751 | old_postinstall_cmds old_postuninstall_cmds \ |
| 18752 | compiler_GCJ \ |
| 18753 | CC_GCJ \ |
| 18754 | LD_GCJ \ |
| 18755 | lt_prog_compiler_wl_GCJ \ |
| 18756 | lt_prog_compiler_pic_GCJ \ |
| 18757 | lt_prog_compiler_static_GCJ \ |
| 18758 | lt_prog_compiler_no_builtin_flag_GCJ \ |
| 18759 | export_dynamic_flag_spec_GCJ \ |
| 18760 | thread_safe_flag_spec_GCJ \ |
| 18761 | whole_archive_flag_spec_GCJ \ |
| 18762 | enable_shared_with_static_runtimes_GCJ \ |
| 18763 | old_archive_cmds_GCJ \ |
| 18764 | old_archive_from_new_cmds_GCJ \ |
| 18765 | predep_objects_GCJ \ |
| 18766 | postdep_objects_GCJ \ |
| 18767 | predeps_GCJ \ |
| 18768 | postdeps_GCJ \ |
| 18769 | compiler_lib_search_path_GCJ \ |
| 18770 | archive_cmds_GCJ \ |
| 18771 | archive_expsym_cmds_GCJ \ |
| 18772 | postinstall_cmds_GCJ \ |
| 18773 | postuninstall_cmds_GCJ \ |
| 18774 | old_archive_from_expsyms_cmds_GCJ \ |
| 18775 | allow_undefined_flag_GCJ \ |
| 18776 | no_undefined_flag_GCJ \ |
| 18777 | export_symbols_cmds_GCJ \ |
| 18778 | hardcode_libdir_flag_spec_GCJ \ |
| 18779 | hardcode_libdir_flag_spec_ld_GCJ \ |
| 18780 | hardcode_libdir_separator_GCJ \ |
| 18781 | hardcode_automatic_GCJ \ |
| 18782 | module_cmds_GCJ \ |
| 18783 | module_expsym_cmds_GCJ \ |
| 18784 | lt_cv_prog_compiler_c_o_GCJ \ |
| 18785 | exclude_expsyms_GCJ \ |
| 18786 | include_expsyms_GCJ; do |
| 18787 | |
| 18788 | case $var in |
| 18789 | old_archive_cmds_GCJ | \ |
| 18790 | old_archive_from_new_cmds_GCJ | \ |
| 18791 | archive_cmds_GCJ | \ |
| 18792 | archive_expsym_cmds_GCJ | \ |
| 18793 | module_cmds_GCJ | \ |
| 18794 | module_expsym_cmds_GCJ | \ |
| 18795 | old_archive_from_expsyms_cmds_GCJ | \ |
| 18796 | export_symbols_cmds_GCJ | \ |
| 18797 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 18798 | postinstall_cmds | postuninstall_cmds | \ |
| 18799 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 18800 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 18801 | # Double-quote double-evaled strings. |
| 18802 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 18803 | ;; |
| 18804 | *) |
| 18805 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 18806 | ;; |
| 18807 | esac |
| 18808 | done |
| 18809 | |
| 18810 | case $lt_echo in |
| 18811 | *'\$0 --fallback-echo"') |
| 18812 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 18813 | ;; |
| 18814 | esac |
| 18815 | |
| 18816 | cfgfile="$ofile" |
| 18817 | |
| 18818 | cat <<__EOF__ >> "$cfgfile" |
| 18819 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 18820 | |
| 18821 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 18822 | |
| 18823 | # Shell to use when invoking shell scripts. |
| 18824 | SHELL=$lt_SHELL |
| 18825 | |
| 18826 | # Whether or not to build shared libraries. |
| 18827 | build_libtool_libs=$enable_shared |
| 18828 | |
| 18829 | # Whether or not to build static libraries. |
| 18830 | build_old_libs=$enable_static |
| 18831 | |
| 18832 | # Whether or not to add -lc for building shared libraries. |
| 18833 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
| 18834 | |
| 18835 | # Whether or not to disallow shared libs when runtime libs are static |
| 18836 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
| 18837 | |
| 18838 | # Whether or not to optimize for fast installation. |
| 18839 | fast_install=$enable_fast_install |
| 18840 | |
| 18841 | # The host system. |
| 18842 | host_alias=$host_alias |
| 18843 | host=$host |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 18844 | host_os=$host_os |
| 18845 | |
| 18846 | # The build system. |
| 18847 | build_alias=$build_alias |
| 18848 | build=$build |
| 18849 | build_os=$build_os |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18850 | |
| 18851 | # An echo program that does not interpret backslashes. |
| 18852 | echo=$lt_echo |
| 18853 | |
| 18854 | # The archiver. |
| 18855 | AR=$lt_AR |
| 18856 | AR_FLAGS=$lt_AR_FLAGS |
| 18857 | |
| 18858 | # A C compiler. |
| 18859 | LTCC=$lt_LTCC |
| 18860 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 18861 | # LTCC compiler flags. |
| 18862 | LTCFLAGS=$lt_LTCFLAGS |
| 18863 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18864 | # A language-specific compiler. |
| 18865 | CC=$lt_compiler_GCJ |
| 18866 | |
| 18867 | # Is the compiler the GNU C compiler? |
| 18868 | with_gcc=$GCC_GCJ |
| 18869 | |
| 18870 | # An ERE matcher. |
| 18871 | EGREP=$lt_EGREP |
| 18872 | |
| 18873 | # The linker used to build libraries. |
| 18874 | LD=$lt_LD_GCJ |
| 18875 | |
| 18876 | # Whether we need hard or soft links. |
| 18877 | LN_S=$lt_LN_S |
| 18878 | |
| 18879 | # A BSD-compatible nm program. |
| 18880 | NM=$lt_NM |
| 18881 | |
| 18882 | # A symbol stripping program |
| 18883 | STRIP=$lt_STRIP |
| 18884 | |
| 18885 | # Used to examine libraries when file_magic_cmd begins "file" |
| 18886 | MAGIC_CMD=$MAGIC_CMD |
| 18887 | |
| 18888 | # Used on cygwin: DLL creation program. |
| 18889 | DLLTOOL="$DLLTOOL" |
| 18890 | |
| 18891 | # Used on cygwin: object dumper. |
| 18892 | OBJDUMP="$OBJDUMP" |
| 18893 | |
| 18894 | # Used on cygwin: assembler. |
| 18895 | AS="$AS" |
| 18896 | |
| 18897 | # The name of the directory that contains temporary libtool files. |
| 18898 | objdir=$objdir |
| 18899 | |
| 18900 | # How to create reloadable object files. |
| 18901 | reload_flag=$lt_reload_flag |
| 18902 | reload_cmds=$lt_reload_cmds |
| 18903 | |
| 18904 | # How to pass a linker flag through the compiler. |
| 18905 | wl=$lt_lt_prog_compiler_wl_GCJ |
| 18906 | |
| 18907 | # Object file suffix (normally "o"). |
| 18908 | objext="$ac_objext" |
| 18909 | |
| 18910 | # Old archive suffix (normally "a"). |
| 18911 | libext="$libext" |
| 18912 | |
| 18913 | # Shared library suffix (normally ".so"). |
| 18914 | shrext_cmds='$shrext_cmds' |
| 18915 | |
| 18916 | # Executable file suffix (normally ""). |
| 18917 | exeext="$exeext" |
| 18918 | |
| 18919 | # Additional compiler flags for building library objects. |
| 18920 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
| 18921 | pic_mode=$pic_mode |
| 18922 | |
| 18923 | # What is the maximum length of a command? |
| 18924 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 18925 | |
| 18926 | # Does compiler simultaneously support -c and -o options? |
| 18927 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
| 18928 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 18929 | # Must we lock files when doing compilation? |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18930 | need_locks=$lt_need_locks |
| 18931 | |
| 18932 | # Do we need the lib prefix for modules? |
| 18933 | need_lib_prefix=$need_lib_prefix |
| 18934 | |
| 18935 | # Do we need a version for libraries? |
| 18936 | need_version=$need_version |
| 18937 | |
| 18938 | # Whether dlopen is supported. |
| 18939 | dlopen_support=$enable_dlopen |
| 18940 | |
| 18941 | # Whether dlopen of programs is supported. |
| 18942 | dlopen_self=$enable_dlopen_self |
| 18943 | |
| 18944 | # Whether dlopen of statically linked programs is supported. |
| 18945 | dlopen_self_static=$enable_dlopen_self_static |
| 18946 | |
| 18947 | # Compiler flag to prevent dynamic linking. |
| 18948 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
| 18949 | |
| 18950 | # Compiler flag to turn off builtin functions. |
| 18951 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
| 18952 | |
| 18953 | # Compiler flag to allow reflexive dlopens. |
| 18954 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
| 18955 | |
| 18956 | # Compiler flag to generate shared objects directly from archives. |
| 18957 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
| 18958 | |
| 18959 | # Compiler flag to generate thread-safe objects. |
| 18960 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
| 18961 | |
| 18962 | # Library versioning type. |
| 18963 | version_type=$version_type |
| 18964 | |
| 18965 | # Format of library name prefix. |
| 18966 | libname_spec=$lt_libname_spec |
| 18967 | |
| 18968 | # List of archive names. First name is the real one, the rest are links. |
| 18969 | # The last name is the one that the linker finds with -lNAME. |
| 18970 | library_names_spec=$lt_library_names_spec |
| 18971 | |
| 18972 | # The coded name of the library, if different from the real name. |
| 18973 | soname_spec=$lt_soname_spec |
| 18974 | |
| 18975 | # Commands used to build and install an old-style archive. |
| 18976 | RANLIB=$lt_RANLIB |
| 18977 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
| 18978 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 18979 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 18980 | |
| 18981 | # Create an old-style archive from a shared archive. |
| 18982 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
| 18983 | |
| 18984 | # Create a temporary old-style archive to link instead of a shared archive. |
| 18985 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
| 18986 | |
| 18987 | # Commands used to build and install a shared archive. |
| 18988 | archive_cmds=$lt_archive_cmds_GCJ |
| 18989 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
| 18990 | postinstall_cmds=$lt_postinstall_cmds |
| 18991 | postuninstall_cmds=$lt_postuninstall_cmds |
| 18992 | |
| 18993 | # Commands used to build a loadable module (assumed same as above if empty) |
| 18994 | module_cmds=$lt_module_cmds_GCJ |
| 18995 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
| 18996 | |
| 18997 | # Commands to strip libraries. |
| 18998 | old_striplib=$lt_old_striplib |
| 18999 | striplib=$lt_striplib |
| 19000 | |
| 19001 | # Dependencies to place before the objects being linked to create a |
| 19002 | # shared library. |
| 19003 | predep_objects=$lt_predep_objects_GCJ |
| 19004 | |
| 19005 | # Dependencies to place after the objects being linked to create a |
| 19006 | # shared library. |
| 19007 | postdep_objects=$lt_postdep_objects_GCJ |
| 19008 | |
| 19009 | # Dependencies to place before the objects being linked to create a |
| 19010 | # shared library. |
| 19011 | predeps=$lt_predeps_GCJ |
| 19012 | |
| 19013 | # Dependencies to place after the objects being linked to create a |
| 19014 | # shared library. |
| 19015 | postdeps=$lt_postdeps_GCJ |
| 19016 | |
| 19017 | # The library search path used internally by the compiler when linking |
| 19018 | # a shared library. |
| 19019 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
| 19020 | |
| 19021 | # Method to check whether dependent libraries are shared objects. |
| 19022 | deplibs_check_method=$lt_deplibs_check_method |
| 19023 | |
| 19024 | # Command to use when deplibs_check_method == file_magic. |
| 19025 | file_magic_cmd=$lt_file_magic_cmd |
| 19026 | |
| 19027 | # Flag that allows shared libraries with undefined symbols to be built. |
| 19028 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
| 19029 | |
| 19030 | # Flag that forces no undefined symbols. |
| 19031 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
| 19032 | |
| 19033 | # Commands used to finish a libtool library installation in a directory. |
| 19034 | finish_cmds=$lt_finish_cmds |
| 19035 | |
| 19036 | # Same as above, but a single script fragment to be evaled but not shown. |
| 19037 | finish_eval=$lt_finish_eval |
| 19038 | |
| 19039 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 19040 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 19041 | |
| 19042 | # Transform the output of nm in a proper C declaration |
| 19043 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 19044 | |
| 19045 | # Transform the output of nm in a C name address pair |
| 19046 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 19047 | |
| 19048 | # This is the shared library runtime path variable. |
| 19049 | runpath_var=$runpath_var |
| 19050 | |
| 19051 | # This is the shared library path variable. |
| 19052 | shlibpath_var=$shlibpath_var |
| 19053 | |
| 19054 | # Is shlibpath searched before the hard-coded library search path? |
| 19055 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 19056 | |
| 19057 | # How to hardcode a shared library path into an executable. |
| 19058 | hardcode_action=$hardcode_action_GCJ |
| 19059 | |
| 19060 | # Whether we should hardcode library paths into libraries. |
| 19061 | hardcode_into_libs=$hardcode_into_libs |
| 19062 | |
| 19063 | # Flag to hardcode \$libdir into a binary during linking. |
| 19064 | # This must work even if \$libdir does not exist. |
| 19065 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
| 19066 | |
| 19067 | # If ld is used when linking, flag to hardcode \$libdir into |
| 19068 | # a binary during linking. This must work even if \$libdir does |
| 19069 | # not exist. |
| 19070 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
| 19071 | |
| 19072 | # Whether we need a single -rpath flag with a separated argument. |
| 19073 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
| 19074 | |
| 19075 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 19076 | # resulting binary. |
| 19077 | hardcode_direct=$hardcode_direct_GCJ |
| 19078 | |
| 19079 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 19080 | # resulting binary. |
| 19081 | hardcode_minus_L=$hardcode_minus_L_GCJ |
| 19082 | |
| 19083 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 19084 | # the resulting binary. |
| 19085 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
| 19086 | |
| 19087 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 19088 | # and all subsequent libraries and executables linked against it. |
| 19089 | hardcode_automatic=$hardcode_automatic_GCJ |
| 19090 | |
| 19091 | # Variables whose values should be saved in libtool wrapper scripts and |
| 19092 | # restored at relink time. |
| 19093 | variables_saved_for_relink="$variables_saved_for_relink" |
| 19094 | |
| 19095 | # Whether libtool must link a program against all its dependency libraries. |
| 19096 | link_all_deplibs=$link_all_deplibs_GCJ |
| 19097 | |
| 19098 | # Compile-time system search path for libraries |
| 19099 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 19100 | |
| 19101 | # Run-time system search path for libraries |
| 19102 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 19103 | |
| 19104 | # Fix the shell variable \$srcfile for the compiler. |
| 19105 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
| 19106 | |
| 19107 | # Set to yes if exported symbols are required. |
| 19108 | always_export_symbols=$always_export_symbols_GCJ |
| 19109 | |
| 19110 | # The commands to list exported symbols. |
| 19111 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
| 19112 | |
| 19113 | # The commands to extract the exported symbol list from a shared archive. |
| 19114 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 19115 | |
| 19116 | # Symbols that should not be listed in the preloaded symbols. |
| 19117 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
| 19118 | |
| 19119 | # Symbols that must always be exported. |
| 19120 | include_expsyms=$lt_include_expsyms_GCJ |
| 19121 | |
| 19122 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 19123 | |
| 19124 | __EOF__ |
| 19125 | |
| 19126 | |
| 19127 | else |
| 19128 | # If there is no Makefile yet, we rely on a make rule to execute |
| 19129 | # `config.status --recheck' to rerun these tests and create the |
| 19130 | # libtool script then. |
| 19131 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 19132 | if test -f "$ltmain_in"; then |
| 19133 | test -f Makefile && make "$ltmain" |
| 19134 | fi |
| 19135 | fi |
| 19136 | |
| 19137 | |
| 19138 | ac_ext=c |
| 19139 | ac_cpp='$CPP $CPPFLAGS' |
| 19140 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19141 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19142 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19143 | |
| 19144 | CC="$lt_save_CC" |
| 19145 | |
| 19146 | else |
| 19147 | tagname="" |
| 19148 | fi |
| 19149 | ;; |
| 19150 | |
| 19151 | RC) |
| 19152 | |
| 19153 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19154 | # Source file extension for RC test sources. |
| 19155 | ac_ext=rc |
| 19156 | |
| 19157 | # Object file extension for compiled RC test sources. |
| 19158 | objext=o |
| 19159 | objext_RC=$objext |
| 19160 | |
| 19161 | # Code to be used in simple compile tests |
| 19162 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
| 19163 | |
| 19164 | # Code to be used in simple link tests |
| 19165 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
| 19166 | |
| 19167 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 19168 | |
| 19169 | # If no C compiler was specified, use CC. |
| 19170 | LTCC=${LTCC-"$CC"} |
| 19171 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 19172 | # If no C compiler flags were specified, use CFLAGS. |
| 19173 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 19174 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19175 | # Allow CC to be a program name with arguments. |
| 19176 | compiler=$CC |
| 19177 | |
| 19178 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 19179 | # save warnings/boilerplate of simple test code |
| 19180 | ac_outfile=conftest.$ac_objext |
| 19181 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 19182 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 19183 | _lt_compiler_boilerplate=`cat conftest.err` |
| 19184 | $rm conftest* |
| 19185 | |
| 19186 | ac_outfile=conftest.$ac_objext |
| 19187 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 19188 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 19189 | _lt_linker_boilerplate=`cat conftest.err` |
| 19190 | $rm conftest* |
| 19191 | |
| 19192 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19193 | # Allow CC to be a program name with arguments. |
| 19194 | lt_save_CC="$CC" |
| 19195 | CC=${RC-"windres"} |
| 19196 | compiler=$CC |
| 19197 | compiler_RC=$CC |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 19198 | for cc_temp in $compiler""; do |
| 19199 | case $cc_temp in |
| 19200 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 19201 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 19202 | \-*) ;; |
| 19203 | *) break;; |
| 19204 | esac |
| 19205 | done |
| 19206 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 19207 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19208 | lt_cv_prog_compiler_c_o_RC=yes |
| 19209 | |
| 19210 | # The else clause should only fire when bootstrapping the |
| 19211 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 19212 | # with your package, and you will get complaints that there are |
| 19213 | # no rules to generate ltmain.sh. |
| 19214 | if test -f "$ltmain"; then |
| 19215 | # See if we are running on zsh, and set the options which allow our commands through |
| 19216 | # without removal of \ escapes. |
| 19217 | if test -n "${ZSH_VERSION+set}" ; then |
| 19218 | setopt NO_GLOB_SUBST |
| 19219 | fi |
| 19220 | # Now quote all the things that may contain metacharacters while being |
| 19221 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 19222 | # variables and quote the copies for generation of the libtool script. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 19223 | 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] | 19224 | SED SHELL STRIP \ |
| 19225 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 19226 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 19227 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 19228 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 19229 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 19230 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 19231 | old_postinstall_cmds old_postuninstall_cmds \ |
| 19232 | compiler_RC \ |
| 19233 | CC_RC \ |
| 19234 | LD_RC \ |
| 19235 | lt_prog_compiler_wl_RC \ |
| 19236 | lt_prog_compiler_pic_RC \ |
| 19237 | lt_prog_compiler_static_RC \ |
| 19238 | lt_prog_compiler_no_builtin_flag_RC \ |
| 19239 | export_dynamic_flag_spec_RC \ |
| 19240 | thread_safe_flag_spec_RC \ |
| 19241 | whole_archive_flag_spec_RC \ |
| 19242 | enable_shared_with_static_runtimes_RC \ |
| 19243 | old_archive_cmds_RC \ |
| 19244 | old_archive_from_new_cmds_RC \ |
| 19245 | predep_objects_RC \ |
| 19246 | postdep_objects_RC \ |
| 19247 | predeps_RC \ |
| 19248 | postdeps_RC \ |
| 19249 | compiler_lib_search_path_RC \ |
| 19250 | archive_cmds_RC \ |
| 19251 | archive_expsym_cmds_RC \ |
| 19252 | postinstall_cmds_RC \ |
| 19253 | postuninstall_cmds_RC \ |
| 19254 | old_archive_from_expsyms_cmds_RC \ |
| 19255 | allow_undefined_flag_RC \ |
| 19256 | no_undefined_flag_RC \ |
| 19257 | export_symbols_cmds_RC \ |
| 19258 | hardcode_libdir_flag_spec_RC \ |
| 19259 | hardcode_libdir_flag_spec_ld_RC \ |
| 19260 | hardcode_libdir_separator_RC \ |
| 19261 | hardcode_automatic_RC \ |
| 19262 | module_cmds_RC \ |
| 19263 | module_expsym_cmds_RC \ |
| 19264 | lt_cv_prog_compiler_c_o_RC \ |
| 19265 | exclude_expsyms_RC \ |
| 19266 | include_expsyms_RC; do |
| 19267 | |
| 19268 | case $var in |
| 19269 | old_archive_cmds_RC | \ |
| 19270 | old_archive_from_new_cmds_RC | \ |
| 19271 | archive_cmds_RC | \ |
| 19272 | archive_expsym_cmds_RC | \ |
| 19273 | module_cmds_RC | \ |
| 19274 | module_expsym_cmds_RC | \ |
| 19275 | old_archive_from_expsyms_cmds_RC | \ |
| 19276 | export_symbols_cmds_RC | \ |
| 19277 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 19278 | postinstall_cmds | postuninstall_cmds | \ |
| 19279 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 19280 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 19281 | # Double-quote double-evaled strings. |
| 19282 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 19283 | ;; |
| 19284 | *) |
| 19285 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 19286 | ;; |
| 19287 | esac |
| 19288 | done |
| 19289 | |
| 19290 | case $lt_echo in |
| 19291 | *'\$0 --fallback-echo"') |
| 19292 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 19293 | ;; |
| 19294 | esac |
| 19295 | |
| 19296 | cfgfile="$ofile" |
| 19297 | |
| 19298 | cat <<__EOF__ >> "$cfgfile" |
| 19299 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 19300 | |
| 19301 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 19302 | |
| 19303 | # Shell to use when invoking shell scripts. |
| 19304 | SHELL=$lt_SHELL |
| 19305 | |
| 19306 | # Whether or not to build shared libraries. |
| 19307 | build_libtool_libs=$enable_shared |
| 19308 | |
| 19309 | # Whether or not to build static libraries. |
| 19310 | build_old_libs=$enable_static |
| 19311 | |
| 19312 | # Whether or not to add -lc for building shared libraries. |
| 19313 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
| 19314 | |
| 19315 | # Whether or not to disallow shared libs when runtime libs are static |
| 19316 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
| 19317 | |
| 19318 | # Whether or not to optimize for fast installation. |
| 19319 | fast_install=$enable_fast_install |
| 19320 | |
| 19321 | # The host system. |
| 19322 | host_alias=$host_alias |
| 19323 | host=$host |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 19324 | host_os=$host_os |
| 19325 | |
| 19326 | # The build system. |
| 19327 | build_alias=$build_alias |
| 19328 | build=$build |
| 19329 | build_os=$build_os |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19330 | |
| 19331 | # An echo program that does not interpret backslashes. |
| 19332 | echo=$lt_echo |
| 19333 | |
| 19334 | # The archiver. |
| 19335 | AR=$lt_AR |
| 19336 | AR_FLAGS=$lt_AR_FLAGS |
| 19337 | |
| 19338 | # A C compiler. |
| 19339 | LTCC=$lt_LTCC |
| 19340 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 19341 | # LTCC compiler flags. |
| 19342 | LTCFLAGS=$lt_LTCFLAGS |
| 19343 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19344 | # A language-specific compiler. |
| 19345 | CC=$lt_compiler_RC |
| 19346 | |
| 19347 | # Is the compiler the GNU C compiler? |
| 19348 | with_gcc=$GCC_RC |
| 19349 | |
| 19350 | # An ERE matcher. |
| 19351 | EGREP=$lt_EGREP |
| 19352 | |
| 19353 | # The linker used to build libraries. |
| 19354 | LD=$lt_LD_RC |
| 19355 | |
| 19356 | # Whether we need hard or soft links. |
| 19357 | LN_S=$lt_LN_S |
| 19358 | |
| 19359 | # A BSD-compatible nm program. |
| 19360 | NM=$lt_NM |
| 19361 | |
| 19362 | # A symbol stripping program |
| 19363 | STRIP=$lt_STRIP |
| 19364 | |
| 19365 | # Used to examine libraries when file_magic_cmd begins "file" |
| 19366 | MAGIC_CMD=$MAGIC_CMD |
| 19367 | |
| 19368 | # Used on cygwin: DLL creation program. |
| 19369 | DLLTOOL="$DLLTOOL" |
| 19370 | |
| 19371 | # Used on cygwin: object dumper. |
| 19372 | OBJDUMP="$OBJDUMP" |
| 19373 | |
| 19374 | # Used on cygwin: assembler. |
| 19375 | AS="$AS" |
| 19376 | |
| 19377 | # The name of the directory that contains temporary libtool files. |
| 19378 | objdir=$objdir |
| 19379 | |
| 19380 | # How to create reloadable object files. |
| 19381 | reload_flag=$lt_reload_flag |
| 19382 | reload_cmds=$lt_reload_cmds |
| 19383 | |
| 19384 | # How to pass a linker flag through the compiler. |
| 19385 | wl=$lt_lt_prog_compiler_wl_RC |
| 19386 | |
| 19387 | # Object file suffix (normally "o"). |
| 19388 | objext="$ac_objext" |
| 19389 | |
| 19390 | # Old archive suffix (normally "a"). |
| 19391 | libext="$libext" |
| 19392 | |
| 19393 | # Shared library suffix (normally ".so"). |
| 19394 | shrext_cmds='$shrext_cmds' |
| 19395 | |
| 19396 | # Executable file suffix (normally ""). |
| 19397 | exeext="$exeext" |
| 19398 | |
| 19399 | # Additional compiler flags for building library objects. |
| 19400 | pic_flag=$lt_lt_prog_compiler_pic_RC |
| 19401 | pic_mode=$pic_mode |
| 19402 | |
| 19403 | # What is the maximum length of a command? |
| 19404 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 19405 | |
| 19406 | # Does compiler simultaneously support -c and -o options? |
| 19407 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
| 19408 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 19409 | # Must we lock files when doing compilation? |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19410 | need_locks=$lt_need_locks |
| 19411 | |
| 19412 | # Do we need the lib prefix for modules? |
| 19413 | need_lib_prefix=$need_lib_prefix |
| 19414 | |
| 19415 | # Do we need a version for libraries? |
| 19416 | need_version=$need_version |
| 19417 | |
| 19418 | # Whether dlopen is supported. |
| 19419 | dlopen_support=$enable_dlopen |
| 19420 | |
| 19421 | # Whether dlopen of programs is supported. |
| 19422 | dlopen_self=$enable_dlopen_self |
| 19423 | |
| 19424 | # Whether dlopen of statically linked programs is supported. |
| 19425 | dlopen_self_static=$enable_dlopen_self_static |
| 19426 | |
| 19427 | # Compiler flag to prevent dynamic linking. |
| 19428 | link_static_flag=$lt_lt_prog_compiler_static_RC |
| 19429 | |
| 19430 | # Compiler flag to turn off builtin functions. |
| 19431 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
| 19432 | |
| 19433 | # Compiler flag to allow reflexive dlopens. |
| 19434 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
| 19435 | |
| 19436 | # Compiler flag to generate shared objects directly from archives. |
| 19437 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
| 19438 | |
| 19439 | # Compiler flag to generate thread-safe objects. |
| 19440 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
| 19441 | |
| 19442 | # Library versioning type. |
| 19443 | version_type=$version_type |
| 19444 | |
| 19445 | # Format of library name prefix. |
| 19446 | libname_spec=$lt_libname_spec |
| 19447 | |
| 19448 | # List of archive names. First name is the real one, the rest are links. |
| 19449 | # The last name is the one that the linker finds with -lNAME. |
| 19450 | library_names_spec=$lt_library_names_spec |
| 19451 | |
| 19452 | # The coded name of the library, if different from the real name. |
| 19453 | soname_spec=$lt_soname_spec |
| 19454 | |
| 19455 | # Commands used to build and install an old-style archive. |
| 19456 | RANLIB=$lt_RANLIB |
| 19457 | old_archive_cmds=$lt_old_archive_cmds_RC |
| 19458 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 19459 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 19460 | |
| 19461 | # Create an old-style archive from a shared archive. |
| 19462 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
| 19463 | |
| 19464 | # Create a temporary old-style archive to link instead of a shared archive. |
| 19465 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
| 19466 | |
| 19467 | # Commands used to build and install a shared archive. |
| 19468 | archive_cmds=$lt_archive_cmds_RC |
| 19469 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
| 19470 | postinstall_cmds=$lt_postinstall_cmds |
| 19471 | postuninstall_cmds=$lt_postuninstall_cmds |
| 19472 | |
| 19473 | # Commands used to build a loadable module (assumed same as above if empty) |
| 19474 | module_cmds=$lt_module_cmds_RC |
| 19475 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
| 19476 | |
| 19477 | # Commands to strip libraries. |
| 19478 | old_striplib=$lt_old_striplib |
| 19479 | striplib=$lt_striplib |
| 19480 | |
| 19481 | # Dependencies to place before the objects being linked to create a |
| 19482 | # shared library. |
| 19483 | predep_objects=$lt_predep_objects_RC |
| 19484 | |
| 19485 | # Dependencies to place after the objects being linked to create a |
| 19486 | # shared library. |
| 19487 | postdep_objects=$lt_postdep_objects_RC |
| 19488 | |
| 19489 | # Dependencies to place before the objects being linked to create a |
| 19490 | # shared library. |
| 19491 | predeps=$lt_predeps_RC |
| 19492 | |
| 19493 | # Dependencies to place after the objects being linked to create a |
| 19494 | # shared library. |
| 19495 | postdeps=$lt_postdeps_RC |
| 19496 | |
| 19497 | # The library search path used internally by the compiler when linking |
| 19498 | # a shared library. |
| 19499 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
| 19500 | |
| 19501 | # Method to check whether dependent libraries are shared objects. |
| 19502 | deplibs_check_method=$lt_deplibs_check_method |
| 19503 | |
| 19504 | # Command to use when deplibs_check_method == file_magic. |
| 19505 | file_magic_cmd=$lt_file_magic_cmd |
| 19506 | |
| 19507 | # Flag that allows shared libraries with undefined symbols to be built. |
| 19508 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
| 19509 | |
| 19510 | # Flag that forces no undefined symbols. |
| 19511 | no_undefined_flag=$lt_no_undefined_flag_RC |
| 19512 | |
| 19513 | # Commands used to finish a libtool library installation in a directory. |
| 19514 | finish_cmds=$lt_finish_cmds |
| 19515 | |
| 19516 | # Same as above, but a single script fragment to be evaled but not shown. |
| 19517 | finish_eval=$lt_finish_eval |
| 19518 | |
| 19519 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 19520 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 19521 | |
| 19522 | # Transform the output of nm in a proper C declaration |
| 19523 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 19524 | |
| 19525 | # Transform the output of nm in a C name address pair |
| 19526 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 19527 | |
| 19528 | # This is the shared library runtime path variable. |
| 19529 | runpath_var=$runpath_var |
| 19530 | |
| 19531 | # This is the shared library path variable. |
| 19532 | shlibpath_var=$shlibpath_var |
| 19533 | |
| 19534 | # Is shlibpath searched before the hard-coded library search path? |
| 19535 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 19536 | |
| 19537 | # How to hardcode a shared library path into an executable. |
| 19538 | hardcode_action=$hardcode_action_RC |
| 19539 | |
| 19540 | # Whether we should hardcode library paths into libraries. |
| 19541 | hardcode_into_libs=$hardcode_into_libs |
| 19542 | |
| 19543 | # Flag to hardcode \$libdir into a binary during linking. |
| 19544 | # This must work even if \$libdir does not exist. |
| 19545 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
| 19546 | |
| 19547 | # If ld is used when linking, flag to hardcode \$libdir into |
| 19548 | # a binary during linking. This must work even if \$libdir does |
| 19549 | # not exist. |
| 19550 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
| 19551 | |
| 19552 | # Whether we need a single -rpath flag with a separated argument. |
| 19553 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
| 19554 | |
| 19555 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 19556 | # resulting binary. |
| 19557 | hardcode_direct=$hardcode_direct_RC |
| 19558 | |
| 19559 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 19560 | # resulting binary. |
| 19561 | hardcode_minus_L=$hardcode_minus_L_RC |
| 19562 | |
| 19563 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 19564 | # the resulting binary. |
| 19565 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
| 19566 | |
| 19567 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 19568 | # and all subsequent libraries and executables linked against it. |
| 19569 | hardcode_automatic=$hardcode_automatic_RC |
| 19570 | |
| 19571 | # Variables whose values should be saved in libtool wrapper scripts and |
| 19572 | # restored at relink time. |
| 19573 | variables_saved_for_relink="$variables_saved_for_relink" |
| 19574 | |
| 19575 | # Whether libtool must link a program against all its dependency libraries. |
| 19576 | link_all_deplibs=$link_all_deplibs_RC |
| 19577 | |
| 19578 | # Compile-time system search path for libraries |
| 19579 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 19580 | |
| 19581 | # Run-time system search path for libraries |
| 19582 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 19583 | |
| 19584 | # Fix the shell variable \$srcfile for the compiler. |
| 19585 | fix_srcfile_path="$fix_srcfile_path_RC" |
| 19586 | |
| 19587 | # Set to yes if exported symbols are required. |
| 19588 | always_export_symbols=$always_export_symbols_RC |
| 19589 | |
| 19590 | # The commands to list exported symbols. |
| 19591 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
| 19592 | |
| 19593 | # The commands to extract the exported symbol list from a shared archive. |
| 19594 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 19595 | |
| 19596 | # Symbols that should not be listed in the preloaded symbols. |
| 19597 | exclude_expsyms=$lt_exclude_expsyms_RC |
| 19598 | |
| 19599 | # Symbols that must always be exported. |
| 19600 | include_expsyms=$lt_include_expsyms_RC |
| 19601 | |
| 19602 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 19603 | |
| 19604 | __EOF__ |
| 19605 | |
| 19606 | |
| 19607 | else |
| 19608 | # If there is no Makefile yet, we rely on a make rule to execute |
| 19609 | # `config.status --recheck' to rerun these tests and create the |
| 19610 | # libtool script then. |
| 19611 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 19612 | if test -f "$ltmain_in"; then |
| 19613 | test -f Makefile && make "$ltmain" |
| 19614 | fi |
| 19615 | fi |
| 19616 | |
| 19617 | |
| 19618 | ac_ext=c |
| 19619 | ac_cpp='$CPP $CPPFLAGS' |
| 19620 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19621 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19622 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19623 | |
| 19624 | CC="$lt_save_CC" |
| 19625 | |
| 19626 | ;; |
| 19627 | |
| 19628 | *) |
| 19629 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
| 19630 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
| 19631 | { (exit 1); exit 1; }; } |
| 19632 | ;; |
| 19633 | esac |
| 19634 | |
| 19635 | # Append the new tag name to the list of available tags. |
| 19636 | if test -n "$tagname" ; then |
| 19637 | available_tags="$available_tags $tagname" |
| 19638 | fi |
| 19639 | fi |
| 19640 | done |
| 19641 | IFS="$lt_save_ifs" |
| 19642 | |
| 19643 | # Now substitute the updated list of available tags. |
| 19644 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
| 19645 | mv "${ofile}T" "$ofile" |
| 19646 | chmod +x "$ofile" |
| 19647 | else |
| 19648 | rm -f "${ofile}T" |
| 19649 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
| 19650 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
| 19651 | { (exit 1); exit 1; }; } |
| 19652 | fi |
| 19653 | fi |
| 19654 | |
| 19655 | |
| 19656 | |
| 19657 | # This can be used to rebuild libtool when needed |
| 19658 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 19659 | |
| 19660 | # Always use our own libtool. |
| 19661 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 19662 | |
| 19663 | # Prevent multiple expansion |
| 19664 | |
| 19665 | |
| 19666 | |
| 19667 | |
| 19668 | |
| 19669 | |
| 19670 | |
| 19671 | |
| 19672 | |
| 19673 | |
| 19674 | |
| 19675 | |
| 19676 | |
| 19677 | |
| 19678 | |
| 19679 | |
| 19680 | |
| 19681 | |
| 19682 | |
| 19683 | |
| 19684 | |
| 19685 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 19686 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 19687 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19688 | if test "${ac_cv_header_stdc+set}" = set; then |
| 19689 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19690 | else |
| 19691 | cat >conftest.$ac_ext <<_ACEOF |
| 19692 | /* confdefs.h. */ |
| 19693 | _ACEOF |
| 19694 | cat confdefs.h >>conftest.$ac_ext |
| 19695 | cat >>conftest.$ac_ext <<_ACEOF |
| 19696 | /* end confdefs.h. */ |
| 19697 | #include <stdlib.h> |
| 19698 | #include <stdarg.h> |
| 19699 | #include <string.h> |
| 19700 | #include <float.h> |
| 19701 | |
| 19702 | int |
| 19703 | main () |
| 19704 | { |
| 19705 | |
| 19706 | ; |
| 19707 | return 0; |
| 19708 | } |
| 19709 | _ACEOF |
| 19710 | rm -f conftest.$ac_objext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 19711 | if { (ac_try="$ac_compile" |
| 19712 | case "(($ac_try" in |
| 19713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19714 | *) ac_try_echo=$ac_try;; |
| 19715 | esac |
| 19716 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19717 | (eval "$ac_compile") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19718 | ac_status=$? |
| 19719 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19720 | rm -f conftest.er1 |
| 19721 | cat conftest.err >&5 |
| 19722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19723 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 19724 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19725 | { (case "(($ac_try" in |
| 19726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19727 | *) ac_try_echo=$ac_try;; |
| 19728 | esac |
| 19729 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19730 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19731 | ac_status=$? |
| 19732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19733 | (exit $ac_status); }; } && |
| 19734 | { ac_try='test -s conftest.$ac_objext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 19735 | { (case "(($ac_try" in |
| 19736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19737 | *) ac_try_echo=$ac_try;; |
| 19738 | esac |
| 19739 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19740 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19741 | ac_status=$? |
| 19742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19743 | (exit $ac_status); }; }; then |
| 19744 | ac_cv_header_stdc=yes |
| 19745 | else |
| 19746 | echo "$as_me: failed program was:" >&5 |
| 19747 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19748 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 19749 | ac_cv_header_stdc=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19750 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 19751 | |
| 19752 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19753 | |
| 19754 | if test $ac_cv_header_stdc = yes; then |
| 19755 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 19756 | cat >conftest.$ac_ext <<_ACEOF |
| 19757 | /* confdefs.h. */ |
| 19758 | _ACEOF |
| 19759 | cat confdefs.h >>conftest.$ac_ext |
| 19760 | cat >>conftest.$ac_ext <<_ACEOF |
| 19761 | /* end confdefs.h. */ |
| 19762 | #include <string.h> |
| 19763 | |
| 19764 | _ACEOF |
| 19765 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 19766 | $EGREP "memchr" >/dev/null 2>&1; then |
| 19767 | : |
| 19768 | else |
| 19769 | ac_cv_header_stdc=no |
| 19770 | fi |
| 19771 | rm -f conftest* |
| 19772 | |
| 19773 | fi |
| 19774 | |
| 19775 | if test $ac_cv_header_stdc = yes; then |
| 19776 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 19777 | cat >conftest.$ac_ext <<_ACEOF |
| 19778 | /* confdefs.h. */ |
| 19779 | _ACEOF |
| 19780 | cat confdefs.h >>conftest.$ac_ext |
| 19781 | cat >>conftest.$ac_ext <<_ACEOF |
| 19782 | /* end confdefs.h. */ |
| 19783 | #include <stdlib.h> |
| 19784 | |
| 19785 | _ACEOF |
| 19786 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 19787 | $EGREP "free" >/dev/null 2>&1; then |
| 19788 | : |
| 19789 | else |
| 19790 | ac_cv_header_stdc=no |
| 19791 | fi |
| 19792 | rm -f conftest* |
| 19793 | |
| 19794 | fi |
| 19795 | |
| 19796 | if test $ac_cv_header_stdc = yes; then |
| 19797 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 19798 | if test "$cross_compiling" = yes; then |
| 19799 | : |
| 19800 | else |
| 19801 | cat >conftest.$ac_ext <<_ACEOF |
| 19802 | /* confdefs.h. */ |
| 19803 | _ACEOF |
| 19804 | cat confdefs.h >>conftest.$ac_ext |
| 19805 | cat >>conftest.$ac_ext <<_ACEOF |
| 19806 | /* end confdefs.h. */ |
| 19807 | #include <ctype.h> |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 19808 | #include <stdlib.h> |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19809 | #if ((' ' & 0x0FF) == 0x020) |
| 19810 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 19811 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 19812 | #else |
| 19813 | # define ISLOWER(c) \ |
| 19814 | (('a' <= (c) && (c) <= 'i') \ |
| 19815 | || ('j' <= (c) && (c) <= 'r') \ |
| 19816 | || ('s' <= (c) && (c) <= 'z')) |
| 19817 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 19818 | #endif |
| 19819 | |
| 19820 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 19821 | int |
| 19822 | main () |
| 19823 | { |
| 19824 | int i; |
| 19825 | for (i = 0; i < 256; i++) |
| 19826 | if (XOR (islower (i), ISLOWER (i)) |
| 19827 | || toupper (i) != TOUPPER (i)) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 19828 | return 2; |
| 19829 | return 0; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19830 | } |
| 19831 | _ACEOF |
| 19832 | rm -f conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 19833 | if { (ac_try="$ac_link" |
| 19834 | case "(($ac_try" in |
| 19835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19836 | *) ac_try_echo=$ac_try;; |
| 19837 | esac |
| 19838 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19839 | (eval "$ac_link") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19840 | ac_status=$? |
| 19841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19842 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 19843 | { (case "(($ac_try" in |
| 19844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19845 | *) ac_try_echo=$ac_try;; |
| 19846 | esac |
| 19847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19848 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19849 | ac_status=$? |
| 19850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19851 | (exit $ac_status); }; }; then |
| 19852 | : |
| 19853 | else |
| 19854 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19855 | echo "$as_me: failed program was:" >&5 |
| 19856 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19857 | |
| 19858 | ( exit $ac_status ) |
| 19859 | ac_cv_header_stdc=no |
| 19860 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 19861 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 19862 | fi |
| 19863 | |
| 19864 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19865 | fi |
| 19866 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 19867 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 19868 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19869 | if test $ac_cv_header_stdc = yes; then |
| 19870 | |
| 19871 | cat >>confdefs.h <<\_ACEOF |
| 19872 | #define STDC_HEADERS 1 |
| 19873 | _ACEOF |
| 19874 | |
| 19875 | fi |
| 19876 | |
| 19877 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 19878 | ac_config_files="$ac_config_files Makefile" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19879 | |
| 19880 | cat >confcache <<\_ACEOF |
| 19881 | # This file is a shell script that caches the results of configure |
| 19882 | # tests run on this system so they can be shared between configure |
| 19883 | # scripts and configure runs, see configure's option --config-cache. |
| 19884 | # It is not useful on other systems. If it contains results you don't |
| 19885 | # want to keep, you may remove or edit it. |
| 19886 | # |
| 19887 | # config.status only pays attention to the cache file if you give it |
| 19888 | # the --recheck option to rerun configure. |
| 19889 | # |
| 19890 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 19891 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 19892 | # following values. |
| 19893 | |
| 19894 | _ACEOF |
| 19895 | |
| 19896 | # The following way of writing the cache mishandles newlines in values, |
| 19897 | # but we know of no workaround that is simple, portable, and efficient. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 19898 | # So, we kill variables containing newlines. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19899 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 19900 | # 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^] | 19901 | ( |
| 19902 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 19903 | eval ac_val=\$$ac_var |
| 19904 | case $ac_val in #( |
| 19905 | *${as_nl}*) |
| 19906 | case $ac_var in #( |
| 19907 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 19908 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 19909 | esac |
| 19910 | case $ac_var in #( |
| 19911 | _ | IFS | as_nl) ;; #( |
| 19912 | *) $as_unset $ac_var ;; |
| 19913 | esac ;; |
| 19914 | esac |
| 19915 | done |
| 19916 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19917 | (set) 2>&1 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 19918 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 19919 | *${as_nl}ac_space=\ *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19920 | # `set' does not quote correctly, so add quotes (double-quote |
| 19921 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 19922 | sed -n \ |
| 19923 | "s/'/'\\\\''/g; |
| 19924 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 19925 | ;; #( |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19926 | *) |
| 19927 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 19928 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19929 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 19930 | esac | |
| 19931 | sort |
| 19932 | ) | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19933 | sed ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 19934 | /^ac_cv_env_/b end |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19935 | t clear |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 19936 | :clear |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19937 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 19938 | t end |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 19939 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 19940 | :end' >>confcache |
| 19941 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 19942 | if test -w "$cache_file"; then |
| 19943 | test "x$cache_file" != "x/dev/null" && |
| 19944 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 19945 | echo "$as_me: updating cache $cache_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19946 | cat confcache >$cache_file |
| 19947 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 19948 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 19949 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19950 | fi |
| 19951 | fi |
| 19952 | rm -f confcache |
| 19953 | |
| 19954 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 19955 | # Let make expand exec_prefix. |
| 19956 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 19957 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19958 | DEFS=-DHAVE_CONFIG_H |
| 19959 | |
| 19960 | ac_libobjs= |
| 19961 | ac_ltlibobjs= |
| 19962 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 19963 | # 1. Remove the extension, and $U if already installed. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 19964 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 19965 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 19966 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 19967 | # will be set to the directory where LIBOBJS objects are built. |
| 19968 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 19969 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19970 | done |
| 19971 | LIBOBJS=$ac_libobjs |
| 19972 | |
| 19973 | LTLIBOBJS=$ac_ltlibobjs |
| 19974 | |
| 19975 | |
| 19976 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 19977 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
| 19978 | Usually this means the macro was only invoked conditionally." >&5 |
| 19979 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
| 19980 | Usually this means the macro was only invoked conditionally." >&2;} |
| 19981 | { (exit 1); exit 1; }; } |
| 19982 | fi |
| 19983 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 19984 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
| 19985 | Usually this means the macro was only invoked conditionally." >&5 |
| 19986 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
| 19987 | Usually this means the macro was only invoked conditionally." >&2;} |
| 19988 | { (exit 1); exit 1; }; } |
| 19989 | fi |
| 19990 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
| 19991 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
| 19992 | Usually this means the macro was only invoked conditionally." >&5 |
| 19993 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
| 19994 | Usually this means the macro was only invoked conditionally." >&2;} |
| 19995 | { (exit 1); exit 1; }; } |
| 19996 | fi |
| 19997 | |
| 19998 | : ${CONFIG_STATUS=./config.status} |
| 19999 | ac_clean_files_save=$ac_clean_files |
| 20000 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 20001 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 20002 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 20003 | cat >$CONFIG_STATUS <<_ACEOF |
| 20004 | #! $SHELL |
| 20005 | # Generated by $as_me. |
| 20006 | # Run this file to recreate the current configuration. |
| 20007 | # Compiler output produced by configure, useful for debugging |
| 20008 | # configure, is in config.log if it exists. |
| 20009 | |
| 20010 | debug=false |
| 20011 | ac_cs_recheck=false |
| 20012 | ac_cs_silent=false |
| 20013 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 20014 | _ACEOF |
| 20015 | |
| 20016 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20017 | ## --------------------- ## |
| 20018 | ## M4sh Initialization. ## |
| 20019 | ## --------------------- ## |
| 20020 | |
| 20021 | # Be Bourne compatible |
| 20022 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 20023 | emulate sh |
| 20024 | NULLCMD=: |
| 20025 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 20026 | # is contrary to our usage. Disable this feature. |
| 20027 | alias -g '${1+"$@"}'='"$@"' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20028 | setopt NO_GLOB_SUBST |
| 20029 | else |
| 20030 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20031 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20032 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20033 | DUALCASE=1; export DUALCASE # for MKS sh |
| 20034 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20035 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20036 | # PATH needs CR |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20037 | # Avoid depending upon Character Ranges. |
| 20038 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 20039 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 20040 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 20041 | as_cr_digits='0123456789' |
| 20042 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 20043 | |
| 20044 | # The user is always right. |
| 20045 | if test "${PATH_SEPARATOR+set}" != set; then |
| 20046 | echo "#! /bin/sh" >conf$$.sh |
| 20047 | echo "exit 0" >>conf$$.sh |
| 20048 | chmod +x conf$$.sh |
| 20049 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 20050 | PATH_SEPARATOR=';' |
| 20051 | else |
| 20052 | PATH_SEPARATOR=: |
| 20053 | fi |
| 20054 | rm -f conf$$.sh |
| 20055 | fi |
| 20056 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20057 | # Support unset when possible. |
| 20058 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 20059 | as_unset=unset |
| 20060 | else |
| 20061 | as_unset=false |
| 20062 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20063 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20064 | |
| 20065 | # IFS |
| 20066 | # We need space, tab and new line, in precisely that order. Quoting is |
| 20067 | # there to prevent editors from complaining about space-tab. |
| 20068 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 20069 | # splitting by setting IFS to empty value.) |
| 20070 | as_nl=' |
| 20071 | ' |
| 20072 | IFS=" "" $as_nl" |
| 20073 | |
| 20074 | # Find who we are. Look in the path if we contain no directory separator. |
| 20075 | case $0 in |
| 20076 | *[\\/]* ) as_myself=$0 ;; |
| 20077 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20078 | for as_dir in $PATH |
| 20079 | do |
| 20080 | IFS=$as_save_IFS |
| 20081 | test -z "$as_dir" && as_dir=. |
| 20082 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 20083 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20084 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20085 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20086 | ;; |
| 20087 | esac |
| 20088 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 20089 | # in which case we are not to be found in the path. |
| 20090 | if test "x$as_myself" = x; then |
| 20091 | as_myself=$0 |
| 20092 | fi |
| 20093 | if test ! -f "$as_myself"; then |
| 20094 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 20095 | { (exit 1); exit 1; } |
| 20096 | fi |
| 20097 | |
| 20098 | # Work around bugs in pre-3.0 UWIN ksh. |
| 20099 | for as_var in ENV MAIL MAILPATH |
| 20100 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 20101 | done |
| 20102 | PS1='$ ' |
| 20103 | PS2='> ' |
| 20104 | PS4='+ ' |
| 20105 | |
| 20106 | # NLS nuisances. |
| 20107 | for as_var in \ |
| 20108 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 20109 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 20110 | LC_TELEPHONE LC_TIME |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20111 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20112 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 20113 | eval $as_var=C; export $as_var |
| 20114 | else |
| 20115 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 20116 | fi |
| 20117 | done |
| 20118 | |
| 20119 | # Required to use basename. |
| 20120 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 20121 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 20122 | as_expr=expr |
| 20123 | else |
| 20124 | as_expr=false |
| 20125 | fi |
| 20126 | |
| 20127 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 20128 | as_basename=basename |
| 20129 | else |
| 20130 | as_basename=false |
| 20131 | fi |
| 20132 | |
| 20133 | |
| 20134 | # Name of the executable. |
| 20135 | as_me=`$as_basename -- "$0" || |
| 20136 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 20137 | X"$0" : 'X\(//\)$' \| \ |
| 20138 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 20139 | echo X/"$0" | |
| 20140 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 20141 | s//\1/ |
| 20142 | q |
| 20143 | } |
| 20144 | /^X\/\(\/\/\)$/{ |
| 20145 | s//\1/ |
| 20146 | q |
| 20147 | } |
| 20148 | /^X\/\(\/\).*/{ |
| 20149 | s//\1/ |
| 20150 | q |
| 20151 | } |
| 20152 | s/.*/./; q'` |
| 20153 | |
| 20154 | # CDPATH. |
| 20155 | $as_unset CDPATH |
| 20156 | |
| 20157 | |
| 20158 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20159 | as_lineno_1=$LINENO |
| 20160 | as_lineno_2=$LINENO |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20161 | test "x$as_lineno_1" != "x$as_lineno_2" && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20162 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20163 | |
| 20164 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 20165 | # uniformly replaced by the line number. The first 'sed' inserts a |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20166 | # line-number line after each line using $LINENO; the second 'sed' |
| 20167 | # does the real work. The second script uses 'N' to pair each |
| 20168 | # line-number line with the line containing $LINENO, and appends |
| 20169 | # trailing '-' during substitution so that $LINENO is not a special |
| 20170 | # case at line end. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20171 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20172 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 20173 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 20174 | sed -n ' |
| 20175 | p |
| 20176 | /[$]LINENO/= |
| 20177 | ' <$as_myself | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20178 | sed ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20179 | s/[$]LINENO.*/&-/ |
| 20180 | t lineno |
| 20181 | b |
| 20182 | :lineno |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20183 | N |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20184 | :loop |
| 20185 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20186 | t loop |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20187 | s/-\n.*// |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20188 | ' >$as_me.lineno && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20189 | chmod +x "$as_me.lineno" || |
| 20190 | { 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] | 20191 | { (exit 1); exit 1; }; } |
| 20192 | |
| 20193 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 20194 | # (the dirname of $[0] is not the place where we might find the |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20195 | # original and so on. Autoconf is especially sensitive to this). |
| 20196 | . "./$as_me.lineno" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20197 | # Exit status is that of the last command. |
| 20198 | exit |
| 20199 | } |
| 20200 | |
| 20201 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20202 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 20203 | as_dirname=dirname |
| 20204 | else |
| 20205 | as_dirname=false |
| 20206 | fi |
| 20207 | |
| 20208 | ECHO_C= ECHO_N= ECHO_T= |
| 20209 | case `echo -n x` in |
| 20210 | -n*) |
| 20211 | case `echo 'x\c'` in |
| 20212 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 20213 | *) ECHO_C='\c';; |
| 20214 | esac;; |
| 20215 | *) |
| 20216 | ECHO_N='-n';; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20217 | esac |
| 20218 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20219 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 20220 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20221 | as_expr=expr |
| 20222 | else |
| 20223 | as_expr=false |
| 20224 | fi |
| 20225 | |
| 20226 | rm -f conf$$ conf$$.exe conf$$.file |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20227 | if test -d conf$$.dir; then |
| 20228 | rm -f conf$$.dir/conf$$.file |
| 20229 | else |
| 20230 | rm -f conf$$.dir |
| 20231 | mkdir conf$$.dir |
| 20232 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20233 | echo >conf$$.file |
| 20234 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20235 | as_ln_s='ln -s' |
| 20236 | # ... but there are two gotchas: |
| 20237 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 20238 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 20239 | # In both cases, we have to default to `cp -p'. |
| 20240 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20241 | as_ln_s='cp -p' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20242 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 20243 | as_ln_s=ln |
| 20244 | else |
| 20245 | as_ln_s='cp -p' |
| 20246 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20247 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 20248 | rmdir conf$$.dir 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20249 | |
| 20250 | if mkdir -p . 2>/dev/null; then |
| 20251 | as_mkdir_p=: |
| 20252 | else |
| 20253 | test -d ./-p && rmdir ./-p |
| 20254 | as_mkdir_p=false |
| 20255 | fi |
| 20256 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20257 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 20258 | # systems may use methods other than mode bits to determine executability. |
| 20259 | cat >conf$$.file <<_ASEOF |
| 20260 | #! /bin/sh |
| 20261 | exit 0 |
| 20262 | _ASEOF |
| 20263 | chmod +x conf$$.file |
| 20264 | if test -x conf$$.file >/dev/null 2>&1; then |
| 20265 | as_executable_p="test -x" |
| 20266 | else |
| 20267 | as_executable_p=: |
| 20268 | fi |
| 20269 | rm -f conf$$.file |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20270 | |
| 20271 | # Sed expression to map a string onto a valid CPP name. |
| 20272 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 20273 | |
| 20274 | # Sed expression to map a string onto a valid variable name. |
| 20275 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 20276 | |
| 20277 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20278 | exec 6>&1 |
| 20279 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20280 | # Save the log message, to keep $[0] and so on meaningful, and to |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20281 | # report actual input values of CONFIG_FILES etc. instead of their |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20282 | # values after options handling. |
| 20283 | ac_log=" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20284 | This file was extended by airbag $as_me 0.1, which was |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20285 | generated by GNU Autoconf 2.60. Invocation command line was |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20286 | |
| 20287 | CONFIG_FILES = $CONFIG_FILES |
| 20288 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 20289 | CONFIG_LINKS = $CONFIG_LINKS |
| 20290 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 20291 | $ $0 $@ |
| 20292 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20293 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 20294 | " |
| 20295 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20296 | _ACEOF |
| 20297 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20298 | cat >>$CONFIG_STATUS <<_ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20299 | # Files that config.status was made for. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20300 | config_files="$ac_config_files" |
| 20301 | config_headers="$ac_config_headers" |
| 20302 | config_commands="$ac_config_commands" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20303 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20304 | _ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20305 | |
| 20306 | cat >>$CONFIG_STATUS <<\_ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20307 | ac_cs_usage="\ |
| 20308 | \`$as_me' instantiates files from templates according to the |
| 20309 | current configuration. |
| 20310 | |
| 20311 | Usage: $0 [OPTIONS] [FILE]... |
| 20312 | |
| 20313 | -h, --help print this help, then exit |
| 20314 | -V, --version print version number, then exit |
| 20315 | -q, --quiet do not print progress messages |
| 20316 | -d, --debug don't remove temporary files |
| 20317 | --recheck update $as_me by reconfiguring in the same conditions |
| 20318 | --file=FILE[:TEMPLATE] |
| 20319 | instantiate the configuration file FILE |
| 20320 | --header=FILE[:TEMPLATE] |
| 20321 | instantiate the configuration header FILE |
| 20322 | |
| 20323 | Configuration files: |
| 20324 | $config_files |
| 20325 | |
| 20326 | Configuration headers: |
| 20327 | $config_headers |
| 20328 | |
| 20329 | Configuration commands: |
| 20330 | $config_commands |
| 20331 | |
| 20332 | Report bugs to <bug-autoconf@gnu.org>." |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20333 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20334 | _ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20335 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20336 | ac_cs_version="\\ |
| 20337 | airbag config.status 0.1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20338 | configured by $0, generated by GNU Autoconf 2.60, |
| 20339 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20340 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20341 | Copyright (C) 2006 Free Software Foundation, Inc. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20342 | This config.status script is free software; the Free Software Foundation |
| 20343 | gives unlimited permission to copy, distribute and modify it." |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20344 | |
| 20345 | ac_pwd='$ac_pwd' |
| 20346 | srcdir='$srcdir' |
| 20347 | INSTALL='$INSTALL' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20348 | _ACEOF |
| 20349 | |
| 20350 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20351 | # If no file are specified by the user, then we need to provide default |
| 20352 | # value. By we need to know if files were specified by the user. |
| 20353 | ac_need_defaults=: |
| 20354 | while test $# != 0 |
| 20355 | do |
| 20356 | case $1 in |
| 20357 | --*=*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20358 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 20359 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20360 | ac_shift=: |
| 20361 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20362 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20363 | ac_option=$1 |
| 20364 | ac_optarg=$2 |
| 20365 | ac_shift=shift |
| 20366 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20367 | esac |
| 20368 | |
| 20369 | case $ac_option in |
| 20370 | # Handling of the options. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20371 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 20372 | ac_cs_recheck=: ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20373 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 20374 | echo "$ac_cs_version"; exit ;; |
| 20375 | --debug | --debu | --deb | --de | --d | -d ) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20376 | debug=: ;; |
| 20377 | --file | --fil | --fi | --f ) |
| 20378 | $ac_shift |
| 20379 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 20380 | ac_need_defaults=false;; |
| 20381 | --header | --heade | --head | --hea ) |
| 20382 | $ac_shift |
| 20383 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
| 20384 | ac_need_defaults=false;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20385 | --he | --h) |
| 20386 | # Conflict between --help and --header |
| 20387 | { echo "$as_me: error: ambiguous option: $1 |
| 20388 | Try \`$0 --help' for more information." >&2 |
| 20389 | { (exit 1); exit 1; }; };; |
| 20390 | --help | --hel | -h ) |
| 20391 | echo "$ac_cs_usage"; exit ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20392 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 20393 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 20394 | ac_cs_silent=: ;; |
| 20395 | |
| 20396 | # This is an error. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20397 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 20398 | Try \`$0 --help' for more information." >&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20399 | { (exit 1); exit 1; }; } ;; |
| 20400 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20401 | *) ac_config_targets="$ac_config_targets $1" |
| 20402 | ac_need_defaults=false ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20403 | |
| 20404 | esac |
| 20405 | shift |
| 20406 | done |
| 20407 | |
| 20408 | ac_configure_extra_args= |
| 20409 | |
| 20410 | if $ac_cs_silent; then |
| 20411 | exec 6>/dev/null |
| 20412 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 20413 | fi |
| 20414 | |
| 20415 | _ACEOF |
| 20416 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20417 | if \$ac_cs_recheck; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20418 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 20419 | CONFIG_SHELL=$SHELL |
| 20420 | export CONFIG_SHELL |
| 20421 | 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] | 20422 | fi |
| 20423 | |
| 20424 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20425 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20426 | exec 5>>config.log |
| 20427 | { |
| 20428 | echo |
| 20429 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 20430 | ## Running $as_me. ## |
| 20431 | _ASBOX |
| 20432 | echo "$ac_log" |
| 20433 | } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20434 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20435 | _ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20436 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20437 | # |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20438 | # INIT-COMMANDS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20439 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20440 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 20441 | |
| 20442 | _ACEOF |
| 20443 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20444 | cat >>$CONFIG_STATUS <<\_ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20445 | |
| 20446 | # Handling of arguments. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20447 | for ac_config_target in $ac_config_targets |
| 20448 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20449 | case $ac_config_target in |
| 20450 | "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; |
| 20451 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 20452 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 20453 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20454 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 20455 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 20456 | { (exit 1); exit 1; }; };; |
| 20457 | esac |
| 20458 | done |
| 20459 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20460 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20461 | # If the user did not use the arguments to specify the items to instantiate, |
| 20462 | # then the envvar interface is used. Set only those that are not. |
| 20463 | # We use the long form for the default assignment because of an extremely |
| 20464 | # bizarre bug on SunOS 4.1.3. |
| 20465 | if $ac_need_defaults; then |
| 20466 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 20467 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 20468 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 20469 | fi |
| 20470 | |
| 20471 | # Have a temporary directory for convenience. Make it in the build tree |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20472 | # simply because there is no reason against having it here, and in addition, |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20473 | # creating and moving files from /tmp can sometimes cause problems. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20474 | # Hook for its removal unless debugging. |
| 20475 | # Note that there is a small window in which the directory will not be cleaned: |
| 20476 | # after its creation but before its name has been assigned to `$tmp'. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20477 | $debug || |
| 20478 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20479 | tmp= |
| 20480 | trap 'exit_status=$? |
| 20481 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 20482 | ' 0 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20483 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 20484 | } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20485 | # Create a (secure) tmp directory for tmp files. |
| 20486 | |
| 20487 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20488 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20489 | test -n "$tmp" && test -d "$tmp" |
| 20490 | } || |
| 20491 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20492 | tmp=./conf$$-$RANDOM |
| 20493 | (umask 077 && mkdir "$tmp") |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20494 | } || |
| 20495 | { |
| 20496 | echo "$me: cannot create a temporary directory in ." >&2 |
| 20497 | { (exit 1); exit 1; } |
| 20498 | } |
| 20499 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20500 | # |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20501 | # Set up the sed scripts for CONFIG_FILES section. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20502 | # |
| 20503 | |
| 20504 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 20505 | # This happens for instance when ./config.status config.h |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20506 | if test -n "$CONFIG_FILES"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20507 | |
| 20508 | _ACEOF |
| 20509 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20510 | |
| 20511 | |
| 20512 | ac_delim='%!_!# ' |
| 20513 | for ac_last_try in false false false false false :; do |
| 20514 | cat >conf$$subs.sed <<_ACEOF |
| 20515 | SHELL!$SHELL$ac_delim |
| 20516 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 20517 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 20518 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 20519 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 20520 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 20521 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 20522 | exec_prefix!$exec_prefix$ac_delim |
| 20523 | prefix!$prefix$ac_delim |
| 20524 | program_transform_name!$program_transform_name$ac_delim |
| 20525 | bindir!$bindir$ac_delim |
| 20526 | sbindir!$sbindir$ac_delim |
| 20527 | libexecdir!$libexecdir$ac_delim |
| 20528 | datarootdir!$datarootdir$ac_delim |
| 20529 | datadir!$datadir$ac_delim |
| 20530 | sysconfdir!$sysconfdir$ac_delim |
| 20531 | sharedstatedir!$sharedstatedir$ac_delim |
| 20532 | localstatedir!$localstatedir$ac_delim |
| 20533 | includedir!$includedir$ac_delim |
| 20534 | oldincludedir!$oldincludedir$ac_delim |
| 20535 | docdir!$docdir$ac_delim |
| 20536 | infodir!$infodir$ac_delim |
| 20537 | htmldir!$htmldir$ac_delim |
| 20538 | dvidir!$dvidir$ac_delim |
| 20539 | pdfdir!$pdfdir$ac_delim |
| 20540 | psdir!$psdir$ac_delim |
| 20541 | libdir!$libdir$ac_delim |
| 20542 | localedir!$localedir$ac_delim |
| 20543 | mandir!$mandir$ac_delim |
| 20544 | DEFS!$DEFS$ac_delim |
| 20545 | ECHO_C!$ECHO_C$ac_delim |
| 20546 | ECHO_N!$ECHO_N$ac_delim |
| 20547 | ECHO_T!$ECHO_T$ac_delim |
| 20548 | LIBS!$LIBS$ac_delim |
| 20549 | build_alias!$build_alias$ac_delim |
| 20550 | host_alias!$host_alias$ac_delim |
| 20551 | target_alias!$target_alias$ac_delim |
| 20552 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 20553 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 20554 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 20555 | CYGPATH_W!$CYGPATH_W$ac_delim |
| 20556 | PACKAGE!$PACKAGE$ac_delim |
| 20557 | VERSION!$VERSION$ac_delim |
| 20558 | ACLOCAL!$ACLOCAL$ac_delim |
| 20559 | AUTOCONF!$AUTOCONF$ac_delim |
| 20560 | AUTOMAKE!$AUTOMAKE$ac_delim |
| 20561 | AUTOHEADER!$AUTOHEADER$ac_delim |
| 20562 | MAKEINFO!$MAKEINFO$ac_delim |
| 20563 | install_sh!$install_sh$ac_delim |
| 20564 | STRIP!$STRIP$ac_delim |
| 20565 | INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim |
| 20566 | mkdir_p!$mkdir_p$ac_delim |
| 20567 | AWK!$AWK$ac_delim |
| 20568 | SET_MAKE!$SET_MAKE$ac_delim |
| 20569 | am__leading_dot!$am__leading_dot$ac_delim |
| 20570 | AMTAR!$AMTAR$ac_delim |
| 20571 | am__tar!$am__tar$ac_delim |
| 20572 | am__untar!$am__untar$ac_delim |
| 20573 | CC!$CC$ac_delim |
| 20574 | CFLAGS!$CFLAGS$ac_delim |
| 20575 | LDFLAGS!$LDFLAGS$ac_delim |
| 20576 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 20577 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 20578 | EXEEXT!$EXEEXT$ac_delim |
| 20579 | OBJEXT!$OBJEXT$ac_delim |
| 20580 | DEPDIR!$DEPDIR$ac_delim |
| 20581 | am__include!$am__include$ac_delim |
| 20582 | am__quote!$am__quote$ac_delim |
| 20583 | AMDEP_TRUE!$AMDEP_TRUE$ac_delim |
| 20584 | AMDEP_FALSE!$AMDEP_FALSE$ac_delim |
| 20585 | AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim |
| 20586 | CCDEPMODE!$CCDEPMODE$ac_delim |
| 20587 | am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim |
| 20588 | am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim |
| 20589 | CPP!$CPP$ac_delim |
| 20590 | CXX!$CXX$ac_delim |
| 20591 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 20592 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 20593 | CXXDEPMODE!$CXXDEPMODE$ac_delim |
| 20594 | am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim |
| 20595 | am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim |
| 20596 | build!$build$ac_delim |
| 20597 | build_cpu!$build_cpu$ac_delim |
| 20598 | build_vendor!$build_vendor$ac_delim |
| 20599 | build_os!$build_os$ac_delim |
| 20600 | host!$host$ac_delim |
| 20601 | host_cpu!$host_cpu$ac_delim |
| 20602 | host_vendor!$host_vendor$ac_delim |
| 20603 | host_os!$host_os$ac_delim |
| 20604 | GREP!$GREP$ac_delim |
| 20605 | EGREP!$EGREP$ac_delim |
| 20606 | LN_S!$LN_S$ac_delim |
| 20607 | ECHO!$ECHO$ac_delim |
| 20608 | AR!$AR$ac_delim |
| 20609 | RANLIB!$RANLIB$ac_delim |
| 20610 | CXXCPP!$CXXCPP$ac_delim |
| 20611 | F77!$F77$ac_delim |
| 20612 | _ACEOF |
| 20613 | |
| 20614 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
| 20615 | break |
| 20616 | elif $ac_last_try; then |
| 20617 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 20618 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 20619 | { (exit 1); exit 1; }; } |
| 20620 | else |
| 20621 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20622 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20623 | done |
| 20624 | |
| 20625 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 20626 | if test -n "$ac_eof"; then |
| 20627 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 20628 | ac_eof=`expr $ac_eof + 1` |
| 20629 | fi |
| 20630 | |
| 20631 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20632 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 20633 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 20634 | _ACEOF |
| 20635 | sed ' |
| 20636 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 20637 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 20638 | :n |
| 20639 | t n |
| 20640 | s/'"$ac_delim"'$/,g/; t |
| 20641 | s/$/\\/; p |
| 20642 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 20643 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 20644 | rm -f conf$$subs.sed |
| 20645 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20646 | CEOF$ac_eof |
| 20647 | _ACEOF |
| 20648 | |
| 20649 | |
| 20650 | ac_delim='%!_!# ' |
| 20651 | for ac_last_try in false false false false false :; do |
| 20652 | cat >conf$$subs.sed <<_ACEOF |
| 20653 | FFLAGS!$FFLAGS$ac_delim |
| 20654 | ac_ct_F77!$ac_ct_F77$ac_delim |
| 20655 | LIBTOOL!$LIBTOOL$ac_delim |
| 20656 | LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim |
| 20657 | LIBOBJS!$LIBOBJS$ac_delim |
| 20658 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 20659 | _ACEOF |
| 20660 | |
| 20661 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then |
| 20662 | break |
| 20663 | elif $ac_last_try; then |
| 20664 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 20665 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 20666 | { (exit 1); exit 1; }; } |
| 20667 | else |
| 20668 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 20669 | fi |
| 20670 | done |
| 20671 | |
| 20672 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 20673 | if test -n "$ac_eof"; then |
| 20674 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 20675 | ac_eof=`expr $ac_eof + 1` |
| 20676 | fi |
| 20677 | |
| 20678 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20679 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 20680 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 20681 | _ACEOF |
| 20682 | sed ' |
| 20683 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 20684 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 20685 | :n |
| 20686 | t n |
| 20687 | s/'"$ac_delim"'$/,g/; t |
| 20688 | s/$/\\/; p |
| 20689 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 20690 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 20691 | rm -f conf$$subs.sed |
| 20692 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20693 | :end |
| 20694 | s/|#_!!_#|//g |
| 20695 | CEOF$ac_eof |
| 20696 | _ACEOF |
| 20697 | |
| 20698 | |
| 20699 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 20700 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 20701 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 20702 | # (actually we leave an empty line to preserve line numbers). |
| 20703 | if test "x$srcdir" = x.; then |
| 20704 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 20705 | s/:*\$(srcdir):*/:/ |
| 20706 | s/:*\${srcdir}:*/:/ |
| 20707 | s/:*@srcdir@:*/:/ |
| 20708 | s/^\([^=]*=[ ]*\):*/\1/ |
| 20709 | s/:*$// |
| 20710 | s/^[^=]*=[ ]*$// |
| 20711 | }' |
| 20712 | fi |
| 20713 | |
| 20714 | cat >>$CONFIG_STATUS <<\_ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20715 | fi # test -n "$CONFIG_FILES" |
| 20716 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20717 | |
| 20718 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
| 20719 | do |
| 20720 | case $ac_tag in |
| 20721 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 20722 | esac |
| 20723 | case $ac_mode$ac_tag in |
| 20724 | :[FHL]*:*);; |
| 20725 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 20726 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 20727 | { (exit 1); exit 1; }; };; |
| 20728 | :[FH]-) ac_tag=-:-;; |
| 20729 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 20730 | esac |
| 20731 | ac_save_IFS=$IFS |
| 20732 | IFS=: |
| 20733 | set x $ac_tag |
| 20734 | IFS=$ac_save_IFS |
| 20735 | shift |
| 20736 | ac_file=$1 |
| 20737 | shift |
| 20738 | |
| 20739 | case $ac_mode in |
| 20740 | :L) ac_source=$1;; |
| 20741 | :[FH]) |
| 20742 | ac_file_inputs= |
| 20743 | for ac_f |
| 20744 | do |
| 20745 | case $ac_f in |
| 20746 | -) ac_f="$tmp/stdin";; |
| 20747 | *) # Look for the file first in the build tree, then in the source tree |
| 20748 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 20749 | # because $ac_f cannot contain `:'. |
| 20750 | test -f "$ac_f" || |
| 20751 | case $ac_f in |
| 20752 | [\\/$]*) false;; |
| 20753 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 20754 | esac || |
| 20755 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 20756 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 20757 | { (exit 1); exit 1; }; };; |
| 20758 | esac |
| 20759 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 20760 | done |
| 20761 | |
| 20762 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 20763 | # use $as_me), people would be surprised to read: |
| 20764 | # /* config.h. Generated by config.status. */ |
| 20765 | configure_input="Generated from "`IFS=: |
| 20766 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 20767 | if test x"$ac_file" != x-; then |
| 20768 | configure_input="$ac_file. $configure_input" |
| 20769 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 20770 | echo "$as_me: creating $ac_file" >&6;} |
| 20771 | fi |
| 20772 | |
| 20773 | case $ac_tag in |
| 20774 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 20775 | esac |
| 20776 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20777 | esac |
| 20778 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20779 | ac_dir=`$as_dirname -- "$ac_file" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20780 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 20781 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 20782 | X"$ac_file" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20783 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20784 | echo X"$ac_file" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20785 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 20786 | s//\1/ |
| 20787 | q |
| 20788 | } |
| 20789 | /^X\(\/\/\)[^/].*/{ |
| 20790 | s//\1/ |
| 20791 | q |
| 20792 | } |
| 20793 | /^X\(\/\/\)$/{ |
| 20794 | s//\1/ |
| 20795 | q |
| 20796 | } |
| 20797 | /^X\(\/\).*/{ |
| 20798 | s//\1/ |
| 20799 | q |
| 20800 | } |
| 20801 | s/.*/./; q'` |
| 20802 | { as_dir="$ac_dir" |
| 20803 | case $as_dir in #( |
| 20804 | -*) as_dir=./$as_dir;; |
| 20805 | esac |
| 20806 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20807 | as_dirs= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20808 | while :; do |
| 20809 | case $as_dir in #( |
| 20810 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 20811 | *) as_qdir=$as_dir;; |
| 20812 | esac |
| 20813 | as_dirs="'$as_qdir' $as_dirs" |
| 20814 | as_dir=`$as_dirname -- "$as_dir" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20815 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 20816 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 20817 | X"$as_dir" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20818 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20819 | echo X"$as_dir" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20820 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 20821 | s//\1/ |
| 20822 | q |
| 20823 | } |
| 20824 | /^X\(\/\/\)[^/].*/{ |
| 20825 | s//\1/ |
| 20826 | q |
| 20827 | } |
| 20828 | /^X\(\/\/\)$/{ |
| 20829 | s//\1/ |
| 20830 | q |
| 20831 | } |
| 20832 | /^X\(\/\).*/{ |
| 20833 | s//\1/ |
| 20834 | q |
| 20835 | } |
| 20836 | s/.*/./; q'` |
| 20837 | test -d "$as_dir" && break |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20838 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20839 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 20840 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 20841 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20842 | { (exit 1); exit 1; }; }; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20843 | ac_builddir=. |
| 20844 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20845 | case "$ac_dir" in |
| 20846 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 20847 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20848 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20849 | # A ".." for each directory in $ac_dir_suffix. |
| 20850 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 20851 | case $ac_top_builddir_sub in |
| 20852 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 20853 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 20854 | esac ;; |
| 20855 | esac |
| 20856 | ac_abs_top_builddir=$ac_pwd |
| 20857 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 20858 | # for backward compatibility: |
| 20859 | ac_top_builddir=$ac_top_build_prefix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20860 | |
| 20861 | case $srcdir in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20862 | .) # We are building in place. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20863 | ac_srcdir=. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20864 | ac_top_srcdir=$ac_top_builddir_sub |
| 20865 | ac_abs_top_srcdir=$ac_pwd ;; |
| 20866 | [\\/]* | ?:[\\/]* ) # Absolute name. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20867 | ac_srcdir=$srcdir$ac_dir_suffix; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20868 | ac_top_srcdir=$srcdir |
| 20869 | ac_abs_top_srcdir=$srcdir ;; |
| 20870 | *) # Relative name. |
| 20871 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 20872 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 20873 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20874 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20875 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20876 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20877 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20878 | case $ac_mode in |
| 20879 | :F) |
| 20880 | # |
| 20881 | # CONFIG_FILE |
| 20882 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20883 | |
| 20884 | case $INSTALL in |
| 20885 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20886 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20887 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20888 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20889 | |
| 20890 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20891 | # If the template does not know about datarootdir, expand it. |
| 20892 | # FIXME: This hack should be removed a few years after 2.60. |
| 20893 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 20894 | |
| 20895 | case `sed -n '/datarootdir/ { |
| 20896 | p |
| 20897 | q |
| 20898 | } |
| 20899 | /@datadir@/p |
| 20900 | /@docdir@/p |
| 20901 | /@infodir@/p |
| 20902 | /@localedir@/p |
| 20903 | /@mandir@/p |
| 20904 | ' $ac_file_inputs` in |
| 20905 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 20906 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 20907 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 20908 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 20909 | _ACEOF |
| 20910 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20911 | ac_datarootdir_hack=' |
| 20912 | s&@datadir@&$datadir&g |
| 20913 | s&@docdir@&$docdir&g |
| 20914 | s&@infodir@&$infodir&g |
| 20915 | s&@localedir@&$localedir&g |
| 20916 | s&@mandir@&$mandir&g |
| 20917 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 20918 | esac |
| 20919 | _ACEOF |
| 20920 | |
| 20921 | # Neutralize VPATH when `$srcdir' = `.'. |
| 20922 | # Shell code in configure.ac might set extrasub. |
| 20923 | # FIXME: do we really want to maintain this feature? |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20924 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20925 | sed "$ac_vpsub |
| 20926 | $extrasub |
| 20927 | _ACEOF |
| 20928 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20929 | :t |
| 20930 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20931 | s&@configure_input@&$configure_input&;t t |
| 20932 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 20933 | s&@srcdir@&$ac_srcdir&;t t |
| 20934 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 20935 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 20936 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 20937 | s&@builddir@&$ac_builddir&;t t |
| 20938 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 20939 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 20940 | s&@INSTALL@&$ac_INSTALL&;t t |
| 20941 | $ac_datarootdir_hack |
| 20942 | " $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] | 20943 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20944 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 20945 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 20946 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 20947 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 20948 | which seems to be undefined. Please make sure it is defined." >&5 |
| 20949 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 20950 | which seems to be undefined. Please make sure it is defined." >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20951 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20952 | rm -f "$tmp/stdin" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20953 | case $ac_file in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20954 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 20955 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20956 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20957 | ;; |
| 20958 | :H) |
| 20959 | # |
| 20960 | # CONFIG_HEADER |
| 20961 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20962 | _ACEOF |
| 20963 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20964 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 20965 | # substitutes the proper values into config.h.in to produce config.h. |
| 20966 | rm -f conftest.defines conftest.tail |
| 20967 | # First, append a space to every undef/define line, to ease matching. |
| 20968 | echo 's/$/ /' >conftest.defines |
| 20969 | # Then, protect against being on the right side of a sed subst, or in |
| 20970 | # an unquoted here document, in config.status. If some macros were |
| 20971 | # called several times there might be several #defines for the same |
| 20972 | # symbol, which is useless. But do not sort them, since the last |
| 20973 | # AC_DEFINE must be honored. |
| 20974 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 20975 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 20976 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 20977 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 20978 | # just an empty string. |
| 20979 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 20980 | ac_dB='\\)[ (].*,\\1define\\2' |
| 20981 | ac_dC=' ' |
| 20982 | ac_dD=' ,' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20983 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 20984 | uniq confdefs.h | |
| 20985 | sed -n ' |
| 20986 | t rset |
| 20987 | :rset |
| 20988 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 20989 | t ok |
| 20990 | d |
| 20991 | :ok |
| 20992 | s/[\\&,]/\\&/g |
| 20993 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 20994 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 20995 | ' >>conftest.defines |
| 20996 | |
| 20997 | # Remove the space that was appended to ease matching. |
| 20998 | # Then replace #undef with comments. This is necessary, for |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20999 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 21000 | # on some systems where configure will not decide to define it. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 21001 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 21002 | echo 's/ $// |
| 21003 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21004 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 21005 | # Break up conftest.defines: |
| 21006 | ac_max_sed_lines=50 |
| 21007 | |
| 21008 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 21009 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 21010 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 21011 | # et cetera. |
| 21012 | ac_in='$ac_file_inputs' |
| 21013 | ac_out='"$tmp/out1"' |
| 21014 | ac_nxt='"$tmp/out2"' |
| 21015 | |
| 21016 | while : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21017 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 21018 | # Write a here document: |
| 21019 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21020 | # First, check the format of the line: |
| 21021 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 21022 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 21023 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 21024 | b |
| 21025 | :def |
| 21026 | _ACEOF |
| 21027 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21028 | echo 'CEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 21029 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 21030 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 21031 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 21032 | grep . conftest.tail >/dev/null || break |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21033 | rm -f conftest.defines |
| 21034 | mv conftest.tail conftest.defines |
| 21035 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 21036 | rm -f conftest.defines conftest.tail |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21037 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 21038 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21039 | cat >>$CONFIG_STATUS <<\_ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21040 | if test x"$ac_file" != x-; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 21041 | echo "/* $configure_input */" >"$tmp/config.h" |
| 21042 | cat "$ac_result" >>"$tmp/config.h" |
| 21043 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21044 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 21045 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 21046 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21047 | rm -f $ac_file |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 21048 | mv "$tmp/config.h" $ac_file |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21049 | fi |
| 21050 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 21051 | echo "/* $configure_input */" |
| 21052 | cat "$ac_result" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21053 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 21054 | rm -f "$tmp/out12" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21055 | # Compute $ac_file's index in $config_headers. |
| 21056 | _am_stamp_count=1 |
| 21057 | for _am_header in $config_headers :; do |
| 21058 | case $_am_header in |
| 21059 | $ac_file | $ac_file:* ) |
| 21060 | break ;; |
| 21061 | * ) |
| 21062 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 21063 | esac |
| 21064 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 21065 | echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21066 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 21067 | X$ac_file : 'X\(//\)[^/]' \| \ |
| 21068 | X$ac_file : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 21069 | X$ac_file : 'X\(/\)' \| . 2>/dev/null || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21070 | echo X$ac_file | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 21071 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 21072 | s//\1/ |
| 21073 | q |
| 21074 | } |
| 21075 | /^X\(\/\/\)[^/].*/{ |
| 21076 | s//\1/ |
| 21077 | q |
| 21078 | } |
| 21079 | /^X\(\/\/\)$/{ |
| 21080 | s//\1/ |
| 21081 | q |
| 21082 | } |
| 21083 | /^X\(\/\).*/{ |
| 21084 | s//\1/ |
| 21085 | q |
| 21086 | } |
| 21087 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 21088 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21089 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 21090 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 21091 | echo "$as_me: executing $ac_file commands" >&6;} |
| 21092 | ;; |
| 21093 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21094 | |
| 21095 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 21096 | case $ac_file$ac_mode in |
| 21097 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21098 | # Strip MF so we end up with the name of the file. |
| 21099 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 21100 | # Check whether this is an Automake generated Makefile or not. |
| 21101 | # We used to match only the files named `Makefile.in', but |
| 21102 | # some people rename them; so instead we look at the file content. |
| 21103 | # Grep'ing the first line is not enough: some people post-process |
| 21104 | # each Makefile.in and add a new line on top of each file to say so. |
| 21105 | # So let's grep whole file. |
| 21106 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 21107 | dirpart=`$as_dirname -- "$mf" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21108 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 21109 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 21110 | X"$mf" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 21111 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21112 | echo X"$mf" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 21113 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 21114 | s//\1/ |
| 21115 | q |
| 21116 | } |
| 21117 | /^X\(\/\/\)[^/].*/{ |
| 21118 | s//\1/ |
| 21119 | q |
| 21120 | } |
| 21121 | /^X\(\/\/\)$/{ |
| 21122 | s//\1/ |
| 21123 | q |
| 21124 | } |
| 21125 | /^X\(\/\).*/{ |
| 21126 | s//\1/ |
| 21127 | q |
| 21128 | } |
| 21129 | s/.*/./; q'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21130 | else |
| 21131 | continue |
| 21132 | fi |
| 21133 | # Extract the definition of DEPDIR, am__include, and am__quote |
| 21134 | # from the Makefile without running `make'. |
| 21135 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 21136 | test -z "$DEPDIR" && continue |
| 21137 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 21138 | test -z "am__include" && continue |
| 21139 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 21140 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 21141 | U=`sed -n 's/^U = //p' < "$mf"` |
| 21142 | # Find all dependency output files, they are included files with |
| 21143 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 21144 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 21145 | # expansion. |
| 21146 | for file in `sed -n " |
| 21147 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 21148 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 21149 | # Make sure the directory exists. |
| 21150 | test -f "$dirpart/$file" && continue |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 21151 | fdir=`$as_dirname -- "$file" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21152 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 21153 | X"$file" : 'X\(//\)[^/]' \| \ |
| 21154 | X"$file" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 21155 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21156 | echo X"$file" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 21157 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 21158 | s//\1/ |
| 21159 | q |
| 21160 | } |
| 21161 | /^X\(\/\/\)[^/].*/{ |
| 21162 | s//\1/ |
| 21163 | q |
| 21164 | } |
| 21165 | /^X\(\/\/\)$/{ |
| 21166 | s//\1/ |
| 21167 | q |
| 21168 | } |
| 21169 | /^X\(\/\).*/{ |
| 21170 | s//\1/ |
| 21171 | q |
| 21172 | } |
| 21173 | s/.*/./; q'` |
| 21174 | { as_dir=$dirpart/$fdir |
| 21175 | case $as_dir in #( |
| 21176 | -*) as_dir=./$as_dir;; |
| 21177 | esac |
| 21178 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21179 | as_dirs= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 21180 | while :; do |
| 21181 | case $as_dir in #( |
| 21182 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 21183 | *) as_qdir=$as_dir;; |
| 21184 | esac |
| 21185 | as_dirs="'$as_qdir' $as_dirs" |
| 21186 | as_dir=`$as_dirname -- "$as_dir" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21187 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 21188 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 21189 | X"$as_dir" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 21190 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21191 | echo X"$as_dir" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 21192 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 21193 | s//\1/ |
| 21194 | q |
| 21195 | } |
| 21196 | /^X\(\/\/\)[^/].*/{ |
| 21197 | s//\1/ |
| 21198 | q |
| 21199 | } |
| 21200 | /^X\(\/\/\)$/{ |
| 21201 | s//\1/ |
| 21202 | q |
| 21203 | } |
| 21204 | /^X\(\/\).*/{ |
| 21205 | s//\1/ |
| 21206 | q |
| 21207 | } |
| 21208 | s/.*/./; q'` |
| 21209 | test -d "$as_dir" && break |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21210 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 21211 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 21212 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 21213 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21214 | { (exit 1); exit 1; }; }; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21215 | # echo "creating $dirpart/$file" |
| 21216 | echo '# dummy' > "$dirpart/$file" |
| 21217 | done |
| 21218 | done |
| 21219 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21220 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame^] | 21221 | esac |
| 21222 | done # for ac_tag |
| 21223 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21224 | |
| 21225 | { (exit 0); exit 0; } |
| 21226 | _ACEOF |
| 21227 | chmod +x $CONFIG_STATUS |
| 21228 | ac_clean_files=$ac_clean_files_save |
| 21229 | |
| 21230 | |
| 21231 | # configure is writing to config.log, and then calls config.status. |
| 21232 | # config.status does its own redirection, appending to config.log. |
| 21233 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 21234 | # by configure, so config.status won't be able to write to it; its |
| 21235 | # output is simply discarded. So we exec the FD to /dev/null, |
| 21236 | # effectively closing config.log, so it can be properly (re)opened and |
| 21237 | # appended to by config.status. When coming back to configure, we |
| 21238 | # need to make the FD available again. |
| 21239 | if test "$no_create" != yes; then |
| 21240 | ac_cs_success=: |
| 21241 | ac_config_status_args= |
| 21242 | test "$silent" = yes && |
| 21243 | ac_config_status_args="$ac_config_status_args --quiet" |
| 21244 | exec 5>/dev/null |
| 21245 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 21246 | exec 5>>config.log |
| 21247 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 21248 | # would make configure fail if this is the last instruction. |
| 21249 | $ac_cs_success || { (exit 1); exit 1; } |
| 21250 | fi |
| 21251 | |