drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1 | #! /bin/sh |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 2 | # Guess values for system-dependent variables and create Makefiles. |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame^] | 3 | # Generated by GNU Autoconf 2.61 for sqlite 3.5.6. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 4 | # |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 6 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7 | # This configure script is free software; the Free Software Foundation |
| 8 | # gives unlimited permission to copy, distribute and modify it. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9 | ## --------------------- ## |
| 10 | ## M4sh Initialization. ## |
| 11 | ## --------------------- ## |
| 12 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 13 | # Be more Bourne compatible |
| 14 | DUALCASE=1; export DUALCASE # for MKS sh |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 16 | emulate sh |
| 17 | NULLCMD=: |
| 18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 19 | # is contrary to our usage. Disable this feature. |
| 20 | alias -g '${1+"$@"}'='"$@"' |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21 | setopt NO_GLOB_SUBST |
drh | 613a0fe | 2007-11-23 17:31:17 +0000 | [diff] [blame] | 22 | else |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 23 | case `(set -o) 2>/dev/null` in |
| 24 | *posix*) set -o posix ;; |
| 25 | esac |
| 26 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 27 | fi |
| 28 | |
| 29 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 30 | |
| 31 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 32 | # PATH needs CR |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 33 | # Avoid depending upon Character Ranges. |
| 34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 37 | as_cr_digits='0123456789' |
| 38 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 39 | |
| 40 | # The user is always right. |
| 41 | if test "${PATH_SEPARATOR+set}" != set; then |
| 42 | echo "#! /bin/sh" >conf$$.sh |
| 43 | echo "exit 0" >>conf$$.sh |
| 44 | chmod +x conf$$.sh |
| 45 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 46 | PATH_SEPARATOR=';' |
| 47 | else |
| 48 | PATH_SEPARATOR=: |
| 49 | fi |
| 50 | rm -f conf$$.sh |
| 51 | fi |
| 52 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 53 | # Support unset when possible. |
| 54 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 55 | as_unset=unset |
| 56 | else |
| 57 | as_unset=false |
| 58 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 59 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 60 | |
| 61 | # IFS |
| 62 | # We need space, tab and new line, in precisely that order. Quoting is |
| 63 | # there to prevent editors from complaining about space-tab. |
| 64 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 65 | # splitting by setting IFS to empty value.) |
| 66 | as_nl=' |
| 67 | ' |
| 68 | IFS=" "" $as_nl" |
| 69 | |
| 70 | # Find who we are. Look in the path if we contain no directory separator. |
| 71 | case $0 in |
| 72 | *[\\/]* ) as_myself=$0 ;; |
| 73 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 74 | for as_dir in $PATH |
| 75 | do |
| 76 | IFS=$as_save_IFS |
| 77 | test -z "$as_dir" && as_dir=. |
| 78 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 79 | done |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 80 | IFS=$as_save_IFS |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 81 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 82 | ;; |
| 83 | esac |
| 84 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 85 | # in which case we are not to be found in the path. |
| 86 | if test "x$as_myself" = x; then |
| 87 | as_myself=$0 |
| 88 | fi |
| 89 | if test ! -f "$as_myself"; then |
| 90 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 91 | { (exit 1); exit 1; } |
| 92 | fi |
| 93 | |
| 94 | # Work around bugs in pre-3.0 UWIN ksh. |
| 95 | for as_var in ENV MAIL MAILPATH |
| 96 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 97 | done |
| 98 | PS1='$ ' |
| 99 | PS2='> ' |
| 100 | PS4='+ ' |
| 101 | |
| 102 | # NLS nuisances. |
| 103 | for as_var in \ |
| 104 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 105 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 106 | LC_TELEPHONE LC_TIME |
| 107 | do |
| 108 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 109 | eval $as_var=C; export $as_var |
| 110 | else |
| 111 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 112 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 113 | done |
| 114 | |
| 115 | # Required to use basename. |
| 116 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 117 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 118 | as_expr=expr |
| 119 | else |
| 120 | as_expr=false |
| 121 | fi |
| 122 | |
| 123 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 124 | as_basename=basename |
| 125 | else |
| 126 | as_basename=false |
| 127 | fi |
| 128 | |
| 129 | |
| 130 | # Name of the executable. |
| 131 | as_me=`$as_basename -- "$0" || |
| 132 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 133 | X"$0" : 'X\(//\)$' \| \ |
| 134 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 135 | echo X/"$0" | |
| 136 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 137 | s//\1/ |
| 138 | q |
| 139 | } |
| 140 | /^X\/\(\/\/\)$/{ |
| 141 | s//\1/ |
| 142 | q |
| 143 | } |
| 144 | /^X\/\(\/\).*/{ |
| 145 | s//\1/ |
| 146 | q |
| 147 | } |
| 148 | s/.*/./; q'` |
| 149 | |
| 150 | # CDPATH. |
| 151 | $as_unset CDPATH |
| 152 | |
| 153 | |
| 154 | if test "x$CONFIG_SHELL" = x; then |
| 155 | if (eval ":") 2>/dev/null; then |
| 156 | as_have_required=yes |
| 157 | else |
| 158 | as_have_required=no |
| 159 | fi |
| 160 | |
| 161 | if test $as_have_required = yes && (eval ": |
| 162 | (as_func_return () { |
| 163 | (exit \$1) |
| 164 | } |
| 165 | as_func_success () { |
| 166 | as_func_return 0 |
| 167 | } |
| 168 | as_func_failure () { |
| 169 | as_func_return 1 |
| 170 | } |
| 171 | as_func_ret_success () { |
| 172 | return 0 |
| 173 | } |
| 174 | as_func_ret_failure () { |
| 175 | return 1 |
| 176 | } |
| 177 | |
| 178 | exitcode=0 |
| 179 | if as_func_success; then |
| 180 | : |
| 181 | else |
| 182 | exitcode=1 |
| 183 | echo as_func_success failed. |
| 184 | fi |
| 185 | |
| 186 | if as_func_failure; then |
| 187 | exitcode=1 |
| 188 | echo as_func_failure succeeded. |
| 189 | fi |
| 190 | |
| 191 | if as_func_ret_success; then |
| 192 | : |
| 193 | else |
| 194 | exitcode=1 |
| 195 | echo as_func_ret_success failed. |
| 196 | fi |
| 197 | |
| 198 | if as_func_ret_failure; then |
| 199 | exitcode=1 |
| 200 | echo as_func_ret_failure succeeded. |
| 201 | fi |
| 202 | |
| 203 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 204 | : |
| 205 | else |
| 206 | exitcode=1 |
| 207 | echo positional parameters were not saved. |
| 208 | fi |
| 209 | |
| 210 | test \$exitcode = 0) || { (exit 1); exit 1; } |
| 211 | |
| 212 | ( |
| 213 | as_lineno_1=\$LINENO |
| 214 | as_lineno_2=\$LINENO |
| 215 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| 216 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
| 217 | ") 2> /dev/null; then |
| 218 | : |
| 219 | else |
| 220 | as_candidate_shells= |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 222 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 223 | do |
| 224 | IFS=$as_save_IFS |
| 225 | test -z "$as_dir" && as_dir=. |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 226 | case $as_dir in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 227 | /*) |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 228 | for as_base in sh bash ksh sh5; do |
| 229 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| 230 | done;; |
| 231 | esac |
| 232 | done |
| 233 | IFS=$as_save_IFS |
| 234 | |
| 235 | |
| 236 | for as_shell in $as_candidate_shells $SHELL; do |
| 237 | # Try only shells that exist, to save several forks. |
| 238 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 239 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
| 240 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 241 | emulate sh |
| 242 | NULLCMD=: |
| 243 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 244 | # is contrary to our usage. Disable this feature. |
| 245 | alias -g '${1+"$@"}'='"$@"' |
| 246 | setopt NO_GLOB_SUBST |
| 247 | else |
| 248 | case `(set -o) 2>/dev/null` in |
| 249 | *posix*) set -o posix ;; |
| 250 | esac |
| 251 | |
| 252 | fi |
| 253 | |
| 254 | |
| 255 | : |
| 256 | _ASEOF |
| 257 | }; then |
| 258 | CONFIG_SHELL=$as_shell |
| 259 | as_have_required=yes |
| 260 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
| 261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 262 | emulate sh |
| 263 | NULLCMD=: |
| 264 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 265 | # is contrary to our usage. Disable this feature. |
| 266 | alias -g '${1+"$@"}'='"$@"' |
| 267 | setopt NO_GLOB_SUBST |
| 268 | else |
| 269 | case `(set -o) 2>/dev/null` in |
| 270 | *posix*) set -o posix ;; |
| 271 | esac |
| 272 | |
| 273 | fi |
| 274 | |
| 275 | |
| 276 | : |
| 277 | (as_func_return () { |
| 278 | (exit $1) |
| 279 | } |
| 280 | as_func_success () { |
| 281 | as_func_return 0 |
| 282 | } |
| 283 | as_func_failure () { |
| 284 | as_func_return 1 |
| 285 | } |
| 286 | as_func_ret_success () { |
| 287 | return 0 |
| 288 | } |
| 289 | as_func_ret_failure () { |
| 290 | return 1 |
| 291 | } |
| 292 | |
| 293 | exitcode=0 |
| 294 | if as_func_success; then |
| 295 | : |
| 296 | else |
| 297 | exitcode=1 |
| 298 | echo as_func_success failed. |
| 299 | fi |
| 300 | |
| 301 | if as_func_failure; then |
| 302 | exitcode=1 |
| 303 | echo as_func_failure succeeded. |
| 304 | fi |
| 305 | |
| 306 | if as_func_ret_success; then |
| 307 | : |
| 308 | else |
| 309 | exitcode=1 |
| 310 | echo as_func_ret_success failed. |
| 311 | fi |
| 312 | |
| 313 | if as_func_ret_failure; then |
| 314 | exitcode=1 |
| 315 | echo as_func_ret_failure succeeded. |
| 316 | fi |
| 317 | |
| 318 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 319 | : |
| 320 | else |
| 321 | exitcode=1 |
| 322 | echo positional parameters were not saved. |
| 323 | fi |
| 324 | |
| 325 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 326 | |
| 327 | ( |
drh | 613a0fe | 2007-11-23 17:31:17 +0000 | [diff] [blame] | 328 | as_lineno_1=$LINENO |
| 329 | as_lineno_2=$LINENO |
drh | 613a0fe | 2007-11-23 17:31:17 +0000 | [diff] [blame] | 330 | test "x$as_lineno_1" != "x$as_lineno_2" && |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 331 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
| 332 | |
| 333 | _ASEOF |
| 334 | }; then |
| 335 | break |
| 336 | fi |
| 337 | |
| 338 | fi |
| 339 | |
| 340 | done |
| 341 | |
| 342 | if test "x$CONFIG_SHELL" != x; then |
| 343 | for as_var in BASH_ENV ENV |
| 344 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 345 | done |
| 346 | export CONFIG_SHELL |
| 347 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 348 | fi |
| 349 | |
| 350 | |
| 351 | if test $as_have_required = no; then |
| 352 | echo This script requires a shell more modern than all the |
| 353 | echo shells that I found on your system. Please install a |
| 354 | echo modern shell, or manually run the script under such a |
| 355 | echo shell if you do have one. |
| 356 | { (exit 1); exit 1; } |
| 357 | fi |
| 358 | |
| 359 | |
| 360 | fi |
| 361 | |
| 362 | fi |
| 363 | |
| 364 | |
| 365 | |
| 366 | (eval "as_func_return () { |
| 367 | (exit \$1) |
| 368 | } |
| 369 | as_func_success () { |
| 370 | as_func_return 0 |
| 371 | } |
| 372 | as_func_failure () { |
| 373 | as_func_return 1 |
| 374 | } |
| 375 | as_func_ret_success () { |
| 376 | return 0 |
| 377 | } |
| 378 | as_func_ret_failure () { |
| 379 | return 1 |
| 380 | } |
| 381 | |
| 382 | exitcode=0 |
| 383 | if as_func_success; then |
| 384 | : |
| 385 | else |
| 386 | exitcode=1 |
| 387 | echo as_func_success failed. |
| 388 | fi |
| 389 | |
| 390 | if as_func_failure; then |
| 391 | exitcode=1 |
| 392 | echo as_func_failure succeeded. |
| 393 | fi |
| 394 | |
| 395 | if as_func_ret_success; then |
| 396 | : |
| 397 | else |
| 398 | exitcode=1 |
| 399 | echo as_func_ret_success failed. |
| 400 | fi |
| 401 | |
| 402 | if as_func_ret_failure; then |
| 403 | exitcode=1 |
| 404 | echo as_func_ret_failure succeeded. |
| 405 | fi |
| 406 | |
| 407 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 408 | : |
| 409 | else |
| 410 | exitcode=1 |
| 411 | echo positional parameters were not saved. |
| 412 | fi |
| 413 | |
| 414 | test \$exitcode = 0") || { |
| 415 | echo No shell found that supports shell functions. |
| 416 | echo Please tell autoconf@gnu.org about your system, |
| 417 | echo including any error possibly output before this |
| 418 | echo message |
| 419 | } |
| 420 | |
| 421 | |
| 422 | |
| 423 | as_lineno_1=$LINENO |
| 424 | as_lineno_2=$LINENO |
| 425 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 426 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 427 | |
| 428 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 429 | # uniformly replaced by the line number. The first 'sed' inserts a |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 430 | # line-number line after each line using $LINENO; the second 'sed' |
| 431 | # does the real work. The second script uses 'N' to pair each |
| 432 | # line-number line with the line containing $LINENO, and appends |
| 433 | # trailing '-' during substitution so that $LINENO is not a special |
| 434 | # case at line end. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 435 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 436 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 437 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 438 | sed -n ' |
| 439 | p |
| 440 | /[$]LINENO/= |
| 441 | ' <$as_myself | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 442 | sed ' |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 443 | s/[$]LINENO.*/&-/ |
| 444 | t lineno |
| 445 | b |
| 446 | :lineno |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 447 | N |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 448 | :loop |
| 449 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 450 | t loop |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 451 | s/-\n.*// |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 452 | ' >$as_me.lineno && |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 453 | chmod +x "$as_me.lineno" || |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 454 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 455 | { (exit 1); exit 1; }; } |
| 456 | |
| 457 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 458 | # (the dirname of $[0] is not the place where we might find the |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 459 | # original and so on. Autoconf is especially sensitive to this). |
| 460 | . "./$as_me.lineno" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 461 | # Exit status is that of the last command. |
| 462 | exit |
| 463 | } |
| 464 | |
| 465 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 466 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 467 | as_dirname=dirname |
| 468 | else |
| 469 | as_dirname=false |
| 470 | fi |
| 471 | |
| 472 | ECHO_C= ECHO_N= ECHO_T= |
| 473 | case `echo -n x` in |
| 474 | -n*) |
| 475 | case `echo 'x\c'` in |
| 476 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 477 | *) ECHO_C='\c';; |
| 478 | esac;; |
| 479 | *) |
| 480 | ECHO_N='-n';; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 481 | esac |
| 482 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 483 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 484 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 485 | as_expr=expr |
| 486 | else |
| 487 | as_expr=false |
| 488 | fi |
| 489 | |
| 490 | rm -f conf$$ conf$$.exe conf$$.file |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 491 | if test -d conf$$.dir; then |
| 492 | rm -f conf$$.dir/conf$$.file |
| 493 | else |
| 494 | rm -f conf$$.dir |
| 495 | mkdir conf$$.dir |
| 496 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 497 | echo >conf$$.file |
| 498 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 499 | as_ln_s='ln -s' |
| 500 | # ... but there are two gotchas: |
| 501 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 502 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 503 | # In both cases, we have to default to `cp -p'. |
| 504 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 505 | as_ln_s='cp -p' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 506 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 507 | as_ln_s=ln |
| 508 | else |
| 509 | as_ln_s='cp -p' |
| 510 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 511 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 512 | rmdir conf$$.dir 2>/dev/null |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 513 | |
| 514 | if mkdir -p . 2>/dev/null; then |
| 515 | as_mkdir_p=: |
| 516 | else |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 517 | test -d ./-p && rmdir ./-p |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 518 | as_mkdir_p=false |
| 519 | fi |
| 520 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 521 | if test -x / >/dev/null 2>&1; then |
| 522 | as_test_x='test -x' |
| 523 | else |
| 524 | if ls -dL / >/dev/null 2>&1; then |
| 525 | as_ls_L_option=L |
| 526 | else |
| 527 | as_ls_L_option= |
| 528 | fi |
| 529 | as_test_x=' |
| 530 | eval sh -c '\'' |
| 531 | if test -d "$1"; then |
| 532 | test -d "$1/."; |
| 533 | else |
| 534 | case $1 in |
| 535 | -*)set "./$1";; |
| 536 | esac; |
| 537 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 538 | ???[sx]*):;;*)false;;esac;fi |
| 539 | '\'' sh |
| 540 | ' |
| 541 | fi |
| 542 | as_executable_p=$as_test_x |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 543 | |
| 544 | # Sed expression to map a string onto a valid CPP name. |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 545 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 546 | |
| 547 | # Sed expression to map a string onto a valid variable name. |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 548 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 549 | |
| 550 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 551 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 552 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 553 | # Check that we are running under the correct shell. |
| 554 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 555 | |
| 556 | case X$ECHO in |
| 557 | X*--fallback-echo) |
| 558 | # Remove one level of quotation (which was required for Make). |
| 559 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
| 560 | ;; |
| 561 | esac |
| 562 | |
| 563 | echo=${ECHO-echo} |
| 564 | if test "X$1" = X--no-reexec; then |
| 565 | # Discard the --no-reexec flag, and continue. |
| 566 | shift |
| 567 | elif test "X$1" = X--fallback-echo; then |
| 568 | # Avoid inline document here, it may be left over |
| 569 | : |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 570 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 571 | # Yippee, $echo works! |
| 572 | : |
| 573 | else |
| 574 | # Restart under the correct shell. |
| 575 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 576 | fi |
| 577 | |
| 578 | if test "X$1" = X--fallback-echo; then |
| 579 | # used as fallback echo |
| 580 | shift |
| 581 | cat <<EOF |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 582 | $* |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 583 | EOF |
| 584 | exit 0 |
| 585 | fi |
| 586 | |
| 587 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 588 | # if CDPATH is set. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 589 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 590 | |
| 591 | if test -z "$ECHO"; then |
| 592 | if test "X${echo_test_string+set}" != Xset; then |
| 593 | # find a string as large as possible, as long as the shell can cope with it |
| 594 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 595 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 596 | if (echo_test_string=`eval $cmd`) 2>/dev/null && |
| 597 | echo_test_string=`eval $cmd` && |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 598 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
| 599 | then |
| 600 | break |
| 601 | fi |
| 602 | done |
| 603 | fi |
| 604 | |
| 605 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 606 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 607 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 608 | : |
| 609 | else |
| 610 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 611 | # backslashes. This makes it impossible to quote backslashes using |
| 612 | # echo "$something" | sed 's/\\/\\\\/g' |
| 613 | # |
| 614 | # So, first we look for a working echo in the user's PATH. |
| 615 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 616 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 617 | for dir in $PATH /usr/ucb; do |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 618 | IFS="$lt_save_ifs" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 619 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 620 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 621 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 622 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 623 | echo="$dir/echo" |
| 624 | break |
| 625 | fi |
| 626 | done |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 627 | IFS="$lt_save_ifs" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 628 | |
| 629 | if test "X$echo" = Xecho; then |
| 630 | # We didn't find a better echo, so look for alternatives. |
| 631 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
| 632 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
| 633 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 634 | # This shell has a builtin print -r that does the trick. |
| 635 | echo='print -r' |
| 636 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
| 637 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 638 | # If we have ksh, try running configure again with it. |
| 639 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 640 | export ORIGINAL_CONFIG_SHELL |
| 641 | CONFIG_SHELL=/bin/ksh |
| 642 | export CONFIG_SHELL |
| 643 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
| 644 | else |
| 645 | # Try using printf. |
| 646 | echo='printf %s\n' |
| 647 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 648 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 649 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 650 | # Cool, printf works |
| 651 | : |
| 652 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 653 | test "X$echo_testing_string" = 'X\t' && |
| 654 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 655 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 656 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 657 | export CONFIG_SHELL |
| 658 | SHELL="$CONFIG_SHELL" |
| 659 | export SHELL |
| 660 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 661 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 662 | test "X$echo_testing_string" = 'X\t' && |
| 663 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 664 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 665 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 666 | else |
| 667 | # maybe with a smaller string... |
| 668 | prev=: |
| 669 | |
| 670 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 671 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
| 672 | then |
| 673 | break |
| 674 | fi |
| 675 | prev="$cmd" |
| 676 | done |
| 677 | |
| 678 | if test "$prev" != 'sed 50q "$0"'; then |
| 679 | echo_test_string=`eval $prev` |
| 680 | export echo_test_string |
| 681 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 682 | else |
| 683 | # Oops. We lost completely, so just stick with echo. |
| 684 | echo=echo |
| 685 | fi |
| 686 | fi |
| 687 | fi |
| 688 | fi |
| 689 | fi |
| 690 | fi |
| 691 | |
| 692 | # Copy echo and quote the copy suitably for passing to libtool from |
| 693 | # the Makefile, instead of quoting the original, which is used later. |
| 694 | ECHO=$echo |
| 695 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 696 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
| 697 | fi |
| 698 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 699 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 700 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 701 | |
| 702 | tagnames=${tagnames+${tagnames},}CXX |
| 703 | |
| 704 | tagnames=${tagnames+${tagnames},}F77 |
| 705 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 706 | exec 7<&0 </dev/null 6>&1 |
| 707 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 708 | # Name of the host. |
| 709 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 710 | # so uname gets run too. |
| 711 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 712 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 713 | # |
| 714 | # Initializations. |
| 715 | # |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 716 | ac_default_prefix=/usr/local |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 717 | ac_clean_files= |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 718 | ac_config_libobj_dir=. |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 719 | LIBOBJS= |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 720 | cross_compiling=no |
| 721 | subdirs= |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 722 | MFLAGS= |
| 723 | MAKEFLAGS= |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 724 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 725 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 726 | # Identity of this package. |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame^] | 727 | PACKAGE_NAME='sqlite' |
| 728 | PACKAGE_TARNAME='sqlite' |
| 729 | PACKAGE_VERSION='3.5.6' |
| 730 | PACKAGE_STRING='sqlite 3.5.6' |
| 731 | PACKAGE_BUGREPORT='' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 732 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 733 | # Factoring default headers for most tests. |
| 734 | ac_includes_default="\ |
| 735 | #include <stdio.h> |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 736 | #ifdef HAVE_SYS_TYPES_H |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 737 | # include <sys/types.h> |
| 738 | #endif |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 739 | #ifdef HAVE_SYS_STAT_H |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 740 | # include <sys/stat.h> |
| 741 | #endif |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 742 | #ifdef STDC_HEADERS |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 743 | # include <stdlib.h> |
| 744 | # include <stddef.h> |
| 745 | #else |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 746 | # ifdef HAVE_STDLIB_H |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 747 | # include <stdlib.h> |
| 748 | # endif |
| 749 | #endif |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 750 | #ifdef HAVE_STRING_H |
| 751 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 752 | # include <memory.h> |
| 753 | # endif |
| 754 | # include <string.h> |
| 755 | #endif |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 756 | #ifdef HAVE_STRINGS_H |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 757 | # include <strings.h> |
| 758 | #endif |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 759 | #ifdef HAVE_INTTYPES_H |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 760 | # include <inttypes.h> |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 761 | #endif |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 762 | #ifdef HAVE_STDINT_H |
| 763 | # include <stdint.h> |
| 764 | #endif |
| 765 | #ifdef HAVE_UNISTD_H |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 766 | # include <unistd.h> |
| 767 | #endif" |
| 768 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 769 | ac_subst_vars='SHELL |
| 770 | PATH_SEPARATOR |
| 771 | PACKAGE_NAME |
| 772 | PACKAGE_TARNAME |
| 773 | PACKAGE_VERSION |
| 774 | PACKAGE_STRING |
| 775 | PACKAGE_BUGREPORT |
| 776 | exec_prefix |
| 777 | prefix |
| 778 | program_transform_name |
| 779 | bindir |
| 780 | sbindir |
| 781 | libexecdir |
| 782 | datarootdir |
| 783 | datadir |
| 784 | sysconfdir |
| 785 | sharedstatedir |
| 786 | localstatedir |
| 787 | includedir |
| 788 | oldincludedir |
| 789 | docdir |
| 790 | infodir |
| 791 | htmldir |
| 792 | dvidir |
| 793 | pdfdir |
| 794 | psdir |
| 795 | libdir |
| 796 | localedir |
| 797 | mandir |
| 798 | DEFS |
| 799 | ECHO_C |
| 800 | ECHO_N |
| 801 | ECHO_T |
| 802 | LIBS |
| 803 | build_alias |
| 804 | host_alias |
| 805 | target_alias |
| 806 | build |
| 807 | build_cpu |
| 808 | build_vendor |
| 809 | build_os |
| 810 | host |
| 811 | host_cpu |
| 812 | host_vendor |
| 813 | host_os |
| 814 | CC |
| 815 | CFLAGS |
| 816 | LDFLAGS |
| 817 | CPPFLAGS |
| 818 | ac_ct_CC |
| 819 | EXEEXT |
| 820 | OBJEXT |
| 821 | GREP |
| 822 | EGREP |
| 823 | LN_S |
| 824 | ECHO |
| 825 | AR |
| 826 | RANLIB |
| 827 | STRIP |
| 828 | CPP |
| 829 | CXX |
| 830 | CXXFLAGS |
| 831 | ac_ct_CXX |
| 832 | CXXCPP |
| 833 | F77 |
| 834 | FFLAGS |
| 835 | ac_ct_F77 |
| 836 | LIBTOOL |
| 837 | INSTALL_PROGRAM |
| 838 | INSTALL_SCRIPT |
| 839 | INSTALL_DATA |
| 840 | AWK |
| 841 | program_prefix |
| 842 | VERSION |
| 843 | RELEASE |
| 844 | VERSION_NUMBER |
| 845 | BUILD_CC |
| 846 | BUILD_CFLAGS |
| 847 | SQLITE_THREADSAFE |
| 848 | TARGET_THREAD_LIB |
| 849 | XTHREADCONNECT |
| 850 | THREADSOVERRIDELOCKS |
| 851 | ALLOWRELEASE |
| 852 | TEMP_STORE |
| 853 | BUILD_EXEEXT |
| 854 | OS_UNIX |
| 855 | OS_WIN |
| 856 | OS_OS2 |
| 857 | TARGET_EXEEXT |
| 858 | TCL_VERSION |
| 859 | TCL_BIN_DIR |
| 860 | TCL_SRC_DIR |
| 861 | TCL_LIBS |
| 862 | TCL_INCLUDE_SPEC |
| 863 | TCL_LIB_FILE |
| 864 | TCL_LIB_FLAG |
| 865 | TCL_LIB_SPEC |
| 866 | TCL_STUB_LIB_FILE |
| 867 | TCL_STUB_LIB_FLAG |
| 868 | TCL_STUB_LIB_SPEC |
| 869 | HAVE_TCL |
| 870 | TARGET_READLINE_LIBS |
| 871 | TARGET_READLINE_INC |
| 872 | TARGET_HAVE_READLINE |
| 873 | TARGET_DEBUG |
| 874 | USE_AMALGAMATION |
mlcreech | a4edab0 | 2008-03-06 04:14:17 +0000 | [diff] [blame] | 875 | LOADEXTENSION_FLAGS |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 876 | LIBOBJS |
| 877 | LTLIBOBJS' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 878 | ac_subst_files='' |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 879 | ac_precious_vars='build_alias |
| 880 | host_alias |
| 881 | target_alias |
| 882 | CC |
| 883 | CFLAGS |
| 884 | LDFLAGS |
| 885 | LIBS |
| 886 | CPPFLAGS |
| 887 | CPP |
| 888 | CXX |
| 889 | CXXFLAGS |
| 890 | CCC |
| 891 | CXXCPP |
| 892 | F77 |
| 893 | FFLAGS' |
| 894 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 895 | |
| 896 | # Initialize some variables set by options. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 897 | ac_init_help= |
| 898 | ac_init_version=false |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 899 | # The variables have the same names as the options, with |
| 900 | # dashes changed to underlines. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 901 | cache_file=/dev/null |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 902 | exec_prefix=NONE |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 903 | no_create= |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 904 | no_recursion= |
| 905 | prefix=NONE |
| 906 | program_prefix=NONE |
| 907 | program_suffix=NONE |
| 908 | program_transform_name=s,x,x, |
| 909 | silent= |
| 910 | site= |
| 911 | srcdir= |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 912 | verbose= |
| 913 | x_includes=NONE |
| 914 | x_libraries=NONE |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 915 | |
| 916 | # Installation directory options. |
| 917 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 918 | # and all the variables that are supposed to be based on exec_prefix |
| 919 | # by default will actually change. |
| 920 | # Use braces instead of parens because sh, perl, etc. also accept them. |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 921 | # (The list follows the same order as the GNU Coding Standards.) |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 922 | bindir='${exec_prefix}/bin' |
| 923 | sbindir='${exec_prefix}/sbin' |
| 924 | libexecdir='${exec_prefix}/libexec' |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 925 | datarootdir='${prefix}/share' |
| 926 | datadir='${datarootdir}' |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 927 | sysconfdir='${prefix}/etc' |
| 928 | sharedstatedir='${prefix}/com' |
| 929 | localstatedir='${prefix}/var' |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 930 | includedir='${prefix}/include' |
| 931 | oldincludedir='/usr/include' |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame^] | 932 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 933 | infodir='${datarootdir}/info' |
| 934 | htmldir='${docdir}' |
| 935 | dvidir='${docdir}' |
| 936 | pdfdir='${docdir}' |
| 937 | psdir='${docdir}' |
| 938 | libdir='${exec_prefix}/lib' |
| 939 | localedir='${datarootdir}/locale' |
| 940 | mandir='${datarootdir}/man' |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 941 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 942 | ac_prev= |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 943 | ac_dashdash= |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 944 | for ac_option |
| 945 | do |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 946 | # If the previous option needs an argument, assign it. |
| 947 | if test -n "$ac_prev"; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 948 | eval $ac_prev=\$ac_option |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 949 | ac_prev= |
| 950 | continue |
| 951 | fi |
| 952 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 953 | case $ac_option in |
| 954 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 955 | *) ac_optarg=yes ;; |
| 956 | esac |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 957 | |
| 958 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 959 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 960 | case $ac_dashdash$ac_option in |
| 961 | --) |
| 962 | ac_dashdash=yes ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 963 | |
| 964 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 965 | ac_prev=bindir ;; |
| 966 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 967 | bindir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 968 | |
| 969 | -build | --build | --buil | --bui | --bu) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 970 | ac_prev=build_alias ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 971 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 972 | build_alias=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 973 | |
| 974 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 975 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 976 | ac_prev=cache_file ;; |
| 977 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 978 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 979 | cache_file=$ac_optarg ;; |
| 980 | |
| 981 | --config-cache | -C) |
| 982 | cache_file=config.cache ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 983 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 984 | -datadir | --datadir | --datadi | --datad) |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 985 | ac_prev=datadir ;; |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 986 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 987 | datadir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 988 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 989 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 990 | | --dataroo | --dataro | --datar) |
| 991 | ac_prev=datarootdir ;; |
| 992 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 993 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 994 | datarootdir=$ac_optarg ;; |
| 995 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 996 | -disable-* | --disable-*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 997 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 998 | # Reject names that are not valid shell variable names. |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 999 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1000 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 1001 | { (exit 1); exit 1; }; } |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1002 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 1003 | eval enable_$ac_feature=no ;; |
| 1004 | |
| 1005 | -docdir | --docdir | --docdi | --doc | --do) |
| 1006 | ac_prev=docdir ;; |
| 1007 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1008 | docdir=$ac_optarg ;; |
| 1009 | |
| 1010 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1011 | ac_prev=dvidir ;; |
| 1012 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1013 | dvidir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1014 | |
| 1015 | -enable-* | --enable-*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1016 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1017 | # Reject names that are not valid shell variable names. |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1018 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1019 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 1020 | { (exit 1); exit 1; }; } |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1021 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
| 1022 | eval enable_$ac_feature=\$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1023 | |
| 1024 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1025 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1026 | | --exec | --exe | --ex) |
| 1027 | ac_prev=exec_prefix ;; |
| 1028 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1029 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1030 | | --exec=* | --exe=* | --ex=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1031 | exec_prefix=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1032 | |
| 1033 | -gas | --gas | --ga | --g) |
| 1034 | # Obsolete; use --with-gas. |
| 1035 | with_gas=yes ;; |
| 1036 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1037 | -help | --help | --hel | --he | -h) |
| 1038 | ac_init_help=long ;; |
| 1039 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1040 | ac_init_help=recursive ;; |
| 1041 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1042 | ac_init_help=short ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1043 | |
| 1044 | -host | --host | --hos | --ho) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1045 | ac_prev=host_alias ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1046 | -host=* | --host=* | --hos=* | --ho=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1047 | host_alias=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1048 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1049 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1050 | ac_prev=htmldir ;; |
| 1051 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1052 | | --ht=*) |
| 1053 | htmldir=$ac_optarg ;; |
| 1054 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1055 | -includedir | --includedir | --includedi | --included | --include \ |
| 1056 | | --includ | --inclu | --incl | --inc) |
| 1057 | ac_prev=includedir ;; |
| 1058 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1059 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1060 | includedir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1061 | |
| 1062 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1063 | ac_prev=infodir ;; |
| 1064 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1065 | infodir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1066 | |
| 1067 | -libdir | --libdir | --libdi | --libd) |
| 1068 | ac_prev=libdir ;; |
| 1069 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1070 | libdir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1071 | |
| 1072 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1073 | | --libexe | --libex | --libe) |
| 1074 | ac_prev=libexecdir ;; |
| 1075 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1076 | | --libexe=* | --libex=* | --libe=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1077 | libexecdir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1078 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1079 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1080 | ac_prev=localedir ;; |
| 1081 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1082 | localedir=$ac_optarg ;; |
| 1083 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1084 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1085 | | --localstate | --localstat | --localsta | --localst | --locals) |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1086 | ac_prev=localstatedir ;; |
| 1087 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1088 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1089 | localstatedir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1090 | |
| 1091 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1092 | ac_prev=mandir ;; |
| 1093 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1094 | mandir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1095 | |
| 1096 | -nfp | --nfp | --nf) |
| 1097 | # Obsolete; use --without-fp. |
| 1098 | with_fp=no ;; |
| 1099 | |
| 1100 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1101 | | --no-cr | --no-c | -n) |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1102 | no_create=yes ;; |
| 1103 | |
| 1104 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1105 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1106 | no_recursion=yes ;; |
| 1107 | |
| 1108 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1109 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1110 | | --oldin | --oldi | --old | --ol | --o) |
| 1111 | ac_prev=oldincludedir ;; |
| 1112 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1113 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1114 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1115 | oldincludedir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1116 | |
| 1117 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1118 | ac_prev=prefix ;; |
| 1119 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1120 | prefix=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1121 | |
| 1122 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1123 | | --program-pre | --program-pr | --program-p) |
| 1124 | ac_prev=program_prefix ;; |
| 1125 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1126 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1127 | program_prefix=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1128 | |
| 1129 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1130 | | --program-suf | --program-su | --program-s) |
| 1131 | ac_prev=program_suffix ;; |
| 1132 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1133 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1134 | program_suffix=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1135 | |
| 1136 | -program-transform-name | --program-transform-name \ |
| 1137 | | --program-transform-nam | --program-transform-na \ |
| 1138 | | --program-transform-n | --program-transform- \ |
| 1139 | | --program-transform | --program-transfor \ |
| 1140 | | --program-transfo | --program-transf \ |
| 1141 | | --program-trans | --program-tran \ |
| 1142 | | --progr-tra | --program-tr | --program-t) |
| 1143 | ac_prev=program_transform_name ;; |
| 1144 | -program-transform-name=* | --program-transform-name=* \ |
| 1145 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1146 | | --program-transform-n=* | --program-transform-=* \ |
| 1147 | | --program-transform=* | --program-transfor=* \ |
| 1148 | | --program-transfo=* | --program-transf=* \ |
| 1149 | | --program-trans=* | --program-tran=* \ |
| 1150 | | --progr-tra=* | --program-tr=* | --program-t=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1151 | program_transform_name=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1152 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1153 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1154 | ac_prev=pdfdir ;; |
| 1155 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1156 | pdfdir=$ac_optarg ;; |
| 1157 | |
| 1158 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1159 | ac_prev=psdir ;; |
| 1160 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1161 | psdir=$ac_optarg ;; |
| 1162 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1163 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1164 | | -silent | --silent | --silen | --sile | --sil) |
| 1165 | silent=yes ;; |
| 1166 | |
| 1167 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1168 | ac_prev=sbindir ;; |
| 1169 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1170 | | --sbi=* | --sb=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1171 | sbindir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1172 | |
| 1173 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1174 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1175 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1176 | | --sha | --sh) |
| 1177 | ac_prev=sharedstatedir ;; |
| 1178 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1179 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1180 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1181 | | --sha=* | --sh=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1182 | sharedstatedir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1183 | |
| 1184 | -site | --site | --sit) |
| 1185 | ac_prev=site ;; |
| 1186 | -site=* | --site=* | --sit=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1187 | site=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1188 | |
| 1189 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1190 | ac_prev=srcdir ;; |
| 1191 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1192 | srcdir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1193 | |
| 1194 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1195 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1196 | ac_prev=sysconfdir ;; |
| 1197 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1198 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1199 | sysconfdir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1200 | |
| 1201 | -target | --target | --targe | --targ | --tar | --ta | --t) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1202 | ac_prev=target_alias ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1203 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1204 | target_alias=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1205 | |
| 1206 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1207 | verbose=yes ;; |
| 1208 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1209 | -version | --version | --versio | --versi | --vers | -V) |
| 1210 | ac_init_version=: ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1211 | |
| 1212 | -with-* | --with-*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1213 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1214 | # Reject names that are not valid shell variable names. |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1215 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1216 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1217 | { (exit 1); exit 1; }; } |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1218 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1219 | eval with_$ac_package=\$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1220 | |
| 1221 | -without-* | --without-*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1222 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1223 | # Reject names that are not valid shell variable names. |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1224 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1225 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1226 | { (exit 1); exit 1; }; } |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1227 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
| 1228 | eval with_$ac_package=no ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1229 | |
| 1230 | --x) |
| 1231 | # Obsolete; use --with-x. |
| 1232 | with_x=yes ;; |
| 1233 | |
| 1234 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1235 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1236 | ac_prev=x_includes ;; |
| 1237 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1238 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1239 | x_includes=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1240 | |
| 1241 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1242 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1243 | ac_prev=x_libraries ;; |
| 1244 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1245 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1246 | x_libraries=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1247 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1248 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1249 | Try \`$0 --help' for more information." >&2 |
| 1250 | { (exit 1); exit 1; }; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1251 | ;; |
| 1252 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1253 | *=*) |
| 1254 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1255 | # Reject names that are not valid shell variable names. |
| 1256 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1257 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1258 | { (exit 1); exit 1; }; } |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1259 | eval $ac_envvar=\$ac_optarg |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1260 | export $ac_envvar ;; |
| 1261 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1262 | *) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1263 | # FIXME: should be removed in autoconf 3.0. |
| 1264 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1265 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1266 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1267 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1268 | ;; |
| 1269 | |
| 1270 | esac |
| 1271 | done |
| 1272 | |
| 1273 | if test -n "$ac_prev"; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1274 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1275 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1276 | { (exit 1); exit 1; }; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1277 | fi |
| 1278 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1279 | # Be sure to have absolute directory names. |
| 1280 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1281 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1282 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1283 | libdir localedir mandir |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1284 | do |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1285 | eval ac_val=\$$ac_var |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1286 | case $ac_val in |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1287 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1288 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1289 | esac |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1290 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1291 | { (exit 1); exit 1; }; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1292 | done |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1293 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1294 | # There might be people who depend on the old broken behavior: `$host' |
| 1295 | # used to hold the argument of --host etc. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1296 | # FIXME: To remove some day. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1297 | build=$build_alias |
| 1298 | host=$host_alias |
| 1299 | target=$target_alias |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1300 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1301 | # FIXME: To remove some day. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1302 | if test "x$host_alias" != x; then |
| 1303 | if test "x$build_alias" = x; then |
| 1304 | cross_compiling=maybe |
| 1305 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1306 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1307 | elif test "x$build_alias" != "x$host_alias"; then |
| 1308 | cross_compiling=yes |
| 1309 | fi |
| 1310 | fi |
| 1311 | |
| 1312 | ac_tool_prefix= |
| 1313 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1314 | |
| 1315 | test "$silent" = yes && exec 6>/dev/null |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1316 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1317 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1318 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1319 | ac_ls_di=`ls -di .` && |
| 1320 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1321 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1322 | { (exit 1); exit 1; }; } |
| 1323 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1324 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1325 | { (exit 1); exit 1; }; } |
| 1326 | |
| 1327 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1328 | # Find the source files, if location was not specified. |
| 1329 | if test -z "$srcdir"; then |
| 1330 | ac_srcdir_defaulted=yes |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1331 | # Try the directory containing this script, then the parent directory. |
| 1332 | ac_confdir=`$as_dirname -- "$0" || |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1333 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1334 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1335 | X"$0" : 'X\(//\)$' \| \ |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1336 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1337 | echo X"$0" | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1338 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1339 | s//\1/ |
| 1340 | q |
| 1341 | } |
| 1342 | /^X\(\/\/\)[^/].*/{ |
| 1343 | s//\1/ |
| 1344 | q |
| 1345 | } |
| 1346 | /^X\(\/\/\)$/{ |
| 1347 | s//\1/ |
| 1348 | q |
| 1349 | } |
| 1350 | /^X\(\/\).*/{ |
| 1351 | s//\1/ |
| 1352 | q |
| 1353 | } |
| 1354 | s/.*/./; q'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1355 | srcdir=$ac_confdir |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1356 | if test ! -r "$srcdir/$ac_unique_file"; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1357 | srcdir=.. |
| 1358 | fi |
| 1359 | else |
| 1360 | ac_srcdir_defaulted=no |
| 1361 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1362 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1363 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1364 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1365 | { (exit 1); exit 1; }; } |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 1366 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1367 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1368 | ac_abs_confdir=`( |
| 1369 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
drh | 613a0fe | 2007-11-23 17:31:17 +0000 | [diff] [blame] | 1370 | { (exit 1); exit 1; }; } |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1371 | pwd)` |
| 1372 | # When building in place, set srcdir=. |
| 1373 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1374 | srcdir=. |
| 1375 | fi |
| 1376 | # Remove unnecessary trailing slashes from srcdir. |
| 1377 | # Double slashes in file names in object file debugging info |
| 1378 | # mess up M-x gdb in Emacs. |
| 1379 | case $srcdir in |
| 1380 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1381 | esac |
| 1382 | for ac_var in $ac_precious_vars; do |
| 1383 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1384 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1385 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1386 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1387 | done |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1388 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1389 | # |
| 1390 | # Report the --help message. |
| 1391 | # |
| 1392 | if test "$ac_init_help" = "long"; then |
| 1393 | # Omit some internal or obsolete options to make the list less imposing. |
| 1394 | # This message is too long to be a string in the A/UX 3.1 sh. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1395 | cat <<_ACEOF |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame^] | 1396 | \`configure' configures sqlite 3.5.6 to adapt to many kinds of systems. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1397 | |
| 1398 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1399 | |
| 1400 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1401 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1402 | |
| 1403 | Defaults for the options are specified in brackets. |
| 1404 | |
| 1405 | Configuration: |
| 1406 | -h, --help display this help and exit |
| 1407 | --help=short display options specific to this package |
| 1408 | --help=recursive display the short help of all the included packages |
| 1409 | -V, --version display version information and exit |
| 1410 | -q, --quiet, --silent do not print \`checking...' messages |
| 1411 | --cache-file=FILE cache test results in FILE [disabled] |
| 1412 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1413 | -n, --no-create do not create output files |
| 1414 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1415 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1416 | Installation directories: |
| 1417 | --prefix=PREFIX install architecture-independent files in PREFIX |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1418 | [$ac_default_prefix] |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1419 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1420 | [PREFIX] |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1421 | |
| 1422 | By default, \`make install' will install all the files in |
| 1423 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1424 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1425 | for instance \`--prefix=\$HOME'. |
| 1426 | |
| 1427 | For better control, use the options below. |
| 1428 | |
| 1429 | Fine tuning of the installation directories: |
| 1430 | --bindir=DIR user executables [EPREFIX/bin] |
| 1431 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1432 | --libexecdir=DIR program executables [EPREFIX/libexec] |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1433 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1434 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1435 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1436 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1437 | --includedir=DIR C header files [PREFIX/include] |
| 1438 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1439 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1440 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1441 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1442 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1443 | --mandir=DIR man documentation [DATAROOTDIR/man] |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame^] | 1444 | --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite] |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1445 | --htmldir=DIR html documentation [DOCDIR] |
| 1446 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1447 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1448 | --psdir=DIR ps documentation [DOCDIR] |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1449 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1450 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1451 | cat <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1452 | |
| 1453 | System types: |
| 1454 | --build=BUILD configure for building on BUILD [guessed] |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1455 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1456 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1457 | fi |
| 1458 | |
| 1459 | if test -n "$ac_init_help"; then |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame^] | 1460 | case $ac_init_help in |
| 1461 | short | recursive ) echo "Configuration of sqlite 3.5.6:";; |
| 1462 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1463 | cat <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1464 | |
| 1465 | Optional Features: |
| 1466 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1467 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1468 | --enable-shared[=PKGS] build shared libraries [default=yes] |
| 1469 | --enable-static[=PKGS] build static libraries [default=yes] |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 1470 | --enable-fast-install[=PKGS] |
| 1471 | optimize for fast installation [default=yes] |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1472 | --disable-libtool-lock avoid locking (might break parallel builds) |
drh | 94e4f82 | 2006-02-15 02:00:25 +0000 | [diff] [blame] | 1473 | --enable-threadsafe Support threadsafe operation |
| 1474 | --enable-cross-thread-connections |
| 1475 | Allow connection sharing across threads |
| 1476 | --enable-threads-override-locks |
| 1477 | Threads can override each others locks |
| 1478 | --enable-releasemode Support libtool link to release mode |
| 1479 | --enable-tempstore Use an in-ram database for temporary tables |
| 1480 | (never,no,yes,always) |
| 1481 | --disable-tcl do not build TCL extension |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 1482 | --disable-readline disable readline support [default=detect] |
drh | 94e4f82 | 2006-02-15 02:00:25 +0000 | [diff] [blame] | 1483 | --enable-debug enable debugging & verbose explain |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1484 | --disable-amalgamation Disable the amalgamation and instead build all files |
| 1485 | separately (currently needed to build the test |
| 1486 | fixture) |
mlcreech | a4edab0 | 2008-03-06 04:14:17 +0000 | [diff] [blame] | 1487 | --enable-load-extension Enable loading of external extensions |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1488 | |
| 1489 | Optional Packages: |
| 1490 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1491 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 1492 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1493 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1494 | both] |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1495 | --with-tags[=TAGS] include additional configurations [automatic] |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1496 | --with-hints=FILE Read configuration options from FILE |
drh | 94e4f82 | 2006-02-15 02:00:25 +0000 | [diff] [blame] | 1497 | --with-tcl=DIR directory containing tcl configuration |
| 1498 | (tclConfig.sh) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 1499 | --with-readline-lib specify readline library |
| 1500 | --with-readline-inc specify readline include paths |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1501 | |
| 1502 | Some influential environment variables: |
| 1503 | CC C compiler command |
| 1504 | CFLAGS C compiler flags |
| 1505 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1506 | nonstandard directory <lib dir> |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1507 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1508 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1509 | you have headers in a nonstandard directory <include dir> |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1510 | CPP C preprocessor |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 1511 | CXX C++ compiler command |
| 1512 | CXXFLAGS C++ compiler flags |
| 1513 | CXXCPP C++ preprocessor |
| 1514 | F77 Fortran 77 compiler command |
| 1515 | FFLAGS Fortran 77 compiler flags |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1516 | |
| 1517 | Use these variables to override the choices made by `configure' or to help |
| 1518 | it to find libraries and programs with nonstandard names/locations. |
| 1519 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1520 | _ACEOF |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1521 | ac_status=$? |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1522 | fi |
| 1523 | |
| 1524 | if test "$ac_init_help" = "recursive"; then |
| 1525 | # If there are subdirs, report their specific --help. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1526 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1527 | test -d "$ac_dir" || continue |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1528 | ac_builddir=. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1529 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1530 | case "$ac_dir" in |
| 1531 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1532 | *) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1533 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1534 | # A ".." for each directory in $ac_dir_suffix. |
| 1535 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1536 | case $ac_top_builddir_sub in |
| 1537 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1538 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1539 | esac ;; |
| 1540 | esac |
| 1541 | ac_abs_top_builddir=$ac_pwd |
| 1542 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1543 | # for backward compatibility: |
| 1544 | ac_top_builddir=$ac_top_build_prefix |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1545 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1546 | case $srcdir in |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1547 | .) # We are building in place. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1548 | ac_srcdir=. |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1549 | ac_top_srcdir=$ac_top_builddir_sub |
| 1550 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1551 | [\\/]* | ?:[\\/]* ) # Absolute name. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1552 | ac_srcdir=$srcdir$ac_dir_suffix; |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1553 | ac_top_srcdir=$srcdir |
| 1554 | ac_abs_top_srcdir=$srcdir ;; |
| 1555 | *) # Relative name. |
| 1556 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1557 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1558 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1559 | esac |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1560 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1561 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1562 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1563 | # Check for guested configure. |
| 1564 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1565 | echo && |
| 1566 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1567 | elif test -f "$ac_srcdir/configure"; then |
| 1568 | echo && |
| 1569 | $SHELL "$ac_srcdir/configure" --help=recursive |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1570 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1571 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1572 | fi || ac_status=$? |
| 1573 | cd "$ac_pwd" || { ac_status=$?; break; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1574 | done |
| 1575 | fi |
| 1576 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1577 | test -n "$ac_init_help" && exit $ac_status |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1578 | if $ac_init_version; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1579 | cat <<\_ACEOF |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame^] | 1580 | sqlite configure 3.5.6 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1581 | generated by GNU Autoconf 2.61 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1582 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1583 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1584 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1585 | This configure script is free software; the Free Software Foundation |
| 1586 | gives unlimited permission to copy, distribute and modify it. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1587 | _ACEOF |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1588 | exit |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1589 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1590 | cat >config.log <<_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1591 | This file contains any messages produced by compilers while |
| 1592 | running configure, to aid debugging if configure makes a mistake. |
| 1593 | |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame^] | 1594 | It was created by sqlite $as_me 3.5.6, which was |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1595 | generated by GNU Autoconf 2.61. Invocation command line was |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1596 | |
| 1597 | $ $0 $@ |
| 1598 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1599 | _ACEOF |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1600 | exec 5>>config.log |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1601 | { |
| 1602 | cat <<_ASUNAME |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1603 | ## --------- ## |
| 1604 | ## Platform. ## |
| 1605 | ## --------- ## |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1606 | |
| 1607 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1608 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1609 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1610 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1611 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1612 | |
| 1613 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1614 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1615 | |
| 1616 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1617 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1618 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1619 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1620 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1621 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1622 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1623 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1624 | _ASUNAME |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1625 | |
| 1626 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1627 | for as_dir in $PATH |
| 1628 | do |
| 1629 | IFS=$as_save_IFS |
| 1630 | test -z "$as_dir" && as_dir=. |
| 1631 | echo "PATH: $as_dir" |
| 1632 | done |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1633 | IFS=$as_save_IFS |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1634 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1635 | } >&5 |
| 1636 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1637 | cat >&5 <<_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1638 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1639 | |
| 1640 | ## ----------- ## |
| 1641 | ## Core tests. ## |
| 1642 | ## ----------- ## |
| 1643 | |
| 1644 | _ACEOF |
| 1645 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1646 | |
| 1647 | # Keep a trace of the command line. |
| 1648 | # Strip out --no-create and --no-recursion so they do not pile up. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1649 | # Strip out --silent because we don't want to record it for future runs. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1650 | # Also quote any args containing shell meta-characters. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1651 | # Make two passes to allow for proper duplicate-argument suppression. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1652 | ac_configure_args= |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1653 | ac_configure_args0= |
| 1654 | ac_configure_args1= |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1655 | ac_must_keep_next=false |
| 1656 | for ac_pass in 1 2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1657 | do |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1658 | for ac_arg |
| 1659 | do |
| 1660 | case $ac_arg in |
| 1661 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1662 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1663 | | -silent | --silent | --silen | --sile | --sil) |
| 1664 | continue ;; |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1665 | *\'*) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1666 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1667 | esac |
| 1668 | case $ac_pass in |
| 1669 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1670 | 2) |
| 1671 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1672 | if test $ac_must_keep_next = true; then |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1673 | ac_must_keep_next=false # Got value, back to normal. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1674 | else |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1675 | case $ac_arg in |
| 1676 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1677 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1678 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1679 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1680 | case "$ac_configure_args0 " in |
| 1681 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1682 | esac |
| 1683 | ;; |
| 1684 | -* ) ac_must_keep_next=true ;; |
| 1685 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1686 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1687 | ac_configure_args="$ac_configure_args '$ac_arg'" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1688 | ;; |
| 1689 | esac |
| 1690 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1691 | done |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1692 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1693 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1694 | |
| 1695 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1696 | # config.log. We remove comments because anyway the quotes in there |
| 1697 | # would cause problems or look ugly. |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1698 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1699 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1700 | trap 'exit_status=$? |
| 1701 | # Save into config.log some information that might help in debugging. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1702 | { |
| 1703 | echo |
| 1704 | |
| 1705 | cat <<\_ASBOX |
| 1706 | ## ---------------- ## |
| 1707 | ## Cache variables. ## |
| 1708 | ## ---------------- ## |
| 1709 | _ASBOX |
| 1710 | echo |
| 1711 | # The following way of writing the cache mishandles newlines in values, |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1712 | ( |
| 1713 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1714 | eval ac_val=\$$ac_var |
| 1715 | case $ac_val in #( |
| 1716 | *${as_nl}*) |
| 1717 | case $ac_var in #( |
| 1718 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1719 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1720 | esac |
| 1721 | case $ac_var in #( |
| 1722 | _ | IFS | as_nl) ;; #( |
| 1723 | *) $as_unset $ac_var ;; |
| 1724 | esac ;; |
| 1725 | esac |
| 1726 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1727 | (set) 2>&1 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1728 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1729 | *${as_nl}ac_space=\ *) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1730 | sed -n \ |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1731 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1732 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1733 | ;; #( |
drh | 613a0fe | 2007-11-23 17:31:17 +0000 | [diff] [blame] | 1734 | *) |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1735 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
drh | 613a0fe | 2007-11-23 17:31:17 +0000 | [diff] [blame] | 1736 | ;; |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1737 | esac | |
| 1738 | sort |
| 1739 | ) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1740 | echo |
| 1741 | |
| 1742 | cat <<\_ASBOX |
| 1743 | ## ----------------- ## |
| 1744 | ## Output variables. ## |
| 1745 | ## ----------------- ## |
| 1746 | _ASBOX |
| 1747 | echo |
| 1748 | for ac_var in $ac_subst_vars |
| 1749 | do |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1750 | eval ac_val=\$$ac_var |
| 1751 | case $ac_val in |
| 1752 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1753 | esac |
| 1754 | echo "$ac_var='\''$ac_val'\''" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1755 | done | sort |
| 1756 | echo |
| 1757 | |
| 1758 | if test -n "$ac_subst_files"; then |
| 1759 | cat <<\_ASBOX |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1760 | ## ------------------- ## |
| 1761 | ## File substitutions. ## |
| 1762 | ## ------------------- ## |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1763 | _ASBOX |
| 1764 | echo |
| 1765 | for ac_var in $ac_subst_files |
| 1766 | do |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1767 | eval ac_val=\$$ac_var |
| 1768 | case $ac_val in |
| 1769 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1770 | esac |
| 1771 | echo "$ac_var='\''$ac_val'\''" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1772 | done | sort |
| 1773 | echo |
| 1774 | fi |
| 1775 | |
| 1776 | if test -s confdefs.h; then |
| 1777 | cat <<\_ASBOX |
| 1778 | ## ----------- ## |
| 1779 | ## confdefs.h. ## |
| 1780 | ## ----------- ## |
| 1781 | _ASBOX |
| 1782 | echo |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1783 | cat confdefs.h |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1784 | echo |
| 1785 | fi |
| 1786 | test "$ac_signal" != 0 && |
| 1787 | echo "$as_me: caught signal $ac_signal" |
| 1788 | echo "$as_me: exit $exit_status" |
| 1789 | } >&5 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1790 | rm -f core *.core core.conftest.* && |
| 1791 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1792 | exit $exit_status |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1793 | ' 0 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1794 | for ac_signal in 1 2 13 15; do |
| 1795 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1796 | done |
| 1797 | ac_signal=0 |
| 1798 | |
| 1799 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1800 | rm -f -r conftest* confdefs.h |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1801 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1802 | # Predefined preprocessor variables. |
| 1803 | |
| 1804 | cat >>confdefs.h <<_ACEOF |
| 1805 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1806 | _ACEOF |
| 1807 | |
| 1808 | |
| 1809 | cat >>confdefs.h <<_ACEOF |
| 1810 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1811 | _ACEOF |
| 1812 | |
| 1813 | |
| 1814 | cat >>confdefs.h <<_ACEOF |
| 1815 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1816 | _ACEOF |
| 1817 | |
| 1818 | |
| 1819 | cat >>confdefs.h <<_ACEOF |
| 1820 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1821 | _ACEOF |
| 1822 | |
| 1823 | |
| 1824 | cat >>confdefs.h <<_ACEOF |
| 1825 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1826 | _ACEOF |
| 1827 | |
| 1828 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1829 | # Let the site file select an alternate cache file if it wants to. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1830 | # Prefer explicitly selected file to automatically selected ones. |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1831 | if test -n "$CONFIG_SITE"; then |
| 1832 | set x "$CONFIG_SITE" |
| 1833 | elif test "x$prefix" != xNONE; then |
| 1834 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1835 | else |
| 1836 | set x "$ac_default_prefix/share/config.site" \ |
| 1837 | "$ac_default_prefix/etc/config.site" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1838 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1839 | shift |
| 1840 | for ac_site_file |
| 1841 | do |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1842 | if test -r "$ac_site_file"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1843 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1844 | echo "$as_me: loading site script $ac_site_file" >&6;} |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1845 | sed 's/^/| /' "$ac_site_file" >&5 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1846 | . "$ac_site_file" |
| 1847 | fi |
| 1848 | done |
| 1849 | |
| 1850 | if test -r "$cache_file"; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1851 | # Some versions of bash will fail to source /dev/null (special |
| 1852 | # files actually), so we avoid doing that. |
| 1853 | if test -f "$cache_file"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1854 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1855 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1856 | case $cache_file in |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1857 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1858 | *) . "./$cache_file";; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1859 | esac |
| 1860 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1861 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1862 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1863 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1864 | >$cache_file |
| 1865 | fi |
| 1866 | |
| 1867 | # Check that the precious variables saved in the cache have kept the same |
| 1868 | # value. |
| 1869 | ac_cache_corrupted=false |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1870 | for ac_var in $ac_precious_vars; do |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1871 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1872 | eval ac_new_set=\$ac_env_${ac_var}_set |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1873 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1874 | eval ac_new_val=\$ac_env_${ac_var}_value |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1875 | case $ac_old_set,$ac_new_set in |
| 1876 | set,) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1877 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1878 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1879 | ac_cache_corrupted=: ;; |
| 1880 | ,set) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1881 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1882 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1883 | ac_cache_corrupted=: ;; |
| 1884 | ,);; |
| 1885 | *) |
| 1886 | if test "x$ac_old_val" != "x$ac_new_val"; then |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1887 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1888 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1889 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1890 | echo "$as_me: former value: $ac_old_val" >&2;} |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1891 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1892 | echo "$as_me: current value: $ac_new_val" >&2;} |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1893 | ac_cache_corrupted=: |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1894 | fi;; |
| 1895 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1896 | # Pass precious variables to config.status. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1897 | if test "$ac_new_set" = set; then |
| 1898 | case $ac_new_val in |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1899 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1900 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1901 | esac |
| 1902 | case " $ac_configure_args " in |
| 1903 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1904 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1905 | esac |
| 1906 | fi |
| 1907 | done |
| 1908 | if $ac_cache_corrupted; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1909 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1910 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1911 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1912 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1913 | { (exit 1); exit 1; }; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1914 | fi |
| 1915 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1916 | |
| 1917 | |
| 1918 | |
| 1919 | |
| 1920 | |
| 1921 | |
| 1922 | |
| 1923 | |
| 1924 | |
| 1925 | |
| 1926 | |
| 1927 | |
| 1928 | |
| 1929 | |
| 1930 | |
| 1931 | |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame^] | 1932 | |
| 1933 | |
| 1934 | |
| 1935 | |
| 1936 | |
| 1937 | |
| 1938 | |
| 1939 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1940 | ac_ext=c |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1941 | ac_cpp='$CPP $CPPFLAGS' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1942 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1943 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1944 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1945 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1946 | |
| 1947 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1948 | # The following RCS revision string applies to configure.in |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame^] | 1949 | # $Revision: 1.48 $ |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1950 | |
| 1951 | ######### |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1952 | # Programs needed |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1953 | # |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1954 | # Check whether --enable-shared was given. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1955 | if test "${enable_shared+set}" = set; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1956 | enableval=$enable_shared; p=${PACKAGE-default} |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 1957 | case $enableval in |
| 1958 | yes) enable_shared=yes ;; |
| 1959 | no) enable_shared=no ;; |
| 1960 | *) |
| 1961 | enable_shared=no |
| 1962 | # Look at the argument we got. We use all the common list separators. |
| 1963 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 1964 | for pkg in $enableval; do |
| 1965 | IFS="$lt_save_ifs" |
| 1966 | if test "X$pkg" = "X$p"; then |
| 1967 | enable_shared=yes |
| 1968 | fi |
| 1969 | done |
| 1970 | IFS="$lt_save_ifs" |
| 1971 | ;; |
| 1972 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1973 | else |
| 1974 | enable_shared=yes |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1975 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 1976 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1977 | |
| 1978 | # Check whether --enable-static was given. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1979 | if test "${enable_static+set}" = set; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1980 | enableval=$enable_static; p=${PACKAGE-default} |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 1981 | case $enableval in |
| 1982 | yes) enable_static=yes ;; |
| 1983 | no) enable_static=no ;; |
| 1984 | *) |
| 1985 | enable_static=no |
| 1986 | # Look at the argument we got. We use all the common list separators. |
| 1987 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 1988 | for pkg in $enableval; do |
| 1989 | IFS="$lt_save_ifs" |
| 1990 | if test "X$pkg" = "X$p"; then |
| 1991 | enable_static=yes |
| 1992 | fi |
| 1993 | done |
| 1994 | IFS="$lt_save_ifs" |
| 1995 | ;; |
| 1996 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1997 | else |
| 1998 | enable_static=yes |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1999 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2000 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2001 | |
| 2002 | # Check whether --enable-fast-install was given. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2003 | if test "${enable_fast_install+set}" = set; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2004 | enableval=$enable_fast_install; p=${PACKAGE-default} |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2005 | case $enableval in |
| 2006 | yes) enable_fast_install=yes ;; |
| 2007 | no) enable_fast_install=no ;; |
| 2008 | *) |
| 2009 | enable_fast_install=no |
| 2010 | # Look at the argument we got. We use all the common list separators. |
| 2011 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 2012 | for pkg in $enableval; do |
| 2013 | IFS="$lt_save_ifs" |
| 2014 | if test "X$pkg" = "X$p"; then |
| 2015 | enable_fast_install=yes |
| 2016 | fi |
| 2017 | done |
| 2018 | IFS="$lt_save_ifs" |
| 2019 | ;; |
| 2020 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2021 | else |
| 2022 | enable_fast_install=yes |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2023 | fi |
| 2024 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2025 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2026 | ac_aux_dir= |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2027 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 2028 | if test -f "$ac_dir/install-sh"; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2029 | ac_aux_dir=$ac_dir |
| 2030 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2031 | break |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2032 | elif test -f "$ac_dir/install.sh"; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2033 | ac_aux_dir=$ac_dir |
| 2034 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2035 | break |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2036 | elif test -f "$ac_dir/shtool"; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2037 | ac_aux_dir=$ac_dir |
| 2038 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2039 | break |
| 2040 | fi |
| 2041 | done |
| 2042 | if test -z "$ac_aux_dir"; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2043 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
| 2044 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2045 | { (exit 1); exit 1; }; } |
| 2046 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2047 | |
| 2048 | # These three variables are undocumented and unsupported, |
| 2049 | # and are intended to be withdrawn in a future Autoconf release. |
| 2050 | # They can cause serious problems if a builder's source tree is in a directory |
| 2051 | # whose full name contains unusual characters. |
| 2052 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2053 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2054 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2055 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2056 | |
| 2057 | # Make sure we can run config.sub. |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2058 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 2059 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 2060 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2061 | { (exit 1); exit 1; }; } |
| 2062 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2063 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 2064 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2065 | if test "${ac_cv_build+set}" = set; then |
| 2066 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2067 | else |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2068 | ac_build_alias=$build_alias |
| 2069 | test "x$ac_build_alias" = x && |
| 2070 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2071 | test "x$ac_build_alias" = x && |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2072 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2073 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 2074 | { (exit 1); exit 1; }; } |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2075 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 2076 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 2077 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2078 | { (exit 1); exit 1; }; } |
| 2079 | |
| 2080 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2081 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 2082 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 2083 | case $ac_cv_build in |
| 2084 | *-*-*) ;; |
| 2085 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 2086 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 2087 | { (exit 1); exit 1; }; };; |
| 2088 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2089 | build=$ac_cv_build |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2090 | ac_save_IFS=$IFS; IFS='-' |
| 2091 | set x $ac_cv_build |
| 2092 | shift |
| 2093 | build_cpu=$1 |
| 2094 | build_vendor=$2 |
| 2095 | shift; shift |
| 2096 | # Remember, the first character of IFS is used to create $*, |
| 2097 | # except with old shells: |
| 2098 | build_os=$* |
| 2099 | IFS=$ac_save_IFS |
| 2100 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2101 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2102 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2103 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 2104 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2105 | if test "${ac_cv_host+set}" = set; then |
| 2106 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2107 | else |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2108 | if test "x$host_alias" = x; then |
| 2109 | ac_cv_host=$ac_cv_build |
| 2110 | else |
| 2111 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 2112 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 2113 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2114 | { (exit 1); exit 1; }; } |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2115 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2116 | |
| 2117 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2118 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 2119 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 2120 | case $ac_cv_host in |
| 2121 | *-*-*) ;; |
| 2122 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 2123 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 2124 | { (exit 1); exit 1; }; };; |
| 2125 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2126 | host=$ac_cv_host |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2127 | ac_save_IFS=$IFS; IFS='-' |
| 2128 | set x $ac_cv_host |
| 2129 | shift |
| 2130 | host_cpu=$1 |
| 2131 | host_vendor=$2 |
| 2132 | shift; shift |
| 2133 | # Remember, the first character of IFS is used to create $*, |
| 2134 | # except with old shells: |
| 2135 | host_os=$* |
| 2136 | IFS=$ac_save_IFS |
| 2137 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2138 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2139 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2140 | ac_ext=c |
| 2141 | ac_cpp='$CPP $CPPFLAGS' |
| 2142 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2143 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2144 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2145 | if test -n "$ac_tool_prefix"; then |
| 2146 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2147 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2148 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2149 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2150 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2152 | else |
| 2153 | if test -n "$CC"; then |
| 2154 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2155 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2156 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2157 | for as_dir in $PATH |
| 2158 | do |
| 2159 | IFS=$as_save_IFS |
| 2160 | test -z "$as_dir" && as_dir=. |
| 2161 | for ac_exec_ext in '' $ac_executable_extensions; do |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2162 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2163 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2164 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2165 | break 2 |
| 2166 | fi |
| 2167 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2168 | done |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2169 | IFS=$as_save_IFS |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2170 | |
| 2171 | fi |
| 2172 | fi |
| 2173 | CC=$ac_cv_prog_CC |
| 2174 | if test -n "$CC"; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2175 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2176 | echo "${ECHO_T}$CC" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2177 | else |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2178 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2179 | echo "${ECHO_T}no" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2180 | fi |
| 2181 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2182 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2183 | fi |
| 2184 | if test -z "$ac_cv_prog_CC"; then |
| 2185 | ac_ct_CC=$CC |
| 2186 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2187 | set dummy gcc; ac_word=$2 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2188 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2189 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2190 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2192 | else |
| 2193 | if test -n "$ac_ct_CC"; then |
| 2194 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2195 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2197 | for as_dir in $PATH |
| 2198 | do |
| 2199 | IFS=$as_save_IFS |
| 2200 | test -z "$as_dir" && as_dir=. |
| 2201 | for ac_exec_ext in '' $ac_executable_extensions; do |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2202 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2203 | ac_cv_prog_ac_ct_CC="gcc" |
| 2204 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2205 | break 2 |
| 2206 | fi |
| 2207 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2208 | done |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2209 | IFS=$as_save_IFS |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2210 | |
| 2211 | fi |
| 2212 | fi |
| 2213 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2214 | if test -n "$ac_ct_CC"; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2215 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2216 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2217 | else |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2218 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2219 | echo "${ECHO_T}no" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2220 | fi |
| 2221 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2222 | if test "x$ac_ct_CC" = x; then |
| 2223 | CC="" |
| 2224 | else |
| 2225 | case $cross_compiling:$ac_tool_warned in |
| 2226 | yes:) |
| 2227 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2228 | whose name does not start with the host triplet. If you think this |
| 2229 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2230 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2231 | whose name does not start with the host triplet. If you think this |
| 2232 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2233 | ac_tool_warned=yes ;; |
| 2234 | esac |
| 2235 | CC=$ac_ct_CC |
| 2236 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2237 | else |
| 2238 | CC="$ac_cv_prog_CC" |
| 2239 | fi |
| 2240 | |
| 2241 | if test -z "$CC"; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2242 | if test -n "$ac_tool_prefix"; then |
| 2243 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2244 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2245 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2246 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2247 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2248 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2249 | else |
| 2250 | if test -n "$CC"; then |
| 2251 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2252 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2253 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2254 | for as_dir in $PATH |
| 2255 | do |
| 2256 | IFS=$as_save_IFS |
| 2257 | test -z "$as_dir" && as_dir=. |
| 2258 | for ac_exec_ext in '' $ac_executable_extensions; do |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2259 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2260 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2261 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2262 | break 2 |
| 2263 | fi |
| 2264 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2265 | done |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2266 | IFS=$as_save_IFS |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2267 | |
| 2268 | fi |
| 2269 | fi |
| 2270 | CC=$ac_cv_prog_CC |
| 2271 | if test -n "$CC"; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2272 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2273 | echo "${ECHO_T}$CC" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2274 | else |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2275 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2276 | echo "${ECHO_T}no" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2277 | fi |
| 2278 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2279 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2280 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2281 | fi |
| 2282 | if test -z "$CC"; then |
| 2283 | # Extract the first word of "cc", so it can be a program name with args. |
| 2284 | set dummy cc; ac_word=$2 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2285 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2286 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2287 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2288 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2289 | else |
| 2290 | if test -n "$CC"; then |
| 2291 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2292 | else |
| 2293 | ac_prog_rejected=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2294 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2295 | for as_dir in $PATH |
| 2296 | do |
| 2297 | IFS=$as_save_IFS |
| 2298 | test -z "$as_dir" && as_dir=. |
| 2299 | for ac_exec_ext in '' $ac_executable_extensions; do |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2300 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2301 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2302 | ac_prog_rejected=yes |
| 2303 | continue |
| 2304 | fi |
| 2305 | ac_cv_prog_CC="cc" |
| 2306 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2307 | break 2 |
| 2308 | fi |
| 2309 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2310 | done |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2311 | IFS=$as_save_IFS |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2312 | |
| 2313 | if test $ac_prog_rejected = yes; then |
| 2314 | # We found a bogon in the path, so make sure we never use it. |
| 2315 | set dummy $ac_cv_prog_CC |
| 2316 | shift |
| 2317 | if test $# != 0; then |
| 2318 | # We chose a different compiler from the bogus one. |
| 2319 | # However, it has the same basename, so the bogon will be chosen |
| 2320 | # first if we set CC to just the basename; use the full file name. |
| 2321 | shift |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2322 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2323 | fi |
| 2324 | fi |
| 2325 | fi |
| 2326 | fi |
| 2327 | CC=$ac_cv_prog_CC |
| 2328 | if test -n "$CC"; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2329 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2330 | echo "${ECHO_T}$CC" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2331 | else |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2332 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2333 | echo "${ECHO_T}no" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2334 | fi |
| 2335 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2336 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2337 | fi |
| 2338 | if test -z "$CC"; then |
| 2339 | if test -n "$ac_tool_prefix"; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2340 | for ac_prog in cl.exe |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2341 | do |
| 2342 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2343 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2344 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2345 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2346 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2347 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2348 | else |
| 2349 | if test -n "$CC"; then |
| 2350 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2351 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2352 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2353 | for as_dir in $PATH |
| 2354 | do |
| 2355 | IFS=$as_save_IFS |
| 2356 | test -z "$as_dir" && as_dir=. |
| 2357 | for ac_exec_ext in '' $ac_executable_extensions; do |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2358 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2359 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2360 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2361 | break 2 |
| 2362 | fi |
| 2363 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2364 | done |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2365 | IFS=$as_save_IFS |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2366 | |
| 2367 | fi |
| 2368 | fi |
| 2369 | CC=$ac_cv_prog_CC |
| 2370 | if test -n "$CC"; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2371 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2372 | echo "${ECHO_T}$CC" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2373 | else |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2374 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2375 | echo "${ECHO_T}no" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2376 | fi |
| 2377 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2378 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2379 | test -n "$CC" && break |
| 2380 | done |
| 2381 | fi |
| 2382 | if test -z "$CC"; then |
| 2383 | ac_ct_CC=$CC |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2384 | for ac_prog in cl.exe |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2385 | do |
| 2386 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2387 | set dummy $ac_prog; ac_word=$2 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2388 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2389 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2390 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2391 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2392 | else |
| 2393 | if test -n "$ac_ct_CC"; then |
| 2394 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2395 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2396 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2397 | for as_dir in $PATH |
| 2398 | do |
| 2399 | IFS=$as_save_IFS |
| 2400 | test -z "$as_dir" && as_dir=. |
| 2401 | for ac_exec_ext in '' $ac_executable_extensions; do |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2402 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2403 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2404 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2405 | break 2 |
| 2406 | fi |
| 2407 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2408 | done |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2409 | IFS=$as_save_IFS |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2410 | |
| 2411 | fi |
| 2412 | fi |
| 2413 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2414 | if test -n "$ac_ct_CC"; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2415 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2416 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2417 | else |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2418 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2419 | echo "${ECHO_T}no" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2420 | fi |
| 2421 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2422 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2423 | test -n "$ac_ct_CC" && break |
| 2424 | done |
| 2425 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2426 | if test "x$ac_ct_CC" = x; then |
| 2427 | CC="" |
| 2428 | else |
| 2429 | case $cross_compiling:$ac_tool_warned in |
| 2430 | yes:) |
| 2431 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2432 | whose name does not start with the host triplet. If you think this |
| 2433 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2434 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2435 | whose name does not start with the host triplet. If you think this |
| 2436 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2437 | ac_tool_warned=yes ;; |
| 2438 | esac |
| 2439 | CC=$ac_ct_CC |
| 2440 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2441 | fi |
| 2442 | |
| 2443 | fi |
| 2444 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2445 | |
| 2446 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2447 | See \`config.log' for more details." >&5 |
| 2448 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2449 | See \`config.log' for more details." >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2450 | { (exit 1); exit 1; }; } |
| 2451 | |
| 2452 | # Provide some information about the compiler. |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2453 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2454 | ac_compiler=`set X $ac_compile; echo $2` |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2455 | { (ac_try="$ac_compiler --version >&5" |
| 2456 | case "(($ac_try" in |
| 2457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2458 | *) ac_try_echo=$ac_try;; |
| 2459 | esac |
| 2460 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2461 | (eval "$ac_compiler --version >&5") 2>&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2462 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2464 | (exit $ac_status); } |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2465 | { (ac_try="$ac_compiler -v >&5" |
| 2466 | case "(($ac_try" in |
| 2467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2468 | *) ac_try_echo=$ac_try;; |
| 2469 | esac |
| 2470 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2471 | (eval "$ac_compiler -v >&5") 2>&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2472 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2474 | (exit $ac_status); } |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2475 | { (ac_try="$ac_compiler -V >&5" |
| 2476 | case "(($ac_try" in |
| 2477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2478 | *) ac_try_echo=$ac_try;; |
| 2479 | esac |
| 2480 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2481 | (eval "$ac_compiler -V >&5") 2>&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2482 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2484 | (exit $ac_status); } |
| 2485 | |
| 2486 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2487 | /* confdefs.h. */ |
| 2488 | _ACEOF |
| 2489 | cat confdefs.h >>conftest.$ac_ext |
| 2490 | cat >>conftest.$ac_ext <<_ACEOF |
| 2491 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2492 | |
| 2493 | int |
| 2494 | main () |
| 2495 | { |
| 2496 | |
| 2497 | ; |
| 2498 | return 0; |
| 2499 | } |
| 2500 | _ACEOF |
| 2501 | ac_clean_files_save=$ac_clean_files |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2502 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2503 | # Try to create an executable without -o first, disregard a.out. |
| 2504 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2505 | # of exeext. |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2506 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2507 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2508 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2509 | # |
| 2510 | # List of possible output files, starting from the most likely. |
| 2511 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2512 | # only as a last resort. b.out is created by i960 compilers. |
| 2513 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2514 | # |
| 2515 | # The IRIX 6 linker writes into existing files which may not be |
| 2516 | # executable, retaining their permissions. Remove them first so a |
| 2517 | # subsequent execution test works. |
| 2518 | ac_rmfiles= |
| 2519 | for ac_file in $ac_files |
| 2520 | do |
| 2521 | case $ac_file in |
| 2522 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2523 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2524 | esac |
| 2525 | done |
| 2526 | rm -f $ac_rmfiles |
| 2527 | |
| 2528 | if { (ac_try="$ac_link_default" |
| 2529 | case "(($ac_try" in |
| 2530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2531 | *) ac_try_echo=$ac_try;; |
| 2532 | esac |
| 2533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2534 | (eval "$ac_link_default") 2>&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2535 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2537 | (exit $ac_status); }; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2538 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2539 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2540 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2541 | # so that the user can short-circuit this test for compilers unknown to |
| 2542 | # Autoconf. |
| 2543 | for ac_file in $ac_files '' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2544 | do |
| 2545 | test -f "$ac_file" || continue |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2546 | case $ac_file in |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2547 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2548 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2549 | [ab].out ) |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2550 | # We found the default executable, but exeext='' is most |
| 2551 | # certainly right. |
| 2552 | break;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2553 | *.* ) |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2554 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2555 | then :; else |
| 2556 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2557 | fi |
| 2558 | # We set ac_cv_exeext here because the later test for it is not |
| 2559 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2560 | # argument, so we may need to know it at that point already. |
| 2561 | # Even if this section looks crufty: it has the advantage of |
| 2562 | # actually working. |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2563 | break;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2564 | * ) |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2565 | break;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2566 | esac |
| 2567 | done |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2568 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2569 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2570 | else |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2571 | ac_file='' |
| 2572 | fi |
| 2573 | |
| 2574 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2575 | echo "${ECHO_T}$ac_file" >&6; } |
| 2576 | if test -z "$ac_file"; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2577 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2578 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2579 | |
| 2580 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2581 | See \`config.log' for more details." >&5 |
| 2582 | echo "$as_me: error: C compiler cannot create executables |
| 2583 | See \`config.log' for more details." >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2584 | { (exit 77); exit 77; }; } |
| 2585 | fi |
| 2586 | |
| 2587 | ac_exeext=$ac_cv_exeext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2588 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2589 | # Check that the compiler produces executables we can run. If not, either |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2590 | # the compiler is broken, or we cross compile. |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2591 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2592 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2593 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2594 | # If not cross compiling, check that we can run a simple program. |
| 2595 | if test "$cross_compiling" != yes; then |
| 2596 | if { ac_try='./$ac_file' |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2597 | { (case "(($ac_try" in |
| 2598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2599 | *) ac_try_echo=$ac_try;; |
| 2600 | esac |
| 2601 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2602 | (eval "$ac_try") 2>&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2603 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2605 | (exit $ac_status); }; }; then |
| 2606 | cross_compiling=no |
| 2607 | else |
| 2608 | if test "$cross_compiling" = maybe; then |
| 2609 | cross_compiling=yes |
| 2610 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2611 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2612 | If you meant to cross compile, use \`--host'. |
| 2613 | See \`config.log' for more details." >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2614 | echo "$as_me: error: cannot run C compiled programs. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2615 | If you meant to cross compile, use \`--host'. |
| 2616 | See \`config.log' for more details." >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2617 | { (exit 1); exit 1; }; } |
| 2618 | fi |
| 2619 | fi |
| 2620 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2621 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2622 | echo "${ECHO_T}yes" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2623 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2624 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2625 | ac_clean_files=$ac_clean_files_save |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2626 | # Check that the compiler produces executables we can run. If not, either |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2627 | # the compiler is broken, or we cross compile. |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2628 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2629 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2630 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2631 | echo "${ECHO_T}$cross_compiling" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2632 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2633 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2634 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2635 | if { (ac_try="$ac_link" |
| 2636 | case "(($ac_try" in |
| 2637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2638 | *) ac_try_echo=$ac_try;; |
| 2639 | esac |
| 2640 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2641 | (eval "$ac_link") 2>&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2642 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2644 | (exit $ac_status); }; then |
| 2645 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2646 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2647 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2648 | # `rm'. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2649 | for ac_file in conftest.exe conftest conftest.*; do |
| 2650 | test -f "$ac_file" || continue |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2651 | case $ac_file in |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2652 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2653 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2654 | break;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2655 | * ) break;; |
| 2656 | esac |
| 2657 | done |
| 2658 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2659 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2660 | See \`config.log' for more details." >&5 |
| 2661 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2662 | See \`config.log' for more details." >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2663 | { (exit 1); exit 1; }; } |
| 2664 | fi |
| 2665 | |
| 2666 | rm -f conftest$ac_cv_exeext |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2667 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2668 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2669 | |
| 2670 | rm -f conftest.$ac_ext |
| 2671 | EXEEXT=$ac_cv_exeext |
| 2672 | ac_exeext=$EXEEXT |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2673 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2674 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2675 | if test "${ac_cv_objext+set}" = set; then |
| 2676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2677 | else |
| 2678 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2679 | /* confdefs.h. */ |
| 2680 | _ACEOF |
| 2681 | cat confdefs.h >>conftest.$ac_ext |
| 2682 | cat >>conftest.$ac_ext <<_ACEOF |
| 2683 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2684 | |
| 2685 | int |
| 2686 | main () |
| 2687 | { |
| 2688 | |
| 2689 | ; |
| 2690 | return 0; |
| 2691 | } |
| 2692 | _ACEOF |
| 2693 | rm -f conftest.o conftest.obj |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2694 | if { (ac_try="$ac_compile" |
| 2695 | case "(($ac_try" in |
| 2696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2697 | *) ac_try_echo=$ac_try;; |
| 2698 | esac |
| 2699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2700 | (eval "$ac_compile") 2>&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2701 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2703 | (exit $ac_status); }; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2704 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2705 | test -f "$ac_file" || continue; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2706 | case $ac_file in |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2707 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2708 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2709 | break;; |
| 2710 | esac |
| 2711 | done |
| 2712 | else |
| 2713 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2714 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2715 | |
| 2716 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2717 | See \`config.log' for more details." >&5 |
| 2718 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2719 | See \`config.log' for more details." >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2720 | { (exit 1); exit 1; }; } |
| 2721 | fi |
| 2722 | |
| 2723 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2724 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2725 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2726 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2727 | OBJEXT=$ac_cv_objext |
| 2728 | ac_objext=$OBJEXT |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2729 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2730 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2731 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2732 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2733 | else |
| 2734 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2735 | /* confdefs.h. */ |
| 2736 | _ACEOF |
| 2737 | cat confdefs.h >>conftest.$ac_ext |
| 2738 | cat >>conftest.$ac_ext <<_ACEOF |
| 2739 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2740 | |
| 2741 | int |
| 2742 | main () |
| 2743 | { |
| 2744 | #ifndef __GNUC__ |
| 2745 | choke me |
| 2746 | #endif |
| 2747 | |
| 2748 | ; |
| 2749 | return 0; |
| 2750 | } |
| 2751 | _ACEOF |
| 2752 | rm -f conftest.$ac_objext |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2753 | if { (ac_try="$ac_compile" |
| 2754 | case "(($ac_try" in |
| 2755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2756 | *) ac_try_echo=$ac_try;; |
| 2757 | esac |
| 2758 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2759 | (eval "$ac_compile") 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2760 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2761 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2762 | rm -f conftest.er1 |
| 2763 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2765 | (exit $ac_status); } && { |
| 2766 | test -z "$ac_c_werror_flag" || |
| 2767 | test ! -s conftest.err |
| 2768 | } && test -s conftest.$ac_objext; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2769 | ac_compiler_gnu=yes |
| 2770 | else |
| 2771 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2772 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2773 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2774 | ac_compiler_gnu=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2775 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2776 | |
| 2777 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2778 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2779 | |
| 2780 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2781 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2782 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2783 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2784 | ac_test_CFLAGS=${CFLAGS+set} |
| 2785 | ac_save_CFLAGS=$CFLAGS |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2786 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2787 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2788 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2790 | else |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2791 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2792 | ac_c_werror_flag=yes |
| 2793 | ac_cv_prog_cc_g=no |
| 2794 | CFLAGS="-g" |
| 2795 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2796 | /* confdefs.h. */ |
| 2797 | _ACEOF |
| 2798 | cat confdefs.h >>conftest.$ac_ext |
| 2799 | cat >>conftest.$ac_ext <<_ACEOF |
| 2800 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2801 | |
| 2802 | int |
| 2803 | main () |
| 2804 | { |
| 2805 | |
| 2806 | ; |
| 2807 | return 0; |
| 2808 | } |
| 2809 | _ACEOF |
| 2810 | rm -f conftest.$ac_objext |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2811 | if { (ac_try="$ac_compile" |
| 2812 | case "(($ac_try" in |
| 2813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2814 | *) ac_try_echo=$ac_try;; |
| 2815 | esac |
| 2816 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2817 | (eval "$ac_compile") 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2818 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2819 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2820 | rm -f conftest.er1 |
| 2821 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2823 | (exit $ac_status); } && { |
| 2824 | test -z "$ac_c_werror_flag" || |
| 2825 | test ! -s conftest.err |
| 2826 | } && test -s conftest.$ac_objext; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2827 | ac_cv_prog_cc_g=yes |
| 2828 | else |
| 2829 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2830 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2831 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2832 | CFLAGS="" |
| 2833 | cat >conftest.$ac_ext <<_ACEOF |
| 2834 | /* confdefs.h. */ |
| 2835 | _ACEOF |
| 2836 | cat confdefs.h >>conftest.$ac_ext |
| 2837 | cat >>conftest.$ac_ext <<_ACEOF |
| 2838 | /* end confdefs.h. */ |
| 2839 | |
| 2840 | int |
| 2841 | main () |
| 2842 | { |
| 2843 | |
| 2844 | ; |
| 2845 | return 0; |
| 2846 | } |
| 2847 | _ACEOF |
| 2848 | rm -f conftest.$ac_objext |
| 2849 | if { (ac_try="$ac_compile" |
| 2850 | case "(($ac_try" in |
| 2851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2852 | *) ac_try_echo=$ac_try;; |
| 2853 | esac |
| 2854 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2855 | (eval "$ac_compile") 2>conftest.er1 |
| 2856 | ac_status=$? |
| 2857 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2858 | rm -f conftest.er1 |
| 2859 | cat conftest.err >&5 |
| 2860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2861 | (exit $ac_status); } && { |
| 2862 | test -z "$ac_c_werror_flag" || |
| 2863 | test ! -s conftest.err |
| 2864 | } && test -s conftest.$ac_objext; then |
| 2865 | : |
| 2866 | else |
| 2867 | echo "$as_me: failed program was:" >&5 |
| 2868 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2869 | |
| 2870 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2871 | CFLAGS="-g" |
| 2872 | cat >conftest.$ac_ext <<_ACEOF |
| 2873 | /* confdefs.h. */ |
| 2874 | _ACEOF |
| 2875 | cat confdefs.h >>conftest.$ac_ext |
| 2876 | cat >>conftest.$ac_ext <<_ACEOF |
| 2877 | /* end confdefs.h. */ |
| 2878 | |
| 2879 | int |
| 2880 | main () |
| 2881 | { |
| 2882 | |
| 2883 | ; |
| 2884 | return 0; |
| 2885 | } |
| 2886 | _ACEOF |
| 2887 | rm -f conftest.$ac_objext |
| 2888 | if { (ac_try="$ac_compile" |
| 2889 | case "(($ac_try" in |
| 2890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2891 | *) ac_try_echo=$ac_try;; |
| 2892 | esac |
| 2893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2894 | (eval "$ac_compile") 2>conftest.er1 |
| 2895 | ac_status=$? |
| 2896 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2897 | rm -f conftest.er1 |
| 2898 | cat conftest.err >&5 |
| 2899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2900 | (exit $ac_status); } && { |
| 2901 | test -z "$ac_c_werror_flag" || |
| 2902 | test ! -s conftest.err |
| 2903 | } && test -s conftest.$ac_objext; then |
| 2904 | ac_cv_prog_cc_g=yes |
| 2905 | else |
| 2906 | echo "$as_me: failed program was:" >&5 |
| 2907 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2908 | |
| 2909 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2910 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2911 | |
| 2912 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2913 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2914 | |
| 2915 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2916 | fi |
| 2917 | |
| 2918 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2919 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2920 | fi |
| 2921 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2922 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2923 | if test "$ac_test_CFLAGS" = set; then |
| 2924 | CFLAGS=$ac_save_CFLAGS |
| 2925 | elif test $ac_cv_prog_cc_g = yes; then |
| 2926 | if test "$GCC" = yes; then |
| 2927 | CFLAGS="-g -O2" |
| 2928 | else |
| 2929 | CFLAGS="-g" |
| 2930 | fi |
| 2931 | else |
| 2932 | if test "$GCC" = yes; then |
| 2933 | CFLAGS="-O2" |
| 2934 | else |
| 2935 | CFLAGS= |
| 2936 | fi |
| 2937 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2938 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 2939 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 2940 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2942 | else |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2943 | ac_cv_prog_cc_c89=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2944 | ac_save_CC=$CC |
| 2945 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2946 | /* confdefs.h. */ |
| 2947 | _ACEOF |
| 2948 | cat confdefs.h >>conftest.$ac_ext |
| 2949 | cat >>conftest.$ac_ext <<_ACEOF |
| 2950 | /* end confdefs.h. */ |
| 2951 | #include <stdarg.h> |
| 2952 | #include <stdio.h> |
| 2953 | #include <sys/types.h> |
| 2954 | #include <sys/stat.h> |
| 2955 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2956 | struct buf { int x; }; |
| 2957 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2958 | static char *e (p, i) |
| 2959 | char **p; |
| 2960 | int i; |
| 2961 | { |
| 2962 | return p[i]; |
| 2963 | } |
| 2964 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2965 | { |
| 2966 | char *s; |
| 2967 | va_list v; |
| 2968 | va_start (v,p); |
| 2969 | s = g (p, va_arg (v,int)); |
| 2970 | va_end (v); |
| 2971 | return s; |
| 2972 | } |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2973 | |
| 2974 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2975 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2976 | These don't provoke an error unfortunately, instead are silently treated |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2977 | as 'x'. The following induces an error, until -std is added to get |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2978 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2979 | array size at least. It's necessary to write '\x00'==0 to get something |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2980 | that's true only with -std. */ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2981 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2982 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2983 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2984 | inside strings and character constants. */ |
| 2985 | #define FOO(x) 'x' |
| 2986 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 2987 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2988 | int test (int i, double x); |
| 2989 | struct s1 {int (*f) (int a);}; |
| 2990 | struct s2 {int (*f) (double a);}; |
| 2991 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2992 | int argc; |
| 2993 | char **argv; |
| 2994 | int |
| 2995 | main () |
| 2996 | { |
| 2997 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2998 | ; |
| 2999 | return 0; |
| 3000 | } |
| 3001 | _ACEOF |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3002 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3003 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3004 | do |
| 3005 | CC="$ac_save_CC $ac_arg" |
| 3006 | rm -f conftest.$ac_objext |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3007 | if { (ac_try="$ac_compile" |
| 3008 | case "(($ac_try" in |
| 3009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3010 | *) ac_try_echo=$ac_try;; |
| 3011 | esac |
| 3012 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3013 | (eval "$ac_compile") 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3014 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3015 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3016 | rm -f conftest.er1 |
| 3017 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3019 | (exit $ac_status); } && { |
| 3020 | test -z "$ac_c_werror_flag" || |
| 3021 | test ! -s conftest.err |
| 3022 | } && test -s conftest.$ac_objext; then |
| 3023 | ac_cv_prog_cc_c89=$ac_arg |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3024 | else |
| 3025 | echo "$as_me: failed program was:" >&5 |
| 3026 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3027 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3028 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3029 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3030 | |
| 3031 | rm -f core conftest.err conftest.$ac_objext |
| 3032 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3033 | done |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3034 | rm -f conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3035 | CC=$ac_save_CC |
| 3036 | |
| 3037 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3038 | # AC_CACHE_VAL |
| 3039 | case "x$ac_cv_prog_cc_c89" in |
| 3040 | x) |
| 3041 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3042 | echo "${ECHO_T}none needed" >&6; } ;; |
| 3043 | xno) |
| 3044 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3045 | echo "${ECHO_T}unsupported" >&6; } ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3046 | *) |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3047 | CC="$CC $ac_cv_prog_cc_c89" |
| 3048 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3049 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3050 | esac |
| 3051 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3052 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3053 | ac_ext=c |
| 3054 | ac_cpp='$CPP $CPPFLAGS' |
| 3055 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3056 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3057 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3058 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3059 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 3060 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3061 | if test "${lt_cv_path_SED+set}" = set; then |
| 3062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3063 | else |
| 3064 | # Loop through the user's path and test for sed and gsed. |
| 3065 | # Then use that list of sed's as ones to test for truncation. |
| 3066 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3067 | for as_dir in $PATH |
| 3068 | do |
| 3069 | IFS=$as_save_IFS |
| 3070 | test -z "$as_dir" && as_dir=. |
| 3071 | for lt_ac_prog in sed gsed; do |
| 3072 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3073 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
| 3074 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
| 3075 | fi |
| 3076 | done |
| 3077 | done |
| 3078 | done |
| 3079 | lt_ac_max=0 |
| 3080 | lt_ac_count=0 |
| 3081 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 3082 | # along with /bin/sed that truncates output. |
| 3083 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3084 | test ! -f $lt_ac_sed && continue |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3085 | cat /dev/null > conftest.in |
| 3086 | lt_ac_count=0 |
| 3087 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| 3088 | # Check for GNU sed and select it if it is found. |
| 3089 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
| 3090 | lt_cv_path_SED=$lt_ac_sed |
| 3091 | break |
| 3092 | fi |
| 3093 | while true; do |
| 3094 | cat conftest.in conftest.in >conftest.tmp |
| 3095 | mv conftest.tmp conftest.in |
| 3096 | cp conftest.in conftest.nl |
| 3097 | echo >>conftest.nl |
| 3098 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
| 3099 | cmp -s conftest.out conftest.nl || break |
| 3100 | # 10000 chars as input seems more than enough |
| 3101 | test $lt_ac_count -gt 10 && break |
| 3102 | lt_ac_count=`expr $lt_ac_count + 1` |
| 3103 | if test $lt_ac_count -gt $lt_ac_max; then |
| 3104 | lt_ac_max=$lt_ac_count |
| 3105 | lt_cv_path_SED=$lt_ac_sed |
| 3106 | fi |
| 3107 | done |
| 3108 | done |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3109 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3110 | fi |
| 3111 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3112 | SED=$lt_cv_path_SED |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3113 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 3114 | echo "${ECHO_T}$SED" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3115 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3116 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3117 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 3118 | if test "${ac_cv_path_GREP+set}" = set; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3119 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3120 | else |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3121 | # Extract the first word of "grep ggrep" to use in msg output |
| 3122 | if test -z "$GREP"; then |
| 3123 | set dummy grep ggrep; ac_prog_name=$2 |
| 3124 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3125 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3126 | else |
| 3127 | ac_path_GREP_found=false |
| 3128 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3129 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3130 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3131 | do |
| 3132 | IFS=$as_save_IFS |
| 3133 | test -z "$as_dir" && as_dir=. |
| 3134 | for ac_prog in grep ggrep; do |
| 3135 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3136 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3137 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 3138 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3139 | # Check for GNU $ac_path_GREP |
| 3140 | case `"$ac_path_GREP" --version 2>&1` in |
| 3141 | *GNU*) |
| 3142 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3143 | *) |
| 3144 | ac_count=0 |
| 3145 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3146 | while : |
| 3147 | do |
| 3148 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3149 | mv "conftest.tmp" "conftest.in" |
| 3150 | cp "conftest.in" "conftest.nl" |
| 3151 | echo 'GREP' >> "conftest.nl" |
| 3152 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3153 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3154 | ac_count=`expr $ac_count + 1` |
| 3155 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3156 | # Best one so far, save it but keep looking for a better one |
| 3157 | ac_cv_path_GREP="$ac_path_GREP" |
| 3158 | ac_path_GREP_max=$ac_count |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3159 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3160 | # 10*(2^10) chars as input seems more than enough |
| 3161 | test $ac_count -gt 10 && break |
| 3162 | done |
| 3163 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3164 | esac |
| 3165 | |
| 3166 | |
| 3167 | $ac_path_GREP_found && break 3 |
| 3168 | done |
| 3169 | done |
| 3170 | |
| 3171 | done |
| 3172 | IFS=$as_save_IFS |
| 3173 | |
| 3174 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3175 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3176 | |
| 3177 | GREP="$ac_cv_path_GREP" |
| 3178 | if test -z "$GREP"; then |
| 3179 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3180 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3181 | { (exit 1); exit 1; }; } |
| 3182 | fi |
| 3183 | |
| 3184 | else |
| 3185 | ac_cv_path_GREP=$GREP |
| 3186 | fi |
| 3187 | |
| 3188 | |
| 3189 | fi |
| 3190 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3191 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 3192 | GREP="$ac_cv_path_GREP" |
| 3193 | |
| 3194 | |
| 3195 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3196 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3197 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3198 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3199 | else |
| 3200 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3201 | then ac_cv_path_EGREP="$GREP -E" |
| 3202 | else |
| 3203 | # Extract the first word of "egrep" to use in msg output |
| 3204 | if test -z "$EGREP"; then |
| 3205 | set dummy egrep; ac_prog_name=$2 |
| 3206 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3208 | else |
| 3209 | ac_path_EGREP_found=false |
| 3210 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3211 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3212 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3213 | do |
| 3214 | IFS=$as_save_IFS |
| 3215 | test -z "$as_dir" && as_dir=. |
| 3216 | for ac_prog in egrep; do |
| 3217 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3218 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3219 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 3220 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3221 | # Check for GNU $ac_path_EGREP |
| 3222 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3223 | *GNU*) |
| 3224 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3225 | *) |
| 3226 | ac_count=0 |
| 3227 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3228 | while : |
| 3229 | do |
| 3230 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3231 | mv "conftest.tmp" "conftest.in" |
| 3232 | cp "conftest.in" "conftest.nl" |
| 3233 | echo 'EGREP' >> "conftest.nl" |
| 3234 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3235 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3236 | ac_count=`expr $ac_count + 1` |
| 3237 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3238 | # Best one so far, save it but keep looking for a better one |
| 3239 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3240 | ac_path_EGREP_max=$ac_count |
| 3241 | fi |
| 3242 | # 10*(2^10) chars as input seems more than enough |
| 3243 | test $ac_count -gt 10 && break |
| 3244 | done |
| 3245 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3246 | esac |
| 3247 | |
| 3248 | |
| 3249 | $ac_path_EGREP_found && break 3 |
| 3250 | done |
| 3251 | done |
| 3252 | |
| 3253 | done |
| 3254 | IFS=$as_save_IFS |
| 3255 | |
| 3256 | |
| 3257 | fi |
| 3258 | |
| 3259 | EGREP="$ac_cv_path_EGREP" |
| 3260 | if test -z "$EGREP"; then |
| 3261 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3262 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3263 | { (exit 1); exit 1; }; } |
| 3264 | fi |
| 3265 | |
| 3266 | else |
| 3267 | ac_cv_path_EGREP=$EGREP |
| 3268 | fi |
| 3269 | |
| 3270 | |
| 3271 | fi |
| 3272 | fi |
| 3273 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3274 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 3275 | EGREP="$ac_cv_path_EGREP" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3276 | |
| 3277 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3278 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3279 | # Check whether --with-gnu-ld was given. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3280 | if test "${with_gnu_ld+set}" = set; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3281 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3282 | else |
| 3283 | with_gnu_ld=no |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3284 | fi |
| 3285 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3286 | ac_prog=ld |
| 3287 | if test "$GCC" = yes; then |
| 3288 | # Check if gcc -print-prog-name=ld gives a path. |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3289 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 3290 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3291 | case $host in |
| 3292 | *-*-mingw*) |
| 3293 | # gcc leaves a trailing carriage return which upsets mingw |
| 3294 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 3295 | *) |
| 3296 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 3297 | esac |
| 3298 | case $ac_prog in |
| 3299 | # Accept absolute paths. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3300 | [\\/]* | ?:[\\/]*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3301 | re_direlt='/[^/][^/]*/\.\./' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3302 | # Canonicalize the pathname of ld |
| 3303 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3304 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3305 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3306 | done |
| 3307 | test -z "$LD" && LD="$ac_prog" |
| 3308 | ;; |
| 3309 | "") |
| 3310 | # If it fails, then pretend we aren't using GCC. |
| 3311 | ac_prog=ld |
| 3312 | ;; |
| 3313 | *) |
| 3314 | # If it is relative, then search for the first ld in PATH. |
| 3315 | with_gnu_ld=unknown |
| 3316 | ;; |
| 3317 | esac |
| 3318 | elif test "$with_gnu_ld" = yes; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3319 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 3320 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3321 | else |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3322 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 3323 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3324 | fi |
| 3325 | if test "${lt_cv_path_LD+set}" = set; then |
| 3326 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3327 | else |
| 3328 | if test -z "$LD"; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3329 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3330 | for ac_dir in $PATH; do |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3331 | IFS="$lt_save_ifs" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3332 | test -z "$ac_dir" && ac_dir=. |
| 3333 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 3334 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 3335 | # Check to see if the program is GNU ld. I'd rather use --version, |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3336 | # but apparently some variants of GNU ld only accept -v. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3337 | # Break only if it was the GNU/non-GNU ld that we prefer. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3338 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 3339 | *GNU* | *'with BFD'*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3340 | test "$with_gnu_ld" != no && break |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3341 | ;; |
| 3342 | *) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3343 | test "$with_gnu_ld" != yes && break |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3344 | ;; |
| 3345 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3346 | fi |
| 3347 | done |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3348 | IFS="$lt_save_ifs" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3349 | else |
| 3350 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 3351 | fi |
| 3352 | fi |
| 3353 | |
| 3354 | LD="$lt_cv_path_LD" |
| 3355 | if test -n "$LD"; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3356 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 3357 | echo "${ECHO_T}$LD" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3358 | else |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3359 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3360 | echo "${ECHO_T}no" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3361 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3362 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3363 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 3364 | { (exit 1); exit 1; }; } |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3365 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 3366 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3367 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 3368 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3369 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3370 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3371 | case `$LD -v 2>&1 </dev/null` in |
| 3372 | *GNU* | *'with BFD'*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3373 | lt_cv_prog_gnu_ld=yes |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3374 | ;; |
| 3375 | *) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3376 | lt_cv_prog_gnu_ld=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3377 | ;; |
| 3378 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3379 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3380 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 3381 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3382 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 3383 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3384 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3385 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 3386 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3387 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 3388 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3389 | else |
| 3390 | lt_cv_ld_reload_flag='-r' |
| 3391 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3392 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 3393 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3394 | reload_flag=$lt_cv_ld_reload_flag |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3395 | case $reload_flag in |
| 3396 | "" | " "*) ;; |
| 3397 | *) reload_flag=" $reload_flag" ;; |
| 3398 | esac |
| 3399 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3400 | case $host_os in |
| 3401 | darwin*) |
| 3402 | if test "$GCC" = yes; then |
| 3403 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 3404 | else |
| 3405 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 3406 | fi |
| 3407 | ;; |
| 3408 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3409 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3410 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 3411 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3412 | if test "${lt_cv_path_NM+set}" = set; then |
| 3413 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3414 | else |
| 3415 | if test -n "$NM"; then |
| 3416 | # Let the user override the test. |
| 3417 | lt_cv_path_NM="$NM" |
| 3418 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3419 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 3420 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 3421 | lt_nm_to_check="$lt_nm_to_check nm" |
| 3422 | fi |
| 3423 | for lt_tmp_nm in $lt_nm_to_check; do |
| 3424 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 3425 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 3426 | IFS="$lt_save_ifs" |
| 3427 | test -z "$ac_dir" && ac_dir=. |
| 3428 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 3429 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 3430 | # Check to see if the nm accepts a BSD-compat flag. |
| 3431 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 3432 | # nm: unknown option "B" ignored |
| 3433 | # Tru64's nm complains that /dev/null is an invalid object file |
| 3434 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 3435 | */dev/null* | *'Invalid file or object type'*) |
| 3436 | lt_cv_path_NM="$tmp_nm -B" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3437 | break |
| 3438 | ;; |
| 3439 | *) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3440 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 3441 | */dev/null*) |
| 3442 | lt_cv_path_NM="$tmp_nm -p" |
| 3443 | break |
| 3444 | ;; |
| 3445 | *) |
| 3446 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 3447 | continue # so that we can try to find one that supports BSD flags |
| 3448 | ;; |
| 3449 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3450 | ;; |
| 3451 | esac |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3452 | fi |
| 3453 | done |
| 3454 | IFS="$lt_save_ifs" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3455 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3456 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 3457 | fi |
| 3458 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3459 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 3460 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3461 | NM="$lt_cv_path_NM" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3462 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3463 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 3464 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3465 | LN_S=$as_ln_s |
| 3466 | if test "$LN_S" = "ln -s"; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3467 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 3468 | echo "${ECHO_T}yes" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3469 | else |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3470 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 3471 | echo "${ECHO_T}no, using $LN_S" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3472 | fi |
| 3473 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3474 | { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 3475 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3476 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 3477 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3478 | else |
| 3479 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 3480 | lt_cv_file_magic_test_file= |
| 3481 | lt_cv_deplibs_check_method='unknown' |
| 3482 | # Need to set the preceding variable on all platforms that support |
| 3483 | # interlibrary dependencies. |
| 3484 | # 'none' -- dependencies not supported. |
| 3485 | # `unknown' -- same as none, but documents that we really don't know. |
| 3486 | # 'pass_all' -- all dependencies passed with no checks. |
| 3487 | # 'test_compile' -- check by making test program. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3488 | # 'file_magic [[regex]]' -- check by looking for files in library path |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3489 | # which responds to the $file_magic_cmd with a given extended regex. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3490 | # If you have `file' or equivalent on your system and you're not sure |
| 3491 | # whether `pass_all' will *always* work, you probably want this one. |
| 3492 | |
| 3493 | case $host_os in |
| 3494 | aix4* | aix5*) |
| 3495 | lt_cv_deplibs_check_method=pass_all |
| 3496 | ;; |
| 3497 | |
| 3498 | beos*) |
| 3499 | lt_cv_deplibs_check_method=pass_all |
| 3500 | ;; |
| 3501 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3502 | bsdi[45]*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3503 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 3504 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 3505 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 3506 | ;; |
| 3507 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3508 | cygwin*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3509 | # func_win32_libid is a shell function defined in ltmain.sh |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3510 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3511 | lt_cv_file_magic_cmd='func_win32_libid' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3512 | ;; |
| 3513 | |
| 3514 | mingw* | pw32*) |
| 3515 | # Base MSYS/MinGW do not provide the 'file' command needed by |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3516 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3517 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 3518 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 3519 | ;; |
| 3520 | |
| 3521 | darwin* | rhapsody*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3522 | lt_cv_deplibs_check_method=pass_all |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3523 | ;; |
| 3524 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3525 | freebsd* | kfreebsd*-gnu | dragonfly*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3526 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 3527 | case $host_cpu in |
| 3528 | i*86 ) |
| 3529 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 3530 | # Let's accept both of them until this is cleared up. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3531 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3532 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3533 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 3534 | ;; |
| 3535 | esac |
| 3536 | else |
| 3537 | lt_cv_deplibs_check_method=pass_all |
| 3538 | fi |
| 3539 | ;; |
| 3540 | |
| 3541 | gnu*) |
| 3542 | lt_cv_deplibs_check_method=pass_all |
| 3543 | ;; |
| 3544 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3545 | hpux10.20* | hpux11*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3546 | lt_cv_file_magic_cmd=/usr/bin/file |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3547 | case $host_cpu in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3548 | ia64*) |
| 3549 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 3550 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 3551 | ;; |
| 3552 | hppa*64*) |
| 3553 | 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]' |
| 3554 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 3555 | ;; |
| 3556 | *) |
| 3557 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 3558 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 3559 | ;; |
| 3560 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3561 | ;; |
| 3562 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3563 | interix3*) |
| 3564 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 3565 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 3566 | ;; |
| 3567 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3568 | irix5* | irix6* | nonstopux*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3569 | case $LD in |
| 3570 | *-32|*"-32 ") libmagic=32-bit;; |
| 3571 | *-n32|*"-n32 ") libmagic=N32;; |
| 3572 | *-64|*"-64 ") libmagic=64-bit;; |
| 3573 | *) libmagic=never-match;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3574 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3575 | lt_cv_deplibs_check_method=pass_all |
| 3576 | ;; |
| 3577 | |
| 3578 | # This must be Linux ELF. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3579 | linux*) |
| 3580 | lt_cv_deplibs_check_method=pass_all |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3581 | ;; |
| 3582 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3583 | netbsd*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3584 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3585 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3586 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3587 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3588 | fi |
| 3589 | ;; |
| 3590 | |
| 3591 | newos6*) |
| 3592 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 3593 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3594 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 3595 | ;; |
| 3596 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3597 | nto-qnx*) |
| 3598 | lt_cv_deplibs_check_method=unknown |
| 3599 | ;; |
| 3600 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3601 | openbsd*) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3602 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3603 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3604 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3605 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3606 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3607 | ;; |
| 3608 | |
| 3609 | osf3* | osf4* | osf5*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3610 | lt_cv_deplibs_check_method=pass_all |
| 3611 | ;; |
| 3612 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3613 | solaris*) |
| 3614 | lt_cv_deplibs_check_method=pass_all |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3615 | ;; |
| 3616 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3617 | sysv4 | sysv4.3*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3618 | case $host_vendor in |
| 3619 | motorola) |
| 3620 | 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]' |
| 3621 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 3622 | ;; |
| 3623 | ncr) |
| 3624 | lt_cv_deplibs_check_method=pass_all |
| 3625 | ;; |
| 3626 | sequent) |
| 3627 | lt_cv_file_magic_cmd='/bin/file' |
| 3628 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 3629 | ;; |
| 3630 | sni) |
| 3631 | lt_cv_file_magic_cmd='/bin/file' |
| 3632 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 3633 | lt_cv_file_magic_test_file=/lib/libc.so |
| 3634 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3635 | siemens) |
| 3636 | lt_cv_deplibs_check_method=pass_all |
| 3637 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3638 | pc) |
| 3639 | lt_cv_deplibs_check_method=pass_all |
| 3640 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3641 | esac |
| 3642 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3643 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3644 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3645 | lt_cv_deplibs_check_method=pass_all |
| 3646 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3647 | esac |
| 3648 | |
| 3649 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3650 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 3651 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3652 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 3653 | deplibs_check_method=$lt_cv_deplibs_check_method |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3654 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3655 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3656 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3657 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3658 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3659 | # If no C compiler was specified, use CC. |
| 3660 | LTCC=${LTCC-"$CC"} |
| 3661 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3662 | # If no C compiler flags were specified, use CFLAGS. |
| 3663 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 3664 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3665 | # Allow CC to be a program name with arguments. |
| 3666 | compiler=$CC |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3667 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3668 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3669 | # Check whether --enable-libtool-lock was given. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3670 | if test "${enable_libtool_lock+set}" = set; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3671 | enableval=$enable_libtool_lock; |
| 3672 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3673 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3674 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3675 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3676 | # Some flags need to be propagated to the compiler or linker for good |
| 3677 | # libtool support. |
| 3678 | case $host in |
| 3679 | ia64-*-hpux*) |
| 3680 | # Find out which ABI we are using. |
| 3681 | echo 'int i;' > conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3682 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3683 | (eval $ac_compile) 2>&5 |
| 3684 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3686 | (exit $ac_status); }; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3687 | case `/usr/bin/file conftest.$ac_objext` in |
| 3688 | *ELF-32*) |
| 3689 | HPUX_IA64_MODE="32" |
| 3690 | ;; |
| 3691 | *ELF-64*) |
| 3692 | HPUX_IA64_MODE="64" |
| 3693 | ;; |
| 3694 | esac |
| 3695 | fi |
| 3696 | rm -rf conftest* |
| 3697 | ;; |
| 3698 | *-*-irix6*) |
| 3699 | # Find out which ABI we are using. |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame^] | 3700 | echo '#line 3700 "configure"' > conftest.$ac_ext |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3701 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3702 | (eval $ac_compile) 2>&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3703 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3705 | (exit $ac_status); }; then |
| 3706 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 3707 | case `/usr/bin/file conftest.$ac_objext` in |
| 3708 | *32-bit*) |
| 3709 | LD="${LD-ld} -melf32bsmip" |
| 3710 | ;; |
| 3711 | *N32*) |
| 3712 | LD="${LD-ld} -melf32bmipn32" |
| 3713 | ;; |
| 3714 | *64-bit*) |
| 3715 | LD="${LD-ld} -melf64bmip" |
| 3716 | ;; |
| 3717 | esac |
| 3718 | else |
| 3719 | case `/usr/bin/file conftest.$ac_objext` in |
| 3720 | *32-bit*) |
| 3721 | LD="${LD-ld} -32" |
| 3722 | ;; |
| 3723 | *N32*) |
| 3724 | LD="${LD-ld} -n32" |
| 3725 | ;; |
| 3726 | *64-bit*) |
| 3727 | LD="${LD-ld} -64" |
| 3728 | ;; |
| 3729 | esac |
| 3730 | fi |
| 3731 | fi |
| 3732 | rm -rf conftest* |
| 3733 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3734 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3735 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| 3736 | # Find out which ABI we are using. |
| 3737 | echo 'int i;' > conftest.$ac_ext |
| 3738 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3739 | (eval $ac_compile) 2>&5 |
| 3740 | ac_status=$? |
| 3741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3742 | (exit $ac_status); }; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3743 | case `/usr/bin/file conftest.o` in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3744 | *32-bit*) |
| 3745 | case $host in |
| 3746 | x86_64-*linux*) |
| 3747 | LD="${LD-ld} -m elf_i386" |
| 3748 | ;; |
| 3749 | ppc64-*linux*|powerpc64-*linux*) |
| 3750 | LD="${LD-ld} -m elf32ppclinux" |
| 3751 | ;; |
| 3752 | s390x-*linux*) |
| 3753 | LD="${LD-ld} -m elf_s390" |
| 3754 | ;; |
| 3755 | sparc64-*linux*) |
| 3756 | LD="${LD-ld} -m elf32_sparc" |
| 3757 | ;; |
| 3758 | esac |
| 3759 | ;; |
| 3760 | *64-bit*) |
| 3761 | case $host in |
| 3762 | x86_64-*linux*) |
| 3763 | LD="${LD-ld} -m elf_x86_64" |
| 3764 | ;; |
| 3765 | ppc*-*linux*|powerpc*-*linux*) |
| 3766 | LD="${LD-ld} -m elf64ppc" |
| 3767 | ;; |
| 3768 | s390*-*linux*) |
| 3769 | LD="${LD-ld} -m elf64_s390" |
| 3770 | ;; |
| 3771 | sparc*-*linux*) |
| 3772 | LD="${LD-ld} -m elf64_sparc" |
| 3773 | ;; |
| 3774 | esac |
| 3775 | ;; |
| 3776 | esac |
| 3777 | fi |
| 3778 | rm -rf conftest* |
| 3779 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3780 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3781 | *-*-sco3.2v5*) |
| 3782 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 3783 | SAVE_CFLAGS="$CFLAGS" |
| 3784 | CFLAGS="$CFLAGS -belf" |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3785 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 3786 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3787 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 3788 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3789 | else |
| 3790 | ac_ext=c |
| 3791 | ac_cpp='$CPP $CPPFLAGS' |
| 3792 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3793 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3794 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3795 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3796 | cat >conftest.$ac_ext <<_ACEOF |
| 3797 | /* confdefs.h. */ |
| 3798 | _ACEOF |
| 3799 | cat confdefs.h >>conftest.$ac_ext |
| 3800 | cat >>conftest.$ac_ext <<_ACEOF |
| 3801 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3802 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3803 | int |
| 3804 | main () |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3805 | { |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3806 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3807 | ; |
| 3808 | return 0; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3809 | } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3810 | _ACEOF |
| 3811 | rm -f conftest.$ac_objext conftest$ac_exeext |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3812 | if { (ac_try="$ac_link" |
| 3813 | case "(($ac_try" in |
| 3814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3815 | *) ac_try_echo=$ac_try;; |
| 3816 | esac |
| 3817 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3818 | (eval "$ac_link") 2>conftest.er1 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3819 | ac_status=$? |
| 3820 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3821 | rm -f conftest.er1 |
| 3822 | cat conftest.err >&5 |
| 3823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3824 | (exit $ac_status); } && { |
| 3825 | test -z "$ac_c_werror_flag" || |
| 3826 | test ! -s conftest.err |
| 3827 | } && test -s conftest$ac_exeext && |
| 3828 | $as_test_x conftest$ac_exeext; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3829 | lt_cv_cc_needs_belf=yes |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3830 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3831 | echo "$as_me: failed program was:" >&5 |
| 3832 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3833 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3834 | lt_cv_cc_needs_belf=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3835 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3836 | |
| 3837 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3838 | conftest$ac_exeext conftest.$ac_ext |
| 3839 | ac_ext=c |
| 3840 | ac_cpp='$CPP $CPPFLAGS' |
| 3841 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3842 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3843 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3844 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3845 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3846 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 3847 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3848 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 3849 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 3850 | CFLAGS="$SAVE_CFLAGS" |
| 3851 | fi |
| 3852 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3853 | sparc*-*solaris*) |
| 3854 | # Find out which ABI we are using. |
| 3855 | echo 'int i;' > conftest.$ac_ext |
| 3856 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3857 | (eval $ac_compile) 2>&5 |
| 3858 | ac_status=$? |
| 3859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3860 | (exit $ac_status); }; then |
| 3861 | case `/usr/bin/file conftest.o` in |
| 3862 | *64-bit*) |
| 3863 | case $lt_cv_prog_gnu_ld in |
| 3864 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 3865 | *) LD="${LD-ld} -64" ;; |
| 3866 | esac |
| 3867 | ;; |
| 3868 | esac |
| 3869 | fi |
| 3870 | rm -rf conftest* |
| 3871 | ;; |
| 3872 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3873 | |
| 3874 | esac |
| 3875 | |
| 3876 | need_locks="$enable_libtool_lock" |
| 3877 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3878 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3879 | ac_ext=c |
| 3880 | ac_cpp='$CPP $CPPFLAGS' |
| 3881 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3882 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3883 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3884 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3885 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3886 | # On Suns, sometimes $CPP names a directory. |
| 3887 | if test -n "$CPP" && test -d "$CPP"; then |
| 3888 | CPP= |
| 3889 | fi |
| 3890 | if test -z "$CPP"; then |
| 3891 | if test "${ac_cv_prog_CPP+set}" = set; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3892 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3893 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3894 | # Double quotes because CPP needs to be expanded |
| 3895 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3896 | do |
| 3897 | ac_preproc_ok=false |
| 3898 | for ac_c_preproc_warn_flag in '' yes |
| 3899 | do |
| 3900 | # Use a header file that comes with gcc, so configuring glibc |
| 3901 | # with a fresh cross-compiler works. |
| 3902 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3903 | # <limits.h> exists even on freestanding compilers. |
| 3904 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3905 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3906 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3907 | /* confdefs.h. */ |
| 3908 | _ACEOF |
| 3909 | cat confdefs.h >>conftest.$ac_ext |
| 3910 | cat >>conftest.$ac_ext <<_ACEOF |
| 3911 | /* end confdefs.h. */ |
| 3912 | #ifdef __STDC__ |
| 3913 | # include <limits.h> |
| 3914 | #else |
| 3915 | # include <assert.h> |
| 3916 | #endif |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3917 | Syntax error |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3918 | _ACEOF |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3919 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3920 | case "(($ac_try" in |
| 3921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3922 | *) ac_try_echo=$ac_try;; |
| 3923 | esac |
| 3924 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3925 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3926 | ac_status=$? |
| 3927 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3928 | rm -f conftest.er1 |
| 3929 | cat conftest.err >&5 |
| 3930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3931 | (exit $ac_status); } >/dev/null && { |
| 3932 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3933 | test ! -s conftest.err |
| 3934 | }; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3935 | : |
| 3936 | else |
| 3937 | echo "$as_me: failed program was:" >&5 |
| 3938 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3939 | |
| 3940 | # Broken: fails on valid input. |
| 3941 | continue |
| 3942 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3943 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3944 | rm -f conftest.err conftest.$ac_ext |
| 3945 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3946 | # OK, works on sane cases. Now check whether nonexistent headers |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3947 | # can be detected and how. |
| 3948 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3949 | /* confdefs.h. */ |
| 3950 | _ACEOF |
| 3951 | cat confdefs.h >>conftest.$ac_ext |
| 3952 | cat >>conftest.$ac_ext <<_ACEOF |
| 3953 | /* end confdefs.h. */ |
| 3954 | #include <ac_nonexistent.h> |
| 3955 | _ACEOF |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3956 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3957 | case "(($ac_try" in |
| 3958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3959 | *) ac_try_echo=$ac_try;; |
| 3960 | esac |
| 3961 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3962 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3963 | ac_status=$? |
| 3964 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3965 | rm -f conftest.er1 |
| 3966 | cat conftest.err >&5 |
| 3967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3968 | (exit $ac_status); } >/dev/null && { |
| 3969 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3970 | test ! -s conftest.err |
| 3971 | }; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3972 | # Broken: success on invalid input. |
| 3973 | continue |
| 3974 | else |
| 3975 | echo "$as_me: failed program was:" >&5 |
| 3976 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3977 | |
| 3978 | # Passes both tests. |
| 3979 | ac_preproc_ok=: |
| 3980 | break |
| 3981 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3982 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3983 | rm -f conftest.err conftest.$ac_ext |
| 3984 | |
| 3985 | done |
| 3986 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3987 | rm -f conftest.err conftest.$ac_ext |
| 3988 | if $ac_preproc_ok; then |
| 3989 | break |
| 3990 | fi |
| 3991 | |
| 3992 | done |
| 3993 | ac_cv_prog_CPP=$CPP |
| 3994 | |
| 3995 | fi |
| 3996 | CPP=$ac_cv_prog_CPP |
| 3997 | else |
| 3998 | ac_cv_prog_CPP=$CPP |
| 3999 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4000 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 4001 | echo "${ECHO_T}$CPP" >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4002 | ac_preproc_ok=false |
| 4003 | for ac_c_preproc_warn_flag in '' yes |
| 4004 | do |
| 4005 | # Use a header file that comes with gcc, so configuring glibc |
| 4006 | # with a fresh cross-compiler works. |
| 4007 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4008 | # <limits.h> exists even on freestanding compilers. |
| 4009 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4010 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4011 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4012 | /* confdefs.h. */ |
| 4013 | _ACEOF |
| 4014 | cat confdefs.h >>conftest.$ac_ext |
| 4015 | cat >>conftest.$ac_ext <<_ACEOF |
| 4016 | /* end confdefs.h. */ |
| 4017 | #ifdef __STDC__ |
| 4018 | # include <limits.h> |
| 4019 | #else |
| 4020 | # include <assert.h> |
| 4021 | #endif |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 4022 | Syntax error |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4023 | _ACEOF |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4024 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4025 | case "(($ac_try" in |
| 4026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4027 | *) ac_try_echo=$ac_try;; |
| 4028 | esac |
| 4029 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4030 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4031 | ac_status=$? |
| 4032 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4033 | rm -f conftest.er1 |
| 4034 | cat conftest.err >&5 |
| 4035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4036 | (exit $ac_status); } >/dev/null && { |
| 4037 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 4038 | test ! -s conftest.err |
| 4039 | }; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4040 | : |
| 4041 | else |
| 4042 | echo "$as_me: failed program was:" >&5 |
| 4043 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4044 | |
| 4045 | # Broken: fails on valid input. |
| 4046 | continue |
| 4047 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4048 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4049 | rm -f conftest.err conftest.$ac_ext |
| 4050 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4051 | # OK, works on sane cases. Now check whether nonexistent headers |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4052 | # can be detected and how. |
| 4053 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4054 | /* confdefs.h. */ |
| 4055 | _ACEOF |
| 4056 | cat confdefs.h >>conftest.$ac_ext |
| 4057 | cat >>conftest.$ac_ext <<_ACEOF |
| 4058 | /* end confdefs.h. */ |
| 4059 | #include <ac_nonexistent.h> |
| 4060 | _ACEOF |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4061 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4062 | case "(($ac_try" in |
| 4063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4064 | *) ac_try_echo=$ac_try;; |
| 4065 | esac |
| 4066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4067 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4068 | ac_status=$? |
| 4069 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4070 | rm -f conftest.er1 |
| 4071 | cat conftest.err >&5 |
| 4072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4073 | (exit $ac_status); } >/dev/null && { |
| 4074 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 4075 | test ! -s conftest.err |
| 4076 | }; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4077 | # Broken: success on invalid input. |
| 4078 | continue |
| 4079 | else |
| 4080 | echo "$as_me: failed program was:" >&5 |
| 4081 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4082 | |
| 4083 | # Passes both tests. |
| 4084 | ac_preproc_ok=: |
| 4085 | break |
| 4086 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4087 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4088 | rm -f conftest.err conftest.$ac_ext |
| 4089 | |
| 4090 | done |
| 4091 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4092 | rm -f conftest.err conftest.$ac_ext |
| 4093 | if $ac_preproc_ok; then |
| 4094 | : |
| 4095 | else |
| 4096 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 4097 | See \`config.log' for more details." >&5 |
| 4098 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 4099 | See \`config.log' for more details." >&2;} |
| 4100 | { (exit 1); exit 1; }; } |
| 4101 | fi |
| 4102 | |
| 4103 | ac_ext=c |
| 4104 | ac_cpp='$CPP $CPPFLAGS' |
| 4105 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4106 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4107 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4108 | |
| 4109 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4110 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4111 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4112 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4113 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4114 | else |
| 4115 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4116 | /* confdefs.h. */ |
| 4117 | _ACEOF |
| 4118 | cat confdefs.h >>conftest.$ac_ext |
| 4119 | cat >>conftest.$ac_ext <<_ACEOF |
| 4120 | /* end confdefs.h. */ |
| 4121 | #include <stdlib.h> |
| 4122 | #include <stdarg.h> |
| 4123 | #include <string.h> |
| 4124 | #include <float.h> |
| 4125 | |
| 4126 | int |
| 4127 | main () |
| 4128 | { |
| 4129 | |
| 4130 | ; |
| 4131 | return 0; |
| 4132 | } |
| 4133 | _ACEOF |
| 4134 | rm -f conftest.$ac_objext |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4135 | if { (ac_try="$ac_compile" |
| 4136 | case "(($ac_try" in |
| 4137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4138 | *) ac_try_echo=$ac_try;; |
| 4139 | esac |
| 4140 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4141 | (eval "$ac_compile") 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4142 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 4143 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4144 | rm -f conftest.er1 |
| 4145 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4147 | (exit $ac_status); } && { |
| 4148 | test -z "$ac_c_werror_flag" || |
| 4149 | test ! -s conftest.err |
| 4150 | } && test -s conftest.$ac_objext; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4151 | ac_cv_header_stdc=yes |
| 4152 | else |
| 4153 | echo "$as_me: failed program was:" >&5 |
| 4154 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4155 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4156 | ac_cv_header_stdc=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4157 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4158 | |
| 4159 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4160 | |
| 4161 | if test $ac_cv_header_stdc = yes; then |
| 4162 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4163 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4164 | /* confdefs.h. */ |
| 4165 | _ACEOF |
| 4166 | cat confdefs.h >>conftest.$ac_ext |
| 4167 | cat >>conftest.$ac_ext <<_ACEOF |
| 4168 | /* end confdefs.h. */ |
| 4169 | #include <string.h> |
| 4170 | |
| 4171 | _ACEOF |
| 4172 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4173 | $EGREP "memchr" >/dev/null 2>&1; then |
| 4174 | : |
| 4175 | else |
| 4176 | ac_cv_header_stdc=no |
| 4177 | fi |
| 4178 | rm -f conftest* |
| 4179 | |
| 4180 | fi |
| 4181 | |
| 4182 | if test $ac_cv_header_stdc = yes; then |
| 4183 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4184 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4185 | /* confdefs.h. */ |
| 4186 | _ACEOF |
| 4187 | cat confdefs.h >>conftest.$ac_ext |
| 4188 | cat >>conftest.$ac_ext <<_ACEOF |
| 4189 | /* end confdefs.h. */ |
| 4190 | #include <stdlib.h> |
| 4191 | |
| 4192 | _ACEOF |
| 4193 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4194 | $EGREP "free" >/dev/null 2>&1; then |
| 4195 | : |
| 4196 | else |
| 4197 | ac_cv_header_stdc=no |
| 4198 | fi |
| 4199 | rm -f conftest* |
| 4200 | |
| 4201 | fi |
| 4202 | |
| 4203 | if test $ac_cv_header_stdc = yes; then |
| 4204 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4205 | if test "$cross_compiling" = yes; then |
| 4206 | : |
| 4207 | else |
| 4208 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4209 | /* confdefs.h. */ |
| 4210 | _ACEOF |
| 4211 | cat confdefs.h >>conftest.$ac_ext |
| 4212 | cat >>conftest.$ac_ext <<_ACEOF |
| 4213 | /* end confdefs.h. */ |
| 4214 | #include <ctype.h> |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4215 | #include <stdlib.h> |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4216 | #if ((' ' & 0x0FF) == 0x020) |
| 4217 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4218 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4219 | #else |
| 4220 | # define ISLOWER(c) \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 4221 | (('a' <= (c) && (c) <= 'i') \ |
| 4222 | || ('j' <= (c) && (c) <= 'r') \ |
| 4223 | || ('s' <= (c) && (c) <= 'z')) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4224 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4225 | #endif |
| 4226 | |
| 4227 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4228 | int |
| 4229 | main () |
| 4230 | { |
| 4231 | int i; |
| 4232 | for (i = 0; i < 256; i++) |
| 4233 | if (XOR (islower (i), ISLOWER (i)) |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 4234 | || toupper (i) != TOUPPER (i)) |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4235 | return 2; |
| 4236 | return 0; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4237 | } |
| 4238 | _ACEOF |
| 4239 | rm -f conftest$ac_exeext |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4240 | if { (ac_try="$ac_link" |
| 4241 | case "(($ac_try" in |
| 4242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4243 | *) ac_try_echo=$ac_try;; |
| 4244 | esac |
| 4245 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4246 | (eval "$ac_link") 2>&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4247 | ac_status=$? |
| 4248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4249 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4250 | { (case "(($ac_try" in |
| 4251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4252 | *) ac_try_echo=$ac_try;; |
| 4253 | esac |
| 4254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4255 | (eval "$ac_try") 2>&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4256 | ac_status=$? |
| 4257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4258 | (exit $ac_status); }; }; then |
| 4259 | : |
| 4260 | else |
| 4261 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4262 | echo "$as_me: failed program was:" >&5 |
| 4263 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4264 | |
| 4265 | ( exit $ac_status ) |
| 4266 | ac_cv_header_stdc=no |
| 4267 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4268 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4269 | fi |
| 4270 | |
| 4271 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4272 | fi |
| 4273 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4274 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4275 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4276 | if test $ac_cv_header_stdc = yes; then |
| 4277 | |
| 4278 | cat >>confdefs.h <<\_ACEOF |
| 4279 | #define STDC_HEADERS 1 |
| 4280 | _ACEOF |
| 4281 | |
| 4282 | fi |
| 4283 | |
| 4284 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4285 | |
| 4286 | |
| 4287 | |
| 4288 | |
| 4289 | |
| 4290 | |
| 4291 | |
| 4292 | |
| 4293 | |
| 4294 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 4295 | inttypes.h stdint.h unistd.h |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4296 | do |
| 4297 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4298 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4299 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 4300 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4301 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4302 | else |
| 4303 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4304 | /* confdefs.h. */ |
| 4305 | _ACEOF |
| 4306 | cat confdefs.h >>conftest.$ac_ext |
| 4307 | cat >>conftest.$ac_ext <<_ACEOF |
| 4308 | /* end confdefs.h. */ |
| 4309 | $ac_includes_default |
| 4310 | |
| 4311 | #include <$ac_header> |
| 4312 | _ACEOF |
| 4313 | rm -f conftest.$ac_objext |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4314 | if { (ac_try="$ac_compile" |
| 4315 | case "(($ac_try" in |
| 4316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4317 | *) ac_try_echo=$ac_try;; |
| 4318 | esac |
| 4319 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4320 | (eval "$ac_compile") 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4321 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 4322 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4323 | rm -f conftest.er1 |
| 4324 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4326 | (exit $ac_status); } && { |
| 4327 | test -z "$ac_c_werror_flag" || |
| 4328 | test ! -s conftest.err |
| 4329 | } && test -s conftest.$ac_objext; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4330 | eval "$as_ac_Header=yes" |
| 4331 | else |
| 4332 | echo "$as_me: failed program was:" >&5 |
| 4333 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4334 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4335 | eval "$as_ac_Header=no" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4336 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4337 | |
| 4338 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4339 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4340 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 4341 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4342 | echo "${ECHO_T}$ac_res" >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4343 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4344 | cat >>confdefs.h <<_ACEOF |
| 4345 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4346 | _ACEOF |
| 4347 | |
| 4348 | fi |
| 4349 | |
| 4350 | done |
| 4351 | |
| 4352 | |
| 4353 | |
| 4354 | for ac_header in dlfcn.h |
| 4355 | do |
| 4356 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4357 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 4358 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4359 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 4360 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4362 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4363 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 4364 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4365 | echo "${ECHO_T}$ac_res" >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4366 | else |
| 4367 | # Is the header compilable? |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4368 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 4369 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4370 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4371 | /* confdefs.h. */ |
| 4372 | _ACEOF |
| 4373 | cat confdefs.h >>conftest.$ac_ext |
| 4374 | cat >>conftest.$ac_ext <<_ACEOF |
| 4375 | /* end confdefs.h. */ |
| 4376 | $ac_includes_default |
| 4377 | #include <$ac_header> |
| 4378 | _ACEOF |
| 4379 | rm -f conftest.$ac_objext |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4380 | if { (ac_try="$ac_compile" |
| 4381 | case "(($ac_try" in |
| 4382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4383 | *) ac_try_echo=$ac_try;; |
| 4384 | esac |
| 4385 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4386 | (eval "$ac_compile") 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4387 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 4388 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4389 | rm -f conftest.er1 |
| 4390 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4392 | (exit $ac_status); } && { |
| 4393 | test -z "$ac_c_werror_flag" || |
| 4394 | test ! -s conftest.err |
| 4395 | } && test -s conftest.$ac_objext; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4396 | ac_header_compiler=yes |
| 4397 | else |
| 4398 | echo "$as_me: failed program was:" >&5 |
| 4399 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4400 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4401 | ac_header_compiler=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4402 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4403 | |
| 4404 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4405 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4406 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4407 | |
| 4408 | # Is the header present? |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4409 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 4410 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4411 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4412 | /* confdefs.h. */ |
| 4413 | _ACEOF |
| 4414 | cat confdefs.h >>conftest.$ac_ext |
| 4415 | cat >>conftest.$ac_ext <<_ACEOF |
| 4416 | /* end confdefs.h. */ |
| 4417 | #include <$ac_header> |
| 4418 | _ACEOF |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4419 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4420 | case "(($ac_try" in |
| 4421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4422 | *) ac_try_echo=$ac_try;; |
| 4423 | esac |
| 4424 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4425 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4426 | ac_status=$? |
| 4427 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4428 | rm -f conftest.er1 |
| 4429 | cat conftest.err >&5 |
| 4430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4431 | (exit $ac_status); } >/dev/null && { |
| 4432 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 4433 | test ! -s conftest.err |
| 4434 | }; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4435 | ac_header_preproc=yes |
| 4436 | else |
| 4437 | echo "$as_me: failed program was:" >&5 |
| 4438 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4439 | |
| 4440 | ac_header_preproc=no |
| 4441 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4442 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4443 | rm -f conftest.err conftest.$ac_ext |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4444 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4445 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4446 | |
| 4447 | # So? What about this header? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 4448 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4449 | yes:no: ) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4450 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4451 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 4452 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 4453 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 4454 | ac_header_preproc=yes |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4455 | ;; |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 4456 | no:yes:* ) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4457 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4458 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 4459 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4460 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4461 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 4462 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 4463 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 4464 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4465 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4466 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 4467 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 4468 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4469 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4470 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4471 | esac |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4472 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4473 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 4474 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4475 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4476 | else |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 4477 | eval "$as_ac_Header=\$ac_header_preproc" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4478 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4479 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 4480 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4481 | echo "${ECHO_T}$ac_res" >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4482 | |
| 4483 | fi |
| 4484 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4485 | cat >>confdefs.h <<_ACEOF |
| 4486 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4487 | _ACEOF |
| 4488 | |
| 4489 | fi |
| 4490 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4491 | done |
| 4492 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4493 | ac_ext=cpp |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4494 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 4495 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4496 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4497 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4498 | if test -z "$CXX"; then |
| 4499 | if test -n "$CCC"; then |
| 4500 | CXX=$CCC |
| 4501 | else |
| 4502 | if test -n "$ac_tool_prefix"; then |
| 4503 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4504 | do |
| 4505 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4506 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4507 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4508 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4509 | if test "${ac_cv_prog_CXX+set}" = set; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4510 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4511 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4512 | if test -n "$CXX"; then |
| 4513 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 4514 | else |
| 4515 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4516 | for as_dir in $PATH |
| 4517 | do |
| 4518 | IFS=$as_save_IFS |
| 4519 | test -z "$as_dir" && as_dir=. |
| 4520 | for ac_exec_ext in '' $ac_executable_extensions; do |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4521 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4522 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 4523 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4524 | break 2 |
| 4525 | fi |
| 4526 | done |
| 4527 | done |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4528 | IFS=$as_save_IFS |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4529 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4530 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4531 | fi |
| 4532 | CXX=$ac_cv_prog_CXX |
| 4533 | if test -n "$CXX"; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4534 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 4535 | echo "${ECHO_T}$CXX" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4536 | else |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4537 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4538 | echo "${ECHO_T}no" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4539 | fi |
| 4540 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4541 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4542 | test -n "$CXX" && break |
| 4543 | done |
| 4544 | fi |
| 4545 | if test -z "$CXX"; then |
| 4546 | ac_ct_CXX=$CXX |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4547 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4548 | do |
| 4549 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4550 | set dummy $ac_prog; ac_word=$2 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4551 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4552 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4553 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4554 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4555 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4556 | if test -n "$ac_ct_CXX"; then |
| 4557 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 4558 | else |
| 4559 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4560 | for as_dir in $PATH |
| 4561 | do |
| 4562 | IFS=$as_save_IFS |
| 4563 | test -z "$as_dir" && as_dir=. |
| 4564 | for ac_exec_ext in '' $ac_executable_extensions; do |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4565 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4566 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 4567 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4568 | break 2 |
| 4569 | fi |
| 4570 | done |
| 4571 | done |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4572 | IFS=$as_save_IFS |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4573 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4574 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4575 | fi |
| 4576 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 4577 | if test -n "$ac_ct_CXX"; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4578 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 4579 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4580 | else |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4581 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4582 | echo "${ECHO_T}no" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4583 | fi |
| 4584 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4585 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4586 | test -n "$ac_ct_CXX" && break |
| 4587 | done |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4588 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4589 | if test "x$ac_ct_CXX" = x; then |
| 4590 | CXX="g++" |
| 4591 | else |
| 4592 | case $cross_compiling:$ac_tool_warned in |
| 4593 | yes:) |
| 4594 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 4595 | whose name does not start with the host triplet. If you think this |
| 4596 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 4597 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 4598 | whose name does not start with the host triplet. If you think this |
| 4599 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 4600 | ac_tool_warned=yes ;; |
| 4601 | esac |
| 4602 | CXX=$ac_ct_CXX |
| 4603 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4604 | fi |
| 4605 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4606 | fi |
| 4607 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4608 | # Provide some information about the compiler. |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4609 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4610 | ac_compiler=`set X $ac_compile; echo $2` |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4611 | { (ac_try="$ac_compiler --version >&5" |
| 4612 | case "(($ac_try" in |
| 4613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4614 | *) ac_try_echo=$ac_try;; |
| 4615 | esac |
| 4616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4617 | (eval "$ac_compiler --version >&5") 2>&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4618 | ac_status=$? |
| 4619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4620 | (exit $ac_status); } |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4621 | { (ac_try="$ac_compiler -v >&5" |
| 4622 | case "(($ac_try" in |
| 4623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4624 | *) ac_try_echo=$ac_try;; |
| 4625 | esac |
| 4626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4627 | (eval "$ac_compiler -v >&5") 2>&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4628 | ac_status=$? |
| 4629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4630 | (exit $ac_status); } |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4631 | { (ac_try="$ac_compiler -V >&5" |
| 4632 | case "(($ac_try" in |
| 4633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4634 | *) ac_try_echo=$ac_try;; |
| 4635 | esac |
| 4636 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4637 | (eval "$ac_compiler -V >&5") 2>&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4638 | ac_status=$? |
| 4639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4640 | (exit $ac_status); } |
| 4641 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4642 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 4643 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4644 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 4645 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4646 | else |
| 4647 | cat >conftest.$ac_ext <<_ACEOF |
| 4648 | /* confdefs.h. */ |
| 4649 | _ACEOF |
| 4650 | cat confdefs.h >>conftest.$ac_ext |
| 4651 | cat >>conftest.$ac_ext <<_ACEOF |
| 4652 | /* end confdefs.h. */ |
| 4653 | |
| 4654 | int |
| 4655 | main () |
| 4656 | { |
| 4657 | #ifndef __GNUC__ |
| 4658 | choke me |
| 4659 | #endif |
| 4660 | |
| 4661 | ; |
| 4662 | return 0; |
| 4663 | } |
| 4664 | _ACEOF |
| 4665 | rm -f conftest.$ac_objext |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4666 | if { (ac_try="$ac_compile" |
| 4667 | case "(($ac_try" in |
| 4668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4669 | *) ac_try_echo=$ac_try;; |
| 4670 | esac |
| 4671 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4672 | (eval "$ac_compile") 2>conftest.er1 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4673 | ac_status=$? |
| 4674 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4675 | rm -f conftest.er1 |
| 4676 | cat conftest.err >&5 |
| 4677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4678 | (exit $ac_status); } && { |
| 4679 | test -z "$ac_cxx_werror_flag" || |
| 4680 | test ! -s conftest.err |
| 4681 | } && test -s conftest.$ac_objext; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4682 | ac_compiler_gnu=yes |
| 4683 | else |
| 4684 | echo "$as_me: failed program was:" >&5 |
| 4685 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4686 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4687 | ac_compiler_gnu=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4688 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4689 | |
| 4690 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4691 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 4692 | |
| 4693 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4694 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 4695 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4696 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 4697 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 4698 | ac_save_CXXFLAGS=$CXXFLAGS |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4699 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 4700 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4701 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 4702 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4703 | else |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4704 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 4705 | ac_cxx_werror_flag=yes |
| 4706 | ac_cv_prog_cxx_g=no |
| 4707 | CXXFLAGS="-g" |
| 4708 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4709 | /* confdefs.h. */ |
| 4710 | _ACEOF |
| 4711 | cat confdefs.h >>conftest.$ac_ext |
| 4712 | cat >>conftest.$ac_ext <<_ACEOF |
| 4713 | /* end confdefs.h. */ |
| 4714 | |
| 4715 | int |
| 4716 | main () |
| 4717 | { |
| 4718 | |
| 4719 | ; |
| 4720 | return 0; |
| 4721 | } |
| 4722 | _ACEOF |
| 4723 | rm -f conftest.$ac_objext |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4724 | if { (ac_try="$ac_compile" |
| 4725 | case "(($ac_try" in |
| 4726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4727 | *) ac_try_echo=$ac_try;; |
| 4728 | esac |
| 4729 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4730 | (eval "$ac_compile") 2>conftest.er1 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4731 | ac_status=$? |
| 4732 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4733 | rm -f conftest.er1 |
| 4734 | cat conftest.err >&5 |
| 4735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4736 | (exit $ac_status); } && { |
| 4737 | test -z "$ac_cxx_werror_flag" || |
| 4738 | test ! -s conftest.err |
| 4739 | } && test -s conftest.$ac_objext; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4740 | ac_cv_prog_cxx_g=yes |
| 4741 | else |
| 4742 | echo "$as_me: failed program was:" >&5 |
| 4743 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4744 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4745 | CXXFLAGS="" |
| 4746 | cat >conftest.$ac_ext <<_ACEOF |
| 4747 | /* confdefs.h. */ |
| 4748 | _ACEOF |
| 4749 | cat confdefs.h >>conftest.$ac_ext |
| 4750 | cat >>conftest.$ac_ext <<_ACEOF |
| 4751 | /* end confdefs.h. */ |
| 4752 | |
| 4753 | int |
| 4754 | main () |
| 4755 | { |
| 4756 | |
| 4757 | ; |
| 4758 | return 0; |
| 4759 | } |
| 4760 | _ACEOF |
| 4761 | rm -f conftest.$ac_objext |
| 4762 | if { (ac_try="$ac_compile" |
| 4763 | case "(($ac_try" in |
| 4764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4765 | *) ac_try_echo=$ac_try;; |
| 4766 | esac |
| 4767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4768 | (eval "$ac_compile") 2>conftest.er1 |
| 4769 | ac_status=$? |
| 4770 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4771 | rm -f conftest.er1 |
| 4772 | cat conftest.err >&5 |
| 4773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4774 | (exit $ac_status); } && { |
| 4775 | test -z "$ac_cxx_werror_flag" || |
| 4776 | test ! -s conftest.err |
| 4777 | } && test -s conftest.$ac_objext; then |
| 4778 | : |
| 4779 | else |
| 4780 | echo "$as_me: failed program was:" >&5 |
| 4781 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4782 | |
| 4783 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 4784 | CXXFLAGS="-g" |
| 4785 | cat >conftest.$ac_ext <<_ACEOF |
| 4786 | /* confdefs.h. */ |
| 4787 | _ACEOF |
| 4788 | cat confdefs.h >>conftest.$ac_ext |
| 4789 | cat >>conftest.$ac_ext <<_ACEOF |
| 4790 | /* end confdefs.h. */ |
| 4791 | |
| 4792 | int |
| 4793 | main () |
| 4794 | { |
| 4795 | |
| 4796 | ; |
| 4797 | return 0; |
| 4798 | } |
| 4799 | _ACEOF |
| 4800 | rm -f conftest.$ac_objext |
| 4801 | if { (ac_try="$ac_compile" |
| 4802 | case "(($ac_try" in |
| 4803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4804 | *) ac_try_echo=$ac_try;; |
| 4805 | esac |
| 4806 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4807 | (eval "$ac_compile") 2>conftest.er1 |
| 4808 | ac_status=$? |
| 4809 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4810 | rm -f conftest.er1 |
| 4811 | cat conftest.err >&5 |
| 4812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4813 | (exit $ac_status); } && { |
| 4814 | test -z "$ac_cxx_werror_flag" || |
| 4815 | test ! -s conftest.err |
| 4816 | } && test -s conftest.$ac_objext; then |
| 4817 | ac_cv_prog_cxx_g=yes |
| 4818 | else |
| 4819 | echo "$as_me: failed program was:" >&5 |
| 4820 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4821 | |
| 4822 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4823 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4824 | |
| 4825 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4826 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4827 | |
| 4828 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4829 | fi |
| 4830 | |
| 4831 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4832 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 4833 | fi |
| 4834 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 4835 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4836 | if test "$ac_test_CXXFLAGS" = set; then |
| 4837 | CXXFLAGS=$ac_save_CXXFLAGS |
| 4838 | elif test $ac_cv_prog_cxx_g = yes; then |
| 4839 | if test "$GXX" = yes; then |
| 4840 | CXXFLAGS="-g -O2" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4841 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4842 | CXXFLAGS="-g" |
| 4843 | fi |
| 4844 | else |
| 4845 | if test "$GXX" = yes; then |
| 4846 | CXXFLAGS="-O2" |
| 4847 | else |
| 4848 | CXXFLAGS= |
| 4849 | fi |
| 4850 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4851 | ac_ext=cpp |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4852 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 4853 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4854 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4855 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4856 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 4857 | |
| 4858 | |
| 4859 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 4860 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 4861 | (test "X$CXX" != "Xg++"))) ; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4862 | ac_ext=cpp |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4863 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 4864 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4865 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4866 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4867 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 4868 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4869 | if test -z "$CXXCPP"; then |
| 4870 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
| 4871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4872 | else |
| 4873 | # Double quotes because CXXCPP needs to be expanded |
| 4874 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 4875 | do |
| 4876 | ac_preproc_ok=false |
| 4877 | for ac_cxx_preproc_warn_flag in '' yes |
| 4878 | do |
| 4879 | # Use a header file that comes with gcc, so configuring glibc |
| 4880 | # with a fresh cross-compiler works. |
| 4881 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4882 | # <limits.h> exists even on freestanding compilers. |
| 4883 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4884 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4885 | cat >conftest.$ac_ext <<_ACEOF |
| 4886 | /* confdefs.h. */ |
| 4887 | _ACEOF |
| 4888 | cat confdefs.h >>conftest.$ac_ext |
| 4889 | cat >>conftest.$ac_ext <<_ACEOF |
| 4890 | /* end confdefs.h. */ |
| 4891 | #ifdef __STDC__ |
| 4892 | # include <limits.h> |
| 4893 | #else |
| 4894 | # include <assert.h> |
| 4895 | #endif |
| 4896 | Syntax error |
| 4897 | _ACEOF |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4898 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4899 | case "(($ac_try" in |
| 4900 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4901 | *) ac_try_echo=$ac_try;; |
| 4902 | esac |
| 4903 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4904 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4905 | ac_status=$? |
| 4906 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4907 | rm -f conftest.er1 |
| 4908 | cat conftest.err >&5 |
| 4909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4910 | (exit $ac_status); } >/dev/null && { |
| 4911 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 4912 | test ! -s conftest.err |
| 4913 | }; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4914 | : |
| 4915 | else |
| 4916 | echo "$as_me: failed program was:" >&5 |
| 4917 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4918 | |
| 4919 | # Broken: fails on valid input. |
| 4920 | continue |
| 4921 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4922 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4923 | rm -f conftest.err conftest.$ac_ext |
| 4924 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4925 | # OK, works on sane cases. Now check whether nonexistent headers |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4926 | # can be detected and how. |
| 4927 | cat >conftest.$ac_ext <<_ACEOF |
| 4928 | /* confdefs.h. */ |
| 4929 | _ACEOF |
| 4930 | cat confdefs.h >>conftest.$ac_ext |
| 4931 | cat >>conftest.$ac_ext <<_ACEOF |
| 4932 | /* end confdefs.h. */ |
| 4933 | #include <ac_nonexistent.h> |
| 4934 | _ACEOF |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4935 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4936 | case "(($ac_try" in |
| 4937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4938 | *) ac_try_echo=$ac_try;; |
| 4939 | esac |
| 4940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4941 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4942 | ac_status=$? |
| 4943 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4944 | rm -f conftest.er1 |
| 4945 | cat conftest.err >&5 |
| 4946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4947 | (exit $ac_status); } >/dev/null && { |
| 4948 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 4949 | test ! -s conftest.err |
| 4950 | }; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4951 | # Broken: success on invalid input. |
| 4952 | continue |
| 4953 | else |
| 4954 | echo "$as_me: failed program was:" >&5 |
| 4955 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4956 | |
| 4957 | # Passes both tests. |
| 4958 | ac_preproc_ok=: |
| 4959 | break |
| 4960 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4961 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4962 | rm -f conftest.err conftest.$ac_ext |
| 4963 | |
| 4964 | done |
| 4965 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4966 | rm -f conftest.err conftest.$ac_ext |
| 4967 | if $ac_preproc_ok; then |
| 4968 | break |
| 4969 | fi |
| 4970 | |
| 4971 | done |
| 4972 | ac_cv_prog_CXXCPP=$CXXCPP |
| 4973 | |
| 4974 | fi |
| 4975 | CXXCPP=$ac_cv_prog_CXXCPP |
| 4976 | else |
| 4977 | ac_cv_prog_CXXCPP=$CXXCPP |
| 4978 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 4979 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 4980 | echo "${ECHO_T}$CXXCPP" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4981 | ac_preproc_ok=false |
| 4982 | for ac_cxx_preproc_warn_flag in '' yes |
| 4983 | do |
| 4984 | # Use a header file that comes with gcc, so configuring glibc |
| 4985 | # with a fresh cross-compiler works. |
| 4986 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4987 | # <limits.h> exists even on freestanding compilers. |
| 4988 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4989 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4990 | cat >conftest.$ac_ext <<_ACEOF |
| 4991 | /* confdefs.h. */ |
| 4992 | _ACEOF |
| 4993 | cat confdefs.h >>conftest.$ac_ext |
| 4994 | cat >>conftest.$ac_ext <<_ACEOF |
| 4995 | /* end confdefs.h. */ |
| 4996 | #ifdef __STDC__ |
| 4997 | # include <limits.h> |
| 4998 | #else |
| 4999 | # include <assert.h> |
| 5000 | #endif |
| 5001 | Syntax error |
| 5002 | _ACEOF |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5003 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5004 | case "(($ac_try" in |
| 5005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5006 | *) ac_try_echo=$ac_try;; |
| 5007 | esac |
| 5008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5009 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5010 | ac_status=$? |
| 5011 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5012 | rm -f conftest.er1 |
| 5013 | cat conftest.err >&5 |
| 5014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5015 | (exit $ac_status); } >/dev/null && { |
| 5016 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 5017 | test ! -s conftest.err |
| 5018 | }; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5019 | : |
| 5020 | else |
| 5021 | echo "$as_me: failed program was:" >&5 |
| 5022 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5023 | |
| 5024 | # Broken: fails on valid input. |
| 5025 | continue |
| 5026 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5027 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5028 | rm -f conftest.err conftest.$ac_ext |
| 5029 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5030 | # OK, works on sane cases. Now check whether nonexistent headers |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5031 | # can be detected and how. |
| 5032 | cat >conftest.$ac_ext <<_ACEOF |
| 5033 | /* confdefs.h. */ |
| 5034 | _ACEOF |
| 5035 | cat confdefs.h >>conftest.$ac_ext |
| 5036 | cat >>conftest.$ac_ext <<_ACEOF |
| 5037 | /* end confdefs.h. */ |
| 5038 | #include <ac_nonexistent.h> |
| 5039 | _ACEOF |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5040 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5041 | case "(($ac_try" in |
| 5042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5043 | *) ac_try_echo=$ac_try;; |
| 5044 | esac |
| 5045 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5046 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5047 | ac_status=$? |
| 5048 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5049 | rm -f conftest.er1 |
| 5050 | cat conftest.err >&5 |
| 5051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5052 | (exit $ac_status); } >/dev/null && { |
| 5053 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 5054 | test ! -s conftest.err |
| 5055 | }; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5056 | # Broken: success on invalid input. |
| 5057 | continue |
| 5058 | else |
| 5059 | echo "$as_me: failed program was:" >&5 |
| 5060 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5061 | |
| 5062 | # Passes both tests. |
| 5063 | ac_preproc_ok=: |
| 5064 | break |
| 5065 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5066 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5067 | rm -f conftest.err conftest.$ac_ext |
| 5068 | |
| 5069 | done |
| 5070 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5071 | rm -f conftest.err conftest.$ac_ext |
| 5072 | if $ac_preproc_ok; then |
| 5073 | : |
| 5074 | else |
| 5075 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 5076 | See \`config.log' for more details." >&5 |
| 5077 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 5078 | See \`config.log' for more details." >&2;} |
| 5079 | { (exit 1); exit 1; }; } |
| 5080 | fi |
| 5081 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5082 | ac_ext=cpp |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5083 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5084 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5085 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5086 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5087 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5088 | fi |
| 5089 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5090 | |
| 5091 | ac_ext=f |
| 5092 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 5093 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5094 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 5095 | if test -n "$ac_tool_prefix"; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5096 | for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5097 | do |
| 5098 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5099 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5100 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5101 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5102 | if test "${ac_cv_prog_F77+set}" = set; then |
| 5103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5104 | else |
| 5105 | if test -n "$F77"; then |
| 5106 | ac_cv_prog_F77="$F77" # Let the user override the test. |
| 5107 | else |
| 5108 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5109 | for as_dir in $PATH |
| 5110 | do |
| 5111 | IFS=$as_save_IFS |
| 5112 | test -z "$as_dir" && as_dir=. |
| 5113 | for ac_exec_ext in '' $ac_executable_extensions; do |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5114 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5115 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
| 5116 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5117 | break 2 |
| 5118 | fi |
| 5119 | done |
| 5120 | done |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5121 | IFS=$as_save_IFS |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5122 | |
| 5123 | fi |
| 5124 | fi |
| 5125 | F77=$ac_cv_prog_F77 |
| 5126 | if test -n "$F77"; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5127 | { echo "$as_me:$LINENO: result: $F77" >&5 |
| 5128 | echo "${ECHO_T}$F77" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5129 | else |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5130 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5131 | echo "${ECHO_T}no" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5132 | fi |
| 5133 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5134 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5135 | test -n "$F77" && break |
| 5136 | done |
| 5137 | fi |
| 5138 | if test -z "$F77"; then |
| 5139 | ac_ct_F77=$F77 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5140 | for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5141 | do |
| 5142 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5143 | set dummy $ac_prog; ac_word=$2 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5144 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5145 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5146 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
| 5147 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5148 | else |
| 5149 | if test -n "$ac_ct_F77"; then |
| 5150 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
| 5151 | else |
| 5152 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5153 | for as_dir in $PATH |
| 5154 | do |
| 5155 | IFS=$as_save_IFS |
| 5156 | test -z "$as_dir" && as_dir=. |
| 5157 | for ac_exec_ext in '' $ac_executable_extensions; do |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5158 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5159 | ac_cv_prog_ac_ct_F77="$ac_prog" |
| 5160 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5161 | break 2 |
| 5162 | fi |
| 5163 | done |
| 5164 | done |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5165 | IFS=$as_save_IFS |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5166 | |
| 5167 | fi |
| 5168 | fi |
| 5169 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
| 5170 | if test -n "$ac_ct_F77"; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5171 | { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
| 5172 | echo "${ECHO_T}$ac_ct_F77" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5173 | else |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5174 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5175 | echo "${ECHO_T}no" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5176 | fi |
| 5177 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5178 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5179 | test -n "$ac_ct_F77" && break |
| 5180 | done |
| 5181 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5182 | if test "x$ac_ct_F77" = x; then |
| 5183 | F77="" |
| 5184 | else |
| 5185 | case $cross_compiling:$ac_tool_warned in |
| 5186 | yes:) |
| 5187 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5188 | whose name does not start with the host triplet. If you think this |
| 5189 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5190 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5191 | whose name does not start with the host triplet. If you think this |
| 5192 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5193 | ac_tool_warned=yes ;; |
| 5194 | esac |
| 5195 | F77=$ac_ct_F77 |
| 5196 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5197 | fi |
| 5198 | |
| 5199 | |
| 5200 | # Provide some information about the compiler. |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5201 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5202 | ac_compiler=`set X $ac_compile; echo $2` |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5203 | { (ac_try="$ac_compiler --version >&5" |
| 5204 | case "(($ac_try" in |
| 5205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5206 | *) ac_try_echo=$ac_try;; |
| 5207 | esac |
| 5208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5209 | (eval "$ac_compiler --version >&5") 2>&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5210 | ac_status=$? |
| 5211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5212 | (exit $ac_status); } |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5213 | { (ac_try="$ac_compiler -v >&5" |
| 5214 | case "(($ac_try" in |
| 5215 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5216 | *) ac_try_echo=$ac_try;; |
| 5217 | esac |
| 5218 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5219 | (eval "$ac_compiler -v >&5") 2>&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5220 | ac_status=$? |
| 5221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5222 | (exit $ac_status); } |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5223 | { (ac_try="$ac_compiler -V >&5" |
| 5224 | case "(($ac_try" in |
| 5225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5226 | *) ac_try_echo=$ac_try;; |
| 5227 | esac |
| 5228 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5229 | (eval "$ac_compiler -V >&5") 2>&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5230 | ac_status=$? |
| 5231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5232 | (exit $ac_status); } |
| 5233 | rm -f a.out |
| 5234 | |
| 5235 | # If we don't use `.F' as extension, the preprocessor is not run on the |
| 5236 | # input file. (Note that this only needs to work for GNU compilers.) |
| 5237 | ac_save_ext=$ac_ext |
| 5238 | ac_ext=F |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5239 | { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
| 5240 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5241 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
| 5242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5243 | else |
| 5244 | cat >conftest.$ac_ext <<_ACEOF |
| 5245 | program main |
| 5246 | #ifndef __GNUC__ |
| 5247 | choke me |
| 5248 | #endif |
| 5249 | |
| 5250 | end |
| 5251 | _ACEOF |
| 5252 | rm -f conftest.$ac_objext |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5253 | if { (ac_try="$ac_compile" |
| 5254 | case "(($ac_try" in |
| 5255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5256 | *) ac_try_echo=$ac_try;; |
| 5257 | esac |
| 5258 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5259 | (eval "$ac_compile") 2>conftest.er1 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5260 | ac_status=$? |
| 5261 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5262 | rm -f conftest.er1 |
| 5263 | cat conftest.err >&5 |
| 5264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5265 | (exit $ac_status); } && { |
| 5266 | test -z "$ac_f77_werror_flag" || |
| 5267 | test ! -s conftest.err |
| 5268 | } && test -s conftest.$ac_objext; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5269 | ac_compiler_gnu=yes |
| 5270 | else |
| 5271 | echo "$as_me: failed program was:" >&5 |
| 5272 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5273 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5274 | ac_compiler_gnu=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5275 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5276 | |
| 5277 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5278 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
| 5279 | |
| 5280 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5281 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
| 5282 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5283 | ac_ext=$ac_save_ext |
| 5284 | ac_test_FFLAGS=${FFLAGS+set} |
| 5285 | ac_save_FFLAGS=$FFLAGS |
| 5286 | FFLAGS= |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5287 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
| 5288 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5289 | if test "${ac_cv_prog_f77_g+set}" = set; then |
| 5290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5291 | else |
| 5292 | FFLAGS=-g |
| 5293 | cat >conftest.$ac_ext <<_ACEOF |
| 5294 | program main |
| 5295 | |
| 5296 | end |
| 5297 | _ACEOF |
| 5298 | rm -f conftest.$ac_objext |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5299 | if { (ac_try="$ac_compile" |
| 5300 | case "(($ac_try" in |
| 5301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5302 | *) ac_try_echo=$ac_try;; |
| 5303 | esac |
| 5304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5305 | (eval "$ac_compile") 2>conftest.er1 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5306 | ac_status=$? |
| 5307 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5308 | rm -f conftest.er1 |
| 5309 | cat conftest.err >&5 |
| 5310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5311 | (exit $ac_status); } && { |
| 5312 | test -z "$ac_f77_werror_flag" || |
| 5313 | test ! -s conftest.err |
| 5314 | } && test -s conftest.$ac_objext; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5315 | ac_cv_prog_f77_g=yes |
| 5316 | else |
| 5317 | echo "$as_me: failed program was:" >&5 |
| 5318 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5319 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5320 | ac_cv_prog_f77_g=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5321 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5322 | |
| 5323 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5324 | |
| 5325 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5326 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
| 5327 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5328 | if test "$ac_test_FFLAGS" = set; then |
| 5329 | FFLAGS=$ac_save_FFLAGS |
| 5330 | elif test $ac_cv_prog_f77_g = yes; then |
| 5331 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
| 5332 | FFLAGS="-g -O2" |
| 5333 | else |
| 5334 | FFLAGS="-g" |
| 5335 | fi |
| 5336 | else |
| 5337 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
| 5338 | FFLAGS="-O2" |
| 5339 | else |
| 5340 | FFLAGS= |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5341 | fi |
| 5342 | fi |
| 5343 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5344 | G77=`test $ac_compiler_gnu = yes && echo yes` |
| 5345 | ac_ext=c |
| 5346 | ac_cpp='$CPP $CPPFLAGS' |
| 5347 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5348 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5349 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5350 | |
| 5351 | |
| 5352 | |
| 5353 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| 5354 | |
| 5355 | # find the maximum length of command line arguments |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5356 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 5357 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5358 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| 5359 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5360 | else |
| 5361 | i=0 |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5362 | teststring="ABCD" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5363 | |
| 5364 | case $build_os in |
| 5365 | msdosdjgpp*) |
| 5366 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 5367 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 5368 | # during glob expansion). Even if it were fixed, the result of this |
| 5369 | # check would be larger than it should be. |
| 5370 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 5371 | ;; |
| 5372 | |
| 5373 | gnu*) |
| 5374 | # Under GNU Hurd, this test is not required because there is |
| 5375 | # no limit to the length of command line arguments. |
| 5376 | # Libtool will interpret -1 as no limit whatsoever |
| 5377 | lt_cv_sys_max_cmd_len=-1; |
| 5378 | ;; |
| 5379 | |
| 5380 | cygwin* | mingw*) |
| 5381 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 5382 | # about 5 minutes as the teststring grows exponentially. |
| 5383 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 5384 | # you end up with a "frozen" computer, even though with patience |
| 5385 | # the test eventually succeeds (with a max line length of 256k). |
| 5386 | # Instead, let's just punt: use the minimum linelength reported by |
| 5387 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 5388 | lt_cv_sys_max_cmd_len=8192; |
| 5389 | ;; |
| 5390 | |
| 5391 | amigaos*) |
| 5392 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 5393 | # So we just punt and use a minimum line length of 8192. |
| 5394 | lt_cv_sys_max_cmd_len=8192; |
| 5395 | ;; |
| 5396 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5397 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 5398 | # This has been around since 386BSD, at least. Likely further. |
| 5399 | if test -x /sbin/sysctl; then |
| 5400 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 5401 | elif test -x /usr/sbin/sysctl; then |
| 5402 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 5403 | else |
| 5404 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 5405 | fi |
| 5406 | # And add a safety zone |
| 5407 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 5408 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 5409 | ;; |
| 5410 | |
| 5411 | interix*) |
| 5412 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 5413 | lt_cv_sys_max_cmd_len=196608 |
| 5414 | ;; |
| 5415 | |
| 5416 | osf*) |
| 5417 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 5418 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 5419 | # nice to cause kernel panics so lets avoid the loop below. |
| 5420 | # First set a reasonable default. |
| 5421 | lt_cv_sys_max_cmd_len=16384 |
| 5422 | # |
| 5423 | if test -x /sbin/sysconfig; then |
| 5424 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 5425 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 5426 | esac |
| 5427 | fi |
| 5428 | ;; |
| 5429 | sco3.2v5*) |
| 5430 | lt_cv_sys_max_cmd_len=102400 |
| 5431 | ;; |
| 5432 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 5433 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 5434 | if test -n "$kargmax"; then |
| 5435 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 5436 | else |
| 5437 | lt_cv_sys_max_cmd_len=32768 |
| 5438 | fi |
| 5439 | ;; |
| 5440 | *) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5441 | # If test is not a shell built-in, we'll probably end up computing a |
| 5442 | # maximum length that is only half of the actual maximum length, but |
| 5443 | # we can't tell. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5444 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 5445 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
| 5446 | = "XX$teststring") >/dev/null 2>&1 && |
| 5447 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5448 | lt_cv_sys_max_cmd_len=$new_result && |
| 5449 | test $i != 17 # 1/2 MB should be enough |
| 5450 | do |
| 5451 | i=`expr $i + 1` |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5452 | teststring=$teststring$teststring |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5453 | done |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5454 | teststring= |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5455 | # Add a significant safety factor because C++ compilers can tack on massive |
| 5456 | # amounts of additional arguments before passing them to the linker. |
| 5457 | # It appears as though 1/2 is a usable value. |
| 5458 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 5459 | ;; |
| 5460 | esac |
| 5461 | |
| 5462 | fi |
| 5463 | |
| 5464 | if test -n $lt_cv_sys_max_cmd_len ; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5465 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 5466 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5467 | else |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5468 | { echo "$as_me:$LINENO: result: none" >&5 |
| 5469 | echo "${ECHO_T}none" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5470 | fi |
| 5471 | |
| 5472 | |
| 5473 | |
| 5474 | |
| 5475 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5476 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 5477 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5478 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 5479 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5480 | else |
| 5481 | |
| 5482 | # These are sane defaults that work on at least a few old systems. |
| 5483 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 5484 | |
| 5485 | # Character class describing NM global symbol codes. |
| 5486 | symcode='[BCDEGRST]' |
| 5487 | |
| 5488 | # Regexp to match symbols that can be accessed directly from C. |
| 5489 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 5490 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5491 | # Transform an extracted symbol line into a proper C declaration |
| 5492 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 5493 | |
| 5494 | # Transform an extracted symbol line into symbol name and symbol address |
| 5495 | 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'" |
| 5496 | |
| 5497 | # Define system-specific variables. |
| 5498 | case $host_os in |
| 5499 | aix*) |
| 5500 | symcode='[BCDT]' |
| 5501 | ;; |
| 5502 | cygwin* | mingw* | pw32*) |
| 5503 | symcode='[ABCDGISTW]' |
| 5504 | ;; |
| 5505 | hpux*) # Its linker distinguishes data from code symbols |
| 5506 | if test "$host_cpu" = ia64; then |
| 5507 | symcode='[ABCDEGRST]' |
| 5508 | fi |
| 5509 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 5510 | 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'" |
| 5511 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5512 | linux*) |
| 5513 | if test "$host_cpu" = ia64; then |
| 5514 | symcode='[ABCDGIRSTW]' |
| 5515 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 5516 | 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'" |
| 5517 | fi |
| 5518 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5519 | irix* | nonstopux*) |
| 5520 | symcode='[BCDEGRST]' |
| 5521 | ;; |
| 5522 | osf*) |
| 5523 | symcode='[BCDEGQRST]' |
| 5524 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5525 | solaris*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5526 | symcode='[BDRT]' |
| 5527 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5528 | sco3.2v5*) |
| 5529 | symcode='[DT]' |
| 5530 | ;; |
| 5531 | sysv4.2uw2*) |
| 5532 | symcode='[DT]' |
| 5533 | ;; |
| 5534 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 5535 | symcode='[ABDT]' |
| 5536 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5537 | sysv4) |
| 5538 | symcode='[DFNSTU]' |
| 5539 | ;; |
| 5540 | esac |
| 5541 | |
| 5542 | # Handle CRLF in mingw tool chain |
| 5543 | opt_cr= |
| 5544 | case $build_os in |
| 5545 | mingw*) |
| 5546 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 5547 | ;; |
| 5548 | esac |
| 5549 | |
| 5550 | # If we're using GNU nm, then use its standard symbol codes. |
| 5551 | case `$NM -V 2>&1` in |
| 5552 | *GNU* | *'with BFD'*) |
| 5553 | symcode='[ABCDGIRSTW]' ;; |
| 5554 | esac |
| 5555 | |
| 5556 | # Try without a prefix undercore, then with it. |
| 5557 | for ac_symprfx in "" "_"; do |
| 5558 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5559 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 5560 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 5561 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5562 | # Write the raw and C identifiers. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5563 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5564 | |
| 5565 | # Check to see that the pipe works correctly. |
| 5566 | pipe_works=no |
| 5567 | |
| 5568 | rm -f conftest* |
| 5569 | cat > conftest.$ac_ext <<EOF |
| 5570 | #ifdef __cplusplus |
| 5571 | extern "C" { |
| 5572 | #endif |
| 5573 | char nm_test_var; |
| 5574 | void nm_test_func(){} |
| 5575 | #ifdef __cplusplus |
| 5576 | } |
| 5577 | #endif |
| 5578 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 5579 | EOF |
| 5580 | |
| 5581 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5582 | (eval $ac_compile) 2>&5 |
| 5583 | ac_status=$? |
| 5584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5585 | (exit $ac_status); }; then |
| 5586 | # Now try to grab the symbols. |
| 5587 | nlist=conftest.nm |
| 5588 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 5589 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 5590 | ac_status=$? |
| 5591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5592 | (exit $ac_status); } && test -s "$nlist"; then |
| 5593 | # Try sorting and uniquifying the output. |
| 5594 | if sort "$nlist" | uniq > "$nlist"T; then |
| 5595 | mv -f "$nlist"T "$nlist" |
| 5596 | else |
| 5597 | rm -f "$nlist"T |
| 5598 | fi |
| 5599 | |
| 5600 | # Make sure that we snagged all the symbols we need. |
| 5601 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 5602 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 5603 | cat <<EOF > conftest.$ac_ext |
| 5604 | #ifdef __cplusplus |
| 5605 | extern "C" { |
| 5606 | #endif |
| 5607 | |
| 5608 | EOF |
| 5609 | # Now generate the symbol file. |
| 5610 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 5611 | |
| 5612 | cat <<EOF >> conftest.$ac_ext |
| 5613 | #if defined (__STDC__) && __STDC__ |
| 5614 | # define lt_ptr_t void * |
| 5615 | #else |
| 5616 | # define lt_ptr_t char * |
| 5617 | # define const |
| 5618 | #endif |
| 5619 | |
| 5620 | /* The mapping between symbol names and symbols. */ |
| 5621 | const struct { |
| 5622 | const char *name; |
| 5623 | lt_ptr_t address; |
| 5624 | } |
| 5625 | lt_preloaded_symbols[] = |
| 5626 | { |
| 5627 | EOF |
| 5628 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 5629 | cat <<\EOF >> conftest.$ac_ext |
| 5630 | {0, (lt_ptr_t) 0} |
| 5631 | }; |
| 5632 | |
| 5633 | #ifdef __cplusplus |
| 5634 | } |
| 5635 | #endif |
| 5636 | EOF |
| 5637 | # Now try linking the two files. |
| 5638 | mv conftest.$ac_objext conftstm.$ac_objext |
| 5639 | lt_save_LIBS="$LIBS" |
| 5640 | lt_save_CFLAGS="$CFLAGS" |
| 5641 | LIBS="conftstm.$ac_objext" |
| 5642 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 5643 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5644 | (eval $ac_link) 2>&5 |
| 5645 | ac_status=$? |
| 5646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5647 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 5648 | pipe_works=yes |
| 5649 | fi |
| 5650 | LIBS="$lt_save_LIBS" |
| 5651 | CFLAGS="$lt_save_CFLAGS" |
| 5652 | else |
| 5653 | echo "cannot find nm_test_func in $nlist" >&5 |
| 5654 | fi |
| 5655 | else |
| 5656 | echo "cannot find nm_test_var in $nlist" >&5 |
| 5657 | fi |
| 5658 | else |
| 5659 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 5660 | fi |
| 5661 | else |
| 5662 | echo "$progname: failed program was:" >&5 |
| 5663 | cat conftest.$ac_ext >&5 |
| 5664 | fi |
| 5665 | rm -f conftest* conftst* |
| 5666 | |
| 5667 | # Do not use the global_symbol_pipe unless it works. |
| 5668 | if test "$pipe_works" = yes; then |
| 5669 | break |
| 5670 | else |
| 5671 | lt_cv_sys_global_symbol_pipe= |
| 5672 | fi |
| 5673 | done |
| 5674 | |
| 5675 | fi |
| 5676 | |
| 5677 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 5678 | lt_cv_sys_global_symbol_to_cdecl= |
| 5679 | fi |
| 5680 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5681 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 5682 | echo "${ECHO_T}failed" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5683 | else |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5684 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 5685 | echo "${ECHO_T}ok" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5686 | fi |
| 5687 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5688 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 5689 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5690 | if test "${lt_cv_objdir+set}" = set; then |
| 5691 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5692 | else |
| 5693 | rm -f .libs 2>/dev/null |
| 5694 | mkdir .libs 2>/dev/null |
| 5695 | if test -d .libs; then |
| 5696 | lt_cv_objdir=.libs |
| 5697 | else |
| 5698 | # MS-DOS does not allow filenames that begin with a dot. |
| 5699 | lt_cv_objdir=_libs |
| 5700 | fi |
| 5701 | rmdir .libs 2>/dev/null |
| 5702 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5703 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
| 5704 | echo "${ECHO_T}$lt_cv_objdir" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5705 | objdir=$lt_cv_objdir |
| 5706 | |
| 5707 | |
| 5708 | |
| 5709 | |
| 5710 | |
| 5711 | case $host_os in |
| 5712 | aix3*) |
| 5713 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 5714 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 5715 | # vanish in a puff of smoke. |
| 5716 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 5717 | COLLECT_NAMES= |
| 5718 | export COLLECT_NAMES |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5719 | fi |
| 5720 | ;; |
| 5721 | esac |
| 5722 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5723 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 5724 | # metacharacters that are still active within double-quoted strings. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5725 | Xsed='sed -e 1s/^X//' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5726 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 5727 | |
| 5728 | # Same as above, but do not quote variable references. |
| 5729 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 5730 | |
| 5731 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 5732 | # double_quote_subst'ed string. |
| 5733 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 5734 | |
| 5735 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 5736 | no_glob_subst='s/\*/\\\*/g' |
| 5737 | |
| 5738 | # Constants: |
| 5739 | rm="rm -f" |
| 5740 | |
| 5741 | # Global variables: |
| 5742 | default_ofile=libtool |
| 5743 | can_build_shared=yes |
| 5744 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5745 | # All known linkers require a `.a' archive for static linking (except MSVC, |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5746 | # which needs '.lib'). |
| 5747 | libext=a |
| 5748 | ltmain="$ac_aux_dir/ltmain.sh" |
| 5749 | ofile="$default_ofile" |
| 5750 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 5751 | |
| 5752 | if test -n "$ac_tool_prefix"; then |
| 5753 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 5754 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5755 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5756 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5757 | if test "${ac_cv_prog_AR+set}" = set; then |
| 5758 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5759 | else |
| 5760 | if test -n "$AR"; then |
| 5761 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 5762 | else |
| 5763 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5764 | for as_dir in $PATH |
| 5765 | do |
| 5766 | IFS=$as_save_IFS |
| 5767 | test -z "$as_dir" && as_dir=. |
| 5768 | for ac_exec_ext in '' $ac_executable_extensions; do |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5769 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5770 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 5771 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5772 | break 2 |
| 5773 | fi |
| 5774 | done |
| 5775 | done |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5776 | IFS=$as_save_IFS |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5777 | |
| 5778 | fi |
| 5779 | fi |
| 5780 | AR=$ac_cv_prog_AR |
| 5781 | if test -n "$AR"; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5782 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 5783 | echo "${ECHO_T}$AR" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5784 | else |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5785 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5786 | echo "${ECHO_T}no" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5787 | fi |
| 5788 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5789 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5790 | fi |
| 5791 | if test -z "$ac_cv_prog_AR"; then |
| 5792 | ac_ct_AR=$AR |
| 5793 | # Extract the first word of "ar", so it can be a program name with args. |
| 5794 | set dummy ar; ac_word=$2 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5795 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5796 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5797 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 5798 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5799 | else |
| 5800 | if test -n "$ac_ct_AR"; then |
| 5801 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 5802 | else |
| 5803 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5804 | for as_dir in $PATH |
| 5805 | do |
| 5806 | IFS=$as_save_IFS |
| 5807 | test -z "$as_dir" && as_dir=. |
| 5808 | for ac_exec_ext in '' $ac_executable_extensions; do |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5809 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5810 | ac_cv_prog_ac_ct_AR="ar" |
| 5811 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5812 | break 2 |
| 5813 | fi |
| 5814 | done |
| 5815 | done |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5816 | IFS=$as_save_IFS |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5817 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5818 | fi |
| 5819 | fi |
| 5820 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 5821 | if test -n "$ac_ct_AR"; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5822 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 5823 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5824 | else |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5825 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5826 | echo "${ECHO_T}no" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5827 | fi |
| 5828 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5829 | if test "x$ac_ct_AR" = x; then |
| 5830 | AR="false" |
| 5831 | else |
| 5832 | case $cross_compiling:$ac_tool_warned in |
| 5833 | yes:) |
| 5834 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5835 | whose name does not start with the host triplet. If you think this |
| 5836 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5837 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5838 | whose name does not start with the host triplet. If you think this |
| 5839 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5840 | ac_tool_warned=yes ;; |
| 5841 | esac |
| 5842 | AR=$ac_ct_AR |
| 5843 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5844 | else |
| 5845 | AR="$ac_cv_prog_AR" |
| 5846 | fi |
| 5847 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5848 | if test -n "$ac_tool_prefix"; then |
| 5849 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5850 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5851 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5852 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5853 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 5854 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5855 | else |
| 5856 | if test -n "$RANLIB"; then |
| 5857 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5858 | else |
| 5859 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5860 | for as_dir in $PATH |
| 5861 | do |
| 5862 | IFS=$as_save_IFS |
| 5863 | test -z "$as_dir" && as_dir=. |
| 5864 | for ac_exec_ext in '' $ac_executable_extensions; do |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5865 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5866 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 5867 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5868 | break 2 |
| 5869 | fi |
| 5870 | done |
| 5871 | done |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5872 | IFS=$as_save_IFS |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5873 | |
| 5874 | fi |
| 5875 | fi |
| 5876 | RANLIB=$ac_cv_prog_RANLIB |
| 5877 | if test -n "$RANLIB"; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5878 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 5879 | echo "${ECHO_T}$RANLIB" >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5880 | else |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5881 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5882 | echo "${ECHO_T}no" >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5883 | fi |
| 5884 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5885 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5886 | fi |
| 5887 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5888 | ac_ct_RANLIB=$RANLIB |
| 5889 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5890 | set dummy ranlib; ac_word=$2 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5891 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5892 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5893 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 5894 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5895 | else |
| 5896 | if test -n "$ac_ct_RANLIB"; then |
| 5897 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5898 | else |
| 5899 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5900 | for as_dir in $PATH |
| 5901 | do |
| 5902 | IFS=$as_save_IFS |
| 5903 | test -z "$as_dir" && as_dir=. |
| 5904 | for ac_exec_ext in '' $ac_executable_extensions; do |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5905 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5906 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 5907 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5908 | break 2 |
| 5909 | fi |
| 5910 | done |
| 5911 | done |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5912 | IFS=$as_save_IFS |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5913 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5914 | fi |
| 5915 | fi |
| 5916 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5917 | if test -n "$ac_ct_RANLIB"; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5918 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 5919 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5920 | else |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5921 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5922 | echo "${ECHO_T}no" >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5923 | fi |
| 5924 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5925 | if test "x$ac_ct_RANLIB" = x; then |
| 5926 | RANLIB=":" |
| 5927 | else |
| 5928 | case $cross_compiling:$ac_tool_warned in |
| 5929 | yes:) |
| 5930 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5931 | whose name does not start with the host triplet. If you think this |
| 5932 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5933 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5934 | whose name does not start with the host triplet. If you think this |
| 5935 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5936 | ac_tool_warned=yes ;; |
| 5937 | esac |
| 5938 | RANLIB=$ac_ct_RANLIB |
| 5939 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5940 | else |
| 5941 | RANLIB="$ac_cv_prog_RANLIB" |
| 5942 | fi |
| 5943 | |
| 5944 | if test -n "$ac_tool_prefix"; then |
| 5945 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 5946 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5947 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5948 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5949 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 5950 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5951 | else |
| 5952 | if test -n "$STRIP"; then |
| 5953 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 5954 | else |
| 5955 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5956 | for as_dir in $PATH |
| 5957 | do |
| 5958 | IFS=$as_save_IFS |
| 5959 | test -z "$as_dir" && as_dir=. |
| 5960 | for ac_exec_ext in '' $ac_executable_extensions; do |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5961 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5962 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 5963 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5964 | break 2 |
| 5965 | fi |
| 5966 | done |
| 5967 | done |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5968 | IFS=$as_save_IFS |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5969 | |
| 5970 | fi |
| 5971 | fi |
| 5972 | STRIP=$ac_cv_prog_STRIP |
| 5973 | if test -n "$STRIP"; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5974 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 5975 | echo "${ECHO_T}$STRIP" >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5976 | else |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5977 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5978 | echo "${ECHO_T}no" >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5979 | fi |
| 5980 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5981 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5982 | fi |
| 5983 | if test -z "$ac_cv_prog_STRIP"; then |
| 5984 | ac_ct_STRIP=$STRIP |
| 5985 | # Extract the first word of "strip", so it can be a program name with args. |
| 5986 | set dummy strip; ac_word=$2 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5987 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5988 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5989 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 5990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5991 | else |
| 5992 | if test -n "$ac_ct_STRIP"; then |
| 5993 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 5994 | else |
| 5995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5996 | for as_dir in $PATH |
| 5997 | do |
| 5998 | IFS=$as_save_IFS |
| 5999 | test -z "$as_dir" && as_dir=. |
| 6000 | for ac_exec_ext in '' $ac_executable_extensions; do |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 6001 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6002 | ac_cv_prog_ac_ct_STRIP="strip" |
| 6003 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6004 | break 2 |
| 6005 | fi |
| 6006 | done |
| 6007 | done |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 6008 | IFS=$as_save_IFS |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6009 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6010 | fi |
| 6011 | fi |
| 6012 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 6013 | if test -n "$ac_ct_STRIP"; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 6014 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 6015 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6016 | else |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 6017 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6018 | echo "${ECHO_T}no" >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6019 | fi |
| 6020 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 6021 | if test "x$ac_ct_STRIP" = x; then |
| 6022 | STRIP=":" |
| 6023 | else |
| 6024 | case $cross_compiling:$ac_tool_warned in |
| 6025 | yes:) |
| 6026 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6027 | whose name does not start with the host triplet. If you think this |
| 6028 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6029 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6030 | whose name does not start with the host triplet. If you think this |
| 6031 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6032 | ac_tool_warned=yes ;; |
| 6033 | esac |
| 6034 | STRIP=$ac_ct_STRIP |
| 6035 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6036 | else |
| 6037 | STRIP="$ac_cv_prog_STRIP" |
| 6038 | fi |
| 6039 | |
| 6040 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6041 | old_CC="$CC" |
| 6042 | old_CFLAGS="$CFLAGS" |
| 6043 | |
| 6044 | # Set sane defaults for various variables |
| 6045 | test -z "$AR" && AR=ar |
| 6046 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 6047 | test -z "$AS" && AS=as |
| 6048 | test -z "$CC" && CC=cc |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6049 | test -z "$LTCC" && LTCC=$CC |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6050 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6051 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 6052 | test -z "$LD" && LD=ld |
| 6053 | test -z "$LN_S" && LN_S="ln -s" |
| 6054 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 6055 | test -z "$NM" && NM=nm |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6056 | test -z "$SED" && SED=sed |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6057 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 6058 | test -z "$RANLIB" && RANLIB=: |
| 6059 | test -z "$STRIP" && STRIP=: |
| 6060 | test -z "$ac_objext" && ac_objext=o |
| 6061 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6062 | # Determine commands to create old-style static archives. |
| 6063 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 6064 | old_postinstall_cmds='chmod 644 $oldlib' |
| 6065 | old_postuninstall_cmds= |
| 6066 | |
| 6067 | if test -n "$RANLIB"; then |
| 6068 | case $host_os in |
| 6069 | openbsd*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6070 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6071 | ;; |
| 6072 | *) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6073 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6074 | ;; |
| 6075 | esac |
| 6076 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 6077 | fi |
| 6078 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6079 | for cc_temp in $compiler""; do |
| 6080 | case $cc_temp in |
| 6081 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 6082 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 6083 | \-*) ;; |
| 6084 | *) break;; |
| 6085 | esac |
| 6086 | done |
| 6087 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 6088 | |
| 6089 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6090 | # Only perform the check for file, if the check method requires it |
| 6091 | case $deplibs_check_method in |
| 6092 | file_magic*) |
| 6093 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 6094 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 6095 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6096 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 6097 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6098 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6099 | case $MAGIC_CMD in |
| 6100 | [\\/*] | ?:[\\/]*) |
| 6101 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 6102 | ;; |
| 6103 | *) |
| 6104 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 6105 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6106 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 6107 | for ac_dir in $ac_dummy; do |
| 6108 | IFS="$lt_save_ifs" |
| 6109 | test -z "$ac_dir" && ac_dir=. |
| 6110 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 6111 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 6112 | if test -n "$file_magic_test_file"; then |
| 6113 | case $deplibs_check_method in |
| 6114 | "file_magic "*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6115 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6116 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 6117 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 6118 | $EGREP "$file_magic_regex" > /dev/null; then |
| 6119 | : |
| 6120 | else |
| 6121 | cat <<EOF 1>&2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6122 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6123 | *** Warning: the command libtool uses to detect shared libraries, |
| 6124 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 6125 | *** The result is that libtool may fail to recognize shared libraries |
| 6126 | *** as such. This will affect the creation of libtool libraries that |
| 6127 | *** depend on shared libraries, but programs linked with such libtool |
| 6128 | *** libraries will work regardless of this problem. Nevertheless, you |
| 6129 | *** may want to report the problem to your system manager and/or to |
| 6130 | *** bug-libtool@gnu.org |
| 6131 | |
| 6132 | EOF |
| 6133 | fi ;; |
| 6134 | esac |
| 6135 | fi |
| 6136 | break |
| 6137 | fi |
| 6138 | done |
| 6139 | IFS="$lt_save_ifs" |
| 6140 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 6141 | ;; |
| 6142 | esac |
| 6143 | fi |
| 6144 | |
| 6145 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 6146 | if test -n "$MAGIC_CMD"; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 6147 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 6148 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6149 | else |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 6150 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6151 | echo "${ECHO_T}no" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6152 | fi |
| 6153 | |
| 6154 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 6155 | if test -n "$ac_tool_prefix"; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 6156 | { echo "$as_me:$LINENO: checking for file" >&5 |
| 6157 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6158 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 6159 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6160 | else |
| 6161 | case $MAGIC_CMD in |
| 6162 | [\\/*] | ?:[\\/]*) |
| 6163 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 6164 | ;; |
| 6165 | *) |
| 6166 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 6167 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6168 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 6169 | for ac_dir in $ac_dummy; do |
| 6170 | IFS="$lt_save_ifs" |
| 6171 | test -z "$ac_dir" && ac_dir=. |
| 6172 | if test -f $ac_dir/file; then |
| 6173 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 6174 | if test -n "$file_magic_test_file"; then |
| 6175 | case $deplibs_check_method in |
| 6176 | "file_magic "*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6177 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6178 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 6179 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 6180 | $EGREP "$file_magic_regex" > /dev/null; then |
| 6181 | : |
| 6182 | else |
| 6183 | cat <<EOF 1>&2 |
| 6184 | |
| 6185 | *** Warning: the command libtool uses to detect shared libraries, |
| 6186 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 6187 | *** The result is that libtool may fail to recognize shared libraries |
| 6188 | *** as such. This will affect the creation of libtool libraries that |
| 6189 | *** depend on shared libraries, but programs linked with such libtool |
| 6190 | *** libraries will work regardless of this problem. Nevertheless, you |
| 6191 | *** may want to report the problem to your system manager and/or to |
| 6192 | *** bug-libtool@gnu.org |
| 6193 | |
| 6194 | EOF |
| 6195 | fi ;; |
| 6196 | esac |
| 6197 | fi |
| 6198 | break |
| 6199 | fi |
| 6200 | done |
| 6201 | IFS="$lt_save_ifs" |
| 6202 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 6203 | ;; |
| 6204 | esac |
| 6205 | fi |
| 6206 | |
| 6207 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 6208 | if test -n "$MAGIC_CMD"; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 6209 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 6210 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6211 | else |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 6212 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6213 | echo "${ECHO_T}no" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6214 | fi |
| 6215 | |
| 6216 | else |
| 6217 | MAGIC_CMD=: |
| 6218 | fi |
| 6219 | fi |
| 6220 | |
| 6221 | fi |
| 6222 | ;; |
| 6223 | esac |
| 6224 | |
| 6225 | enable_dlopen=no |
| 6226 | enable_win32_dll=no |
| 6227 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 6228 | # Check whether --enable-libtool-lock was given. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6229 | if test "${enable_libtool_lock+set}" = set; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 6230 | enableval=$enable_libtool_lock; |
| 6231 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6232 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6233 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6234 | |
| 6235 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 6236 | # Check whether --with-pic was given. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6237 | if test "${with_pic+set}" = set; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 6238 | withval=$with_pic; pic_mode="$withval" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6239 | else |
| 6240 | pic_mode=default |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 6241 | fi |
| 6242 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6243 | test -z "$pic_mode" && pic_mode=default |
| 6244 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6245 | # Check if we have a version mismatch between libtool.m4 and ltmain.sh. |
| 6246 | # |
| 6247 | # Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined. |
| 6248 | # We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually |
| 6249 | # calls AC_LIBTOOL_CONFIG and creates libtool. |
| 6250 | # |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 6251 | { echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5 |
| 6252 | echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6; } |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6253 | if test "x$ltmain" = "x" ; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 6254 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6255 | echo "${ECHO_T}no" >&6; } |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6256 | { { echo "$as_me:$LINENO: error: |
| 6257 | |
| 6258 | *** [Gentoo] sanity check failed! *** |
| 6259 | *** \$ltmain is not defined, please check the patch for consistency! *** |
| 6260 | " >&5 |
| 6261 | echo "$as_me: error: |
| 6262 | |
| 6263 | *** [Gentoo] sanity check failed! *** |
| 6264 | *** \$ltmain is not defined, please check the patch for consistency! *** |
| 6265 | " >&2;} |
| 6266 | { (exit 1); exit 1; }; } |
| 6267 | fi |
| 6268 | gentoo_lt_version="1.5.22" |
| 6269 | gentoo_ltmain_version=`sed -n '/^[ ]*VERSION=/{s/^[ ]*VERSION=//;p;q;}' "$ltmain"` |
| 6270 | if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 6271 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6272 | echo "${ECHO_T}no" >&6; } |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6273 | { { echo "$as_me:$LINENO: error: |
| 6274 | |
| 6275 | *** [Gentoo] sanity check failed! *** |
| 6276 | *** libtool.m4 and ltmain.sh have a version mismatch! *** |
| 6277 | *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) *** |
| 6278 | |
| 6279 | Please run: |
| 6280 | |
| 6281 | libtoolize --copy --force |
| 6282 | |
| 6283 | if appropriate, please contact the maintainer of this |
| 6284 | package (or your distribution) for help. |
| 6285 | " >&5 |
| 6286 | echo "$as_me: error: |
| 6287 | |
| 6288 | *** [Gentoo] sanity check failed! *** |
| 6289 | *** libtool.m4 and ltmain.sh have a version mismatch! *** |
| 6290 | *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) *** |
| 6291 | |
| 6292 | Please run: |
| 6293 | |
| 6294 | libtoolize --copy --force |
| 6295 | |
| 6296 | if appropriate, please contact the maintainer of this |
| 6297 | package (or your distribution) for help. |
| 6298 | " >&2;} |
| 6299 | { (exit 1); exit 1; }; } |
| 6300 | else |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 6301 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 6302 | echo "${ECHO_T}yes" >&6; } |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6303 | fi |
| 6304 | |
| 6305 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6306 | # Use C for the default configuration in the libtool script |
| 6307 | tagname= |
| 6308 | lt_save_CC="$CC" |
| 6309 | ac_ext=c |
| 6310 | ac_cpp='$CPP $CPPFLAGS' |
| 6311 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6312 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6313 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6314 | |
| 6315 | |
| 6316 | # Source file extension for C test sources. |
| 6317 | ac_ext=c |
| 6318 | |
| 6319 | # Object file extension for compiled C test sources. |
| 6320 | objext=o |
| 6321 | objext=$objext |
| 6322 | |
| 6323 | # Code to be used in simple compile tests |
| 6324 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 6325 | |
| 6326 | # Code to be used in simple link tests |
| 6327 | lt_simple_link_test_code='int main(){return(0);}\n' |
| 6328 | |
| 6329 | |
| 6330 | # If no C compiler was specified, use CC. |
| 6331 | LTCC=${LTCC-"$CC"} |
| 6332 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6333 | # If no C compiler flags were specified, use CFLAGS. |
| 6334 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 6335 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6336 | # Allow CC to be a program name with arguments. |
| 6337 | compiler=$CC |
| 6338 | |
| 6339 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6340 | # save warnings/boilerplate of simple test code |
| 6341 | ac_outfile=conftest.$ac_objext |
| 6342 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 6343 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 6344 | _lt_compiler_boilerplate=`cat conftest.err` |
| 6345 | $rm conftest* |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6346 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6347 | ac_outfile=conftest.$ac_objext |
| 6348 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 6349 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 6350 | _lt_linker_boilerplate=`cat conftest.err` |
| 6351 | $rm conftest* |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6352 | |
| 6353 | |
| 6354 | |
| 6355 | lt_prog_compiler_no_builtin_flag= |
| 6356 | |
| 6357 | if test "$GCC" = yes; then |
| 6358 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 6359 | |
| 6360 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 6361 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 6362 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6363 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 6364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6365 | else |
| 6366 | lt_cv_prog_compiler_rtti_exceptions=no |
| 6367 | ac_outfile=conftest.$ac_objext |
| 6368 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 6369 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 6370 | # Insert the option either (1) after the last *FLAGS variable, or |
| 6371 | # (2) before a word containing "conftest.", or (3) at the end. |
| 6372 | # Note that $ac_compile itself does not contain backslashes and begins |
| 6373 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 6374 | # The option is referenced via a variable to avoid confusing sed. |
| 6375 | lt_compile=`echo "$ac_compile" | $SED \ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6376 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6377 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 6378 | -e 's:$: $lt_compiler_flag:'` |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame^] | 6379 | (eval echo "\"\$as_me:6379: $lt_compile\"" >&5) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6380 | (eval "$lt_compile" 2>conftest.err) |
| 6381 | ac_status=$? |
| 6382 | cat conftest.err >&5 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame^] | 6383 | echo "$as_me:6383: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6384 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 6385 | # The compiler can only warn and ignore the option if not recognized |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6386 | # So say no if there are warnings other than the usual output. |
| 6387 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 6388 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 6389 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6390 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 6391 | fi |
| 6392 | fi |
| 6393 | $rm conftest* |
| 6394 | |
| 6395 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 6396 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 6397 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6398 | |
| 6399 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 6400 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 6401 | else |
| 6402 | : |
| 6403 | fi |
| 6404 | |
| 6405 | fi |
| 6406 | |
| 6407 | lt_prog_compiler_wl= |
| 6408 | lt_prog_compiler_pic= |
| 6409 | lt_prog_compiler_static= |
| 6410 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 6411 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 6412 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6413 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6414 | if test "$GCC" = yes; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6415 | lt_prog_compiler_wl='-Wl,' |
| 6416 | lt_prog_compiler_static='-static' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6417 | |
| 6418 | case $host_os in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6419 | aix*) |
| 6420 | # All AIX code is PIC. |
| 6421 | if test "$host_cpu" = ia64; then |
| 6422 | # AIX 5 now supports IA64 processor |
| 6423 | lt_prog_compiler_static='-Bstatic' |
| 6424 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6425 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6426 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6427 | amigaos*) |
| 6428 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 6429 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 6430 | # like `-m68040'. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6431 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6432 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6433 | |
| 6434 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6435 | # PIC is the default for these OSes. |
| 6436 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6437 | |
| 6438 | mingw* | pw32* | os2*) |
| 6439 | # This hack is so that the source file can tell whether it is being |
| 6440 | # built for inclusion in a dll (and should export symbols for example). |
| 6441 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 6442 | ;; |
| 6443 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6444 | darwin* | rhapsody*) |
| 6445 | # PIC is the default on this platform |
| 6446 | # Common symbols not allowed in MH_DYLIB files |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6447 | lt_prog_compiler_pic='-fno-common' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6448 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6449 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6450 | interix3*) |
| 6451 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 6452 | # Instead, we relocate shared libraries at runtime. |
| 6453 | ;; |
| 6454 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6455 | msdosdjgpp*) |
| 6456 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 6457 | # on systems that don't support them. |
| 6458 | lt_prog_compiler_can_build_shared=no |
| 6459 | enable_shared=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6460 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6461 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6462 | sysv4*MP*) |
| 6463 | if test -d /usr/nec; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6464 | lt_prog_compiler_pic=-Kconform_pic |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6465 | fi |
| 6466 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6467 | |
| 6468 | hpux*) |
| 6469 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 6470 | # not for PA HP-UX. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6471 | case $host_cpu in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6472 | hppa*64*|ia64*) |
| 6473 | # +Z the default |
| 6474 | ;; |
| 6475 | *) |
| 6476 | lt_prog_compiler_pic='-fPIC' |
| 6477 | ;; |
| 6478 | esac |
| 6479 | ;; |
| 6480 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6481 | *) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6482 | lt_prog_compiler_pic='-fPIC' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6483 | ;; |
| 6484 | esac |
| 6485 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6486 | # PORTME Check for flag to pass linker flags through the system compiler. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6487 | case $host_os in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6488 | aix*) |
| 6489 | lt_prog_compiler_wl='-Wl,' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6490 | if test "$host_cpu" = ia64; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6491 | # AIX 5 now supports IA64 processor |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6492 | lt_prog_compiler_static='-Bstatic' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6493 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6494 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6495 | fi |
| 6496 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6497 | darwin*) |
| 6498 | # PIC is the default on this platform |
| 6499 | # Common symbols not allowed in MH_DYLIB files |
| 6500 | case $cc_basename in |
| 6501 | xlc*) |
| 6502 | lt_prog_compiler_pic='-qnocommon' |
| 6503 | lt_prog_compiler_wl='-Wl,' |
| 6504 | ;; |
| 6505 | esac |
| 6506 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6507 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6508 | mingw* | pw32* | os2*) |
| 6509 | # This hack is so that the source file can tell whether it is being |
| 6510 | # built for inclusion in a dll (and should export symbols for example). |
| 6511 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 6512 | ;; |
| 6513 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6514 | hpux9* | hpux10* | hpux11*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6515 | lt_prog_compiler_wl='-Wl,' |
| 6516 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 6517 | # not for PA HP-UX. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6518 | case $host_cpu in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6519 | hppa*64*|ia64*) |
| 6520 | # +Z the default |
| 6521 | ;; |
| 6522 | *) |
| 6523 | lt_prog_compiler_pic='+Z' |
| 6524 | ;; |
| 6525 | esac |
| 6526 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 6527 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6528 | ;; |
| 6529 | |
| 6530 | irix5* | irix6* | nonstopux*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6531 | lt_prog_compiler_wl='-Wl,' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6532 | # PIC (with -KPIC) is the default. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6533 | lt_prog_compiler_static='-non_shared' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6534 | ;; |
| 6535 | |
| 6536 | newsos6) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6537 | lt_prog_compiler_pic='-KPIC' |
| 6538 | lt_prog_compiler_static='-Bstatic' |
| 6539 | ;; |
| 6540 | |
| 6541 | linux*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6542 | case $cc_basename in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6543 | icc* | ecc*) |
| 6544 | lt_prog_compiler_wl='-Wl,' |
| 6545 | lt_prog_compiler_pic='-KPIC' |
| 6546 | lt_prog_compiler_static='-static' |
| 6547 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6548 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 6549 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 6550 | # which looks to be a dead project) |
| 6551 | lt_prog_compiler_wl='-Wl,' |
| 6552 | lt_prog_compiler_pic='-fpic' |
| 6553 | lt_prog_compiler_static='-Bstatic' |
| 6554 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6555 | ccc*) |
| 6556 | lt_prog_compiler_wl='-Wl,' |
| 6557 | # All Alpha code is PIC. |
| 6558 | lt_prog_compiler_static='-non_shared' |
| 6559 | ;; |
| 6560 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6561 | ;; |
| 6562 | |
| 6563 | osf3* | osf4* | osf5*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6564 | lt_prog_compiler_wl='-Wl,' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6565 | # All OSF/1 code is PIC. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6566 | lt_prog_compiler_static='-non_shared' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6567 | ;; |
| 6568 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6569 | solaris*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6570 | lt_prog_compiler_pic='-KPIC' |
| 6571 | lt_prog_compiler_static='-Bstatic' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6572 | case $cc_basename in |
| 6573 | f77* | f90* | f95*) |
| 6574 | lt_prog_compiler_wl='-Qoption ld ';; |
| 6575 | *) |
| 6576 | lt_prog_compiler_wl='-Wl,';; |
| 6577 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6578 | ;; |
| 6579 | |
| 6580 | sunos4*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6581 | lt_prog_compiler_wl='-Qoption ld ' |
| 6582 | lt_prog_compiler_pic='-PIC' |
| 6583 | lt_prog_compiler_static='-Bstatic' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6584 | ;; |
| 6585 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6586 | sysv4 | sysv4.2uw2* | sysv4.3*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6587 | lt_prog_compiler_wl='-Wl,' |
| 6588 | lt_prog_compiler_pic='-KPIC' |
| 6589 | lt_prog_compiler_static='-Bstatic' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6590 | ;; |
| 6591 | |
| 6592 | sysv4*MP*) |
| 6593 | if test -d /usr/nec ;then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6594 | lt_prog_compiler_pic='-Kconform_pic' |
| 6595 | lt_prog_compiler_static='-Bstatic' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6596 | fi |
| 6597 | ;; |
| 6598 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6599 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 6600 | lt_prog_compiler_wl='-Wl,' |
| 6601 | lt_prog_compiler_pic='-KPIC' |
| 6602 | lt_prog_compiler_static='-Bstatic' |
| 6603 | ;; |
| 6604 | |
| 6605 | unicos*) |
| 6606 | lt_prog_compiler_wl='-Wl,' |
| 6607 | lt_prog_compiler_can_build_shared=no |
| 6608 | ;; |
| 6609 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6610 | uts4*) |
| 6611 | lt_prog_compiler_pic='-pic' |
| 6612 | lt_prog_compiler_static='-Bstatic' |
| 6613 | ;; |
| 6614 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6615 | *) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6616 | lt_prog_compiler_can_build_shared=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6617 | ;; |
| 6618 | esac |
| 6619 | fi |
| 6620 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 6621 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
| 6622 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6623 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6624 | # |
| 6625 | # Check to make sure the PIC flag actually works. |
| 6626 | # |
| 6627 | if test -n "$lt_prog_compiler_pic"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6628 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 6629 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 6630 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6631 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6632 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6633 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6634 | lt_prog_compiler_pic_works=no |
| 6635 | ac_outfile=conftest.$ac_objext |
| 6636 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 6637 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 6638 | # Insert the option either (1) after the last *FLAGS variable, or |
| 6639 | # (2) before a word containing "conftest.", or (3) at the end. |
| 6640 | # Note that $ac_compile itself does not contain backslashes and begins |
| 6641 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 6642 | # The option is referenced via a variable to avoid confusing sed. |
| 6643 | lt_compile=`echo "$ac_compile" | $SED \ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6644 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6645 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 6646 | -e 's:$: $lt_compiler_flag:'` |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame^] | 6647 | (eval echo "\"\$as_me:6647: $lt_compile\"" >&5) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6648 | (eval "$lt_compile" 2>conftest.err) |
| 6649 | ac_status=$? |
| 6650 | cat conftest.err >&5 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame^] | 6651 | echo "$as_me:6651: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6652 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 6653 | # The compiler can only warn and ignore the option if not recognized |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6654 | # So say no if there are warnings other than the usual output. |
| 6655 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 6656 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 6657 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6658 | lt_prog_compiler_pic_works=yes |
| 6659 | fi |
| 6660 | fi |
| 6661 | $rm conftest* |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6662 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6663 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 6664 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
| 6665 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6666 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6667 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
| 6668 | case $lt_prog_compiler_pic in |
| 6669 | "" | " "*) ;; |
| 6670 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 6671 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6672 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6673 | lt_prog_compiler_pic= |
| 6674 | lt_prog_compiler_can_build_shared=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6675 | fi |
| 6676 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6677 | fi |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6678 | case $host_os in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6679 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 6680 | *djgpp*) |
| 6681 | lt_prog_compiler_pic= |
| 6682 | ;; |
| 6683 | *) |
| 6684 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 6685 | ;; |
| 6686 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6687 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6688 | # |
| 6689 | # Check to make sure the static flag actually works. |
| 6690 | # |
| 6691 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 6692 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 6693 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6694 | if test "${lt_prog_compiler_static_works+set}" = set; then |
| 6695 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6696 | else |
| 6697 | lt_prog_compiler_static_works=no |
| 6698 | save_LDFLAGS="$LDFLAGS" |
| 6699 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 6700 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 6701 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 6702 | # The linker can only warn and ignore the option if not recognized |
| 6703 | # So say no if there are warnings |
| 6704 | if test -s conftest.err; then |
| 6705 | # Append any errors to the config.log. |
| 6706 | cat conftest.err 1>&5 |
| 6707 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 6708 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 6709 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 6710 | lt_prog_compiler_static_works=yes |
| 6711 | fi |
| 6712 | else |
| 6713 | lt_prog_compiler_static_works=yes |
| 6714 | fi |
| 6715 | fi |
| 6716 | $rm conftest* |
| 6717 | LDFLAGS="$save_LDFLAGS" |
| 6718 | |
| 6719 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 6720 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
| 6721 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6722 | |
| 6723 | if test x"$lt_prog_compiler_static_works" = xyes; then |
| 6724 | : |
| 6725 | else |
| 6726 | lt_prog_compiler_static= |
| 6727 | fi |
| 6728 | |
| 6729 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 6730 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 6731 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6732 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6734 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6735 | lt_cv_prog_compiler_c_o=no |
| 6736 | $rm -r conftest 2>/dev/null |
| 6737 | mkdir conftest |
| 6738 | cd conftest |
| 6739 | mkdir out |
| 6740 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6741 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6742 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 6743 | # Insert the option either (1) after the last *FLAGS variable, or |
| 6744 | # (2) before a word containing "conftest.", or (3) at the end. |
| 6745 | # Note that $ac_compile itself does not contain backslashes and begins |
| 6746 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 6747 | lt_compile=`echo "$ac_compile" | $SED \ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6748 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6749 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 6750 | -e 's:$: $lt_compiler_flag:'` |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame^] | 6751 | (eval echo "\"\$as_me:6751: $lt_compile\"" >&5) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6752 | (eval "$lt_compile" 2>out/conftest.err) |
| 6753 | ac_status=$? |
| 6754 | cat out/conftest.err >&5 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame^] | 6755 | echo "$as_me:6755: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6756 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 6757 | then |
| 6758 | # The compiler can only warn and ignore the option if not recognized |
| 6759 | # So say no if there are warnings |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6760 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 6761 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 6762 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6763 | lt_cv_prog_compiler_c_o=yes |
| 6764 | fi |
| 6765 | fi |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6766 | chmod u+w . 2>&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6767 | $rm conftest* |
| 6768 | # SGI C++ compiler will create directory out/ii_files/ for |
| 6769 | # template instantiation |
| 6770 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 6771 | $rm out/* && rmdir out |
| 6772 | cd .. |
| 6773 | rmdir conftest |
| 6774 | $rm conftest* |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6775 | |
| 6776 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 6777 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 6778 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6779 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6780 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6781 | hard_links="nottested" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6782 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6783 | # do not overwrite the value of need_locks provided by the user |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 6784 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 6785 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6786 | hard_links=yes |
| 6787 | $rm conftest* |
| 6788 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 6789 | touch conftest.a |
| 6790 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 6791 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 6792 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 6793 | echo "${ECHO_T}$hard_links" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6794 | if test "$hard_links" = no; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6795 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6796 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 6797 | need_locks=warn |
| 6798 | fi |
| 6799 | else |
| 6800 | need_locks=no |
| 6801 | fi |
| 6802 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 6803 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 6804 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6805 | |
| 6806 | runpath_var= |
| 6807 | allow_undefined_flag= |
| 6808 | enable_shared_with_static_runtimes=no |
| 6809 | archive_cmds= |
| 6810 | archive_expsym_cmds= |
| 6811 | old_archive_From_new_cmds= |
| 6812 | old_archive_from_expsyms_cmds= |
| 6813 | export_dynamic_flag_spec= |
| 6814 | whole_archive_flag_spec= |
| 6815 | thread_safe_flag_spec= |
| 6816 | hardcode_libdir_flag_spec= |
| 6817 | hardcode_libdir_flag_spec_ld= |
| 6818 | hardcode_libdir_separator= |
| 6819 | hardcode_direct=no |
| 6820 | hardcode_minus_L=no |
| 6821 | hardcode_shlibpath_var=unsupported |
| 6822 | link_all_deplibs=unknown |
| 6823 | hardcode_automatic=no |
| 6824 | module_cmds= |
| 6825 | module_expsym_cmds= |
| 6826 | always_export_symbols=no |
| 6827 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 6828 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 6829 | # included in the symbol list |
| 6830 | include_expsyms= |
| 6831 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 6832 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 6833 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 6834 | # as well as any symbol that contains `d'. |
| 6835 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 6836 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 6837 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 6838 | # the symbol is explicitly referenced. Since portable code cannot |
| 6839 | # rely on this symbol name, it's probably fine to never include it in |
| 6840 | # preloaded symbol tables. |
| 6841 | extract_expsyms_cmds= |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6842 | # Just being paranoid about ensuring that cc_basename is set. |
| 6843 | for cc_temp in $compiler""; do |
| 6844 | case $cc_temp in |
| 6845 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 6846 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 6847 | \-*) ;; |
| 6848 | *) break;; |
| 6849 | esac |
| 6850 | done |
| 6851 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6852 | |
| 6853 | case $host_os in |
| 6854 | cygwin* | mingw* | pw32*) |
| 6855 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 6856 | # When not using gcc, we currently assume that we are using |
| 6857 | # Microsoft Visual C++. |
| 6858 | if test "$GCC" != yes; then |
| 6859 | with_gnu_ld=no |
| 6860 | fi |
| 6861 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6862 | interix*) |
| 6863 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 6864 | with_gnu_ld=yes |
| 6865 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6866 | openbsd*) |
| 6867 | with_gnu_ld=no |
| 6868 | ;; |
| 6869 | esac |
| 6870 | |
| 6871 | ld_shlibs=yes |
| 6872 | if test "$with_gnu_ld" = yes; then |
| 6873 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 6874 | wlarc='${wl}' |
| 6875 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6876 | # Set some defaults for GNU ld with shared library support. These |
| 6877 | # are reset later if shared libraries are not supported. Putting them |
| 6878 | # here allows them to be overridden if necessary. |
| 6879 | runpath_var=LD_RUN_PATH |
| 6880 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 6881 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 6882 | # ancient GNU ld didn't support --whole-archive et. al. |
| 6883 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 6884 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 6885 | else |
| 6886 | whole_archive_flag_spec= |
| 6887 | fi |
| 6888 | supports_anon_versioning=no |
| 6889 | case `$LD -v 2>/dev/null` in |
| 6890 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 6891 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 6892 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 6893 | *\ 2.11.*) ;; # other 2.11 versions |
| 6894 | *) supports_anon_versioning=yes ;; |
| 6895 | esac |
| 6896 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6897 | # See if GNU ld supports shared libraries. |
| 6898 | case $host_os in |
| 6899 | aix3* | aix4* | aix5*) |
| 6900 | # On AIX/PPC, the GNU linker is very broken |
| 6901 | if test "$host_cpu" != ia64; then |
| 6902 | ld_shlibs=no |
| 6903 | cat <<EOF 1>&2 |
| 6904 | |
| 6905 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 6906 | *** to be unable to reliably create shared libraries on AIX. |
| 6907 | *** Therefore, libtool is disabling shared libraries support. If you |
| 6908 | *** really care for shared libraries, you may want to modify your PATH |
| 6909 | *** so that a non-GNU linker is found, and then restart. |
| 6910 | |
| 6911 | EOF |
| 6912 | fi |
| 6913 | ;; |
| 6914 | |
| 6915 | amigaos*) |
| 6916 | 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)' |
| 6917 | hardcode_libdir_flag_spec='-L$libdir' |
| 6918 | hardcode_minus_L=yes |
| 6919 | |
| 6920 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 6921 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 6922 | # to version 4, is to share data among multiple programs linked |
| 6923 | # with the same dynamic library. Since this doesn't match the |
| 6924 | # behavior of shared libraries on other platforms, we can't use |
| 6925 | # them. |
| 6926 | ld_shlibs=no |
| 6927 | ;; |
| 6928 | |
| 6929 | beos*) |
| 6930 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 6931 | allow_undefined_flag=unsupported |
| 6932 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 6933 | # support --undefined. This deserves some investigation. FIXME |
| 6934 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6935 | else |
| 6936 | ld_shlibs=no |
| 6937 | fi |
| 6938 | ;; |
| 6939 | |
| 6940 | cygwin* | mingw* | pw32*) |
| 6941 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 6942 | # as there is no search path for DLLs. |
| 6943 | hardcode_libdir_flag_spec='-L$libdir' |
| 6944 | allow_undefined_flag=unsupported |
| 6945 | always_export_symbols=no |
| 6946 | enable_shared_with_static_runtimes=yes |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6947 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6948 | |
| 6949 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6950 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6951 | # If the export-symbols file already is a .def file (1st line |
| 6952 | # is EXPORTS), use it as is; otherwise, prepend... |
| 6953 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 6954 | cp $export_symbols $output_objdir/$soname.def; |
| 6955 | else |
| 6956 | echo EXPORTS > $output_objdir/$soname.def; |
| 6957 | cat $export_symbols >> $output_objdir/$soname.def; |
| 6958 | fi~ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6959 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6960 | else |
| 6961 | ld_shlibs=no |
| 6962 | fi |
| 6963 | ;; |
| 6964 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6965 | interix3*) |
| 6966 | hardcode_direct=no |
| 6967 | hardcode_shlibpath_var=no |
| 6968 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 6969 | export_dynamic_flag_spec='${wl}-E' |
| 6970 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 6971 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 6972 | # default) and relocated if they conflict, which is a slow very memory |
| 6973 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 6974 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 6975 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 6976 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 6977 | 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' |
| 6978 | ;; |
| 6979 | |
| 6980 | linux*) |
| 6981 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 6982 | tmp_addflag= |
| 6983 | case $cc_basename,$host_cpu in |
| 6984 | pgcc*) # Portland Group C compiler |
| 6985 | 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' |
| 6986 | tmp_addflag=' $pic_flag' |
| 6987 | ;; |
| 6988 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 6989 | 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' |
| 6990 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 6991 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 6992 | tmp_addflag=' -i_dynamic' ;; |
| 6993 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 6994 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 6995 | ifc* | ifort*) # Intel Fortran compiler |
| 6996 | tmp_addflag=' -nofor_main' ;; |
| 6997 | esac |
| 6998 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6999 | |
| 7000 | if test $supports_anon_versioning = yes; then |
| 7001 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 7002 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 7003 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 7004 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 7005 | fi |
| 7006 | else |
| 7007 | ld_shlibs=no |
| 7008 | fi |
| 7009 | ;; |
| 7010 | |
| 7011 | netbsd*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7012 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 7013 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 7014 | wlarc= |
| 7015 | else |
| 7016 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7017 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 7018 | fi |
| 7019 | ;; |
| 7020 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7021 | solaris*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7022 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 7023 | ld_shlibs=no |
| 7024 | cat <<EOF 1>&2 |
| 7025 | |
| 7026 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 7027 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 7028 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 7029 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 7030 | *** your PATH or compiler configuration so that the native linker is |
| 7031 | *** used, and then restart. |
| 7032 | |
| 7033 | EOF |
| 7034 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 7035 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7036 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 7037 | else |
| 7038 | ld_shlibs=no |
| 7039 | fi |
| 7040 | ;; |
| 7041 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7042 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 7043 | case `$LD -v 2>&1` in |
| 7044 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 7045 | ld_shlibs=no |
| 7046 | cat <<_LT_EOF 1>&2 |
| 7047 | |
| 7048 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 7049 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 7050 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 7051 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 7052 | *** your PATH or compiler configuration so that the native linker is |
| 7053 | *** used, and then restart. |
| 7054 | |
| 7055 | _LT_EOF |
| 7056 | ;; |
| 7057 | *) |
| 7058 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 7059 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 7060 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 7061 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 7062 | else |
| 7063 | ld_shlibs=no |
| 7064 | fi |
| 7065 | ;; |
| 7066 | esac |
| 7067 | ;; |
| 7068 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7069 | sunos4*) |
| 7070 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 7071 | wlarc= |
| 7072 | hardcode_direct=yes |
| 7073 | hardcode_shlibpath_var=no |
| 7074 | ;; |
| 7075 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7076 | *) |
| 7077 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 7078 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7079 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 7080 | else |
| 7081 | ld_shlibs=no |
| 7082 | fi |
| 7083 | ;; |
| 7084 | esac |
| 7085 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7086 | if test "$ld_shlibs" = no; then |
| 7087 | runpath_var= |
| 7088 | hardcode_libdir_flag_spec= |
| 7089 | export_dynamic_flag_spec= |
| 7090 | whole_archive_flag_spec= |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7091 | fi |
| 7092 | else |
| 7093 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 7094 | case $host_os in |
| 7095 | aix3*) |
| 7096 | allow_undefined_flag=unsupported |
| 7097 | always_export_symbols=yes |
| 7098 | 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' |
| 7099 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 7100 | # are no directories specified by -L. |
| 7101 | hardcode_minus_L=yes |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7102 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7103 | # Neither direct hardcoding nor static linking is supported with a |
| 7104 | # broken collect2. |
| 7105 | hardcode_direct=unsupported |
| 7106 | fi |
| 7107 | ;; |
| 7108 | |
| 7109 | aix4* | aix5*) |
| 7110 | if test "$host_cpu" = ia64; then |
| 7111 | # On IA64, the linker does run time linking by default, so we don't |
| 7112 | # have to do anything special. |
| 7113 | aix_use_runtimelinking=no |
| 7114 | exp_sym_flag='-Bexport' |
| 7115 | no_entry_flag="" |
| 7116 | else |
| 7117 | # If we're using GNU nm, then we don't want the "-C" option. |
| 7118 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 7119 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 7120 | 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' |
| 7121 | else |
| 7122 | 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' |
| 7123 | fi |
| 7124 | aix_use_runtimelinking=no |
| 7125 | |
| 7126 | # Test if we are trying to use run time linking or normal |
| 7127 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 7128 | # need to do runtime linking. |
| 7129 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 7130 | for ld_flag in $LDFLAGS; do |
| 7131 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 7132 | aix_use_runtimelinking=yes |
| 7133 | break |
| 7134 | fi |
| 7135 | done |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7136 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7137 | esac |
| 7138 | |
| 7139 | exp_sym_flag='-bexport' |
| 7140 | no_entry_flag='-bnoentry' |
| 7141 | fi |
| 7142 | |
| 7143 | # When large executables or shared objects are built, AIX ld can |
| 7144 | # have problems creating the table of contents. If linking a library |
| 7145 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 7146 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 7147 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 7148 | |
| 7149 | archive_cmds='' |
| 7150 | hardcode_direct=yes |
| 7151 | hardcode_libdir_separator=':' |
| 7152 | link_all_deplibs=yes |
| 7153 | |
| 7154 | if test "$GCC" = yes; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7155 | case $host_os in aix4.[012]|aix4.[012].*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7156 | # We only want to do this on AIX 4.2 and lower, the check |
| 7157 | # below for broken collect2 doesn't work under 4.3+ |
| 7158 | collect2name=`${CC} -print-prog-name=collect2` |
| 7159 | if test -f "$collect2name" && \ |
| 7160 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 7161 | then |
| 7162 | # We have reworked collect2 |
| 7163 | hardcode_direct=yes |
| 7164 | else |
| 7165 | # We have old collect2 |
| 7166 | hardcode_direct=unsupported |
| 7167 | # It fails to find uninstalled libraries when the uninstalled |
| 7168 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 7169 | # to unsupported forces relinking |
| 7170 | hardcode_minus_L=yes |
| 7171 | hardcode_libdir_flag_spec='-L$libdir' |
| 7172 | hardcode_libdir_separator= |
| 7173 | fi |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7174 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7175 | esac |
| 7176 | shared_flag='-shared' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7177 | if test "$aix_use_runtimelinking" = yes; then |
| 7178 | shared_flag="$shared_flag "'${wl}-G' |
| 7179 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7180 | else |
| 7181 | # not using gcc |
| 7182 | if test "$host_cpu" = ia64; then |
| 7183 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 7184 | # chokes on -Wl,-G. The following line is correct: |
| 7185 | shared_flag='-G' |
| 7186 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7187 | if test "$aix_use_runtimelinking" = yes; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7188 | shared_flag='${wl}-G' |
| 7189 | else |
| 7190 | shared_flag='${wl}-bM:SRE' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7191 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7192 | fi |
| 7193 | fi |
| 7194 | |
| 7195 | # It seems that -bexpall does not export symbols beginning with |
| 7196 | # underscore (_), so it is better to generate a list of symbols to export. |
| 7197 | always_export_symbols=yes |
| 7198 | if test "$aix_use_runtimelinking" = yes; then |
| 7199 | # Warning - without using the other runtime loading flags (-brtl), |
| 7200 | # -berok will link without error, but may produce a broken library. |
| 7201 | allow_undefined_flag='-berok' |
| 7202 | # Determine the default libpath from the value encoded in an empty executable. |
| 7203 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7204 | /* confdefs.h. */ |
| 7205 | _ACEOF |
| 7206 | cat confdefs.h >>conftest.$ac_ext |
| 7207 | cat >>conftest.$ac_ext <<_ACEOF |
| 7208 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7209 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7210 | int |
| 7211 | main () |
| 7212 | { |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7213 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7214 | ; |
| 7215 | return 0; |
| 7216 | } |
| 7217 | _ACEOF |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7218 | rm -f conftest.$ac_objext conftest$ac_exeext |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 7219 | if { (ac_try="$ac_link" |
| 7220 | case "(($ac_try" in |
| 7221 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7222 | *) ac_try_echo=$ac_try;; |
| 7223 | esac |
| 7224 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7225 | (eval "$ac_link") 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7226 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7227 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7228 | rm -f conftest.er1 |
| 7229 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 7231 | (exit $ac_status); } && { |
| 7232 | test -z "$ac_c_werror_flag" || |
| 7233 | test ! -s conftest.err |
| 7234 | } && test -s conftest$ac_exeext && |
| 7235 | $as_test_x conftest$ac_exeext; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7236 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7237 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 7238 | }'` |
| 7239 | # Check for a 64-bit object if we didn't find anything. |
| 7240 | 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; } |
| 7241 | }'`; fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7242 | else |
| 7243 | echo "$as_me: failed program was:" >&5 |
| 7244 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7245 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 7246 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7247 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 7248 | |
| 7249 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7250 | conftest$ac_exeext conftest.$ac_ext |
| 7251 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7252 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7253 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7254 | 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" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7255 | else |
| 7256 | if test "$host_cpu" = ia64; then |
| 7257 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 7258 | allow_undefined_flag="-z nodefs" |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7259 | 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" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7260 | else |
| 7261 | # Determine the default libpath from the value encoded in an empty executable. |
| 7262 | cat >conftest.$ac_ext <<_ACEOF |
| 7263 | /* confdefs.h. */ |
| 7264 | _ACEOF |
| 7265 | cat confdefs.h >>conftest.$ac_ext |
| 7266 | cat >>conftest.$ac_ext <<_ACEOF |
| 7267 | /* end confdefs.h. */ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7268 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7269 | int |
| 7270 | main () |
| 7271 | { |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7272 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7273 | ; |
| 7274 | return 0; |
| 7275 | } |
| 7276 | _ACEOF |
| 7277 | rm -f conftest.$ac_objext conftest$ac_exeext |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 7278 | if { (ac_try="$ac_link" |
| 7279 | case "(($ac_try" in |
| 7280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7281 | *) ac_try_echo=$ac_try;; |
| 7282 | esac |
| 7283 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7284 | (eval "$ac_link") 2>conftest.er1 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7285 | ac_status=$? |
| 7286 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7287 | rm -f conftest.er1 |
| 7288 | cat conftest.err >&5 |
| 7289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 7290 | (exit $ac_status); } && { |
| 7291 | test -z "$ac_c_werror_flag" || |
| 7292 | test ! -s conftest.err |
| 7293 | } && test -s conftest$ac_exeext && |
| 7294 | $as_test_x conftest$ac_exeext; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7295 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7296 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 7297 | }'` |
| 7298 | # Check for a 64-bit object if we didn't find anything. |
| 7299 | 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; } |
| 7300 | }'`; fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7301 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7302 | echo "$as_me: failed program was:" >&5 |
| 7303 | sed 's/^/| /' conftest.$ac_ext >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7304 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 7305 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7306 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 7307 | |
| 7308 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7309 | conftest$ac_exeext conftest.$ac_ext |
| 7310 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7311 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7312 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 7313 | # Warning - without using the other run time loading flags, |
| 7314 | # -berok will link without error, but may produce a broken library. |
| 7315 | no_undefined_flag=' ${wl}-bernotok' |
| 7316 | allow_undefined_flag=' ${wl}-berok' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7317 | # Exported symbols can be pulled into shared objects from archives |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7318 | whole_archive_flag_spec='$convenience' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7319 | archive_cmds_need_lc=yes |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7320 | # This is similar to how AIX traditionally builds its shared libraries. |
| 7321 | 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' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7322 | fi |
| 7323 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7324 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7325 | |
| 7326 | amigaos*) |
| 7327 | 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)' |
| 7328 | hardcode_libdir_flag_spec='-L$libdir' |
| 7329 | hardcode_minus_L=yes |
| 7330 | # see comment about different semantics on the GNU ld section |
| 7331 | ld_shlibs=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7332 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7333 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7334 | bsdi[45]*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7335 | export_dynamic_flag_spec=-rdynamic |
| 7336 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7337 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7338 | cygwin* | mingw* | pw32*) |
| 7339 | # When not using gcc, we currently assume that we are using |
| 7340 | # Microsoft Visual C++. |
| 7341 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 7342 | # no search path for DLLs. |
| 7343 | hardcode_libdir_flag_spec=' ' |
| 7344 | allow_undefined_flag=unsupported |
| 7345 | # Tell ltmain to make .lib files, not .a files. |
| 7346 | libext=lib |
| 7347 | # Tell ltmain to make .dll files, not .so files. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7348 | shrext_cmds=".dll" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7349 | # FIXME: Setting linknames here is a bad hack. |
| 7350 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 7351 | # The linker will automatically build a .lib file if we build a DLL. |
| 7352 | old_archive_From_new_cmds='true' |
| 7353 | # FIXME: Should let the user specify the lib program. |
| 7354 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 7355 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 7356 | enable_shared_with_static_runtimes=yes |
| 7357 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7358 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7359 | darwin* | rhapsody*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7360 | case $host_os in |
| 7361 | rhapsody* | darwin1.[012]) |
| 7362 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
| 7363 | ;; |
| 7364 | *) # Darwin 1.3 on |
| 7365 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 7366 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 7367 | else |
| 7368 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 7369 | 10.[012]) |
| 7370 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 7371 | ;; |
| 7372 | 10.*) |
| 7373 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
| 7374 | ;; |
| 7375 | esac |
| 7376 | fi |
| 7377 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7378 | esac |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7379 | archive_cmds_need_lc=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7380 | hardcode_direct=no |
| 7381 | hardcode_automatic=yes |
| 7382 | hardcode_shlibpath_var=unsupported |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7383 | whole_archive_flag_spec='' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7384 | link_all_deplibs=yes |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7385 | if test "$GCC" = yes ; then |
| 7386 | output_verbose_link_cmd='echo' |
| 7387 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 7388 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 7389 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 7390 | 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}' |
| 7391 | 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}' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7392 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7393 | case $cc_basename in |
| 7394 | xlc*) |
| 7395 | output_verbose_link_cmd='echo' |
| 7396 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 7397 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 7398 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 7399 | 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}' |
| 7400 | 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}' |
| 7401 | ;; |
| 7402 | *) |
| 7403 | ld_shlibs=no |
| 7404 | ;; |
| 7405 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7406 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7407 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7408 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7409 | dgux*) |
| 7410 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7411 | hardcode_libdir_flag_spec='-L$libdir' |
| 7412 | hardcode_shlibpath_var=no |
| 7413 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7414 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7415 | freebsd1*) |
| 7416 | ld_shlibs=no |
| 7417 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7418 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7419 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 7420 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 7421 | # does not break anything, and helps significantly (at the cost of a little |
| 7422 | # extra space). |
| 7423 | freebsd2.2*) |
| 7424 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 7425 | hardcode_libdir_flag_spec='-R$libdir' |
| 7426 | hardcode_direct=yes |
| 7427 | hardcode_shlibpath_var=no |
| 7428 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7429 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7430 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 7431 | freebsd2*) |
| 7432 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 7433 | hardcode_direct=yes |
| 7434 | hardcode_minus_L=yes |
| 7435 | hardcode_shlibpath_var=no |
| 7436 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7437 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7438 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7439 | freebsd* | kfreebsd*-gnu | dragonfly*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7440 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 7441 | hardcode_libdir_flag_spec='-R$libdir' |
| 7442 | hardcode_direct=yes |
| 7443 | hardcode_shlibpath_var=no |
| 7444 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7445 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7446 | hpux9*) |
| 7447 | if test "$GCC" = yes; then |
| 7448 | 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' |
| 7449 | else |
| 7450 | 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' |
| 7451 | fi |
| 7452 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 7453 | hardcode_libdir_separator=: |
| 7454 | hardcode_direct=yes |
| 7455 | |
| 7456 | # hardcode_minus_L: Not really in the search PATH, |
| 7457 | # but as the default location of the library. |
| 7458 | hardcode_minus_L=yes |
| 7459 | export_dynamic_flag_spec='${wl}-E' |
| 7460 | ;; |
| 7461 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7462 | hpux10*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7463 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7464 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 7465 | else |
| 7466 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 7467 | fi |
| 7468 | if test "$with_gnu_ld" = no; then |
| 7469 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 7470 | hardcode_libdir_separator=: |
| 7471 | |
| 7472 | hardcode_direct=yes |
| 7473 | export_dynamic_flag_spec='${wl}-E' |
| 7474 | |
| 7475 | # hardcode_minus_L: Not really in the search PATH, |
| 7476 | # but as the default location of the library. |
| 7477 | hardcode_minus_L=yes |
| 7478 | fi |
| 7479 | ;; |
| 7480 | |
| 7481 | hpux11*) |
| 7482 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 7483 | case $host_cpu in |
| 7484 | hppa*64*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7485 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7486 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7487 | ia64*) |
| 7488 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 7489 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7490 | *) |
| 7491 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 7492 | ;; |
| 7493 | esac |
| 7494 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7495 | case $host_cpu in |
| 7496 | hppa*64*) |
| 7497 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7498 | ;; |
| 7499 | ia64*) |
| 7500 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7501 | ;; |
| 7502 | *) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7503 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7504 | ;; |
| 7505 | esac |
| 7506 | fi |
| 7507 | if test "$with_gnu_ld" = no; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7508 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 7509 | hardcode_libdir_separator=: |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7510 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7511 | case $host_cpu in |
| 7512 | hppa*64*|ia64*) |
| 7513 | hardcode_libdir_flag_spec_ld='+b $libdir' |
| 7514 | hardcode_direct=no |
| 7515 | hardcode_shlibpath_var=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7516 | ;; |
| 7517 | *) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7518 | hardcode_direct=yes |
| 7519 | export_dynamic_flag_spec='${wl}-E' |
| 7520 | |
| 7521 | # hardcode_minus_L: Not really in the search PATH, |
| 7522 | # but as the default location of the library. |
| 7523 | hardcode_minus_L=yes |
| 7524 | ;; |
| 7525 | esac |
| 7526 | fi |
| 7527 | ;; |
| 7528 | |
| 7529 | irix5* | irix6* | nonstopux*) |
| 7530 | if test "$GCC" = yes; then |
| 7531 | 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' |
| 7532 | else |
| 7533 | 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' |
| 7534 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 7535 | fi |
| 7536 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 7537 | hardcode_libdir_separator=: |
| 7538 | link_all_deplibs=yes |
| 7539 | ;; |
| 7540 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7541 | netbsd*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7542 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 7543 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 7544 | else |
| 7545 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 7546 | fi |
| 7547 | hardcode_libdir_flag_spec='-R$libdir' |
| 7548 | hardcode_direct=yes |
| 7549 | hardcode_shlibpath_var=no |
| 7550 | ;; |
| 7551 | |
| 7552 | newsos6) |
| 7553 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7554 | hardcode_direct=yes |
| 7555 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 7556 | hardcode_libdir_separator=: |
| 7557 | hardcode_shlibpath_var=no |
| 7558 | ;; |
| 7559 | |
| 7560 | openbsd*) |
| 7561 | hardcode_direct=yes |
| 7562 | hardcode_shlibpath_var=no |
| 7563 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 7564 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7565 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7566 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 7567 | export_dynamic_flag_spec='${wl}-E' |
| 7568 | else |
| 7569 | case $host_os in |
| 7570 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 7571 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 7572 | hardcode_libdir_flag_spec='-R$libdir' |
| 7573 | ;; |
| 7574 | *) |
| 7575 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 7576 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 7577 | ;; |
| 7578 | esac |
| 7579 | fi |
| 7580 | ;; |
| 7581 | |
| 7582 | os2*) |
| 7583 | hardcode_libdir_flag_spec='-L$libdir' |
| 7584 | hardcode_minus_L=yes |
| 7585 | allow_undefined_flag=unsupported |
| 7586 | 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' |
| 7587 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 7588 | ;; |
| 7589 | |
| 7590 | osf3*) |
| 7591 | if test "$GCC" = yes; then |
| 7592 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 7593 | 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' |
| 7594 | else |
| 7595 | allow_undefined_flag=' -expect_unresolved \*' |
| 7596 | 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' |
| 7597 | fi |
| 7598 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 7599 | hardcode_libdir_separator=: |
| 7600 | ;; |
| 7601 | |
| 7602 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 7603 | if test "$GCC" = yes; then |
| 7604 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 7605 | 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' |
| 7606 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 7607 | else |
| 7608 | allow_undefined_flag=' -expect_unresolved \*' |
| 7609 | 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' |
| 7610 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7611 | $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' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7612 | |
| 7613 | # Both c and cxx compiler support -rpath directly |
| 7614 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 7615 | fi |
| 7616 | hardcode_libdir_separator=: |
| 7617 | ;; |
| 7618 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7619 | solaris*) |
| 7620 | no_undefined_flag=' -z text' |
| 7621 | if test "$GCC" = yes; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7622 | wlarc='${wl}' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7623 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7624 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 7625 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 7626 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7627 | wlarc='' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7628 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7629 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 7630 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 7631 | fi |
| 7632 | hardcode_libdir_flag_spec='-R$libdir' |
| 7633 | hardcode_shlibpath_var=no |
| 7634 | case $host_os in |
| 7635 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7636 | *) |
| 7637 | # The compiler driver will combine linker options so we |
| 7638 | # cannot just pass the convience library names through |
| 7639 | # without $wl, iff we do not link with $LD. |
| 7640 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 7641 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 7642 | case $wlarc in |
| 7643 | '') |
| 7644 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 7645 | *) |
| 7646 | 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' ;; |
| 7647 | esac ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7648 | esac |
| 7649 | link_all_deplibs=yes |
| 7650 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7651 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7652 | sunos4*) |
| 7653 | if test "x$host_vendor" = xsequent; then |
| 7654 | # Use $CC to link under sequent, because it throws in some extra .o |
| 7655 | # files that make .init and .fini sections work. |
| 7656 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7657 | else |
| 7658 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 7659 | fi |
| 7660 | hardcode_libdir_flag_spec='-L$libdir' |
| 7661 | hardcode_direct=yes |
| 7662 | hardcode_minus_L=yes |
| 7663 | hardcode_shlibpath_var=no |
| 7664 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7665 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7666 | sysv4) |
| 7667 | case $host_vendor in |
| 7668 | sni) |
| 7669 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7670 | hardcode_direct=yes # is this really true??? |
| 7671 | ;; |
| 7672 | siemens) |
| 7673 | ## LD is ld it makes a PLAMLIB |
| 7674 | ## CC just makes a GrossModule. |
| 7675 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 7676 | reload_cmds='$CC -r -o $output$reload_objs' |
| 7677 | hardcode_direct=no |
| 7678 | ;; |
| 7679 | motorola) |
| 7680 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7681 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 7682 | ;; |
| 7683 | esac |
| 7684 | runpath_var='LD_RUN_PATH' |
| 7685 | hardcode_shlibpath_var=no |
| 7686 | ;; |
| 7687 | |
| 7688 | sysv4.3*) |
| 7689 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7690 | hardcode_shlibpath_var=no |
| 7691 | export_dynamic_flag_spec='-Bexport' |
| 7692 | ;; |
| 7693 | |
| 7694 | sysv4*MP*) |
| 7695 | if test -d /usr/nec; then |
| 7696 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7697 | hardcode_shlibpath_var=no |
| 7698 | runpath_var=LD_RUN_PATH |
| 7699 | hardcode_runpath_var=yes |
| 7700 | ld_shlibs=yes |
| 7701 | fi |
| 7702 | ;; |
| 7703 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7704 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 7705 | no_undefined_flag='${wl}-z,text' |
| 7706 | archive_cmds_need_lc=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7707 | hardcode_shlibpath_var=no |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7708 | runpath_var='LD_RUN_PATH' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7709 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7710 | if test "$GCC" = yes; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7711 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7712 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7713 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7714 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7715 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7716 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7717 | ;; |
| 7718 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7719 | sysv5* | sco3.2v5* | sco5v6*) |
| 7720 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 7721 | # link with -lc, and that would cause any symbols used from libc to |
| 7722 | # always be unresolved, which means just about no library would |
| 7723 | # ever link correctly. If we're not using GNU ld we use -z text |
| 7724 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 7725 | # as -z defs. |
| 7726 | no_undefined_flag='${wl}-z,text' |
| 7727 | allow_undefined_flag='${wl}-z,nodefs' |
| 7728 | archive_cmds_need_lc=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7729 | hardcode_shlibpath_var=no |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7730 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 7731 | hardcode_libdir_separator=':' |
| 7732 | link_all_deplibs=yes |
| 7733 | export_dynamic_flag_spec='${wl}-Bexport' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7734 | runpath_var='LD_RUN_PATH' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7735 | |
| 7736 | if test "$GCC" = yes; then |
| 7737 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7738 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7739 | else |
| 7740 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7741 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7742 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7743 | ;; |
| 7744 | |
| 7745 | uts4*) |
| 7746 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7747 | hardcode_libdir_flag_spec='-L$libdir' |
| 7748 | hardcode_shlibpath_var=no |
| 7749 | ;; |
| 7750 | |
| 7751 | *) |
| 7752 | ld_shlibs=no |
| 7753 | ;; |
| 7754 | esac |
| 7755 | fi |
| 7756 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 7757 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 7758 | echo "${ECHO_T}$ld_shlibs" >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7759 | test "$ld_shlibs" = no && can_build_shared=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7760 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7761 | # |
| 7762 | # Do we need to explicitly link libc? |
| 7763 | # |
| 7764 | case "x$archive_cmds_need_lc" in |
| 7765 | x|xyes) |
| 7766 | # Assume -lc should be added |
| 7767 | archive_cmds_need_lc=yes |
| 7768 | |
| 7769 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 7770 | case $archive_cmds in |
| 7771 | *'~'*) |
| 7772 | # FIXME: we may have to deal with multi-command sequences. |
| 7773 | ;; |
| 7774 | '$CC '*) |
| 7775 | # Test whether the compiler implicitly links with -lc since on some |
| 7776 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 7777 | # to ld, don't add -lc before -lgcc. |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 7778 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 7779 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7780 | $rm conftest* |
| 7781 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 7782 | |
| 7783 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7784 | (eval $ac_compile) 2>&5 |
| 7785 | ac_status=$? |
| 7786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7787 | (exit $ac_status); } 2>conftest.err; then |
| 7788 | soname=conftest |
| 7789 | lib=conftest |
| 7790 | libobjs=conftest.$ac_objext |
| 7791 | deplibs= |
| 7792 | wl=$lt_prog_compiler_wl |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7793 | pic_flag=$lt_prog_compiler_pic |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7794 | compiler_flags=-v |
| 7795 | linker_flags=-v |
| 7796 | verstring= |
| 7797 | output_objdir=. |
| 7798 | libname=conftest |
| 7799 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 7800 | allow_undefined_flag= |
| 7801 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 7802 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 7803 | ac_status=$? |
| 7804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7805 | (exit $ac_status); } |
| 7806 | then |
| 7807 | archive_cmds_need_lc=no |
| 7808 | else |
| 7809 | archive_cmds_need_lc=yes |
| 7810 | fi |
| 7811 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 7812 | else |
| 7813 | cat conftest.err 1>&5 |
| 7814 | fi |
| 7815 | $rm conftest* |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 7816 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
| 7817 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7818 | ;; |
| 7819 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7820 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7821 | ;; |
| 7822 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7823 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 7824 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 7825 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7826 | library_names_spec= |
| 7827 | libname_spec='lib$name' |
| 7828 | soname_spec= |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7829 | shrext_cmds=".so" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7830 | postinstall_cmds= |
| 7831 | postuninstall_cmds= |
| 7832 | finish_cmds= |
| 7833 | finish_eval= |
| 7834 | shlibpath_var= |
| 7835 | shlibpath_overrides_runpath=unknown |
| 7836 | version_type=none |
| 7837 | dynamic_linker="$host_os ld.so" |
| 7838 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7839 | if test "$GCC" = yes; then |
| 7840 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 7841 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 7842 | # if the path contains ";" then we assume it to be the separator |
| 7843 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 7844 | # assumed that no part of a normal pathname contains ";" but that should |
| 7845 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 7846 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 7847 | else |
| 7848 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 7849 | fi |
| 7850 | else |
| 7851 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 7852 | fi |
| 7853 | need_lib_prefix=unknown |
| 7854 | hardcode_into_libs=no |
| 7855 | |
| 7856 | # when you set need_version to no, make sure it does not cause -set_version |
| 7857 | # flags to be left without arguments |
| 7858 | need_version=unknown |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7859 | |
| 7860 | case $host_os in |
| 7861 | aix3*) |
| 7862 | version_type=linux |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7863 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7864 | shlibpath_var=LIBPATH |
| 7865 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7866 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 7867 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7868 | ;; |
| 7869 | |
| 7870 | aix4* | aix5*) |
| 7871 | version_type=linux |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7872 | need_lib_prefix=no |
| 7873 | need_version=no |
| 7874 | hardcode_into_libs=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7875 | if test "$host_cpu" = ia64; then |
| 7876 | # AIX 5 supports IA64 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7877 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7878 | shlibpath_var=LD_LIBRARY_PATH |
| 7879 | else |
| 7880 | # With GCC up to 2.95.x, collect2 would create an import file |
| 7881 | # for dependence libraries. The import file would start with |
| 7882 | # the line `#! .'. This would cause the generated library to |
| 7883 | # depend on `.', always an invalid library. This was fixed in |
| 7884 | # development snapshots of GCC prior to 3.0. |
| 7885 | case $host_os in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7886 | aix4 | aix4.[01] | aix4.[01].*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7887 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 7888 | echo ' yes ' |
| 7889 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 7890 | : |
| 7891 | else |
| 7892 | can_build_shared=no |
| 7893 | fi |
| 7894 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7895 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7896 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 7897 | # soname into executable. Probably we can add versioning support to |
| 7898 | # collect2, so additional links can be useful in future. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7899 | if test "$aix_use_runtimelinking" = yes; then |
| 7900 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 7901 | # instead of lib<name>.a to let people know that these are not |
| 7902 | # typical AIX shared libraries. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7903 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7904 | else |
| 7905 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 7906 | # and later when we are not doing run time linking. |
| 7907 | library_names_spec='${libname}${release}.a $libname.a' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7908 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7909 | fi |
| 7910 | shlibpath_var=LIBPATH |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7911 | fi |
| 7912 | ;; |
| 7913 | |
| 7914 | amigaos*) |
| 7915 | library_names_spec='$libname.ixlibrary $libname.a' |
| 7916 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7917 | 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' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7918 | ;; |
| 7919 | |
| 7920 | beos*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7921 | library_names_spec='${libname}${shared_ext}' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7922 | dynamic_linker="$host_os ld.so" |
| 7923 | shlibpath_var=LIBRARY_PATH |
| 7924 | ;; |
| 7925 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7926 | bsdi[45]*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7927 | version_type=linux |
| 7928 | need_version=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7929 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7930 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7931 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 7932 | shlibpath_var=LD_LIBRARY_PATH |
| 7933 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 7934 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 7935 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 7936 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 7937 | # libtool to hard-code these into programs |
| 7938 | ;; |
| 7939 | |
| 7940 | cygwin* | mingw* | pw32*) |
| 7941 | version_type=windows |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7942 | shrext_cmds=".dll" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7943 | need_version=no |
| 7944 | need_lib_prefix=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7945 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7946 | case $GCC,$host_os in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7947 | yes,cygwin* | yes,mingw* | yes,pw32*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7948 | library_names_spec='$libname.dll.a' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7949 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 7950 | postinstall_cmds='base_file=`basename \${file}`~ |
| 7951 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7952 | dldir=$destdir/`dirname \$dlpath`~ |
| 7953 | test -d \$dldir || mkdir -p \$dldir~ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7954 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 7955 | chmod a+x \$dldir/$dlname' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7956 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7957 | dlpath=$dir/\$dldll~ |
| 7958 | $rm \$dlpath' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7959 | shlibpath_overrides_runpath=yes |
| 7960 | |
| 7961 | case $host_os in |
| 7962 | cygwin*) |
| 7963 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 7964 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 7965 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 7966 | ;; |
| 7967 | mingw*) |
| 7968 | # MinGW DLLs use traditional 'lib' prefix |
| 7969 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 7970 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 7971 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 7972 | # It is most probably a Windows format PATH printed by |
| 7973 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 7974 | # path with ; separators, and with drive letters. We can handle the |
| 7975 | # drive letters (cygwin fileutils understands them), so leave them, |
| 7976 | # especially as we might pass files found there to a mingw objdump, |
| 7977 | # which wouldn't understand a cygwinified path. Ahh. |
| 7978 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 7979 | else |
| 7980 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 7981 | fi |
| 7982 | ;; |
| 7983 | pw32*) |
| 7984 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7985 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7986 | ;; |
| 7987 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7988 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7989 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7990 | linux*) |
| 7991 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 7992 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7993 | supports_anon_versioning=no |
| 7994 | case `$LD -v 2>/dev/null` in |
| 7995 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 7996 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 7997 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 7998 | *\ 2.11.*) ;; # other 2.11 versions |
| 7999 | *) supports_anon_versioning=yes ;; |
| 8000 | esac |
| 8001 | if test $supports_anon_versioning = yes; then |
| 8002 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 8003 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 8004 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 8005 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 8006 | else |
| 8007 | $archive_expsym_cmds="$archive_cmds" |
| 8008 | fi |
| 8009 | else |
| 8010 | ld_shlibs=no |
| 8011 | fi |
| 8012 | ;; |
| 8013 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8014 | *) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8015 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8016 | ;; |
| 8017 | esac |
| 8018 | dynamic_linker='Win32 ld.exe' |
| 8019 | # FIXME: first we should search . and the directory the executable is in |
| 8020 | shlibpath_var=PATH |
| 8021 | ;; |
| 8022 | |
| 8023 | darwin* | rhapsody*) |
| 8024 | dynamic_linker="$host_os dyld" |
| 8025 | version_type=darwin |
| 8026 | need_lib_prefix=no |
| 8027 | need_version=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8028 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 8029 | soname_spec='${libname}${release}${major}$shared_ext' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8030 | shlibpath_overrides_runpath=yes |
| 8031 | shlibpath_var=DYLD_LIBRARY_PATH |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8032 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8033 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 8034 | if test "$GCC" = yes; then |
| 8035 | 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"` |
| 8036 | else |
| 8037 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 8038 | fi |
| 8039 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 8040 | ;; |
| 8041 | |
| 8042 | dgux*) |
| 8043 | version_type=linux |
| 8044 | need_lib_prefix=no |
| 8045 | need_version=no |
| 8046 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 8047 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8048 | shlibpath_var=LD_LIBRARY_PATH |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8049 | ;; |
| 8050 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8051 | freebsd1*) |
| 8052 | dynamic_linker=no |
| 8053 | ;; |
| 8054 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8055 | kfreebsd*-gnu) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8056 | version_type=linux |
| 8057 | need_lib_prefix=no |
| 8058 | need_version=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8059 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8060 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8061 | shlibpath_var=LD_LIBRARY_PATH |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8062 | shlibpath_overrides_runpath=no |
| 8063 | hardcode_into_libs=yes |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8064 | dynamic_linker='GNU ld.so' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8065 | ;; |
| 8066 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8067 | freebsd* | dragonfly*) |
| 8068 | # DragonFly does not have aout. When/if they implement a new |
| 8069 | # versioning mechanism, adjust this. |
| 8070 | if test -x /usr/bin/objformat; then |
| 8071 | objformat=`/usr/bin/objformat` |
| 8072 | else |
| 8073 | case $host_os in |
| 8074 | freebsd[123]*) objformat=aout ;; |
| 8075 | *) objformat=elf ;; |
| 8076 | esac |
| 8077 | fi |
| 8078 | # Handle Gentoo/FreeBSD as it was Linux |
| 8079 | case $host_vendor in |
| 8080 | gentoo) |
| 8081 | version_type=linux ;; |
| 8082 | *) |
| 8083 | version_type=freebsd-$objformat ;; |
| 8084 | esac |
| 8085 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8086 | case $version_type in |
| 8087 | freebsd-elf*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8088 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8089 | need_version=no |
| 8090 | need_lib_prefix=no |
| 8091 | ;; |
| 8092 | freebsd-*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8093 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8094 | need_version=yes |
| 8095 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8096 | linux) |
| 8097 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8098 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8099 | need_lib_prefix=no |
| 8100 | need_version=no |
| 8101 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8102 | esac |
| 8103 | shlibpath_var=LD_LIBRARY_PATH |
| 8104 | case $host_os in |
| 8105 | freebsd2*) |
| 8106 | shlibpath_overrides_runpath=yes |
| 8107 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8108 | freebsd3.[01]* | freebsdelf3.[01]*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8109 | shlibpath_overrides_runpath=yes |
| 8110 | hardcode_into_libs=yes |
| 8111 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8112 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 8113 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8114 | shlibpath_overrides_runpath=no |
| 8115 | hardcode_into_libs=yes |
| 8116 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8117 | freebsd*) # from 4.6 on |
| 8118 | shlibpath_overrides_runpath=yes |
| 8119 | hardcode_into_libs=yes |
| 8120 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8121 | esac |
| 8122 | ;; |
| 8123 | |
| 8124 | gnu*) |
| 8125 | version_type=linux |
| 8126 | need_lib_prefix=no |
| 8127 | need_version=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8128 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 8129 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8130 | shlibpath_var=LD_LIBRARY_PATH |
| 8131 | hardcode_into_libs=yes |
| 8132 | ;; |
| 8133 | |
| 8134 | hpux9* | hpux10* | hpux11*) |
| 8135 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 8136 | # link against other versions. |
| 8137 | version_type=sunos |
| 8138 | need_lib_prefix=no |
| 8139 | need_version=no |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8140 | case $host_cpu in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8141 | ia64*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8142 | shrext_cmds='.so' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8143 | hardcode_into_libs=yes |
| 8144 | dynamic_linker="$host_os dld.so" |
| 8145 | shlibpath_var=LD_LIBRARY_PATH |
| 8146 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 8147 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8148 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8149 | if test "X$HPUX_IA64_MODE" = X32; then |
| 8150 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 8151 | else |
| 8152 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 8153 | fi |
| 8154 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 8155 | ;; |
| 8156 | hppa*64*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8157 | shrext_cmds='.sl' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8158 | hardcode_into_libs=yes |
| 8159 | dynamic_linker="$host_os dld.sl" |
| 8160 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 8161 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 8162 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8163 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8164 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 8165 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 8166 | ;; |
| 8167 | *) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8168 | shrext_cmds='.sl' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8169 | dynamic_linker="$host_os dld.sl" |
| 8170 | shlibpath_var=SHLIB_PATH |
| 8171 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 8172 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8173 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8174 | ;; |
| 8175 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8176 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 8177 | postinstall_cmds='chmod 555 $lib' |
| 8178 | ;; |
| 8179 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8180 | interix3*) |
| 8181 | version_type=linux |
| 8182 | need_lib_prefix=no |
| 8183 | need_version=no |
| 8184 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8185 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8186 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 8187 | shlibpath_var=LD_LIBRARY_PATH |
| 8188 | shlibpath_overrides_runpath=no |
| 8189 | hardcode_into_libs=yes |
| 8190 | ;; |
| 8191 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8192 | irix5* | irix6* | nonstopux*) |
| 8193 | case $host_os in |
| 8194 | nonstopux*) version_type=nonstopux ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8195 | *) |
| 8196 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 8197 | version_type=linux |
| 8198 | else |
| 8199 | version_type=irix |
| 8200 | fi ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8201 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8202 | need_lib_prefix=no |
| 8203 | need_version=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8204 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8205 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8206 | case $host_os in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8207 | irix5* | nonstopux*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8208 | libsuff= shlibsuff= |
| 8209 | ;; |
| 8210 | *) |
| 8211 | case $LD in # libtool.m4 will add one of these switches to LD |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8212 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 8213 | libsuff= shlibsuff= libmagic=32-bit;; |
| 8214 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 8215 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 8216 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 8217 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8218 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 8219 | esac |
| 8220 | ;; |
| 8221 | esac |
| 8222 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 8223 | shlibpath_overrides_runpath=no |
| 8224 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 8225 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8226 | hardcode_into_libs=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8227 | ;; |
| 8228 | |
| 8229 | # No shared lib support for Linux oldld, aout, or coff. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8230 | linux*oldld* | linux*aout* | linux*coff*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8231 | dynamic_linker=no |
| 8232 | ;; |
| 8233 | |
| 8234 | # This must be Linux ELF. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8235 | linux*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8236 | version_type=linux |
| 8237 | need_lib_prefix=no |
| 8238 | need_version=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8239 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8240 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8241 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 8242 | shlibpath_var=LD_LIBRARY_PATH |
| 8243 | shlibpath_overrides_runpath=no |
| 8244 | # This implies no fast_install, which is unacceptable. |
| 8245 | # Some rework will be needed to allow for fast_install |
| 8246 | # before this can be enabled. |
| 8247 | hardcode_into_libs=yes |
| 8248 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8249 | # Append ld.so.conf contents to the search path |
| 8250 | if test -f /etc/ld.so.conf; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8251 | 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' ' '` |
| 8252 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8253 | fi |
| 8254 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8255 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 8256 | # powerpc, because MkLinux only supported shared libraries with the |
| 8257 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 8258 | # most powerpc-linux boxes support dynamic linking these days and |
| 8259 | # people can always --disable-shared, the test was removed, and we |
| 8260 | # assume the GNU/Linux dynamic linker is in use. |
| 8261 | dynamic_linker='GNU/Linux ld.so' |
| 8262 | ;; |
| 8263 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8264 | knetbsd*-gnu) |
| 8265 | version_type=linux |
| 8266 | need_lib_prefix=no |
| 8267 | need_version=no |
| 8268 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8269 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8270 | shlibpath_var=LD_LIBRARY_PATH |
| 8271 | shlibpath_overrides_runpath=no |
| 8272 | hardcode_into_libs=yes |
| 8273 | dynamic_linker='GNU ld.so' |
| 8274 | ;; |
| 8275 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8276 | netbsd*) |
| 8277 | version_type=sunos |
| 8278 | need_lib_prefix=no |
| 8279 | need_version=no |
| 8280 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8281 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8282 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 8283 | dynamic_linker='NetBSD (a.out) ld.so' |
| 8284 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8285 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8286 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8287 | dynamic_linker='NetBSD ld.elf_so' |
| 8288 | fi |
| 8289 | shlibpath_var=LD_LIBRARY_PATH |
| 8290 | shlibpath_overrides_runpath=yes |
| 8291 | hardcode_into_libs=yes |
| 8292 | ;; |
| 8293 | |
| 8294 | newsos6) |
| 8295 | version_type=linux |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8296 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8297 | shlibpath_var=LD_LIBRARY_PATH |
| 8298 | shlibpath_overrides_runpath=yes |
| 8299 | ;; |
| 8300 | |
| 8301 | nto-qnx*) |
| 8302 | version_type=linux |
| 8303 | need_lib_prefix=no |
| 8304 | need_version=no |
| 8305 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8306 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8307 | shlibpath_var=LD_LIBRARY_PATH |
| 8308 | shlibpath_overrides_runpath=yes |
| 8309 | ;; |
| 8310 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8311 | openbsd*) |
| 8312 | version_type=sunos |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8313 | sys_lib_dlsearch_path_spec="/usr/lib" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8314 | need_lib_prefix=no |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8315 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 8316 | case $host_os in |
| 8317 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 8318 | *) need_version=no ;; |
| 8319 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8320 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 8321 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 8322 | shlibpath_var=LD_LIBRARY_PATH |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8323 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8324 | case $host_os in |
| 8325 | openbsd2.[89] | openbsd2.[89].*) |
| 8326 | shlibpath_overrides_runpath=no |
| 8327 | ;; |
| 8328 | *) |
| 8329 | shlibpath_overrides_runpath=yes |
| 8330 | ;; |
| 8331 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8332 | else |
| 8333 | shlibpath_overrides_runpath=yes |
| 8334 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8335 | ;; |
| 8336 | |
| 8337 | os2*) |
| 8338 | libname_spec='$name' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8339 | shrext_cmds=".dll" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8340 | need_lib_prefix=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8341 | library_names_spec='$libname${shared_ext} $libname.a' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8342 | dynamic_linker='OS/2 ld.exe' |
| 8343 | shlibpath_var=LIBPATH |
| 8344 | ;; |
| 8345 | |
| 8346 | osf3* | osf4* | osf5*) |
| 8347 | version_type=osf |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8348 | need_lib_prefix=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8349 | need_version=no |
| 8350 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8351 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8352 | shlibpath_var=LD_LIBRARY_PATH |
| 8353 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 8354 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 8355 | ;; |
| 8356 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8357 | solaris*) |
| 8358 | version_type=linux |
| 8359 | need_lib_prefix=no |
| 8360 | need_version=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8361 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8362 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8363 | shlibpath_var=LD_LIBRARY_PATH |
| 8364 | shlibpath_overrides_runpath=yes |
| 8365 | hardcode_into_libs=yes |
| 8366 | # ldd complains unless libraries are executable |
| 8367 | postinstall_cmds='chmod +x $lib' |
| 8368 | ;; |
| 8369 | |
| 8370 | sunos4*) |
| 8371 | version_type=sunos |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8372 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8373 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 8374 | shlibpath_var=LD_LIBRARY_PATH |
| 8375 | shlibpath_overrides_runpath=yes |
| 8376 | if test "$with_gnu_ld" = yes; then |
| 8377 | need_lib_prefix=no |
| 8378 | fi |
| 8379 | need_version=yes |
| 8380 | ;; |
| 8381 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8382 | sysv4 | sysv4.3*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8383 | version_type=linux |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8384 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8385 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8386 | shlibpath_var=LD_LIBRARY_PATH |
| 8387 | case $host_vendor in |
| 8388 | sni) |
| 8389 | shlibpath_overrides_runpath=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8390 | need_lib_prefix=no |
| 8391 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 8392 | runpath_var=LD_RUN_PATH |
| 8393 | ;; |
| 8394 | siemens) |
| 8395 | need_lib_prefix=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8396 | ;; |
| 8397 | motorola) |
| 8398 | need_lib_prefix=no |
| 8399 | need_version=no |
| 8400 | shlibpath_overrides_runpath=no |
| 8401 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 8402 | ;; |
| 8403 | esac |
| 8404 | ;; |
| 8405 | |
| 8406 | sysv4*MP*) |
| 8407 | if test -d /usr/nec ;then |
| 8408 | version_type=linux |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8409 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 8410 | soname_spec='$libname${shared_ext}.$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8411 | shlibpath_var=LD_LIBRARY_PATH |
| 8412 | fi |
| 8413 | ;; |
| 8414 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8415 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 8416 | version_type=freebsd-elf |
| 8417 | need_lib_prefix=no |
| 8418 | need_version=no |
| 8419 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 8420 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8421 | shlibpath_var=LD_LIBRARY_PATH |
| 8422 | hardcode_into_libs=yes |
| 8423 | if test "$with_gnu_ld" = yes; then |
| 8424 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 8425 | shlibpath_overrides_runpath=no |
| 8426 | else |
| 8427 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 8428 | shlibpath_overrides_runpath=yes |
| 8429 | case $host_os in |
| 8430 | sco3.2v5*) |
| 8431 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 8432 | ;; |
| 8433 | esac |
| 8434 | fi |
| 8435 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 8436 | ;; |
| 8437 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8438 | uts4*) |
| 8439 | version_type=linux |
| 8440 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8441 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8442 | shlibpath_var=LD_LIBRARY_PATH |
| 8443 | ;; |
| 8444 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8445 | *) |
| 8446 | dynamic_linker=no |
| 8447 | ;; |
| 8448 | esac |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8449 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 8450 | echo "${ECHO_T}$dynamic_linker" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8451 | test "$dynamic_linker" = no && can_build_shared=no |
| 8452 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8453 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 8454 | if test "$GCC" = yes; then |
| 8455 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 8456 | fi |
| 8457 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8458 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 8459 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8460 | hardcode_action= |
| 8461 | if test -n "$hardcode_libdir_flag_spec" || \ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8462 | test -n "$runpath_var" || \ |
| 8463 | test "X$hardcode_automatic" = "Xyes" ; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8464 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8465 | # We can hardcode non-existant directories. |
| 8466 | if test "$hardcode_direct" != no && |
| 8467 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 8468 | # have to relink, otherwise we might link with an installed library |
| 8469 | # when we should be linking with a yet-to-be-installed one |
| 8470 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 8471 | test "$hardcode_minus_L" != no; then |
| 8472 | # Linking always hardcodes the temporary library directory. |
| 8473 | hardcode_action=relink |
| 8474 | else |
| 8475 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 8476 | hardcode_action=immediate |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8477 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8478 | else |
| 8479 | # We cannot hardcode anything, or else we can only hardcode existing |
| 8480 | # directories. |
| 8481 | hardcode_action=unsupported |
| 8482 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8483 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 8484 | echo "${ECHO_T}$hardcode_action" >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8485 | |
| 8486 | if test "$hardcode_action" = relink; then |
| 8487 | # Fast installation is not supported |
| 8488 | enable_fast_install=no |
| 8489 | elif test "$shlibpath_overrides_runpath" = yes || |
| 8490 | test "$enable_shared" = no; then |
| 8491 | # Fast installation is not necessary |
| 8492 | enable_fast_install=needless |
| 8493 | fi |
| 8494 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8495 | striplib= |
| 8496 | old_striplib= |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8497 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 8498 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8499 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 8500 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 8501 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8502 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 8503 | echo "${ECHO_T}yes" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8504 | else |
| 8505 | # FIXME - insert some real tests, host_os isn't really good enough |
| 8506 | case $host_os in |
| 8507 | darwin*) |
| 8508 | if test -n "$STRIP" ; then |
| 8509 | striplib="$STRIP -x" |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8510 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 8511 | echo "${ECHO_T}yes" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8512 | else |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8513 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8514 | echo "${ECHO_T}no" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8515 | fi |
| 8516 | ;; |
| 8517 | *) |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8518 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8519 | echo "${ECHO_T}no" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8520 | ;; |
| 8521 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8522 | fi |
| 8523 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8524 | if test "x$enable_dlopen" != xyes; then |
| 8525 | enable_dlopen=unknown |
| 8526 | enable_dlopen_self=unknown |
| 8527 | enable_dlopen_self_static=unknown |
| 8528 | else |
| 8529 | lt_cv_dlopen=no |
| 8530 | lt_cv_dlopen_libs= |
| 8531 | |
| 8532 | case $host_os in |
| 8533 | beos*) |
| 8534 | lt_cv_dlopen="load_add_on" |
| 8535 | lt_cv_dlopen_libs= |
| 8536 | lt_cv_dlopen_self=yes |
| 8537 | ;; |
| 8538 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8539 | mingw* | pw32*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8540 | lt_cv_dlopen="LoadLibrary" |
| 8541 | lt_cv_dlopen_libs= |
| 8542 | ;; |
| 8543 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8544 | cygwin*) |
| 8545 | lt_cv_dlopen="dlopen" |
| 8546 | lt_cv_dlopen_libs= |
| 8547 | ;; |
| 8548 | |
| 8549 | darwin*) |
| 8550 | # if libdl is installed we need to link against it |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8551 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 8552 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8553 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 8554 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8555 | else |
| 8556 | ac_check_lib_save_LIBS=$LIBS |
| 8557 | LIBS="-ldl $LIBS" |
| 8558 | cat >conftest.$ac_ext <<_ACEOF |
| 8559 | /* confdefs.h. */ |
| 8560 | _ACEOF |
| 8561 | cat confdefs.h >>conftest.$ac_ext |
| 8562 | cat >>conftest.$ac_ext <<_ACEOF |
| 8563 | /* end confdefs.h. */ |
| 8564 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8565 | /* Override any GCC internal prototype to avoid an error. |
| 8566 | Use char because int might match the return type of a GCC |
| 8567 | builtin and then its argument prototype would still apply. */ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8568 | #ifdef __cplusplus |
| 8569 | extern "C" |
| 8570 | #endif |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8571 | char dlopen (); |
| 8572 | int |
| 8573 | main () |
| 8574 | { |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8575 | return dlopen (); |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8576 | ; |
| 8577 | return 0; |
| 8578 | } |
| 8579 | _ACEOF |
| 8580 | rm -f conftest.$ac_objext conftest$ac_exeext |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8581 | if { (ac_try="$ac_link" |
| 8582 | case "(($ac_try" in |
| 8583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8584 | *) ac_try_echo=$ac_try;; |
| 8585 | esac |
| 8586 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8587 | (eval "$ac_link") 2>conftest.er1 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8588 | ac_status=$? |
| 8589 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8590 | rm -f conftest.er1 |
| 8591 | cat conftest.err >&5 |
| 8592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8593 | (exit $ac_status); } && { |
| 8594 | test -z "$ac_c_werror_flag" || |
| 8595 | test ! -s conftest.err |
| 8596 | } && test -s conftest$ac_exeext && |
| 8597 | $as_test_x conftest$ac_exeext; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8598 | ac_cv_lib_dl_dlopen=yes |
| 8599 | else |
| 8600 | echo "$as_me: failed program was:" >&5 |
| 8601 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8602 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8603 | ac_cv_lib_dl_dlopen=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8604 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8605 | |
| 8606 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8607 | conftest$ac_exeext conftest.$ac_ext |
| 8608 | LIBS=$ac_check_lib_save_LIBS |
| 8609 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8610 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 8611 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8612 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 8613 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 8614 | else |
| 8615 | |
| 8616 | lt_cv_dlopen="dyld" |
| 8617 | lt_cv_dlopen_libs= |
| 8618 | lt_cv_dlopen_self=yes |
| 8619 | |
| 8620 | fi |
| 8621 | |
| 8622 | ;; |
| 8623 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8624 | *) |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8625 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 8626 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8627 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 8628 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8629 | else |
| 8630 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8631 | /* confdefs.h. */ |
| 8632 | _ACEOF |
| 8633 | cat confdefs.h >>conftest.$ac_ext |
| 8634 | cat >>conftest.$ac_ext <<_ACEOF |
| 8635 | /* end confdefs.h. */ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8636 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 8637 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 8638 | #define shl_load innocuous_shl_load |
| 8639 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8640 | /* System header to define __stub macros and hopefully few prototypes, |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8641 | which can conflict with char shl_load (); below. |
| 8642 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 8643 | <limits.h> exists even on freestanding compilers. */ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8644 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8645 | #ifdef __STDC__ |
| 8646 | # include <limits.h> |
| 8647 | #else |
| 8648 | # include <assert.h> |
| 8649 | #endif |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8650 | |
| 8651 | #undef shl_load |
| 8652 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8653 | /* Override any GCC internal prototype to avoid an error. |
| 8654 | Use char because int might match the return type of a GCC |
| 8655 | builtin and then its argument prototype would still apply. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8656 | #ifdef __cplusplus |
| 8657 | extern "C" |
| 8658 | #endif |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8659 | char shl_load (); |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8660 | /* The GNU C library defines this for functions which it implements |
| 8661 | to always fail with ENOSYS. Some functions are actually named |
| 8662 | something starting with __ and the normal name is an alias. */ |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8663 | #if defined __stub_shl_load || defined __stub___shl_load |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8664 | choke me |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8665 | #endif |
| 8666 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8667 | int |
| 8668 | main () |
| 8669 | { |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8670 | return shl_load (); |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8671 | ; |
| 8672 | return 0; |
| 8673 | } |
| 8674 | _ACEOF |
| 8675 | rm -f conftest.$ac_objext conftest$ac_exeext |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8676 | if { (ac_try="$ac_link" |
| 8677 | case "(($ac_try" in |
| 8678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8679 | *) ac_try_echo=$ac_try;; |
| 8680 | esac |
| 8681 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8682 | (eval "$ac_link") 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8683 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8684 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8685 | rm -f conftest.er1 |
| 8686 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8688 | (exit $ac_status); } && { |
| 8689 | test -z "$ac_c_werror_flag" || |
| 8690 | test ! -s conftest.err |
| 8691 | } && test -s conftest$ac_exeext && |
| 8692 | $as_test_x conftest$ac_exeext; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8693 | ac_cv_func_shl_load=yes |
| 8694 | else |
| 8695 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8696 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8697 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8698 | ac_cv_func_shl_load=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8699 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8700 | |
| 8701 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8702 | conftest$ac_exeext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8703 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8704 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 8705 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8706 | if test $ac_cv_func_shl_load = yes; then |
| 8707 | lt_cv_dlopen="shl_load" |
| 8708 | else |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8709 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 8710 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8711 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 8712 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8713 | else |
| 8714 | ac_check_lib_save_LIBS=$LIBS |
| 8715 | LIBS="-ldld $LIBS" |
| 8716 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8717 | /* confdefs.h. */ |
| 8718 | _ACEOF |
| 8719 | cat confdefs.h >>conftest.$ac_ext |
| 8720 | cat >>conftest.$ac_ext <<_ACEOF |
| 8721 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8722 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8723 | /* Override any GCC internal prototype to avoid an error. |
| 8724 | Use char because int might match the return type of a GCC |
| 8725 | builtin and then its argument prototype would still apply. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8726 | #ifdef __cplusplus |
| 8727 | extern "C" |
| 8728 | #endif |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8729 | char shl_load (); |
| 8730 | int |
| 8731 | main () |
| 8732 | { |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8733 | return shl_load (); |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8734 | ; |
| 8735 | return 0; |
| 8736 | } |
| 8737 | _ACEOF |
| 8738 | rm -f conftest.$ac_objext conftest$ac_exeext |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8739 | if { (ac_try="$ac_link" |
| 8740 | case "(($ac_try" in |
| 8741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8742 | *) ac_try_echo=$ac_try;; |
| 8743 | esac |
| 8744 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8745 | (eval "$ac_link") 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8746 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8747 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8748 | rm -f conftest.er1 |
| 8749 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8751 | (exit $ac_status); } && { |
| 8752 | test -z "$ac_c_werror_flag" || |
| 8753 | test ! -s conftest.err |
| 8754 | } && test -s conftest$ac_exeext && |
| 8755 | $as_test_x conftest$ac_exeext; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8756 | ac_cv_lib_dld_shl_load=yes |
| 8757 | else |
| 8758 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8759 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8760 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8761 | ac_cv_lib_dld_shl_load=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8762 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8763 | |
| 8764 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8765 | conftest$ac_exeext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8766 | LIBS=$ac_check_lib_save_LIBS |
| 8767 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8768 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 8769 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8770 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 8771 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 8772 | else |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8773 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 8774 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8775 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 8776 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8777 | else |
| 8778 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8779 | /* confdefs.h. */ |
| 8780 | _ACEOF |
| 8781 | cat confdefs.h >>conftest.$ac_ext |
| 8782 | cat >>conftest.$ac_ext <<_ACEOF |
| 8783 | /* end confdefs.h. */ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8784 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 8785 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 8786 | #define dlopen innocuous_dlopen |
| 8787 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8788 | /* System header to define __stub macros and hopefully few prototypes, |
| 8789 | which can conflict with char dlopen (); below. |
| 8790 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 8791 | <limits.h> exists even on freestanding compilers. */ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8792 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8793 | #ifdef __STDC__ |
| 8794 | # include <limits.h> |
| 8795 | #else |
| 8796 | # include <assert.h> |
| 8797 | #endif |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8798 | |
| 8799 | #undef dlopen |
| 8800 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8801 | /* Override any GCC internal prototype to avoid an error. |
| 8802 | Use char because int might match the return type of a GCC |
| 8803 | builtin and then its argument prototype would still apply. */ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8804 | #ifdef __cplusplus |
| 8805 | extern "C" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8806 | #endif |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8807 | char dlopen (); |
| 8808 | /* The GNU C library defines this for functions which it implements |
| 8809 | to always fail with ENOSYS. Some functions are actually named |
| 8810 | something starting with __ and the normal name is an alias. */ |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8811 | #if defined __stub_dlopen || defined __stub___dlopen |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8812 | choke me |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8813 | #endif |
| 8814 | |
| 8815 | int |
| 8816 | main () |
| 8817 | { |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8818 | return dlopen (); |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8819 | ; |
| 8820 | return 0; |
| 8821 | } |
| 8822 | _ACEOF |
| 8823 | rm -f conftest.$ac_objext conftest$ac_exeext |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8824 | if { (ac_try="$ac_link" |
| 8825 | case "(($ac_try" in |
| 8826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8827 | *) ac_try_echo=$ac_try;; |
| 8828 | esac |
| 8829 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8830 | (eval "$ac_link") 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8831 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8832 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8833 | rm -f conftest.er1 |
| 8834 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8836 | (exit $ac_status); } && { |
| 8837 | test -z "$ac_c_werror_flag" || |
| 8838 | test ! -s conftest.err |
| 8839 | } && test -s conftest$ac_exeext && |
| 8840 | $as_test_x conftest$ac_exeext; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8841 | ac_cv_func_dlopen=yes |
| 8842 | else |
| 8843 | echo "$as_me: failed program was:" >&5 |
| 8844 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8845 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8846 | ac_cv_func_dlopen=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8847 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8848 | |
| 8849 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8850 | conftest$ac_exeext conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8851 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8852 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 8853 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8854 | if test $ac_cv_func_dlopen = yes; then |
| 8855 | lt_cv_dlopen="dlopen" |
| 8856 | else |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8857 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 8858 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8859 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 8860 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8861 | else |
| 8862 | ac_check_lib_save_LIBS=$LIBS |
| 8863 | LIBS="-ldl $LIBS" |
| 8864 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8865 | /* confdefs.h. */ |
| 8866 | _ACEOF |
| 8867 | cat confdefs.h >>conftest.$ac_ext |
| 8868 | cat >>conftest.$ac_ext <<_ACEOF |
| 8869 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8870 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8871 | /* Override any GCC internal prototype to avoid an error. |
| 8872 | Use char because int might match the return type of a GCC |
| 8873 | builtin and then its argument prototype would still apply. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8874 | #ifdef __cplusplus |
| 8875 | extern "C" |
| 8876 | #endif |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8877 | char dlopen (); |
| 8878 | int |
| 8879 | main () |
| 8880 | { |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8881 | return dlopen (); |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8882 | ; |
| 8883 | return 0; |
| 8884 | } |
| 8885 | _ACEOF |
| 8886 | rm -f conftest.$ac_objext conftest$ac_exeext |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8887 | if { (ac_try="$ac_link" |
| 8888 | case "(($ac_try" in |
| 8889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8890 | *) ac_try_echo=$ac_try;; |
| 8891 | esac |
| 8892 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8893 | (eval "$ac_link") 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8894 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8895 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8896 | rm -f conftest.er1 |
| 8897 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8899 | (exit $ac_status); } && { |
| 8900 | test -z "$ac_c_werror_flag" || |
| 8901 | test ! -s conftest.err |
| 8902 | } && test -s conftest$ac_exeext && |
| 8903 | $as_test_x conftest$ac_exeext; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8904 | ac_cv_lib_dl_dlopen=yes |
| 8905 | else |
| 8906 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8907 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8908 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8909 | ac_cv_lib_dl_dlopen=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8910 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8911 | |
| 8912 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8913 | conftest$ac_exeext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8914 | LIBS=$ac_check_lib_save_LIBS |
| 8915 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8916 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 8917 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8918 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 8919 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 8920 | else |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8921 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 8922 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8923 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 8924 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8925 | else |
| 8926 | ac_check_lib_save_LIBS=$LIBS |
| 8927 | LIBS="-lsvld $LIBS" |
| 8928 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8929 | /* confdefs.h. */ |
| 8930 | _ACEOF |
| 8931 | cat confdefs.h >>conftest.$ac_ext |
| 8932 | cat >>conftest.$ac_ext <<_ACEOF |
| 8933 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8934 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8935 | /* Override any GCC internal prototype to avoid an error. |
| 8936 | Use char because int might match the return type of a GCC |
| 8937 | builtin and then its argument prototype would still apply. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8938 | #ifdef __cplusplus |
| 8939 | extern "C" |
| 8940 | #endif |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8941 | char dlopen (); |
| 8942 | int |
| 8943 | main () |
| 8944 | { |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8945 | return dlopen (); |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8946 | ; |
| 8947 | return 0; |
| 8948 | } |
| 8949 | _ACEOF |
| 8950 | rm -f conftest.$ac_objext conftest$ac_exeext |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8951 | if { (ac_try="$ac_link" |
| 8952 | case "(($ac_try" in |
| 8953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8954 | *) ac_try_echo=$ac_try;; |
| 8955 | esac |
| 8956 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8957 | (eval "$ac_link") 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8958 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8959 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8960 | rm -f conftest.er1 |
| 8961 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8963 | (exit $ac_status); } && { |
| 8964 | test -z "$ac_c_werror_flag" || |
| 8965 | test ! -s conftest.err |
| 8966 | } && test -s conftest$ac_exeext && |
| 8967 | $as_test_x conftest$ac_exeext; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8968 | ac_cv_lib_svld_dlopen=yes |
| 8969 | else |
| 8970 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8971 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8972 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8973 | ac_cv_lib_svld_dlopen=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8974 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8975 | |
| 8976 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8977 | conftest$ac_exeext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8978 | LIBS=$ac_check_lib_save_LIBS |
| 8979 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8980 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 8981 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8982 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 8983 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8984 | else |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8985 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 8986 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8987 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 8988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8989 | else |
| 8990 | ac_check_lib_save_LIBS=$LIBS |
| 8991 | LIBS="-ldld $LIBS" |
| 8992 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8993 | /* confdefs.h. */ |
| 8994 | _ACEOF |
| 8995 | cat confdefs.h >>conftest.$ac_ext |
| 8996 | cat >>conftest.$ac_ext <<_ACEOF |
| 8997 | /* end confdefs.h. */ |
| 8998 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 8999 | /* Override any GCC internal prototype to avoid an error. |
| 9000 | Use char because int might match the return type of a GCC |
| 9001 | builtin and then its argument prototype would still apply. */ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9002 | #ifdef __cplusplus |
| 9003 | extern "C" |
| 9004 | #endif |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9005 | char dld_link (); |
| 9006 | int |
| 9007 | main () |
| 9008 | { |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 9009 | return dld_link (); |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9010 | ; |
| 9011 | return 0; |
| 9012 | } |
| 9013 | _ACEOF |
| 9014 | rm -f conftest.$ac_objext conftest$ac_exeext |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 9015 | if { (ac_try="$ac_link" |
| 9016 | case "(($ac_try" in |
| 9017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9018 | *) ac_try_echo=$ac_try;; |
| 9019 | esac |
| 9020 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9021 | (eval "$ac_link") 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9022 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 9023 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9024 | rm -f conftest.er1 |
| 9025 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 9027 | (exit $ac_status); } && { |
| 9028 | test -z "$ac_c_werror_flag" || |
| 9029 | test ! -s conftest.err |
| 9030 | } && test -s conftest$ac_exeext && |
| 9031 | $as_test_x conftest$ac_exeext; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9032 | ac_cv_lib_dld_dld_link=yes |
| 9033 | else |
| 9034 | echo "$as_me: failed program was:" >&5 |
| 9035 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9036 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 9037 | ac_cv_lib_dld_dld_link=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9038 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 9039 | |
| 9040 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 9041 | conftest$ac_exeext conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9042 | LIBS=$ac_check_lib_save_LIBS |
| 9043 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 9044 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 9045 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9046 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 9047 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 9048 | fi |
| 9049 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9050 | |
| 9051 | fi |
| 9052 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9053 | |
| 9054 | fi |
| 9055 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9056 | |
| 9057 | fi |
| 9058 | |
| 9059 | |
| 9060 | fi |
| 9061 | |
| 9062 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9063 | fi |
| 9064 | |
| 9065 | ;; |
| 9066 | esac |
| 9067 | |
| 9068 | if test "x$lt_cv_dlopen" != xno; then |
| 9069 | enable_dlopen=yes |
| 9070 | else |
| 9071 | enable_dlopen=no |
| 9072 | fi |
| 9073 | |
| 9074 | case $lt_cv_dlopen in |
| 9075 | dlopen) |
| 9076 | save_CPPFLAGS="$CPPFLAGS" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9077 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9078 | |
| 9079 | save_LDFLAGS="$LDFLAGS" |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9080 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9081 | |
| 9082 | save_LIBS="$LIBS" |
| 9083 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 9084 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 9085 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 9086 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9087 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 9088 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9089 | else |
| 9090 | if test "$cross_compiling" = yes; then : |
| 9091 | lt_cv_dlopen_self=cross |
| 9092 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9093 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9094 | lt_status=$lt_dlunknown |
| 9095 | cat > conftest.$ac_ext <<EOF |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame^] | 9096 | #line 9096 "configure" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9097 | #include "confdefs.h" |
| 9098 | |
| 9099 | #if HAVE_DLFCN_H |
| 9100 | #include <dlfcn.h> |
| 9101 | #endif |
| 9102 | |
| 9103 | #include <stdio.h> |
| 9104 | |
| 9105 | #ifdef RTLD_GLOBAL |
| 9106 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 9107 | #else |
| 9108 | # ifdef DL_GLOBAL |
| 9109 | # define LT_DLGLOBAL DL_GLOBAL |
| 9110 | # else |
| 9111 | # define LT_DLGLOBAL 0 |
| 9112 | # endif |
| 9113 | #endif |
| 9114 | |
| 9115 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 9116 | find out it does not work in some platform. */ |
| 9117 | #ifndef LT_DLLAZY_OR_NOW |
| 9118 | # ifdef RTLD_LAZY |
| 9119 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 9120 | # else |
| 9121 | # ifdef DL_LAZY |
| 9122 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 9123 | # else |
| 9124 | # ifdef RTLD_NOW |
| 9125 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 9126 | # else |
| 9127 | # ifdef DL_NOW |
| 9128 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 9129 | # else |
| 9130 | # define LT_DLLAZY_OR_NOW 0 |
| 9131 | # endif |
| 9132 | # endif |
| 9133 | # endif |
| 9134 | # endif |
| 9135 | #endif |
| 9136 | |
| 9137 | #ifdef __cplusplus |
| 9138 | extern "C" void exit (int); |
| 9139 | #endif |
| 9140 | |
| 9141 | void fnord() { int i=42;} |
| 9142 | int main () |
| 9143 | { |
| 9144 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 9145 | int status = $lt_dlunknown; |
| 9146 | |
| 9147 | if (self) |
| 9148 | { |
| 9149 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 9150 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 9151 | /* dlclose (self); */ |
| 9152 | } |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9153 | else |
| 9154 | puts (dlerror ()); |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9155 | |
| 9156 | exit (status); |
| 9157 | } |
| 9158 | EOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9159 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9160 | (eval $ac_link) 2>&5 |
| 9161 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9163 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9164 | (./conftest; exit; ) >&5 2>/dev/null |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9165 | lt_status=$? |
| 9166 | case x$lt_status in |
| 9167 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 9168 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9169 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9170 | esac |
| 9171 | else : |
| 9172 | # compilation failed |
| 9173 | lt_cv_dlopen_self=no |
| 9174 | fi |
| 9175 | fi |
| 9176 | rm -fr conftest* |
| 9177 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9178 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9179 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 9180 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 9181 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9182 | |
| 9183 | if test "x$lt_cv_dlopen_self" = xyes; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9184 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 9185 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 9186 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9187 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 9188 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9189 | else |
| 9190 | if test "$cross_compiling" = yes; then : |
| 9191 | lt_cv_dlopen_self_static=cross |
| 9192 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9193 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9194 | lt_status=$lt_dlunknown |
| 9195 | cat > conftest.$ac_ext <<EOF |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame^] | 9196 | #line 9196 "configure" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9197 | #include "confdefs.h" |
| 9198 | |
| 9199 | #if HAVE_DLFCN_H |
| 9200 | #include <dlfcn.h> |
| 9201 | #endif |
| 9202 | |
| 9203 | #include <stdio.h> |
| 9204 | |
| 9205 | #ifdef RTLD_GLOBAL |
| 9206 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 9207 | #else |
| 9208 | # ifdef DL_GLOBAL |
| 9209 | # define LT_DLGLOBAL DL_GLOBAL |
| 9210 | # else |
| 9211 | # define LT_DLGLOBAL 0 |
| 9212 | # endif |
| 9213 | #endif |
| 9214 | |
| 9215 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 9216 | find out it does not work in some platform. */ |
| 9217 | #ifndef LT_DLLAZY_OR_NOW |
| 9218 | # ifdef RTLD_LAZY |
| 9219 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 9220 | # else |
| 9221 | # ifdef DL_LAZY |
| 9222 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 9223 | # else |
| 9224 | # ifdef RTLD_NOW |
| 9225 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 9226 | # else |
| 9227 | # ifdef DL_NOW |
| 9228 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 9229 | # else |
| 9230 | # define LT_DLLAZY_OR_NOW 0 |
| 9231 | # endif |
| 9232 | # endif |
| 9233 | # endif |
| 9234 | # endif |
| 9235 | #endif |
| 9236 | |
| 9237 | #ifdef __cplusplus |
| 9238 | extern "C" void exit (int); |
| 9239 | #endif |
| 9240 | |
| 9241 | void fnord() { int i=42;} |
| 9242 | int main () |
| 9243 | { |
| 9244 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 9245 | int status = $lt_dlunknown; |
| 9246 | |
| 9247 | if (self) |
| 9248 | { |
| 9249 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 9250 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 9251 | /* dlclose (self); */ |
| 9252 | } |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9253 | else |
| 9254 | puts (dlerror ()); |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9255 | |
| 9256 | exit (status); |
| 9257 | } |
| 9258 | EOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9259 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9260 | (eval $ac_link) 2>&5 |
| 9261 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9263 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9264 | (./conftest; exit; ) >&5 2>/dev/null |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9265 | lt_status=$? |
| 9266 | case x$lt_status in |
| 9267 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 9268 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9269 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9270 | esac |
| 9271 | else : |
| 9272 | # compilation failed |
| 9273 | lt_cv_dlopen_self_static=no |
| 9274 | fi |
| 9275 | fi |
| 9276 | rm -fr conftest* |
| 9277 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9278 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9279 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 9280 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 9281 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9282 | fi |
| 9283 | |
| 9284 | CPPFLAGS="$save_CPPFLAGS" |
| 9285 | LDFLAGS="$save_LDFLAGS" |
| 9286 | LIBS="$save_LIBS" |
| 9287 | ;; |
| 9288 | esac |
| 9289 | |
| 9290 | case $lt_cv_dlopen_self in |
| 9291 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 9292 | *) enable_dlopen_self=unknown ;; |
| 9293 | esac |
| 9294 | |
| 9295 | case $lt_cv_dlopen_self_static in |
| 9296 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 9297 | *) enable_dlopen_self_static=unknown ;; |
| 9298 | esac |
| 9299 | fi |
| 9300 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9301 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9302 | # Report which library types will actually be built |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 9303 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 9304 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
| 9305 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 9306 | echo "${ECHO_T}$can_build_shared" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9307 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 9308 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 9309 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9310 | test "$can_build_shared" = "no" && enable_shared=no |
| 9311 | |
| 9312 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 9313 | # are all built from PIC. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9314 | case $host_os in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9315 | aix3*) |
| 9316 | test "$enable_shared" = yes && enable_static=no |
| 9317 | if test -n "$RANLIB"; then |
| 9318 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 9319 | postinstall_cmds='$RANLIB $lib' |
| 9320 | fi |
| 9321 | ;; |
| 9322 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9323 | aix4* | aix5*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9324 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 9325 | test "$enable_shared" = yes && enable_static=no |
| 9326 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9327 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9328 | esac |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 9329 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 9330 | echo "${ECHO_T}$enable_shared" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9331 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 9332 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 9333 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9334 | # Make sure either enable_shared or enable_static is yes. |
| 9335 | test "$enable_shared" = yes || enable_static=yes |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 9336 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 9337 | echo "${ECHO_T}$enable_static" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9338 | |
| 9339 | # The else clause should only fire when bootstrapping the |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9340 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 9341 | # with your package, and you will get complaints that there are |
| 9342 | # no rules to generate ltmain.sh. |
| 9343 | if test -f "$ltmain"; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9344 | # See if we are running on zsh, and set the options which allow our commands through |
| 9345 | # without removal of \ escapes. |
| 9346 | if test -n "${ZSH_VERSION+set}" ; then |
| 9347 | setopt NO_GLOB_SUBST |
| 9348 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9349 | # Now quote all the things that may contain metacharacters while being |
| 9350 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 9351 | # variables and quote the copies for generation of the libtool script. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9352 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9353 | SED SHELL STRIP \ |
| 9354 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 9355 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 9356 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 9357 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 9358 | lt_cv_sys_global_symbol_to_c_name_address \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9359 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9360 | old_postinstall_cmds old_postuninstall_cmds \ |
| 9361 | compiler \ |
| 9362 | CC \ |
| 9363 | LD \ |
| 9364 | lt_prog_compiler_wl \ |
| 9365 | lt_prog_compiler_pic \ |
| 9366 | lt_prog_compiler_static \ |
| 9367 | lt_prog_compiler_no_builtin_flag \ |
| 9368 | export_dynamic_flag_spec \ |
| 9369 | thread_safe_flag_spec \ |
| 9370 | whole_archive_flag_spec \ |
| 9371 | enable_shared_with_static_runtimes \ |
| 9372 | old_archive_cmds \ |
| 9373 | old_archive_from_new_cmds \ |
| 9374 | predep_objects \ |
| 9375 | postdep_objects \ |
| 9376 | predeps \ |
| 9377 | postdeps \ |
| 9378 | compiler_lib_search_path \ |
| 9379 | archive_cmds \ |
| 9380 | archive_expsym_cmds \ |
| 9381 | postinstall_cmds \ |
| 9382 | postuninstall_cmds \ |
| 9383 | old_archive_from_expsyms_cmds \ |
| 9384 | allow_undefined_flag \ |
| 9385 | no_undefined_flag \ |
| 9386 | export_symbols_cmds \ |
| 9387 | hardcode_libdir_flag_spec \ |
| 9388 | hardcode_libdir_flag_spec_ld \ |
| 9389 | hardcode_libdir_separator \ |
| 9390 | hardcode_automatic \ |
| 9391 | module_cmds \ |
| 9392 | module_expsym_cmds \ |
| 9393 | lt_cv_prog_compiler_c_o \ |
| 9394 | exclude_expsyms \ |
| 9395 | include_expsyms; do |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9396 | |
| 9397 | case $var in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9398 | old_archive_cmds | \ |
| 9399 | old_archive_from_new_cmds | \ |
| 9400 | archive_cmds | \ |
| 9401 | archive_expsym_cmds | \ |
| 9402 | module_cmds | \ |
| 9403 | module_expsym_cmds | \ |
| 9404 | old_archive_from_expsyms_cmds | \ |
| 9405 | export_symbols_cmds | \ |
| 9406 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9407 | postinstall_cmds | postuninstall_cmds | \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9408 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 9409 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9410 | # Double-quote double-evaled strings. |
| 9411 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 9412 | ;; |
| 9413 | *) |
| 9414 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 9415 | ;; |
| 9416 | esac |
| 9417 | done |
| 9418 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9419 | case $lt_echo in |
| 9420 | *'\$0 --fallback-echo"') |
| 9421 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 9422 | ;; |
| 9423 | esac |
| 9424 | |
| 9425 | cfgfile="${ofile}T" |
| 9426 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
| 9427 | $rm -f "$cfgfile" |
| 9428 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
| 9429 | echo "$as_me: creating $ofile" >&6;} |
| 9430 | |
| 9431 | cat <<__EOF__ >> "$cfgfile" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9432 | #! $SHELL |
| 9433 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9434 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9435 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 9436 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 9437 | # |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9438 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
| 9439 | # Free Software Foundation, Inc. |
| 9440 | # |
| 9441 | # This file is part of GNU Libtool: |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9442 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 9443 | # |
| 9444 | # This program is free software; you can redistribute it and/or modify |
| 9445 | # it under the terms of the GNU General Public License as published by |
| 9446 | # the Free Software Foundation; either version 2 of the License, or |
| 9447 | # (at your option) any later version. |
| 9448 | # |
| 9449 | # This program is distributed in the hope that it will be useful, but |
| 9450 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9451 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 9452 | # General Public License for more details. |
| 9453 | # |
| 9454 | # You should have received a copy of the GNU General Public License |
| 9455 | # along with this program; if not, write to the Free Software |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9456 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9457 | # |
| 9458 | # As a special exception to the GNU General Public License, if you |
| 9459 | # distribute this file as part of a program that contains a |
| 9460 | # configuration script generated by Autoconf, you may include it under |
| 9461 | # the same distribution terms that you use for the rest of that program. |
| 9462 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9463 | # A sed program that does not truncate output. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9464 | SED=$lt_SED |
| 9465 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9466 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9467 | Xsed="$SED -e 1s/^X//" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9468 | |
| 9469 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 9470 | # if CDPATH is set. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9471 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9472 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9473 | # The names of the tagged configurations supported by this script. |
| 9474 | available_tags= |
| 9475 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9476 | # ### BEGIN LIBTOOL CONFIG |
| 9477 | |
| 9478 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 9479 | |
| 9480 | # Shell to use when invoking shell scripts. |
| 9481 | SHELL=$lt_SHELL |
| 9482 | |
| 9483 | # Whether or not to build shared libraries. |
| 9484 | build_libtool_libs=$enable_shared |
| 9485 | |
| 9486 | # Whether or not to build static libraries. |
| 9487 | build_old_libs=$enable_static |
| 9488 | |
| 9489 | # Whether or not to add -lc for building shared libraries. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9490 | build_libtool_need_lc=$archive_cmds_need_lc |
| 9491 | |
| 9492 | # Whether or not to disallow shared libs when runtime libs are static |
| 9493 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9494 | |
| 9495 | # Whether or not to optimize for fast installation. |
| 9496 | fast_install=$enable_fast_install |
| 9497 | |
| 9498 | # The host system. |
| 9499 | host_alias=$host_alias |
| 9500 | host=$host |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9501 | host_os=$host_os |
| 9502 | |
| 9503 | # The build system. |
| 9504 | build_alias=$build_alias |
| 9505 | build=$build |
| 9506 | build_os=$build_os |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9507 | |
| 9508 | # An echo program that does not interpret backslashes. |
| 9509 | echo=$lt_echo |
| 9510 | |
| 9511 | # The archiver. |
| 9512 | AR=$lt_AR |
| 9513 | AR_FLAGS=$lt_AR_FLAGS |
| 9514 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9515 | # A C compiler. |
| 9516 | LTCC=$lt_LTCC |
| 9517 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9518 | # LTCC compiler flags. |
| 9519 | LTCFLAGS=$lt_LTCFLAGS |
| 9520 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9521 | # A language-specific compiler. |
| 9522 | CC=$lt_compiler |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9523 | |
| 9524 | # Is the compiler the GNU C compiler? |
| 9525 | with_gcc=$GCC |
| 9526 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9527 | # An ERE matcher. |
| 9528 | EGREP=$lt_EGREP |
| 9529 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9530 | # The linker used to build libraries. |
| 9531 | LD=$lt_LD |
| 9532 | |
| 9533 | # Whether we need hard or soft links. |
| 9534 | LN_S=$lt_LN_S |
| 9535 | |
| 9536 | # A BSD-compatible nm program. |
| 9537 | NM=$lt_NM |
| 9538 | |
| 9539 | # A symbol stripping program |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9540 | STRIP=$lt_STRIP |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9541 | |
| 9542 | # Used to examine libraries when file_magic_cmd begins "file" |
| 9543 | MAGIC_CMD=$MAGIC_CMD |
| 9544 | |
| 9545 | # Used on cygwin: DLL creation program. |
| 9546 | DLLTOOL="$DLLTOOL" |
| 9547 | |
| 9548 | # Used on cygwin: object dumper. |
| 9549 | OBJDUMP="$OBJDUMP" |
| 9550 | |
| 9551 | # Used on cygwin: assembler. |
| 9552 | AS="$AS" |
| 9553 | |
| 9554 | # The name of the directory that contains temporary libtool files. |
| 9555 | objdir=$objdir |
| 9556 | |
| 9557 | # How to create reloadable object files. |
| 9558 | reload_flag=$lt_reload_flag |
| 9559 | reload_cmds=$lt_reload_cmds |
| 9560 | |
| 9561 | # How to pass a linker flag through the compiler. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9562 | wl=$lt_lt_prog_compiler_wl |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9563 | |
| 9564 | # Object file suffix (normally "o"). |
| 9565 | objext="$ac_objext" |
| 9566 | |
| 9567 | # Old archive suffix (normally "a"). |
| 9568 | libext="$libext" |
| 9569 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9570 | # Shared library suffix (normally ".so"). |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9571 | shrext_cmds='$shrext_cmds' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9572 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9573 | # Executable file suffix (normally ""). |
| 9574 | exeext="$exeext" |
| 9575 | |
| 9576 | # Additional compiler flags for building library objects. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9577 | pic_flag=$lt_lt_prog_compiler_pic |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9578 | pic_mode=$pic_mode |
| 9579 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9580 | # What is the maximum length of a command? |
| 9581 | max_cmd_len=$lt_cv_sys_max_cmd_len |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9582 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9583 | # Does compiler simultaneously support -c and -o options? |
| 9584 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9585 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9586 | # Must we lock files when doing compilation? |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9587 | need_locks=$lt_need_locks |
| 9588 | |
| 9589 | # Do we need the lib prefix for modules? |
| 9590 | need_lib_prefix=$need_lib_prefix |
| 9591 | |
| 9592 | # Do we need a version for libraries? |
| 9593 | need_version=$need_version |
| 9594 | |
| 9595 | # Whether dlopen is supported. |
| 9596 | dlopen_support=$enable_dlopen |
| 9597 | |
| 9598 | # Whether dlopen of programs is supported. |
| 9599 | dlopen_self=$enable_dlopen_self |
| 9600 | |
| 9601 | # Whether dlopen of statically linked programs is supported. |
| 9602 | dlopen_self_static=$enable_dlopen_self_static |
| 9603 | |
| 9604 | # Compiler flag to prevent dynamic linking. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9605 | link_static_flag=$lt_lt_prog_compiler_static |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9606 | |
| 9607 | # Compiler flag to turn off builtin functions. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9608 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9609 | |
| 9610 | # Compiler flag to allow reflexive dlopens. |
| 9611 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 9612 | |
| 9613 | # Compiler flag to generate shared objects directly from archives. |
| 9614 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 9615 | |
| 9616 | # Compiler flag to generate thread-safe objects. |
| 9617 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 9618 | |
| 9619 | # Library versioning type. |
| 9620 | version_type=$version_type |
| 9621 | |
| 9622 | # Format of library name prefix. |
| 9623 | libname_spec=$lt_libname_spec |
| 9624 | |
| 9625 | # List of archive names. First name is the real one, the rest are links. |
| 9626 | # The last name is the one that the linker finds with -lNAME. |
| 9627 | library_names_spec=$lt_library_names_spec |
| 9628 | |
| 9629 | # The coded name of the library, if different from the real name. |
| 9630 | soname_spec=$lt_soname_spec |
| 9631 | |
| 9632 | # Commands used to build and install an old-style archive. |
| 9633 | RANLIB=$lt_RANLIB |
| 9634 | old_archive_cmds=$lt_old_archive_cmds |
| 9635 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 9636 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 9637 | |
| 9638 | # Create an old-style archive from a shared archive. |
| 9639 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 9640 | |
| 9641 | # Create a temporary old-style archive to link instead of a shared archive. |
| 9642 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 9643 | |
| 9644 | # Commands used to build and install a shared archive. |
| 9645 | archive_cmds=$lt_archive_cmds |
| 9646 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 9647 | postinstall_cmds=$lt_postinstall_cmds |
| 9648 | postuninstall_cmds=$lt_postuninstall_cmds |
| 9649 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9650 | # Commands used to build a loadable module (assumed same as above if empty) |
| 9651 | module_cmds=$lt_module_cmds |
| 9652 | module_expsym_cmds=$lt_module_expsym_cmds |
| 9653 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9654 | # Commands to strip libraries. |
| 9655 | old_striplib=$lt_old_striplib |
| 9656 | striplib=$lt_striplib |
| 9657 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9658 | # Dependencies to place before the objects being linked to create a |
| 9659 | # shared library. |
| 9660 | predep_objects=$lt_predep_objects |
| 9661 | |
| 9662 | # Dependencies to place after the objects being linked to create a |
| 9663 | # shared library. |
| 9664 | postdep_objects=$lt_postdep_objects |
| 9665 | |
| 9666 | # Dependencies to place before the objects being linked to create a |
| 9667 | # shared library. |
| 9668 | predeps=$lt_predeps |
| 9669 | |
| 9670 | # Dependencies to place after the objects being linked to create a |
| 9671 | # shared library. |
| 9672 | postdeps=$lt_postdeps |
| 9673 | |
| 9674 | # The library search path used internally by the compiler when linking |
| 9675 | # a shared library. |
| 9676 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 9677 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9678 | # Method to check whether dependent libraries are shared objects. |
| 9679 | deplibs_check_method=$lt_deplibs_check_method |
| 9680 | |
| 9681 | # Command to use when deplibs_check_method == file_magic. |
| 9682 | file_magic_cmd=$lt_file_magic_cmd |
| 9683 | |
| 9684 | # Flag that allows shared libraries with undefined symbols to be built. |
| 9685 | allow_undefined_flag=$lt_allow_undefined_flag |
| 9686 | |
| 9687 | # Flag that forces no undefined symbols. |
| 9688 | no_undefined_flag=$lt_no_undefined_flag |
| 9689 | |
| 9690 | # Commands used to finish a libtool library installation in a directory. |
| 9691 | finish_cmds=$lt_finish_cmds |
| 9692 | |
| 9693 | # Same as above, but a single script fragment to be evaled but not shown. |
| 9694 | finish_eval=$lt_finish_eval |
| 9695 | |
| 9696 | # Take the output of nm and produce a listing of raw symbols and C names. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9697 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9698 | |
| 9699 | # Transform the output of nm in a proper C declaration |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9700 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9701 | |
| 9702 | # Transform the output of nm in a C name address pair |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9703 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9704 | |
| 9705 | # This is the shared library runtime path variable. |
| 9706 | runpath_var=$runpath_var |
| 9707 | |
| 9708 | # This is the shared library path variable. |
| 9709 | shlibpath_var=$shlibpath_var |
| 9710 | |
| 9711 | # Is shlibpath searched before the hard-coded library search path? |
| 9712 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 9713 | |
| 9714 | # How to hardcode a shared library path into an executable. |
| 9715 | hardcode_action=$hardcode_action |
| 9716 | |
| 9717 | # Whether we should hardcode library paths into libraries. |
| 9718 | hardcode_into_libs=$hardcode_into_libs |
| 9719 | |
| 9720 | # Flag to hardcode \$libdir into a binary during linking. |
| 9721 | # This must work even if \$libdir does not exist. |
| 9722 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 9723 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9724 | # If ld is used when linking, flag to hardcode \$libdir into |
| 9725 | # a binary during linking. This must work even if \$libdir does |
| 9726 | # not exist. |
| 9727 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 9728 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9729 | # Whether we need a single -rpath flag with a separated argument. |
| 9730 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 9731 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9732 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9733 | # resulting binary. |
| 9734 | hardcode_direct=$hardcode_direct |
| 9735 | |
| 9736 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 9737 | # resulting binary. |
| 9738 | hardcode_minus_L=$hardcode_minus_L |
| 9739 | |
| 9740 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 9741 | # the resulting binary. |
| 9742 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 9743 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9744 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 9745 | # and all subsequent libraries and executables linked against it. |
| 9746 | hardcode_automatic=$hardcode_automatic |
| 9747 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9748 | # Variables whose values should be saved in libtool wrapper scripts and |
| 9749 | # restored at relink time. |
| 9750 | variables_saved_for_relink="$variables_saved_for_relink" |
| 9751 | |
| 9752 | # Whether libtool must link a program against all its dependency libraries. |
| 9753 | link_all_deplibs=$link_all_deplibs |
| 9754 | |
| 9755 | # Compile-time system search path for libraries |
| 9756 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 9757 | |
| 9758 | # Run-time system search path for libraries |
| 9759 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 9760 | |
| 9761 | # Fix the shell variable \$srcfile for the compiler. |
| 9762 | fix_srcfile_path="$fix_srcfile_path" |
| 9763 | |
| 9764 | # Set to yes if exported symbols are required. |
| 9765 | always_export_symbols=$always_export_symbols |
| 9766 | |
| 9767 | # The commands to list exported symbols. |
| 9768 | export_symbols_cmds=$lt_export_symbols_cmds |
| 9769 | |
| 9770 | # The commands to extract the exported symbol list from a shared archive. |
| 9771 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 9772 | |
| 9773 | # Symbols that should not be listed in the preloaded symbols. |
| 9774 | exclude_expsyms=$lt_exclude_expsyms |
| 9775 | |
| 9776 | # Symbols that must always be exported. |
| 9777 | include_expsyms=$lt_include_expsyms |
| 9778 | |
| 9779 | # ### END LIBTOOL CONFIG |
| 9780 | |
| 9781 | __EOF__ |
| 9782 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9783 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9784 | case $host_os in |
| 9785 | aix3*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9786 | cat <<\EOF >> "$cfgfile" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9787 | |
| 9788 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 9789 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 9790 | # vanish in a puff of smoke. |
| 9791 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 9792 | COLLECT_NAMES= |
| 9793 | export COLLECT_NAMES |
| 9794 | fi |
| 9795 | EOF |
| 9796 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9797 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9798 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9799 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 9800 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 9801 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 9802 | # is reportedly fixed, but why not run on old versions too? |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9803 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9804 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9805 | mv -f "$cfgfile" "$ofile" || \ |
| 9806 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9807 | chmod +x "$ofile" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9808 | |
| 9809 | else |
| 9810 | # If there is no Makefile yet, we rely on a make rule to execute |
| 9811 | # `config.status --recheck' to rerun these tests and create the |
| 9812 | # libtool script then. |
| 9813 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 9814 | if test -f "$ltmain_in"; then |
| 9815 | test -f Makefile && make "$ltmain" |
| 9816 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9817 | fi |
| 9818 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9819 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9820 | ac_ext=c |
| 9821 | ac_cpp='$CPP $CPPFLAGS' |
| 9822 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9823 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9824 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9825 | |
| 9826 | CC="$lt_save_CC" |
| 9827 | |
| 9828 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 9829 | # Check whether --with-tags was given. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9830 | if test "${with_tags+set}" = set; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 9831 | withval=$with_tags; tagnames="$withval" |
| 9832 | fi |
| 9833 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9834 | |
| 9835 | if test -f "$ltmain" && test -n "$tagnames"; then |
| 9836 | if test ! -f "${ofile}"; then |
| 9837 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
| 9838 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
| 9839 | fi |
| 9840 | |
| 9841 | if test -z "$LTCC"; then |
| 9842 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
| 9843 | if test -z "$LTCC"; then |
| 9844 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
| 9845 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
| 9846 | else |
| 9847 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
| 9848 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
| 9849 | fi |
| 9850 | fi |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9851 | if test -z "$LTCFLAGS"; then |
| 9852 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
| 9853 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9854 | |
| 9855 | # Extract list of available tagged configurations in $ofile. |
| 9856 | # Note that this assumes the entire list is on one line. |
| 9857 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
| 9858 | |
| 9859 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 9860 | for tagname in $tagnames; do |
| 9861 | IFS="$lt_save_ifs" |
| 9862 | # Check whether tagname contains only valid characters |
| 9863 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
| 9864 | "") ;; |
| 9865 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
| 9866 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
| 9867 | { (exit 1); exit 1; }; } |
| 9868 | ;; |
| 9869 | esac |
| 9870 | |
| 9871 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
| 9872 | then |
| 9873 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
| 9874 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
| 9875 | { (exit 1); exit 1; }; } |
| 9876 | fi |
| 9877 | |
| 9878 | # Update the list of available tags. |
| 9879 | if test -n "$tagname"; then |
| 9880 | echo appending configuration tag \"$tagname\" to $ofile |
| 9881 | |
| 9882 | case $tagname in |
| 9883 | CXX) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9884 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 9885 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 9886 | (test "X$CXX" != "Xg++"))) ; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 9887 | ac_ext=cpp |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9888 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 9889 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9890 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9891 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 9892 | |
| 9893 | |
| 9894 | |
| 9895 | |
| 9896 | archive_cmds_need_lc_CXX=no |
| 9897 | allow_undefined_flag_CXX= |
| 9898 | always_export_symbols_CXX=no |
| 9899 | archive_expsym_cmds_CXX= |
| 9900 | export_dynamic_flag_spec_CXX= |
| 9901 | hardcode_direct_CXX=no |
| 9902 | hardcode_libdir_flag_spec_CXX= |
| 9903 | hardcode_libdir_flag_spec_ld_CXX= |
| 9904 | hardcode_libdir_separator_CXX= |
| 9905 | hardcode_minus_L_CXX=no |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9906 | hardcode_shlibpath_var_CXX=unsupported |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9907 | hardcode_automatic_CXX=no |
| 9908 | module_cmds_CXX= |
| 9909 | module_expsym_cmds_CXX= |
| 9910 | link_all_deplibs_CXX=unknown |
| 9911 | old_archive_cmds_CXX=$old_archive_cmds |
| 9912 | no_undefined_flag_CXX= |
| 9913 | whole_archive_flag_spec_CXX= |
| 9914 | enable_shared_with_static_runtimes_CXX=no |
| 9915 | |
| 9916 | # Dependencies to place before and after the object being linked: |
| 9917 | predep_objects_CXX= |
| 9918 | postdep_objects_CXX= |
| 9919 | predeps_CXX= |
| 9920 | postdeps_CXX= |
| 9921 | compiler_lib_search_path_CXX= |
| 9922 | |
| 9923 | # Source file extension for C++ test sources. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9924 | ac_ext=cpp |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9925 | |
| 9926 | # Object file extension for compiled C++ test sources. |
| 9927 | objext=o |
| 9928 | objext_CXX=$objext |
| 9929 | |
| 9930 | # Code to be used in simple compile tests |
| 9931 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 9932 | |
| 9933 | # Code to be used in simple link tests |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9934 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9935 | |
| 9936 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 9937 | |
| 9938 | # If no C compiler was specified, use CC. |
| 9939 | LTCC=${LTCC-"$CC"} |
| 9940 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9941 | # If no C compiler flags were specified, use CFLAGS. |
| 9942 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 9943 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9944 | # Allow CC to be a program name with arguments. |
| 9945 | compiler=$CC |
| 9946 | |
| 9947 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9948 | # save warnings/boilerplate of simple test code |
| 9949 | ac_outfile=conftest.$ac_objext |
| 9950 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 9951 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 9952 | _lt_compiler_boilerplate=`cat conftest.err` |
| 9953 | $rm conftest* |
| 9954 | |
| 9955 | ac_outfile=conftest.$ac_objext |
| 9956 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 9957 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 9958 | _lt_linker_boilerplate=`cat conftest.err` |
| 9959 | $rm conftest* |
| 9960 | |
| 9961 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9962 | # Allow CC to be a program name with arguments. |
| 9963 | lt_save_CC=$CC |
| 9964 | lt_save_LD=$LD |
| 9965 | lt_save_GCC=$GCC |
| 9966 | GCC=$GXX |
| 9967 | lt_save_with_gnu_ld=$with_gnu_ld |
| 9968 | lt_save_path_LD=$lt_cv_path_LD |
| 9969 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 9970 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 9971 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9972 | $as_unset lt_cv_prog_gnu_ld |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9973 | fi |
| 9974 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 9975 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 9976 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9977 | $as_unset lt_cv_path_LD |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9978 | fi |
| 9979 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 9980 | CC=${CXX-"c++"} |
| 9981 | compiler=$CC |
| 9982 | compiler_CXX=$CC |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9983 | for cc_temp in $compiler""; do |
| 9984 | case $cc_temp in |
| 9985 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 9986 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 9987 | \-*) ;; |
| 9988 | *) break;; |
| 9989 | esac |
| 9990 | done |
| 9991 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 9992 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9993 | |
| 9994 | # We don't want -fno-exception wen compiling C++ code, so set the |
| 9995 | # no_builtin_flag separately |
| 9996 | if test "$GXX" = yes; then |
| 9997 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 9998 | else |
| 9999 | lt_prog_compiler_no_builtin_flag_CXX= |
| 10000 | fi |
| 10001 | |
| 10002 | if test "$GXX" = yes; then |
| 10003 | # Set up default GNU C++ configuration |
| 10004 | |
| 10005 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 10006 | # Check whether --with-gnu-ld was given. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10007 | if test "${with_gnu_ld+set}" = set; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 10008 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10009 | else |
| 10010 | with_gnu_ld=no |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 10011 | fi |
| 10012 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10013 | ac_prog=ld |
| 10014 | if test "$GCC" = yes; then |
| 10015 | # Check if gcc -print-prog-name=ld gives a path. |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 10016 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 10017 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10018 | case $host in |
| 10019 | *-*-mingw*) |
| 10020 | # gcc leaves a trailing carriage return which upsets mingw |
| 10021 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 10022 | *) |
| 10023 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 10024 | esac |
| 10025 | case $ac_prog in |
| 10026 | # Accept absolute paths. |
| 10027 | [\\/]* | ?:[\\/]*) |
| 10028 | re_direlt='/[^/][^/]*/\.\./' |
| 10029 | # Canonicalize the pathname of ld |
| 10030 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 10031 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 10032 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 10033 | done |
| 10034 | test -z "$LD" && LD="$ac_prog" |
| 10035 | ;; |
| 10036 | "") |
| 10037 | # If it fails, then pretend we aren't using GCC. |
| 10038 | ac_prog=ld |
| 10039 | ;; |
| 10040 | *) |
| 10041 | # If it is relative, then search for the first ld in PATH. |
| 10042 | with_gnu_ld=unknown |
| 10043 | ;; |
| 10044 | esac |
| 10045 | elif test "$with_gnu_ld" = yes; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 10046 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 10047 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10048 | else |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 10049 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 10050 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10051 | fi |
| 10052 | if test "${lt_cv_path_LD+set}" = set; then |
| 10053 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10054 | else |
| 10055 | if test -z "$LD"; then |
| 10056 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 10057 | for ac_dir in $PATH; do |
| 10058 | IFS="$lt_save_ifs" |
| 10059 | test -z "$ac_dir" && ac_dir=. |
| 10060 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 10061 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 10062 | # Check to see if the program is GNU ld. I'd rather use --version, |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10063 | # but apparently some variants of GNU ld only accept -v. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10064 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 10065 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 10066 | *GNU* | *'with BFD'*) |
| 10067 | test "$with_gnu_ld" != no && break |
| 10068 | ;; |
| 10069 | *) |
| 10070 | test "$with_gnu_ld" != yes && break |
| 10071 | ;; |
| 10072 | esac |
| 10073 | fi |
| 10074 | done |
| 10075 | IFS="$lt_save_ifs" |
| 10076 | else |
| 10077 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 10078 | fi |
| 10079 | fi |
| 10080 | |
| 10081 | LD="$lt_cv_path_LD" |
| 10082 | if test -n "$LD"; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 10083 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 10084 | echo "${ECHO_T}$LD" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10085 | else |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 10086 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10087 | echo "${ECHO_T}no" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10088 | fi |
| 10089 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 10090 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 10091 | { (exit 1); exit 1; }; } |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 10092 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 10093 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10094 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 10095 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10096 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10097 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10098 | case `$LD -v 2>&1 </dev/null` in |
| 10099 | *GNU* | *'with BFD'*) |
| 10100 | lt_cv_prog_gnu_ld=yes |
| 10101 | ;; |
| 10102 | *) |
| 10103 | lt_cv_prog_gnu_ld=no |
| 10104 | ;; |
| 10105 | esac |
| 10106 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 10107 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 10108 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10109 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 10110 | |
| 10111 | |
| 10112 | |
| 10113 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 10114 | # archiving commands below assume that GNU ld is being used. |
| 10115 | if test "$with_gnu_ld" = yes; then |
| 10116 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 10117 | 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' |
| 10118 | |
| 10119 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 10120 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 10121 | |
| 10122 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 10123 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 10124 | # investigate it a little bit more. (MM) |
| 10125 | wlarc='${wl}' |
| 10126 | |
| 10127 | # ancient GNU ld didn't support --whole-archive et. al. |
| 10128 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
| 10129 | grep 'no-whole-archive' > /dev/null; then |
| 10130 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 10131 | else |
| 10132 | whole_archive_flag_spec_CXX= |
| 10133 | fi |
| 10134 | else |
| 10135 | with_gnu_ld=no |
| 10136 | wlarc= |
| 10137 | |
| 10138 | # A generic and very simple default shared library creation |
| 10139 | # command for GNU C++ for the case where it uses the native |
| 10140 | # linker, instead of GNU ld. If possible, this setting should |
| 10141 | # overridden to take advantage of the native linker features on |
| 10142 | # the platform it is being used on. |
| 10143 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 10144 | fi |
| 10145 | |
| 10146 | # Commands to make compiler produce verbose output that lists |
| 10147 | # what "hidden" libraries, object files and flags are used when |
| 10148 | # linking a shared library. |
| 10149 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 10150 | |
| 10151 | else |
| 10152 | GXX=no |
| 10153 | with_gnu_ld=no |
| 10154 | wlarc= |
| 10155 | fi |
| 10156 | |
| 10157 | # PORTME: fill in a description of your system's C++ link characteristics |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 10158 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 10159 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10160 | ld_shlibs_CXX=yes |
| 10161 | case $host_os in |
| 10162 | aix3*) |
| 10163 | # FIXME: insert proper C++ library support |
| 10164 | ld_shlibs_CXX=no |
| 10165 | ;; |
| 10166 | aix4* | aix5*) |
| 10167 | if test "$host_cpu" = ia64; then |
| 10168 | # On IA64, the linker does run time linking by default, so we don't |
| 10169 | # have to do anything special. |
| 10170 | aix_use_runtimelinking=no |
| 10171 | exp_sym_flag='-Bexport' |
| 10172 | no_entry_flag="" |
| 10173 | else |
| 10174 | aix_use_runtimelinking=no |
| 10175 | |
| 10176 | # Test if we are trying to use run time linking or normal |
| 10177 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 10178 | # need to do runtime linking. |
| 10179 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 10180 | for ld_flag in $LDFLAGS; do |
| 10181 | case $ld_flag in |
| 10182 | *-brtl*) |
| 10183 | aix_use_runtimelinking=yes |
| 10184 | break |
| 10185 | ;; |
| 10186 | esac |
| 10187 | done |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10188 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10189 | esac |
| 10190 | |
| 10191 | exp_sym_flag='-bexport' |
| 10192 | no_entry_flag='-bnoentry' |
| 10193 | fi |
| 10194 | |
| 10195 | # When large executables or shared objects are built, AIX ld can |
| 10196 | # have problems creating the table of contents. If linking a library |
| 10197 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 10198 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 10199 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 10200 | |
| 10201 | archive_cmds_CXX='' |
| 10202 | hardcode_direct_CXX=yes |
| 10203 | hardcode_libdir_separator_CXX=':' |
| 10204 | link_all_deplibs_CXX=yes |
| 10205 | |
| 10206 | if test "$GXX" = yes; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10207 | case $host_os in aix4.[012]|aix4.[012].*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10208 | # We only want to do this on AIX 4.2 and lower, the check |
| 10209 | # below for broken collect2 doesn't work under 4.3+ |
| 10210 | collect2name=`${CC} -print-prog-name=collect2` |
| 10211 | if test -f "$collect2name" && \ |
| 10212 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 10213 | then |
| 10214 | # We have reworked collect2 |
| 10215 | hardcode_direct_CXX=yes |
| 10216 | else |
| 10217 | # We have old collect2 |
| 10218 | hardcode_direct_CXX=unsupported |
| 10219 | # It fails to find uninstalled libraries when the uninstalled |
| 10220 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 10221 | # to unsupported forces relinking |
| 10222 | hardcode_minus_L_CXX=yes |
| 10223 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 10224 | hardcode_libdir_separator_CXX= |
| 10225 | fi |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10226 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10227 | esac |
| 10228 | shared_flag='-shared' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10229 | if test "$aix_use_runtimelinking" = yes; then |
| 10230 | shared_flag="$shared_flag "'${wl}-G' |
| 10231 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10232 | else |
| 10233 | # not using gcc |
| 10234 | if test "$host_cpu" = ia64; then |
| 10235 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 10236 | # chokes on -Wl,-G. The following line is correct: |
| 10237 | shared_flag='-G' |
| 10238 | else |
| 10239 | if test "$aix_use_runtimelinking" = yes; then |
| 10240 | shared_flag='${wl}-G' |
| 10241 | else |
| 10242 | shared_flag='${wl}-bM:SRE' |
| 10243 | fi |
| 10244 | fi |
| 10245 | fi |
| 10246 | |
| 10247 | # It seems that -bexpall does not export symbols beginning with |
| 10248 | # underscore (_), so it is better to generate a list of symbols to export. |
| 10249 | always_export_symbols_CXX=yes |
| 10250 | if test "$aix_use_runtimelinking" = yes; then |
| 10251 | # Warning - without using the other runtime loading flags (-brtl), |
| 10252 | # -berok will link without error, but may produce a broken library. |
| 10253 | allow_undefined_flag_CXX='-berok' |
| 10254 | # Determine the default libpath from the value encoded in an empty executable. |
| 10255 | cat >conftest.$ac_ext <<_ACEOF |
| 10256 | /* confdefs.h. */ |
| 10257 | _ACEOF |
| 10258 | cat confdefs.h >>conftest.$ac_ext |
| 10259 | cat >>conftest.$ac_ext <<_ACEOF |
| 10260 | /* end confdefs.h. */ |
| 10261 | |
| 10262 | int |
| 10263 | main () |
| 10264 | { |
| 10265 | |
| 10266 | ; |
| 10267 | return 0; |
| 10268 | } |
| 10269 | _ACEOF |
| 10270 | rm -f conftest.$ac_objext conftest$ac_exeext |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 10271 | if { (ac_try="$ac_link" |
| 10272 | case "(($ac_try" in |
| 10273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10274 | *) ac_try_echo=$ac_try;; |
| 10275 | esac |
| 10276 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10277 | (eval "$ac_link") 2>conftest.er1 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10278 | ac_status=$? |
| 10279 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10280 | rm -f conftest.er1 |
| 10281 | cat conftest.err >&5 |
| 10282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 10283 | (exit $ac_status); } && { |
| 10284 | test -z "$ac_cxx_werror_flag" || |
| 10285 | test ! -s conftest.err |
| 10286 | } && test -s conftest$ac_exeext && |
| 10287 | $as_test_x conftest$ac_exeext; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10288 | |
| 10289 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 10290 | }'` |
| 10291 | # Check for a 64-bit object if we didn't find anything. |
| 10292 | 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; } |
| 10293 | }'`; fi |
| 10294 | else |
| 10295 | echo "$as_me: failed program was:" >&5 |
| 10296 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10297 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 10298 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10299 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 10300 | |
| 10301 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10302 | conftest$ac_exeext conftest.$ac_ext |
| 10303 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 10304 | |
| 10305 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 10306 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10307 | 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" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10308 | else |
| 10309 | if test "$host_cpu" = ia64; then |
| 10310 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 10311 | allow_undefined_flag_CXX="-z nodefs" |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10312 | 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" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10313 | else |
| 10314 | # Determine the default libpath from the value encoded in an empty executable. |
| 10315 | cat >conftest.$ac_ext <<_ACEOF |
| 10316 | /* confdefs.h. */ |
| 10317 | _ACEOF |
| 10318 | cat confdefs.h >>conftest.$ac_ext |
| 10319 | cat >>conftest.$ac_ext <<_ACEOF |
| 10320 | /* end confdefs.h. */ |
| 10321 | |
| 10322 | int |
| 10323 | main () |
| 10324 | { |
| 10325 | |
| 10326 | ; |
| 10327 | return 0; |
| 10328 | } |
| 10329 | _ACEOF |
| 10330 | rm -f conftest.$ac_objext conftest$ac_exeext |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 10331 | if { (ac_try="$ac_link" |
| 10332 | case "(($ac_try" in |
| 10333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10334 | *) ac_try_echo=$ac_try;; |
| 10335 | esac |
| 10336 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10337 | (eval "$ac_link") 2>conftest.er1 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10338 | ac_status=$? |
| 10339 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10340 | rm -f conftest.er1 |
| 10341 | cat conftest.err >&5 |
| 10342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 10343 | (exit $ac_status); } && { |
| 10344 | test -z "$ac_cxx_werror_flag" || |
| 10345 | test ! -s conftest.err |
| 10346 | } && test -s conftest$ac_exeext && |
| 10347 | $as_test_x conftest$ac_exeext; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10348 | |
| 10349 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 10350 | }'` |
| 10351 | # Check for a 64-bit object if we didn't find anything. |
| 10352 | 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; } |
| 10353 | }'`; fi |
| 10354 | else |
| 10355 | echo "$as_me: failed program was:" >&5 |
| 10356 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10357 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 10358 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10359 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 10360 | |
| 10361 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10362 | conftest$ac_exeext conftest.$ac_ext |
| 10363 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 10364 | |
| 10365 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 10366 | # Warning - without using the other run time loading flags, |
| 10367 | # -berok will link without error, but may produce a broken library. |
| 10368 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 10369 | allow_undefined_flag_CXX=' ${wl}-berok' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10370 | # Exported symbols can be pulled into shared objects from archives |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10371 | whole_archive_flag_spec_CXX='$convenience' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10372 | archive_cmds_need_lc_CXX=yes |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10373 | # This is similar to how AIX traditionally builds its shared libraries. |
| 10374 | 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' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10375 | fi |
| 10376 | fi |
| 10377 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10378 | |
| 10379 | beos*) |
| 10380 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 10381 | allow_undefined_flag_CXX=unsupported |
| 10382 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 10383 | # support --undefined. This deserves some investigation. FIXME |
| 10384 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 10385 | else |
| 10386 | ld_shlibs_CXX=no |
| 10387 | fi |
| 10388 | ;; |
| 10389 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10390 | chorus*) |
| 10391 | case $cc_basename in |
| 10392 | *) |
| 10393 | # FIXME: insert proper C++ library support |
| 10394 | ld_shlibs_CXX=no |
| 10395 | ;; |
| 10396 | esac |
| 10397 | ;; |
| 10398 | |
| 10399 | cygwin* | mingw* | pw32*) |
| 10400 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 10401 | # as there is no search path for DLLs. |
| 10402 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 10403 | allow_undefined_flag_CXX=unsupported |
| 10404 | always_export_symbols_CXX=no |
| 10405 | enable_shared_with_static_runtimes_CXX=yes |
| 10406 | |
| 10407 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10408 | 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' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10409 | # If the export-symbols file already is a .def file (1st line |
| 10410 | # is EXPORTS), use it as is; otherwise, prepend... |
| 10411 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 10412 | cp $export_symbols $output_objdir/$soname.def; |
| 10413 | else |
| 10414 | echo EXPORTS > $output_objdir/$soname.def; |
| 10415 | cat $export_symbols >> $output_objdir/$soname.def; |
| 10416 | fi~ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10417 | $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' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10418 | else |
| 10419 | ld_shlibs_CXX=no |
| 10420 | fi |
| 10421 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10422 | darwin* | rhapsody*) |
| 10423 | case $host_os in |
| 10424 | rhapsody* | darwin1.[012]) |
| 10425 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
| 10426 | ;; |
| 10427 | *) # Darwin 1.3 on |
| 10428 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 10429 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 10430 | else |
| 10431 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 10432 | 10.[012]) |
| 10433 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 10434 | ;; |
| 10435 | 10.*) |
| 10436 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
| 10437 | ;; |
| 10438 | esac |
| 10439 | fi |
| 10440 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10441 | esac |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10442 | archive_cmds_need_lc_CXX=no |
| 10443 | hardcode_direct_CXX=no |
| 10444 | hardcode_automatic_CXX=yes |
| 10445 | hardcode_shlibpath_var_CXX=unsupported |
| 10446 | whole_archive_flag_spec_CXX='' |
| 10447 | link_all_deplibs_CXX=yes |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10448 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10449 | if test "$GXX" = yes ; then |
| 10450 | lt_int_apple_cc_single_mod=no |
| 10451 | output_verbose_link_cmd='echo' |
| 10452 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
| 10453 | lt_int_apple_cc_single_mod=yes |
| 10454 | fi |
| 10455 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 10456 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 10457 | else |
| 10458 | 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' |
| 10459 | fi |
| 10460 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 10461 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 10462 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 10463 | 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}' |
| 10464 | else |
| 10465 | 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}' |
| 10466 | fi |
| 10467 | 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}' |
| 10468 | else |
| 10469 | case $cc_basename in |
| 10470 | xlc*) |
| 10471 | output_verbose_link_cmd='echo' |
| 10472 | 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' |
| 10473 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 10474 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 10475 | 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}' |
| 10476 | 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}' |
| 10477 | ;; |
| 10478 | *) |
| 10479 | ld_shlibs_CXX=no |
| 10480 | ;; |
| 10481 | esac |
| 10482 | fi |
| 10483 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10484 | |
| 10485 | dgux*) |
| 10486 | case $cc_basename in |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10487 | ec++*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10488 | # FIXME: insert proper C++ library support |
| 10489 | ld_shlibs_CXX=no |
| 10490 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10491 | ghcx*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10492 | # Green Hills C++ Compiler |
| 10493 | # FIXME: insert proper C++ library support |
| 10494 | ld_shlibs_CXX=no |
| 10495 | ;; |
| 10496 | *) |
| 10497 | # FIXME: insert proper C++ library support |
| 10498 | ld_shlibs_CXX=no |
| 10499 | ;; |
| 10500 | esac |
| 10501 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10502 | freebsd[12]*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10503 | # C++ shared libraries reported to be fairly broken before switch to ELF |
| 10504 | ld_shlibs_CXX=no |
| 10505 | ;; |
| 10506 | freebsd-elf*) |
| 10507 | archive_cmds_need_lc_CXX=no |
| 10508 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10509 | freebsd* | kfreebsd*-gnu | dragonfly*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10510 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 10511 | # conventions |
| 10512 | ld_shlibs_CXX=yes |
| 10513 | ;; |
| 10514 | gnu*) |
| 10515 | ;; |
| 10516 | hpux9*) |
| 10517 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 10518 | hardcode_libdir_separator_CXX=: |
| 10519 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 10520 | hardcode_direct_CXX=yes |
| 10521 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 10522 | # but as the default |
| 10523 | # location of the library. |
| 10524 | |
| 10525 | case $cc_basename in |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10526 | CC*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10527 | # FIXME: insert proper C++ library support |
| 10528 | ld_shlibs_CXX=no |
| 10529 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10530 | aCC*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10531 | 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' |
| 10532 | # Commands to make compiler produce verbose output that lists |
| 10533 | # what "hidden" libraries, object files and flags are used when |
| 10534 | # linking a shared library. |
| 10535 | # |
| 10536 | # There doesn't appear to be a way to prevent this compiler from |
| 10537 | # explicitly linking system object files so we need to strip them |
| 10538 | # from the output so that they don't get included in the library |
| 10539 | # dependencies. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10540 | 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' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10541 | ;; |
| 10542 | *) |
| 10543 | if test "$GXX" = yes; then |
| 10544 | 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' |
| 10545 | else |
| 10546 | # FIXME: insert proper C++ library support |
| 10547 | ld_shlibs_CXX=no |
| 10548 | fi |
| 10549 | ;; |
| 10550 | esac |
| 10551 | ;; |
| 10552 | hpux10*|hpux11*) |
| 10553 | if test $with_gnu_ld = no; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10554 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 10555 | hardcode_libdir_separator_CXX=: |
| 10556 | |
| 10557 | case $host_cpu in |
| 10558 | hppa*64*|ia64*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10559 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10560 | ;; |
| 10561 | *) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10562 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 10563 | ;; |
| 10564 | esac |
| 10565 | fi |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10566 | case $host_cpu in |
| 10567 | hppa*64*|ia64*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10568 | hardcode_direct_CXX=no |
| 10569 | hardcode_shlibpath_var_CXX=no |
| 10570 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10571 | *) |
| 10572 | hardcode_direct_CXX=yes |
| 10573 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 10574 | # but as the default |
| 10575 | # location of the library. |
| 10576 | ;; |
| 10577 | esac |
| 10578 | |
| 10579 | case $cc_basename in |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10580 | CC*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10581 | # FIXME: insert proper C++ library support |
| 10582 | ld_shlibs_CXX=no |
| 10583 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10584 | aCC*) |
| 10585 | case $host_cpu in |
| 10586 | hppa*64*) |
| 10587 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 10588 | ;; |
| 10589 | ia64*) |
| 10590 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10591 | ;; |
| 10592 | *) |
| 10593 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 10594 | ;; |
| 10595 | esac |
| 10596 | # Commands to make compiler produce verbose output that lists |
| 10597 | # what "hidden" libraries, object files and flags are used when |
| 10598 | # linking a shared library. |
| 10599 | # |
| 10600 | # There doesn't appear to be a way to prevent this compiler from |
| 10601 | # explicitly linking system object files so we need to strip them |
| 10602 | # from the output so that they don't get included in the library |
| 10603 | # dependencies. |
| 10604 | 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' |
| 10605 | ;; |
| 10606 | *) |
| 10607 | if test "$GXX" = yes; then |
| 10608 | if test $with_gnu_ld = no; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10609 | case $host_cpu in |
| 10610 | hppa*64*) |
| 10611 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 10612 | ;; |
| 10613 | ia64*) |
| 10614 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10615 | ;; |
| 10616 | *) |
| 10617 | 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' |
| 10618 | ;; |
| 10619 | esac |
| 10620 | fi |
| 10621 | else |
| 10622 | # FIXME: insert proper C++ library support |
| 10623 | ld_shlibs_CXX=no |
| 10624 | fi |
| 10625 | ;; |
| 10626 | esac |
| 10627 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10628 | interix3*) |
| 10629 | hardcode_direct_CXX=no |
| 10630 | hardcode_shlibpath_var_CXX=no |
| 10631 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 10632 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 10633 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 10634 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 10635 | # default) and relocated if they conflict, which is a slow very memory |
| 10636 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 10637 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 10638 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 10639 | 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' |
| 10640 | 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' |
| 10641 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10642 | irix5* | irix6*) |
| 10643 | case $cc_basename in |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10644 | CC*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10645 | # SGI C++ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10646 | 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' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10647 | |
| 10648 | # Archives containing C++ object files must be created using |
| 10649 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 10650 | # necessary to make sure instantiated templates are included |
| 10651 | # in the archive. |
| 10652 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 10653 | ;; |
| 10654 | *) |
| 10655 | if test "$GXX" = yes; then |
| 10656 | if test "$with_gnu_ld" = no; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10657 | 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' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10658 | else |
| 10659 | 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' |
| 10660 | fi |
| 10661 | fi |
| 10662 | link_all_deplibs_CXX=yes |
| 10663 | ;; |
| 10664 | esac |
| 10665 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 10666 | hardcode_libdir_separator_CXX=: |
| 10667 | ;; |
| 10668 | linux*) |
| 10669 | case $cc_basename in |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10670 | KCC*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10671 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 10672 | |
| 10673 | # KCC will only create a shared library if the output file |
| 10674 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 10675 | # to its proper name (with version) after linking. |
| 10676 | 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' |
| 10677 | 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' |
| 10678 | # Commands to make compiler produce verbose output that lists |
| 10679 | # what "hidden" libraries, object files and flags are used when |
| 10680 | # linking a shared library. |
| 10681 | # |
| 10682 | # There doesn't appear to be a way to prevent this compiler from |
| 10683 | # explicitly linking system object files so we need to strip them |
| 10684 | # from the output so that they don't get included in the library |
| 10685 | # dependencies. |
| 10686 | 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' |
| 10687 | |
| 10688 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
| 10689 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 10690 | |
| 10691 | # Archives containing C++ object files must be created using |
| 10692 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 10693 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 10694 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10695 | icpc*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10696 | # Intel C++ |
| 10697 | with_gnu_ld=yes |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10698 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 10699 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 10700 | # earlier do not add the objects themselves. |
| 10701 | case `$CC -V 2>&1` in |
| 10702 | *"Version 7."*) |
| 10703 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 10704 | 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' |
| 10705 | ;; |
| 10706 | *) # Version 8.0 or newer |
| 10707 | tmp_idyn= |
| 10708 | case $host_cpu in |
| 10709 | ia64*) tmp_idyn=' -i_dynamic';; |
| 10710 | esac |
| 10711 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 10712 | 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' |
| 10713 | ;; |
| 10714 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10715 | archive_cmds_need_lc_CXX=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10716 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 10717 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 10718 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 10719 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10720 | pgCC*) |
| 10721 | # Portland Group C++ compiler |
| 10722 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 10723 | 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' |
| 10724 | |
| 10725 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 10726 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 10727 | 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' |
| 10728 | ;; |
| 10729 | cxx*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10730 | # Compaq C++ |
| 10731 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 10732 | 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' |
| 10733 | |
| 10734 | runpath_var=LD_RUN_PATH |
| 10735 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 10736 | hardcode_libdir_separator_CXX=: |
| 10737 | |
| 10738 | # Commands to make compiler produce verbose output that lists |
| 10739 | # what "hidden" libraries, object files and flags are used when |
| 10740 | # linking a shared library. |
| 10741 | # |
| 10742 | # There doesn't appear to be a way to prevent this compiler from |
| 10743 | # explicitly linking system object files so we need to strip them |
| 10744 | # from the output so that they don't get included in the library |
| 10745 | # dependencies. |
| 10746 | 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' |
| 10747 | ;; |
| 10748 | esac |
| 10749 | ;; |
| 10750 | lynxos*) |
| 10751 | # FIXME: insert proper C++ library support |
| 10752 | ld_shlibs_CXX=no |
| 10753 | ;; |
| 10754 | m88k*) |
| 10755 | # FIXME: insert proper C++ library support |
| 10756 | ld_shlibs_CXX=no |
| 10757 | ;; |
| 10758 | mvs*) |
| 10759 | case $cc_basename in |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10760 | cxx*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10761 | # FIXME: insert proper C++ library support |
| 10762 | ld_shlibs_CXX=no |
| 10763 | ;; |
| 10764 | *) |
| 10765 | # FIXME: insert proper C++ library support |
| 10766 | ld_shlibs_CXX=no |
| 10767 | ;; |
| 10768 | esac |
| 10769 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10770 | netbsd*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10771 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 10772 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 10773 | wlarc= |
| 10774 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 10775 | hardcode_direct_CXX=yes |
| 10776 | hardcode_shlibpath_var_CXX=no |
| 10777 | fi |
| 10778 | # Workaround some broken pre-1.5 toolchains |
| 10779 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 10780 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10781 | openbsd2*) |
| 10782 | # C++ shared libraries are fairly broken |
| 10783 | ld_shlibs_CXX=no |
| 10784 | ;; |
| 10785 | openbsd*) |
| 10786 | hardcode_direct_CXX=yes |
| 10787 | hardcode_shlibpath_var_CXX=no |
| 10788 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 10789 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 10790 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 10791 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| 10792 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 10793 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 10794 | fi |
| 10795 | output_verbose_link_cmd='echo' |
| 10796 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10797 | osf3*) |
| 10798 | case $cc_basename in |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10799 | KCC*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10800 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 10801 | |
| 10802 | # KCC will only create a shared library if the output file |
| 10803 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 10804 | # to its proper name (with version) after linking. |
| 10805 | 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' |
| 10806 | |
| 10807 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 10808 | hardcode_libdir_separator_CXX=: |
| 10809 | |
| 10810 | # Archives containing C++ object files must be created using |
| 10811 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 10812 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 10813 | |
| 10814 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10815 | RCC*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10816 | # Rational C++ 2.4.1 |
| 10817 | # FIXME: insert proper C++ library support |
| 10818 | ld_shlibs_CXX=no |
| 10819 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10820 | cxx*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10821 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10822 | 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' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10823 | |
| 10824 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 10825 | hardcode_libdir_separator_CXX=: |
| 10826 | |
| 10827 | # Commands to make compiler produce verbose output that lists |
| 10828 | # what "hidden" libraries, object files and flags are used when |
| 10829 | # linking a shared library. |
| 10830 | # |
| 10831 | # There doesn't appear to be a way to prevent this compiler from |
| 10832 | # explicitly linking system object files so we need to strip them |
| 10833 | # from the output so that they don't get included in the library |
| 10834 | # dependencies. |
| 10835 | 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' |
| 10836 | ;; |
| 10837 | *) |
| 10838 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 10839 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10840 | 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' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10841 | |
| 10842 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 10843 | hardcode_libdir_separator_CXX=: |
| 10844 | |
| 10845 | # Commands to make compiler produce verbose output that lists |
| 10846 | # what "hidden" libraries, object files and flags are used when |
| 10847 | # linking a shared library. |
| 10848 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 10849 | |
| 10850 | else |
| 10851 | # FIXME: insert proper C++ library support |
| 10852 | ld_shlibs_CXX=no |
| 10853 | fi |
| 10854 | ;; |
| 10855 | esac |
| 10856 | ;; |
| 10857 | osf4* | osf5*) |
| 10858 | case $cc_basename in |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10859 | KCC*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10860 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 10861 | |
| 10862 | # KCC will only create a shared library if the output file |
| 10863 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 10864 | # to its proper name (with version) after linking. |
| 10865 | 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' |
| 10866 | |
| 10867 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 10868 | hardcode_libdir_separator_CXX=: |
| 10869 | |
| 10870 | # Archives containing C++ object files must be created using |
| 10871 | # the KAI C++ compiler. |
| 10872 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
| 10873 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10874 | RCC*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10875 | # Rational C++ 2.4.1 |
| 10876 | # FIXME: insert proper C++ library support |
| 10877 | ld_shlibs_CXX=no |
| 10878 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10879 | cxx*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10880 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10881 | 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' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10882 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 10883 | echo "-hidden">> $lib.exp~ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10884 | $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~ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10885 | $rm $lib.exp' |
| 10886 | |
| 10887 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 10888 | hardcode_libdir_separator_CXX=: |
| 10889 | |
| 10890 | # Commands to make compiler produce verbose output that lists |
| 10891 | # what "hidden" libraries, object files and flags are used when |
| 10892 | # linking a shared library. |
| 10893 | # |
| 10894 | # There doesn't appear to be a way to prevent this compiler from |
| 10895 | # explicitly linking system object files so we need to strip them |
| 10896 | # from the output so that they don't get included in the library |
| 10897 | # dependencies. |
| 10898 | 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' |
| 10899 | ;; |
| 10900 | *) |
| 10901 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 10902 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10903 | 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' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10904 | |
| 10905 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 10906 | hardcode_libdir_separator_CXX=: |
| 10907 | |
| 10908 | # Commands to make compiler produce verbose output that lists |
| 10909 | # what "hidden" libraries, object files and flags are used when |
| 10910 | # linking a shared library. |
| 10911 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 10912 | |
| 10913 | else |
| 10914 | # FIXME: insert proper C++ library support |
| 10915 | ld_shlibs_CXX=no |
| 10916 | fi |
| 10917 | ;; |
| 10918 | esac |
| 10919 | ;; |
| 10920 | psos*) |
| 10921 | # FIXME: insert proper C++ library support |
| 10922 | ld_shlibs_CXX=no |
| 10923 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10924 | sunos4*) |
| 10925 | case $cc_basename in |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10926 | CC*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10927 | # Sun C++ 4.x |
| 10928 | # FIXME: insert proper C++ library support |
| 10929 | ld_shlibs_CXX=no |
| 10930 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10931 | lcc*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10932 | # Lucid |
| 10933 | # FIXME: insert proper C++ library support |
| 10934 | ld_shlibs_CXX=no |
| 10935 | ;; |
| 10936 | *) |
| 10937 | # FIXME: insert proper C++ library support |
| 10938 | ld_shlibs_CXX=no |
| 10939 | ;; |
| 10940 | esac |
| 10941 | ;; |
| 10942 | solaris*) |
| 10943 | case $cc_basename in |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10944 | CC*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10945 | # Sun C++ 4.2, 5.x and Centerline C++ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10946 | archive_cmds_need_lc_CXX=yes |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10947 | no_undefined_flag_CXX=' -zdefs' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10948 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10949 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10950 | $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' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10951 | |
| 10952 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 10953 | hardcode_shlibpath_var_CXX=no |
| 10954 | case $host_os in |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10955 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10956 | *) |
| 10957 | # The C++ compiler is used as linker so we must use $wl |
| 10958 | # flag to pass the commands to the underlying system |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10959 | # linker. We must also pass each convience library through |
| 10960 | # to the system linker between allextract/defaultextract. |
| 10961 | # The C++ compiler will combine linker options so we |
| 10962 | # cannot just pass the convience library names through |
| 10963 | # without $wl. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10964 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10965 | 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' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10966 | ;; |
| 10967 | esac |
| 10968 | link_all_deplibs_CXX=yes |
| 10969 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10970 | output_verbose_link_cmd='echo' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10971 | |
| 10972 | # Archives containing C++ object files must be created using |
| 10973 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 10974 | # necessary to make sure instantiated templates are included |
| 10975 | # in the archive. |
| 10976 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 10977 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10978 | gcx*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10979 | # Green Hills C++ Compiler |
| 10980 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 10981 | |
| 10982 | # The C++ compiler must be used to create the archive. |
| 10983 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 10984 | ;; |
| 10985 | *) |
| 10986 | # GNU C++ compiler with Solaris linker |
| 10987 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 10988 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 10989 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
| 10990 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 10991 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 10992 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 10993 | |
| 10994 | # Commands to make compiler produce verbose output that lists |
| 10995 | # what "hidden" libraries, object files and flags are used when |
| 10996 | # linking a shared library. |
| 10997 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 10998 | else |
| 10999 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 11000 | # platform. |
| 11001 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 11002 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 11003 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 11004 | |
| 11005 | # Commands to make compiler produce verbose output that lists |
| 11006 | # what "hidden" libraries, object files and flags are used when |
| 11007 | # linking a shared library. |
| 11008 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 11009 | fi |
| 11010 | |
| 11011 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 11012 | fi |
| 11013 | ;; |
| 11014 | esac |
| 11015 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11016 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 11017 | no_undefined_flag_CXX='${wl}-z,text' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11018 | archive_cmds_need_lc_CXX=no |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11019 | hardcode_shlibpath_var_CXX=no |
| 11020 | runpath_var='LD_RUN_PATH' |
| 11021 | |
| 11022 | case $cc_basename in |
| 11023 | CC*) |
| 11024 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11025 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11026 | ;; |
| 11027 | *) |
| 11028 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11029 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11030 | ;; |
| 11031 | esac |
| 11032 | ;; |
| 11033 | sysv5* | sco3.2v5* | sco5v6*) |
| 11034 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 11035 | # link with -lc, and that would cause any symbols used from libc to |
| 11036 | # always be unresolved, which means just about no library would |
| 11037 | # ever link correctly. If we're not using GNU ld we use -z text |
| 11038 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 11039 | # as -z defs. |
| 11040 | # For security reasons, it is highly recommended that you always |
| 11041 | # use absolute paths for naming shared libraries, and exclude the |
| 11042 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 11043 | # requires that you compile everything twice, which is a pain. |
| 11044 | # So that behaviour is only enabled if SCOABSPATH is set to a |
| 11045 | # non-empty value in the environment. Most likely only useful for |
| 11046 | # creating official distributions of packages. |
| 11047 | # This is a hack until libtool officially supports absolute path |
| 11048 | # names for shared libraries. |
| 11049 | no_undefined_flag_CXX='${wl}-z,text' |
| 11050 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
| 11051 | archive_cmds_need_lc_CXX=no |
| 11052 | hardcode_shlibpath_var_CXX=no |
| 11053 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 11054 | hardcode_libdir_separator_CXX=':' |
| 11055 | link_all_deplibs_CXX=yes |
| 11056 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
| 11057 | runpath_var='LD_RUN_PATH' |
| 11058 | |
| 11059 | case $cc_basename in |
| 11060 | CC*) |
| 11061 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11062 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11063 | ;; |
| 11064 | *) |
| 11065 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11066 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11067 | ;; |
| 11068 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11069 | ;; |
| 11070 | tandem*) |
| 11071 | case $cc_basename in |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11072 | NCC*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11073 | # NonStop-UX NCC 3.20 |
| 11074 | # FIXME: insert proper C++ library support |
| 11075 | ld_shlibs_CXX=no |
| 11076 | ;; |
| 11077 | *) |
| 11078 | # FIXME: insert proper C++ library support |
| 11079 | ld_shlibs_CXX=no |
| 11080 | ;; |
| 11081 | esac |
| 11082 | ;; |
| 11083 | vxworks*) |
| 11084 | # FIXME: insert proper C++ library support |
| 11085 | ld_shlibs_CXX=no |
| 11086 | ;; |
| 11087 | *) |
| 11088 | # FIXME: insert proper C++ library support |
| 11089 | ld_shlibs_CXX=no |
| 11090 | ;; |
| 11091 | esac |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11092 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 11093 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11094 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 11095 | |
| 11096 | GCC_CXX="$GXX" |
| 11097 | LD_CXX="$LD" |
| 11098 | |
| 11099 | |
| 11100 | cat > conftest.$ac_ext <<EOF |
| 11101 | class Foo |
| 11102 | { |
| 11103 | public: |
| 11104 | Foo (void) { a = 0; } |
| 11105 | private: |
| 11106 | int a; |
| 11107 | }; |
| 11108 | EOF |
| 11109 | |
| 11110 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11111 | (eval $ac_compile) 2>&5 |
| 11112 | ac_status=$? |
| 11113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11114 | (exit $ac_status); }; then |
| 11115 | # Parse the compiler output and extract the necessary |
| 11116 | # objects, libraries and library flags. |
| 11117 | |
| 11118 | # Sentinel used to keep track of whether or not we are before |
| 11119 | # the conftest object file. |
| 11120 | pre_test_object_deps_done=no |
| 11121 | |
| 11122 | # The `*' in the case matches for architectures that use `case' in |
| 11123 | # $output_verbose_cmd can trigger glob expansion during the loop |
| 11124 | # eval without this substitution. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11125 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11126 | |
| 11127 | for p in `eval $output_verbose_link_cmd`; do |
| 11128 | case $p in |
| 11129 | |
| 11130 | -L* | -R* | -l*) |
| 11131 | # Some compilers place space between "-{L,R}" and the path. |
| 11132 | # Remove the space. |
| 11133 | if test $p = "-L" \ |
| 11134 | || test $p = "-R"; then |
| 11135 | prev=$p |
| 11136 | continue |
| 11137 | else |
| 11138 | prev= |
| 11139 | fi |
| 11140 | |
| 11141 | if test "$pre_test_object_deps_done" = no; then |
| 11142 | case $p in |
| 11143 | -L* | -R*) |
| 11144 | # Internal compiler library paths should come after those |
| 11145 | # provided the user. The postdeps already come after the |
| 11146 | # user supplied libs so there is no need to process them. |
| 11147 | if test -z "$compiler_lib_search_path_CXX"; then |
| 11148 | compiler_lib_search_path_CXX="${prev}${p}" |
| 11149 | else |
| 11150 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 11151 | fi |
| 11152 | ;; |
| 11153 | # The "-l" case would never come before the object being |
| 11154 | # linked, so don't bother handling this case. |
| 11155 | esac |
| 11156 | else |
| 11157 | if test -z "$postdeps_CXX"; then |
| 11158 | postdeps_CXX="${prev}${p}" |
| 11159 | else |
| 11160 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 11161 | fi |
| 11162 | fi |
| 11163 | ;; |
| 11164 | |
| 11165 | *.$objext) |
| 11166 | # This assumes that the test object file only shows up |
| 11167 | # once in the compiler output. |
| 11168 | if test "$p" = "conftest.$objext"; then |
| 11169 | pre_test_object_deps_done=yes |
| 11170 | continue |
| 11171 | fi |
| 11172 | |
| 11173 | if test "$pre_test_object_deps_done" = no; then |
| 11174 | if test -z "$predep_objects_CXX"; then |
| 11175 | predep_objects_CXX="$p" |
| 11176 | else |
| 11177 | predep_objects_CXX="$predep_objects_CXX $p" |
| 11178 | fi |
| 11179 | else |
| 11180 | if test -z "$postdep_objects_CXX"; then |
| 11181 | postdep_objects_CXX="$p" |
| 11182 | else |
| 11183 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 11184 | fi |
| 11185 | fi |
| 11186 | ;; |
| 11187 | |
| 11188 | *) ;; # Ignore the rest. |
| 11189 | |
| 11190 | esac |
| 11191 | done |
| 11192 | |
| 11193 | # Clean up. |
| 11194 | rm -f a.out a.exe |
| 11195 | else |
| 11196 | echo "libtool.m4: error: problem compiling CXX test program" |
| 11197 | fi |
| 11198 | |
| 11199 | $rm -f confest.$objext |
| 11200 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11201 | # PORTME: override above test on systems where it is broken |
| 11202 | case $host_os in |
| 11203 | interix3*) |
| 11204 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 11205 | # hack all around it, let's just trust "g++" to DTRT. |
| 11206 | predep_objects_CXX= |
| 11207 | postdep_objects_CXX= |
| 11208 | postdeps_CXX= |
| 11209 | ;; |
| 11210 | |
| 11211 | solaris*) |
| 11212 | case $cc_basename in |
| 11213 | CC*) |
| 11214 | # Adding this requires a known-good setup of shared libraries for |
| 11215 | # Sun compiler versions before 5.6, else PIC objects from an old |
| 11216 | # archive will be linked into the output, leading to subtle bugs. |
| 11217 | postdeps_CXX='-lCstd -lCrun' |
| 11218 | ;; |
| 11219 | esac |
| 11220 | ;; |
| 11221 | esac |
| 11222 | |
| 11223 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11224 | case " $postdeps_CXX " in |
| 11225 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 11226 | esac |
| 11227 | |
| 11228 | lt_prog_compiler_wl_CXX= |
| 11229 | lt_prog_compiler_pic_CXX= |
| 11230 | lt_prog_compiler_static_CXX= |
| 11231 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11232 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 11233 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11234 | |
| 11235 | # C++ specific cases for pic, static, wl, etc. |
| 11236 | if test "$GXX" = yes; then |
| 11237 | lt_prog_compiler_wl_CXX='-Wl,' |
| 11238 | lt_prog_compiler_static_CXX='-static' |
| 11239 | |
| 11240 | case $host_os in |
| 11241 | aix*) |
| 11242 | # All AIX code is PIC. |
| 11243 | if test "$host_cpu" = ia64; then |
| 11244 | # AIX 5 now supports IA64 processor |
| 11245 | lt_prog_compiler_static_CXX='-Bstatic' |
| 11246 | fi |
| 11247 | ;; |
| 11248 | amigaos*) |
| 11249 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 11250 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 11251 | # like `-m68040'. |
| 11252 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 11253 | ;; |
| 11254 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 11255 | # PIC is the default for these OSes. |
| 11256 | ;; |
| 11257 | mingw* | os2* | pw32*) |
| 11258 | # This hack is so that the source file can tell whether it is being |
| 11259 | # built for inclusion in a dll (and should export symbols for example). |
| 11260 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 11261 | ;; |
| 11262 | darwin* | rhapsody*) |
| 11263 | # PIC is the default on this platform |
| 11264 | # Common symbols not allowed in MH_DYLIB files |
| 11265 | lt_prog_compiler_pic_CXX='-fno-common' |
| 11266 | ;; |
| 11267 | *djgpp*) |
| 11268 | # DJGPP does not support shared libraries at all |
| 11269 | lt_prog_compiler_pic_CXX= |
| 11270 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11271 | interix3*) |
| 11272 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 11273 | # Instead, we relocate shared libraries at runtime. |
| 11274 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11275 | sysv4*MP*) |
| 11276 | if test -d /usr/nec; then |
| 11277 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 11278 | fi |
| 11279 | ;; |
| 11280 | hpux*) |
| 11281 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 11282 | # not for PA HP-UX. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11283 | case $host_cpu in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11284 | hppa*64*|ia64*) |
| 11285 | ;; |
| 11286 | *) |
| 11287 | lt_prog_compiler_pic_CXX='-fPIC' |
| 11288 | ;; |
| 11289 | esac |
| 11290 | ;; |
| 11291 | *) |
| 11292 | lt_prog_compiler_pic_CXX='-fPIC' |
| 11293 | ;; |
| 11294 | esac |
| 11295 | else |
| 11296 | case $host_os in |
| 11297 | aix4* | aix5*) |
| 11298 | # All AIX code is PIC. |
| 11299 | if test "$host_cpu" = ia64; then |
| 11300 | # AIX 5 now supports IA64 processor |
| 11301 | lt_prog_compiler_static_CXX='-Bstatic' |
| 11302 | else |
| 11303 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 11304 | fi |
| 11305 | ;; |
| 11306 | chorus*) |
| 11307 | case $cc_basename in |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11308 | cxch68*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11309 | # Green Hills C++ Compiler |
| 11310 | # _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" |
| 11311 | ;; |
| 11312 | esac |
| 11313 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11314 | darwin*) |
| 11315 | # PIC is the default on this platform |
| 11316 | # Common symbols not allowed in MH_DYLIB files |
| 11317 | case $cc_basename in |
| 11318 | xlc*) |
| 11319 | lt_prog_compiler_pic_CXX='-qnocommon' |
| 11320 | lt_prog_compiler_wl_CXX='-Wl,' |
| 11321 | ;; |
| 11322 | esac |
| 11323 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11324 | dgux*) |
| 11325 | case $cc_basename in |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11326 | ec++*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11327 | lt_prog_compiler_pic_CXX='-KPIC' |
| 11328 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11329 | ghcx*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11330 | # Green Hills C++ Compiler |
| 11331 | lt_prog_compiler_pic_CXX='-pic' |
| 11332 | ;; |
| 11333 | *) |
| 11334 | ;; |
| 11335 | esac |
| 11336 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11337 | freebsd* | kfreebsd*-gnu | dragonfly*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11338 | # FreeBSD uses GNU C++ |
| 11339 | ;; |
| 11340 | hpux9* | hpux10* | hpux11*) |
| 11341 | case $cc_basename in |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11342 | CC*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11343 | lt_prog_compiler_wl_CXX='-Wl,' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11344 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11345 | if test "$host_cpu" != ia64; then |
| 11346 | lt_prog_compiler_pic_CXX='+Z' |
| 11347 | fi |
| 11348 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11349 | aCC*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11350 | lt_prog_compiler_wl_CXX='-Wl,' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11351 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 11352 | case $host_cpu in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11353 | hppa*64*|ia64*) |
| 11354 | # +Z the default |
| 11355 | ;; |
| 11356 | *) |
| 11357 | lt_prog_compiler_pic_CXX='+Z' |
| 11358 | ;; |
| 11359 | esac |
| 11360 | ;; |
| 11361 | *) |
| 11362 | ;; |
| 11363 | esac |
| 11364 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11365 | interix*) |
| 11366 | # This is c89, which is MS Visual C++ (no shared libs) |
| 11367 | # Anyone wants to do a port? |
| 11368 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11369 | irix5* | irix6* | nonstopux*) |
| 11370 | case $cc_basename in |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11371 | CC*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11372 | lt_prog_compiler_wl_CXX='-Wl,' |
| 11373 | lt_prog_compiler_static_CXX='-non_shared' |
| 11374 | # CC pic flag -KPIC is the default. |
| 11375 | ;; |
| 11376 | *) |
| 11377 | ;; |
| 11378 | esac |
| 11379 | ;; |
| 11380 | linux*) |
| 11381 | case $cc_basename in |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11382 | KCC*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11383 | # KAI C++ Compiler |
| 11384 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 11385 | lt_prog_compiler_pic_CXX='-fPIC' |
| 11386 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11387 | icpc* | ecpc*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11388 | # Intel C++ |
| 11389 | lt_prog_compiler_wl_CXX='-Wl,' |
| 11390 | lt_prog_compiler_pic_CXX='-KPIC' |
| 11391 | lt_prog_compiler_static_CXX='-static' |
| 11392 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11393 | pgCC*) |
| 11394 | # Portland Group C++ compiler. |
| 11395 | lt_prog_compiler_wl_CXX='-Wl,' |
| 11396 | lt_prog_compiler_pic_CXX='-fpic' |
| 11397 | lt_prog_compiler_static_CXX='-Bstatic' |
| 11398 | ;; |
| 11399 | cxx*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11400 | # Compaq C++ |
| 11401 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 11402 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 11403 | lt_prog_compiler_pic_CXX= |
| 11404 | lt_prog_compiler_static_CXX='-non_shared' |
| 11405 | ;; |
| 11406 | *) |
| 11407 | ;; |
| 11408 | esac |
| 11409 | ;; |
| 11410 | lynxos*) |
| 11411 | ;; |
| 11412 | m88k*) |
| 11413 | ;; |
| 11414 | mvs*) |
| 11415 | case $cc_basename in |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11416 | cxx*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11417 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 11418 | ;; |
| 11419 | *) |
| 11420 | ;; |
| 11421 | esac |
| 11422 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11423 | netbsd*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11424 | ;; |
| 11425 | osf3* | osf4* | osf5*) |
| 11426 | case $cc_basename in |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11427 | KCC*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11428 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 11429 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11430 | RCC*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11431 | # Rational C++ 2.4.1 |
| 11432 | lt_prog_compiler_pic_CXX='-pic' |
| 11433 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11434 | cxx*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11435 | # Digital/Compaq C++ |
| 11436 | lt_prog_compiler_wl_CXX='-Wl,' |
| 11437 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 11438 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 11439 | lt_prog_compiler_pic_CXX= |
| 11440 | lt_prog_compiler_static_CXX='-non_shared' |
| 11441 | ;; |
| 11442 | *) |
| 11443 | ;; |
| 11444 | esac |
| 11445 | ;; |
| 11446 | psos*) |
| 11447 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11448 | solaris*) |
| 11449 | case $cc_basename in |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11450 | CC*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11451 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 11452 | lt_prog_compiler_pic_CXX='-KPIC' |
| 11453 | lt_prog_compiler_static_CXX='-Bstatic' |
| 11454 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 11455 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11456 | gcx*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11457 | # Green Hills C++ Compiler |
| 11458 | lt_prog_compiler_pic_CXX='-PIC' |
| 11459 | ;; |
| 11460 | *) |
| 11461 | ;; |
| 11462 | esac |
| 11463 | ;; |
| 11464 | sunos4*) |
| 11465 | case $cc_basename in |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11466 | CC*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11467 | # Sun C++ 4.x |
| 11468 | lt_prog_compiler_pic_CXX='-pic' |
| 11469 | lt_prog_compiler_static_CXX='-Bstatic' |
| 11470 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11471 | lcc*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11472 | # Lucid |
| 11473 | lt_prog_compiler_pic_CXX='-pic' |
| 11474 | ;; |
| 11475 | *) |
| 11476 | ;; |
| 11477 | esac |
| 11478 | ;; |
| 11479 | tandem*) |
| 11480 | case $cc_basename in |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11481 | NCC*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11482 | # NonStop-UX NCC 3.20 |
| 11483 | lt_prog_compiler_pic_CXX='-KPIC' |
| 11484 | ;; |
| 11485 | *) |
| 11486 | ;; |
| 11487 | esac |
| 11488 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11489 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 11490 | case $cc_basename in |
| 11491 | CC*) |
| 11492 | lt_prog_compiler_wl_CXX='-Wl,' |
| 11493 | lt_prog_compiler_pic_CXX='-KPIC' |
| 11494 | lt_prog_compiler_static_CXX='-Bstatic' |
| 11495 | ;; |
| 11496 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11497 | ;; |
| 11498 | vxworks*) |
| 11499 | ;; |
| 11500 | *) |
| 11501 | lt_prog_compiler_can_build_shared_CXX=no |
| 11502 | ;; |
| 11503 | esac |
| 11504 | fi |
| 11505 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11506 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
| 11507 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11508 | |
| 11509 | # |
| 11510 | # Check to make sure the PIC flag actually works. |
| 11511 | # |
| 11512 | if test -n "$lt_prog_compiler_pic_CXX"; then |
| 11513 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11514 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 11515 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11516 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
| 11517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11518 | else |
| 11519 | lt_prog_compiler_pic_works_CXX=no |
| 11520 | ac_outfile=conftest.$ac_objext |
| 11521 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 11522 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 11523 | # Insert the option either (1) after the last *FLAGS variable, or |
| 11524 | # (2) before a word containing "conftest.", or (3) at the end. |
| 11525 | # Note that $ac_compile itself does not contain backslashes and begins |
| 11526 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 11527 | # The option is referenced via a variable to avoid confusing sed. |
| 11528 | lt_compile=`echo "$ac_compile" | $SED \ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11529 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11530 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 11531 | -e 's:$: $lt_compiler_flag:'` |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame^] | 11532 | (eval echo "\"\$as_me:11532: $lt_compile\"" >&5) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11533 | (eval "$lt_compile" 2>conftest.err) |
| 11534 | ac_status=$? |
| 11535 | cat conftest.err >&5 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame^] | 11536 | echo "$as_me:11536: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11537 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 11538 | # The compiler can only warn and ignore the option if not recognized |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11539 | # So say no if there are warnings other than the usual output. |
| 11540 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 11541 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 11542 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11543 | lt_prog_compiler_pic_works_CXX=yes |
| 11544 | fi |
| 11545 | fi |
| 11546 | $rm conftest* |
| 11547 | |
| 11548 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11549 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
| 11550 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11551 | |
| 11552 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
| 11553 | case $lt_prog_compiler_pic_CXX in |
| 11554 | "" | " "*) ;; |
| 11555 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 11556 | esac |
| 11557 | else |
| 11558 | lt_prog_compiler_pic_CXX= |
| 11559 | lt_prog_compiler_can_build_shared_CXX=no |
| 11560 | fi |
| 11561 | |
| 11562 | fi |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11563 | case $host_os in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11564 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 11565 | *djgpp*) |
| 11566 | lt_prog_compiler_pic_CXX= |
| 11567 | ;; |
| 11568 | *) |
| 11569 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 11570 | ;; |
| 11571 | esac |
| 11572 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11573 | # |
| 11574 | # Check to make sure the static flag actually works. |
| 11575 | # |
| 11576 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11577 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 11578 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11579 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
| 11580 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11581 | else |
| 11582 | lt_prog_compiler_static_works_CXX=no |
| 11583 | save_LDFLAGS="$LDFLAGS" |
| 11584 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 11585 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 11586 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 11587 | # The linker can only warn and ignore the option if not recognized |
| 11588 | # So say no if there are warnings |
| 11589 | if test -s conftest.err; then |
| 11590 | # Append any errors to the config.log. |
| 11591 | cat conftest.err 1>&5 |
| 11592 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 11593 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 11594 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 11595 | lt_prog_compiler_static_works_CXX=yes |
| 11596 | fi |
| 11597 | else |
| 11598 | lt_prog_compiler_static_works_CXX=yes |
| 11599 | fi |
| 11600 | fi |
| 11601 | $rm conftest* |
| 11602 | LDFLAGS="$save_LDFLAGS" |
| 11603 | |
| 11604 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11605 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
| 11606 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11607 | |
| 11608 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
| 11609 | : |
| 11610 | else |
| 11611 | lt_prog_compiler_static_CXX= |
| 11612 | fi |
| 11613 | |
| 11614 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11615 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 11616 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11617 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
| 11618 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11619 | else |
| 11620 | lt_cv_prog_compiler_c_o_CXX=no |
| 11621 | $rm -r conftest 2>/dev/null |
| 11622 | mkdir conftest |
| 11623 | cd conftest |
| 11624 | mkdir out |
| 11625 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 11626 | |
| 11627 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 11628 | # Insert the option either (1) after the last *FLAGS variable, or |
| 11629 | # (2) before a word containing "conftest.", or (3) at the end. |
| 11630 | # Note that $ac_compile itself does not contain backslashes and begins |
| 11631 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 11632 | lt_compile=`echo "$ac_compile" | $SED \ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11633 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11634 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 11635 | -e 's:$: $lt_compiler_flag:'` |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame^] | 11636 | (eval echo "\"\$as_me:11636: $lt_compile\"" >&5) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11637 | (eval "$lt_compile" 2>out/conftest.err) |
| 11638 | ac_status=$? |
| 11639 | cat out/conftest.err >&5 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame^] | 11640 | echo "$as_me:11640: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11641 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 11642 | then |
| 11643 | # The compiler can only warn and ignore the option if not recognized |
| 11644 | # So say no if there are warnings |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11645 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 11646 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 11647 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11648 | lt_cv_prog_compiler_c_o_CXX=yes |
| 11649 | fi |
| 11650 | fi |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11651 | chmod u+w . 2>&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11652 | $rm conftest* |
| 11653 | # SGI C++ compiler will create directory out/ii_files/ for |
| 11654 | # template instantiation |
| 11655 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 11656 | $rm out/* && rmdir out |
| 11657 | cd .. |
| 11658 | rmdir conftest |
| 11659 | $rm conftest* |
| 11660 | |
| 11661 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11662 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 11663 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11664 | |
| 11665 | |
| 11666 | hard_links="nottested" |
| 11667 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 11668 | # do not overwrite the value of need_locks provided by the user |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11669 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 11670 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11671 | hard_links=yes |
| 11672 | $rm conftest* |
| 11673 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 11674 | touch conftest.a |
| 11675 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 11676 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11677 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 11678 | echo "${ECHO_T}$hard_links" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11679 | if test "$hard_links" = no; then |
| 11680 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 11681 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 11682 | need_locks=warn |
| 11683 | fi |
| 11684 | else |
| 11685 | need_locks=no |
| 11686 | fi |
| 11687 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11688 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 11689 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11690 | |
| 11691 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 11692 | case $host_os in |
| 11693 | aix4* | aix5*) |
| 11694 | # If we're using GNU nm, then we don't want the "-C" option. |
| 11695 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 11696 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 11697 | 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' |
| 11698 | else |
| 11699 | 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' |
| 11700 | fi |
| 11701 | ;; |
| 11702 | pw32*) |
| 11703 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 11704 | ;; |
| 11705 | cygwin* | mingw*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11706 | 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' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11707 | ;; |
| 11708 | *) |
| 11709 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 11710 | ;; |
| 11711 | esac |
| 11712 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11713 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 11714 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11715 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 11716 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11717 | # |
| 11718 | # Do we need to explicitly link libc? |
| 11719 | # |
| 11720 | case "x$archive_cmds_need_lc_CXX" in |
| 11721 | x|xyes) |
| 11722 | # Assume -lc should be added |
| 11723 | archive_cmds_need_lc_CXX=yes |
| 11724 | |
| 11725 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 11726 | case $archive_cmds_CXX in |
| 11727 | *'~'*) |
| 11728 | # FIXME: we may have to deal with multi-command sequences. |
| 11729 | ;; |
| 11730 | '$CC '*) |
| 11731 | # Test whether the compiler implicitly links with -lc since on some |
| 11732 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 11733 | # to ld, don't add -lc before -lgcc. |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11734 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 11735 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11736 | $rm conftest* |
| 11737 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 11738 | |
| 11739 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11740 | (eval $ac_compile) 2>&5 |
| 11741 | ac_status=$? |
| 11742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11743 | (exit $ac_status); } 2>conftest.err; then |
| 11744 | soname=conftest |
| 11745 | lib=conftest |
| 11746 | libobjs=conftest.$ac_objext |
| 11747 | deplibs= |
| 11748 | wl=$lt_prog_compiler_wl_CXX |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11749 | pic_flag=$lt_prog_compiler_pic_CXX |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11750 | compiler_flags=-v |
| 11751 | linker_flags=-v |
| 11752 | verstring= |
| 11753 | output_objdir=. |
| 11754 | libname=conftest |
| 11755 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 11756 | allow_undefined_flag_CXX= |
| 11757 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 11758 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 11759 | ac_status=$? |
| 11760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11761 | (exit $ac_status); } |
| 11762 | then |
| 11763 | archive_cmds_need_lc_CXX=no |
| 11764 | else |
| 11765 | archive_cmds_need_lc_CXX=yes |
| 11766 | fi |
| 11767 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 11768 | else |
| 11769 | cat conftest.err 1>&5 |
| 11770 | fi |
| 11771 | $rm conftest* |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11772 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
| 11773 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11774 | ;; |
| 11775 | esac |
| 11776 | fi |
| 11777 | ;; |
| 11778 | esac |
| 11779 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11780 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 11781 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11782 | library_names_spec= |
| 11783 | libname_spec='lib$name' |
| 11784 | soname_spec= |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11785 | shrext_cmds=".so" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11786 | postinstall_cmds= |
| 11787 | postuninstall_cmds= |
| 11788 | finish_cmds= |
| 11789 | finish_eval= |
| 11790 | shlibpath_var= |
| 11791 | shlibpath_overrides_runpath=unknown |
| 11792 | version_type=none |
| 11793 | dynamic_linker="$host_os ld.so" |
| 11794 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 11795 | if test "$GCC" = yes; then |
| 11796 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 11797 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 11798 | # if the path contains ";" then we assume it to be the separator |
| 11799 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 11800 | # assumed that no part of a normal pathname contains ";" but that should |
| 11801 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 11802 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 11803 | else |
| 11804 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 11805 | fi |
| 11806 | else |
| 11807 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 11808 | fi |
| 11809 | need_lib_prefix=unknown |
| 11810 | hardcode_into_libs=no |
| 11811 | |
| 11812 | # when you set need_version to no, make sure it does not cause -set_version |
| 11813 | # flags to be left without arguments |
| 11814 | need_version=unknown |
| 11815 | |
| 11816 | case $host_os in |
| 11817 | aix3*) |
| 11818 | version_type=linux |
| 11819 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 11820 | shlibpath_var=LIBPATH |
| 11821 | |
| 11822 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 11823 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11824 | ;; |
| 11825 | |
| 11826 | aix4* | aix5*) |
| 11827 | version_type=linux |
| 11828 | need_lib_prefix=no |
| 11829 | need_version=no |
| 11830 | hardcode_into_libs=yes |
| 11831 | if test "$host_cpu" = ia64; then |
| 11832 | # AIX 5 supports IA64 |
| 11833 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 11834 | shlibpath_var=LD_LIBRARY_PATH |
| 11835 | else |
| 11836 | # With GCC up to 2.95.x, collect2 would create an import file |
| 11837 | # for dependence libraries. The import file would start with |
| 11838 | # the line `#! .'. This would cause the generated library to |
| 11839 | # depend on `.', always an invalid library. This was fixed in |
| 11840 | # development snapshots of GCC prior to 3.0. |
| 11841 | case $host_os in |
| 11842 | aix4 | aix4.[01] | aix4.[01].*) |
| 11843 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 11844 | echo ' yes ' |
| 11845 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 11846 | : |
| 11847 | else |
| 11848 | can_build_shared=no |
| 11849 | fi |
| 11850 | ;; |
| 11851 | esac |
| 11852 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 11853 | # soname into executable. Probably we can add versioning support to |
| 11854 | # collect2, so additional links can be useful in future. |
| 11855 | if test "$aix_use_runtimelinking" = yes; then |
| 11856 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 11857 | # instead of lib<name>.a to let people know that these are not |
| 11858 | # typical AIX shared libraries. |
| 11859 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11860 | else |
| 11861 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 11862 | # and later when we are not doing run time linking. |
| 11863 | library_names_spec='${libname}${release}.a $libname.a' |
| 11864 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11865 | fi |
| 11866 | shlibpath_var=LIBPATH |
| 11867 | fi |
| 11868 | ;; |
| 11869 | |
| 11870 | amigaos*) |
| 11871 | library_names_spec='$libname.ixlibrary $libname.a' |
| 11872 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 11873 | 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' |
| 11874 | ;; |
| 11875 | |
| 11876 | beos*) |
| 11877 | library_names_spec='${libname}${shared_ext}' |
| 11878 | dynamic_linker="$host_os ld.so" |
| 11879 | shlibpath_var=LIBRARY_PATH |
| 11880 | ;; |
| 11881 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11882 | bsdi[45]*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11883 | version_type=linux |
| 11884 | need_version=no |
| 11885 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11886 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11887 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 11888 | shlibpath_var=LD_LIBRARY_PATH |
| 11889 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 11890 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 11891 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 11892 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 11893 | # libtool to hard-code these into programs |
| 11894 | ;; |
| 11895 | |
| 11896 | cygwin* | mingw* | pw32*) |
| 11897 | version_type=windows |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11898 | shrext_cmds=".dll" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11899 | need_version=no |
| 11900 | need_lib_prefix=no |
| 11901 | |
| 11902 | case $GCC,$host_os in |
| 11903 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 11904 | library_names_spec='$libname.dll.a' |
| 11905 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 11906 | postinstall_cmds='base_file=`basename \${file}`~ |
| 11907 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 11908 | dldir=$destdir/`dirname \$dlpath`~ |
| 11909 | test -d \$dldir || mkdir -p \$dldir~ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11910 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 11911 | chmod a+x \$dldir/$dlname' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11912 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 11913 | dlpath=$dir/\$dldll~ |
| 11914 | $rm \$dlpath' |
| 11915 | shlibpath_overrides_runpath=yes |
| 11916 | |
| 11917 | case $host_os in |
| 11918 | cygwin*) |
| 11919 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 11920 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 11921 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 11922 | ;; |
| 11923 | mingw*) |
| 11924 | # MinGW DLLs use traditional 'lib' prefix |
| 11925 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 11926 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 11927 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 11928 | # It is most probably a Windows format PATH printed by |
| 11929 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 11930 | # path with ; separators, and with drive letters. We can handle the |
| 11931 | # drive letters (cygwin fileutils understands them), so leave them, |
| 11932 | # especially as we might pass files found there to a mingw objdump, |
| 11933 | # which wouldn't understand a cygwinified path. Ahh. |
| 11934 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 11935 | else |
| 11936 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 11937 | fi |
| 11938 | ;; |
| 11939 | pw32*) |
| 11940 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11941 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11942 | ;; |
| 11943 | esac |
| 11944 | ;; |
| 11945 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11946 | linux*) |
| 11947 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 11948 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11949 | supports_anon_versioning=no |
| 11950 | case `$LD -v 2>/dev/null` in |
| 11951 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 11952 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 11953 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 11954 | *\ 2.11.*) ;; # other 2.11 versions |
| 11955 | *) supports_anon_versioning=yes ;; |
| 11956 | esac |
| 11957 | if test $supports_anon_versioning = yes; then |
| 11958 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 11959 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 11960 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 11961 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 11962 | else |
| 11963 | $archive_expsym_cmds="$archive_cmds" |
| 11964 | fi |
| 11965 | else |
| 11966 | ld_shlibs=no |
| 11967 | fi |
| 11968 | ;; |
| 11969 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11970 | *) |
| 11971 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 11972 | ;; |
| 11973 | esac |
| 11974 | dynamic_linker='Win32 ld.exe' |
| 11975 | # FIXME: first we should search . and the directory the executable is in |
| 11976 | shlibpath_var=PATH |
| 11977 | ;; |
| 11978 | |
| 11979 | darwin* | rhapsody*) |
| 11980 | dynamic_linker="$host_os dyld" |
| 11981 | version_type=darwin |
| 11982 | need_lib_prefix=no |
| 11983 | need_version=no |
| 11984 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 11985 | soname_spec='${libname}${release}${major}$shared_ext' |
| 11986 | shlibpath_overrides_runpath=yes |
| 11987 | shlibpath_var=DYLD_LIBRARY_PATH |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11988 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11989 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 11990 | if test "$GCC" = yes; then |
| 11991 | 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"` |
| 11992 | else |
| 11993 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 11994 | fi |
| 11995 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 11996 | ;; |
| 11997 | |
| 11998 | dgux*) |
| 11999 | version_type=linux |
| 12000 | need_lib_prefix=no |
| 12001 | need_version=no |
| 12002 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 12003 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12004 | shlibpath_var=LD_LIBRARY_PATH |
| 12005 | ;; |
| 12006 | |
| 12007 | freebsd1*) |
| 12008 | dynamic_linker=no |
| 12009 | ;; |
| 12010 | |
| 12011 | kfreebsd*-gnu) |
| 12012 | version_type=linux |
| 12013 | need_lib_prefix=no |
| 12014 | need_version=no |
| 12015 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 12016 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12017 | shlibpath_var=LD_LIBRARY_PATH |
| 12018 | shlibpath_overrides_runpath=no |
| 12019 | hardcode_into_libs=yes |
| 12020 | dynamic_linker='GNU ld.so' |
| 12021 | ;; |
| 12022 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 12023 | freebsd* | dragonfly*) |
| 12024 | # DragonFly does not have aout. When/if they implement a new |
| 12025 | # versioning mechanism, adjust this. |
| 12026 | if test -x /usr/bin/objformat; then |
| 12027 | objformat=`/usr/bin/objformat` |
| 12028 | else |
| 12029 | case $host_os in |
| 12030 | freebsd[123]*) objformat=aout ;; |
| 12031 | *) objformat=elf ;; |
| 12032 | esac |
| 12033 | fi |
| 12034 | # Handle Gentoo/FreeBSD as it was Linux |
| 12035 | case $host_vendor in |
| 12036 | gentoo) |
| 12037 | version_type=linux ;; |
| 12038 | *) |
| 12039 | version_type=freebsd-$objformat ;; |
| 12040 | esac |
| 12041 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 12042 | case $version_type in |
| 12043 | freebsd-elf*) |
| 12044 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 12045 | need_version=no |
| 12046 | need_lib_prefix=no |
| 12047 | ;; |
| 12048 | freebsd-*) |
| 12049 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 12050 | need_version=yes |
| 12051 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 12052 | linux) |
| 12053 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 12054 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12055 | need_lib_prefix=no |
| 12056 | need_version=no |
| 12057 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 12058 | esac |
| 12059 | shlibpath_var=LD_LIBRARY_PATH |
| 12060 | case $host_os in |
| 12061 | freebsd2*) |
| 12062 | shlibpath_overrides_runpath=yes |
| 12063 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 12064 | freebsd3.[01]* | freebsdelf3.[01]*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 12065 | shlibpath_overrides_runpath=yes |
| 12066 | hardcode_into_libs=yes |
| 12067 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 12068 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 12069 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 12070 | shlibpath_overrides_runpath=no |
| 12071 | hardcode_into_libs=yes |
| 12072 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 12073 | freebsd*) # from 4.6 on |
| 12074 | shlibpath_overrides_runpath=yes |
| 12075 | hardcode_into_libs=yes |
| 12076 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 12077 | esac |
| 12078 | ;; |
| 12079 | |
| 12080 | gnu*) |
| 12081 | version_type=linux |
| 12082 | need_lib_prefix=no |
| 12083 | need_version=no |
| 12084 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 12085 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12086 | shlibpath_var=LD_LIBRARY_PATH |
| 12087 | hardcode_into_libs=yes |
| 12088 | ;; |
| 12089 | |
| 12090 | hpux9* | hpux10* | hpux11*) |
| 12091 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 12092 | # link against other versions. |
| 12093 | version_type=sunos |
| 12094 | need_lib_prefix=no |
| 12095 | need_version=no |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 12096 | case $host_cpu in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 12097 | ia64*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 12098 | shrext_cmds='.so' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 12099 | hardcode_into_libs=yes |
| 12100 | dynamic_linker="$host_os dld.so" |
| 12101 | shlibpath_var=LD_LIBRARY_PATH |
| 12102 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 12103 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12104 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12105 | if test "X$HPUX_IA64_MODE" = X32; then |
| 12106 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 12107 | else |
| 12108 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 12109 | fi |
| 12110 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 12111 | ;; |
| 12112 | hppa*64*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 12113 | shrext_cmds='.sl' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 12114 | hardcode_into_libs=yes |
| 12115 | dynamic_linker="$host_os dld.sl" |
| 12116 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 12117 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 12118 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12119 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12120 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 12121 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 12122 | ;; |
| 12123 | *) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 12124 | shrext_cmds='.sl' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 12125 | dynamic_linker="$host_os dld.sl" |
| 12126 | shlibpath_var=SHLIB_PATH |
| 12127 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 12128 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12129 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12130 | ;; |
| 12131 | esac |
| 12132 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 12133 | postinstall_cmds='chmod 555 $lib' |
| 12134 | ;; |
| 12135 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 12136 | interix3*) |
| 12137 | version_type=linux |
| 12138 | need_lib_prefix=no |
| 12139 | need_version=no |
| 12140 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 12141 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12142 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 12143 | shlibpath_var=LD_LIBRARY_PATH |
| 12144 | shlibpath_overrides_runpath=no |
| 12145 | hardcode_into_libs=yes |
| 12146 | ;; |
| 12147 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 12148 | irix5* | irix6* | nonstopux*) |
| 12149 | case $host_os in |
| 12150 | nonstopux*) version_type=nonstopux ;; |
| 12151 | *) |
| 12152 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 12153 | version_type=linux |
| 12154 | else |
| 12155 | version_type=irix |
| 12156 | fi ;; |
| 12157 | esac |
| 12158 | need_lib_prefix=no |
| 12159 | need_version=no |
| 12160 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12161 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 12162 | case $host_os in |
| 12163 | irix5* | nonstopux*) |
| 12164 | libsuff= shlibsuff= |
| 12165 | ;; |
| 12166 | *) |
| 12167 | case $LD in # libtool.m4 will add one of these switches to LD |
| 12168 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 12169 | libsuff= shlibsuff= libmagic=32-bit;; |
| 12170 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 12171 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 12172 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 12173 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 12174 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 12175 | esac |
| 12176 | ;; |
| 12177 | esac |
| 12178 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 12179 | shlibpath_overrides_runpath=no |
| 12180 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 12181 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 12182 | hardcode_into_libs=yes |
| 12183 | ;; |
| 12184 | |
| 12185 | # No shared lib support for Linux oldld, aout, or coff. |
| 12186 | linux*oldld* | linux*aout* | linux*coff*) |
| 12187 | dynamic_linker=no |
| 12188 | ;; |
| 12189 | |
| 12190 | # This must be Linux ELF. |
| 12191 | linux*) |
| 12192 | version_type=linux |
| 12193 | need_lib_prefix=no |
| 12194 | need_version=no |
| 12195 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12196 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12197 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 12198 | shlibpath_var=LD_LIBRARY_PATH |
| 12199 | shlibpath_overrides_runpath=no |
| 12200 | # This implies no fast_install, which is unacceptable. |
| 12201 | # Some rework will be needed to allow for fast_install |
| 12202 | # before this can be enabled. |
| 12203 | hardcode_into_libs=yes |
| 12204 | |
| 12205 | # Append ld.so.conf contents to the search path |
| 12206 | if test -f /etc/ld.so.conf; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 12207 | 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' ' '` |
| 12208 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 12209 | fi |
| 12210 | |
| 12211 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 12212 | # powerpc, because MkLinux only supported shared libraries with the |
| 12213 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 12214 | # most powerpc-linux boxes support dynamic linking these days and |
| 12215 | # people can always --disable-shared, the test was removed, and we |
| 12216 | # assume the GNU/Linux dynamic linker is in use. |
| 12217 | dynamic_linker='GNU/Linux ld.so' |
| 12218 | ;; |
| 12219 | |
| 12220 | knetbsd*-gnu) |
| 12221 | version_type=linux |
| 12222 | need_lib_prefix=no |
| 12223 | need_version=no |
| 12224 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 12225 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12226 | shlibpath_var=LD_LIBRARY_PATH |
| 12227 | shlibpath_overrides_runpath=no |
| 12228 | hardcode_into_libs=yes |
| 12229 | dynamic_linker='GNU ld.so' |
| 12230 | ;; |
| 12231 | |
| 12232 | netbsd*) |
| 12233 | version_type=sunos |
| 12234 | need_lib_prefix=no |
| 12235 | need_version=no |
| 12236 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 12237 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 12238 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 12239 | dynamic_linker='NetBSD (a.out) ld.so' |
| 12240 | else |
| 12241 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 12242 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12243 | dynamic_linker='NetBSD ld.elf_so' |
| 12244 | fi |
| 12245 | shlibpath_var=LD_LIBRARY_PATH |
| 12246 | shlibpath_overrides_runpath=yes |
| 12247 | hardcode_into_libs=yes |
| 12248 | ;; |
| 12249 | |
| 12250 | newsos6) |
| 12251 | version_type=linux |
| 12252 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12253 | shlibpath_var=LD_LIBRARY_PATH |
| 12254 | shlibpath_overrides_runpath=yes |
| 12255 | ;; |
| 12256 | |
| 12257 | nto-qnx*) |
| 12258 | version_type=linux |
| 12259 | need_lib_prefix=no |
| 12260 | need_version=no |
| 12261 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12262 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12263 | shlibpath_var=LD_LIBRARY_PATH |
| 12264 | shlibpath_overrides_runpath=yes |
| 12265 | ;; |
| 12266 | |
| 12267 | openbsd*) |
| 12268 | version_type=sunos |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 12269 | sys_lib_dlsearch_path_spec="/usr/lib" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 12270 | need_lib_prefix=no |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 12271 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 12272 | case $host_os in |
| 12273 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 12274 | *) need_version=no ;; |
| 12275 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 12276 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 12277 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 12278 | shlibpath_var=LD_LIBRARY_PATH |
| 12279 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 12280 | case $host_os in |
| 12281 | openbsd2.[89] | openbsd2.[89].*) |
| 12282 | shlibpath_overrides_runpath=no |
| 12283 | ;; |
| 12284 | *) |
| 12285 | shlibpath_overrides_runpath=yes |
| 12286 | ;; |
| 12287 | esac |
| 12288 | else |
| 12289 | shlibpath_overrides_runpath=yes |
| 12290 | fi |
| 12291 | ;; |
| 12292 | |
| 12293 | os2*) |
| 12294 | libname_spec='$name' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 12295 | shrext_cmds=".dll" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 12296 | need_lib_prefix=no |
| 12297 | library_names_spec='$libname${shared_ext} $libname.a' |
| 12298 | dynamic_linker='OS/2 ld.exe' |
| 12299 | shlibpath_var=LIBPATH |
| 12300 | ;; |
| 12301 | |
| 12302 | osf3* | osf4* | osf5*) |
| 12303 | version_type=osf |
| 12304 | need_lib_prefix=no |
| 12305 | need_version=no |
| 12306 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12307 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12308 | shlibpath_var=LD_LIBRARY_PATH |
| 12309 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 12310 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 12311 | ;; |
| 12312 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 12313 | solaris*) |
| 12314 | version_type=linux |
| 12315 | need_lib_prefix=no |
| 12316 | need_version=no |
| 12317 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12318 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12319 | shlibpath_var=LD_LIBRARY_PATH |
| 12320 | shlibpath_overrides_runpath=yes |
| 12321 | hardcode_into_libs=yes |
| 12322 | # ldd complains unless libraries are executable |
| 12323 | postinstall_cmds='chmod +x $lib' |
| 12324 | ;; |
| 12325 | |
| 12326 | sunos4*) |
| 12327 | version_type=sunos |
| 12328 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 12329 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 12330 | shlibpath_var=LD_LIBRARY_PATH |
| 12331 | shlibpath_overrides_runpath=yes |
| 12332 | if test "$with_gnu_ld" = yes; then |
| 12333 | need_lib_prefix=no |
| 12334 | fi |
| 12335 | need_version=yes |
| 12336 | ;; |
| 12337 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 12338 | sysv4 | sysv4.3*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 12339 | version_type=linux |
| 12340 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12341 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12342 | shlibpath_var=LD_LIBRARY_PATH |
| 12343 | case $host_vendor in |
| 12344 | sni) |
| 12345 | shlibpath_overrides_runpath=no |
| 12346 | need_lib_prefix=no |
| 12347 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 12348 | runpath_var=LD_RUN_PATH |
| 12349 | ;; |
| 12350 | siemens) |
| 12351 | need_lib_prefix=no |
| 12352 | ;; |
| 12353 | motorola) |
| 12354 | need_lib_prefix=no |
| 12355 | need_version=no |
| 12356 | shlibpath_overrides_runpath=no |
| 12357 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 12358 | ;; |
| 12359 | esac |
| 12360 | ;; |
| 12361 | |
| 12362 | sysv4*MP*) |
| 12363 | if test -d /usr/nec ;then |
| 12364 | version_type=linux |
| 12365 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 12366 | soname_spec='$libname${shared_ext}.$major' |
| 12367 | shlibpath_var=LD_LIBRARY_PATH |
| 12368 | fi |
| 12369 | ;; |
| 12370 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 12371 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 12372 | version_type=freebsd-elf |
| 12373 | need_lib_prefix=no |
| 12374 | need_version=no |
| 12375 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 12376 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12377 | shlibpath_var=LD_LIBRARY_PATH |
| 12378 | hardcode_into_libs=yes |
| 12379 | if test "$with_gnu_ld" = yes; then |
| 12380 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 12381 | shlibpath_overrides_runpath=no |
| 12382 | else |
| 12383 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 12384 | shlibpath_overrides_runpath=yes |
| 12385 | case $host_os in |
| 12386 | sco3.2v5*) |
| 12387 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 12388 | ;; |
| 12389 | esac |
| 12390 | fi |
| 12391 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 12392 | ;; |
| 12393 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 12394 | uts4*) |
| 12395 | version_type=linux |
| 12396 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12397 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12398 | shlibpath_var=LD_LIBRARY_PATH |
| 12399 | ;; |
| 12400 | |
| 12401 | *) |
| 12402 | dynamic_linker=no |
| 12403 | ;; |
| 12404 | esac |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12405 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 12406 | echo "${ECHO_T}$dynamic_linker" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 12407 | test "$dynamic_linker" = no && can_build_shared=no |
| 12408 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 12409 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 12410 | if test "$GCC" = yes; then |
| 12411 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 12412 | fi |
| 12413 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12414 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 12415 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 12416 | hardcode_action_CXX= |
| 12417 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 12418 | test -n "$runpath_var_CXX" || \ |
| 12419 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 12420 | |
| 12421 | # We can hardcode non-existant directories. |
| 12422 | if test "$hardcode_direct_CXX" != no && |
| 12423 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 12424 | # have to relink, otherwise we might link with an installed library |
| 12425 | # when we should be linking with a yet-to-be-installed one |
| 12426 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 12427 | test "$hardcode_minus_L_CXX" != no; then |
| 12428 | # Linking always hardcodes the temporary library directory. |
| 12429 | hardcode_action_CXX=relink |
| 12430 | else |
| 12431 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 12432 | hardcode_action_CXX=immediate |
| 12433 | fi |
| 12434 | else |
| 12435 | # We cannot hardcode anything, or else we can only hardcode existing |
| 12436 | # directories. |
| 12437 | hardcode_action_CXX=unsupported |
| 12438 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12439 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
| 12440 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 12441 | |
| 12442 | if test "$hardcode_action_CXX" = relink; then |
| 12443 | # Fast installation is not supported |
| 12444 | enable_fast_install=no |
| 12445 | elif test "$shlibpath_overrides_runpath" = yes || |
| 12446 | test "$enable_shared" = no; then |
| 12447 | # Fast installation is not necessary |
| 12448 | enable_fast_install=needless |
| 12449 | fi |
| 12450 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 12451 | |
| 12452 | # The else clause should only fire when bootstrapping the |
| 12453 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 12454 | # with your package, and you will get complaints that there are |
| 12455 | # no rules to generate ltmain.sh. |
| 12456 | if test -f "$ltmain"; then |
| 12457 | # See if we are running on zsh, and set the options which allow our commands through |
| 12458 | # without removal of \ escapes. |
| 12459 | if test -n "${ZSH_VERSION+set}" ; then |
| 12460 | setopt NO_GLOB_SUBST |
| 12461 | fi |
| 12462 | # Now quote all the things that may contain metacharacters while being |
| 12463 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 12464 | # variables and quote the copies for generation of the libtool script. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 12465 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 12466 | SED SHELL STRIP \ |
| 12467 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 12468 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 12469 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 12470 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 12471 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 12472 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 12473 | old_postinstall_cmds old_postuninstall_cmds \ |
| 12474 | compiler_CXX \ |
| 12475 | CC_CXX \ |
| 12476 | LD_CXX \ |
| 12477 | lt_prog_compiler_wl_CXX \ |
| 12478 | lt_prog_compiler_pic_CXX \ |
| 12479 | lt_prog_compiler_static_CXX \ |
| 12480 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 12481 | export_dynamic_flag_spec_CXX \ |
| 12482 | thread_safe_flag_spec_CXX \ |
| 12483 | whole_archive_flag_spec_CXX \ |
| 12484 | enable_shared_with_static_runtimes_CXX \ |
| 12485 | old_archive_cmds_CXX \ |
| 12486 | old_archive_from_new_cmds_CXX \ |
| 12487 | predep_objects_CXX \ |
| 12488 | postdep_objects_CXX \ |
| 12489 | predeps_CXX \ |
| 12490 | postdeps_CXX \ |
| 12491 | compiler_lib_search_path_CXX \ |
| 12492 | archive_cmds_CXX \ |
| 12493 | archive_expsym_cmds_CXX \ |
| 12494 | postinstall_cmds_CXX \ |
| 12495 | postuninstall_cmds_CXX \ |
| 12496 | old_archive_from_expsyms_cmds_CXX \ |
| 12497 | allow_undefined_flag_CXX \ |
| 12498 | no_undefined_flag_CXX \ |
| 12499 | export_symbols_cmds_CXX \ |
| 12500 | hardcode_libdir_flag_spec_CXX \ |
| 12501 | hardcode_libdir_flag_spec_ld_CXX \ |
| 12502 | hardcode_libdir_separator_CXX \ |
| 12503 | hardcode_automatic_CXX \ |
| 12504 | module_cmds_CXX \ |
| 12505 | module_expsym_cmds_CXX \ |
| 12506 | lt_cv_prog_compiler_c_o_CXX \ |
| 12507 | exclude_expsyms_CXX \ |
| 12508 | include_expsyms_CXX; do |
| 12509 | |
| 12510 | case $var in |
| 12511 | old_archive_cmds_CXX | \ |
| 12512 | old_archive_from_new_cmds_CXX | \ |
| 12513 | archive_cmds_CXX | \ |
| 12514 | archive_expsym_cmds_CXX | \ |
| 12515 | module_cmds_CXX | \ |
| 12516 | module_expsym_cmds_CXX | \ |
| 12517 | old_archive_from_expsyms_cmds_CXX | \ |
| 12518 | export_symbols_cmds_CXX | \ |
| 12519 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 12520 | postinstall_cmds | postuninstall_cmds | \ |
| 12521 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 12522 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 12523 | # Double-quote double-evaled strings. |
| 12524 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 12525 | ;; |
| 12526 | *) |
| 12527 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 12528 | ;; |
| 12529 | esac |
| 12530 | done |
| 12531 | |
| 12532 | case $lt_echo in |
| 12533 | *'\$0 --fallback-echo"') |
| 12534 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 12535 | ;; |
| 12536 | esac |
| 12537 | |
| 12538 | cfgfile="$ofile" |
| 12539 | |
| 12540 | cat <<__EOF__ >> "$cfgfile" |
| 12541 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 12542 | |
| 12543 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 12544 | |
| 12545 | # Shell to use when invoking shell scripts. |
| 12546 | SHELL=$lt_SHELL |
| 12547 | |
| 12548 | # Whether or not to build shared libraries. |
| 12549 | build_libtool_libs=$enable_shared |
| 12550 | |
| 12551 | # Whether or not to build static libraries. |
| 12552 | build_old_libs=$enable_static |
| 12553 | |
| 12554 | # Whether or not to add -lc for building shared libraries. |
| 12555 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 12556 | |
| 12557 | # Whether or not to disallow shared libs when runtime libs are static |
| 12558 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 12559 | |
| 12560 | # Whether or not to optimize for fast installation. |
| 12561 | fast_install=$enable_fast_install |
| 12562 | |
| 12563 | # The host system. |
| 12564 | host_alias=$host_alias |
| 12565 | host=$host |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 12566 | host_os=$host_os |
| 12567 | |
| 12568 | # The build system. |
| 12569 | build_alias=$build_alias |
| 12570 | build=$build |
| 12571 | build_os=$build_os |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 12572 | |
| 12573 | # An echo program that does not interpret backslashes. |
| 12574 | echo=$lt_echo |
| 12575 | |
| 12576 | # The archiver. |
| 12577 | AR=$lt_AR |
| 12578 | AR_FLAGS=$lt_AR_FLAGS |
| 12579 | |
| 12580 | # A C compiler. |
| 12581 | LTCC=$lt_LTCC |
| 12582 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 12583 | # LTCC compiler flags. |
| 12584 | LTCFLAGS=$lt_LTCFLAGS |
| 12585 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 12586 | # A language-specific compiler. |
| 12587 | CC=$lt_compiler_CXX |
| 12588 | |
| 12589 | # Is the compiler the GNU C compiler? |
| 12590 | with_gcc=$GCC_CXX |
| 12591 | |
| 12592 | # An ERE matcher. |
| 12593 | EGREP=$lt_EGREP |
| 12594 | |
| 12595 | # The linker used to build libraries. |
| 12596 | LD=$lt_LD_CXX |
| 12597 | |
| 12598 | # Whether we need hard or soft links. |
| 12599 | LN_S=$lt_LN_S |
| 12600 | |
| 12601 | # A BSD-compatible nm program. |
| 12602 | NM=$lt_NM |
| 12603 | |
| 12604 | # A symbol stripping program |
| 12605 | STRIP=$lt_STRIP |
| 12606 | |
| 12607 | # Used to examine libraries when file_magic_cmd begins "file" |
| 12608 | MAGIC_CMD=$MAGIC_CMD |
| 12609 | |
| 12610 | # Used on cygwin: DLL creation program. |
| 12611 | DLLTOOL="$DLLTOOL" |
| 12612 | |
| 12613 | # Used on cygwin: object dumper. |
| 12614 | OBJDUMP="$OBJDUMP" |
| 12615 | |
| 12616 | # Used on cygwin: assembler. |
| 12617 | AS="$AS" |
| 12618 | |
| 12619 | # The name of the directory that contains temporary libtool files. |
| 12620 | objdir=$objdir |
| 12621 | |
| 12622 | # How to create reloadable object files. |
| 12623 | reload_flag=$lt_reload_flag |
| 12624 | reload_cmds=$lt_reload_cmds |
| 12625 | |
| 12626 | # How to pass a linker flag through the compiler. |
| 12627 | wl=$lt_lt_prog_compiler_wl_CXX |
| 12628 | |
| 12629 | # Object file suffix (normally "o"). |
| 12630 | objext="$ac_objext" |
| 12631 | |
| 12632 | # Old archive suffix (normally "a"). |
| 12633 | libext="$libext" |
| 12634 | |
| 12635 | # Shared library suffix (normally ".so"). |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 12636 | shrext_cmds='$shrext_cmds' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 12637 | |
| 12638 | # Executable file suffix (normally ""). |
| 12639 | exeext="$exeext" |
| 12640 | |
| 12641 | # Additional compiler flags for building library objects. |
| 12642 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 12643 | pic_mode=$pic_mode |
| 12644 | |
| 12645 | # What is the maximum length of a command? |
| 12646 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 12647 | |
| 12648 | # Does compiler simultaneously support -c and -o options? |
| 12649 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 12650 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 12651 | # Must we lock files when doing compilation? |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 12652 | need_locks=$lt_need_locks |
| 12653 | |
| 12654 | # Do we need the lib prefix for modules? |
| 12655 | need_lib_prefix=$need_lib_prefix |
| 12656 | |
| 12657 | # Do we need a version for libraries? |
| 12658 | need_version=$need_version |
| 12659 | |
| 12660 | # Whether dlopen is supported. |
| 12661 | dlopen_support=$enable_dlopen |
| 12662 | |
| 12663 | # Whether dlopen of programs is supported. |
| 12664 | dlopen_self=$enable_dlopen_self |
| 12665 | |
| 12666 | # Whether dlopen of statically linked programs is supported. |
| 12667 | dlopen_self_static=$enable_dlopen_self_static |
| 12668 | |
| 12669 | # Compiler flag to prevent dynamic linking. |
| 12670 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 12671 | |
| 12672 | # Compiler flag to turn off builtin functions. |
| 12673 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 12674 | |
| 12675 | # Compiler flag to allow reflexive dlopens. |
| 12676 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 12677 | |
| 12678 | # Compiler flag to generate shared objects directly from archives. |
| 12679 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 12680 | |
| 12681 | # Compiler flag to generate thread-safe objects. |
| 12682 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
| 12683 | |
| 12684 | # Library versioning type. |
| 12685 | version_type=$version_type |
| 12686 | |
| 12687 | # Format of library name prefix. |
| 12688 | libname_spec=$lt_libname_spec |
| 12689 | |
| 12690 | # List of archive names. First name is the real one, the rest are links. |
| 12691 | # The last name is the one that the linker finds with -lNAME. |
| 12692 | library_names_spec=$lt_library_names_spec |
| 12693 | |
| 12694 | # The coded name of the library, if different from the real name. |
| 12695 | soname_spec=$lt_soname_spec |
| 12696 | |
| 12697 | # Commands used to build and install an old-style archive. |
| 12698 | RANLIB=$lt_RANLIB |
| 12699 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 12700 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 12701 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 12702 | |
| 12703 | # Create an old-style archive from a shared archive. |
| 12704 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 12705 | |
| 12706 | # Create a temporary old-style archive to link instead of a shared archive. |
| 12707 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 12708 | |
| 12709 | # Commands used to build and install a shared archive. |
| 12710 | archive_cmds=$lt_archive_cmds_CXX |
| 12711 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 12712 | postinstall_cmds=$lt_postinstall_cmds |
| 12713 | postuninstall_cmds=$lt_postuninstall_cmds |
| 12714 | |
| 12715 | # Commands used to build a loadable module (assumed same as above if empty) |
| 12716 | module_cmds=$lt_module_cmds_CXX |
| 12717 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 12718 | |
| 12719 | # Commands to strip libraries. |
| 12720 | old_striplib=$lt_old_striplib |
| 12721 | striplib=$lt_striplib |
| 12722 | |
| 12723 | # Dependencies to place before the objects being linked to create a |
| 12724 | # shared library. |
| 12725 | predep_objects=$lt_predep_objects_CXX |
| 12726 | |
| 12727 | # Dependencies to place after the objects being linked to create a |
| 12728 | # shared library. |
| 12729 | postdep_objects=$lt_postdep_objects_CXX |
| 12730 | |
| 12731 | # Dependencies to place before the objects being linked to create a |
| 12732 | # shared library. |
| 12733 | predeps=$lt_predeps_CXX |
| 12734 | |
| 12735 | # Dependencies to place after the objects being linked to create a |
| 12736 | # shared library. |
| 12737 | postdeps=$lt_postdeps_CXX |
| 12738 | |
| 12739 | # The library search path used internally by the compiler when linking |
| 12740 | # a shared library. |
| 12741 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 12742 | |
| 12743 | # Method to check whether dependent libraries are shared objects. |
| 12744 | deplibs_check_method=$lt_deplibs_check_method |
| 12745 | |
| 12746 | # Command to use when deplibs_check_method == file_magic. |
| 12747 | file_magic_cmd=$lt_file_magic_cmd |
| 12748 | |
| 12749 | # Flag that allows shared libraries with undefined symbols to be built. |
| 12750 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 12751 | |
| 12752 | # Flag that forces no undefined symbols. |
| 12753 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 12754 | |
| 12755 | # Commands used to finish a libtool library installation in a directory. |
| 12756 | finish_cmds=$lt_finish_cmds |
| 12757 | |
| 12758 | # Same as above, but a single script fragment to be evaled but not shown. |
| 12759 | finish_eval=$lt_finish_eval |
| 12760 | |
| 12761 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 12762 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 12763 | |
| 12764 | # Transform the output of nm in a proper C declaration |
| 12765 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 12766 | |
| 12767 | # Transform the output of nm in a C name address pair |
| 12768 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 12769 | |
| 12770 | # This is the shared library runtime path variable. |
| 12771 | runpath_var=$runpath_var |
| 12772 | |
| 12773 | # This is the shared library path variable. |
| 12774 | shlibpath_var=$shlibpath_var |
| 12775 | |
| 12776 | # Is shlibpath searched before the hard-coded library search path? |
| 12777 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 12778 | |
| 12779 | # How to hardcode a shared library path into an executable. |
| 12780 | hardcode_action=$hardcode_action_CXX |
| 12781 | |
| 12782 | # Whether we should hardcode library paths into libraries. |
| 12783 | hardcode_into_libs=$hardcode_into_libs |
| 12784 | |
| 12785 | # Flag to hardcode \$libdir into a binary during linking. |
| 12786 | # This must work even if \$libdir does not exist. |
| 12787 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 12788 | |
| 12789 | # If ld is used when linking, flag to hardcode \$libdir into |
| 12790 | # a binary during linking. This must work even if \$libdir does |
| 12791 | # not exist. |
| 12792 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 12793 | |
| 12794 | # Whether we need a single -rpath flag with a separated argument. |
| 12795 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 12796 | |
| 12797 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 12798 | # resulting binary. |
| 12799 | hardcode_direct=$hardcode_direct_CXX |
| 12800 | |
| 12801 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 12802 | # resulting binary. |
| 12803 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 12804 | |
| 12805 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 12806 | # the resulting binary. |
| 12807 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 12808 | |
| 12809 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 12810 | # and all subsequent libraries and executables linked against it. |
| 12811 | hardcode_automatic=$hardcode_automatic_CXX |
| 12812 | |
| 12813 | # Variables whose values should be saved in libtool wrapper scripts and |
| 12814 | # restored at relink time. |
| 12815 | variables_saved_for_relink="$variables_saved_for_relink" |
| 12816 | |
| 12817 | # Whether libtool must link a program against all its dependency libraries. |
| 12818 | link_all_deplibs=$link_all_deplibs_CXX |
| 12819 | |
| 12820 | # Compile-time system search path for libraries |
| 12821 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 12822 | |
| 12823 | # Run-time system search path for libraries |
| 12824 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 12825 | |
| 12826 | # Fix the shell variable \$srcfile for the compiler. |
| 12827 | fix_srcfile_path="$fix_srcfile_path_CXX" |
| 12828 | |
| 12829 | # Set to yes if exported symbols are required. |
| 12830 | always_export_symbols=$always_export_symbols_CXX |
| 12831 | |
| 12832 | # The commands to list exported symbols. |
| 12833 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 12834 | |
| 12835 | # The commands to extract the exported symbol list from a shared archive. |
| 12836 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 12837 | |
| 12838 | # Symbols that should not be listed in the preloaded symbols. |
| 12839 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 12840 | |
| 12841 | # Symbols that must always be exported. |
| 12842 | include_expsyms=$lt_include_expsyms_CXX |
| 12843 | |
| 12844 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 12845 | |
| 12846 | __EOF__ |
| 12847 | |
| 12848 | |
| 12849 | else |
| 12850 | # If there is no Makefile yet, we rely on a make rule to execute |
| 12851 | # `config.status --recheck' to rerun these tests and create the |
| 12852 | # libtool script then. |
| 12853 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 12854 | if test -f "$ltmain_in"; then |
| 12855 | test -f Makefile && make "$ltmain" |
| 12856 | fi |
| 12857 | fi |
| 12858 | |
| 12859 | |
| 12860 | ac_ext=c |
| 12861 | ac_cpp='$CPP $CPPFLAGS' |
| 12862 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12863 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12864 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12865 | |
| 12866 | CC=$lt_save_CC |
| 12867 | LDCXX=$LD |
| 12868 | LD=$lt_save_LD |
| 12869 | GCC=$lt_save_GCC |
| 12870 | with_gnu_ldcxx=$with_gnu_ld |
| 12871 | with_gnu_ld=$lt_save_with_gnu_ld |
| 12872 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 12873 | lt_cv_path_LD=$lt_save_path_LD |
| 12874 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 12875 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 12876 | |
| 12877 | else |
| 12878 | tagname="" |
| 12879 | fi |
| 12880 | ;; |
| 12881 | |
| 12882 | F77) |
| 12883 | if test -n "$F77" && test "X$F77" != "Xno"; then |
| 12884 | |
| 12885 | ac_ext=f |
| 12886 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 12887 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12888 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 12889 | |
| 12890 | |
| 12891 | archive_cmds_need_lc_F77=no |
| 12892 | allow_undefined_flag_F77= |
| 12893 | always_export_symbols_F77=no |
| 12894 | archive_expsym_cmds_F77= |
| 12895 | export_dynamic_flag_spec_F77= |
| 12896 | hardcode_direct_F77=no |
| 12897 | hardcode_libdir_flag_spec_F77= |
| 12898 | hardcode_libdir_flag_spec_ld_F77= |
| 12899 | hardcode_libdir_separator_F77= |
| 12900 | hardcode_minus_L_F77=no |
| 12901 | hardcode_automatic_F77=no |
| 12902 | module_cmds_F77= |
| 12903 | module_expsym_cmds_F77= |
| 12904 | link_all_deplibs_F77=unknown |
| 12905 | old_archive_cmds_F77=$old_archive_cmds |
| 12906 | no_undefined_flag_F77= |
| 12907 | whole_archive_flag_spec_F77= |
| 12908 | enable_shared_with_static_runtimes_F77=no |
| 12909 | |
| 12910 | # Source file extension for f77 test sources. |
| 12911 | ac_ext=f |
| 12912 | |
| 12913 | # Object file extension for compiled f77 test sources. |
| 12914 | objext=o |
| 12915 | objext_F77=$objext |
| 12916 | |
| 12917 | # Code to be used in simple compile tests |
| 12918 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
| 12919 | |
| 12920 | # Code to be used in simple link tests |
| 12921 | lt_simple_link_test_code=" program t\n end\n" |
| 12922 | |
| 12923 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 12924 | |
| 12925 | # If no C compiler was specified, use CC. |
| 12926 | LTCC=${LTCC-"$CC"} |
| 12927 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 12928 | # If no C compiler flags were specified, use CFLAGS. |
| 12929 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 12930 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 12931 | # Allow CC to be a program name with arguments. |
| 12932 | compiler=$CC |
| 12933 | |
| 12934 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 12935 | # save warnings/boilerplate of simple test code |
| 12936 | ac_outfile=conftest.$ac_objext |
| 12937 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 12938 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 12939 | _lt_compiler_boilerplate=`cat conftest.err` |
| 12940 | $rm conftest* |
| 12941 | |
| 12942 | ac_outfile=conftest.$ac_objext |
| 12943 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 12944 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 12945 | _lt_linker_boilerplate=`cat conftest.err` |
| 12946 | $rm conftest* |
| 12947 | |
| 12948 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 12949 | # Allow CC to be a program name with arguments. |
| 12950 | lt_save_CC="$CC" |
| 12951 | CC=${F77-"f77"} |
| 12952 | compiler=$CC |
| 12953 | compiler_F77=$CC |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 12954 | for cc_temp in $compiler""; do |
| 12955 | case $cc_temp in |
| 12956 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 12957 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 12958 | \-*) ;; |
| 12959 | *) break;; |
| 12960 | esac |
| 12961 | done |
| 12962 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 12963 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 12964 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12965 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 12966 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
| 12967 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 12968 | echo "${ECHO_T}$can_build_shared" >&6; } |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 12969 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12970 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 12971 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 12972 | test "$can_build_shared" = "no" && enable_shared=no |
| 12973 | |
| 12974 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 12975 | # are all built from PIC. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 12976 | case $host_os in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 12977 | aix3*) |
| 12978 | test "$enable_shared" = yes && enable_static=no |
| 12979 | if test -n "$RANLIB"; then |
| 12980 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 12981 | postinstall_cmds='$RANLIB $lib' |
| 12982 | fi |
| 12983 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 12984 | aix4* | aix5*) |
| 12985 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 12986 | test "$enable_shared" = yes && enable_static=no |
| 12987 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 12988 | ;; |
| 12989 | esac |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12990 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 12991 | echo "${ECHO_T}$enable_shared" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 12992 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12993 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 12994 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 12995 | # Make sure either enable_shared or enable_static is yes. |
| 12996 | test "$enable_shared" = yes || enable_static=yes |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12997 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 12998 | echo "${ECHO_T}$enable_static" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 12999 | |
| 13000 | GCC_F77="$G77" |
| 13001 | LD_F77="$LD" |
| 13002 | |
| 13003 | lt_prog_compiler_wl_F77= |
| 13004 | lt_prog_compiler_pic_F77= |
| 13005 | lt_prog_compiler_static_F77= |
| 13006 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 13007 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 13008 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13009 | |
| 13010 | if test "$GCC" = yes; then |
| 13011 | lt_prog_compiler_wl_F77='-Wl,' |
| 13012 | lt_prog_compiler_static_F77='-static' |
| 13013 | |
| 13014 | case $host_os in |
| 13015 | aix*) |
| 13016 | # All AIX code is PIC. |
| 13017 | if test "$host_cpu" = ia64; then |
| 13018 | # AIX 5 now supports IA64 processor |
| 13019 | lt_prog_compiler_static_F77='-Bstatic' |
| 13020 | fi |
| 13021 | ;; |
| 13022 | |
| 13023 | amigaos*) |
| 13024 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 13025 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 13026 | # like `-m68040'. |
| 13027 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
| 13028 | ;; |
| 13029 | |
| 13030 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 13031 | # PIC is the default for these OSes. |
| 13032 | ;; |
| 13033 | |
| 13034 | mingw* | pw32* | os2*) |
| 13035 | # This hack is so that the source file can tell whether it is being |
| 13036 | # built for inclusion in a dll (and should export symbols for example). |
| 13037 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 13038 | ;; |
| 13039 | |
| 13040 | darwin* | rhapsody*) |
| 13041 | # PIC is the default on this platform |
| 13042 | # Common symbols not allowed in MH_DYLIB files |
| 13043 | lt_prog_compiler_pic_F77='-fno-common' |
| 13044 | ;; |
| 13045 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13046 | interix3*) |
| 13047 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 13048 | # Instead, we relocate shared libraries at runtime. |
| 13049 | ;; |
| 13050 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13051 | msdosdjgpp*) |
| 13052 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 13053 | # on systems that don't support them. |
| 13054 | lt_prog_compiler_can_build_shared_F77=no |
| 13055 | enable_shared=no |
| 13056 | ;; |
| 13057 | |
| 13058 | sysv4*MP*) |
| 13059 | if test -d /usr/nec; then |
| 13060 | lt_prog_compiler_pic_F77=-Kconform_pic |
| 13061 | fi |
| 13062 | ;; |
| 13063 | |
| 13064 | hpux*) |
| 13065 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 13066 | # not for PA HP-UX. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13067 | case $host_cpu in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13068 | hppa*64*|ia64*) |
| 13069 | # +Z the default |
| 13070 | ;; |
| 13071 | *) |
| 13072 | lt_prog_compiler_pic_F77='-fPIC' |
| 13073 | ;; |
| 13074 | esac |
| 13075 | ;; |
| 13076 | |
| 13077 | *) |
| 13078 | lt_prog_compiler_pic_F77='-fPIC' |
| 13079 | ;; |
| 13080 | esac |
| 13081 | else |
| 13082 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 13083 | case $host_os in |
| 13084 | aix*) |
| 13085 | lt_prog_compiler_wl_F77='-Wl,' |
| 13086 | if test "$host_cpu" = ia64; then |
| 13087 | # AIX 5 now supports IA64 processor |
| 13088 | lt_prog_compiler_static_F77='-Bstatic' |
| 13089 | else |
| 13090 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
| 13091 | fi |
| 13092 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13093 | darwin*) |
| 13094 | # PIC is the default on this platform |
| 13095 | # Common symbols not allowed in MH_DYLIB files |
| 13096 | case $cc_basename in |
| 13097 | xlc*) |
| 13098 | lt_prog_compiler_pic_F77='-qnocommon' |
| 13099 | lt_prog_compiler_wl_F77='-Wl,' |
| 13100 | ;; |
| 13101 | esac |
| 13102 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13103 | |
| 13104 | mingw* | pw32* | os2*) |
| 13105 | # This hack is so that the source file can tell whether it is being |
| 13106 | # built for inclusion in a dll (and should export symbols for example). |
| 13107 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 13108 | ;; |
| 13109 | |
| 13110 | hpux9* | hpux10* | hpux11*) |
| 13111 | lt_prog_compiler_wl_F77='-Wl,' |
| 13112 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 13113 | # not for PA HP-UX. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13114 | case $host_cpu in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13115 | hppa*64*|ia64*) |
| 13116 | # +Z the default |
| 13117 | ;; |
| 13118 | *) |
| 13119 | lt_prog_compiler_pic_F77='+Z' |
| 13120 | ;; |
| 13121 | esac |
| 13122 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 13123 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
| 13124 | ;; |
| 13125 | |
| 13126 | irix5* | irix6* | nonstopux*) |
| 13127 | lt_prog_compiler_wl_F77='-Wl,' |
| 13128 | # PIC (with -KPIC) is the default. |
| 13129 | lt_prog_compiler_static_F77='-non_shared' |
| 13130 | ;; |
| 13131 | |
| 13132 | newsos6) |
| 13133 | lt_prog_compiler_pic_F77='-KPIC' |
| 13134 | lt_prog_compiler_static_F77='-Bstatic' |
| 13135 | ;; |
| 13136 | |
| 13137 | linux*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13138 | case $cc_basename in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13139 | icc* | ecc*) |
| 13140 | lt_prog_compiler_wl_F77='-Wl,' |
| 13141 | lt_prog_compiler_pic_F77='-KPIC' |
| 13142 | lt_prog_compiler_static_F77='-static' |
| 13143 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13144 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 13145 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 13146 | # which looks to be a dead project) |
| 13147 | lt_prog_compiler_wl_F77='-Wl,' |
| 13148 | lt_prog_compiler_pic_F77='-fpic' |
| 13149 | lt_prog_compiler_static_F77='-Bstatic' |
| 13150 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13151 | ccc*) |
| 13152 | lt_prog_compiler_wl_F77='-Wl,' |
| 13153 | # All Alpha code is PIC. |
| 13154 | lt_prog_compiler_static_F77='-non_shared' |
| 13155 | ;; |
| 13156 | esac |
| 13157 | ;; |
| 13158 | |
| 13159 | osf3* | osf4* | osf5*) |
| 13160 | lt_prog_compiler_wl_F77='-Wl,' |
| 13161 | # All OSF/1 code is PIC. |
| 13162 | lt_prog_compiler_static_F77='-non_shared' |
| 13163 | ;; |
| 13164 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13165 | solaris*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13166 | lt_prog_compiler_pic_F77='-KPIC' |
| 13167 | lt_prog_compiler_static_F77='-Bstatic' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13168 | case $cc_basename in |
| 13169 | f77* | f90* | f95*) |
| 13170 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
| 13171 | *) |
| 13172 | lt_prog_compiler_wl_F77='-Wl,';; |
| 13173 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13174 | ;; |
| 13175 | |
| 13176 | sunos4*) |
| 13177 | lt_prog_compiler_wl_F77='-Qoption ld ' |
| 13178 | lt_prog_compiler_pic_F77='-PIC' |
| 13179 | lt_prog_compiler_static_F77='-Bstatic' |
| 13180 | ;; |
| 13181 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13182 | sysv4 | sysv4.2uw2* | sysv4.3*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13183 | lt_prog_compiler_wl_F77='-Wl,' |
| 13184 | lt_prog_compiler_pic_F77='-KPIC' |
| 13185 | lt_prog_compiler_static_F77='-Bstatic' |
| 13186 | ;; |
| 13187 | |
| 13188 | sysv4*MP*) |
| 13189 | if test -d /usr/nec ;then |
| 13190 | lt_prog_compiler_pic_F77='-Kconform_pic' |
| 13191 | lt_prog_compiler_static_F77='-Bstatic' |
| 13192 | fi |
| 13193 | ;; |
| 13194 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13195 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 13196 | lt_prog_compiler_wl_F77='-Wl,' |
| 13197 | lt_prog_compiler_pic_F77='-KPIC' |
| 13198 | lt_prog_compiler_static_F77='-Bstatic' |
| 13199 | ;; |
| 13200 | |
| 13201 | unicos*) |
| 13202 | lt_prog_compiler_wl_F77='-Wl,' |
| 13203 | lt_prog_compiler_can_build_shared_F77=no |
| 13204 | ;; |
| 13205 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13206 | uts4*) |
| 13207 | lt_prog_compiler_pic_F77='-pic' |
| 13208 | lt_prog_compiler_static_F77='-Bstatic' |
| 13209 | ;; |
| 13210 | |
| 13211 | *) |
| 13212 | lt_prog_compiler_can_build_shared_F77=no |
| 13213 | ;; |
| 13214 | esac |
| 13215 | fi |
| 13216 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 13217 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
| 13218 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13219 | |
| 13220 | # |
| 13221 | # Check to make sure the PIC flag actually works. |
| 13222 | # |
| 13223 | if test -n "$lt_prog_compiler_pic_F77"; then |
| 13224 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 13225 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
| 13226 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13227 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
| 13228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13229 | else |
| 13230 | lt_prog_compiler_pic_works_F77=no |
| 13231 | ac_outfile=conftest.$ac_objext |
| 13232 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 13233 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
| 13234 | # Insert the option either (1) after the last *FLAGS variable, or |
| 13235 | # (2) before a word containing "conftest.", or (3) at the end. |
| 13236 | # Note that $ac_compile itself does not contain backslashes and begins |
| 13237 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 13238 | # The option is referenced via a variable to avoid confusing sed. |
| 13239 | lt_compile=`echo "$ac_compile" | $SED \ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13240 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13241 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 13242 | -e 's:$: $lt_compiler_flag:'` |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame^] | 13243 | (eval echo "\"\$as_me:13243: $lt_compile\"" >&5) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13244 | (eval "$lt_compile" 2>conftest.err) |
| 13245 | ac_status=$? |
| 13246 | cat conftest.err >&5 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame^] | 13247 | echo "$as_me:13247: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13248 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 13249 | # The compiler can only warn and ignore the option if not recognized |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13250 | # So say no if there are warnings other than the usual output. |
| 13251 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 13252 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 13253 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13254 | lt_prog_compiler_pic_works_F77=yes |
| 13255 | fi |
| 13256 | fi |
| 13257 | $rm conftest* |
| 13258 | |
| 13259 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 13260 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
| 13261 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13262 | |
| 13263 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
| 13264 | case $lt_prog_compiler_pic_F77 in |
| 13265 | "" | " "*) ;; |
| 13266 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
| 13267 | esac |
| 13268 | else |
| 13269 | lt_prog_compiler_pic_F77= |
| 13270 | lt_prog_compiler_can_build_shared_F77=no |
| 13271 | fi |
| 13272 | |
| 13273 | fi |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13274 | case $host_os in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13275 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 13276 | *djgpp*) |
| 13277 | lt_prog_compiler_pic_F77= |
| 13278 | ;; |
| 13279 | *) |
| 13280 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
| 13281 | ;; |
| 13282 | esac |
| 13283 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13284 | # |
| 13285 | # Check to make sure the static flag actually works. |
| 13286 | # |
| 13287 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 13288 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 13289 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13290 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
| 13291 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13292 | else |
| 13293 | lt_prog_compiler_static_works_F77=no |
| 13294 | save_LDFLAGS="$LDFLAGS" |
| 13295 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 13296 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 13297 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 13298 | # The linker can only warn and ignore the option if not recognized |
| 13299 | # So say no if there are warnings |
| 13300 | if test -s conftest.err; then |
| 13301 | # Append any errors to the config.log. |
| 13302 | cat conftest.err 1>&5 |
| 13303 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 13304 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 13305 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 13306 | lt_prog_compiler_static_works_F77=yes |
| 13307 | fi |
| 13308 | else |
| 13309 | lt_prog_compiler_static_works_F77=yes |
| 13310 | fi |
| 13311 | fi |
| 13312 | $rm conftest* |
| 13313 | LDFLAGS="$save_LDFLAGS" |
| 13314 | |
| 13315 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 13316 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
| 13317 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13318 | |
| 13319 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
| 13320 | : |
| 13321 | else |
| 13322 | lt_prog_compiler_static_F77= |
| 13323 | fi |
| 13324 | |
| 13325 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 13326 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 13327 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13328 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
| 13329 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13330 | else |
| 13331 | lt_cv_prog_compiler_c_o_F77=no |
| 13332 | $rm -r conftest 2>/dev/null |
| 13333 | mkdir conftest |
| 13334 | cd conftest |
| 13335 | mkdir out |
| 13336 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 13337 | |
| 13338 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 13339 | # Insert the option either (1) after the last *FLAGS variable, or |
| 13340 | # (2) before a word containing "conftest.", or (3) at the end. |
| 13341 | # Note that $ac_compile itself does not contain backslashes and begins |
| 13342 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 13343 | lt_compile=`echo "$ac_compile" | $SED \ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13344 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13345 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 13346 | -e 's:$: $lt_compiler_flag:'` |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame^] | 13347 | (eval echo "\"\$as_me:13347: $lt_compile\"" >&5) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13348 | (eval "$lt_compile" 2>out/conftest.err) |
| 13349 | ac_status=$? |
| 13350 | cat out/conftest.err >&5 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame^] | 13351 | echo "$as_me:13351: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13352 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 13353 | then |
| 13354 | # The compiler can only warn and ignore the option if not recognized |
| 13355 | # So say no if there are warnings |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13356 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 13357 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 13358 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13359 | lt_cv_prog_compiler_c_o_F77=yes |
| 13360 | fi |
| 13361 | fi |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13362 | chmod u+w . 2>&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13363 | $rm conftest* |
| 13364 | # SGI C++ compiler will create directory out/ii_files/ for |
| 13365 | # template instantiation |
| 13366 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 13367 | $rm out/* && rmdir out |
| 13368 | cd .. |
| 13369 | rmdir conftest |
| 13370 | $rm conftest* |
| 13371 | |
| 13372 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 13373 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
| 13374 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13375 | |
| 13376 | |
| 13377 | hard_links="nottested" |
| 13378 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
| 13379 | # do not overwrite the value of need_locks provided by the user |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 13380 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 13381 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13382 | hard_links=yes |
| 13383 | $rm conftest* |
| 13384 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 13385 | touch conftest.a |
| 13386 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 13387 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 13388 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 13389 | echo "${ECHO_T}$hard_links" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13390 | if test "$hard_links" = no; then |
| 13391 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 13392 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 13393 | need_locks=warn |
| 13394 | fi |
| 13395 | else |
| 13396 | need_locks=no |
| 13397 | fi |
| 13398 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 13399 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 13400 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13401 | |
| 13402 | runpath_var= |
| 13403 | allow_undefined_flag_F77= |
| 13404 | enable_shared_with_static_runtimes_F77=no |
| 13405 | archive_cmds_F77= |
| 13406 | archive_expsym_cmds_F77= |
| 13407 | old_archive_From_new_cmds_F77= |
| 13408 | old_archive_from_expsyms_cmds_F77= |
| 13409 | export_dynamic_flag_spec_F77= |
| 13410 | whole_archive_flag_spec_F77= |
| 13411 | thread_safe_flag_spec_F77= |
| 13412 | hardcode_libdir_flag_spec_F77= |
| 13413 | hardcode_libdir_flag_spec_ld_F77= |
| 13414 | hardcode_libdir_separator_F77= |
| 13415 | hardcode_direct_F77=no |
| 13416 | hardcode_minus_L_F77=no |
| 13417 | hardcode_shlibpath_var_F77=unsupported |
| 13418 | link_all_deplibs_F77=unknown |
| 13419 | hardcode_automatic_F77=no |
| 13420 | module_cmds_F77= |
| 13421 | module_expsym_cmds_F77= |
| 13422 | always_export_symbols_F77=no |
| 13423 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 13424 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 13425 | # included in the symbol list |
| 13426 | include_expsyms_F77= |
| 13427 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 13428 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 13429 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 13430 | # as well as any symbol that contains `d'. |
| 13431 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
| 13432 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 13433 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 13434 | # the symbol is explicitly referenced. Since portable code cannot |
| 13435 | # rely on this symbol name, it's probably fine to never include it in |
| 13436 | # preloaded symbol tables. |
| 13437 | extract_expsyms_cmds= |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13438 | # Just being paranoid about ensuring that cc_basename is set. |
| 13439 | for cc_temp in $compiler""; do |
| 13440 | case $cc_temp in |
| 13441 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 13442 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 13443 | \-*) ;; |
| 13444 | *) break;; |
| 13445 | esac |
| 13446 | done |
| 13447 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13448 | |
| 13449 | case $host_os in |
| 13450 | cygwin* | mingw* | pw32*) |
| 13451 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 13452 | # When not using gcc, we currently assume that we are using |
| 13453 | # Microsoft Visual C++. |
| 13454 | if test "$GCC" != yes; then |
| 13455 | with_gnu_ld=no |
| 13456 | fi |
| 13457 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13458 | interix*) |
| 13459 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 13460 | with_gnu_ld=yes |
| 13461 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13462 | openbsd*) |
| 13463 | with_gnu_ld=no |
| 13464 | ;; |
| 13465 | esac |
| 13466 | |
| 13467 | ld_shlibs_F77=yes |
| 13468 | if test "$with_gnu_ld" = yes; then |
| 13469 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 13470 | wlarc='${wl}' |
| 13471 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13472 | # Set some defaults for GNU ld with shared library support. These |
| 13473 | # are reset later if shared libraries are not supported. Putting them |
| 13474 | # here allows them to be overridden if necessary. |
| 13475 | runpath_var=LD_RUN_PATH |
| 13476 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
| 13477 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
| 13478 | # ancient GNU ld didn't support --whole-archive et. al. |
| 13479 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 13480 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 13481 | else |
| 13482 | whole_archive_flag_spec_F77= |
| 13483 | fi |
| 13484 | supports_anon_versioning=no |
| 13485 | case `$LD -v 2>/dev/null` in |
| 13486 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 13487 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 13488 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 13489 | *\ 2.11.*) ;; # other 2.11 versions |
| 13490 | *) supports_anon_versioning=yes ;; |
| 13491 | esac |
| 13492 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13493 | # See if GNU ld supports shared libraries. |
| 13494 | case $host_os in |
| 13495 | aix3* | aix4* | aix5*) |
| 13496 | # On AIX/PPC, the GNU linker is very broken |
| 13497 | if test "$host_cpu" != ia64; then |
| 13498 | ld_shlibs_F77=no |
| 13499 | cat <<EOF 1>&2 |
| 13500 | |
| 13501 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 13502 | *** to be unable to reliably create shared libraries on AIX. |
| 13503 | *** Therefore, libtool is disabling shared libraries support. If you |
| 13504 | *** really care for shared libraries, you may want to modify your PATH |
| 13505 | *** so that a non-GNU linker is found, and then restart. |
| 13506 | |
| 13507 | EOF |
| 13508 | fi |
| 13509 | ;; |
| 13510 | |
| 13511 | amigaos*) |
| 13512 | 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)' |
| 13513 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13514 | hardcode_minus_L_F77=yes |
| 13515 | |
| 13516 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 13517 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 13518 | # to version 4, is to share data among multiple programs linked |
| 13519 | # with the same dynamic library. Since this doesn't match the |
| 13520 | # behavior of shared libraries on other platforms, we can't use |
| 13521 | # them. |
| 13522 | ld_shlibs_F77=no |
| 13523 | ;; |
| 13524 | |
| 13525 | beos*) |
| 13526 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 13527 | allow_undefined_flag_F77=unsupported |
| 13528 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 13529 | # support --undefined. This deserves some investigation. FIXME |
| 13530 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13531 | else |
| 13532 | ld_shlibs_F77=no |
| 13533 | fi |
| 13534 | ;; |
| 13535 | |
| 13536 | cygwin* | mingw* | pw32*) |
| 13537 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
| 13538 | # as there is no search path for DLLs. |
| 13539 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13540 | allow_undefined_flag_F77=unsupported |
| 13541 | always_export_symbols_F77=no |
| 13542 | enable_shared_with_static_runtimes_F77=yes |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13543 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13544 | |
| 13545 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13546 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13547 | # If the export-symbols file already is a .def file (1st line |
| 13548 | # is EXPORTS), use it as is; otherwise, prepend... |
| 13549 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 13550 | cp $export_symbols $output_objdir/$soname.def; |
| 13551 | else |
| 13552 | echo EXPORTS > $output_objdir/$soname.def; |
| 13553 | cat $export_symbols >> $output_objdir/$soname.def; |
| 13554 | fi~ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13555 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13556 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13557 | ld_shlibs_F77=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13558 | fi |
| 13559 | ;; |
| 13560 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13561 | interix3*) |
| 13562 | hardcode_direct_F77=no |
| 13563 | hardcode_shlibpath_var_F77=no |
| 13564 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 13565 | export_dynamic_flag_spec_F77='${wl}-E' |
| 13566 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 13567 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 13568 | # default) and relocated if they conflict, which is a slow very memory |
| 13569 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 13570 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 13571 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 13572 | 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' |
| 13573 | 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' |
| 13574 | ;; |
| 13575 | |
| 13576 | linux*) |
| 13577 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 13578 | tmp_addflag= |
| 13579 | case $cc_basename,$host_cpu in |
| 13580 | pgcc*) # Portland Group C compiler |
| 13581 | 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' |
| 13582 | tmp_addflag=' $pic_flag' |
| 13583 | ;; |
| 13584 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 13585 | 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' |
| 13586 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 13587 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 13588 | tmp_addflag=' -i_dynamic' ;; |
| 13589 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 13590 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 13591 | ifc* | ifort*) # Intel Fortran compiler |
| 13592 | tmp_addflag=' -nofor_main' ;; |
| 13593 | esac |
| 13594 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13595 | |
| 13596 | if test $supports_anon_versioning = yes; then |
| 13597 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 13598 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 13599 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 13600 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 13601 | fi |
| 13602 | else |
| 13603 | ld_shlibs_F77=no |
| 13604 | fi |
| 13605 | ;; |
| 13606 | |
| 13607 | netbsd*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13608 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 13609 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 13610 | wlarc= |
| 13611 | else |
| 13612 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13613 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 13614 | fi |
| 13615 | ;; |
| 13616 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13617 | solaris*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13618 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 13619 | ld_shlibs_F77=no |
| 13620 | cat <<EOF 1>&2 |
| 13621 | |
| 13622 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 13623 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 13624 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 13625 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 13626 | *** your PATH or compiler configuration so that the native linker is |
| 13627 | *** used, and then restart. |
| 13628 | |
| 13629 | EOF |
| 13630 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 13631 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13632 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 13633 | else |
| 13634 | ld_shlibs_F77=no |
| 13635 | fi |
| 13636 | ;; |
| 13637 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13638 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 13639 | case `$LD -v 2>&1` in |
| 13640 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 13641 | ld_shlibs_F77=no |
| 13642 | cat <<_LT_EOF 1>&2 |
| 13643 | |
| 13644 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 13645 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 13646 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 13647 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 13648 | *** your PATH or compiler configuration so that the native linker is |
| 13649 | *** used, and then restart. |
| 13650 | |
| 13651 | _LT_EOF |
| 13652 | ;; |
| 13653 | *) |
| 13654 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 13655 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 13656 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 13657 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 13658 | else |
| 13659 | ld_shlibs_F77=no |
| 13660 | fi |
| 13661 | ;; |
| 13662 | esac |
| 13663 | ;; |
| 13664 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13665 | sunos4*) |
| 13666 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 13667 | wlarc= |
| 13668 | hardcode_direct_F77=yes |
| 13669 | hardcode_shlibpath_var_F77=no |
| 13670 | ;; |
| 13671 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13672 | *) |
| 13673 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 13674 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13675 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 13676 | else |
| 13677 | ld_shlibs_F77=no |
| 13678 | fi |
| 13679 | ;; |
| 13680 | esac |
| 13681 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13682 | if test "$ld_shlibs_F77" = no; then |
| 13683 | runpath_var= |
| 13684 | hardcode_libdir_flag_spec_F77= |
| 13685 | export_dynamic_flag_spec_F77= |
| 13686 | whole_archive_flag_spec_F77= |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13687 | fi |
| 13688 | else |
| 13689 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 13690 | case $host_os in |
| 13691 | aix3*) |
| 13692 | allow_undefined_flag_F77=unsupported |
| 13693 | always_export_symbols_F77=yes |
| 13694 | 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' |
| 13695 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 13696 | # are no directories specified by -L. |
| 13697 | hardcode_minus_L_F77=yes |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13698 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13699 | # Neither direct hardcoding nor static linking is supported with a |
| 13700 | # broken collect2. |
| 13701 | hardcode_direct_F77=unsupported |
| 13702 | fi |
| 13703 | ;; |
| 13704 | |
| 13705 | aix4* | aix5*) |
| 13706 | if test "$host_cpu" = ia64; then |
| 13707 | # On IA64, the linker does run time linking by default, so we don't |
| 13708 | # have to do anything special. |
| 13709 | aix_use_runtimelinking=no |
| 13710 | exp_sym_flag='-Bexport' |
| 13711 | no_entry_flag="" |
| 13712 | else |
| 13713 | # If we're using GNU nm, then we don't want the "-C" option. |
| 13714 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 13715 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 13716 | 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' |
| 13717 | else |
| 13718 | 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' |
| 13719 | fi |
| 13720 | aix_use_runtimelinking=no |
| 13721 | |
| 13722 | # Test if we are trying to use run time linking or normal |
| 13723 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 13724 | # need to do runtime linking. |
| 13725 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 13726 | for ld_flag in $LDFLAGS; do |
| 13727 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 13728 | aix_use_runtimelinking=yes |
| 13729 | break |
| 13730 | fi |
| 13731 | done |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13732 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13733 | esac |
| 13734 | |
| 13735 | exp_sym_flag='-bexport' |
| 13736 | no_entry_flag='-bnoentry' |
| 13737 | fi |
| 13738 | |
| 13739 | # When large executables or shared objects are built, AIX ld can |
| 13740 | # have problems creating the table of contents. If linking a library |
| 13741 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 13742 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 13743 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 13744 | |
| 13745 | archive_cmds_F77='' |
| 13746 | hardcode_direct_F77=yes |
| 13747 | hardcode_libdir_separator_F77=':' |
| 13748 | link_all_deplibs_F77=yes |
| 13749 | |
| 13750 | if test "$GCC" = yes; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13751 | case $host_os in aix4.[012]|aix4.[012].*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13752 | # We only want to do this on AIX 4.2 and lower, the check |
| 13753 | # below for broken collect2 doesn't work under 4.3+ |
| 13754 | collect2name=`${CC} -print-prog-name=collect2` |
| 13755 | if test -f "$collect2name" && \ |
| 13756 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 13757 | then |
| 13758 | # We have reworked collect2 |
| 13759 | hardcode_direct_F77=yes |
| 13760 | else |
| 13761 | # We have old collect2 |
| 13762 | hardcode_direct_F77=unsupported |
| 13763 | # It fails to find uninstalled libraries when the uninstalled |
| 13764 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 13765 | # to unsupported forces relinking |
| 13766 | hardcode_minus_L_F77=yes |
| 13767 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13768 | hardcode_libdir_separator_F77= |
| 13769 | fi |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13770 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13771 | esac |
| 13772 | shared_flag='-shared' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13773 | if test "$aix_use_runtimelinking" = yes; then |
| 13774 | shared_flag="$shared_flag "'${wl}-G' |
| 13775 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13776 | else |
| 13777 | # not using gcc |
| 13778 | if test "$host_cpu" = ia64; then |
| 13779 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 13780 | # chokes on -Wl,-G. The following line is correct: |
| 13781 | shared_flag='-G' |
| 13782 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13783 | if test "$aix_use_runtimelinking" = yes; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13784 | shared_flag='${wl}-G' |
| 13785 | else |
| 13786 | shared_flag='${wl}-bM:SRE' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13787 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13788 | fi |
| 13789 | fi |
| 13790 | |
| 13791 | # It seems that -bexpall does not export symbols beginning with |
| 13792 | # underscore (_), so it is better to generate a list of symbols to export. |
| 13793 | always_export_symbols_F77=yes |
| 13794 | if test "$aix_use_runtimelinking" = yes; then |
| 13795 | # Warning - without using the other runtime loading flags (-brtl), |
| 13796 | # -berok will link without error, but may produce a broken library. |
| 13797 | allow_undefined_flag_F77='-berok' |
| 13798 | # Determine the default libpath from the value encoded in an empty executable. |
| 13799 | cat >conftest.$ac_ext <<_ACEOF |
| 13800 | program main |
| 13801 | |
| 13802 | end |
| 13803 | _ACEOF |
| 13804 | rm -f conftest.$ac_objext conftest$ac_exeext |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 13805 | if { (ac_try="$ac_link" |
| 13806 | case "(($ac_try" in |
| 13807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13808 | *) ac_try_echo=$ac_try;; |
| 13809 | esac |
| 13810 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13811 | (eval "$ac_link") 2>conftest.er1 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13812 | ac_status=$? |
| 13813 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13814 | rm -f conftest.er1 |
| 13815 | cat conftest.err >&5 |
| 13816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 13817 | (exit $ac_status); } && { |
| 13818 | test -z "$ac_f77_werror_flag" || |
| 13819 | test ! -s conftest.err |
| 13820 | } && test -s conftest$ac_exeext && |
| 13821 | $as_test_x conftest$ac_exeext; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13822 | |
| 13823 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 13824 | }'` |
| 13825 | # Check for a 64-bit object if we didn't find anything. |
| 13826 | 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; } |
| 13827 | }'`; fi |
| 13828 | else |
| 13829 | echo "$as_me: failed program was:" >&5 |
| 13830 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13831 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 13832 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13833 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 13834 | |
| 13835 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13836 | conftest$ac_exeext conftest.$ac_ext |
| 13837 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 13838 | |
| 13839 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13840 | 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" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13841 | else |
| 13842 | if test "$host_cpu" = ia64; then |
| 13843 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
| 13844 | allow_undefined_flag_F77="-z nodefs" |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13845 | 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" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13846 | else |
| 13847 | # Determine the default libpath from the value encoded in an empty executable. |
| 13848 | cat >conftest.$ac_ext <<_ACEOF |
| 13849 | program main |
| 13850 | |
| 13851 | end |
| 13852 | _ACEOF |
| 13853 | rm -f conftest.$ac_objext conftest$ac_exeext |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 13854 | if { (ac_try="$ac_link" |
| 13855 | case "(($ac_try" in |
| 13856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13857 | *) ac_try_echo=$ac_try;; |
| 13858 | esac |
| 13859 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13860 | (eval "$ac_link") 2>conftest.er1 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13861 | ac_status=$? |
| 13862 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13863 | rm -f conftest.er1 |
| 13864 | cat conftest.err >&5 |
| 13865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 13866 | (exit $ac_status); } && { |
| 13867 | test -z "$ac_f77_werror_flag" || |
| 13868 | test ! -s conftest.err |
| 13869 | } && test -s conftest$ac_exeext && |
| 13870 | $as_test_x conftest$ac_exeext; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13871 | |
| 13872 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 13873 | }'` |
| 13874 | # Check for a 64-bit object if we didn't find anything. |
| 13875 | 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; } |
| 13876 | }'`; fi |
| 13877 | else |
| 13878 | echo "$as_me: failed program was:" >&5 |
| 13879 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13880 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 13881 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13882 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 13883 | |
| 13884 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13885 | conftest$ac_exeext conftest.$ac_ext |
| 13886 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 13887 | |
| 13888 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 13889 | # Warning - without using the other run time loading flags, |
| 13890 | # -berok will link without error, but may produce a broken library. |
| 13891 | no_undefined_flag_F77=' ${wl}-bernotok' |
| 13892 | allow_undefined_flag_F77=' ${wl}-berok' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13893 | # Exported symbols can be pulled into shared objects from archives |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13894 | whole_archive_flag_spec_F77='$convenience' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13895 | archive_cmds_need_lc_F77=yes |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13896 | # This is similar to how AIX traditionally builds its shared libraries. |
| 13897 | 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' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13898 | fi |
| 13899 | fi |
| 13900 | ;; |
| 13901 | |
| 13902 | amigaos*) |
| 13903 | 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)' |
| 13904 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13905 | hardcode_minus_L_F77=yes |
| 13906 | # see comment about different semantics on the GNU ld section |
| 13907 | ld_shlibs_F77=no |
| 13908 | ;; |
| 13909 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13910 | bsdi[45]*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13911 | export_dynamic_flag_spec_F77=-rdynamic |
| 13912 | ;; |
| 13913 | |
| 13914 | cygwin* | mingw* | pw32*) |
| 13915 | # When not using gcc, we currently assume that we are using |
| 13916 | # Microsoft Visual C++. |
| 13917 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 13918 | # no search path for DLLs. |
| 13919 | hardcode_libdir_flag_spec_F77=' ' |
| 13920 | allow_undefined_flag_F77=unsupported |
| 13921 | # Tell ltmain to make .lib files, not .a files. |
| 13922 | libext=lib |
| 13923 | # Tell ltmain to make .dll files, not .so files. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13924 | shrext_cmds=".dll" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13925 | # FIXME: Setting linknames here is a bad hack. |
| 13926 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 13927 | # The linker will automatically build a .lib file if we build a DLL. |
| 13928 | old_archive_From_new_cmds_F77='true' |
| 13929 | # FIXME: Should let the user specify the lib program. |
| 13930 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13931 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13932 | enable_shared_with_static_runtimes_F77=yes |
| 13933 | ;; |
| 13934 | |
| 13935 | darwin* | rhapsody*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13936 | case $host_os in |
| 13937 | rhapsody* | darwin1.[012]) |
| 13938 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
| 13939 | ;; |
| 13940 | *) # Darwin 1.3 on |
| 13941 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 13942 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 13943 | else |
| 13944 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 13945 | 10.[012]) |
| 13946 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 13947 | ;; |
| 13948 | 10.*) |
| 13949 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
| 13950 | ;; |
| 13951 | esac |
| 13952 | fi |
| 13953 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13954 | esac |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13955 | archive_cmds_need_lc_F77=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13956 | hardcode_direct_F77=no |
| 13957 | hardcode_automatic_F77=yes |
| 13958 | hardcode_shlibpath_var_F77=unsupported |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13959 | whole_archive_flag_spec_F77='' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13960 | link_all_deplibs_F77=yes |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13961 | if test "$GCC" = yes ; then |
| 13962 | output_verbose_link_cmd='echo' |
| 13963 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 13964 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 13965 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 13966 | 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}' |
| 13967 | 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}' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13968 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13969 | case $cc_basename in |
| 13970 | xlc*) |
| 13971 | output_verbose_link_cmd='echo' |
| 13972 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 13973 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 13974 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 13975 | 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}' |
| 13976 | 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}' |
| 13977 | ;; |
| 13978 | *) |
| 13979 | ld_shlibs_F77=no |
| 13980 | ;; |
| 13981 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13982 | fi |
| 13983 | ;; |
| 13984 | |
| 13985 | dgux*) |
| 13986 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13987 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13988 | hardcode_shlibpath_var_F77=no |
| 13989 | ;; |
| 13990 | |
| 13991 | freebsd1*) |
| 13992 | ld_shlibs_F77=no |
| 13993 | ;; |
| 13994 | |
| 13995 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 13996 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 13997 | # does not break anything, and helps significantly (at the cost of a little |
| 13998 | # extra space). |
| 13999 | freebsd2.2*) |
| 14000 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 14001 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 14002 | hardcode_direct_F77=yes |
| 14003 | hardcode_shlibpath_var_F77=no |
| 14004 | ;; |
| 14005 | |
| 14006 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 14007 | freebsd2*) |
| 14008 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 14009 | hardcode_direct_F77=yes |
| 14010 | hardcode_minus_L_F77=yes |
| 14011 | hardcode_shlibpath_var_F77=no |
| 14012 | ;; |
| 14013 | |
| 14014 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 14015 | freebsd* | kfreebsd*-gnu | dragonfly*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14016 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 14017 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 14018 | hardcode_direct_F77=yes |
| 14019 | hardcode_shlibpath_var_F77=no |
| 14020 | ;; |
| 14021 | |
| 14022 | hpux9*) |
| 14023 | if test "$GCC" = yes; then |
| 14024 | 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' |
| 14025 | else |
| 14026 | 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' |
| 14027 | fi |
| 14028 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 14029 | hardcode_libdir_separator_F77=: |
| 14030 | hardcode_direct_F77=yes |
| 14031 | |
| 14032 | # hardcode_minus_L: Not really in the search PATH, |
| 14033 | # but as the default location of the library. |
| 14034 | hardcode_minus_L_F77=yes |
| 14035 | export_dynamic_flag_spec_F77='${wl}-E' |
| 14036 | ;; |
| 14037 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 14038 | hpux10*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14039 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 14040 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 14041 | else |
| 14042 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 14043 | fi |
| 14044 | if test "$with_gnu_ld" = no; then |
| 14045 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 14046 | hardcode_libdir_separator_F77=: |
| 14047 | |
| 14048 | hardcode_direct_F77=yes |
| 14049 | export_dynamic_flag_spec_F77='${wl}-E' |
| 14050 | |
| 14051 | # hardcode_minus_L: Not really in the search PATH, |
| 14052 | # but as the default location of the library. |
| 14053 | hardcode_minus_L_F77=yes |
| 14054 | fi |
| 14055 | ;; |
| 14056 | |
| 14057 | hpux11*) |
| 14058 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 14059 | case $host_cpu in |
| 14060 | hppa*64*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14061 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14062 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 14063 | ia64*) |
| 14064 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 14065 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14066 | *) |
| 14067 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 14068 | ;; |
| 14069 | esac |
| 14070 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 14071 | case $host_cpu in |
| 14072 | hppa*64*) |
| 14073 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14074 | ;; |
| 14075 | ia64*) |
| 14076 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14077 | ;; |
| 14078 | *) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 14079 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14080 | ;; |
| 14081 | esac |
| 14082 | fi |
| 14083 | if test "$with_gnu_ld" = no; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 14084 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 14085 | hardcode_libdir_separator_F77=: |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14086 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 14087 | case $host_cpu in |
| 14088 | hppa*64*|ia64*) |
| 14089 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
| 14090 | hardcode_direct_F77=no |
| 14091 | hardcode_shlibpath_var_F77=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14092 | ;; |
| 14093 | *) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14094 | hardcode_direct_F77=yes |
| 14095 | export_dynamic_flag_spec_F77='${wl}-E' |
| 14096 | |
| 14097 | # hardcode_minus_L: Not really in the search PATH, |
| 14098 | # but as the default location of the library. |
| 14099 | hardcode_minus_L_F77=yes |
| 14100 | ;; |
| 14101 | esac |
| 14102 | fi |
| 14103 | ;; |
| 14104 | |
| 14105 | irix5* | irix6* | nonstopux*) |
| 14106 | if test "$GCC" = yes; then |
| 14107 | 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' |
| 14108 | else |
| 14109 | 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' |
| 14110 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
| 14111 | fi |
| 14112 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 14113 | hardcode_libdir_separator_F77=: |
| 14114 | link_all_deplibs_F77=yes |
| 14115 | ;; |
| 14116 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 14117 | netbsd*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14118 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 14119 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 14120 | else |
| 14121 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 14122 | fi |
| 14123 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 14124 | hardcode_direct_F77=yes |
| 14125 | hardcode_shlibpath_var_F77=no |
| 14126 | ;; |
| 14127 | |
| 14128 | newsos6) |
| 14129 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14130 | hardcode_direct_F77=yes |
| 14131 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 14132 | hardcode_libdir_separator_F77=: |
| 14133 | hardcode_shlibpath_var_F77=no |
| 14134 | ;; |
| 14135 | |
| 14136 | openbsd*) |
| 14137 | hardcode_direct_F77=yes |
| 14138 | hardcode_shlibpath_var_F77=no |
| 14139 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 14140 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 14141 | archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14142 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 14143 | export_dynamic_flag_spec_F77='${wl}-E' |
| 14144 | else |
| 14145 | case $host_os in |
| 14146 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 14147 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 14148 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 14149 | ;; |
| 14150 | *) |
| 14151 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 14152 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 14153 | ;; |
| 14154 | esac |
| 14155 | fi |
| 14156 | ;; |
| 14157 | |
| 14158 | os2*) |
| 14159 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14160 | hardcode_minus_L_F77=yes |
| 14161 | allow_undefined_flag_F77=unsupported |
| 14162 | 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' |
| 14163 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 14164 | ;; |
| 14165 | |
| 14166 | osf3*) |
| 14167 | if test "$GCC" = yes; then |
| 14168 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 14169 | 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' |
| 14170 | else |
| 14171 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 14172 | 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' |
| 14173 | fi |
| 14174 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 14175 | hardcode_libdir_separator_F77=: |
| 14176 | ;; |
| 14177 | |
| 14178 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 14179 | if test "$GCC" = yes; then |
| 14180 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 14181 | 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' |
| 14182 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 14183 | else |
| 14184 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 14185 | 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' |
| 14186 | 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~ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 14187 | $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' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14188 | |
| 14189 | # Both c and cxx compiler support -rpath directly |
| 14190 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
| 14191 | fi |
| 14192 | hardcode_libdir_separator_F77=: |
| 14193 | ;; |
| 14194 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14195 | solaris*) |
| 14196 | no_undefined_flag_F77=' -z text' |
| 14197 | if test "$GCC" = yes; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 14198 | wlarc='${wl}' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14199 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14200 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 14201 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 14202 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 14203 | wlarc='' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14204 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14205 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 14206 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 14207 | fi |
| 14208 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 14209 | hardcode_shlibpath_var_F77=no |
| 14210 | case $host_os in |
| 14211 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 14212 | *) |
| 14213 | # The compiler driver will combine linker options so we |
| 14214 | # cannot just pass the convience library names through |
| 14215 | # without $wl, iff we do not link with $LD. |
| 14216 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 14217 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 14218 | case $wlarc in |
| 14219 | '') |
| 14220 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
| 14221 | *) |
| 14222 | 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' ;; |
| 14223 | esac ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14224 | esac |
| 14225 | link_all_deplibs_F77=yes |
| 14226 | ;; |
| 14227 | |
| 14228 | sunos4*) |
| 14229 | if test "x$host_vendor" = xsequent; then |
| 14230 | # Use $CC to link under sequent, because it throws in some extra .o |
| 14231 | # files that make .init and .fini sections work. |
| 14232 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14233 | else |
| 14234 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 14235 | fi |
| 14236 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14237 | hardcode_direct_F77=yes |
| 14238 | hardcode_minus_L_F77=yes |
| 14239 | hardcode_shlibpath_var_F77=no |
| 14240 | ;; |
| 14241 | |
| 14242 | sysv4) |
| 14243 | case $host_vendor in |
| 14244 | sni) |
| 14245 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14246 | hardcode_direct_F77=yes # is this really true??? |
| 14247 | ;; |
| 14248 | siemens) |
| 14249 | ## LD is ld it makes a PLAMLIB |
| 14250 | ## CC just makes a GrossModule. |
| 14251 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 14252 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
| 14253 | hardcode_direct_F77=no |
| 14254 | ;; |
| 14255 | motorola) |
| 14256 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14257 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
| 14258 | ;; |
| 14259 | esac |
| 14260 | runpath_var='LD_RUN_PATH' |
| 14261 | hardcode_shlibpath_var_F77=no |
| 14262 | ;; |
| 14263 | |
| 14264 | sysv4.3*) |
| 14265 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14266 | hardcode_shlibpath_var_F77=no |
| 14267 | export_dynamic_flag_spec_F77='-Bexport' |
| 14268 | ;; |
| 14269 | |
| 14270 | sysv4*MP*) |
| 14271 | if test -d /usr/nec; then |
| 14272 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14273 | hardcode_shlibpath_var_F77=no |
| 14274 | runpath_var=LD_RUN_PATH |
| 14275 | hardcode_runpath_var=yes |
| 14276 | ld_shlibs_F77=yes |
| 14277 | fi |
| 14278 | ;; |
| 14279 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 14280 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 14281 | no_undefined_flag_F77='${wl}-z,text' |
| 14282 | archive_cmds_need_lc_F77=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14283 | hardcode_shlibpath_var_F77=no |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 14284 | runpath_var='LD_RUN_PATH' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14285 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14286 | if test "$GCC" = yes; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 14287 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14288 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14289 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 14290 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14291 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14292 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14293 | ;; |
| 14294 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 14295 | sysv5* | sco3.2v5* | sco5v6*) |
| 14296 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 14297 | # link with -lc, and that would cause any symbols used from libc to |
| 14298 | # always be unresolved, which means just about no library would |
| 14299 | # ever link correctly. If we're not using GNU ld we use -z text |
| 14300 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 14301 | # as -z defs. |
| 14302 | no_undefined_flag_F77='${wl}-z,text' |
| 14303 | allow_undefined_flag_F77='${wl}-z,nodefs' |
| 14304 | archive_cmds_need_lc_F77=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14305 | hardcode_shlibpath_var_F77=no |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 14306 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 14307 | hardcode_libdir_separator_F77=':' |
| 14308 | link_all_deplibs_F77=yes |
| 14309 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14310 | runpath_var='LD_RUN_PATH' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 14311 | |
| 14312 | if test "$GCC" = yes; then |
| 14313 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14314 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14315 | else |
| 14316 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14317 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14318 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14319 | ;; |
| 14320 | |
| 14321 | uts4*) |
| 14322 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14323 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14324 | hardcode_shlibpath_var_F77=no |
| 14325 | ;; |
| 14326 | |
| 14327 | *) |
| 14328 | ld_shlibs_F77=no |
| 14329 | ;; |
| 14330 | esac |
| 14331 | fi |
| 14332 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 14333 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
| 14334 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14335 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 14336 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14337 | # |
| 14338 | # Do we need to explicitly link libc? |
| 14339 | # |
| 14340 | case "x$archive_cmds_need_lc_F77" in |
| 14341 | x|xyes) |
| 14342 | # Assume -lc should be added |
| 14343 | archive_cmds_need_lc_F77=yes |
| 14344 | |
| 14345 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 14346 | case $archive_cmds_F77 in |
| 14347 | *'~'*) |
| 14348 | # FIXME: we may have to deal with multi-command sequences. |
| 14349 | ;; |
| 14350 | '$CC '*) |
| 14351 | # Test whether the compiler implicitly links with -lc since on some |
| 14352 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 14353 | # to ld, don't add -lc before -lgcc. |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 14354 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 14355 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14356 | $rm conftest* |
| 14357 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14358 | |
| 14359 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14360 | (eval $ac_compile) 2>&5 |
| 14361 | ac_status=$? |
| 14362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14363 | (exit $ac_status); } 2>conftest.err; then |
| 14364 | soname=conftest |
| 14365 | lib=conftest |
| 14366 | libobjs=conftest.$ac_objext |
| 14367 | deplibs= |
| 14368 | wl=$lt_prog_compiler_wl_F77 |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 14369 | pic_flag=$lt_prog_compiler_pic_F77 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14370 | compiler_flags=-v |
| 14371 | linker_flags=-v |
| 14372 | verstring= |
| 14373 | output_objdir=. |
| 14374 | libname=conftest |
| 14375 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
| 14376 | allow_undefined_flag_F77= |
| 14377 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 14378 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 14379 | ac_status=$? |
| 14380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14381 | (exit $ac_status); } |
| 14382 | then |
| 14383 | archive_cmds_need_lc_F77=no |
| 14384 | else |
| 14385 | archive_cmds_need_lc_F77=yes |
| 14386 | fi |
| 14387 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
| 14388 | else |
| 14389 | cat conftest.err 1>&5 |
| 14390 | fi |
| 14391 | $rm conftest* |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 14392 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
| 14393 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14394 | ;; |
| 14395 | esac |
| 14396 | fi |
| 14397 | ;; |
| 14398 | esac |
| 14399 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 14400 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 14401 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14402 | library_names_spec= |
| 14403 | libname_spec='lib$name' |
| 14404 | soname_spec= |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 14405 | shrext_cmds=".so" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14406 | postinstall_cmds= |
| 14407 | postuninstall_cmds= |
| 14408 | finish_cmds= |
| 14409 | finish_eval= |
| 14410 | shlibpath_var= |
| 14411 | shlibpath_overrides_runpath=unknown |
| 14412 | version_type=none |
| 14413 | dynamic_linker="$host_os ld.so" |
| 14414 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 14415 | if test "$GCC" = yes; then |
| 14416 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 14417 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 14418 | # if the path contains ";" then we assume it to be the separator |
| 14419 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 14420 | # assumed that no part of a normal pathname contains ";" but that should |
| 14421 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 14422 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 14423 | else |
| 14424 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 14425 | fi |
| 14426 | else |
| 14427 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 14428 | fi |
| 14429 | need_lib_prefix=unknown |
| 14430 | hardcode_into_libs=no |
| 14431 | |
| 14432 | # when you set need_version to no, make sure it does not cause -set_version |
| 14433 | # flags to be left without arguments |
| 14434 | need_version=unknown |
| 14435 | |
| 14436 | case $host_os in |
| 14437 | aix3*) |
| 14438 | version_type=linux |
| 14439 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 14440 | shlibpath_var=LIBPATH |
| 14441 | |
| 14442 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 14443 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14444 | ;; |
| 14445 | |
| 14446 | aix4* | aix5*) |
| 14447 | version_type=linux |
| 14448 | need_lib_prefix=no |
| 14449 | need_version=no |
| 14450 | hardcode_into_libs=yes |
| 14451 | if test "$host_cpu" = ia64; then |
| 14452 | # AIX 5 supports IA64 |
| 14453 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 14454 | shlibpath_var=LD_LIBRARY_PATH |
| 14455 | else |
| 14456 | # With GCC up to 2.95.x, collect2 would create an import file |
| 14457 | # for dependence libraries. The import file would start with |
| 14458 | # the line `#! .'. This would cause the generated library to |
| 14459 | # depend on `.', always an invalid library. This was fixed in |
| 14460 | # development snapshots of GCC prior to 3.0. |
| 14461 | case $host_os in |
| 14462 | aix4 | aix4.[01] | aix4.[01].*) |
| 14463 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 14464 | echo ' yes ' |
| 14465 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 14466 | : |
| 14467 | else |
| 14468 | can_build_shared=no |
| 14469 | fi |
| 14470 | ;; |
| 14471 | esac |
| 14472 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 14473 | # soname into executable. Probably we can add versioning support to |
| 14474 | # collect2, so additional links can be useful in future. |
| 14475 | if test "$aix_use_runtimelinking" = yes; then |
| 14476 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 14477 | # instead of lib<name>.a to let people know that these are not |
| 14478 | # typical AIX shared libraries. |
| 14479 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14480 | else |
| 14481 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 14482 | # and later when we are not doing run time linking. |
| 14483 | library_names_spec='${libname}${release}.a $libname.a' |
| 14484 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14485 | fi |
| 14486 | shlibpath_var=LIBPATH |
| 14487 | fi |
| 14488 | ;; |
| 14489 | |
| 14490 | amigaos*) |
| 14491 | library_names_spec='$libname.ixlibrary $libname.a' |
| 14492 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 14493 | 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' |
| 14494 | ;; |
| 14495 | |
| 14496 | beos*) |
| 14497 | library_names_spec='${libname}${shared_ext}' |
| 14498 | dynamic_linker="$host_os ld.so" |
| 14499 | shlibpath_var=LIBRARY_PATH |
| 14500 | ;; |
| 14501 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 14502 | bsdi[45]*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14503 | version_type=linux |
| 14504 | need_version=no |
| 14505 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14506 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14507 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 14508 | shlibpath_var=LD_LIBRARY_PATH |
| 14509 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 14510 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 14511 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 14512 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 14513 | # libtool to hard-code these into programs |
| 14514 | ;; |
| 14515 | |
| 14516 | cygwin* | mingw* | pw32*) |
| 14517 | version_type=windows |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 14518 | shrext_cmds=".dll" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14519 | need_version=no |
| 14520 | need_lib_prefix=no |
| 14521 | |
| 14522 | case $GCC,$host_os in |
| 14523 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 14524 | library_names_spec='$libname.dll.a' |
| 14525 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 14526 | postinstall_cmds='base_file=`basename \${file}`~ |
| 14527 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 14528 | dldir=$destdir/`dirname \$dlpath`~ |
| 14529 | test -d \$dldir || mkdir -p \$dldir~ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 14530 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 14531 | chmod a+x \$dldir/$dlname' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14532 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 14533 | dlpath=$dir/\$dldll~ |
| 14534 | $rm \$dlpath' |
| 14535 | shlibpath_overrides_runpath=yes |
| 14536 | |
| 14537 | case $host_os in |
| 14538 | cygwin*) |
| 14539 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 14540 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 14541 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 14542 | ;; |
| 14543 | mingw*) |
| 14544 | # MinGW DLLs use traditional 'lib' prefix |
| 14545 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 14546 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 14547 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 14548 | # It is most probably a Windows format PATH printed by |
| 14549 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 14550 | # path with ; separators, and with drive letters. We can handle the |
| 14551 | # drive letters (cygwin fileutils understands them), so leave them, |
| 14552 | # especially as we might pass files found there to a mingw objdump, |
| 14553 | # which wouldn't understand a cygwinified path. Ahh. |
| 14554 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 14555 | else |
| 14556 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 14557 | fi |
| 14558 | ;; |
| 14559 | pw32*) |
| 14560 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 14561 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14562 | ;; |
| 14563 | esac |
| 14564 | ;; |
| 14565 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 14566 | linux*) |
| 14567 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 14568 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14569 | supports_anon_versioning=no |
| 14570 | case `$LD -v 2>/dev/null` in |
| 14571 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 14572 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 14573 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 14574 | *\ 2.11.*) ;; # other 2.11 versions |
| 14575 | *) supports_anon_versioning=yes ;; |
| 14576 | esac |
| 14577 | if test $supports_anon_versioning = yes; then |
| 14578 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 14579 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 14580 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 14581 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 14582 | else |
| 14583 | $archive_expsym_cmds="$archive_cmds" |
| 14584 | fi |
| 14585 | else |
| 14586 | ld_shlibs=no |
| 14587 | fi |
| 14588 | ;; |
| 14589 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14590 | *) |
| 14591 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 14592 | ;; |
| 14593 | esac |
| 14594 | dynamic_linker='Win32 ld.exe' |
| 14595 | # FIXME: first we should search . and the directory the executable is in |
| 14596 | shlibpath_var=PATH |
| 14597 | ;; |
| 14598 | |
| 14599 | darwin* | rhapsody*) |
| 14600 | dynamic_linker="$host_os dyld" |
| 14601 | version_type=darwin |
| 14602 | need_lib_prefix=no |
| 14603 | need_version=no |
| 14604 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 14605 | soname_spec='${libname}${release}${major}$shared_ext' |
| 14606 | shlibpath_overrides_runpath=yes |
| 14607 | shlibpath_var=DYLD_LIBRARY_PATH |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 14608 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14609 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 14610 | if test "$GCC" = yes; then |
| 14611 | 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"` |
| 14612 | else |
| 14613 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 14614 | fi |
| 14615 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 14616 | ;; |
| 14617 | |
| 14618 | dgux*) |
| 14619 | version_type=linux |
| 14620 | need_lib_prefix=no |
| 14621 | need_version=no |
| 14622 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 14623 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14624 | shlibpath_var=LD_LIBRARY_PATH |
| 14625 | ;; |
| 14626 | |
| 14627 | freebsd1*) |
| 14628 | dynamic_linker=no |
| 14629 | ;; |
| 14630 | |
| 14631 | kfreebsd*-gnu) |
| 14632 | version_type=linux |
| 14633 | need_lib_prefix=no |
| 14634 | need_version=no |
| 14635 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 14636 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14637 | shlibpath_var=LD_LIBRARY_PATH |
| 14638 | shlibpath_overrides_runpath=no |
| 14639 | hardcode_into_libs=yes |
| 14640 | dynamic_linker='GNU ld.so' |
| 14641 | ;; |
| 14642 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 14643 | freebsd* | dragonfly*) |
| 14644 | # DragonFly does not have aout. When/if they implement a new |
| 14645 | # versioning mechanism, adjust this. |
| 14646 | if test -x /usr/bin/objformat; then |
| 14647 | objformat=`/usr/bin/objformat` |
| 14648 | else |
| 14649 | case $host_os in |
| 14650 | freebsd[123]*) objformat=aout ;; |
| 14651 | *) objformat=elf ;; |
| 14652 | esac |
| 14653 | fi |
| 14654 | # Handle Gentoo/FreeBSD as it was Linux |
| 14655 | case $host_vendor in |
| 14656 | gentoo) |
| 14657 | version_type=linux ;; |
| 14658 | *) |
| 14659 | version_type=freebsd-$objformat ;; |
| 14660 | esac |
| 14661 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14662 | case $version_type in |
| 14663 | freebsd-elf*) |
| 14664 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 14665 | need_version=no |
| 14666 | need_lib_prefix=no |
| 14667 | ;; |
| 14668 | freebsd-*) |
| 14669 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 14670 | need_version=yes |
| 14671 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 14672 | linux) |
| 14673 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 14674 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14675 | need_lib_prefix=no |
| 14676 | need_version=no |
| 14677 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14678 | esac |
| 14679 | shlibpath_var=LD_LIBRARY_PATH |
| 14680 | case $host_os in |
| 14681 | freebsd2*) |
| 14682 | shlibpath_overrides_runpath=yes |
| 14683 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 14684 | freebsd3.[01]* | freebsdelf3.[01]*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14685 | shlibpath_overrides_runpath=yes |
| 14686 | hardcode_into_libs=yes |
| 14687 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 14688 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 14689 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14690 | shlibpath_overrides_runpath=no |
| 14691 | hardcode_into_libs=yes |
| 14692 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 14693 | freebsd*) # from 4.6 on |
| 14694 | shlibpath_overrides_runpath=yes |
| 14695 | hardcode_into_libs=yes |
| 14696 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14697 | esac |
| 14698 | ;; |
| 14699 | |
| 14700 | gnu*) |
| 14701 | version_type=linux |
| 14702 | need_lib_prefix=no |
| 14703 | need_version=no |
| 14704 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 14705 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14706 | shlibpath_var=LD_LIBRARY_PATH |
| 14707 | hardcode_into_libs=yes |
| 14708 | ;; |
| 14709 | |
| 14710 | hpux9* | hpux10* | hpux11*) |
| 14711 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 14712 | # link against other versions. |
| 14713 | version_type=sunos |
| 14714 | need_lib_prefix=no |
| 14715 | need_version=no |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 14716 | case $host_cpu in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14717 | ia64*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 14718 | shrext_cmds='.so' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14719 | hardcode_into_libs=yes |
| 14720 | dynamic_linker="$host_os dld.so" |
| 14721 | shlibpath_var=LD_LIBRARY_PATH |
| 14722 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 14723 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14724 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14725 | if test "X$HPUX_IA64_MODE" = X32; then |
| 14726 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 14727 | else |
| 14728 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 14729 | fi |
| 14730 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 14731 | ;; |
| 14732 | hppa*64*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 14733 | shrext_cmds='.sl' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14734 | hardcode_into_libs=yes |
| 14735 | dynamic_linker="$host_os dld.sl" |
| 14736 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 14737 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 14738 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14739 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14740 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 14741 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 14742 | ;; |
| 14743 | *) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 14744 | shrext_cmds='.sl' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14745 | dynamic_linker="$host_os dld.sl" |
| 14746 | shlibpath_var=SHLIB_PATH |
| 14747 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 14748 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14749 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14750 | ;; |
| 14751 | esac |
| 14752 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 14753 | postinstall_cmds='chmod 555 $lib' |
| 14754 | ;; |
| 14755 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 14756 | interix3*) |
| 14757 | version_type=linux |
| 14758 | need_lib_prefix=no |
| 14759 | need_version=no |
| 14760 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 14761 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14762 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 14763 | shlibpath_var=LD_LIBRARY_PATH |
| 14764 | shlibpath_overrides_runpath=no |
| 14765 | hardcode_into_libs=yes |
| 14766 | ;; |
| 14767 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14768 | irix5* | irix6* | nonstopux*) |
| 14769 | case $host_os in |
| 14770 | nonstopux*) version_type=nonstopux ;; |
| 14771 | *) |
| 14772 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 14773 | version_type=linux |
| 14774 | else |
| 14775 | version_type=irix |
| 14776 | fi ;; |
| 14777 | esac |
| 14778 | need_lib_prefix=no |
| 14779 | need_version=no |
| 14780 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14781 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 14782 | case $host_os in |
| 14783 | irix5* | nonstopux*) |
| 14784 | libsuff= shlibsuff= |
| 14785 | ;; |
| 14786 | *) |
| 14787 | case $LD in # libtool.m4 will add one of these switches to LD |
| 14788 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 14789 | libsuff= shlibsuff= libmagic=32-bit;; |
| 14790 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 14791 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 14792 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 14793 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 14794 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 14795 | esac |
| 14796 | ;; |
| 14797 | esac |
| 14798 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 14799 | shlibpath_overrides_runpath=no |
| 14800 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 14801 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 14802 | hardcode_into_libs=yes |
| 14803 | ;; |
| 14804 | |
| 14805 | # No shared lib support for Linux oldld, aout, or coff. |
| 14806 | linux*oldld* | linux*aout* | linux*coff*) |
| 14807 | dynamic_linker=no |
| 14808 | ;; |
| 14809 | |
| 14810 | # This must be Linux ELF. |
| 14811 | linux*) |
| 14812 | version_type=linux |
| 14813 | need_lib_prefix=no |
| 14814 | need_version=no |
| 14815 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14816 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14817 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 14818 | shlibpath_var=LD_LIBRARY_PATH |
| 14819 | shlibpath_overrides_runpath=no |
| 14820 | # This implies no fast_install, which is unacceptable. |
| 14821 | # Some rework will be needed to allow for fast_install |
| 14822 | # before this can be enabled. |
| 14823 | hardcode_into_libs=yes |
| 14824 | |
| 14825 | # Append ld.so.conf contents to the search path |
| 14826 | if test -f /etc/ld.so.conf; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 14827 | 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' ' '` |
| 14828 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14829 | fi |
| 14830 | |
| 14831 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 14832 | # powerpc, because MkLinux only supported shared libraries with the |
| 14833 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 14834 | # most powerpc-linux boxes support dynamic linking these days and |
| 14835 | # people can always --disable-shared, the test was removed, and we |
| 14836 | # assume the GNU/Linux dynamic linker is in use. |
| 14837 | dynamic_linker='GNU/Linux ld.so' |
| 14838 | ;; |
| 14839 | |
| 14840 | knetbsd*-gnu) |
| 14841 | version_type=linux |
| 14842 | need_lib_prefix=no |
| 14843 | need_version=no |
| 14844 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 14845 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14846 | shlibpath_var=LD_LIBRARY_PATH |
| 14847 | shlibpath_overrides_runpath=no |
| 14848 | hardcode_into_libs=yes |
| 14849 | dynamic_linker='GNU ld.so' |
| 14850 | ;; |
| 14851 | |
| 14852 | netbsd*) |
| 14853 | version_type=sunos |
| 14854 | need_lib_prefix=no |
| 14855 | need_version=no |
| 14856 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 14857 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 14858 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 14859 | dynamic_linker='NetBSD (a.out) ld.so' |
| 14860 | else |
| 14861 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 14862 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14863 | dynamic_linker='NetBSD ld.elf_so' |
| 14864 | fi |
| 14865 | shlibpath_var=LD_LIBRARY_PATH |
| 14866 | shlibpath_overrides_runpath=yes |
| 14867 | hardcode_into_libs=yes |
| 14868 | ;; |
| 14869 | |
| 14870 | newsos6) |
| 14871 | version_type=linux |
| 14872 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14873 | shlibpath_var=LD_LIBRARY_PATH |
| 14874 | shlibpath_overrides_runpath=yes |
| 14875 | ;; |
| 14876 | |
| 14877 | nto-qnx*) |
| 14878 | version_type=linux |
| 14879 | need_lib_prefix=no |
| 14880 | need_version=no |
| 14881 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14882 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14883 | shlibpath_var=LD_LIBRARY_PATH |
| 14884 | shlibpath_overrides_runpath=yes |
| 14885 | ;; |
| 14886 | |
| 14887 | openbsd*) |
| 14888 | version_type=sunos |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 14889 | sys_lib_dlsearch_path_spec="/usr/lib" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14890 | need_lib_prefix=no |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 14891 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 14892 | case $host_os in |
| 14893 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 14894 | *) need_version=no ;; |
| 14895 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14896 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 14897 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 14898 | shlibpath_var=LD_LIBRARY_PATH |
| 14899 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 14900 | case $host_os in |
| 14901 | openbsd2.[89] | openbsd2.[89].*) |
| 14902 | shlibpath_overrides_runpath=no |
| 14903 | ;; |
| 14904 | *) |
| 14905 | shlibpath_overrides_runpath=yes |
| 14906 | ;; |
| 14907 | esac |
| 14908 | else |
| 14909 | shlibpath_overrides_runpath=yes |
| 14910 | fi |
| 14911 | ;; |
| 14912 | |
| 14913 | os2*) |
| 14914 | libname_spec='$name' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 14915 | shrext_cmds=".dll" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14916 | need_lib_prefix=no |
| 14917 | library_names_spec='$libname${shared_ext} $libname.a' |
| 14918 | dynamic_linker='OS/2 ld.exe' |
| 14919 | shlibpath_var=LIBPATH |
| 14920 | ;; |
| 14921 | |
| 14922 | osf3* | osf4* | osf5*) |
| 14923 | version_type=osf |
| 14924 | need_lib_prefix=no |
| 14925 | need_version=no |
| 14926 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14927 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14928 | shlibpath_var=LD_LIBRARY_PATH |
| 14929 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 14930 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 14931 | ;; |
| 14932 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14933 | solaris*) |
| 14934 | version_type=linux |
| 14935 | need_lib_prefix=no |
| 14936 | need_version=no |
| 14937 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14938 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14939 | shlibpath_var=LD_LIBRARY_PATH |
| 14940 | shlibpath_overrides_runpath=yes |
| 14941 | hardcode_into_libs=yes |
| 14942 | # ldd complains unless libraries are executable |
| 14943 | postinstall_cmds='chmod +x $lib' |
| 14944 | ;; |
| 14945 | |
| 14946 | sunos4*) |
| 14947 | version_type=sunos |
| 14948 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 14949 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 14950 | shlibpath_var=LD_LIBRARY_PATH |
| 14951 | shlibpath_overrides_runpath=yes |
| 14952 | if test "$with_gnu_ld" = yes; then |
| 14953 | need_lib_prefix=no |
| 14954 | fi |
| 14955 | need_version=yes |
| 14956 | ;; |
| 14957 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 14958 | sysv4 | sysv4.3*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14959 | version_type=linux |
| 14960 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14961 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14962 | shlibpath_var=LD_LIBRARY_PATH |
| 14963 | case $host_vendor in |
| 14964 | sni) |
| 14965 | shlibpath_overrides_runpath=no |
| 14966 | need_lib_prefix=no |
| 14967 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 14968 | runpath_var=LD_RUN_PATH |
| 14969 | ;; |
| 14970 | siemens) |
| 14971 | need_lib_prefix=no |
| 14972 | ;; |
| 14973 | motorola) |
| 14974 | need_lib_prefix=no |
| 14975 | need_version=no |
| 14976 | shlibpath_overrides_runpath=no |
| 14977 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 14978 | ;; |
| 14979 | esac |
| 14980 | ;; |
| 14981 | |
| 14982 | sysv4*MP*) |
| 14983 | if test -d /usr/nec ;then |
| 14984 | version_type=linux |
| 14985 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 14986 | soname_spec='$libname${shared_ext}.$major' |
| 14987 | shlibpath_var=LD_LIBRARY_PATH |
| 14988 | fi |
| 14989 | ;; |
| 14990 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 14991 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 14992 | version_type=freebsd-elf |
| 14993 | need_lib_prefix=no |
| 14994 | need_version=no |
| 14995 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 14996 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14997 | shlibpath_var=LD_LIBRARY_PATH |
| 14998 | hardcode_into_libs=yes |
| 14999 | if test "$with_gnu_ld" = yes; then |
| 15000 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 15001 | shlibpath_overrides_runpath=no |
| 15002 | else |
| 15003 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 15004 | shlibpath_overrides_runpath=yes |
| 15005 | case $host_os in |
| 15006 | sco3.2v5*) |
| 15007 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 15008 | ;; |
| 15009 | esac |
| 15010 | fi |
| 15011 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 15012 | ;; |
| 15013 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15014 | uts4*) |
| 15015 | version_type=linux |
| 15016 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15017 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15018 | shlibpath_var=LD_LIBRARY_PATH |
| 15019 | ;; |
| 15020 | |
| 15021 | *) |
| 15022 | dynamic_linker=no |
| 15023 | ;; |
| 15024 | esac |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 15025 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 15026 | echo "${ECHO_T}$dynamic_linker" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15027 | test "$dynamic_linker" = no && can_build_shared=no |
| 15028 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 15029 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 15030 | if test "$GCC" = yes; then |
| 15031 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 15032 | fi |
| 15033 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 15034 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 15035 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15036 | hardcode_action_F77= |
| 15037 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 15038 | test -n "$runpath_var_F77" || \ |
| 15039 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15040 | |
| 15041 | # We can hardcode non-existant directories. |
| 15042 | if test "$hardcode_direct_F77" != no && |
| 15043 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 15044 | # have to relink, otherwise we might link with an installed library |
| 15045 | # when we should be linking with a yet-to-be-installed one |
| 15046 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
| 15047 | test "$hardcode_minus_L_F77" != no; then |
| 15048 | # Linking always hardcodes the temporary library directory. |
| 15049 | hardcode_action_F77=relink |
| 15050 | else |
| 15051 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 15052 | hardcode_action_F77=immediate |
| 15053 | fi |
| 15054 | else |
| 15055 | # We cannot hardcode anything, or else we can only hardcode existing |
| 15056 | # directories. |
| 15057 | hardcode_action_F77=unsupported |
| 15058 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 15059 | { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
| 15060 | echo "${ECHO_T}$hardcode_action_F77" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15061 | |
| 15062 | if test "$hardcode_action_F77" = relink; then |
| 15063 | # Fast installation is not supported |
| 15064 | enable_fast_install=no |
| 15065 | elif test "$shlibpath_overrides_runpath" = yes || |
| 15066 | test "$enable_shared" = no; then |
| 15067 | # Fast installation is not necessary |
| 15068 | enable_fast_install=needless |
| 15069 | fi |
| 15070 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15071 | |
| 15072 | # The else clause should only fire when bootstrapping the |
| 15073 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 15074 | # with your package, and you will get complaints that there are |
| 15075 | # no rules to generate ltmain.sh. |
| 15076 | if test -f "$ltmain"; then |
| 15077 | # See if we are running on zsh, and set the options which allow our commands through |
| 15078 | # without removal of \ escapes. |
| 15079 | if test -n "${ZSH_VERSION+set}" ; then |
| 15080 | setopt NO_GLOB_SUBST |
| 15081 | fi |
| 15082 | # Now quote all the things that may contain metacharacters while being |
| 15083 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 15084 | # variables and quote the copies for generation of the libtool script. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 15085 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15086 | SED SHELL STRIP \ |
| 15087 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 15088 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 15089 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 15090 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 15091 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 15092 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 15093 | old_postinstall_cmds old_postuninstall_cmds \ |
| 15094 | compiler_F77 \ |
| 15095 | CC_F77 \ |
| 15096 | LD_F77 \ |
| 15097 | lt_prog_compiler_wl_F77 \ |
| 15098 | lt_prog_compiler_pic_F77 \ |
| 15099 | lt_prog_compiler_static_F77 \ |
| 15100 | lt_prog_compiler_no_builtin_flag_F77 \ |
| 15101 | export_dynamic_flag_spec_F77 \ |
| 15102 | thread_safe_flag_spec_F77 \ |
| 15103 | whole_archive_flag_spec_F77 \ |
| 15104 | enable_shared_with_static_runtimes_F77 \ |
| 15105 | old_archive_cmds_F77 \ |
| 15106 | old_archive_from_new_cmds_F77 \ |
| 15107 | predep_objects_F77 \ |
| 15108 | postdep_objects_F77 \ |
| 15109 | predeps_F77 \ |
| 15110 | postdeps_F77 \ |
| 15111 | compiler_lib_search_path_F77 \ |
| 15112 | archive_cmds_F77 \ |
| 15113 | archive_expsym_cmds_F77 \ |
| 15114 | postinstall_cmds_F77 \ |
| 15115 | postuninstall_cmds_F77 \ |
| 15116 | old_archive_from_expsyms_cmds_F77 \ |
| 15117 | allow_undefined_flag_F77 \ |
| 15118 | no_undefined_flag_F77 \ |
| 15119 | export_symbols_cmds_F77 \ |
| 15120 | hardcode_libdir_flag_spec_F77 \ |
| 15121 | hardcode_libdir_flag_spec_ld_F77 \ |
| 15122 | hardcode_libdir_separator_F77 \ |
| 15123 | hardcode_automatic_F77 \ |
| 15124 | module_cmds_F77 \ |
| 15125 | module_expsym_cmds_F77 \ |
| 15126 | lt_cv_prog_compiler_c_o_F77 \ |
| 15127 | exclude_expsyms_F77 \ |
| 15128 | include_expsyms_F77; do |
| 15129 | |
| 15130 | case $var in |
| 15131 | old_archive_cmds_F77 | \ |
| 15132 | old_archive_from_new_cmds_F77 | \ |
| 15133 | archive_cmds_F77 | \ |
| 15134 | archive_expsym_cmds_F77 | \ |
| 15135 | module_cmds_F77 | \ |
| 15136 | module_expsym_cmds_F77 | \ |
| 15137 | old_archive_from_expsyms_cmds_F77 | \ |
| 15138 | export_symbols_cmds_F77 | \ |
| 15139 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 15140 | postinstall_cmds | postuninstall_cmds | \ |
| 15141 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 15142 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 15143 | # Double-quote double-evaled strings. |
| 15144 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 15145 | ;; |
| 15146 | *) |
| 15147 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 15148 | ;; |
| 15149 | esac |
| 15150 | done |
| 15151 | |
| 15152 | case $lt_echo in |
| 15153 | *'\$0 --fallback-echo"') |
| 15154 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 15155 | ;; |
| 15156 | esac |
| 15157 | |
| 15158 | cfgfile="$ofile" |
| 15159 | |
| 15160 | cat <<__EOF__ >> "$cfgfile" |
| 15161 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 15162 | |
| 15163 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 15164 | |
| 15165 | # Shell to use when invoking shell scripts. |
| 15166 | SHELL=$lt_SHELL |
| 15167 | |
| 15168 | # Whether or not to build shared libraries. |
| 15169 | build_libtool_libs=$enable_shared |
| 15170 | |
| 15171 | # Whether or not to build static libraries. |
| 15172 | build_old_libs=$enable_static |
| 15173 | |
| 15174 | # Whether or not to add -lc for building shared libraries. |
| 15175 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
| 15176 | |
| 15177 | # Whether or not to disallow shared libs when runtime libs are static |
| 15178 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
| 15179 | |
| 15180 | # Whether or not to optimize for fast installation. |
| 15181 | fast_install=$enable_fast_install |
| 15182 | |
| 15183 | # The host system. |
| 15184 | host_alias=$host_alias |
| 15185 | host=$host |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 15186 | host_os=$host_os |
| 15187 | |
| 15188 | # The build system. |
| 15189 | build_alias=$build_alias |
| 15190 | build=$build |
| 15191 | build_os=$build_os |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15192 | |
| 15193 | # An echo program that does not interpret backslashes. |
| 15194 | echo=$lt_echo |
| 15195 | |
| 15196 | # The archiver. |
| 15197 | AR=$lt_AR |
| 15198 | AR_FLAGS=$lt_AR_FLAGS |
| 15199 | |
| 15200 | # A C compiler. |
| 15201 | LTCC=$lt_LTCC |
| 15202 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 15203 | # LTCC compiler flags. |
| 15204 | LTCFLAGS=$lt_LTCFLAGS |
| 15205 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15206 | # A language-specific compiler. |
| 15207 | CC=$lt_compiler_F77 |
| 15208 | |
| 15209 | # Is the compiler the GNU C compiler? |
| 15210 | with_gcc=$GCC_F77 |
| 15211 | |
| 15212 | # An ERE matcher. |
| 15213 | EGREP=$lt_EGREP |
| 15214 | |
| 15215 | # The linker used to build libraries. |
| 15216 | LD=$lt_LD_F77 |
| 15217 | |
| 15218 | # Whether we need hard or soft links. |
| 15219 | LN_S=$lt_LN_S |
| 15220 | |
| 15221 | # A BSD-compatible nm program. |
| 15222 | NM=$lt_NM |
| 15223 | |
| 15224 | # A symbol stripping program |
| 15225 | STRIP=$lt_STRIP |
| 15226 | |
| 15227 | # Used to examine libraries when file_magic_cmd begins "file" |
| 15228 | MAGIC_CMD=$MAGIC_CMD |
| 15229 | |
| 15230 | # Used on cygwin: DLL creation program. |
| 15231 | DLLTOOL="$DLLTOOL" |
| 15232 | |
| 15233 | # Used on cygwin: object dumper. |
| 15234 | OBJDUMP="$OBJDUMP" |
| 15235 | |
| 15236 | # Used on cygwin: assembler. |
| 15237 | AS="$AS" |
| 15238 | |
| 15239 | # The name of the directory that contains temporary libtool files. |
| 15240 | objdir=$objdir |
| 15241 | |
| 15242 | # How to create reloadable object files. |
| 15243 | reload_flag=$lt_reload_flag |
| 15244 | reload_cmds=$lt_reload_cmds |
| 15245 | |
| 15246 | # How to pass a linker flag through the compiler. |
| 15247 | wl=$lt_lt_prog_compiler_wl_F77 |
| 15248 | |
| 15249 | # Object file suffix (normally "o"). |
| 15250 | objext="$ac_objext" |
| 15251 | |
| 15252 | # Old archive suffix (normally "a"). |
| 15253 | libext="$libext" |
| 15254 | |
| 15255 | # Shared library suffix (normally ".so"). |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 15256 | shrext_cmds='$shrext_cmds' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15257 | |
| 15258 | # Executable file suffix (normally ""). |
| 15259 | exeext="$exeext" |
| 15260 | |
| 15261 | # Additional compiler flags for building library objects. |
| 15262 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
| 15263 | pic_mode=$pic_mode |
| 15264 | |
| 15265 | # What is the maximum length of a command? |
| 15266 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 15267 | |
| 15268 | # Does compiler simultaneously support -c and -o options? |
| 15269 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
| 15270 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 15271 | # Must we lock files when doing compilation? |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15272 | need_locks=$lt_need_locks |
| 15273 | |
| 15274 | # Do we need the lib prefix for modules? |
| 15275 | need_lib_prefix=$need_lib_prefix |
| 15276 | |
| 15277 | # Do we need a version for libraries? |
| 15278 | need_version=$need_version |
| 15279 | |
| 15280 | # Whether dlopen is supported. |
| 15281 | dlopen_support=$enable_dlopen |
| 15282 | |
| 15283 | # Whether dlopen of programs is supported. |
| 15284 | dlopen_self=$enable_dlopen_self |
| 15285 | |
| 15286 | # Whether dlopen of statically linked programs is supported. |
| 15287 | dlopen_self_static=$enable_dlopen_self_static |
| 15288 | |
| 15289 | # Compiler flag to prevent dynamic linking. |
| 15290 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
| 15291 | |
| 15292 | # Compiler flag to turn off builtin functions. |
| 15293 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
| 15294 | |
| 15295 | # Compiler flag to allow reflexive dlopens. |
| 15296 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
| 15297 | |
| 15298 | # Compiler flag to generate shared objects directly from archives. |
| 15299 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
| 15300 | |
| 15301 | # Compiler flag to generate thread-safe objects. |
| 15302 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
| 15303 | |
| 15304 | # Library versioning type. |
| 15305 | version_type=$version_type |
| 15306 | |
| 15307 | # Format of library name prefix. |
| 15308 | libname_spec=$lt_libname_spec |
| 15309 | |
| 15310 | # List of archive names. First name is the real one, the rest are links. |
| 15311 | # The last name is the one that the linker finds with -lNAME. |
| 15312 | library_names_spec=$lt_library_names_spec |
| 15313 | |
| 15314 | # The coded name of the library, if different from the real name. |
| 15315 | soname_spec=$lt_soname_spec |
| 15316 | |
| 15317 | # Commands used to build and install an old-style archive. |
| 15318 | RANLIB=$lt_RANLIB |
| 15319 | old_archive_cmds=$lt_old_archive_cmds_F77 |
| 15320 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 15321 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 15322 | |
| 15323 | # Create an old-style archive from a shared archive. |
| 15324 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
| 15325 | |
| 15326 | # Create a temporary old-style archive to link instead of a shared archive. |
| 15327 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
| 15328 | |
| 15329 | # Commands used to build and install a shared archive. |
| 15330 | archive_cmds=$lt_archive_cmds_F77 |
| 15331 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
| 15332 | postinstall_cmds=$lt_postinstall_cmds |
| 15333 | postuninstall_cmds=$lt_postuninstall_cmds |
| 15334 | |
| 15335 | # Commands used to build a loadable module (assumed same as above if empty) |
| 15336 | module_cmds=$lt_module_cmds_F77 |
| 15337 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
| 15338 | |
| 15339 | # Commands to strip libraries. |
| 15340 | old_striplib=$lt_old_striplib |
| 15341 | striplib=$lt_striplib |
| 15342 | |
| 15343 | # Dependencies to place before the objects being linked to create a |
| 15344 | # shared library. |
| 15345 | predep_objects=$lt_predep_objects_F77 |
| 15346 | |
| 15347 | # Dependencies to place after the objects being linked to create a |
| 15348 | # shared library. |
| 15349 | postdep_objects=$lt_postdep_objects_F77 |
| 15350 | |
| 15351 | # Dependencies to place before the objects being linked to create a |
| 15352 | # shared library. |
| 15353 | predeps=$lt_predeps_F77 |
| 15354 | |
| 15355 | # Dependencies to place after the objects being linked to create a |
| 15356 | # shared library. |
| 15357 | postdeps=$lt_postdeps_F77 |
| 15358 | |
| 15359 | # The library search path used internally by the compiler when linking |
| 15360 | # a shared library. |
| 15361 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
| 15362 | |
| 15363 | # Method to check whether dependent libraries are shared objects. |
| 15364 | deplibs_check_method=$lt_deplibs_check_method |
| 15365 | |
| 15366 | # Command to use when deplibs_check_method == file_magic. |
| 15367 | file_magic_cmd=$lt_file_magic_cmd |
| 15368 | |
| 15369 | # Flag that allows shared libraries with undefined symbols to be built. |
| 15370 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
| 15371 | |
| 15372 | # Flag that forces no undefined symbols. |
| 15373 | no_undefined_flag=$lt_no_undefined_flag_F77 |
| 15374 | |
| 15375 | # Commands used to finish a libtool library installation in a directory. |
| 15376 | finish_cmds=$lt_finish_cmds |
| 15377 | |
| 15378 | # Same as above, but a single script fragment to be evaled but not shown. |
| 15379 | finish_eval=$lt_finish_eval |
| 15380 | |
| 15381 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 15382 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 15383 | |
| 15384 | # Transform the output of nm in a proper C declaration |
| 15385 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 15386 | |
| 15387 | # Transform the output of nm in a C name address pair |
| 15388 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 15389 | |
| 15390 | # This is the shared library runtime path variable. |
| 15391 | runpath_var=$runpath_var |
| 15392 | |
| 15393 | # This is the shared library path variable. |
| 15394 | shlibpath_var=$shlibpath_var |
| 15395 | |
| 15396 | # Is shlibpath searched before the hard-coded library search path? |
| 15397 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 15398 | |
| 15399 | # How to hardcode a shared library path into an executable. |
| 15400 | hardcode_action=$hardcode_action_F77 |
| 15401 | |
| 15402 | # Whether we should hardcode library paths into libraries. |
| 15403 | hardcode_into_libs=$hardcode_into_libs |
| 15404 | |
| 15405 | # Flag to hardcode \$libdir into a binary during linking. |
| 15406 | # This must work even if \$libdir does not exist. |
| 15407 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
| 15408 | |
| 15409 | # If ld is used when linking, flag to hardcode \$libdir into |
| 15410 | # a binary during linking. This must work even if \$libdir does |
| 15411 | # not exist. |
| 15412 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
| 15413 | |
| 15414 | # Whether we need a single -rpath flag with a separated argument. |
| 15415 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
| 15416 | |
| 15417 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 15418 | # resulting binary. |
| 15419 | hardcode_direct=$hardcode_direct_F77 |
| 15420 | |
| 15421 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 15422 | # resulting binary. |
| 15423 | hardcode_minus_L=$hardcode_minus_L_F77 |
| 15424 | |
| 15425 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 15426 | # the resulting binary. |
| 15427 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
| 15428 | |
| 15429 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 15430 | # and all subsequent libraries and executables linked against it. |
| 15431 | hardcode_automatic=$hardcode_automatic_F77 |
| 15432 | |
| 15433 | # Variables whose values should be saved in libtool wrapper scripts and |
| 15434 | # restored at relink time. |
| 15435 | variables_saved_for_relink="$variables_saved_for_relink" |
| 15436 | |
| 15437 | # Whether libtool must link a program against all its dependency libraries. |
| 15438 | link_all_deplibs=$link_all_deplibs_F77 |
| 15439 | |
| 15440 | # Compile-time system search path for libraries |
| 15441 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 15442 | |
| 15443 | # Run-time system search path for libraries |
| 15444 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 15445 | |
| 15446 | # Fix the shell variable \$srcfile for the compiler. |
| 15447 | fix_srcfile_path="$fix_srcfile_path_F77" |
| 15448 | |
| 15449 | # Set to yes if exported symbols are required. |
| 15450 | always_export_symbols=$always_export_symbols_F77 |
| 15451 | |
| 15452 | # The commands to list exported symbols. |
| 15453 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
| 15454 | |
| 15455 | # The commands to extract the exported symbol list from a shared archive. |
| 15456 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 15457 | |
| 15458 | # Symbols that should not be listed in the preloaded symbols. |
| 15459 | exclude_expsyms=$lt_exclude_expsyms_F77 |
| 15460 | |
| 15461 | # Symbols that must always be exported. |
| 15462 | include_expsyms=$lt_include_expsyms_F77 |
| 15463 | |
| 15464 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 15465 | |
| 15466 | __EOF__ |
| 15467 | |
| 15468 | |
| 15469 | else |
| 15470 | # If there is no Makefile yet, we rely on a make rule to execute |
| 15471 | # `config.status --recheck' to rerun these tests and create the |
| 15472 | # libtool script then. |
| 15473 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 15474 | if test -f "$ltmain_in"; then |
| 15475 | test -f Makefile && make "$ltmain" |
| 15476 | fi |
| 15477 | fi |
| 15478 | |
| 15479 | |
| 15480 | ac_ext=c |
| 15481 | ac_cpp='$CPP $CPPFLAGS' |
| 15482 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 15483 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 15484 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 15485 | |
| 15486 | CC="$lt_save_CC" |
| 15487 | |
| 15488 | else |
| 15489 | tagname="" |
| 15490 | fi |
| 15491 | ;; |
| 15492 | |
| 15493 | GCJ) |
| 15494 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
| 15495 | |
| 15496 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15497 | # Source file extension for Java test sources. |
| 15498 | ac_ext=java |
| 15499 | |
| 15500 | # Object file extension for compiled Java test sources. |
| 15501 | objext=o |
| 15502 | objext_GCJ=$objext |
| 15503 | |
| 15504 | # Code to be used in simple compile tests |
| 15505 | lt_simple_compile_test_code="class foo {}\n" |
| 15506 | |
| 15507 | # Code to be used in simple link tests |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 15508 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15509 | |
| 15510 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 15511 | |
| 15512 | # If no C compiler was specified, use CC. |
| 15513 | LTCC=${LTCC-"$CC"} |
| 15514 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 15515 | # If no C compiler flags were specified, use CFLAGS. |
| 15516 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 15517 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15518 | # Allow CC to be a program name with arguments. |
| 15519 | compiler=$CC |
| 15520 | |
| 15521 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 15522 | # save warnings/boilerplate of simple test code |
| 15523 | ac_outfile=conftest.$ac_objext |
| 15524 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 15525 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 15526 | _lt_compiler_boilerplate=`cat conftest.err` |
| 15527 | $rm conftest* |
| 15528 | |
| 15529 | ac_outfile=conftest.$ac_objext |
| 15530 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 15531 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 15532 | _lt_linker_boilerplate=`cat conftest.err` |
| 15533 | $rm conftest* |
| 15534 | |
| 15535 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15536 | # Allow CC to be a program name with arguments. |
| 15537 | lt_save_CC="$CC" |
| 15538 | CC=${GCJ-"gcj"} |
| 15539 | compiler=$CC |
| 15540 | compiler_GCJ=$CC |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 15541 | for cc_temp in $compiler""; do |
| 15542 | case $cc_temp in |
| 15543 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 15544 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 15545 | \-*) ;; |
| 15546 | *) break;; |
| 15547 | esac |
| 15548 | done |
| 15549 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 15550 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15551 | |
| 15552 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
| 15553 | archive_cmds_need_lc_GCJ=no |
| 15554 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 15555 | old_archive_cmds_GCJ=$old_archive_cmds |
| 15556 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15557 | |
| 15558 | lt_prog_compiler_no_builtin_flag_GCJ= |
| 15559 | |
| 15560 | if test "$GCC" = yes; then |
| 15561 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
| 15562 | |
| 15563 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 15564 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 15565 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15566 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 15567 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15568 | else |
| 15569 | lt_cv_prog_compiler_rtti_exceptions=no |
| 15570 | ac_outfile=conftest.$ac_objext |
| 15571 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15572 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 15573 | # Insert the option either (1) after the last *FLAGS variable, or |
| 15574 | # (2) before a word containing "conftest.", or (3) at the end. |
| 15575 | # Note that $ac_compile itself does not contain backslashes and begins |
| 15576 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 15577 | # The option is referenced via a variable to avoid confusing sed. |
| 15578 | lt_compile=`echo "$ac_compile" | $SED \ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 15579 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15580 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 15581 | -e 's:$: $lt_compiler_flag:'` |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame^] | 15582 | (eval echo "\"\$as_me:15582: $lt_compile\"" >&5) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15583 | (eval "$lt_compile" 2>conftest.err) |
| 15584 | ac_status=$? |
| 15585 | cat conftest.err >&5 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame^] | 15586 | echo "$as_me:15586: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15587 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 15588 | # The compiler can only warn and ignore the option if not recognized |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 15589 | # So say no if there are warnings other than the usual output. |
| 15590 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 15591 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 15592 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15593 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 15594 | fi |
| 15595 | fi |
| 15596 | $rm conftest* |
| 15597 | |
| 15598 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 15599 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 15600 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15601 | |
| 15602 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 15603 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
| 15604 | else |
| 15605 | : |
| 15606 | fi |
| 15607 | |
| 15608 | fi |
| 15609 | |
| 15610 | lt_prog_compiler_wl_GCJ= |
| 15611 | lt_prog_compiler_pic_GCJ= |
| 15612 | lt_prog_compiler_static_GCJ= |
| 15613 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 15614 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 15615 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15616 | |
| 15617 | if test "$GCC" = yes; then |
| 15618 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 15619 | lt_prog_compiler_static_GCJ='-static' |
| 15620 | |
| 15621 | case $host_os in |
| 15622 | aix*) |
| 15623 | # All AIX code is PIC. |
| 15624 | if test "$host_cpu" = ia64; then |
| 15625 | # AIX 5 now supports IA64 processor |
| 15626 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 15627 | fi |
| 15628 | ;; |
| 15629 | |
| 15630 | amigaos*) |
| 15631 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 15632 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 15633 | # like `-m68040'. |
| 15634 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
| 15635 | ;; |
| 15636 | |
| 15637 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 15638 | # PIC is the default for these OSes. |
| 15639 | ;; |
| 15640 | |
| 15641 | mingw* | pw32* | os2*) |
| 15642 | # This hack is so that the source file can tell whether it is being |
| 15643 | # built for inclusion in a dll (and should export symbols for example). |
| 15644 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 15645 | ;; |
| 15646 | |
| 15647 | darwin* | rhapsody*) |
| 15648 | # PIC is the default on this platform |
| 15649 | # Common symbols not allowed in MH_DYLIB files |
| 15650 | lt_prog_compiler_pic_GCJ='-fno-common' |
| 15651 | ;; |
| 15652 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 15653 | interix3*) |
| 15654 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 15655 | # Instead, we relocate shared libraries at runtime. |
| 15656 | ;; |
| 15657 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15658 | msdosdjgpp*) |
| 15659 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 15660 | # on systems that don't support them. |
| 15661 | lt_prog_compiler_can_build_shared_GCJ=no |
| 15662 | enable_shared=no |
| 15663 | ;; |
| 15664 | |
| 15665 | sysv4*MP*) |
| 15666 | if test -d /usr/nec; then |
| 15667 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
| 15668 | fi |
| 15669 | ;; |
| 15670 | |
| 15671 | hpux*) |
| 15672 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 15673 | # not for PA HP-UX. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 15674 | case $host_cpu in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15675 | hppa*64*|ia64*) |
| 15676 | # +Z the default |
| 15677 | ;; |
| 15678 | *) |
| 15679 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 15680 | ;; |
| 15681 | esac |
| 15682 | ;; |
| 15683 | |
| 15684 | *) |
| 15685 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 15686 | ;; |
| 15687 | esac |
| 15688 | else |
| 15689 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 15690 | case $host_os in |
| 15691 | aix*) |
| 15692 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 15693 | if test "$host_cpu" = ia64; then |
| 15694 | # AIX 5 now supports IA64 processor |
| 15695 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 15696 | else |
| 15697 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
| 15698 | fi |
| 15699 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 15700 | darwin*) |
| 15701 | # PIC is the default on this platform |
| 15702 | # Common symbols not allowed in MH_DYLIB files |
| 15703 | case $cc_basename in |
| 15704 | xlc*) |
| 15705 | lt_prog_compiler_pic_GCJ='-qnocommon' |
| 15706 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 15707 | ;; |
| 15708 | esac |
| 15709 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15710 | |
| 15711 | mingw* | pw32* | os2*) |
| 15712 | # This hack is so that the source file can tell whether it is being |
| 15713 | # built for inclusion in a dll (and should export symbols for example). |
| 15714 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 15715 | ;; |
| 15716 | |
| 15717 | hpux9* | hpux10* | hpux11*) |
| 15718 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 15719 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 15720 | # not for PA HP-UX. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 15721 | case $host_cpu in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15722 | hppa*64*|ia64*) |
| 15723 | # +Z the default |
| 15724 | ;; |
| 15725 | *) |
| 15726 | lt_prog_compiler_pic_GCJ='+Z' |
| 15727 | ;; |
| 15728 | esac |
| 15729 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 15730 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
| 15731 | ;; |
| 15732 | |
| 15733 | irix5* | irix6* | nonstopux*) |
| 15734 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 15735 | # PIC (with -KPIC) is the default. |
| 15736 | lt_prog_compiler_static_GCJ='-non_shared' |
| 15737 | ;; |
| 15738 | |
| 15739 | newsos6) |
| 15740 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 15741 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 15742 | ;; |
| 15743 | |
| 15744 | linux*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 15745 | case $cc_basename in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15746 | icc* | ecc*) |
| 15747 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 15748 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 15749 | lt_prog_compiler_static_GCJ='-static' |
| 15750 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 15751 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 15752 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 15753 | # which looks to be a dead project) |
| 15754 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 15755 | lt_prog_compiler_pic_GCJ='-fpic' |
| 15756 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 15757 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15758 | ccc*) |
| 15759 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 15760 | # All Alpha code is PIC. |
| 15761 | lt_prog_compiler_static_GCJ='-non_shared' |
| 15762 | ;; |
| 15763 | esac |
| 15764 | ;; |
| 15765 | |
| 15766 | osf3* | osf4* | osf5*) |
| 15767 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 15768 | # All OSF/1 code is PIC. |
| 15769 | lt_prog_compiler_static_GCJ='-non_shared' |
| 15770 | ;; |
| 15771 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15772 | solaris*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15773 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 15774 | lt_prog_compiler_static_GCJ='-Bstatic' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 15775 | case $cc_basename in |
| 15776 | f77* | f90* | f95*) |
| 15777 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
| 15778 | *) |
| 15779 | lt_prog_compiler_wl_GCJ='-Wl,';; |
| 15780 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15781 | ;; |
| 15782 | |
| 15783 | sunos4*) |
| 15784 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
| 15785 | lt_prog_compiler_pic_GCJ='-PIC' |
| 15786 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 15787 | ;; |
| 15788 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 15789 | sysv4 | sysv4.2uw2* | sysv4.3*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15790 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 15791 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 15792 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 15793 | ;; |
| 15794 | |
| 15795 | sysv4*MP*) |
| 15796 | if test -d /usr/nec ;then |
| 15797 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
| 15798 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 15799 | fi |
| 15800 | ;; |
| 15801 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 15802 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 15803 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 15804 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 15805 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 15806 | ;; |
| 15807 | |
| 15808 | unicos*) |
| 15809 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 15810 | lt_prog_compiler_can_build_shared_GCJ=no |
| 15811 | ;; |
| 15812 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15813 | uts4*) |
| 15814 | lt_prog_compiler_pic_GCJ='-pic' |
| 15815 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 15816 | ;; |
| 15817 | |
| 15818 | *) |
| 15819 | lt_prog_compiler_can_build_shared_GCJ=no |
| 15820 | ;; |
| 15821 | esac |
| 15822 | fi |
| 15823 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 15824 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
| 15825 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15826 | |
| 15827 | # |
| 15828 | # Check to make sure the PIC flag actually works. |
| 15829 | # |
| 15830 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
| 15831 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 15832 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
| 15833 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15834 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
| 15835 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15836 | else |
| 15837 | lt_prog_compiler_pic_works_GCJ=no |
| 15838 | ac_outfile=conftest.$ac_objext |
| 15839 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15840 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
| 15841 | # Insert the option either (1) after the last *FLAGS variable, or |
| 15842 | # (2) before a word containing "conftest.", or (3) at the end. |
| 15843 | # Note that $ac_compile itself does not contain backslashes and begins |
| 15844 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 15845 | # The option is referenced via a variable to avoid confusing sed. |
| 15846 | lt_compile=`echo "$ac_compile" | $SED \ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 15847 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15848 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 15849 | -e 's:$: $lt_compiler_flag:'` |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame^] | 15850 | (eval echo "\"\$as_me:15850: $lt_compile\"" >&5) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15851 | (eval "$lt_compile" 2>conftest.err) |
| 15852 | ac_status=$? |
| 15853 | cat conftest.err >&5 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame^] | 15854 | echo "$as_me:15854: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15855 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 15856 | # The compiler can only warn and ignore the option if not recognized |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 15857 | # So say no if there are warnings other than the usual output. |
| 15858 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 15859 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 15860 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15861 | lt_prog_compiler_pic_works_GCJ=yes |
| 15862 | fi |
| 15863 | fi |
| 15864 | $rm conftest* |
| 15865 | |
| 15866 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 15867 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
| 15868 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15869 | |
| 15870 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
| 15871 | case $lt_prog_compiler_pic_GCJ in |
| 15872 | "" | " "*) ;; |
| 15873 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
| 15874 | esac |
| 15875 | else |
| 15876 | lt_prog_compiler_pic_GCJ= |
| 15877 | lt_prog_compiler_can_build_shared_GCJ=no |
| 15878 | fi |
| 15879 | |
| 15880 | fi |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 15881 | case $host_os in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15882 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 15883 | *djgpp*) |
| 15884 | lt_prog_compiler_pic_GCJ= |
| 15885 | ;; |
| 15886 | *) |
| 15887 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
| 15888 | ;; |
| 15889 | esac |
| 15890 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 15891 | # |
| 15892 | # Check to make sure the static flag actually works. |
| 15893 | # |
| 15894 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 15895 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 15896 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 15897 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
| 15898 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15899 | else |
| 15900 | lt_prog_compiler_static_works_GCJ=no |
| 15901 | save_LDFLAGS="$LDFLAGS" |
| 15902 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 15903 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 15904 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 15905 | # The linker can only warn and ignore the option if not recognized |
| 15906 | # So say no if there are warnings |
| 15907 | if test -s conftest.err; then |
| 15908 | # Append any errors to the config.log. |
| 15909 | cat conftest.err 1>&5 |
| 15910 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 15911 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 15912 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 15913 | lt_prog_compiler_static_works_GCJ=yes |
| 15914 | fi |
| 15915 | else |
| 15916 | lt_prog_compiler_static_works_GCJ=yes |
| 15917 | fi |
| 15918 | fi |
| 15919 | $rm conftest* |
| 15920 | LDFLAGS="$save_LDFLAGS" |
| 15921 | |
| 15922 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 15923 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
| 15924 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 15925 | |
| 15926 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
| 15927 | : |
| 15928 | else |
| 15929 | lt_prog_compiler_static_GCJ= |
| 15930 | fi |
| 15931 | |
| 15932 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 15933 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 15934 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15935 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
| 15936 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15937 | else |
| 15938 | lt_cv_prog_compiler_c_o_GCJ=no |
| 15939 | $rm -r conftest 2>/dev/null |
| 15940 | mkdir conftest |
| 15941 | cd conftest |
| 15942 | mkdir out |
| 15943 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15944 | |
| 15945 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 15946 | # Insert the option either (1) after the last *FLAGS variable, or |
| 15947 | # (2) before a word containing "conftest.", or (3) at the end. |
| 15948 | # Note that $ac_compile itself does not contain backslashes and begins |
| 15949 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 15950 | lt_compile=`echo "$ac_compile" | $SED \ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 15951 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15952 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 15953 | -e 's:$: $lt_compiler_flag:'` |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame^] | 15954 | (eval echo "\"\$as_me:15954: $lt_compile\"" >&5) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15955 | (eval "$lt_compile" 2>out/conftest.err) |
| 15956 | ac_status=$? |
| 15957 | cat out/conftest.err >&5 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame^] | 15958 | echo "$as_me:15958: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15959 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 15960 | then |
| 15961 | # The compiler can only warn and ignore the option if not recognized |
| 15962 | # So say no if there are warnings |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 15963 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 15964 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 15965 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15966 | lt_cv_prog_compiler_c_o_GCJ=yes |
| 15967 | fi |
| 15968 | fi |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 15969 | chmod u+w . 2>&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15970 | $rm conftest* |
| 15971 | # SGI C++ compiler will create directory out/ii_files/ for |
| 15972 | # template instantiation |
| 15973 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 15974 | $rm out/* && rmdir out |
| 15975 | cd .. |
| 15976 | rmdir conftest |
| 15977 | $rm conftest* |
| 15978 | |
| 15979 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 15980 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
| 15981 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15982 | |
| 15983 | |
| 15984 | hard_links="nottested" |
| 15985 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
| 15986 | # do not overwrite the value of need_locks provided by the user |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 15987 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 15988 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15989 | hard_links=yes |
| 15990 | $rm conftest* |
| 15991 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 15992 | touch conftest.a |
| 15993 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 15994 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 15995 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 15996 | echo "${ECHO_T}$hard_links" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15997 | if test "$hard_links" = no; then |
| 15998 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 15999 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 16000 | need_locks=warn |
| 16001 | fi |
| 16002 | else |
| 16003 | need_locks=no |
| 16004 | fi |
| 16005 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 16006 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 16007 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16008 | |
| 16009 | runpath_var= |
| 16010 | allow_undefined_flag_GCJ= |
| 16011 | enable_shared_with_static_runtimes_GCJ=no |
| 16012 | archive_cmds_GCJ= |
| 16013 | archive_expsym_cmds_GCJ= |
| 16014 | old_archive_From_new_cmds_GCJ= |
| 16015 | old_archive_from_expsyms_cmds_GCJ= |
| 16016 | export_dynamic_flag_spec_GCJ= |
| 16017 | whole_archive_flag_spec_GCJ= |
| 16018 | thread_safe_flag_spec_GCJ= |
| 16019 | hardcode_libdir_flag_spec_GCJ= |
| 16020 | hardcode_libdir_flag_spec_ld_GCJ= |
| 16021 | hardcode_libdir_separator_GCJ= |
| 16022 | hardcode_direct_GCJ=no |
| 16023 | hardcode_minus_L_GCJ=no |
| 16024 | hardcode_shlibpath_var_GCJ=unsupported |
| 16025 | link_all_deplibs_GCJ=unknown |
| 16026 | hardcode_automatic_GCJ=no |
| 16027 | module_cmds_GCJ= |
| 16028 | module_expsym_cmds_GCJ= |
| 16029 | always_export_symbols_GCJ=no |
| 16030 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 16031 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 16032 | # included in the symbol list |
| 16033 | include_expsyms_GCJ= |
| 16034 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 16035 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 16036 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 16037 | # as well as any symbol that contains `d'. |
| 16038 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
| 16039 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 16040 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 16041 | # the symbol is explicitly referenced. Since portable code cannot |
| 16042 | # rely on this symbol name, it's probably fine to never include it in |
| 16043 | # preloaded symbol tables. |
| 16044 | extract_expsyms_cmds= |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16045 | # Just being paranoid about ensuring that cc_basename is set. |
| 16046 | for cc_temp in $compiler""; do |
| 16047 | case $cc_temp in |
| 16048 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 16049 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 16050 | \-*) ;; |
| 16051 | *) break;; |
| 16052 | esac |
| 16053 | done |
| 16054 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16055 | |
| 16056 | case $host_os in |
| 16057 | cygwin* | mingw* | pw32*) |
| 16058 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 16059 | # When not using gcc, we currently assume that we are using |
| 16060 | # Microsoft Visual C++. |
| 16061 | if test "$GCC" != yes; then |
| 16062 | with_gnu_ld=no |
| 16063 | fi |
| 16064 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16065 | interix*) |
| 16066 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 16067 | with_gnu_ld=yes |
| 16068 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16069 | openbsd*) |
| 16070 | with_gnu_ld=no |
| 16071 | ;; |
| 16072 | esac |
| 16073 | |
| 16074 | ld_shlibs_GCJ=yes |
| 16075 | if test "$with_gnu_ld" = yes; then |
| 16076 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 16077 | wlarc='${wl}' |
| 16078 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16079 | # Set some defaults for GNU ld with shared library support. These |
| 16080 | # are reset later if shared libraries are not supported. Putting them |
| 16081 | # here allows them to be overridden if necessary. |
| 16082 | runpath_var=LD_RUN_PATH |
| 16083 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
| 16084 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
| 16085 | # ancient GNU ld didn't support --whole-archive et. al. |
| 16086 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 16087 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 16088 | else |
| 16089 | whole_archive_flag_spec_GCJ= |
| 16090 | fi |
| 16091 | supports_anon_versioning=no |
| 16092 | case `$LD -v 2>/dev/null` in |
| 16093 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 16094 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 16095 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 16096 | *\ 2.11.*) ;; # other 2.11 versions |
| 16097 | *) supports_anon_versioning=yes ;; |
| 16098 | esac |
| 16099 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16100 | # See if GNU ld supports shared libraries. |
| 16101 | case $host_os in |
| 16102 | aix3* | aix4* | aix5*) |
| 16103 | # On AIX/PPC, the GNU linker is very broken |
| 16104 | if test "$host_cpu" != ia64; then |
| 16105 | ld_shlibs_GCJ=no |
| 16106 | cat <<EOF 1>&2 |
| 16107 | |
| 16108 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 16109 | *** to be unable to reliably create shared libraries on AIX. |
| 16110 | *** Therefore, libtool is disabling shared libraries support. If you |
| 16111 | *** really care for shared libraries, you may want to modify your PATH |
| 16112 | *** so that a non-GNU linker is found, and then restart. |
| 16113 | |
| 16114 | EOF |
| 16115 | fi |
| 16116 | ;; |
| 16117 | |
| 16118 | amigaos*) |
| 16119 | 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)' |
| 16120 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 16121 | hardcode_minus_L_GCJ=yes |
| 16122 | |
| 16123 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 16124 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 16125 | # to version 4, is to share data among multiple programs linked |
| 16126 | # with the same dynamic library. Since this doesn't match the |
| 16127 | # behavior of shared libraries on other platforms, we can't use |
| 16128 | # them. |
| 16129 | ld_shlibs_GCJ=no |
| 16130 | ;; |
| 16131 | |
| 16132 | beos*) |
| 16133 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 16134 | allow_undefined_flag_GCJ=unsupported |
| 16135 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 16136 | # support --undefined. This deserves some investigation. FIXME |
| 16137 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 16138 | else |
| 16139 | ld_shlibs_GCJ=no |
| 16140 | fi |
| 16141 | ;; |
| 16142 | |
| 16143 | cygwin* | mingw* | pw32*) |
| 16144 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
| 16145 | # as there is no search path for DLLs. |
| 16146 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 16147 | allow_undefined_flag_GCJ=unsupported |
| 16148 | always_export_symbols_GCJ=no |
| 16149 | enable_shared_with_static_runtimes_GCJ=yes |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16150 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16151 | |
| 16152 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16153 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16154 | # If the export-symbols file already is a .def file (1st line |
| 16155 | # is EXPORTS), use it as is; otherwise, prepend... |
| 16156 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 16157 | cp $export_symbols $output_objdir/$soname.def; |
| 16158 | else |
| 16159 | echo EXPORTS > $output_objdir/$soname.def; |
| 16160 | cat $export_symbols >> $output_objdir/$soname.def; |
| 16161 | fi~ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16162 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16163 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16164 | ld_shlibs_GCJ=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16165 | fi |
| 16166 | ;; |
| 16167 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16168 | interix3*) |
| 16169 | hardcode_direct_GCJ=no |
| 16170 | hardcode_shlibpath_var_GCJ=no |
| 16171 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 16172 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 16173 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 16174 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 16175 | # default) and relocated if they conflict, which is a slow very memory |
| 16176 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 16177 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 16178 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 16179 | 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' |
| 16180 | 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' |
| 16181 | ;; |
| 16182 | |
| 16183 | linux*) |
| 16184 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 16185 | tmp_addflag= |
| 16186 | case $cc_basename,$host_cpu in |
| 16187 | pgcc*) # Portland Group C compiler |
| 16188 | 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' |
| 16189 | tmp_addflag=' $pic_flag' |
| 16190 | ;; |
| 16191 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 16192 | 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' |
| 16193 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 16194 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 16195 | tmp_addflag=' -i_dynamic' ;; |
| 16196 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 16197 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 16198 | ifc* | ifort*) # Intel Fortran compiler |
| 16199 | tmp_addflag=' -nofor_main' ;; |
| 16200 | esac |
| 16201 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 16202 | |
| 16203 | if test $supports_anon_versioning = yes; then |
| 16204 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 16205 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 16206 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 16207 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 16208 | fi |
| 16209 | else |
| 16210 | ld_shlibs_GCJ=no |
| 16211 | fi |
| 16212 | ;; |
| 16213 | |
| 16214 | netbsd*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16215 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 16216 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 16217 | wlarc= |
| 16218 | else |
| 16219 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 16220 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 16221 | fi |
| 16222 | ;; |
| 16223 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16224 | solaris*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16225 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 16226 | ld_shlibs_GCJ=no |
| 16227 | cat <<EOF 1>&2 |
| 16228 | |
| 16229 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 16230 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 16231 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 16232 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 16233 | *** your PATH or compiler configuration so that the native linker is |
| 16234 | *** used, and then restart. |
| 16235 | |
| 16236 | EOF |
| 16237 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 16238 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 16239 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 16240 | else |
| 16241 | ld_shlibs_GCJ=no |
| 16242 | fi |
| 16243 | ;; |
| 16244 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16245 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 16246 | case `$LD -v 2>&1` in |
| 16247 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 16248 | ld_shlibs_GCJ=no |
| 16249 | cat <<_LT_EOF 1>&2 |
| 16250 | |
| 16251 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 16252 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 16253 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 16254 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 16255 | *** your PATH or compiler configuration so that the native linker is |
| 16256 | *** used, and then restart. |
| 16257 | |
| 16258 | _LT_EOF |
| 16259 | ;; |
| 16260 | *) |
| 16261 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 16262 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 16263 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 16264 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 16265 | else |
| 16266 | ld_shlibs_GCJ=no |
| 16267 | fi |
| 16268 | ;; |
| 16269 | esac |
| 16270 | ;; |
| 16271 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16272 | sunos4*) |
| 16273 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 16274 | wlarc= |
| 16275 | hardcode_direct_GCJ=yes |
| 16276 | hardcode_shlibpath_var_GCJ=no |
| 16277 | ;; |
| 16278 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16279 | *) |
| 16280 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 16281 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 16282 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 16283 | else |
| 16284 | ld_shlibs_GCJ=no |
| 16285 | fi |
| 16286 | ;; |
| 16287 | esac |
| 16288 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16289 | if test "$ld_shlibs_GCJ" = no; then |
| 16290 | runpath_var= |
| 16291 | hardcode_libdir_flag_spec_GCJ= |
| 16292 | export_dynamic_flag_spec_GCJ= |
| 16293 | whole_archive_flag_spec_GCJ= |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16294 | fi |
| 16295 | else |
| 16296 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 16297 | case $host_os in |
| 16298 | aix3*) |
| 16299 | allow_undefined_flag_GCJ=unsupported |
| 16300 | always_export_symbols_GCJ=yes |
| 16301 | 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' |
| 16302 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 16303 | # are no directories specified by -L. |
| 16304 | hardcode_minus_L_GCJ=yes |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16305 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16306 | # Neither direct hardcoding nor static linking is supported with a |
| 16307 | # broken collect2. |
| 16308 | hardcode_direct_GCJ=unsupported |
| 16309 | fi |
| 16310 | ;; |
| 16311 | |
| 16312 | aix4* | aix5*) |
| 16313 | if test "$host_cpu" = ia64; then |
| 16314 | # On IA64, the linker does run time linking by default, so we don't |
| 16315 | # have to do anything special. |
| 16316 | aix_use_runtimelinking=no |
| 16317 | exp_sym_flag='-Bexport' |
| 16318 | no_entry_flag="" |
| 16319 | else |
| 16320 | # If we're using GNU nm, then we don't want the "-C" option. |
| 16321 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 16322 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 16323 | 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' |
| 16324 | else |
| 16325 | 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' |
| 16326 | fi |
| 16327 | aix_use_runtimelinking=no |
| 16328 | |
| 16329 | # Test if we are trying to use run time linking or normal |
| 16330 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 16331 | # need to do runtime linking. |
| 16332 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 16333 | for ld_flag in $LDFLAGS; do |
| 16334 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 16335 | aix_use_runtimelinking=yes |
| 16336 | break |
| 16337 | fi |
| 16338 | done |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16339 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16340 | esac |
| 16341 | |
| 16342 | exp_sym_flag='-bexport' |
| 16343 | no_entry_flag='-bnoentry' |
| 16344 | fi |
| 16345 | |
| 16346 | # When large executables or shared objects are built, AIX ld can |
| 16347 | # have problems creating the table of contents. If linking a library |
| 16348 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 16349 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 16350 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 16351 | |
| 16352 | archive_cmds_GCJ='' |
| 16353 | hardcode_direct_GCJ=yes |
| 16354 | hardcode_libdir_separator_GCJ=':' |
| 16355 | link_all_deplibs_GCJ=yes |
| 16356 | |
| 16357 | if test "$GCC" = yes; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16358 | case $host_os in aix4.[012]|aix4.[012].*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16359 | # We only want to do this on AIX 4.2 and lower, the check |
| 16360 | # below for broken collect2 doesn't work under 4.3+ |
| 16361 | collect2name=`${CC} -print-prog-name=collect2` |
| 16362 | if test -f "$collect2name" && \ |
| 16363 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 16364 | then |
| 16365 | # We have reworked collect2 |
| 16366 | hardcode_direct_GCJ=yes |
| 16367 | else |
| 16368 | # We have old collect2 |
| 16369 | hardcode_direct_GCJ=unsupported |
| 16370 | # It fails to find uninstalled libraries when the uninstalled |
| 16371 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 16372 | # to unsupported forces relinking |
| 16373 | hardcode_minus_L_GCJ=yes |
| 16374 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 16375 | hardcode_libdir_separator_GCJ= |
| 16376 | fi |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16377 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16378 | esac |
| 16379 | shared_flag='-shared' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16380 | if test "$aix_use_runtimelinking" = yes; then |
| 16381 | shared_flag="$shared_flag "'${wl}-G' |
| 16382 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16383 | else |
| 16384 | # not using gcc |
| 16385 | if test "$host_cpu" = ia64; then |
| 16386 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 16387 | # chokes on -Wl,-G. The following line is correct: |
| 16388 | shared_flag='-G' |
| 16389 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16390 | if test "$aix_use_runtimelinking" = yes; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16391 | shared_flag='${wl}-G' |
| 16392 | else |
| 16393 | shared_flag='${wl}-bM:SRE' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16394 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16395 | fi |
| 16396 | fi |
| 16397 | |
| 16398 | # It seems that -bexpall does not export symbols beginning with |
| 16399 | # underscore (_), so it is better to generate a list of symbols to export. |
| 16400 | always_export_symbols_GCJ=yes |
| 16401 | if test "$aix_use_runtimelinking" = yes; then |
| 16402 | # Warning - without using the other runtime loading flags (-brtl), |
| 16403 | # -berok will link without error, but may produce a broken library. |
| 16404 | allow_undefined_flag_GCJ='-berok' |
| 16405 | # Determine the default libpath from the value encoded in an empty executable. |
| 16406 | cat >conftest.$ac_ext <<_ACEOF |
| 16407 | /* confdefs.h. */ |
| 16408 | _ACEOF |
| 16409 | cat confdefs.h >>conftest.$ac_ext |
| 16410 | cat >>conftest.$ac_ext <<_ACEOF |
| 16411 | /* end confdefs.h. */ |
| 16412 | |
| 16413 | int |
| 16414 | main () |
| 16415 | { |
| 16416 | |
| 16417 | ; |
| 16418 | return 0; |
| 16419 | } |
| 16420 | _ACEOF |
| 16421 | rm -f conftest.$ac_objext conftest$ac_exeext |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 16422 | if { (ac_try="$ac_link" |
| 16423 | case "(($ac_try" in |
| 16424 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16425 | *) ac_try_echo=$ac_try;; |
| 16426 | esac |
| 16427 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16428 | (eval "$ac_link") 2>conftest.er1 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16429 | ac_status=$? |
| 16430 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16431 | rm -f conftest.er1 |
| 16432 | cat conftest.err >&5 |
| 16433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 16434 | (exit $ac_status); } && { |
| 16435 | test -z "$ac_c_werror_flag" || |
| 16436 | test ! -s conftest.err |
| 16437 | } && test -s conftest$ac_exeext && |
| 16438 | $as_test_x conftest$ac_exeext; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16439 | |
| 16440 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 16441 | }'` |
| 16442 | # Check for a 64-bit object if we didn't find anything. |
| 16443 | 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; } |
| 16444 | }'`; fi |
| 16445 | else |
| 16446 | echo "$as_me: failed program was:" >&5 |
| 16447 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16448 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 16449 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16450 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 16451 | |
| 16452 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16453 | conftest$ac_exeext conftest.$ac_ext |
| 16454 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 16455 | |
| 16456 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16457 | 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" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16458 | else |
| 16459 | if test "$host_cpu" = ia64; then |
| 16460 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
| 16461 | allow_undefined_flag_GCJ="-z nodefs" |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16462 | 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" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16463 | else |
| 16464 | # Determine the default libpath from the value encoded in an empty executable. |
| 16465 | cat >conftest.$ac_ext <<_ACEOF |
| 16466 | /* confdefs.h. */ |
| 16467 | _ACEOF |
| 16468 | cat confdefs.h >>conftest.$ac_ext |
| 16469 | cat >>conftest.$ac_ext <<_ACEOF |
| 16470 | /* end confdefs.h. */ |
| 16471 | |
| 16472 | int |
| 16473 | main () |
| 16474 | { |
| 16475 | |
| 16476 | ; |
| 16477 | return 0; |
| 16478 | } |
| 16479 | _ACEOF |
| 16480 | rm -f conftest.$ac_objext conftest$ac_exeext |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 16481 | if { (ac_try="$ac_link" |
| 16482 | case "(($ac_try" in |
| 16483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16484 | *) ac_try_echo=$ac_try;; |
| 16485 | esac |
| 16486 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16487 | (eval "$ac_link") 2>conftest.er1 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16488 | ac_status=$? |
| 16489 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16490 | rm -f conftest.er1 |
| 16491 | cat conftest.err >&5 |
| 16492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 16493 | (exit $ac_status); } && { |
| 16494 | test -z "$ac_c_werror_flag" || |
| 16495 | test ! -s conftest.err |
| 16496 | } && test -s conftest$ac_exeext && |
| 16497 | $as_test_x conftest$ac_exeext; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16498 | |
| 16499 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 16500 | }'` |
| 16501 | # Check for a 64-bit object if we didn't find anything. |
| 16502 | 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; } |
| 16503 | }'`; fi |
| 16504 | else |
| 16505 | echo "$as_me: failed program was:" >&5 |
| 16506 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16507 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 16508 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16509 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 16510 | |
| 16511 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16512 | conftest$ac_exeext conftest.$ac_ext |
| 16513 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 16514 | |
| 16515 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 16516 | # Warning - without using the other run time loading flags, |
| 16517 | # -berok will link without error, but may produce a broken library. |
| 16518 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
| 16519 | allow_undefined_flag_GCJ=' ${wl}-berok' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16520 | # Exported symbols can be pulled into shared objects from archives |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16521 | whole_archive_flag_spec_GCJ='$convenience' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16522 | archive_cmds_need_lc_GCJ=yes |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16523 | # This is similar to how AIX traditionally builds its shared libraries. |
| 16524 | 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' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16525 | fi |
| 16526 | fi |
| 16527 | ;; |
| 16528 | |
| 16529 | amigaos*) |
| 16530 | 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)' |
| 16531 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 16532 | hardcode_minus_L_GCJ=yes |
| 16533 | # see comment about different semantics on the GNU ld section |
| 16534 | ld_shlibs_GCJ=no |
| 16535 | ;; |
| 16536 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16537 | bsdi[45]*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16538 | export_dynamic_flag_spec_GCJ=-rdynamic |
| 16539 | ;; |
| 16540 | |
| 16541 | cygwin* | mingw* | pw32*) |
| 16542 | # When not using gcc, we currently assume that we are using |
| 16543 | # Microsoft Visual C++. |
| 16544 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 16545 | # no search path for DLLs. |
| 16546 | hardcode_libdir_flag_spec_GCJ=' ' |
| 16547 | allow_undefined_flag_GCJ=unsupported |
| 16548 | # Tell ltmain to make .lib files, not .a files. |
| 16549 | libext=lib |
| 16550 | # Tell ltmain to make .dll files, not .so files. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16551 | shrext_cmds=".dll" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16552 | # FIXME: Setting linknames here is a bad hack. |
| 16553 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 16554 | # The linker will automatically build a .lib file if we build a DLL. |
| 16555 | old_archive_From_new_cmds_GCJ='true' |
| 16556 | # FIXME: Should let the user specify the lib program. |
| 16557 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16558 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16559 | enable_shared_with_static_runtimes_GCJ=yes |
| 16560 | ;; |
| 16561 | |
| 16562 | darwin* | rhapsody*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16563 | case $host_os in |
| 16564 | rhapsody* | darwin1.[012]) |
| 16565 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
| 16566 | ;; |
| 16567 | *) # Darwin 1.3 on |
| 16568 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 16569 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 16570 | else |
| 16571 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 16572 | 10.[012]) |
| 16573 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 16574 | ;; |
| 16575 | 10.*) |
| 16576 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
| 16577 | ;; |
| 16578 | esac |
| 16579 | fi |
| 16580 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16581 | esac |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16582 | archive_cmds_need_lc_GCJ=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16583 | hardcode_direct_GCJ=no |
| 16584 | hardcode_automatic_GCJ=yes |
| 16585 | hardcode_shlibpath_var_GCJ=unsupported |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16586 | whole_archive_flag_spec_GCJ='' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16587 | link_all_deplibs_GCJ=yes |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16588 | if test "$GCC" = yes ; then |
| 16589 | output_verbose_link_cmd='echo' |
| 16590 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 16591 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 16592 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 16593 | 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}' |
| 16594 | 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}' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16595 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16596 | case $cc_basename in |
| 16597 | xlc*) |
| 16598 | output_verbose_link_cmd='echo' |
| 16599 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 16600 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 16601 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 16602 | 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}' |
| 16603 | 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}' |
| 16604 | ;; |
| 16605 | *) |
| 16606 | ld_shlibs_GCJ=no |
| 16607 | ;; |
| 16608 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16609 | fi |
| 16610 | ;; |
| 16611 | |
| 16612 | dgux*) |
| 16613 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16614 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 16615 | hardcode_shlibpath_var_GCJ=no |
| 16616 | ;; |
| 16617 | |
| 16618 | freebsd1*) |
| 16619 | ld_shlibs_GCJ=no |
| 16620 | ;; |
| 16621 | |
| 16622 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 16623 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 16624 | # does not break anything, and helps significantly (at the cost of a little |
| 16625 | # extra space). |
| 16626 | freebsd2.2*) |
| 16627 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 16628 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 16629 | hardcode_direct_GCJ=yes |
| 16630 | hardcode_shlibpath_var_GCJ=no |
| 16631 | ;; |
| 16632 | |
| 16633 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 16634 | freebsd2*) |
| 16635 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 16636 | hardcode_direct_GCJ=yes |
| 16637 | hardcode_minus_L_GCJ=yes |
| 16638 | hardcode_shlibpath_var_GCJ=no |
| 16639 | ;; |
| 16640 | |
| 16641 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16642 | freebsd* | kfreebsd*-gnu | dragonfly*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16643 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 16644 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 16645 | hardcode_direct_GCJ=yes |
| 16646 | hardcode_shlibpath_var_GCJ=no |
| 16647 | ;; |
| 16648 | |
| 16649 | hpux9*) |
| 16650 | if test "$GCC" = yes; then |
| 16651 | 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' |
| 16652 | else |
| 16653 | 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' |
| 16654 | fi |
| 16655 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 16656 | hardcode_libdir_separator_GCJ=: |
| 16657 | hardcode_direct_GCJ=yes |
| 16658 | |
| 16659 | # hardcode_minus_L: Not really in the search PATH, |
| 16660 | # but as the default location of the library. |
| 16661 | hardcode_minus_L_GCJ=yes |
| 16662 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 16663 | ;; |
| 16664 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16665 | hpux10*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16666 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16667 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 16668 | else |
| 16669 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 16670 | fi |
| 16671 | if test "$with_gnu_ld" = no; then |
| 16672 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 16673 | hardcode_libdir_separator_GCJ=: |
| 16674 | |
| 16675 | hardcode_direct_GCJ=yes |
| 16676 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 16677 | |
| 16678 | # hardcode_minus_L: Not really in the search PATH, |
| 16679 | # but as the default location of the library. |
| 16680 | hardcode_minus_L_GCJ=yes |
| 16681 | fi |
| 16682 | ;; |
| 16683 | |
| 16684 | hpux11*) |
| 16685 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 16686 | case $host_cpu in |
| 16687 | hppa*64*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16688 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16689 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16690 | ia64*) |
| 16691 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 16692 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16693 | *) |
| 16694 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 16695 | ;; |
| 16696 | esac |
| 16697 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16698 | case $host_cpu in |
| 16699 | hppa*64*) |
| 16700 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16701 | ;; |
| 16702 | ia64*) |
| 16703 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16704 | ;; |
| 16705 | *) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16706 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16707 | ;; |
| 16708 | esac |
| 16709 | fi |
| 16710 | if test "$with_gnu_ld" = no; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16711 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 16712 | hardcode_libdir_separator_GCJ=: |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16713 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16714 | case $host_cpu in |
| 16715 | hppa*64*|ia64*) |
| 16716 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
| 16717 | hardcode_direct_GCJ=no |
| 16718 | hardcode_shlibpath_var_GCJ=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16719 | ;; |
| 16720 | *) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16721 | hardcode_direct_GCJ=yes |
| 16722 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 16723 | |
| 16724 | # hardcode_minus_L: Not really in the search PATH, |
| 16725 | # but as the default location of the library. |
| 16726 | hardcode_minus_L_GCJ=yes |
| 16727 | ;; |
| 16728 | esac |
| 16729 | fi |
| 16730 | ;; |
| 16731 | |
| 16732 | irix5* | irix6* | nonstopux*) |
| 16733 | if test "$GCC" = yes; then |
| 16734 | 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' |
| 16735 | else |
| 16736 | 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' |
| 16737 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
| 16738 | fi |
| 16739 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 16740 | hardcode_libdir_separator_GCJ=: |
| 16741 | link_all_deplibs_GCJ=yes |
| 16742 | ;; |
| 16743 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16744 | netbsd*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16745 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 16746 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 16747 | else |
| 16748 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 16749 | fi |
| 16750 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 16751 | hardcode_direct_GCJ=yes |
| 16752 | hardcode_shlibpath_var_GCJ=no |
| 16753 | ;; |
| 16754 | |
| 16755 | newsos6) |
| 16756 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16757 | hardcode_direct_GCJ=yes |
| 16758 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 16759 | hardcode_libdir_separator_GCJ=: |
| 16760 | hardcode_shlibpath_var_GCJ=no |
| 16761 | ;; |
| 16762 | |
| 16763 | openbsd*) |
| 16764 | hardcode_direct_GCJ=yes |
| 16765 | hardcode_shlibpath_var_GCJ=no |
| 16766 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 16767 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16768 | archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16769 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 16770 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 16771 | else |
| 16772 | case $host_os in |
| 16773 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 16774 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 16775 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 16776 | ;; |
| 16777 | *) |
| 16778 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 16779 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 16780 | ;; |
| 16781 | esac |
| 16782 | fi |
| 16783 | ;; |
| 16784 | |
| 16785 | os2*) |
| 16786 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 16787 | hardcode_minus_L_GCJ=yes |
| 16788 | allow_undefined_flag_GCJ=unsupported |
| 16789 | 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' |
| 16790 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 16791 | ;; |
| 16792 | |
| 16793 | osf3*) |
| 16794 | if test "$GCC" = yes; then |
| 16795 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 16796 | 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' |
| 16797 | else |
| 16798 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 16799 | 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' |
| 16800 | fi |
| 16801 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 16802 | hardcode_libdir_separator_GCJ=: |
| 16803 | ;; |
| 16804 | |
| 16805 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 16806 | if test "$GCC" = yes; then |
| 16807 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 16808 | 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' |
| 16809 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 16810 | else |
| 16811 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 16812 | 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' |
| 16813 | 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~ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16814 | $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' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16815 | |
| 16816 | # Both c and cxx compiler support -rpath directly |
| 16817 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
| 16818 | fi |
| 16819 | hardcode_libdir_separator_GCJ=: |
| 16820 | ;; |
| 16821 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16822 | solaris*) |
| 16823 | no_undefined_flag_GCJ=' -z text' |
| 16824 | if test "$GCC" = yes; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16825 | wlarc='${wl}' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16826 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16827 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 16828 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 16829 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16830 | wlarc='' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16831 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16832 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 16833 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 16834 | fi |
| 16835 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 16836 | hardcode_shlibpath_var_GCJ=no |
| 16837 | case $host_os in |
| 16838 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16839 | *) |
| 16840 | # The compiler driver will combine linker options so we |
| 16841 | # cannot just pass the convience library names through |
| 16842 | # without $wl, iff we do not link with $LD. |
| 16843 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 16844 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 16845 | case $wlarc in |
| 16846 | '') |
| 16847 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
| 16848 | *) |
| 16849 | 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' ;; |
| 16850 | esac ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16851 | esac |
| 16852 | link_all_deplibs_GCJ=yes |
| 16853 | ;; |
| 16854 | |
| 16855 | sunos4*) |
| 16856 | if test "x$host_vendor" = xsequent; then |
| 16857 | # Use $CC to link under sequent, because it throws in some extra .o |
| 16858 | # files that make .init and .fini sections work. |
| 16859 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16860 | else |
| 16861 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 16862 | fi |
| 16863 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 16864 | hardcode_direct_GCJ=yes |
| 16865 | hardcode_minus_L_GCJ=yes |
| 16866 | hardcode_shlibpath_var_GCJ=no |
| 16867 | ;; |
| 16868 | |
| 16869 | sysv4) |
| 16870 | case $host_vendor in |
| 16871 | sni) |
| 16872 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16873 | hardcode_direct_GCJ=yes # is this really true??? |
| 16874 | ;; |
| 16875 | siemens) |
| 16876 | ## LD is ld it makes a PLAMLIB |
| 16877 | ## CC just makes a GrossModule. |
| 16878 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 16879 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
| 16880 | hardcode_direct_GCJ=no |
| 16881 | ;; |
| 16882 | motorola) |
| 16883 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16884 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
| 16885 | ;; |
| 16886 | esac |
| 16887 | runpath_var='LD_RUN_PATH' |
| 16888 | hardcode_shlibpath_var_GCJ=no |
| 16889 | ;; |
| 16890 | |
| 16891 | sysv4.3*) |
| 16892 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16893 | hardcode_shlibpath_var_GCJ=no |
| 16894 | export_dynamic_flag_spec_GCJ='-Bexport' |
| 16895 | ;; |
| 16896 | |
| 16897 | sysv4*MP*) |
| 16898 | if test -d /usr/nec; then |
| 16899 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16900 | hardcode_shlibpath_var_GCJ=no |
| 16901 | runpath_var=LD_RUN_PATH |
| 16902 | hardcode_runpath_var=yes |
| 16903 | ld_shlibs_GCJ=yes |
| 16904 | fi |
| 16905 | ;; |
| 16906 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16907 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 16908 | no_undefined_flag_GCJ='${wl}-z,text' |
| 16909 | archive_cmds_need_lc_GCJ=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16910 | hardcode_shlibpath_var_GCJ=no |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16911 | runpath_var='LD_RUN_PATH' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16912 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16913 | if test "$GCC" = yes; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16914 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16915 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16916 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16917 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16918 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16919 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16920 | ;; |
| 16921 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16922 | sysv5* | sco3.2v5* | sco5v6*) |
| 16923 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 16924 | # link with -lc, and that would cause any symbols used from libc to |
| 16925 | # always be unresolved, which means just about no library would |
| 16926 | # ever link correctly. If we're not using GNU ld we use -z text |
| 16927 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 16928 | # as -z defs. |
| 16929 | no_undefined_flag_GCJ='${wl}-z,text' |
| 16930 | allow_undefined_flag_GCJ='${wl}-z,nodefs' |
| 16931 | archive_cmds_need_lc_GCJ=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16932 | hardcode_shlibpath_var_GCJ=no |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16933 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 16934 | hardcode_libdir_separator_GCJ=':' |
| 16935 | link_all_deplibs_GCJ=yes |
| 16936 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16937 | runpath_var='LD_RUN_PATH' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16938 | |
| 16939 | if test "$GCC" = yes; then |
| 16940 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16941 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16942 | else |
| 16943 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16944 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16945 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16946 | ;; |
| 16947 | |
| 16948 | uts4*) |
| 16949 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16950 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 16951 | hardcode_shlibpath_var_GCJ=no |
| 16952 | ;; |
| 16953 | |
| 16954 | *) |
| 16955 | ld_shlibs_GCJ=no |
| 16956 | ;; |
| 16957 | esac |
| 16958 | fi |
| 16959 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 16960 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
| 16961 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16962 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
| 16963 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16964 | # |
| 16965 | # Do we need to explicitly link libc? |
| 16966 | # |
| 16967 | case "x$archive_cmds_need_lc_GCJ" in |
| 16968 | x|xyes) |
| 16969 | # Assume -lc should be added |
| 16970 | archive_cmds_need_lc_GCJ=yes |
| 16971 | |
| 16972 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 16973 | case $archive_cmds_GCJ in |
| 16974 | *'~'*) |
| 16975 | # FIXME: we may have to deal with multi-command sequences. |
| 16976 | ;; |
| 16977 | '$CC '*) |
| 16978 | # Test whether the compiler implicitly links with -lc since on some |
| 16979 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 16980 | # to ld, don't add -lc before -lgcc. |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 16981 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 16982 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16983 | $rm conftest* |
| 16984 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16985 | |
| 16986 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16987 | (eval $ac_compile) 2>&5 |
| 16988 | ac_status=$? |
| 16989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16990 | (exit $ac_status); } 2>conftest.err; then |
| 16991 | soname=conftest |
| 16992 | lib=conftest |
| 16993 | libobjs=conftest.$ac_objext |
| 16994 | deplibs= |
| 16995 | wl=$lt_prog_compiler_wl_GCJ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 16996 | pic_flag=$lt_prog_compiler_pic_GCJ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16997 | compiler_flags=-v |
| 16998 | linker_flags=-v |
| 16999 | verstring= |
| 17000 | output_objdir=. |
| 17001 | libname=conftest |
| 17002 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
| 17003 | allow_undefined_flag_GCJ= |
| 17004 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 17005 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 17006 | ac_status=$? |
| 17007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17008 | (exit $ac_status); } |
| 17009 | then |
| 17010 | archive_cmds_need_lc_GCJ=no |
| 17011 | else |
| 17012 | archive_cmds_need_lc_GCJ=yes |
| 17013 | fi |
| 17014 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
| 17015 | else |
| 17016 | cat conftest.err 1>&5 |
| 17017 | fi |
| 17018 | $rm conftest* |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 17019 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
| 17020 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 17021 | ;; |
| 17022 | esac |
| 17023 | fi |
| 17024 | ;; |
| 17025 | esac |
| 17026 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 17027 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 17028 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 17029 | library_names_spec= |
| 17030 | libname_spec='lib$name' |
| 17031 | soname_spec= |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 17032 | shrext_cmds=".so" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 17033 | postinstall_cmds= |
| 17034 | postuninstall_cmds= |
| 17035 | finish_cmds= |
| 17036 | finish_eval= |
| 17037 | shlibpath_var= |
| 17038 | shlibpath_overrides_runpath=unknown |
| 17039 | version_type=none |
| 17040 | dynamic_linker="$host_os ld.so" |
| 17041 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 17042 | if test "$GCC" = yes; then |
| 17043 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 17044 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 17045 | # if the path contains ";" then we assume it to be the separator |
| 17046 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 17047 | # assumed that no part of a normal pathname contains ";" but that should |
| 17048 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 17049 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 17050 | else |
| 17051 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 17052 | fi |
| 17053 | else |
| 17054 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 17055 | fi |
| 17056 | need_lib_prefix=unknown |
| 17057 | hardcode_into_libs=no |
| 17058 | |
| 17059 | # when you set need_version to no, make sure it does not cause -set_version |
| 17060 | # flags to be left without arguments |
| 17061 | need_version=unknown |
| 17062 | |
| 17063 | case $host_os in |
| 17064 | aix3*) |
| 17065 | version_type=linux |
| 17066 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 17067 | shlibpath_var=LIBPATH |
| 17068 | |
| 17069 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 17070 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17071 | ;; |
| 17072 | |
| 17073 | aix4* | aix5*) |
| 17074 | version_type=linux |
| 17075 | need_lib_prefix=no |
| 17076 | need_version=no |
| 17077 | hardcode_into_libs=yes |
| 17078 | if test "$host_cpu" = ia64; then |
| 17079 | # AIX 5 supports IA64 |
| 17080 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 17081 | shlibpath_var=LD_LIBRARY_PATH |
| 17082 | else |
| 17083 | # With GCC up to 2.95.x, collect2 would create an import file |
| 17084 | # for dependence libraries. The import file would start with |
| 17085 | # the line `#! .'. This would cause the generated library to |
| 17086 | # depend on `.', always an invalid library. This was fixed in |
| 17087 | # development snapshots of GCC prior to 3.0. |
| 17088 | case $host_os in |
| 17089 | aix4 | aix4.[01] | aix4.[01].*) |
| 17090 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 17091 | echo ' yes ' |
| 17092 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 17093 | : |
| 17094 | else |
| 17095 | can_build_shared=no |
| 17096 | fi |
| 17097 | ;; |
| 17098 | esac |
| 17099 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 17100 | # soname into executable. Probably we can add versioning support to |
| 17101 | # collect2, so additional links can be useful in future. |
| 17102 | if test "$aix_use_runtimelinking" = yes; then |
| 17103 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 17104 | # instead of lib<name>.a to let people know that these are not |
| 17105 | # typical AIX shared libraries. |
| 17106 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17107 | else |
| 17108 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 17109 | # and later when we are not doing run time linking. |
| 17110 | library_names_spec='${libname}${release}.a $libname.a' |
| 17111 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17112 | fi |
| 17113 | shlibpath_var=LIBPATH |
| 17114 | fi |
| 17115 | ;; |
| 17116 | |
| 17117 | amigaos*) |
| 17118 | library_names_spec='$libname.ixlibrary $libname.a' |
| 17119 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 17120 | 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' |
| 17121 | ;; |
| 17122 | |
| 17123 | beos*) |
| 17124 | library_names_spec='${libname}${shared_ext}' |
| 17125 | dynamic_linker="$host_os ld.so" |
| 17126 | shlibpath_var=LIBRARY_PATH |
| 17127 | ;; |
| 17128 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 17129 | bsdi[45]*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 17130 | version_type=linux |
| 17131 | need_version=no |
| 17132 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17133 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17134 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 17135 | shlibpath_var=LD_LIBRARY_PATH |
| 17136 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 17137 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 17138 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 17139 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 17140 | # libtool to hard-code these into programs |
| 17141 | ;; |
| 17142 | |
| 17143 | cygwin* | mingw* | pw32*) |
| 17144 | version_type=windows |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 17145 | shrext_cmds=".dll" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 17146 | need_version=no |
| 17147 | need_lib_prefix=no |
| 17148 | |
| 17149 | case $GCC,$host_os in |
| 17150 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 17151 | library_names_spec='$libname.dll.a' |
| 17152 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 17153 | postinstall_cmds='base_file=`basename \${file}`~ |
| 17154 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 17155 | dldir=$destdir/`dirname \$dlpath`~ |
| 17156 | test -d \$dldir || mkdir -p \$dldir~ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 17157 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 17158 | chmod a+x \$dldir/$dlname' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 17159 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 17160 | dlpath=$dir/\$dldll~ |
| 17161 | $rm \$dlpath' |
| 17162 | shlibpath_overrides_runpath=yes |
| 17163 | |
| 17164 | case $host_os in |
| 17165 | cygwin*) |
| 17166 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 17167 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 17168 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 17169 | ;; |
| 17170 | mingw*) |
| 17171 | # MinGW DLLs use traditional 'lib' prefix |
| 17172 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 17173 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 17174 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 17175 | # It is most probably a Windows format PATH printed by |
| 17176 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 17177 | # path with ; separators, and with drive letters. We can handle the |
| 17178 | # drive letters (cygwin fileutils understands them), so leave them, |
| 17179 | # especially as we might pass files found there to a mingw objdump, |
| 17180 | # which wouldn't understand a cygwinified path. Ahh. |
| 17181 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 17182 | else |
| 17183 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 17184 | fi |
| 17185 | ;; |
| 17186 | pw32*) |
| 17187 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 17188 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 17189 | ;; |
| 17190 | esac |
| 17191 | ;; |
| 17192 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 17193 | linux*) |
| 17194 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 17195 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17196 | supports_anon_versioning=no |
| 17197 | case `$LD -v 2>/dev/null` in |
| 17198 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 17199 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 17200 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 17201 | *\ 2.11.*) ;; # other 2.11 versions |
| 17202 | *) supports_anon_versioning=yes ;; |
| 17203 | esac |
| 17204 | if test $supports_anon_versioning = yes; then |
| 17205 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 17206 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 17207 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 17208 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 17209 | else |
| 17210 | $archive_expsym_cmds="$archive_cmds" |
| 17211 | fi |
| 17212 | else |
| 17213 | ld_shlibs=no |
| 17214 | fi |
| 17215 | ;; |
| 17216 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 17217 | *) |
| 17218 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 17219 | ;; |
| 17220 | esac |
| 17221 | dynamic_linker='Win32 ld.exe' |
| 17222 | # FIXME: first we should search . and the directory the executable is in |
| 17223 | shlibpath_var=PATH |
| 17224 | ;; |
| 17225 | |
| 17226 | darwin* | rhapsody*) |
| 17227 | dynamic_linker="$host_os dyld" |
| 17228 | version_type=darwin |
| 17229 | need_lib_prefix=no |
| 17230 | need_version=no |
| 17231 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 17232 | soname_spec='${libname}${release}${major}$shared_ext' |
| 17233 | shlibpath_overrides_runpath=yes |
| 17234 | shlibpath_var=DYLD_LIBRARY_PATH |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 17235 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 17236 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 17237 | if test "$GCC" = yes; then |
| 17238 | 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"` |
| 17239 | else |
| 17240 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 17241 | fi |
| 17242 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 17243 | ;; |
| 17244 | |
| 17245 | dgux*) |
| 17246 | version_type=linux |
| 17247 | need_lib_prefix=no |
| 17248 | need_version=no |
| 17249 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 17250 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17251 | shlibpath_var=LD_LIBRARY_PATH |
| 17252 | ;; |
| 17253 | |
| 17254 | freebsd1*) |
| 17255 | dynamic_linker=no |
| 17256 | ;; |
| 17257 | |
| 17258 | kfreebsd*-gnu) |
| 17259 | version_type=linux |
| 17260 | need_lib_prefix=no |
| 17261 | need_version=no |
| 17262 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 17263 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17264 | shlibpath_var=LD_LIBRARY_PATH |
| 17265 | shlibpath_overrides_runpath=no |
| 17266 | hardcode_into_libs=yes |
| 17267 | dynamic_linker='GNU ld.so' |
| 17268 | ;; |
| 17269 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 17270 | freebsd* | dragonfly*) |
| 17271 | # DragonFly does not have aout. When/if they implement a new |
| 17272 | # versioning mechanism, adjust this. |
| 17273 | if test -x /usr/bin/objformat; then |
| 17274 | objformat=`/usr/bin/objformat` |
| 17275 | else |
| 17276 | case $host_os in |
| 17277 | freebsd[123]*) objformat=aout ;; |
| 17278 | *) objformat=elf ;; |
| 17279 | esac |
| 17280 | fi |
| 17281 | # Handle Gentoo/FreeBSD as it was Linux |
| 17282 | case $host_vendor in |
| 17283 | gentoo) |
| 17284 | version_type=linux ;; |
| 17285 | *) |
| 17286 | version_type=freebsd-$objformat ;; |
| 17287 | esac |
| 17288 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 17289 | case $version_type in |
| 17290 | freebsd-elf*) |
| 17291 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 17292 | need_version=no |
| 17293 | need_lib_prefix=no |
| 17294 | ;; |
| 17295 | freebsd-*) |
| 17296 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 17297 | need_version=yes |
| 17298 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 17299 | linux) |
| 17300 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 17301 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17302 | need_lib_prefix=no |
| 17303 | need_version=no |
| 17304 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 17305 | esac |
| 17306 | shlibpath_var=LD_LIBRARY_PATH |
| 17307 | case $host_os in |
| 17308 | freebsd2*) |
| 17309 | shlibpath_overrides_runpath=yes |
| 17310 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 17311 | freebsd3.[01]* | freebsdelf3.[01]*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 17312 | shlibpath_overrides_runpath=yes |
| 17313 | hardcode_into_libs=yes |
| 17314 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 17315 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 17316 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 17317 | shlibpath_overrides_runpath=no |
| 17318 | hardcode_into_libs=yes |
| 17319 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 17320 | freebsd*) # from 4.6 on |
| 17321 | shlibpath_overrides_runpath=yes |
| 17322 | hardcode_into_libs=yes |
| 17323 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 17324 | esac |
| 17325 | ;; |
| 17326 | |
| 17327 | gnu*) |
| 17328 | version_type=linux |
| 17329 | need_lib_prefix=no |
| 17330 | need_version=no |
| 17331 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 17332 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17333 | shlibpath_var=LD_LIBRARY_PATH |
| 17334 | hardcode_into_libs=yes |
| 17335 | ;; |
| 17336 | |
| 17337 | hpux9* | hpux10* | hpux11*) |
| 17338 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 17339 | # link against other versions. |
| 17340 | version_type=sunos |
| 17341 | need_lib_prefix=no |
| 17342 | need_version=no |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 17343 | case $host_cpu in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 17344 | ia64*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 17345 | shrext_cmds='.so' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 17346 | hardcode_into_libs=yes |
| 17347 | dynamic_linker="$host_os dld.so" |
| 17348 | shlibpath_var=LD_LIBRARY_PATH |
| 17349 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 17350 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17351 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17352 | if test "X$HPUX_IA64_MODE" = X32; then |
| 17353 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 17354 | else |
| 17355 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 17356 | fi |
| 17357 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 17358 | ;; |
| 17359 | hppa*64*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 17360 | shrext_cmds='.sl' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 17361 | hardcode_into_libs=yes |
| 17362 | dynamic_linker="$host_os dld.sl" |
| 17363 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 17364 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 17365 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17366 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17367 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 17368 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 17369 | ;; |
| 17370 | *) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 17371 | shrext_cmds='.sl' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 17372 | dynamic_linker="$host_os dld.sl" |
| 17373 | shlibpath_var=SHLIB_PATH |
| 17374 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 17375 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17376 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17377 | ;; |
| 17378 | esac |
| 17379 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 17380 | postinstall_cmds='chmod 555 $lib' |
| 17381 | ;; |
| 17382 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 17383 | interix3*) |
| 17384 | version_type=linux |
| 17385 | need_lib_prefix=no |
| 17386 | need_version=no |
| 17387 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 17388 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17389 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 17390 | shlibpath_var=LD_LIBRARY_PATH |
| 17391 | shlibpath_overrides_runpath=no |
| 17392 | hardcode_into_libs=yes |
| 17393 | ;; |
| 17394 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 17395 | irix5* | irix6* | nonstopux*) |
| 17396 | case $host_os in |
| 17397 | nonstopux*) version_type=nonstopux ;; |
| 17398 | *) |
| 17399 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 17400 | version_type=linux |
| 17401 | else |
| 17402 | version_type=irix |
| 17403 | fi ;; |
| 17404 | esac |
| 17405 | need_lib_prefix=no |
| 17406 | need_version=no |
| 17407 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17408 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 17409 | case $host_os in |
| 17410 | irix5* | nonstopux*) |
| 17411 | libsuff= shlibsuff= |
| 17412 | ;; |
| 17413 | *) |
| 17414 | case $LD in # libtool.m4 will add one of these switches to LD |
| 17415 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 17416 | libsuff= shlibsuff= libmagic=32-bit;; |
| 17417 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 17418 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 17419 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 17420 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 17421 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 17422 | esac |
| 17423 | ;; |
| 17424 | esac |
| 17425 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 17426 | shlibpath_overrides_runpath=no |
| 17427 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 17428 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 17429 | hardcode_into_libs=yes |
| 17430 | ;; |
| 17431 | |
| 17432 | # No shared lib support for Linux oldld, aout, or coff. |
| 17433 | linux*oldld* | linux*aout* | linux*coff*) |
| 17434 | dynamic_linker=no |
| 17435 | ;; |
| 17436 | |
| 17437 | # This must be Linux ELF. |
| 17438 | linux*) |
| 17439 | version_type=linux |
| 17440 | need_lib_prefix=no |
| 17441 | need_version=no |
| 17442 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17443 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17444 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 17445 | shlibpath_var=LD_LIBRARY_PATH |
| 17446 | shlibpath_overrides_runpath=no |
| 17447 | # This implies no fast_install, which is unacceptable. |
| 17448 | # Some rework will be needed to allow for fast_install |
| 17449 | # before this can be enabled. |
| 17450 | hardcode_into_libs=yes |
| 17451 | |
| 17452 | # Append ld.so.conf contents to the search path |
| 17453 | if test -f /etc/ld.so.conf; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 17454 | 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' ' '` |
| 17455 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 17456 | fi |
| 17457 | |
| 17458 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 17459 | # powerpc, because MkLinux only supported shared libraries with the |
| 17460 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 17461 | # most powerpc-linux boxes support dynamic linking these days and |
| 17462 | # people can always --disable-shared, the test was removed, and we |
| 17463 | # assume the GNU/Linux dynamic linker is in use. |
| 17464 | dynamic_linker='GNU/Linux ld.so' |
| 17465 | ;; |
| 17466 | |
| 17467 | knetbsd*-gnu) |
| 17468 | version_type=linux |
| 17469 | need_lib_prefix=no |
| 17470 | need_version=no |
| 17471 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 17472 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17473 | shlibpath_var=LD_LIBRARY_PATH |
| 17474 | shlibpath_overrides_runpath=no |
| 17475 | hardcode_into_libs=yes |
| 17476 | dynamic_linker='GNU ld.so' |
| 17477 | ;; |
| 17478 | |
| 17479 | netbsd*) |
| 17480 | version_type=sunos |
| 17481 | need_lib_prefix=no |
| 17482 | need_version=no |
| 17483 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 17484 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 17485 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 17486 | dynamic_linker='NetBSD (a.out) ld.so' |
| 17487 | else |
| 17488 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 17489 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17490 | dynamic_linker='NetBSD ld.elf_so' |
| 17491 | fi |
| 17492 | shlibpath_var=LD_LIBRARY_PATH |
| 17493 | shlibpath_overrides_runpath=yes |
| 17494 | hardcode_into_libs=yes |
| 17495 | ;; |
| 17496 | |
| 17497 | newsos6) |
| 17498 | version_type=linux |
| 17499 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17500 | shlibpath_var=LD_LIBRARY_PATH |
| 17501 | shlibpath_overrides_runpath=yes |
| 17502 | ;; |
| 17503 | |
| 17504 | nto-qnx*) |
| 17505 | version_type=linux |
| 17506 | need_lib_prefix=no |
| 17507 | need_version=no |
| 17508 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17509 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17510 | shlibpath_var=LD_LIBRARY_PATH |
| 17511 | shlibpath_overrides_runpath=yes |
| 17512 | ;; |
| 17513 | |
| 17514 | openbsd*) |
| 17515 | version_type=sunos |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 17516 | sys_lib_dlsearch_path_spec="/usr/lib" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 17517 | need_lib_prefix=no |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 17518 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 17519 | case $host_os in |
| 17520 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 17521 | *) need_version=no ;; |
| 17522 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 17523 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 17524 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 17525 | shlibpath_var=LD_LIBRARY_PATH |
| 17526 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 17527 | case $host_os in |
| 17528 | openbsd2.[89] | openbsd2.[89].*) |
| 17529 | shlibpath_overrides_runpath=no |
| 17530 | ;; |
| 17531 | *) |
| 17532 | shlibpath_overrides_runpath=yes |
| 17533 | ;; |
| 17534 | esac |
| 17535 | else |
| 17536 | shlibpath_overrides_runpath=yes |
| 17537 | fi |
| 17538 | ;; |
| 17539 | |
| 17540 | os2*) |
| 17541 | libname_spec='$name' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 17542 | shrext_cmds=".dll" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 17543 | need_lib_prefix=no |
| 17544 | library_names_spec='$libname${shared_ext} $libname.a' |
| 17545 | dynamic_linker='OS/2 ld.exe' |
| 17546 | shlibpath_var=LIBPATH |
| 17547 | ;; |
| 17548 | |
| 17549 | osf3* | osf4* | osf5*) |
| 17550 | version_type=osf |
| 17551 | need_lib_prefix=no |
| 17552 | need_version=no |
| 17553 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17554 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17555 | shlibpath_var=LD_LIBRARY_PATH |
| 17556 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 17557 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 17558 | ;; |
| 17559 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 17560 | solaris*) |
| 17561 | version_type=linux |
| 17562 | need_lib_prefix=no |
| 17563 | need_version=no |
| 17564 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17565 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17566 | shlibpath_var=LD_LIBRARY_PATH |
| 17567 | shlibpath_overrides_runpath=yes |
| 17568 | hardcode_into_libs=yes |
| 17569 | # ldd complains unless libraries are executable |
| 17570 | postinstall_cmds='chmod +x $lib' |
| 17571 | ;; |
| 17572 | |
| 17573 | sunos4*) |
| 17574 | version_type=sunos |
| 17575 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 17576 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 17577 | shlibpath_var=LD_LIBRARY_PATH |
| 17578 | shlibpath_overrides_runpath=yes |
| 17579 | if test "$with_gnu_ld" = yes; then |
| 17580 | need_lib_prefix=no |
| 17581 | fi |
| 17582 | need_version=yes |
| 17583 | ;; |
| 17584 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 17585 | sysv4 | sysv4.3*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 17586 | version_type=linux |
| 17587 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17588 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17589 | shlibpath_var=LD_LIBRARY_PATH |
| 17590 | case $host_vendor in |
| 17591 | sni) |
| 17592 | shlibpath_overrides_runpath=no |
| 17593 | need_lib_prefix=no |
| 17594 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 17595 | runpath_var=LD_RUN_PATH |
| 17596 | ;; |
| 17597 | siemens) |
| 17598 | need_lib_prefix=no |
| 17599 | ;; |
| 17600 | motorola) |
| 17601 | need_lib_prefix=no |
| 17602 | need_version=no |
| 17603 | shlibpath_overrides_runpath=no |
| 17604 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 17605 | ;; |
| 17606 | esac |
| 17607 | ;; |
| 17608 | |
| 17609 | sysv4*MP*) |
| 17610 | if test -d /usr/nec ;then |
| 17611 | version_type=linux |
| 17612 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 17613 | soname_spec='$libname${shared_ext}.$major' |
| 17614 | shlibpath_var=LD_LIBRARY_PATH |
| 17615 | fi |
| 17616 | ;; |
| 17617 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 17618 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 17619 | version_type=freebsd-elf |
| 17620 | need_lib_prefix=no |
| 17621 | need_version=no |
| 17622 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 17623 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17624 | shlibpath_var=LD_LIBRARY_PATH |
| 17625 | hardcode_into_libs=yes |
| 17626 | if test "$with_gnu_ld" = yes; then |
| 17627 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 17628 | shlibpath_overrides_runpath=no |
| 17629 | else |
| 17630 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 17631 | shlibpath_overrides_runpath=yes |
| 17632 | case $host_os in |
| 17633 | sco3.2v5*) |
| 17634 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 17635 | ;; |
| 17636 | esac |
| 17637 | fi |
| 17638 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 17639 | ;; |
| 17640 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 17641 | uts4*) |
| 17642 | version_type=linux |
| 17643 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17644 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17645 | shlibpath_var=LD_LIBRARY_PATH |
| 17646 | ;; |
| 17647 | |
| 17648 | *) |
| 17649 | dynamic_linker=no |
| 17650 | ;; |
| 17651 | esac |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 17652 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 17653 | echo "${ECHO_T}$dynamic_linker" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 17654 | test "$dynamic_linker" = no && can_build_shared=no |
| 17655 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 17656 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 17657 | if test "$GCC" = yes; then |
| 17658 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 17659 | fi |
| 17660 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 17661 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 17662 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 17663 | hardcode_action_GCJ= |
| 17664 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 17665 | test -n "$runpath_var_GCJ" || \ |
| 17666 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 17667 | |
| 17668 | # We can hardcode non-existant directories. |
| 17669 | if test "$hardcode_direct_GCJ" != no && |
| 17670 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 17671 | # have to relink, otherwise we might link with an installed library |
| 17672 | # when we should be linking with a yet-to-be-installed one |
| 17673 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
| 17674 | test "$hardcode_minus_L_GCJ" != no; then |
| 17675 | # Linking always hardcodes the temporary library directory. |
| 17676 | hardcode_action_GCJ=relink |
| 17677 | else |
| 17678 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 17679 | hardcode_action_GCJ=immediate |
| 17680 | fi |
| 17681 | else |
| 17682 | # We cannot hardcode anything, or else we can only hardcode existing |
| 17683 | # directories. |
| 17684 | hardcode_action_GCJ=unsupported |
| 17685 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 17686 | { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
| 17687 | echo "${ECHO_T}$hardcode_action_GCJ" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 17688 | |
| 17689 | if test "$hardcode_action_GCJ" = relink; then |
| 17690 | # Fast installation is not supported |
| 17691 | enable_fast_install=no |
| 17692 | elif test "$shlibpath_overrides_runpath" = yes || |
| 17693 | test "$enable_shared" = no; then |
| 17694 | # Fast installation is not necessary |
| 17695 | enable_fast_install=needless |
| 17696 | fi |
| 17697 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 17698 | |
| 17699 | # The else clause should only fire when bootstrapping the |
| 17700 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 17701 | # with your package, and you will get complaints that there are |
| 17702 | # no rules to generate ltmain.sh. |
| 17703 | if test -f "$ltmain"; then |
| 17704 | # See if we are running on zsh, and set the options which allow our commands through |
| 17705 | # without removal of \ escapes. |
| 17706 | if test -n "${ZSH_VERSION+set}" ; then |
| 17707 | setopt NO_GLOB_SUBST |
| 17708 | fi |
| 17709 | # Now quote all the things that may contain metacharacters while being |
| 17710 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 17711 | # variables and quote the copies for generation of the libtool script. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 17712 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 17713 | SED SHELL STRIP \ |
| 17714 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 17715 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 17716 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 17717 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 17718 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 17719 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 17720 | old_postinstall_cmds old_postuninstall_cmds \ |
| 17721 | compiler_GCJ \ |
| 17722 | CC_GCJ \ |
| 17723 | LD_GCJ \ |
| 17724 | lt_prog_compiler_wl_GCJ \ |
| 17725 | lt_prog_compiler_pic_GCJ \ |
| 17726 | lt_prog_compiler_static_GCJ \ |
| 17727 | lt_prog_compiler_no_builtin_flag_GCJ \ |
| 17728 | export_dynamic_flag_spec_GCJ \ |
| 17729 | thread_safe_flag_spec_GCJ \ |
| 17730 | whole_archive_flag_spec_GCJ \ |
| 17731 | enable_shared_with_static_runtimes_GCJ \ |
| 17732 | old_archive_cmds_GCJ \ |
| 17733 | old_archive_from_new_cmds_GCJ \ |
| 17734 | predep_objects_GCJ \ |
| 17735 | postdep_objects_GCJ \ |
| 17736 | predeps_GCJ \ |
| 17737 | postdeps_GCJ \ |
| 17738 | compiler_lib_search_path_GCJ \ |
| 17739 | archive_cmds_GCJ \ |
| 17740 | archive_expsym_cmds_GCJ \ |
| 17741 | postinstall_cmds_GCJ \ |
| 17742 | postuninstall_cmds_GCJ \ |
| 17743 | old_archive_from_expsyms_cmds_GCJ \ |
| 17744 | allow_undefined_flag_GCJ \ |
| 17745 | no_undefined_flag_GCJ \ |
| 17746 | export_symbols_cmds_GCJ \ |
| 17747 | hardcode_libdir_flag_spec_GCJ \ |
| 17748 | hardcode_libdir_flag_spec_ld_GCJ \ |
| 17749 | hardcode_libdir_separator_GCJ \ |
| 17750 | hardcode_automatic_GCJ \ |
| 17751 | module_cmds_GCJ \ |
| 17752 | module_expsym_cmds_GCJ \ |
| 17753 | lt_cv_prog_compiler_c_o_GCJ \ |
| 17754 | exclude_expsyms_GCJ \ |
| 17755 | include_expsyms_GCJ; do |
| 17756 | |
| 17757 | case $var in |
| 17758 | old_archive_cmds_GCJ | \ |
| 17759 | old_archive_from_new_cmds_GCJ | \ |
| 17760 | archive_cmds_GCJ | \ |
| 17761 | archive_expsym_cmds_GCJ | \ |
| 17762 | module_cmds_GCJ | \ |
| 17763 | module_expsym_cmds_GCJ | \ |
| 17764 | old_archive_from_expsyms_cmds_GCJ | \ |
| 17765 | export_symbols_cmds_GCJ | \ |
| 17766 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 17767 | postinstall_cmds | postuninstall_cmds | \ |
| 17768 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 17769 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 17770 | # Double-quote double-evaled strings. |
| 17771 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 17772 | ;; |
| 17773 | *) |
| 17774 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 17775 | ;; |
| 17776 | esac |
| 17777 | done |
| 17778 | |
| 17779 | case $lt_echo in |
| 17780 | *'\$0 --fallback-echo"') |
| 17781 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 17782 | ;; |
| 17783 | esac |
| 17784 | |
| 17785 | cfgfile="$ofile" |
| 17786 | |
| 17787 | cat <<__EOF__ >> "$cfgfile" |
| 17788 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 17789 | |
| 17790 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 17791 | |
| 17792 | # Shell to use when invoking shell scripts. |
| 17793 | SHELL=$lt_SHELL |
| 17794 | |
| 17795 | # Whether or not to build shared libraries. |
| 17796 | build_libtool_libs=$enable_shared |
| 17797 | |
| 17798 | # Whether or not to build static libraries. |
| 17799 | build_old_libs=$enable_static |
| 17800 | |
| 17801 | # Whether or not to add -lc for building shared libraries. |
| 17802 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
| 17803 | |
| 17804 | # Whether or not to disallow shared libs when runtime libs are static |
| 17805 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
| 17806 | |
| 17807 | # Whether or not to optimize for fast installation. |
| 17808 | fast_install=$enable_fast_install |
| 17809 | |
| 17810 | # The host system. |
| 17811 | host_alias=$host_alias |
| 17812 | host=$host |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 17813 | host_os=$host_os |
| 17814 | |
| 17815 | # The build system. |
| 17816 | build_alias=$build_alias |
| 17817 | build=$build |
| 17818 | build_os=$build_os |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 17819 | |
| 17820 | # An echo program that does not interpret backslashes. |
| 17821 | echo=$lt_echo |
| 17822 | |
| 17823 | # The archiver. |
| 17824 | AR=$lt_AR |
| 17825 | AR_FLAGS=$lt_AR_FLAGS |
| 17826 | |
| 17827 | # A C compiler. |
| 17828 | LTCC=$lt_LTCC |
| 17829 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 17830 | # LTCC compiler flags. |
| 17831 | LTCFLAGS=$lt_LTCFLAGS |
| 17832 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 17833 | # A language-specific compiler. |
| 17834 | CC=$lt_compiler_GCJ |
| 17835 | |
| 17836 | # Is the compiler the GNU C compiler? |
| 17837 | with_gcc=$GCC_GCJ |
| 17838 | |
| 17839 | # An ERE matcher. |
| 17840 | EGREP=$lt_EGREP |
| 17841 | |
| 17842 | # The linker used to build libraries. |
| 17843 | LD=$lt_LD_GCJ |
| 17844 | |
| 17845 | # Whether we need hard or soft links. |
| 17846 | LN_S=$lt_LN_S |
| 17847 | |
| 17848 | # A BSD-compatible nm program. |
| 17849 | NM=$lt_NM |
| 17850 | |
| 17851 | # A symbol stripping program |
| 17852 | STRIP=$lt_STRIP |
| 17853 | |
| 17854 | # Used to examine libraries when file_magic_cmd begins "file" |
| 17855 | MAGIC_CMD=$MAGIC_CMD |
| 17856 | |
| 17857 | # Used on cygwin: DLL creation program. |
| 17858 | DLLTOOL="$DLLTOOL" |
| 17859 | |
| 17860 | # Used on cygwin: object dumper. |
| 17861 | OBJDUMP="$OBJDUMP" |
| 17862 | |
| 17863 | # Used on cygwin: assembler. |
| 17864 | AS="$AS" |
| 17865 | |
| 17866 | # The name of the directory that contains temporary libtool files. |
| 17867 | objdir=$objdir |
| 17868 | |
| 17869 | # How to create reloadable object files. |
| 17870 | reload_flag=$lt_reload_flag |
| 17871 | reload_cmds=$lt_reload_cmds |
| 17872 | |
| 17873 | # How to pass a linker flag through the compiler. |
| 17874 | wl=$lt_lt_prog_compiler_wl_GCJ |
| 17875 | |
| 17876 | # Object file suffix (normally "o"). |
| 17877 | objext="$ac_objext" |
| 17878 | |
| 17879 | # Old archive suffix (normally "a"). |
| 17880 | libext="$libext" |
| 17881 | |
| 17882 | # Shared library suffix (normally ".so"). |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 17883 | shrext_cmds='$shrext_cmds' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 17884 | |
| 17885 | # Executable file suffix (normally ""). |
| 17886 | exeext="$exeext" |
| 17887 | |
| 17888 | # Additional compiler flags for building library objects. |
| 17889 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
| 17890 | pic_mode=$pic_mode |
| 17891 | |
| 17892 | # What is the maximum length of a command? |
| 17893 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 17894 | |
| 17895 | # Does compiler simultaneously support -c and -o options? |
| 17896 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
| 17897 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 17898 | # Must we lock files when doing compilation? |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 17899 | need_locks=$lt_need_locks |
| 17900 | |
| 17901 | # Do we need the lib prefix for modules? |
| 17902 | need_lib_prefix=$need_lib_prefix |
| 17903 | |
| 17904 | # Do we need a version for libraries? |
| 17905 | need_version=$need_version |
| 17906 | |
| 17907 | # Whether dlopen is supported. |
| 17908 | dlopen_support=$enable_dlopen |
| 17909 | |
| 17910 | # Whether dlopen of programs is supported. |
| 17911 | dlopen_self=$enable_dlopen_self |
| 17912 | |
| 17913 | # Whether dlopen of statically linked programs is supported. |
| 17914 | dlopen_self_static=$enable_dlopen_self_static |
| 17915 | |
| 17916 | # Compiler flag to prevent dynamic linking. |
| 17917 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
| 17918 | |
| 17919 | # Compiler flag to turn off builtin functions. |
| 17920 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
| 17921 | |
| 17922 | # Compiler flag to allow reflexive dlopens. |
| 17923 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
| 17924 | |
| 17925 | # Compiler flag to generate shared objects directly from archives. |
| 17926 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
| 17927 | |
| 17928 | # Compiler flag to generate thread-safe objects. |
| 17929 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
| 17930 | |
| 17931 | # Library versioning type. |
| 17932 | version_type=$version_type |
| 17933 | |
| 17934 | # Format of library name prefix. |
| 17935 | libname_spec=$lt_libname_spec |
| 17936 | |
| 17937 | # List of archive names. First name is the real one, the rest are links. |
| 17938 | # The last name is the one that the linker finds with -lNAME. |
| 17939 | library_names_spec=$lt_library_names_spec |
| 17940 | |
| 17941 | # The coded name of the library, if different from the real name. |
| 17942 | soname_spec=$lt_soname_spec |
| 17943 | |
| 17944 | # Commands used to build and install an old-style archive. |
| 17945 | RANLIB=$lt_RANLIB |
| 17946 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
| 17947 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 17948 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 17949 | |
| 17950 | # Create an old-style archive from a shared archive. |
| 17951 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
| 17952 | |
| 17953 | # Create a temporary old-style archive to link instead of a shared archive. |
| 17954 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
| 17955 | |
| 17956 | # Commands used to build and install a shared archive. |
| 17957 | archive_cmds=$lt_archive_cmds_GCJ |
| 17958 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
| 17959 | postinstall_cmds=$lt_postinstall_cmds |
| 17960 | postuninstall_cmds=$lt_postuninstall_cmds |
| 17961 | |
| 17962 | # Commands used to build a loadable module (assumed same as above if empty) |
| 17963 | module_cmds=$lt_module_cmds_GCJ |
| 17964 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
| 17965 | |
| 17966 | # Commands to strip libraries. |
| 17967 | old_striplib=$lt_old_striplib |
| 17968 | striplib=$lt_striplib |
| 17969 | |
| 17970 | # Dependencies to place before the objects being linked to create a |
| 17971 | # shared library. |
| 17972 | predep_objects=$lt_predep_objects_GCJ |
| 17973 | |
| 17974 | # Dependencies to place after the objects being linked to create a |
| 17975 | # shared library. |
| 17976 | postdep_objects=$lt_postdep_objects_GCJ |
| 17977 | |
| 17978 | # Dependencies to place before the objects being linked to create a |
| 17979 | # shared library. |
| 17980 | predeps=$lt_predeps_GCJ |
| 17981 | |
| 17982 | # Dependencies to place after the objects being linked to create a |
| 17983 | # shared library. |
| 17984 | postdeps=$lt_postdeps_GCJ |
| 17985 | |
| 17986 | # The library search path used internally by the compiler when linking |
| 17987 | # a shared library. |
| 17988 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
| 17989 | |
| 17990 | # Method to check whether dependent libraries are shared objects. |
| 17991 | deplibs_check_method=$lt_deplibs_check_method |
| 17992 | |
| 17993 | # Command to use when deplibs_check_method == file_magic. |
| 17994 | file_magic_cmd=$lt_file_magic_cmd |
| 17995 | |
| 17996 | # Flag that allows shared libraries with undefined symbols to be built. |
| 17997 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
| 17998 | |
| 17999 | # Flag that forces no undefined symbols. |
| 18000 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
| 18001 | |
| 18002 | # Commands used to finish a libtool library installation in a directory. |
| 18003 | finish_cmds=$lt_finish_cmds |
| 18004 | |
| 18005 | # Same as above, but a single script fragment to be evaled but not shown. |
| 18006 | finish_eval=$lt_finish_eval |
| 18007 | |
| 18008 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 18009 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 18010 | |
| 18011 | # Transform the output of nm in a proper C declaration |
| 18012 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 18013 | |
| 18014 | # Transform the output of nm in a C name address pair |
| 18015 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 18016 | |
| 18017 | # This is the shared library runtime path variable. |
| 18018 | runpath_var=$runpath_var |
| 18019 | |
| 18020 | # This is the shared library path variable. |
| 18021 | shlibpath_var=$shlibpath_var |
| 18022 | |
| 18023 | # Is shlibpath searched before the hard-coded library search path? |
| 18024 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 18025 | |
| 18026 | # How to hardcode a shared library path into an executable. |
| 18027 | hardcode_action=$hardcode_action_GCJ |
| 18028 | |
| 18029 | # Whether we should hardcode library paths into libraries. |
| 18030 | hardcode_into_libs=$hardcode_into_libs |
| 18031 | |
| 18032 | # Flag to hardcode \$libdir into a binary during linking. |
| 18033 | # This must work even if \$libdir does not exist. |
| 18034 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
| 18035 | |
| 18036 | # If ld is used when linking, flag to hardcode \$libdir into |
| 18037 | # a binary during linking. This must work even if \$libdir does |
| 18038 | # not exist. |
| 18039 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
| 18040 | |
| 18041 | # Whether we need a single -rpath flag with a separated argument. |
| 18042 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
| 18043 | |
| 18044 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 18045 | # resulting binary. |
| 18046 | hardcode_direct=$hardcode_direct_GCJ |
| 18047 | |
| 18048 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 18049 | # resulting binary. |
| 18050 | hardcode_minus_L=$hardcode_minus_L_GCJ |
| 18051 | |
| 18052 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 18053 | # the resulting binary. |
| 18054 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
| 18055 | |
| 18056 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 18057 | # and all subsequent libraries and executables linked against it. |
| 18058 | hardcode_automatic=$hardcode_automatic_GCJ |
| 18059 | |
| 18060 | # Variables whose values should be saved in libtool wrapper scripts and |
| 18061 | # restored at relink time. |
| 18062 | variables_saved_for_relink="$variables_saved_for_relink" |
| 18063 | |
| 18064 | # Whether libtool must link a program against all its dependency libraries. |
| 18065 | link_all_deplibs=$link_all_deplibs_GCJ |
| 18066 | |
| 18067 | # Compile-time system search path for libraries |
| 18068 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 18069 | |
| 18070 | # Run-time system search path for libraries |
| 18071 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 18072 | |
| 18073 | # Fix the shell variable \$srcfile for the compiler. |
| 18074 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
| 18075 | |
| 18076 | # Set to yes if exported symbols are required. |
| 18077 | always_export_symbols=$always_export_symbols_GCJ |
| 18078 | |
| 18079 | # The commands to list exported symbols. |
| 18080 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
| 18081 | |
| 18082 | # The commands to extract the exported symbol list from a shared archive. |
| 18083 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 18084 | |
| 18085 | # Symbols that should not be listed in the preloaded symbols. |
| 18086 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
| 18087 | |
| 18088 | # Symbols that must always be exported. |
| 18089 | include_expsyms=$lt_include_expsyms_GCJ |
| 18090 | |
| 18091 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 18092 | |
| 18093 | __EOF__ |
| 18094 | |
| 18095 | |
| 18096 | else |
| 18097 | # If there is no Makefile yet, we rely on a make rule to execute |
| 18098 | # `config.status --recheck' to rerun these tests and create the |
| 18099 | # libtool script then. |
| 18100 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 18101 | if test -f "$ltmain_in"; then |
| 18102 | test -f Makefile && make "$ltmain" |
| 18103 | fi |
| 18104 | fi |
| 18105 | |
| 18106 | |
| 18107 | ac_ext=c |
| 18108 | ac_cpp='$CPP $CPPFLAGS' |
| 18109 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18110 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18111 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18112 | |
| 18113 | CC="$lt_save_CC" |
| 18114 | |
| 18115 | else |
| 18116 | tagname="" |
| 18117 | fi |
| 18118 | ;; |
| 18119 | |
| 18120 | RC) |
| 18121 | |
| 18122 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 18123 | # Source file extension for RC test sources. |
| 18124 | ac_ext=rc |
| 18125 | |
| 18126 | # Object file extension for compiled RC test sources. |
| 18127 | objext=o |
| 18128 | objext_RC=$objext |
| 18129 | |
| 18130 | # Code to be used in simple compile tests |
| 18131 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
| 18132 | |
| 18133 | # Code to be used in simple link tests |
| 18134 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
| 18135 | |
| 18136 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 18137 | |
| 18138 | # If no C compiler was specified, use CC. |
| 18139 | LTCC=${LTCC-"$CC"} |
| 18140 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 18141 | # If no C compiler flags were specified, use CFLAGS. |
| 18142 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 18143 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 18144 | # Allow CC to be a program name with arguments. |
| 18145 | compiler=$CC |
| 18146 | |
| 18147 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 18148 | # save warnings/boilerplate of simple test code |
| 18149 | ac_outfile=conftest.$ac_objext |
| 18150 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 18151 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 18152 | _lt_compiler_boilerplate=`cat conftest.err` |
| 18153 | $rm conftest* |
| 18154 | |
| 18155 | ac_outfile=conftest.$ac_objext |
| 18156 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 18157 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 18158 | _lt_linker_boilerplate=`cat conftest.err` |
| 18159 | $rm conftest* |
| 18160 | |
| 18161 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 18162 | # Allow CC to be a program name with arguments. |
| 18163 | lt_save_CC="$CC" |
| 18164 | CC=${RC-"windres"} |
| 18165 | compiler=$CC |
| 18166 | compiler_RC=$CC |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 18167 | for cc_temp in $compiler""; do |
| 18168 | case $cc_temp in |
| 18169 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 18170 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 18171 | \-*) ;; |
| 18172 | *) break;; |
| 18173 | esac |
| 18174 | done |
| 18175 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 18176 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 18177 | lt_cv_prog_compiler_c_o_RC=yes |
| 18178 | |
| 18179 | # The else clause should only fire when bootstrapping the |
| 18180 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 18181 | # with your package, and you will get complaints that there are |
| 18182 | # no rules to generate ltmain.sh. |
| 18183 | if test -f "$ltmain"; then |
| 18184 | # See if we are running on zsh, and set the options which allow our commands through |
| 18185 | # without removal of \ escapes. |
| 18186 | if test -n "${ZSH_VERSION+set}" ; then |
| 18187 | setopt NO_GLOB_SUBST |
| 18188 | fi |
| 18189 | # Now quote all the things that may contain metacharacters while being |
| 18190 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 18191 | # variables and quote the copies for generation of the libtool script. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 18192 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 18193 | SED SHELL STRIP \ |
| 18194 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 18195 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 18196 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 18197 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 18198 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 18199 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 18200 | old_postinstall_cmds old_postuninstall_cmds \ |
| 18201 | compiler_RC \ |
| 18202 | CC_RC \ |
| 18203 | LD_RC \ |
| 18204 | lt_prog_compiler_wl_RC \ |
| 18205 | lt_prog_compiler_pic_RC \ |
| 18206 | lt_prog_compiler_static_RC \ |
| 18207 | lt_prog_compiler_no_builtin_flag_RC \ |
| 18208 | export_dynamic_flag_spec_RC \ |
| 18209 | thread_safe_flag_spec_RC \ |
| 18210 | whole_archive_flag_spec_RC \ |
| 18211 | enable_shared_with_static_runtimes_RC \ |
| 18212 | old_archive_cmds_RC \ |
| 18213 | old_archive_from_new_cmds_RC \ |
| 18214 | predep_objects_RC \ |
| 18215 | postdep_objects_RC \ |
| 18216 | predeps_RC \ |
| 18217 | postdeps_RC \ |
| 18218 | compiler_lib_search_path_RC \ |
| 18219 | archive_cmds_RC \ |
| 18220 | archive_expsym_cmds_RC \ |
| 18221 | postinstall_cmds_RC \ |
| 18222 | postuninstall_cmds_RC \ |
| 18223 | old_archive_from_expsyms_cmds_RC \ |
| 18224 | allow_undefined_flag_RC \ |
| 18225 | no_undefined_flag_RC \ |
| 18226 | export_symbols_cmds_RC \ |
| 18227 | hardcode_libdir_flag_spec_RC \ |
| 18228 | hardcode_libdir_flag_spec_ld_RC \ |
| 18229 | hardcode_libdir_separator_RC \ |
| 18230 | hardcode_automatic_RC \ |
| 18231 | module_cmds_RC \ |
| 18232 | module_expsym_cmds_RC \ |
| 18233 | lt_cv_prog_compiler_c_o_RC \ |
| 18234 | exclude_expsyms_RC \ |
| 18235 | include_expsyms_RC; do |
| 18236 | |
| 18237 | case $var in |
| 18238 | old_archive_cmds_RC | \ |
| 18239 | old_archive_from_new_cmds_RC | \ |
| 18240 | archive_cmds_RC | \ |
| 18241 | archive_expsym_cmds_RC | \ |
| 18242 | module_cmds_RC | \ |
| 18243 | module_expsym_cmds_RC | \ |
| 18244 | old_archive_from_expsyms_cmds_RC | \ |
| 18245 | export_symbols_cmds_RC | \ |
| 18246 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 18247 | postinstall_cmds | postuninstall_cmds | \ |
| 18248 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 18249 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 18250 | # Double-quote double-evaled strings. |
| 18251 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 18252 | ;; |
| 18253 | *) |
| 18254 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 18255 | ;; |
| 18256 | esac |
| 18257 | done |
| 18258 | |
| 18259 | case $lt_echo in |
| 18260 | *'\$0 --fallback-echo"') |
| 18261 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 18262 | ;; |
| 18263 | esac |
| 18264 | |
| 18265 | cfgfile="$ofile" |
| 18266 | |
| 18267 | cat <<__EOF__ >> "$cfgfile" |
| 18268 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 18269 | |
| 18270 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 18271 | |
| 18272 | # Shell to use when invoking shell scripts. |
| 18273 | SHELL=$lt_SHELL |
| 18274 | |
| 18275 | # Whether or not to build shared libraries. |
| 18276 | build_libtool_libs=$enable_shared |
| 18277 | |
| 18278 | # Whether or not to build static libraries. |
| 18279 | build_old_libs=$enable_static |
| 18280 | |
| 18281 | # Whether or not to add -lc for building shared libraries. |
| 18282 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
| 18283 | |
| 18284 | # Whether or not to disallow shared libs when runtime libs are static |
| 18285 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
| 18286 | |
| 18287 | # Whether or not to optimize for fast installation. |
| 18288 | fast_install=$enable_fast_install |
| 18289 | |
| 18290 | # The host system. |
| 18291 | host_alias=$host_alias |
| 18292 | host=$host |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 18293 | host_os=$host_os |
| 18294 | |
| 18295 | # The build system. |
| 18296 | build_alias=$build_alias |
| 18297 | build=$build |
| 18298 | build_os=$build_os |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 18299 | |
| 18300 | # An echo program that does not interpret backslashes. |
| 18301 | echo=$lt_echo |
| 18302 | |
| 18303 | # The archiver. |
| 18304 | AR=$lt_AR |
| 18305 | AR_FLAGS=$lt_AR_FLAGS |
| 18306 | |
| 18307 | # A C compiler. |
| 18308 | LTCC=$lt_LTCC |
| 18309 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 18310 | # LTCC compiler flags. |
| 18311 | LTCFLAGS=$lt_LTCFLAGS |
| 18312 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 18313 | # A language-specific compiler. |
| 18314 | CC=$lt_compiler_RC |
| 18315 | |
| 18316 | # Is the compiler the GNU C compiler? |
| 18317 | with_gcc=$GCC_RC |
| 18318 | |
| 18319 | # An ERE matcher. |
| 18320 | EGREP=$lt_EGREP |
| 18321 | |
| 18322 | # The linker used to build libraries. |
| 18323 | LD=$lt_LD_RC |
| 18324 | |
| 18325 | # Whether we need hard or soft links. |
| 18326 | LN_S=$lt_LN_S |
| 18327 | |
| 18328 | # A BSD-compatible nm program. |
| 18329 | NM=$lt_NM |
| 18330 | |
| 18331 | # A symbol stripping program |
| 18332 | STRIP=$lt_STRIP |
| 18333 | |
| 18334 | # Used to examine libraries when file_magic_cmd begins "file" |
| 18335 | MAGIC_CMD=$MAGIC_CMD |
| 18336 | |
| 18337 | # Used on cygwin: DLL creation program. |
| 18338 | DLLTOOL="$DLLTOOL" |
| 18339 | |
| 18340 | # Used on cygwin: object dumper. |
| 18341 | OBJDUMP="$OBJDUMP" |
| 18342 | |
| 18343 | # Used on cygwin: assembler. |
| 18344 | AS="$AS" |
| 18345 | |
| 18346 | # The name of the directory that contains temporary libtool files. |
| 18347 | objdir=$objdir |
| 18348 | |
| 18349 | # How to create reloadable object files. |
| 18350 | reload_flag=$lt_reload_flag |
| 18351 | reload_cmds=$lt_reload_cmds |
| 18352 | |
| 18353 | # How to pass a linker flag through the compiler. |
| 18354 | wl=$lt_lt_prog_compiler_wl_RC |
| 18355 | |
| 18356 | # Object file suffix (normally "o"). |
| 18357 | objext="$ac_objext" |
| 18358 | |
| 18359 | # Old archive suffix (normally "a"). |
| 18360 | libext="$libext" |
| 18361 | |
| 18362 | # Shared library suffix (normally ".so"). |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 18363 | shrext_cmds='$shrext_cmds' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 18364 | |
| 18365 | # Executable file suffix (normally ""). |
| 18366 | exeext="$exeext" |
| 18367 | |
| 18368 | # Additional compiler flags for building library objects. |
| 18369 | pic_flag=$lt_lt_prog_compiler_pic_RC |
| 18370 | pic_mode=$pic_mode |
| 18371 | |
| 18372 | # What is the maximum length of a command? |
| 18373 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 18374 | |
| 18375 | # Does compiler simultaneously support -c and -o options? |
| 18376 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
| 18377 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 18378 | # Must we lock files when doing compilation? |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 18379 | need_locks=$lt_need_locks |
| 18380 | |
| 18381 | # Do we need the lib prefix for modules? |
| 18382 | need_lib_prefix=$need_lib_prefix |
| 18383 | |
| 18384 | # Do we need a version for libraries? |
| 18385 | need_version=$need_version |
| 18386 | |
| 18387 | # Whether dlopen is supported. |
| 18388 | dlopen_support=$enable_dlopen |
| 18389 | |
| 18390 | # Whether dlopen of programs is supported. |
| 18391 | dlopen_self=$enable_dlopen_self |
| 18392 | |
| 18393 | # Whether dlopen of statically linked programs is supported. |
| 18394 | dlopen_self_static=$enable_dlopen_self_static |
| 18395 | |
| 18396 | # Compiler flag to prevent dynamic linking. |
| 18397 | link_static_flag=$lt_lt_prog_compiler_static_RC |
| 18398 | |
| 18399 | # Compiler flag to turn off builtin functions. |
| 18400 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
| 18401 | |
| 18402 | # Compiler flag to allow reflexive dlopens. |
| 18403 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
| 18404 | |
| 18405 | # Compiler flag to generate shared objects directly from archives. |
| 18406 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
| 18407 | |
| 18408 | # Compiler flag to generate thread-safe objects. |
| 18409 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
| 18410 | |
| 18411 | # Library versioning type. |
| 18412 | version_type=$version_type |
| 18413 | |
| 18414 | # Format of library name prefix. |
| 18415 | libname_spec=$lt_libname_spec |
| 18416 | |
| 18417 | # List of archive names. First name is the real one, the rest are links. |
| 18418 | # The last name is the one that the linker finds with -lNAME. |
| 18419 | library_names_spec=$lt_library_names_spec |
| 18420 | |
| 18421 | # The coded name of the library, if different from the real name. |
| 18422 | soname_spec=$lt_soname_spec |
| 18423 | |
| 18424 | # Commands used to build and install an old-style archive. |
| 18425 | RANLIB=$lt_RANLIB |
| 18426 | old_archive_cmds=$lt_old_archive_cmds_RC |
| 18427 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 18428 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 18429 | |
| 18430 | # Create an old-style archive from a shared archive. |
| 18431 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
| 18432 | |
| 18433 | # Create a temporary old-style archive to link instead of a shared archive. |
| 18434 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
| 18435 | |
| 18436 | # Commands used to build and install a shared archive. |
| 18437 | archive_cmds=$lt_archive_cmds_RC |
| 18438 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
| 18439 | postinstall_cmds=$lt_postinstall_cmds |
| 18440 | postuninstall_cmds=$lt_postuninstall_cmds |
| 18441 | |
| 18442 | # Commands used to build a loadable module (assumed same as above if empty) |
| 18443 | module_cmds=$lt_module_cmds_RC |
| 18444 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
| 18445 | |
| 18446 | # Commands to strip libraries. |
| 18447 | old_striplib=$lt_old_striplib |
| 18448 | striplib=$lt_striplib |
| 18449 | |
| 18450 | # Dependencies to place before the objects being linked to create a |
| 18451 | # shared library. |
| 18452 | predep_objects=$lt_predep_objects_RC |
| 18453 | |
| 18454 | # Dependencies to place after the objects being linked to create a |
| 18455 | # shared library. |
| 18456 | postdep_objects=$lt_postdep_objects_RC |
| 18457 | |
| 18458 | # Dependencies to place before the objects being linked to create a |
| 18459 | # shared library. |
| 18460 | predeps=$lt_predeps_RC |
| 18461 | |
| 18462 | # Dependencies to place after the objects being linked to create a |
| 18463 | # shared library. |
| 18464 | postdeps=$lt_postdeps_RC |
| 18465 | |
| 18466 | # The library search path used internally by the compiler when linking |
| 18467 | # a shared library. |
| 18468 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
| 18469 | |
| 18470 | # Method to check whether dependent libraries are shared objects. |
| 18471 | deplibs_check_method=$lt_deplibs_check_method |
| 18472 | |
| 18473 | # Command to use when deplibs_check_method == file_magic. |
| 18474 | file_magic_cmd=$lt_file_magic_cmd |
| 18475 | |
| 18476 | # Flag that allows shared libraries with undefined symbols to be built. |
| 18477 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
| 18478 | |
| 18479 | # Flag that forces no undefined symbols. |
| 18480 | no_undefined_flag=$lt_no_undefined_flag_RC |
| 18481 | |
| 18482 | # Commands used to finish a libtool library installation in a directory. |
| 18483 | finish_cmds=$lt_finish_cmds |
| 18484 | |
| 18485 | # Same as above, but a single script fragment to be evaled but not shown. |
| 18486 | finish_eval=$lt_finish_eval |
| 18487 | |
| 18488 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 18489 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 18490 | |
| 18491 | # Transform the output of nm in a proper C declaration |
| 18492 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 18493 | |
| 18494 | # Transform the output of nm in a C name address pair |
| 18495 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 18496 | |
| 18497 | # This is the shared library runtime path variable. |
| 18498 | runpath_var=$runpath_var |
| 18499 | |
| 18500 | # This is the shared library path variable. |
| 18501 | shlibpath_var=$shlibpath_var |
| 18502 | |
| 18503 | # Is shlibpath searched before the hard-coded library search path? |
| 18504 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 18505 | |
| 18506 | # How to hardcode a shared library path into an executable. |
| 18507 | hardcode_action=$hardcode_action_RC |
| 18508 | |
| 18509 | # Whether we should hardcode library paths into libraries. |
| 18510 | hardcode_into_libs=$hardcode_into_libs |
| 18511 | |
| 18512 | # Flag to hardcode \$libdir into a binary during linking. |
| 18513 | # This must work even if \$libdir does not exist. |
| 18514 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
| 18515 | |
| 18516 | # If ld is used when linking, flag to hardcode \$libdir into |
| 18517 | # a binary during linking. This must work even if \$libdir does |
| 18518 | # not exist. |
| 18519 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
| 18520 | |
| 18521 | # Whether we need a single -rpath flag with a separated argument. |
| 18522 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
| 18523 | |
| 18524 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 18525 | # resulting binary. |
| 18526 | hardcode_direct=$hardcode_direct_RC |
| 18527 | |
| 18528 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 18529 | # resulting binary. |
| 18530 | hardcode_minus_L=$hardcode_minus_L_RC |
| 18531 | |
| 18532 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 18533 | # the resulting binary. |
| 18534 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
| 18535 | |
| 18536 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 18537 | # and all subsequent libraries and executables linked against it. |
| 18538 | hardcode_automatic=$hardcode_automatic_RC |
| 18539 | |
| 18540 | # Variables whose values should be saved in libtool wrapper scripts and |
| 18541 | # restored at relink time. |
| 18542 | variables_saved_for_relink="$variables_saved_for_relink" |
| 18543 | |
| 18544 | # Whether libtool must link a program against all its dependency libraries. |
| 18545 | link_all_deplibs=$link_all_deplibs_RC |
| 18546 | |
| 18547 | # Compile-time system search path for libraries |
| 18548 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 18549 | |
| 18550 | # Run-time system search path for libraries |
| 18551 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 18552 | |
| 18553 | # Fix the shell variable \$srcfile for the compiler. |
| 18554 | fix_srcfile_path="$fix_srcfile_path_RC" |
| 18555 | |
| 18556 | # Set to yes if exported symbols are required. |
| 18557 | always_export_symbols=$always_export_symbols_RC |
| 18558 | |
| 18559 | # The commands to list exported symbols. |
| 18560 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
| 18561 | |
| 18562 | # The commands to extract the exported symbol list from a shared archive. |
| 18563 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 18564 | |
| 18565 | # Symbols that should not be listed in the preloaded symbols. |
| 18566 | exclude_expsyms=$lt_exclude_expsyms_RC |
| 18567 | |
| 18568 | # Symbols that must always be exported. |
| 18569 | include_expsyms=$lt_include_expsyms_RC |
| 18570 | |
| 18571 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 18572 | |
| 18573 | __EOF__ |
| 18574 | |
| 18575 | |
| 18576 | else |
| 18577 | # If there is no Makefile yet, we rely on a make rule to execute |
| 18578 | # `config.status --recheck' to rerun these tests and create the |
| 18579 | # libtool script then. |
| 18580 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 18581 | if test -f "$ltmain_in"; then |
| 18582 | test -f Makefile && make "$ltmain" |
| 18583 | fi |
| 18584 | fi |
| 18585 | |
| 18586 | |
| 18587 | ac_ext=c |
| 18588 | ac_cpp='$CPP $CPPFLAGS' |
| 18589 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18590 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18591 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18592 | |
| 18593 | CC="$lt_save_CC" |
| 18594 | |
| 18595 | ;; |
| 18596 | |
| 18597 | *) |
| 18598 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
| 18599 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
| 18600 | { (exit 1); exit 1; }; } |
| 18601 | ;; |
| 18602 | esac |
| 18603 | |
| 18604 | # Append the new tag name to the list of available tags. |
| 18605 | if test -n "$tagname" ; then |
| 18606 | available_tags="$available_tags $tagname" |
| 18607 | fi |
| 18608 | fi |
| 18609 | done |
| 18610 | IFS="$lt_save_ifs" |
| 18611 | |
| 18612 | # Now substitute the updated list of available tags. |
| 18613 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
| 18614 | mv "${ofile}T" "$ofile" |
| 18615 | chmod +x "$ofile" |
| 18616 | else |
| 18617 | rm -f "${ofile}T" |
| 18618 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
| 18619 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
| 18620 | { (exit 1); exit 1; }; } |
| 18621 | fi |
| 18622 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18623 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18624 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18625 | |
| 18626 | # This can be used to rebuild libtool when needed |
| 18627 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 18628 | |
| 18629 | # Always use our own libtool. |
| 18630 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 18631 | |
| 18632 | # Prevent multiple expansion |
| 18633 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18634 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 18635 | |
| 18636 | |
| 18637 | |
| 18638 | |
| 18639 | |
| 18640 | |
| 18641 | |
| 18642 | |
| 18643 | |
| 18644 | |
| 18645 | |
| 18646 | |
| 18647 | |
| 18648 | |
| 18649 | |
| 18650 | |
| 18651 | |
| 18652 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18653 | # Find a good install program. We prefer a C program (faster), |
| 18654 | # so one script is as good as another. But avoid the broken or |
| 18655 | # incompatible versions: |
| 18656 | # SysV /etc/install, /usr/sbin/install |
| 18657 | # SunOS /usr/etc/install |
| 18658 | # IRIX /sbin/install |
| 18659 | # AIX /bin/install |
| 18660 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 18661 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 18662 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 18663 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 18664 | # OS/2's system install, which has a completely different semantic |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18665 | # ./install, which can be erroneously created by make from ./install.sh. |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 18666 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 18667 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18668 | if test -z "$INSTALL"; then |
| 18669 | if test "${ac_cv_path_install+set}" = set; then |
| 18670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18671 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18672 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18673 | for as_dir in $PATH |
| 18674 | do |
| 18675 | IFS=$as_save_IFS |
| 18676 | test -z "$as_dir" && as_dir=. |
| 18677 | # Account for people who put trailing slashes in PATH elements. |
| 18678 | case $as_dir/ in |
| 18679 | ./ | .// | /cC/* | \ |
| 18680 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 18681 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18682 | /usr/ucb/* ) ;; |
| 18683 | *) |
| 18684 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 18685 | # Don't use installbsd from OSF since it installs stuff as root |
| 18686 | # by default. |
| 18687 | for ac_prog in ginstall scoinst install; do |
| 18688 | for ac_exec_ext in '' $ac_executable_extensions; do |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 18689 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 18690 | if test $ac_prog = install && |
| 18691 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 18692 | # AIX install. It has an incompatible calling convention. |
| 18693 | : |
| 18694 | elif test $ac_prog = install && |
| 18695 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 18696 | # program-specific install script used by HP pwplus--don't use. |
| 18697 | : |
| 18698 | else |
| 18699 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 18700 | break 3 |
| 18701 | fi |
| 18702 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18703 | done |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18704 | done |
| 18705 | ;; |
| 18706 | esac |
| 18707 | done |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 18708 | IFS=$as_save_IFS |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18709 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18710 | |
| 18711 | fi |
| 18712 | if test "${ac_cv_path_install+set}" = set; then |
| 18713 | INSTALL=$ac_cv_path_install |
| 18714 | else |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 18715 | # As a last resort, use the slow shell script. Don't cache a |
| 18716 | # value for INSTALL within a source directory, because that will |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18717 | # break other packages using the cache if that directory is |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 18718 | # removed, or if the value is a relative name. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18719 | INSTALL=$ac_install_sh |
| 18720 | fi |
| 18721 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 18722 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 18723 | echo "${ECHO_T}$INSTALL" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18724 | |
| 18725 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 18726 | # It thinks the first close brace ends the variable substitution. |
| 18727 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 18728 | |
| 18729 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 18730 | |
| 18731 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 18732 | |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 18733 | for ac_prog in gawk mawk nawk awk |
| 18734 | do |
| 18735 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 18736 | set dummy $ac_prog; ac_word=$2 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 18737 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 18738 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 18739 | if test "${ac_cv_prog_AWK+set}" = set; then |
| 18740 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18741 | else |
| 18742 | if test -n "$AWK"; then |
| 18743 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 18744 | else |
| 18745 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18746 | for as_dir in $PATH |
| 18747 | do |
| 18748 | IFS=$as_save_IFS |
| 18749 | test -z "$as_dir" && as_dir=. |
| 18750 | for ac_exec_ext in '' $ac_executable_extensions; do |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 18751 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 18752 | ac_cv_prog_AWK="$ac_prog" |
| 18753 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18754 | break 2 |
| 18755 | fi |
| 18756 | done |
| 18757 | done |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 18758 | IFS=$as_save_IFS |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 18759 | |
| 18760 | fi |
| 18761 | fi |
| 18762 | AWK=$ac_cv_prog_AWK |
| 18763 | if test -n "$AWK"; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 18764 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
| 18765 | echo "${ECHO_T}$AWK" >&6; } |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 18766 | else |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 18767 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18768 | echo "${ECHO_T}no" >&6; } |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 18769 | fi |
| 18770 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 18771 | |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 18772 | test -n "$AWK" && break |
| 18773 | done |
| 18774 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18775 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18776 | ######### |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame^] | 18777 | # Check for needed/wanted data types |
| 18778 | { echo "$as_me:$LINENO: checking for int8_t" >&5 |
| 18779 | echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; } |
| 18780 | if test "${ac_cv_type_int8_t+set}" = set; then |
| 18781 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18782 | else |
| 18783 | cat >conftest.$ac_ext <<_ACEOF |
| 18784 | /* confdefs.h. */ |
| 18785 | _ACEOF |
| 18786 | cat confdefs.h >>conftest.$ac_ext |
| 18787 | cat >>conftest.$ac_ext <<_ACEOF |
| 18788 | /* end confdefs.h. */ |
| 18789 | $ac_includes_default |
| 18790 | typedef int8_t ac__type_new_; |
| 18791 | int |
| 18792 | main () |
| 18793 | { |
| 18794 | if ((ac__type_new_ *) 0) |
| 18795 | return 0; |
| 18796 | if (sizeof (ac__type_new_)) |
| 18797 | return 0; |
| 18798 | ; |
| 18799 | return 0; |
| 18800 | } |
| 18801 | _ACEOF |
| 18802 | rm -f conftest.$ac_objext |
| 18803 | if { (ac_try="$ac_compile" |
| 18804 | case "(($ac_try" in |
| 18805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18806 | *) ac_try_echo=$ac_try;; |
| 18807 | esac |
| 18808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18809 | (eval "$ac_compile") 2>conftest.er1 |
| 18810 | ac_status=$? |
| 18811 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18812 | rm -f conftest.er1 |
| 18813 | cat conftest.err >&5 |
| 18814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18815 | (exit $ac_status); } && { |
| 18816 | test -z "$ac_c_werror_flag" || |
| 18817 | test ! -s conftest.err |
| 18818 | } && test -s conftest.$ac_objext; then |
| 18819 | ac_cv_type_int8_t=yes |
| 18820 | else |
| 18821 | echo "$as_me: failed program was:" >&5 |
| 18822 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18823 | |
| 18824 | ac_cv_type_int8_t=no |
| 18825 | fi |
| 18826 | |
| 18827 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18828 | fi |
| 18829 | { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5 |
| 18830 | echo "${ECHO_T}$ac_cv_type_int8_t" >&6; } |
| 18831 | if test $ac_cv_type_int8_t = yes; then |
| 18832 | |
| 18833 | cat >>confdefs.h <<_ACEOF |
| 18834 | #define HAVE_INT8_T 1 |
| 18835 | _ACEOF |
| 18836 | |
| 18837 | |
| 18838 | fi |
| 18839 | { echo "$as_me:$LINENO: checking for int16_t" >&5 |
| 18840 | echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; } |
| 18841 | if test "${ac_cv_type_int16_t+set}" = set; then |
| 18842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18843 | else |
| 18844 | cat >conftest.$ac_ext <<_ACEOF |
| 18845 | /* confdefs.h. */ |
| 18846 | _ACEOF |
| 18847 | cat confdefs.h >>conftest.$ac_ext |
| 18848 | cat >>conftest.$ac_ext <<_ACEOF |
| 18849 | /* end confdefs.h. */ |
| 18850 | $ac_includes_default |
| 18851 | typedef int16_t ac__type_new_; |
| 18852 | int |
| 18853 | main () |
| 18854 | { |
| 18855 | if ((ac__type_new_ *) 0) |
| 18856 | return 0; |
| 18857 | if (sizeof (ac__type_new_)) |
| 18858 | return 0; |
| 18859 | ; |
| 18860 | return 0; |
| 18861 | } |
| 18862 | _ACEOF |
| 18863 | rm -f conftest.$ac_objext |
| 18864 | if { (ac_try="$ac_compile" |
| 18865 | case "(($ac_try" in |
| 18866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18867 | *) ac_try_echo=$ac_try;; |
| 18868 | esac |
| 18869 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18870 | (eval "$ac_compile") 2>conftest.er1 |
| 18871 | ac_status=$? |
| 18872 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18873 | rm -f conftest.er1 |
| 18874 | cat conftest.err >&5 |
| 18875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18876 | (exit $ac_status); } && { |
| 18877 | test -z "$ac_c_werror_flag" || |
| 18878 | test ! -s conftest.err |
| 18879 | } && test -s conftest.$ac_objext; then |
| 18880 | ac_cv_type_int16_t=yes |
| 18881 | else |
| 18882 | echo "$as_me: failed program was:" >&5 |
| 18883 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18884 | |
| 18885 | ac_cv_type_int16_t=no |
| 18886 | fi |
| 18887 | |
| 18888 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18889 | fi |
| 18890 | { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5 |
| 18891 | echo "${ECHO_T}$ac_cv_type_int16_t" >&6; } |
| 18892 | if test $ac_cv_type_int16_t = yes; then |
| 18893 | |
| 18894 | cat >>confdefs.h <<_ACEOF |
| 18895 | #define HAVE_INT16_T 1 |
| 18896 | _ACEOF |
| 18897 | |
| 18898 | |
| 18899 | fi |
| 18900 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
| 18901 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
| 18902 | if test "${ac_cv_type_int32_t+set}" = set; then |
| 18903 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18904 | else |
| 18905 | cat >conftest.$ac_ext <<_ACEOF |
| 18906 | /* confdefs.h. */ |
| 18907 | _ACEOF |
| 18908 | cat confdefs.h >>conftest.$ac_ext |
| 18909 | cat >>conftest.$ac_ext <<_ACEOF |
| 18910 | /* end confdefs.h. */ |
| 18911 | $ac_includes_default |
| 18912 | typedef int32_t ac__type_new_; |
| 18913 | int |
| 18914 | main () |
| 18915 | { |
| 18916 | if ((ac__type_new_ *) 0) |
| 18917 | return 0; |
| 18918 | if (sizeof (ac__type_new_)) |
| 18919 | return 0; |
| 18920 | ; |
| 18921 | return 0; |
| 18922 | } |
| 18923 | _ACEOF |
| 18924 | rm -f conftest.$ac_objext |
| 18925 | if { (ac_try="$ac_compile" |
| 18926 | case "(($ac_try" in |
| 18927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18928 | *) ac_try_echo=$ac_try;; |
| 18929 | esac |
| 18930 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18931 | (eval "$ac_compile") 2>conftest.er1 |
| 18932 | ac_status=$? |
| 18933 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18934 | rm -f conftest.er1 |
| 18935 | cat conftest.err >&5 |
| 18936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18937 | (exit $ac_status); } && { |
| 18938 | test -z "$ac_c_werror_flag" || |
| 18939 | test ! -s conftest.err |
| 18940 | } && test -s conftest.$ac_objext; then |
| 18941 | ac_cv_type_int32_t=yes |
| 18942 | else |
| 18943 | echo "$as_me: failed program was:" >&5 |
| 18944 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18945 | |
| 18946 | ac_cv_type_int32_t=no |
| 18947 | fi |
| 18948 | |
| 18949 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18950 | fi |
| 18951 | { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5 |
| 18952 | echo "${ECHO_T}$ac_cv_type_int32_t" >&6; } |
| 18953 | if test $ac_cv_type_int32_t = yes; then |
| 18954 | |
| 18955 | cat >>confdefs.h <<_ACEOF |
| 18956 | #define HAVE_INT32_T 1 |
| 18957 | _ACEOF |
| 18958 | |
| 18959 | |
| 18960 | fi |
| 18961 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 18962 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
| 18963 | if test "${ac_cv_type_int64_t+set}" = set; then |
| 18964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18965 | else |
| 18966 | cat >conftest.$ac_ext <<_ACEOF |
| 18967 | /* confdefs.h. */ |
| 18968 | _ACEOF |
| 18969 | cat confdefs.h >>conftest.$ac_ext |
| 18970 | cat >>conftest.$ac_ext <<_ACEOF |
| 18971 | /* end confdefs.h. */ |
| 18972 | $ac_includes_default |
| 18973 | typedef int64_t ac__type_new_; |
| 18974 | int |
| 18975 | main () |
| 18976 | { |
| 18977 | if ((ac__type_new_ *) 0) |
| 18978 | return 0; |
| 18979 | if (sizeof (ac__type_new_)) |
| 18980 | return 0; |
| 18981 | ; |
| 18982 | return 0; |
| 18983 | } |
| 18984 | _ACEOF |
| 18985 | rm -f conftest.$ac_objext |
| 18986 | if { (ac_try="$ac_compile" |
| 18987 | case "(($ac_try" in |
| 18988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18989 | *) ac_try_echo=$ac_try;; |
| 18990 | esac |
| 18991 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18992 | (eval "$ac_compile") 2>conftest.er1 |
| 18993 | ac_status=$? |
| 18994 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18995 | rm -f conftest.er1 |
| 18996 | cat conftest.err >&5 |
| 18997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18998 | (exit $ac_status); } && { |
| 18999 | test -z "$ac_c_werror_flag" || |
| 19000 | test ! -s conftest.err |
| 19001 | } && test -s conftest.$ac_objext; then |
| 19002 | ac_cv_type_int64_t=yes |
| 19003 | else |
| 19004 | echo "$as_me: failed program was:" >&5 |
| 19005 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19006 | |
| 19007 | ac_cv_type_int64_t=no |
| 19008 | fi |
| 19009 | |
| 19010 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19011 | fi |
| 19012 | { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 19013 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } |
| 19014 | if test $ac_cv_type_int64_t = yes; then |
| 19015 | |
| 19016 | cat >>confdefs.h <<_ACEOF |
| 19017 | #define HAVE_INT64_T 1 |
| 19018 | _ACEOF |
| 19019 | |
| 19020 | |
| 19021 | fi |
| 19022 | { echo "$as_me:$LINENO: checking for intptr_t" >&5 |
| 19023 | echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; } |
| 19024 | if test "${ac_cv_type_intptr_t+set}" = set; then |
| 19025 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19026 | else |
| 19027 | cat >conftest.$ac_ext <<_ACEOF |
| 19028 | /* confdefs.h. */ |
| 19029 | _ACEOF |
| 19030 | cat confdefs.h >>conftest.$ac_ext |
| 19031 | cat >>conftest.$ac_ext <<_ACEOF |
| 19032 | /* end confdefs.h. */ |
| 19033 | $ac_includes_default |
| 19034 | typedef intptr_t ac__type_new_; |
| 19035 | int |
| 19036 | main () |
| 19037 | { |
| 19038 | if ((ac__type_new_ *) 0) |
| 19039 | return 0; |
| 19040 | if (sizeof (ac__type_new_)) |
| 19041 | return 0; |
| 19042 | ; |
| 19043 | return 0; |
| 19044 | } |
| 19045 | _ACEOF |
| 19046 | rm -f conftest.$ac_objext |
| 19047 | if { (ac_try="$ac_compile" |
| 19048 | case "(($ac_try" in |
| 19049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19050 | *) ac_try_echo=$ac_try;; |
| 19051 | esac |
| 19052 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19053 | (eval "$ac_compile") 2>conftest.er1 |
| 19054 | ac_status=$? |
| 19055 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19056 | rm -f conftest.er1 |
| 19057 | cat conftest.err >&5 |
| 19058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19059 | (exit $ac_status); } && { |
| 19060 | test -z "$ac_c_werror_flag" || |
| 19061 | test ! -s conftest.err |
| 19062 | } && test -s conftest.$ac_objext; then |
| 19063 | ac_cv_type_intptr_t=yes |
| 19064 | else |
| 19065 | echo "$as_me: failed program was:" >&5 |
| 19066 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19067 | |
| 19068 | ac_cv_type_intptr_t=no |
| 19069 | fi |
| 19070 | |
| 19071 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19072 | fi |
| 19073 | { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5 |
| 19074 | echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; } |
| 19075 | if test $ac_cv_type_intptr_t = yes; then |
| 19076 | |
| 19077 | cat >>confdefs.h <<_ACEOF |
| 19078 | #define HAVE_INTPTR_T 1 |
| 19079 | _ACEOF |
| 19080 | |
| 19081 | |
| 19082 | fi |
| 19083 | { echo "$as_me:$LINENO: checking for uint8_t" >&5 |
| 19084 | echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; } |
| 19085 | if test "${ac_cv_type_uint8_t+set}" = set; then |
| 19086 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19087 | else |
| 19088 | cat >conftest.$ac_ext <<_ACEOF |
| 19089 | /* confdefs.h. */ |
| 19090 | _ACEOF |
| 19091 | cat confdefs.h >>conftest.$ac_ext |
| 19092 | cat >>conftest.$ac_ext <<_ACEOF |
| 19093 | /* end confdefs.h. */ |
| 19094 | $ac_includes_default |
| 19095 | typedef uint8_t ac__type_new_; |
| 19096 | int |
| 19097 | main () |
| 19098 | { |
| 19099 | if ((ac__type_new_ *) 0) |
| 19100 | return 0; |
| 19101 | if (sizeof (ac__type_new_)) |
| 19102 | return 0; |
| 19103 | ; |
| 19104 | return 0; |
| 19105 | } |
| 19106 | _ACEOF |
| 19107 | rm -f conftest.$ac_objext |
| 19108 | if { (ac_try="$ac_compile" |
| 19109 | case "(($ac_try" in |
| 19110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19111 | *) ac_try_echo=$ac_try;; |
| 19112 | esac |
| 19113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19114 | (eval "$ac_compile") 2>conftest.er1 |
| 19115 | ac_status=$? |
| 19116 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19117 | rm -f conftest.er1 |
| 19118 | cat conftest.err >&5 |
| 19119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19120 | (exit $ac_status); } && { |
| 19121 | test -z "$ac_c_werror_flag" || |
| 19122 | test ! -s conftest.err |
| 19123 | } && test -s conftest.$ac_objext; then |
| 19124 | ac_cv_type_uint8_t=yes |
| 19125 | else |
| 19126 | echo "$as_me: failed program was:" >&5 |
| 19127 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19128 | |
| 19129 | ac_cv_type_uint8_t=no |
| 19130 | fi |
| 19131 | |
| 19132 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19133 | fi |
| 19134 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5 |
| 19135 | echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; } |
| 19136 | if test $ac_cv_type_uint8_t = yes; then |
| 19137 | |
| 19138 | cat >>confdefs.h <<_ACEOF |
| 19139 | #define HAVE_UINT8_T 1 |
| 19140 | _ACEOF |
| 19141 | |
| 19142 | |
| 19143 | fi |
| 19144 | { echo "$as_me:$LINENO: checking for uint16_t" >&5 |
| 19145 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } |
| 19146 | if test "${ac_cv_type_uint16_t+set}" = set; then |
| 19147 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19148 | else |
| 19149 | cat >conftest.$ac_ext <<_ACEOF |
| 19150 | /* confdefs.h. */ |
| 19151 | _ACEOF |
| 19152 | cat confdefs.h >>conftest.$ac_ext |
| 19153 | cat >>conftest.$ac_ext <<_ACEOF |
| 19154 | /* end confdefs.h. */ |
| 19155 | $ac_includes_default |
| 19156 | typedef uint16_t ac__type_new_; |
| 19157 | int |
| 19158 | main () |
| 19159 | { |
| 19160 | if ((ac__type_new_ *) 0) |
| 19161 | return 0; |
| 19162 | if (sizeof (ac__type_new_)) |
| 19163 | return 0; |
| 19164 | ; |
| 19165 | return 0; |
| 19166 | } |
| 19167 | _ACEOF |
| 19168 | rm -f conftest.$ac_objext |
| 19169 | if { (ac_try="$ac_compile" |
| 19170 | case "(($ac_try" in |
| 19171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19172 | *) ac_try_echo=$ac_try;; |
| 19173 | esac |
| 19174 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19175 | (eval "$ac_compile") 2>conftest.er1 |
| 19176 | ac_status=$? |
| 19177 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19178 | rm -f conftest.er1 |
| 19179 | cat conftest.err >&5 |
| 19180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19181 | (exit $ac_status); } && { |
| 19182 | test -z "$ac_c_werror_flag" || |
| 19183 | test ! -s conftest.err |
| 19184 | } && test -s conftest.$ac_objext; then |
| 19185 | ac_cv_type_uint16_t=yes |
| 19186 | else |
| 19187 | echo "$as_me: failed program was:" >&5 |
| 19188 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19189 | |
| 19190 | ac_cv_type_uint16_t=no |
| 19191 | fi |
| 19192 | |
| 19193 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19194 | fi |
| 19195 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 |
| 19196 | echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; } |
| 19197 | if test $ac_cv_type_uint16_t = yes; then |
| 19198 | |
| 19199 | cat >>confdefs.h <<_ACEOF |
| 19200 | #define HAVE_UINT16_T 1 |
| 19201 | _ACEOF |
| 19202 | |
| 19203 | |
| 19204 | fi |
| 19205 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
| 19206 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
| 19207 | if test "${ac_cv_type_uint32_t+set}" = set; then |
| 19208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19209 | else |
| 19210 | cat >conftest.$ac_ext <<_ACEOF |
| 19211 | /* confdefs.h. */ |
| 19212 | _ACEOF |
| 19213 | cat confdefs.h >>conftest.$ac_ext |
| 19214 | cat >>conftest.$ac_ext <<_ACEOF |
| 19215 | /* end confdefs.h. */ |
| 19216 | $ac_includes_default |
| 19217 | typedef uint32_t ac__type_new_; |
| 19218 | int |
| 19219 | main () |
| 19220 | { |
| 19221 | if ((ac__type_new_ *) 0) |
| 19222 | return 0; |
| 19223 | if (sizeof (ac__type_new_)) |
| 19224 | return 0; |
| 19225 | ; |
| 19226 | return 0; |
| 19227 | } |
| 19228 | _ACEOF |
| 19229 | rm -f conftest.$ac_objext |
| 19230 | if { (ac_try="$ac_compile" |
| 19231 | case "(($ac_try" in |
| 19232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19233 | *) ac_try_echo=$ac_try;; |
| 19234 | esac |
| 19235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19236 | (eval "$ac_compile") 2>conftest.er1 |
| 19237 | ac_status=$? |
| 19238 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19239 | rm -f conftest.er1 |
| 19240 | cat conftest.err >&5 |
| 19241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19242 | (exit $ac_status); } && { |
| 19243 | test -z "$ac_c_werror_flag" || |
| 19244 | test ! -s conftest.err |
| 19245 | } && test -s conftest.$ac_objext; then |
| 19246 | ac_cv_type_uint32_t=yes |
| 19247 | else |
| 19248 | echo "$as_me: failed program was:" >&5 |
| 19249 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19250 | |
| 19251 | ac_cv_type_uint32_t=no |
| 19252 | fi |
| 19253 | |
| 19254 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19255 | fi |
| 19256 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 |
| 19257 | echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; } |
| 19258 | if test $ac_cv_type_uint32_t = yes; then |
| 19259 | |
| 19260 | cat >>confdefs.h <<_ACEOF |
| 19261 | #define HAVE_UINT32_T 1 |
| 19262 | _ACEOF |
| 19263 | |
| 19264 | |
| 19265 | fi |
| 19266 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 19267 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
| 19268 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 19269 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19270 | else |
| 19271 | cat >conftest.$ac_ext <<_ACEOF |
| 19272 | /* confdefs.h. */ |
| 19273 | _ACEOF |
| 19274 | cat confdefs.h >>conftest.$ac_ext |
| 19275 | cat >>conftest.$ac_ext <<_ACEOF |
| 19276 | /* end confdefs.h. */ |
| 19277 | $ac_includes_default |
| 19278 | typedef uint64_t ac__type_new_; |
| 19279 | int |
| 19280 | main () |
| 19281 | { |
| 19282 | if ((ac__type_new_ *) 0) |
| 19283 | return 0; |
| 19284 | if (sizeof (ac__type_new_)) |
| 19285 | return 0; |
| 19286 | ; |
| 19287 | return 0; |
| 19288 | } |
| 19289 | _ACEOF |
| 19290 | rm -f conftest.$ac_objext |
| 19291 | if { (ac_try="$ac_compile" |
| 19292 | case "(($ac_try" in |
| 19293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19294 | *) ac_try_echo=$ac_try;; |
| 19295 | esac |
| 19296 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19297 | (eval "$ac_compile") 2>conftest.er1 |
| 19298 | ac_status=$? |
| 19299 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19300 | rm -f conftest.er1 |
| 19301 | cat conftest.err >&5 |
| 19302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19303 | (exit $ac_status); } && { |
| 19304 | test -z "$ac_c_werror_flag" || |
| 19305 | test ! -s conftest.err |
| 19306 | } && test -s conftest.$ac_objext; then |
| 19307 | ac_cv_type_uint64_t=yes |
| 19308 | else |
| 19309 | echo "$as_me: failed program was:" >&5 |
| 19310 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19311 | |
| 19312 | ac_cv_type_uint64_t=no |
| 19313 | fi |
| 19314 | |
| 19315 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19316 | fi |
| 19317 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 19318 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } |
| 19319 | if test $ac_cv_type_uint64_t = yes; then |
| 19320 | |
| 19321 | cat >>confdefs.h <<_ACEOF |
| 19322 | #define HAVE_UINT64_T 1 |
| 19323 | _ACEOF |
| 19324 | |
| 19325 | |
| 19326 | fi |
| 19327 | { echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 19328 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } |
| 19329 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 19330 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19331 | else |
| 19332 | cat >conftest.$ac_ext <<_ACEOF |
| 19333 | /* confdefs.h. */ |
| 19334 | _ACEOF |
| 19335 | cat confdefs.h >>conftest.$ac_ext |
| 19336 | cat >>conftest.$ac_ext <<_ACEOF |
| 19337 | /* end confdefs.h. */ |
| 19338 | $ac_includes_default |
| 19339 | typedef uintptr_t ac__type_new_; |
| 19340 | int |
| 19341 | main () |
| 19342 | { |
| 19343 | if ((ac__type_new_ *) 0) |
| 19344 | return 0; |
| 19345 | if (sizeof (ac__type_new_)) |
| 19346 | return 0; |
| 19347 | ; |
| 19348 | return 0; |
| 19349 | } |
| 19350 | _ACEOF |
| 19351 | rm -f conftest.$ac_objext |
| 19352 | if { (ac_try="$ac_compile" |
| 19353 | case "(($ac_try" in |
| 19354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19355 | *) ac_try_echo=$ac_try;; |
| 19356 | esac |
| 19357 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19358 | (eval "$ac_compile") 2>conftest.er1 |
| 19359 | ac_status=$? |
| 19360 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19361 | rm -f conftest.er1 |
| 19362 | cat conftest.err >&5 |
| 19363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19364 | (exit $ac_status); } && { |
| 19365 | test -z "$ac_c_werror_flag" || |
| 19366 | test ! -s conftest.err |
| 19367 | } && test -s conftest.$ac_objext; then |
| 19368 | ac_cv_type_uintptr_t=yes |
| 19369 | else |
| 19370 | echo "$as_me: failed program was:" >&5 |
| 19371 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19372 | |
| 19373 | ac_cv_type_uintptr_t=no |
| 19374 | fi |
| 19375 | |
| 19376 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19377 | fi |
| 19378 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 19379 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } |
| 19380 | if test $ac_cv_type_uintptr_t = yes; then |
| 19381 | |
| 19382 | cat >>confdefs.h <<_ACEOF |
| 19383 | #define HAVE_UINTPTR_T 1 |
| 19384 | _ACEOF |
| 19385 | |
| 19386 | |
| 19387 | fi |
| 19388 | |
| 19389 | |
| 19390 | ######### |
| 19391 | # Check for needed/wanted headers |
| 19392 | |
| 19393 | for ac_header in sys/types.h |
| 19394 | do |
| 19395 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 19396 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 19397 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 19398 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19399 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19400 | else |
| 19401 | cat >conftest.$ac_ext <<_ACEOF |
| 19402 | /* confdefs.h. */ |
| 19403 | _ACEOF |
| 19404 | cat confdefs.h >>conftest.$ac_ext |
| 19405 | cat >>conftest.$ac_ext <<_ACEOF |
| 19406 | /* end confdefs.h. */ |
| 19407 | inttypes.h |
| 19408 | |
| 19409 | #include <$ac_header> |
| 19410 | _ACEOF |
| 19411 | rm -f conftest.$ac_objext |
| 19412 | if { (ac_try="$ac_compile" |
| 19413 | case "(($ac_try" in |
| 19414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19415 | *) ac_try_echo=$ac_try;; |
| 19416 | esac |
| 19417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19418 | (eval "$ac_compile") 2>conftest.er1 |
| 19419 | ac_status=$? |
| 19420 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19421 | rm -f conftest.er1 |
| 19422 | cat conftest.err >&5 |
| 19423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19424 | (exit $ac_status); } && { |
| 19425 | test -z "$ac_c_werror_flag" || |
| 19426 | test ! -s conftest.err |
| 19427 | } && test -s conftest.$ac_objext; then |
| 19428 | eval "$as_ac_Header=yes" |
| 19429 | else |
| 19430 | echo "$as_me: failed program was:" >&5 |
| 19431 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19432 | |
| 19433 | eval "$as_ac_Header=no" |
| 19434 | fi |
| 19435 | |
| 19436 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19437 | fi |
| 19438 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 19439 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19440 | echo "${ECHO_T}$ac_res" >&6; } |
| 19441 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 19442 | cat >>confdefs.h <<_ACEOF |
| 19443 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 19444 | _ACEOF |
| 19445 | stdlib.h |
| 19446 | else |
| 19447 | stdint.h |
| 19448 | fi |
| 19449 | |
| 19450 | done |
| 19451 | |
| 19452 | |
| 19453 | ######### |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19454 | # Set up an appropriate program prefix |
| 19455 | # |
| 19456 | if test "$program_prefix" = "NONE"; then |
| 19457 | program_prefix="" |
| 19458 | fi |
| 19459 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19460 | |
drh | 4b2266a | 2004-11-27 15:52:16 +0000 | [diff] [blame] | 19461 | VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'` |
| 19462 | echo "Version set to $VERSION" |
| 19463 | |
| 19464 | RELEASE=`cat $srcdir/VERSION` |
| 19465 | echo "Release set to $RELEASE" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19466 | |
danielk1977 | 99ba19e | 2005-02-05 07:33:34 +0000 | [diff] [blame] | 19467 | VERSION_NUMBER=`cat $srcdir/VERSION \ |
drh | 26d0e2a | 2005-07-06 13:51:27 +0000 | [diff] [blame] | 19468 | | sed 's/[^0-9]/ /g' \ |
danielk1977 | 99ba19e | 2005-02-05 07:33:34 +0000 | [diff] [blame] | 19469 | | awk '{printf "%d%03d%03d",$1,$2,$3}'` |
danielk1977 | 99ba19e | 2005-02-05 07:33:34 +0000 | [diff] [blame] | 19470 | echo "Version number set to $VERSION_NUMBER" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19471 | |
drh | 26d0e2a | 2005-07-06 13:51:27 +0000 | [diff] [blame] | 19472 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19473 | ######### |
| 19474 | # Check to see if the --with-hints=FILE option is used. If there is none, |
| 19475 | # then check for a files named "$host.hints" and ../$hosts.hints where |
| 19476 | # $host is the hostname of the build system. If still no hints are |
| 19477 | # found, try looking in $system.hints and ../$system.hints where |
| 19478 | # $system is the result of uname -s. |
| 19479 | # |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19480 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19481 | # Check whether --with-hints was given. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19482 | if test "${with_hints+set}" = set; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19483 | withval=$with_hints; hints=$withval |
| 19484 | fi |
| 19485 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19486 | if test "$hints" = ""; then |
| 19487 | host=`hostname | sed 's/\..*//'` |
| 19488 | if test -r $host.hints; then |
| 19489 | hints=$host.hints |
| 19490 | else |
| 19491 | if test -r ../$host.hints; then |
| 19492 | hints=../$host.hints |
| 19493 | fi |
| 19494 | fi |
| 19495 | fi |
| 19496 | if test "$hints" = ""; then |
| 19497 | sys=`uname -s` |
| 19498 | if test -r $sys.hints; then |
| 19499 | hints=$sys.hints |
| 19500 | else |
| 19501 | if test -r ../$sys.hints; then |
| 19502 | hints=../$sys.hints |
| 19503 | fi |
| 19504 | fi |
| 19505 | fi |
| 19506 | if test "$hints" != ""; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19507 | { echo "$as_me:$LINENO: result: reading hints from $hints" >&5 |
| 19508 | echo "${ECHO_T}reading hints from $hints" >&6; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19509 | . $hints |
| 19510 | fi |
| 19511 | |
| 19512 | ######### |
| 19513 | # Locate a compiler for the build machine. This compiler should |
| 19514 | # generate command-line programs that run on the build machine. |
| 19515 | # |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 19516 | if test x"$cross_compiling" = xno; then |
| 19517 | BUILD_CC=$CC |
| 19518 | BUILD_CFLAGS=$CFLAGS |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19519 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 19520 | if test "${BUILD_CC+set}" != set; then |
| 19521 | for ac_prog in gcc cc cl |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19522 | do |
| 19523 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 19524 | set dummy $ac_prog; ac_word=$2 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19525 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 19526 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 19527 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19528 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19529 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 19530 | if test -n "$BUILD_CC"; then |
| 19531 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19532 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19533 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19534 | for as_dir in $PATH |
| 19535 | do |
| 19536 | IFS=$as_save_IFS |
| 19537 | test -z "$as_dir" && as_dir=. |
| 19538 | for ac_exec_ext in '' $ac_executable_extensions; do |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19539 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 19540 | ac_cv_prog_BUILD_CC="$ac_prog" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19541 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 19542 | break 2 |
| 19543 | fi |
| 19544 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19545 | done |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19546 | IFS=$as_save_IFS |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19547 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19548 | fi |
| 19549 | fi |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 19550 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 19551 | if test -n "$BUILD_CC"; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19552 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 19553 | echo "${ECHO_T}$BUILD_CC" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19554 | else |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19555 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19556 | echo "${ECHO_T}no" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19557 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19558 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19559 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 19560 | test -n "$BUILD_CC" && break |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19561 | done |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19562 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 19563 | fi |
| 19564 | if test "${BUILD_CFLAGS+set}" != set; then |
| 19565 | BUILD_CFLAGS="-g" |
| 19566 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19567 | fi |
| 19568 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19569 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19570 | |
drh | 297ecf1 | 2001-04-05 15:57:13 +0000 | [diff] [blame] | 19571 | ########## |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 19572 | # Do we want to support multithreaded use of sqlite |
drh | 297ecf1 | 2001-04-05 15:57:13 +0000 | [diff] [blame] | 19573 | # |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19574 | # Check whether --enable-threadsafe was given. |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 19575 | if test "${enable_threadsafe+set}" = set; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19576 | enableval=$enable_threadsafe; |
drh | 297ecf1 | 2001-04-05 15:57:13 +0000 | [diff] [blame] | 19577 | else |
drh | 5a3032b | 2007-09-03 16:12:09 +0000 | [diff] [blame] | 19578 | enable_threadsafe=yes |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19579 | fi |
| 19580 | |
| 19581 | { echo "$as_me:$LINENO: checking whether to support threadsafe operation" >&5 |
| 19582 | echo $ECHO_N "checking whether to support threadsafe operation... $ECHO_C" >&6; } |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 19583 | if test "$enable_threadsafe" = "no"; then |
drh | 5a3032b | 2007-09-03 16:12:09 +0000 | [diff] [blame] | 19584 | SQLITE_THREADSAFE=0 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19585 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19586 | echo "${ECHO_T}no" >&6; } |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 19587 | else |
drh | 5a3032b | 2007-09-03 16:12:09 +0000 | [diff] [blame] | 19588 | SQLITE_THREADSAFE=1 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19589 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19590 | echo "${ECHO_T}yes" >&6; } |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 19591 | fi |
| 19592 | |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19593 | |
drh | 5a3032b | 2007-09-03 16:12:09 +0000 | [diff] [blame] | 19594 | if test "$SQLITE_THREADSAFE" = "1"; then |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 19595 | LIBS="" |
| 19596 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19597 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 19598 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; } |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 19599 | if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then |
| 19600 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19601 | else |
| 19602 | ac_check_lib_save_LIBS=$LIBS |
| 19603 | LIBS="-lpthread $LIBS" |
| 19604 | cat >conftest.$ac_ext <<_ACEOF |
| 19605 | /* confdefs.h. */ |
| 19606 | _ACEOF |
| 19607 | cat confdefs.h >>conftest.$ac_ext |
| 19608 | cat >>conftest.$ac_ext <<_ACEOF |
| 19609 | /* end confdefs.h. */ |
| 19610 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19611 | /* Override any GCC internal prototype to avoid an error. |
| 19612 | Use char because int might match the return type of a GCC |
| 19613 | builtin and then its argument prototype would still apply. */ |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 19614 | #ifdef __cplusplus |
| 19615 | extern "C" |
| 19616 | #endif |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 19617 | char pthread_create (); |
| 19618 | int |
| 19619 | main () |
| 19620 | { |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19621 | return pthread_create (); |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 19622 | ; |
| 19623 | return 0; |
| 19624 | } |
| 19625 | _ACEOF |
| 19626 | rm -f conftest.$ac_objext conftest$ac_exeext |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19627 | if { (ac_try="$ac_link" |
| 19628 | case "(($ac_try" in |
| 19629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19630 | *) ac_try_echo=$ac_try;; |
| 19631 | esac |
| 19632 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19633 | (eval "$ac_link") 2>conftest.er1 |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 19634 | ac_status=$? |
| 19635 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19636 | rm -f conftest.er1 |
| 19637 | cat conftest.err >&5 |
| 19638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19639 | (exit $ac_status); } && { |
| 19640 | test -z "$ac_c_werror_flag" || |
| 19641 | test ! -s conftest.err |
| 19642 | } && test -s conftest$ac_exeext && |
| 19643 | $as_test_x conftest$ac_exeext; then |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 19644 | ac_cv_lib_pthread_pthread_create=yes |
| 19645 | else |
| 19646 | echo "$as_me: failed program was:" >&5 |
| 19647 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19648 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19649 | ac_cv_lib_pthread_pthread_create=no |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 19650 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19651 | |
| 19652 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 19653 | conftest$ac_exeext conftest.$ac_ext |
| 19654 | LIBS=$ac_check_lib_save_LIBS |
| 19655 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19656 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 |
| 19657 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; } |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 19658 | if test $ac_cv_lib_pthread_pthread_create = yes; then |
| 19659 | cat >>confdefs.h <<_ACEOF |
| 19660 | #define HAVE_LIBPTHREAD 1 |
| 19661 | _ACEOF |
| 19662 | |
| 19663 | LIBS="-lpthread $LIBS" |
| 19664 | |
| 19665 | fi |
| 19666 | |
| 19667 | TARGET_THREAD_LIB="$LIBS" |
| 19668 | LIBS="" |
| 19669 | else |
| 19670 | TARGET_THREAD_LIB="" |
| 19671 | fi |
| 19672 | |
| 19673 | |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 19674 | ########## |
drh | 91636d5 | 2005-11-24 23:14:00 +0000 | [diff] [blame] | 19675 | # Do we want to allow a connection created in one thread to be used |
| 19676 | # in another thread. This does not work on many Linux systems (ex: RedHat 9) |
| 19677 | # due to bugs in the threading implementations. This is thus off by default. |
| 19678 | # |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19679 | # Check whether --enable-cross-thread-connections was given. |
drh | 91636d5 | 2005-11-24 23:14:00 +0000 | [diff] [blame] | 19680 | if test "${enable_cross_thread_connections+set}" = set; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19681 | enableval=$enable_cross_thread_connections; |
drh | 91636d5 | 2005-11-24 23:14:00 +0000 | [diff] [blame] | 19682 | else |
| 19683 | enable_xthreadconnect=no |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19684 | fi |
| 19685 | |
| 19686 | { echo "$as_me:$LINENO: checking whether to allow connections to be shared across threads" >&5 |
| 19687 | echo $ECHO_N "checking whether to allow connections to be shared across threads... $ECHO_C" >&6; } |
drh | 91636d5 | 2005-11-24 23:14:00 +0000 | [diff] [blame] | 19688 | if test "$enable_xthreadconnect" = "no"; then |
| 19689 | XTHREADCONNECT='' |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19690 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19691 | echo "${ECHO_T}no" >&6; } |
drh | 91636d5 | 2005-11-24 23:14:00 +0000 | [diff] [blame] | 19692 | else |
| 19693 | XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1' |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19694 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19695 | echo "${ECHO_T}yes" >&6; } |
drh | 91636d5 | 2005-11-24 23:14:00 +0000 | [diff] [blame] | 19696 | fi |
| 19697 | |
| 19698 | |
| 19699 | ########## |
drh | 8e2e2a1 | 2006-02-01 01:55:17 +0000 | [diff] [blame] | 19700 | # Do we want to set threadsOverrideEachOthersLocks variable to be 1 (true) by |
| 19701 | # default. Normally, a test at runtime is performed to determine the |
| 19702 | # appropriate value of this variable. Use this option only if you're sure that |
| 19703 | # threads can safely override each others locks in all runtime situations. |
| 19704 | # |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19705 | # Check whether --enable-threads-override-locks was given. |
drh | 8e2e2a1 | 2006-02-01 01:55:17 +0000 | [diff] [blame] | 19706 | if test "${enable_threads_override_locks+set}" = set; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19707 | enableval=$enable_threads_override_locks; |
drh | 8e2e2a1 | 2006-02-01 01:55:17 +0000 | [diff] [blame] | 19708 | else |
| 19709 | enable_threads_override_locks=no |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19710 | fi |
| 19711 | |
| 19712 | { echo "$as_me:$LINENO: checking whether threads can override each others locks" >&5 |
| 19713 | echo $ECHO_N "checking whether threads can override each others locks... $ECHO_C" >&6; } |
drh | 8e2e2a1 | 2006-02-01 01:55:17 +0000 | [diff] [blame] | 19714 | if test "$enable_threads_override_locks" = "no"; then |
| 19715 | THREADSOVERRIDELOCKS='-1' |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19716 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19717 | echo "${ECHO_T}no" >&6; } |
drh | 8e2e2a1 | 2006-02-01 01:55:17 +0000 | [diff] [blame] | 19718 | else |
| 19719 | THREADSOVERRIDELOCKS='1' |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19720 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19721 | echo "${ECHO_T}yes" >&6; } |
drh | 8e2e2a1 | 2006-02-01 01:55:17 +0000 | [diff] [blame] | 19722 | fi |
| 19723 | |
| 19724 | |
| 19725 | ########## |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 19726 | # Do we want to support release |
| 19727 | # |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19728 | # Check whether --enable-releasemode was given. |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 19729 | if test "${enable_releasemode+set}" = set; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19730 | enableval=$enable_releasemode; |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 19731 | else |
| 19732 | enable_releasemode=no |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19733 | fi |
| 19734 | |
| 19735 | { echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5 |
| 19736 | echo $ECHO_N "checking whether to support shared library linked as release mode or not... $ECHO_C" >&6; } |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 19737 | if test "$enable_releasemode" = "no"; then |
| 19738 | ALLOWRELEASE="" |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19739 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19740 | echo "${ECHO_T}no" >&6; } |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 19741 | else |
drh | 0b47d34 | 2007-11-27 14:50:06 +0000 | [diff] [blame] | 19742 | ALLOWRELEASE="-release `cat $srcdir/VERSION`" |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19743 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19744 | echo "${ECHO_T}yes" >&6; } |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 19745 | fi |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 19746 | |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19747 | |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 19748 | ########## |
| 19749 | # Do we want temporary databases in memory |
| 19750 | # |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19751 | # Check whether --enable-tempstore was given. |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 19752 | if test "${enable_tempstore+set}" = set; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19753 | enableval=$enable_tempstore; |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 19754 | else |
drh | 54414bb | 2005-10-10 00:05:50 +0000 | [diff] [blame] | 19755 | enable_tempstore=no |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19756 | fi |
| 19757 | |
| 19758 | { echo "$as_me:$LINENO: checking whether to use an in-ram database for temporary tables" >&5 |
| 19759 | echo $ECHO_N "checking whether to use an in-ram database for temporary tables... $ECHO_C" >&6; } |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 19760 | case "$enable_tempstore" in |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 19761 | never ) |
paul | 2dc96f9 | 2003-04-20 11:46:34 +0000 | [diff] [blame] | 19762 | TEMP_STORE=0 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19763 | { echo "$as_me:$LINENO: result: never" >&5 |
| 19764 | echo "${ECHO_T}never" >&6; } |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 19765 | ;; |
| 19766 | no ) |
paul | 2dc96f9 | 2003-04-20 11:46:34 +0000 | [diff] [blame] | 19767 | TEMP_STORE=1 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19768 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19769 | echo "${ECHO_T}no" >&6; } |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 19770 | ;; |
| 19771 | always ) |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 19772 | TEMP_STORE=3 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19773 | { echo "$as_me:$LINENO: result: always" >&5 |
| 19774 | echo "${ECHO_T}always" >&6; } |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 19775 | ;; |
drh | 54414bb | 2005-10-10 00:05:50 +0000 | [diff] [blame] | 19776 | yes ) |
| 19777 | TEMP_STORE=3 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19778 | { echo "$as_me:$LINENO: result: always" >&5 |
| 19779 | echo "${ECHO_T}always" >&6; } |
drh | 54414bb | 2005-10-10 00:05:50 +0000 | [diff] [blame] | 19780 | ;; |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 19781 | * ) |
drh | 54414bb | 2005-10-10 00:05:50 +0000 | [diff] [blame] | 19782 | TEMP_STORE=1 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19783 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19784 | echo "${ECHO_T}yes" >&6; } |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 19785 | ;; |
| 19786 | esac |
| 19787 | |
| 19788 | |
| 19789 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19790 | ########### |
| 19791 | # Lots of things are different if we are compiling for Windows using |
| 19792 | # the CYGWIN environment. So check for that special case and handle |
| 19793 | # things accordingly. |
| 19794 | # |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19795 | { echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5 |
| 19796 | echo $ECHO_N "checking if executables have the .exe suffix... $ECHO_C" >&6; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19797 | if test "$config_BUILD_EXEEXT" = ".exe"; then |
| 19798 | CYGWIN=yes |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19799 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19800 | echo "${ECHO_T}yes" >&6; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19801 | else |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19802 | { echo "$as_me:$LINENO: result: unknown" >&5 |
| 19803 | echo "${ECHO_T}unknown" >&6; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19804 | fi |
| 19805 | if test "$CYGWIN" != "yes"; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19806 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 19807 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
| 19808 | if test "${ac_cv_host+set}" = set; then |
| 19809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19810 | else |
| 19811 | if test "x$host_alias" = x; then |
| 19812 | ac_cv_host=$ac_cv_build |
| 19813 | else |
| 19814 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 19815 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 19816 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
| 19817 | { (exit 1); exit 1; }; } |
| 19818 | fi |
| 19819 | |
| 19820 | fi |
| 19821 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 19822 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 19823 | case $ac_cv_host in |
| 19824 | *-*-*) ;; |
| 19825 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 19826 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 19827 | { (exit 1); exit 1; }; };; |
| 19828 | esac |
| 19829 | host=$ac_cv_host |
| 19830 | ac_save_IFS=$IFS; IFS='-' |
| 19831 | set x $ac_cv_host |
| 19832 | shift |
| 19833 | host_cpu=$1 |
| 19834 | host_vendor=$2 |
| 19835 | shift; shift |
| 19836 | # Remember, the first character of IFS is used to create $*, |
| 19837 | # except with old shells: |
| 19838 | host_os=$* |
| 19839 | IFS=$ac_save_IFS |
| 19840 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 19841 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19842 | |
| 19843 | case $host_os in |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19844 | *cygwin* ) CYGWIN=yes;; |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19845 | * ) CYGWIN=no;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19846 | esac |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19847 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19848 | fi |
| 19849 | if test "$CYGWIN" = "yes"; then |
| 19850 | BUILD_EXEEXT=.exe |
| 19851 | else |
dougcurrie | 6194a5f | 2003-12-19 20:09:51 +0000 | [diff] [blame] | 19852 | BUILD_EXEEXT=$EXEEXT |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19853 | fi |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 19854 | if test x"$cross_compiling" = xno; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19855 | TARGET_EXEEXT=$BUILD_EXEEXT |
| 19856 | else |
| 19857 | TARGET_EXEEXT=$config_TARGET_EXEEXT |
| 19858 | fi |
| 19859 | if test "$TARGET_EXEEXT" = ".exe"; then |
drh | 60a1e4b | 2006-06-03 18:02:15 +0000 | [diff] [blame] | 19860 | if test $OS2_SHELL ; then |
| 19861 | OS_UNIX=0 |
| 19862 | OS_WIN=0 |
| 19863 | OS_OS2=1 |
| 19864 | TARGET_CFLAGS="$TARGET_CFLAGS -DOS_OS2=1" |
| 19865 | if test "$ac_compiler_gnu" == "yes" ; then |
| 19866 | TARGET_CFLAGS="$TARGET_CFLAGS -Zomf -Zexe -Zmap" |
| 19867 | BUILD_CFLAGS="$BUILD_CFLAGS -Zomf -Zexe" |
| 19868 | fi |
| 19869 | else |
| 19870 | OS_UNIX=0 |
| 19871 | OS_WIN=1 |
| 19872 | OS_OS2=0 |
| 19873 | tclsubdir=win |
| 19874 | TARGET_CFLAGS="$TARGET_CFLAGS -DOS_WIN=1" |
| 19875 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19876 | else |
| 19877 | OS_UNIX=1 |
| 19878 | OS_WIN=0 |
drh | 60a1e4b | 2006-06-03 18:02:15 +0000 | [diff] [blame] | 19879 | OS_OS2=0 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19880 | tclsubdir=unix |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 19881 | TARGET_CFLAGS="$TARGET_CFLAGS -DOS_UNIX=1" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19882 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19883 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19884 | |
| 19885 | |
| 19886 | |
| 19887 | |
| 19888 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19889 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19890 | ########## |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 19891 | # Figure out all the parameters needed to compile against Tcl. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19892 | # |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 19893 | # This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG |
| 19894 | # macros in the in the tcl.m4 file of the standard TCL distribution. |
| 19895 | # Those macros could not be used directly since we have to make some |
| 19896 | # minor changes to accomodate systems that do not have TCL installed. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19897 | # |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19898 | # Check whether --enable-tcl was given. |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 19899 | if test "${enable_tcl+set}" = set; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19900 | enableval=$enable_tcl; use_tcl=$enableval |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19901 | else |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 19902 | use_tcl=yes |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19903 | fi |
| 19904 | |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 19905 | if test "${use_tcl}" = "yes" ; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19906 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19907 | # Check whether --with-tcl was given. |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 19908 | if test "${with_tcl+set}" = set; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19909 | withval=$with_tcl; with_tclconfig=${withval} |
| 19910 | fi |
| 19911 | |
| 19912 | { echo "$as_me:$LINENO: checking for Tcl configuration" >&5 |
| 19913 | echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6; } |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 19914 | if test "${ac_cv_c_tclconfig+set}" = set; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19916 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19917 | |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 19918 | # First check to see if --with-tcl was specified. |
| 19919 | if test x"${with_tclconfig}" != x ; then |
| 19920 | if test -f "${with_tclconfig}/tclConfig.sh" ; then |
| 19921 | ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` |
| 19922 | else |
| 19923 | { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 |
| 19924 | echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 19925 | { (exit 1); exit 1; }; } |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 19926 | fi |
| 19927 | fi |
| 19928 | # then check for a private Tcl installation |
| 19929 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 19930 | for i in \ |
| 19931 | ../tcl \ |
| 19932 | `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ |
| 19933 | `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ |
| 19934 | `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ |
| 19935 | ../../tcl \ |
| 19936 | `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ |
| 19937 | `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ |
| 19938 | `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ |
| 19939 | ../../../tcl \ |
| 19940 | `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ |
| 19941 | `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ |
| 19942 | `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` |
| 19943 | do |
| 19944 | if test -f "$i/unix/tclConfig.sh" ; then |
| 19945 | ac_cv_c_tclconfig=`(cd $i/unix; pwd)` |
| 19946 | break |
| 19947 | fi |
| 19948 | done |
| 19949 | fi |
| 19950 | |
| 19951 | # check in a few common install locations |
| 19952 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 19953 | for i in \ |
| 19954 | `ls -d ${libdir} 2>/dev/null` \ |
| 19955 | `ls -d /usr/local/lib 2>/dev/null` \ |
| 19956 | `ls -d /usr/contrib/lib 2>/dev/null` \ |
| 19957 | `ls -d /usr/lib 2>/dev/null` |
| 19958 | do |
| 19959 | if test -f "$i/tclConfig.sh" ; then |
| 19960 | ac_cv_c_tclconfig=`(cd $i; pwd)` |
| 19961 | break |
| 19962 | fi |
| 19963 | done |
| 19964 | fi |
| 19965 | |
| 19966 | # check in a few other private locations |
| 19967 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 19968 | for i in \ |
| 19969 | ${srcdir}/../tcl \ |
| 19970 | `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ |
| 19971 | `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ |
| 19972 | `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` |
| 19973 | do |
| 19974 | if test -f "$i/unix/tclConfig.sh" ; then |
| 19975 | ac_cv_c_tclconfig=`(cd $i/unix; pwd)` |
| 19976 | break |
| 19977 | fi |
| 19978 | done |
| 19979 | fi |
| 19980 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19981 | fi |
| 19982 | |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 19983 | |
| 19984 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 19985 | use_tcl=no |
| 19986 | { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5 |
| 19987 | echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;} |
| 19988 | { echo "$as_me:$LINENO: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5 |
| 19989 | echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;} |
| 19990 | { echo "$as_me:$LINENO: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5 |
| 19991 | echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;} |
| 19992 | else |
| 19993 | TCL_BIN_DIR=${ac_cv_c_tclconfig} |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19994 | { echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5 |
| 19995 | echo "${ECHO_T}found $TCL_BIN_DIR/tclConfig.sh" >&6; } |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 19996 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 19997 | { echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5 |
| 19998 | echo $ECHO_N "checking for existence of $TCL_BIN_DIR/tclConfig.sh... $ECHO_C" >&6; } |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 19999 | if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20000 | { echo "$as_me:$LINENO: result: loading" >&5 |
| 20001 | echo "${ECHO_T}loading" >&6; } |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 20002 | . $TCL_BIN_DIR/tclConfig.sh |
| 20003 | else |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20004 | { echo "$as_me:$LINENO: result: file not found" >&5 |
| 20005 | echo "${ECHO_T}file not found" >&6; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20006 | fi |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 20007 | |
| 20008 | # |
| 20009 | # If the TCL_BIN_DIR is the build directory (not the install directory), |
| 20010 | # then set the common variable name to the value of the build variables. |
| 20011 | # For example, the variable TCL_LIB_SPEC will be set to the value |
| 20012 | # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC |
| 20013 | # instead of TCL_BUILD_LIB_SPEC since it will work with both an |
| 20014 | # installed and uninstalled version of Tcl. |
| 20015 | # |
| 20016 | |
| 20017 | if test -f $TCL_BIN_DIR/Makefile ; then |
| 20018 | TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC} |
| 20019 | TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC} |
| 20020 | TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH} |
| 20021 | fi |
| 20022 | |
| 20023 | # |
| 20024 | # eval is required to do the TCL_DBGX substitution |
| 20025 | # |
| 20026 | |
| 20027 | eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" |
| 20028 | eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" |
| 20029 | eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" |
| 20030 | |
| 20031 | eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" |
| 20032 | eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" |
| 20033 | eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" |
| 20034 | |
| 20035 | |
| 20036 | |
| 20037 | |
| 20038 | |
| 20039 | |
| 20040 | |
| 20041 | |
| 20042 | |
| 20043 | |
| 20044 | |
| 20045 | |
| 20046 | |
| 20047 | |
| 20048 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20049 | fi |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 20050 | if test "${use_tcl}" = "no" ; then |
| 20051 | HAVE_TCL="" |
| 20052 | else |
| 20053 | HAVE_TCL=1 |
drh | 6d31316 | 2000-09-21 13:01:35 +0000 | [diff] [blame] | 20054 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20055 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20056 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20057 | ########## |
| 20058 | # Figure out what C libraries are required to compile programs |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20059 | # that use "readline()" library. |
| 20060 | # |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 20061 | TARGET_READLINE_LIBS="" |
| 20062 | TARGET_READLINE_INC="" |
| 20063 | TARGET_HAVE_READLINE=0 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20064 | # Check whether --enable-readline was given. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 20065 | if test "${enable_readline+set}" = set; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20066 | enableval=$enable_readline; with_readline=$enableval |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20067 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 20068 | with_readline=auto |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20069 | fi |
| 20070 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 20071 | |
| 20072 | if test x"$with_readline" != xno; then |
| 20073 | found="yes" |
| 20074 | |
| 20075 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20076 | # Check whether --with-readline-lib was given. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 20077 | if test "${with_readline_lib+set}" = set; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20078 | withval=$with_readline_lib; with_readline_lib=$withval |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 20079 | else |
| 20080 | with_readline_lib="auto" |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20081 | fi |
| 20082 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 20083 | if test "x$with_readline_lib" = xauto; then |
| 20084 | save_LIBS="$LIBS" |
| 20085 | LIBS="" |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20086 | { echo "$as_me:$LINENO: checking for library containing tgetent" >&5 |
| 20087 | echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6; } |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 20088 | if test "${ac_cv_search_tgetent+set}" = set; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20090 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20091 | ac_func_search_save_LIBS=$LIBS |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 20092 | cat >conftest.$ac_ext <<_ACEOF |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 20093 | /* confdefs.h. */ |
| 20094 | _ACEOF |
| 20095 | cat confdefs.h >>conftest.$ac_ext |
| 20096 | cat >>conftest.$ac_ext <<_ACEOF |
| 20097 | /* end confdefs.h. */ |
| 20098 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20099 | /* Override any GCC internal prototype to avoid an error. |
| 20100 | Use char because int might match the return type of a GCC |
| 20101 | builtin and then its argument prototype would still apply. */ |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 20102 | #ifdef __cplusplus |
| 20103 | extern "C" |
| 20104 | #endif |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 20105 | char tgetent (); |
| 20106 | int |
| 20107 | main () |
| 20108 | { |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20109 | return tgetent (); |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 20110 | ; |
| 20111 | return 0; |
| 20112 | } |
| 20113 | _ACEOF |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20114 | for ac_lib in '' readline ncurses curses termcap; do |
| 20115 | if test -z "$ac_lib"; then |
| 20116 | ac_res="none required" |
| 20117 | else |
| 20118 | ac_res=-l$ac_lib |
drh | 613a0fe | 2007-11-23 17:31:17 +0000 | [diff] [blame] | 20119 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20120 | fi |
| 20121 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20122 | if { (ac_try="$ac_link" |
| 20123 | case "(($ac_try" in |
| 20124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20125 | *) ac_try_echo=$ac_try;; |
| 20126 | esac |
| 20127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20128 | (eval "$ac_link") 2>conftest.er1 |
drh | 613a0fe | 2007-11-23 17:31:17 +0000 | [diff] [blame] | 20129 | ac_status=$? |
| 20130 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20131 | rm -f conftest.er1 |
| 20132 | cat conftest.err >&5 |
| 20133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20134 | (exit $ac_status); } && { |
| 20135 | test -z "$ac_c_werror_flag" || |
| 20136 | test ! -s conftest.err |
| 20137 | } && test -s conftest$ac_exeext && |
| 20138 | $as_test_x conftest$ac_exeext; then |
| 20139 | ac_cv_search_tgetent=$ac_res |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 20140 | else |
drh | 613a0fe | 2007-11-23 17:31:17 +0000 | [diff] [blame] | 20141 | echo "$as_me: failed program was:" >&5 |
| 20142 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20143 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20144 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 20145 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20146 | |
| 20147 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 20148 | conftest$ac_exeext |
| 20149 | if test "${ac_cv_search_tgetent+set}" = set; then |
| 20150 | break |
drh | 613a0fe | 2007-11-23 17:31:17 +0000 | [diff] [blame] | 20151 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20152 | done |
| 20153 | if test "${ac_cv_search_tgetent+set}" = set; then |
| 20154 | : |
| 20155 | else |
| 20156 | ac_cv_search_tgetent=no |
| 20157 | fi |
| 20158 | rm conftest.$ac_ext |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 20159 | LIBS=$ac_func_search_save_LIBS |
| 20160 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20161 | { echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 |
| 20162 | echo "${ECHO_T}$ac_cv_search_tgetent" >&6; } |
| 20163 | ac_res=$ac_cv_search_tgetent |
| 20164 | if test "$ac_res" != no; then |
| 20165 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 20166 | term_LIBS="$LIBS" |
| 20167 | else |
| 20168 | term_LIBS="" |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 20169 | fi |
| 20170 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20171 | { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 |
| 20172 | echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; } |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 20173 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
| 20174 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20175 | else |
| 20176 | ac_check_lib_save_LIBS=$LIBS |
| 20177 | LIBS="-lreadline $LIBS" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20178 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20179 | /* confdefs.h. */ |
| 20180 | _ACEOF |
| 20181 | cat confdefs.h >>conftest.$ac_ext |
| 20182 | cat >>conftest.$ac_ext <<_ACEOF |
| 20183 | /* end confdefs.h. */ |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20184 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20185 | /* Override any GCC internal prototype to avoid an error. |
| 20186 | Use char because int might match the return type of a GCC |
| 20187 | builtin and then its argument prototype would still apply. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20188 | #ifdef __cplusplus |
| 20189 | extern "C" |
| 20190 | #endif |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20191 | char readline (); |
| 20192 | int |
| 20193 | main () |
| 20194 | { |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20195 | return readline (); |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20196 | ; |
| 20197 | return 0; |
| 20198 | } |
| 20199 | _ACEOF |
| 20200 | rm -f conftest.$ac_objext conftest$ac_exeext |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20201 | if { (ac_try="$ac_link" |
| 20202 | case "(($ac_try" in |
| 20203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20204 | *) ac_try_echo=$ac_try;; |
| 20205 | esac |
| 20206 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20207 | (eval "$ac_link") 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20208 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20209 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20210 | rm -f conftest.er1 |
| 20211 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20213 | (exit $ac_status); } && { |
| 20214 | test -z "$ac_c_werror_flag" || |
| 20215 | test ! -s conftest.err |
| 20216 | } && test -s conftest$ac_exeext && |
| 20217 | $as_test_x conftest$ac_exeext; then |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 20218 | ac_cv_lib_readline_readline=yes |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20219 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20220 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20221 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20222 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20223 | ac_cv_lib_readline_readline=no |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20224 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20225 | |
| 20226 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20227 | conftest$ac_exeext conftest.$ac_ext |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 20228 | LIBS=$ac_check_lib_save_LIBS |
| 20229 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20230 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
| 20231 | echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; } |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 20232 | if test $ac_cv_lib_readline_readline = yes; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 20233 | TARGET_READLINE_LIBS="-lreadline" |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 20234 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 20235 | found="no" |
| 20236 | fi |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 20237 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 20238 | TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS" |
| 20239 | LIBS="$save_LIBS" |
| 20240 | else |
| 20241 | TARGET_READLINE_LIBS="$with_readline_lib" |
| 20242 | fi |
| 20243 | |
| 20244 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20245 | # Check whether --with-readline-inc was given. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 20246 | if test "${with_readline_inc+set}" = set; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20247 | withval=$with_readline_inc; with_readline_inc=$withval |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 20248 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 20249 | with_readline_inc="auto" |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20250 | fi |
| 20251 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 20252 | if test "x$with_readline_inc" = xauto; then |
| 20253 | if test "${ac_cv_header_readline_h+set}" = set; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20254 | { echo "$as_me:$LINENO: checking for readline.h" >&5 |
| 20255 | echo $ECHO_N "checking for readline.h... $ECHO_C" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20256 | if test "${ac_cv_header_readline_h+set}" = set; then |
| 20257 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20258 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20259 | { echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5 |
| 20260 | echo "${ECHO_T}$ac_cv_header_readline_h" >&6; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20261 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20262 | # Is the header compilable? |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20263 | { echo "$as_me:$LINENO: checking readline.h usability" >&5 |
| 20264 | echo $ECHO_N "checking readline.h usability... $ECHO_C" >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20265 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20266 | /* confdefs.h. */ |
| 20267 | _ACEOF |
| 20268 | cat confdefs.h >>conftest.$ac_ext |
| 20269 | cat >>conftest.$ac_ext <<_ACEOF |
| 20270 | /* end confdefs.h. */ |
| 20271 | $ac_includes_default |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20272 | #include <readline.h> |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20273 | _ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20274 | rm -f conftest.$ac_objext |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20275 | if { (ac_try="$ac_compile" |
| 20276 | case "(($ac_try" in |
| 20277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20278 | *) ac_try_echo=$ac_try;; |
| 20279 | esac |
| 20280 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20281 | (eval "$ac_compile") 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20282 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20283 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20284 | rm -f conftest.er1 |
| 20285 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20287 | (exit $ac_status); } && { |
| 20288 | test -z "$ac_c_werror_flag" || |
| 20289 | test ! -s conftest.err |
| 20290 | } && test -s conftest.$ac_objext; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20291 | ac_header_compiler=yes |
| 20292 | else |
| 20293 | echo "$as_me: failed program was:" >&5 |
| 20294 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20295 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20296 | ac_header_compiler=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20297 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20298 | |
| 20299 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20300 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 20301 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20302 | |
| 20303 | # Is the header present? |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20304 | { echo "$as_me:$LINENO: checking readline.h presence" >&5 |
| 20305 | echo $ECHO_N "checking readline.h presence... $ECHO_C" >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20306 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20307 | /* confdefs.h. */ |
| 20308 | _ACEOF |
| 20309 | cat confdefs.h >>conftest.$ac_ext |
| 20310 | cat >>conftest.$ac_ext <<_ACEOF |
| 20311 | /* end confdefs.h. */ |
| 20312 | #include <readline.h> |
| 20313 | _ACEOF |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20314 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 20315 | case "(($ac_try" in |
| 20316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20317 | *) ac_try_echo=$ac_try;; |
| 20318 | esac |
| 20319 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20320 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20321 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20322 | grep -v '^ *+' conftest.er1 >conftest.err |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20323 | rm -f conftest.er1 |
| 20324 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20326 | (exit $ac_status); } >/dev/null && { |
| 20327 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 20328 | test ! -s conftest.err |
| 20329 | }; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20330 | ac_header_preproc=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20331 | else |
| 20332 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20333 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20334 | |
| 20335 | ac_header_preproc=no |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20336 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20337 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20338 | rm -f conftest.err conftest.$ac_ext |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20339 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 20340 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20341 | |
| 20342 | # So? What about this header? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20343 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 20344 | yes:no: ) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20345 | { echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 20346 | echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20347 | { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the compiler's result" >&5 |
| 20348 | echo "$as_me: WARNING: readline.h: proceeding with the compiler's result" >&2;} |
| 20349 | ac_header_preproc=yes |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20350 | ;; |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20351 | no:yes:* ) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20352 | { echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5 |
| 20353 | echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;} |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20354 | { echo "$as_me:$LINENO: WARNING: readline.h: check for missing prerequisite headers?" >&5 |
| 20355 | echo "$as_me: WARNING: readline.h: check for missing prerequisite headers?" >&2;} |
| 20356 | { echo "$as_me:$LINENO: WARNING: readline.h: see the Autoconf documentation" >&5 |
| 20357 | echo "$as_me: WARNING: readline.h: see the Autoconf documentation" >&2;} |
| 20358 | { echo "$as_me:$LINENO: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 20359 | echo "$as_me: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&2;} |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20360 | { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5 |
| 20361 | echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;} |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20362 | { echo "$as_me:$LINENO: WARNING: readline.h: in the future, the compiler will take precedence" >&5 |
| 20363 | echo "$as_me: WARNING: readline.h: in the future, the compiler will take precedence" >&2;} |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20364 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20365 | ;; |
| 20366 | esac |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20367 | { echo "$as_me:$LINENO: checking for readline.h" >&5 |
| 20368 | echo $ECHO_N "checking for readline.h... $ECHO_C" >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20369 | if test "${ac_cv_header_readline_h+set}" = set; then |
| 20370 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20371 | else |
| 20372 | ac_cv_header_readline_h=$ac_header_preproc |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20373 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20374 | { echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5 |
| 20375 | echo "${ECHO_T}$ac_cv_header_readline_h" >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20376 | |
| 20377 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20378 | if test $ac_cv_header_readline_h = yes; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 20379 | found="yes" |
| 20380 | else |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20381 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 20382 | found="no" |
| 20383 | if test "$cross_compiling" != yes; then |
| 20384 | for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do |
| 20385 | for subdir in include include/readline; do |
| 20386 | as_ac_File=`echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh` |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20387 | { echo "$as_me:$LINENO: checking for $dir/$subdir/readline.h" >&5 |
| 20388 | echo $ECHO_N "checking for $dir/$subdir/readline.h... $ECHO_C" >&6; } |
| 20389 | if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20390 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 20391 | else |
| 20392 | test "$cross_compiling" = yes && |
| 20393 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
| 20394 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
| 20395 | { (exit 1); exit 1; }; } |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 20396 | if test -r "$dir/$subdir/readline.h"; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20397 | eval "$as_ac_File=yes" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20398 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20399 | eval "$as_ac_File=no" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20400 | fi |
| 20401 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20402 | ac_res=`eval echo '${'$as_ac_File'}'` |
| 20403 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20404 | echo "${ECHO_T}$ac_res" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20405 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20406 | found=yes |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20407 | fi |
| 20408 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 20409 | if test "$found" = "yes"; then |
| 20410 | TARGET_READLINE_INC="-I$dir/$subdir" |
| 20411 | break |
| 20412 | fi |
| 20413 | done |
| 20414 | test "$found" = "yes" && break |
| 20415 | done |
| 20416 | fi |
| 20417 | |
| 20418 | fi |
| 20419 | |
| 20420 | |
| 20421 | else |
| 20422 | TARGET_READLINE_INC="$with_readline_inc" |
| 20423 | fi |
| 20424 | |
| 20425 | if test x"$found" = xno; then |
| 20426 | TARGET_READLINE_LIBS="" |
| 20427 | TARGET_READLINE_INC="" |
| 20428 | TARGET_HAVE_READLINE=0 |
| 20429 | else |
| 20430 | TARGET_HAVE_READLINE=1 |
| 20431 | fi |
| 20432 | fi |
| 20433 | |
| 20434 | |
| 20435 | |
| 20436 | |
| 20437 | |
| 20438 | ########## |
| 20439 | # Figure out what C libraries are required to compile programs |
| 20440 | # that use "fdatasync()" function. |
| 20441 | # |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20442 | { echo "$as_me:$LINENO: checking for library containing fdatasync" >&5 |
| 20443 | echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6; } |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 20444 | if test "${ac_cv_search_fdatasync+set}" = set; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 20446 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 20447 | ac_func_search_save_LIBS=$LIBS |
| 20448 | cat >conftest.$ac_ext <<_ACEOF |
| 20449 | /* confdefs.h. */ |
| 20450 | _ACEOF |
| 20451 | cat confdefs.h >>conftest.$ac_ext |
| 20452 | cat >>conftest.$ac_ext <<_ACEOF |
| 20453 | /* end confdefs.h. */ |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20454 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20455 | /* Override any GCC internal prototype to avoid an error. |
| 20456 | Use char because int might match the return type of a GCC |
| 20457 | builtin and then its argument prototype would still apply. */ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 20458 | #ifdef __cplusplus |
| 20459 | extern "C" |
| 20460 | #endif |
| 20461 | char fdatasync (); |
| 20462 | int |
| 20463 | main () |
| 20464 | { |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20465 | return fdatasync (); |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 20466 | ; |
| 20467 | return 0; |
| 20468 | } |
| 20469 | _ACEOF |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20470 | for ac_lib in '' rt; do |
| 20471 | if test -z "$ac_lib"; then |
| 20472 | ac_res="none required" |
| 20473 | else |
| 20474 | ac_res=-l$ac_lib |
drh | 613a0fe | 2007-11-23 17:31:17 +0000 | [diff] [blame] | 20475 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20476 | fi |
| 20477 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20478 | if { (ac_try="$ac_link" |
| 20479 | case "(($ac_try" in |
| 20480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20481 | *) ac_try_echo=$ac_try;; |
| 20482 | esac |
| 20483 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20484 | (eval "$ac_link") 2>conftest.er1 |
drh | 613a0fe | 2007-11-23 17:31:17 +0000 | [diff] [blame] | 20485 | ac_status=$? |
| 20486 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20487 | rm -f conftest.er1 |
| 20488 | cat conftest.err >&5 |
| 20489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20490 | (exit $ac_status); } && { |
| 20491 | test -z "$ac_c_werror_flag" || |
| 20492 | test ! -s conftest.err |
| 20493 | } && test -s conftest$ac_exeext && |
| 20494 | $as_test_x conftest$ac_exeext; then |
| 20495 | ac_cv_search_fdatasync=$ac_res |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 20496 | else |
drh | 613a0fe | 2007-11-23 17:31:17 +0000 | [diff] [blame] | 20497 | echo "$as_me: failed program was:" >&5 |
| 20498 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20499 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20500 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 20501 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20502 | |
| 20503 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 20504 | conftest$ac_exeext |
| 20505 | if test "${ac_cv_search_fdatasync+set}" = set; then |
| 20506 | break |
drh | 613a0fe | 2007-11-23 17:31:17 +0000 | [diff] [blame] | 20507 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20508 | done |
| 20509 | if test "${ac_cv_search_fdatasync+set}" = set; then |
| 20510 | : |
| 20511 | else |
| 20512 | ac_cv_search_fdatasync=no |
| 20513 | fi |
| 20514 | rm conftest.$ac_ext |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 20515 | LIBS=$ac_func_search_save_LIBS |
| 20516 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20517 | { echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5 |
| 20518 | echo "${ECHO_T}$ac_cv_search_fdatasync" >&6; } |
| 20519 | ac_res=$ac_cv_search_fdatasync |
| 20520 | if test "$ac_res" != no; then |
| 20521 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20522 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 20523 | fi |
| 20524 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20525 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20526 | ######### |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 20527 | # check for debug enabled |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20528 | # Check whether --enable-debug was given. |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 20529 | if test "${enable_debug+set}" = set; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20530 | enableval=$enable_debug; use_debug=$enableval |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 20531 | else |
| 20532 | use_debug=no |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20533 | fi |
| 20534 | |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 20535 | if test "${use_debug}" = "yes" ; then |
drh | eae3a0d | 2006-03-03 20:37:52 +0000 | [diff] [blame] | 20536 | TARGET_DEBUG="-DSQLITE_DEBUG=1" |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 20537 | else |
| 20538 | TARGET_DEBUG="-DNDEBUG" |
| 20539 | fi |
| 20540 | |
| 20541 | |
| 20542 | ######### |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20543 | # See whether we should use the amalgamation to build |
| 20544 | # Check whether --enable-amalgamation was given. |
| 20545 | if test "${enable_amalgamation+set}" = set; then |
| 20546 | enableval=$enable_amalgamation; use_amalgamation=$enableval |
| 20547 | else |
| 20548 | use_amalgamation=yes |
| 20549 | fi |
| 20550 | |
| 20551 | if test "${use_amalgamation}" = "yes" ; then |
| 20552 | USE_AMALGAMATION=1 |
| 20553 | else |
| 20554 | USE_AMALGAMATION=0 |
| 20555 | fi |
| 20556 | |
| 20557 | |
| 20558 | ######### |
mlcreech | a4edab0 | 2008-03-06 04:14:17 +0000 | [diff] [blame] | 20559 | # See whether we should allow loadable extensions |
| 20560 | # Check whether --enable-load-extension was given. |
| 20561 | if test "${enable_load_extension+set}" = set; then |
| 20562 | enableval=$enable_load_extension; use_loadextension=$enableval |
| 20563 | else |
| 20564 | use_loadextension=no |
| 20565 | fi |
| 20566 | |
| 20567 | if test "${use_loadextension}" = "yes" ; then |
| 20568 | LOADEXTENSION_FLAGS="" |
| 20569 | else |
| 20570 | LOADEXTENSION_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1" |
| 20571 | fi |
| 20572 | |
| 20573 | |
| 20574 | ######### |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 20575 | # Figure out whether or not we have a "usleep()" function. |
| 20576 | # |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20577 | { echo "$as_me:$LINENO: checking for usleep" >&5 |
| 20578 | echo $ECHO_N "checking for usleep... $ECHO_C" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20579 | if test "${ac_cv_func_usleep+set}" = set; then |
| 20580 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 20581 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20582 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20583 | /* confdefs.h. */ |
| 20584 | _ACEOF |
| 20585 | cat confdefs.h >>conftest.$ac_ext |
| 20586 | cat >>conftest.$ac_ext <<_ACEOF |
| 20587 | /* end confdefs.h. */ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20588 | /* Define usleep to an innocuous variant, in case <limits.h> declares usleep. |
| 20589 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20590 | #define usleep innocuous_usleep |
| 20591 | |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 20592 | /* System header to define __stub macros and hopefully few prototypes, |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20593 | which can conflict with char usleep (); below. |
| 20594 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 20595 | <limits.h> exists even on freestanding compilers. */ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20596 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20597 | #ifdef __STDC__ |
| 20598 | # include <limits.h> |
| 20599 | #else |
| 20600 | # include <assert.h> |
| 20601 | #endif |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20602 | |
| 20603 | #undef usleep |
| 20604 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20605 | /* Override any GCC internal prototype to avoid an error. |
| 20606 | Use char because int might match the return type of a GCC |
| 20607 | builtin and then its argument prototype would still apply. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20608 | #ifdef __cplusplus |
| 20609 | extern "C" |
| 20610 | #endif |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20611 | char usleep (); |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 20612 | /* The GNU C library defines this for functions which it implements |
| 20613 | to always fail with ENOSYS. Some functions are actually named |
| 20614 | something starting with __ and the normal name is an alias. */ |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20615 | #if defined __stub_usleep || defined __stub___usleep |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 20616 | choke me |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 20617 | #endif |
| 20618 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20619 | int |
| 20620 | main () |
| 20621 | { |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20622 | return usleep (); |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20623 | ; |
| 20624 | return 0; |
| 20625 | } |
| 20626 | _ACEOF |
| 20627 | rm -f conftest.$ac_objext conftest$ac_exeext |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20628 | if { (ac_try="$ac_link" |
| 20629 | case "(($ac_try" in |
| 20630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20631 | *) ac_try_echo=$ac_try;; |
| 20632 | esac |
| 20633 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20634 | (eval "$ac_link") 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20635 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20636 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20637 | rm -f conftest.er1 |
| 20638 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20640 | (exit $ac_status); } && { |
| 20641 | test -z "$ac_c_werror_flag" || |
| 20642 | test ! -s conftest.err |
| 20643 | } && test -s conftest$ac_exeext && |
| 20644 | $as_test_x conftest$ac_exeext; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20645 | ac_cv_func_usleep=yes |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 20646 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20647 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20648 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20649 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20650 | ac_cv_func_usleep=no |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 20651 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20652 | |
| 20653 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20654 | conftest$ac_exeext conftest.$ac_ext |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 20655 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20656 | { echo "$as_me:$LINENO: result: $ac_cv_func_usleep" >&5 |
| 20657 | echo "${ECHO_T}$ac_cv_func_usleep" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20658 | if test $ac_cv_func_usleep = yes; then |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 20659 | TARGET_CFLAGS="$TARGET_CFLAGS -DHAVE_USLEEP=1" |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 20660 | fi |
| 20661 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20662 | |
drh | af6edf5 | 2005-10-04 18:38:49 +0000 | [diff] [blame] | 20663 | #-------------------------------------------------------------------- |
| 20664 | # Redefine fdatasync as fsync on systems that lack fdatasync |
| 20665 | #-------------------------------------------------------------------- |
| 20666 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20667 | { echo "$as_me:$LINENO: checking for fdatasync" >&5 |
| 20668 | echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; } |
drh | af6edf5 | 2005-10-04 18:38:49 +0000 | [diff] [blame] | 20669 | if test "${ac_cv_func_fdatasync+set}" = set; then |
| 20670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20671 | else |
| 20672 | cat >conftest.$ac_ext <<_ACEOF |
| 20673 | /* confdefs.h. */ |
| 20674 | _ACEOF |
| 20675 | cat confdefs.h >>conftest.$ac_ext |
| 20676 | cat >>conftest.$ac_ext <<_ACEOF |
| 20677 | /* end confdefs.h. */ |
| 20678 | /* Define fdatasync to an innocuous variant, in case <limits.h> declares fdatasync. |
| 20679 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20680 | #define fdatasync innocuous_fdatasync |
| 20681 | |
| 20682 | /* System header to define __stub macros and hopefully few prototypes, |
| 20683 | which can conflict with char fdatasync (); below. |
| 20684 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 20685 | <limits.h> exists even on freestanding compilers. */ |
| 20686 | |
| 20687 | #ifdef __STDC__ |
| 20688 | # include <limits.h> |
| 20689 | #else |
| 20690 | # include <assert.h> |
| 20691 | #endif |
| 20692 | |
| 20693 | #undef fdatasync |
| 20694 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20695 | /* Override any GCC internal prototype to avoid an error. |
| 20696 | Use char because int might match the return type of a GCC |
| 20697 | builtin and then its argument prototype would still apply. */ |
drh | af6edf5 | 2005-10-04 18:38:49 +0000 | [diff] [blame] | 20698 | #ifdef __cplusplus |
| 20699 | extern "C" |
drh | af6edf5 | 2005-10-04 18:38:49 +0000 | [diff] [blame] | 20700 | #endif |
drh | af6edf5 | 2005-10-04 18:38:49 +0000 | [diff] [blame] | 20701 | char fdatasync (); |
| 20702 | /* The GNU C library defines this for functions which it implements |
| 20703 | to always fail with ENOSYS. Some functions are actually named |
| 20704 | something starting with __ and the normal name is an alias. */ |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20705 | #if defined __stub_fdatasync || defined __stub___fdatasync |
drh | af6edf5 | 2005-10-04 18:38:49 +0000 | [diff] [blame] | 20706 | choke me |
drh | af6edf5 | 2005-10-04 18:38:49 +0000 | [diff] [blame] | 20707 | #endif |
| 20708 | |
| 20709 | int |
| 20710 | main () |
| 20711 | { |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20712 | return fdatasync (); |
drh | af6edf5 | 2005-10-04 18:38:49 +0000 | [diff] [blame] | 20713 | ; |
| 20714 | return 0; |
| 20715 | } |
| 20716 | _ACEOF |
| 20717 | rm -f conftest.$ac_objext conftest$ac_exeext |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20718 | if { (ac_try="$ac_link" |
| 20719 | case "(($ac_try" in |
| 20720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20721 | *) ac_try_echo=$ac_try;; |
| 20722 | esac |
| 20723 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20724 | (eval "$ac_link") 2>conftest.er1 |
drh | af6edf5 | 2005-10-04 18:38:49 +0000 | [diff] [blame] | 20725 | ac_status=$? |
| 20726 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20727 | rm -f conftest.er1 |
| 20728 | cat conftest.err >&5 |
| 20729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20730 | (exit $ac_status); } && { |
| 20731 | test -z "$ac_c_werror_flag" || |
| 20732 | test ! -s conftest.err |
| 20733 | } && test -s conftest$ac_exeext && |
| 20734 | $as_test_x conftest$ac_exeext; then |
drh | af6edf5 | 2005-10-04 18:38:49 +0000 | [diff] [blame] | 20735 | ac_cv_func_fdatasync=yes |
| 20736 | else |
| 20737 | echo "$as_me: failed program was:" >&5 |
| 20738 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20739 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20740 | ac_cv_func_fdatasync=no |
drh | af6edf5 | 2005-10-04 18:38:49 +0000 | [diff] [blame] | 20741 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20742 | |
| 20743 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
drh | af6edf5 | 2005-10-04 18:38:49 +0000 | [diff] [blame] | 20744 | conftest$ac_exeext conftest.$ac_ext |
| 20745 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20746 | { echo "$as_me:$LINENO: result: $ac_cv_func_fdatasync" >&5 |
| 20747 | echo "${ECHO_T}$ac_cv_func_fdatasync" >&6; } |
drh | af6edf5 | 2005-10-04 18:38:49 +0000 | [diff] [blame] | 20748 | if test $ac_cv_func_fdatasync = yes; then |
drh | f2f2391 | 2005-10-05 10:29:36 +0000 | [diff] [blame] | 20749 | TARGET_CFLAGS="$TARGET_CFLAGS -DHAVE_FDATASYNC=1" |
drh | af6edf5 | 2005-10-04 18:38:49 +0000 | [diff] [blame] | 20750 | fi |
| 20751 | |
| 20752 | |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 20753 | ######### |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame^] | 20754 | # Output the config header |
| 20755 | ac_config_headers="$ac_config_headers src/config.h" |
| 20756 | |
| 20757 | |
| 20758 | ######### |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20759 | # Generate the output files. |
| 20760 | # |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20761 | ac_config_files="$ac_config_files Makefile sqlite3.pc" |
| 20762 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20763 | cat >confcache <<\_ACEOF |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20764 | # This file is a shell script that caches the results of configure |
| 20765 | # tests run on this system so they can be shared between configure |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20766 | # scripts and configure runs, see configure's option --config-cache. |
| 20767 | # It is not useful on other systems. If it contains results you don't |
| 20768 | # want to keep, you may remove or edit it. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20769 | # |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20770 | # config.status only pays attention to the cache file if you give it |
| 20771 | # the --recheck option to rerun configure. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20772 | # |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20773 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20774 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 20775 | # following values. |
| 20776 | |
| 20777 | _ACEOF |
| 20778 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20779 | # The following way of writing the cache mishandles newlines in values, |
| 20780 | # but we know of no workaround that is simple, portable, and efficient. |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20781 | # So, we kill variables containing newlines. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20782 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 20783 | # and sets the high bit in the cache file unless we assign to the vars. |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20784 | ( |
| 20785 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 20786 | eval ac_val=\$$ac_var |
| 20787 | case $ac_val in #( |
| 20788 | *${as_nl}*) |
| 20789 | case $ac_var in #( |
| 20790 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 20791 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 20792 | esac |
| 20793 | case $ac_var in #( |
| 20794 | _ | IFS | as_nl) ;; #( |
| 20795 | *) $as_unset $ac_var ;; |
| 20796 | esac ;; |
| 20797 | esac |
| 20798 | done |
| 20799 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20800 | (set) 2>&1 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20801 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 20802 | *${as_nl}ac_space=\ *) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20803 | # `set' does not quote correctly, so add quotes (double-quote |
| 20804 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 20805 | sed -n \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20806 | "s/'/'\\\\''/g; |
| 20807 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20808 | ;; #( |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20809 | *) |
| 20810 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20811 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20812 | ;; |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20813 | esac | |
| 20814 | sort |
| 20815 | ) | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20816 | sed ' |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20817 | /^ac_cv_env_/b end |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20818 | t clear |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20819 | :clear |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20820 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 20821 | t end |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20822 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 20823 | :end' >>confcache |
| 20824 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 20825 | if test -w "$cache_file"; then |
| 20826 | test "x$cache_file" != "x/dev/null" && |
| 20827 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 20828 | echo "$as_me: updating cache $cache_file" >&6;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20829 | cat confcache >$cache_file |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20830 | else |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20831 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 20832 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20833 | fi |
| 20834 | fi |
| 20835 | rm -f confcache |
| 20836 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20837 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 20838 | # Let make expand exec_prefix. |
| 20839 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 20840 | |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame^] | 20841 | DEFS=-DHAVE_CONFIG_H |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20842 | |
| 20843 | ac_libobjs= |
| 20844 | ac_ltlibobjs= |
| 20845 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 20846 | # 1. Remove the extension, and $U if already installed. |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20847 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 20848 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 20849 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 20850 | # will be set to the directory where LIBOBJS objects are built. |
| 20851 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 20852 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20853 | done |
| 20854 | LIBOBJS=$ac_libobjs |
| 20855 | |
| 20856 | LTLIBOBJS=$ac_ltlibobjs |
| 20857 | |
| 20858 | |
| 20859 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20860 | : ${CONFIG_STATUS=./config.status} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20861 | ac_clean_files_save=$ac_clean_files |
| 20862 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20863 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20864 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 20865 | cat >$CONFIG_STATUS <<_ACEOF |
| 20866 | #! $SHELL |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20867 | # Generated by $as_me. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20868 | # Run this file to recreate the current configuration. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20869 | # Compiler output produced by configure, useful for debugging |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20870 | # configure, is in config.log if it exists. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20871 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20872 | debug=false |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20873 | ac_cs_recheck=false |
| 20874 | ac_cs_silent=false |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20875 | SHELL=\${CONFIG_SHELL-$SHELL} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20876 | _ACEOF |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20877 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20878 | cat >>$CONFIG_STATUS <<\_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20879 | ## --------------------- ## |
| 20880 | ## M4sh Initialization. ## |
| 20881 | ## --------------------- ## |
| 20882 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20883 | # Be more Bourne compatible |
| 20884 | DUALCASE=1; export DUALCASE # for MKS sh |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20885 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 20886 | emulate sh |
| 20887 | NULLCMD=: |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20888 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 20889 | # is contrary to our usage. Disable this feature. |
| 20890 | alias -g '${1+"$@"}'='"$@"' |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20891 | setopt NO_GLOB_SUBST |
drh | 613a0fe | 2007-11-23 17:31:17 +0000 | [diff] [blame] | 20892 | else |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20893 | case `(set -o) 2>/dev/null` in |
| 20894 | *posix*) set -o posix ;; |
| 20895 | esac |
| 20896 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20897 | fi |
| 20898 | |
| 20899 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20900 | |
| 20901 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20902 | # PATH needs CR |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20903 | # Avoid depending upon Character Ranges. |
| 20904 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 20905 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 20906 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 20907 | as_cr_digits='0123456789' |
| 20908 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 20909 | |
| 20910 | # The user is always right. |
| 20911 | if test "${PATH_SEPARATOR+set}" != set; then |
| 20912 | echo "#! /bin/sh" >conf$$.sh |
| 20913 | echo "exit 0" >>conf$$.sh |
| 20914 | chmod +x conf$$.sh |
| 20915 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 20916 | PATH_SEPARATOR=';' |
| 20917 | else |
| 20918 | PATH_SEPARATOR=: |
| 20919 | fi |
| 20920 | rm -f conf$$.sh |
| 20921 | fi |
| 20922 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20923 | # Support unset when possible. |
| 20924 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 20925 | as_unset=unset |
| 20926 | else |
| 20927 | as_unset=false |
| 20928 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20929 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20930 | |
| 20931 | # IFS |
| 20932 | # We need space, tab and new line, in precisely that order. Quoting is |
| 20933 | # there to prevent editors from complaining about space-tab. |
| 20934 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 20935 | # splitting by setting IFS to empty value.) |
| 20936 | as_nl=' |
| 20937 | ' |
| 20938 | IFS=" "" $as_nl" |
| 20939 | |
| 20940 | # Find who we are. Look in the path if we contain no directory separator. |
| 20941 | case $0 in |
| 20942 | *[\\/]* ) as_myself=$0 ;; |
| 20943 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20944 | for as_dir in $PATH |
| 20945 | do |
| 20946 | IFS=$as_save_IFS |
| 20947 | test -z "$as_dir" && as_dir=. |
| 20948 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 20949 | done |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20950 | IFS=$as_save_IFS |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20951 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20952 | ;; |
| 20953 | esac |
| 20954 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 20955 | # in which case we are not to be found in the path. |
| 20956 | if test "x$as_myself" = x; then |
| 20957 | as_myself=$0 |
| 20958 | fi |
| 20959 | if test ! -f "$as_myself"; then |
| 20960 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 20961 | { (exit 1); exit 1; } |
| 20962 | fi |
| 20963 | |
| 20964 | # Work around bugs in pre-3.0 UWIN ksh. |
| 20965 | for as_var in ENV MAIL MAILPATH |
| 20966 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 20967 | done |
| 20968 | PS1='$ ' |
| 20969 | PS2='> ' |
| 20970 | PS4='+ ' |
| 20971 | |
| 20972 | # NLS nuisances. |
| 20973 | for as_var in \ |
| 20974 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 20975 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 20976 | LC_TELEPHONE LC_TIME |
drh | 613a0fe | 2007-11-23 17:31:17 +0000 | [diff] [blame] | 20977 | do |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 20978 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 20979 | eval $as_var=C; export $as_var |
| 20980 | else |
| 20981 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 20982 | fi |
| 20983 | done |
| 20984 | |
| 20985 | # Required to use basename. |
| 20986 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 20987 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 20988 | as_expr=expr |
| 20989 | else |
| 20990 | as_expr=false |
| 20991 | fi |
| 20992 | |
| 20993 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 20994 | as_basename=basename |
| 20995 | else |
| 20996 | as_basename=false |
| 20997 | fi |
| 20998 | |
| 20999 | |
| 21000 | # Name of the executable. |
| 21001 | as_me=`$as_basename -- "$0" || |
| 21002 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 21003 | X"$0" : 'X\(//\)$' \| \ |
| 21004 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 21005 | echo X/"$0" | |
| 21006 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 21007 | s//\1/ |
| 21008 | q |
| 21009 | } |
| 21010 | /^X\/\(\/\/\)$/{ |
| 21011 | s//\1/ |
| 21012 | q |
| 21013 | } |
| 21014 | /^X\/\(\/\).*/{ |
| 21015 | s//\1/ |
| 21016 | q |
| 21017 | } |
| 21018 | s/.*/./; q'` |
| 21019 | |
| 21020 | # CDPATH. |
| 21021 | $as_unset CDPATH |
| 21022 | |
| 21023 | |
| 21024 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21025 | as_lineno_1=$LINENO |
| 21026 | as_lineno_2=$LINENO |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21027 | test "x$as_lineno_1" != "x$as_lineno_2" && |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21028 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21029 | |
| 21030 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 21031 | # uniformly replaced by the line number. The first 'sed' inserts a |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21032 | # line-number line after each line using $LINENO; the second 'sed' |
| 21033 | # does the real work. The second script uses 'N' to pair each |
| 21034 | # line-number line with the line containing $LINENO, and appends |
| 21035 | # trailing '-' during substitution so that $LINENO is not a special |
| 21036 | # case at line end. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21037 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21038 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 21039 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 21040 | sed -n ' |
| 21041 | p |
| 21042 | /[$]LINENO/= |
| 21043 | ' <$as_myself | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21044 | sed ' |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21045 | s/[$]LINENO.*/&-/ |
| 21046 | t lineno |
| 21047 | b |
| 21048 | :lineno |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21049 | N |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21050 | :loop |
| 21051 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21052 | t loop |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21053 | s/-\n.*// |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21054 | ' >$as_me.lineno && |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21055 | chmod +x "$as_me.lineno" || |
| 21056 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21057 | { (exit 1); exit 1; }; } |
| 21058 | |
| 21059 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 21060 | # (the dirname of $[0] is not the place where we might find the |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21061 | # original and so on. Autoconf is especially sensitive to this). |
| 21062 | . "./$as_me.lineno" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21063 | # Exit status is that of the last command. |
| 21064 | exit |
| 21065 | } |
| 21066 | |
| 21067 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21068 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 21069 | as_dirname=dirname |
| 21070 | else |
| 21071 | as_dirname=false |
| 21072 | fi |
| 21073 | |
| 21074 | ECHO_C= ECHO_N= ECHO_T= |
| 21075 | case `echo -n x` in |
| 21076 | -n*) |
| 21077 | case `echo 'x\c'` in |
| 21078 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 21079 | *) ECHO_C='\c';; |
| 21080 | esac;; |
| 21081 | *) |
| 21082 | ECHO_N='-n';; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21083 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21084 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21085 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 21086 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21087 | as_expr=expr |
| 21088 | else |
| 21089 | as_expr=false |
| 21090 | fi |
| 21091 | |
| 21092 | rm -f conf$$ conf$$.exe conf$$.file |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21093 | if test -d conf$$.dir; then |
| 21094 | rm -f conf$$.dir/conf$$.file |
| 21095 | else |
| 21096 | rm -f conf$$.dir |
| 21097 | mkdir conf$$.dir |
| 21098 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21099 | echo >conf$$.file |
| 21100 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21101 | as_ln_s='ln -s' |
| 21102 | # ... but there are two gotchas: |
| 21103 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 21104 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 21105 | # In both cases, we have to default to `cp -p'. |
| 21106 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21107 | as_ln_s='cp -p' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21108 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 21109 | as_ln_s=ln |
| 21110 | else |
| 21111 | as_ln_s='cp -p' |
| 21112 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21113 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 21114 | rmdir conf$$.dir 2>/dev/null |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21115 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21116 | if mkdir -p . 2>/dev/null; then |
| 21117 | as_mkdir_p=: |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21118 | else |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 21119 | test -d ./-p && rmdir ./-p |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21120 | as_mkdir_p=false |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21121 | fi |
| 21122 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21123 | if test -x / >/dev/null 2>&1; then |
| 21124 | as_test_x='test -x' |
| 21125 | else |
| 21126 | if ls -dL / >/dev/null 2>&1; then |
| 21127 | as_ls_L_option=L |
| 21128 | else |
| 21129 | as_ls_L_option= |
| 21130 | fi |
| 21131 | as_test_x=' |
| 21132 | eval sh -c '\'' |
| 21133 | if test -d "$1"; then |
| 21134 | test -d "$1/."; |
| 21135 | else |
| 21136 | case $1 in |
| 21137 | -*)set "./$1";; |
| 21138 | esac; |
| 21139 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 21140 | ???[sx]*):;;*)false;;esac;fi |
| 21141 | '\'' sh |
| 21142 | ' |
| 21143 | fi |
| 21144 | as_executable_p=$as_test_x |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21145 | |
| 21146 | # Sed expression to map a string onto a valid CPP name. |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 21147 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21148 | |
| 21149 | # Sed expression to map a string onto a valid variable name. |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 21150 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21151 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21152 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21153 | exec 6>&1 |
| 21154 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21155 | # Save the log message, to keep $[0] and so on meaningful, and to |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21156 | # report actual input values of CONFIG_FILES etc. instead of their |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21157 | # values after options handling. |
| 21158 | ac_log=" |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame^] | 21159 | This file was extended by sqlite $as_me 3.5.6, which was |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21160 | generated by GNU Autoconf 2.61. Invocation command line was |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21161 | |
| 21162 | CONFIG_FILES = $CONFIG_FILES |
| 21163 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 21164 | CONFIG_LINKS = $CONFIG_LINKS |
| 21165 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 21166 | $ $0 $@ |
| 21167 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21168 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 21169 | " |
| 21170 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21171 | _ACEOF |
| 21172 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21173 | cat >>$CONFIG_STATUS <<_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21174 | # Files that config.status was made for. |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21175 | config_files="$ac_config_files" |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame^] | 21176 | config_headers="$ac_config_headers" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21177 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21178 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21179 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21180 | cat >>$CONFIG_STATUS <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21181 | ac_cs_usage="\ |
| 21182 | \`$as_me' instantiates files from templates according to the |
| 21183 | current configuration. |
| 21184 | |
| 21185 | Usage: $0 [OPTIONS] [FILE]... |
| 21186 | |
| 21187 | -h, --help print this help, then exit |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21188 | -V, --version print version number and configuration settings, then exit |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21189 | -q, --quiet do not print progress messages |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21190 | -d, --debug don't remove temporary files |
| 21191 | --recheck update $as_me by reconfiguring in the same conditions |
| 21192 | --file=FILE[:TEMPLATE] |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 21193 | instantiate the configuration file FILE |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame^] | 21194 | --header=FILE[:TEMPLATE] |
| 21195 | instantiate the configuration header FILE |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21196 | |
| 21197 | Configuration files: |
| 21198 | $config_files |
| 21199 | |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame^] | 21200 | Configuration headers: |
| 21201 | $config_headers |
| 21202 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21203 | Report bugs to <bug-autoconf@gnu.org>." |
drh | 613a0fe | 2007-11-23 17:31:17 +0000 | [diff] [blame] | 21204 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21205 | _ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21206 | cat >>$CONFIG_STATUS <<_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21207 | ac_cs_version="\\ |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame^] | 21208 | sqlite config.status 3.5.6 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21209 | configured by $0, generated by GNU Autoconf 2.61, |
| 21210 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 21211 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21212 | Copyright (C) 2006 Free Software Foundation, Inc. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21213 | This config.status script is free software; the Free Software Foundation |
| 21214 | gives unlimited permission to copy, distribute and modify it." |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21215 | |
| 21216 | ac_pwd='$ac_pwd' |
| 21217 | srcdir='$srcdir' |
| 21218 | INSTALL='$INSTALL' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21219 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21220 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21221 | cat >>$CONFIG_STATUS <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21222 | # If no file are specified by the user, then we need to provide default |
| 21223 | # value. By we need to know if files were specified by the user. |
| 21224 | ac_need_defaults=: |
| 21225 | while test $# != 0 |
| 21226 | do |
| 21227 | case $1 in |
| 21228 | --*=*) |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21229 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 21230 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21231 | ac_shift=: |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21232 | ;; |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21233 | *) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21234 | ac_option=$1 |
| 21235 | ac_optarg=$2 |
| 21236 | ac_shift=shift |
| 21237 | ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 21238 | esac |
| 21239 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21240 | case $ac_option in |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21241 | # Handling of the options. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21242 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21243 | ac_cs_recheck=: ;; |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21244 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 21245 | echo "$ac_cs_version"; exit ;; |
| 21246 | --debug | --debu | --deb | --de | --d | -d ) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21247 | debug=: ;; |
| 21248 | --file | --fil | --fi | --f ) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21249 | $ac_shift |
| 21250 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21251 | ac_need_defaults=false;; |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame^] | 21252 | --header | --heade | --head | --hea ) |
| 21253 | $ac_shift |
| 21254 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
| 21255 | ac_need_defaults=false;; |
| 21256 | --he | --h) |
| 21257 | # Conflict between --help and --header |
| 21258 | { echo "$as_me: error: ambiguous option: $1 |
| 21259 | Try \`$0 --help' for more information." >&2 |
| 21260 | { (exit 1); exit 1; }; };; |
| 21261 | --help | --hel | -h ) |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21262 | echo "$ac_cs_usage"; exit ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21263 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 21264 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 21265 | ac_cs_silent=: ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 21266 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21267 | # This is an error. |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21268 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 21269 | Try \`$0 --help' for more information." >&2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21270 | { (exit 1); exit 1; }; } ;; |
| 21271 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21272 | *) ac_config_targets="$ac_config_targets $1" |
| 21273 | ac_need_defaults=false ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21274 | |
| 21275 | esac |
| 21276 | shift |
| 21277 | done |
| 21278 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21279 | ac_configure_extra_args= |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21280 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21281 | if $ac_cs_silent; then |
| 21282 | exec 6>/dev/null |
| 21283 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 21284 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21285 | |
| 21286 | _ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21287 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21288 | if \$ac_cs_recheck; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21289 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 21290 | CONFIG_SHELL=$SHELL |
| 21291 | export CONFIG_SHELL |
| 21292 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21293 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21294 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21295 | _ACEOF |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21296 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21297 | exec 5>>config.log |
| 21298 | { |
| 21299 | echo |
| 21300 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 21301 | ## Running $as_me. ## |
| 21302 | _ASBOX |
| 21303 | echo "$ac_log" |
| 21304 | } >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21305 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21306 | _ACEOF |
| 21307 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21308 | _ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21309 | |
| 21310 | cat >>$CONFIG_STATUS <<\_ACEOF |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21311 | |
| 21312 | # Handling of arguments. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21313 | for ac_config_target in $ac_config_targets |
| 21314 | do |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21315 | case $ac_config_target in |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame^] | 21316 | "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21317 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 21318 | "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;; |
| 21319 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21320 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21321 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 21322 | { (exit 1); exit 1; }; };; |
| 21323 | esac |
| 21324 | done |
| 21325 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21326 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21327 | # If the user did not use the arguments to specify the items to instantiate, |
| 21328 | # then the envvar interface is used. Set only those that are not. |
| 21329 | # We use the long form for the default assignment because of an extremely |
| 21330 | # bizarre bug on SunOS 4.1.3. |
| 21331 | if $ac_need_defaults; then |
| 21332 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame^] | 21333 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21334 | fi |
| 21335 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21336 | # Have a temporary directory for convenience. Make it in the build tree |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21337 | # simply because there is no reason against having it here, and in addition, |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21338 | # creating and moving files from /tmp can sometimes cause problems. |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21339 | # Hook for its removal unless debugging. |
| 21340 | # Note that there is a small window in which the directory will not be cleaned: |
| 21341 | # after its creation but before its name has been assigned to `$tmp'. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21342 | $debug || |
| 21343 | { |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21344 | tmp= |
| 21345 | trap 'exit_status=$? |
| 21346 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 21347 | ' 0 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21348 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 21349 | } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21350 | # Create a (secure) tmp directory for tmp files. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21351 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21352 | { |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21353 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21354 | test -n "$tmp" && test -d "$tmp" |
| 21355 | } || |
| 21356 | { |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21357 | tmp=./conf$$-$RANDOM |
| 21358 | (umask 077 && mkdir "$tmp") |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21359 | } || |
| 21360 | { |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21361 | echo "$me: cannot create a temporary directory in ." >&2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21362 | { (exit 1); exit 1; } |
| 21363 | } |
| 21364 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21365 | # |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21366 | # Set up the sed scripts for CONFIG_FILES section. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21367 | # |
| 21368 | |
| 21369 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 21370 | # This happens for instance when ./config.status config.h |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21371 | if test -n "$CONFIG_FILES"; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21372 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21373 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21374 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21375 | |
| 21376 | |
| 21377 | ac_delim='%!_!# ' |
| 21378 | for ac_last_try in false false false false false :; do |
| 21379 | cat >conf$$subs.sed <<_ACEOF |
| 21380 | SHELL!$SHELL$ac_delim |
| 21381 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 21382 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 21383 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 21384 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 21385 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 21386 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 21387 | exec_prefix!$exec_prefix$ac_delim |
| 21388 | prefix!$prefix$ac_delim |
| 21389 | program_transform_name!$program_transform_name$ac_delim |
| 21390 | bindir!$bindir$ac_delim |
| 21391 | sbindir!$sbindir$ac_delim |
| 21392 | libexecdir!$libexecdir$ac_delim |
| 21393 | datarootdir!$datarootdir$ac_delim |
| 21394 | datadir!$datadir$ac_delim |
| 21395 | sysconfdir!$sysconfdir$ac_delim |
| 21396 | sharedstatedir!$sharedstatedir$ac_delim |
| 21397 | localstatedir!$localstatedir$ac_delim |
| 21398 | includedir!$includedir$ac_delim |
| 21399 | oldincludedir!$oldincludedir$ac_delim |
| 21400 | docdir!$docdir$ac_delim |
| 21401 | infodir!$infodir$ac_delim |
| 21402 | htmldir!$htmldir$ac_delim |
| 21403 | dvidir!$dvidir$ac_delim |
| 21404 | pdfdir!$pdfdir$ac_delim |
| 21405 | psdir!$psdir$ac_delim |
| 21406 | libdir!$libdir$ac_delim |
| 21407 | localedir!$localedir$ac_delim |
| 21408 | mandir!$mandir$ac_delim |
| 21409 | DEFS!$DEFS$ac_delim |
| 21410 | ECHO_C!$ECHO_C$ac_delim |
| 21411 | ECHO_N!$ECHO_N$ac_delim |
| 21412 | ECHO_T!$ECHO_T$ac_delim |
| 21413 | LIBS!$LIBS$ac_delim |
| 21414 | build_alias!$build_alias$ac_delim |
| 21415 | host_alias!$host_alias$ac_delim |
| 21416 | target_alias!$target_alias$ac_delim |
| 21417 | build!$build$ac_delim |
| 21418 | build_cpu!$build_cpu$ac_delim |
| 21419 | build_vendor!$build_vendor$ac_delim |
| 21420 | build_os!$build_os$ac_delim |
| 21421 | host!$host$ac_delim |
| 21422 | host_cpu!$host_cpu$ac_delim |
| 21423 | host_vendor!$host_vendor$ac_delim |
| 21424 | host_os!$host_os$ac_delim |
| 21425 | CC!$CC$ac_delim |
| 21426 | CFLAGS!$CFLAGS$ac_delim |
| 21427 | LDFLAGS!$LDFLAGS$ac_delim |
| 21428 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 21429 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 21430 | EXEEXT!$EXEEXT$ac_delim |
| 21431 | OBJEXT!$OBJEXT$ac_delim |
| 21432 | GREP!$GREP$ac_delim |
| 21433 | EGREP!$EGREP$ac_delim |
| 21434 | LN_S!$LN_S$ac_delim |
| 21435 | ECHO!$ECHO$ac_delim |
| 21436 | AR!$AR$ac_delim |
| 21437 | RANLIB!$RANLIB$ac_delim |
| 21438 | STRIP!$STRIP$ac_delim |
| 21439 | CPP!$CPP$ac_delim |
| 21440 | CXX!$CXX$ac_delim |
| 21441 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 21442 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 21443 | CXXCPP!$CXXCPP$ac_delim |
| 21444 | F77!$F77$ac_delim |
| 21445 | FFLAGS!$FFLAGS$ac_delim |
| 21446 | ac_ct_F77!$ac_ct_F77$ac_delim |
| 21447 | LIBTOOL!$LIBTOOL$ac_delim |
| 21448 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 21449 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 21450 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 21451 | AWK!$AWK$ac_delim |
| 21452 | program_prefix!$program_prefix$ac_delim |
| 21453 | VERSION!$VERSION$ac_delim |
| 21454 | RELEASE!$RELEASE$ac_delim |
| 21455 | VERSION_NUMBER!$VERSION_NUMBER$ac_delim |
| 21456 | BUILD_CC!$BUILD_CC$ac_delim |
| 21457 | BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim |
| 21458 | SQLITE_THREADSAFE!$SQLITE_THREADSAFE$ac_delim |
| 21459 | TARGET_THREAD_LIB!$TARGET_THREAD_LIB$ac_delim |
| 21460 | XTHREADCONNECT!$XTHREADCONNECT$ac_delim |
| 21461 | THREADSOVERRIDELOCKS!$THREADSOVERRIDELOCKS$ac_delim |
| 21462 | ALLOWRELEASE!$ALLOWRELEASE$ac_delim |
| 21463 | TEMP_STORE!$TEMP_STORE$ac_delim |
| 21464 | BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim |
| 21465 | OS_UNIX!$OS_UNIX$ac_delim |
| 21466 | OS_WIN!$OS_WIN$ac_delim |
| 21467 | OS_OS2!$OS_OS2$ac_delim |
| 21468 | TARGET_EXEEXT!$TARGET_EXEEXT$ac_delim |
| 21469 | TCL_VERSION!$TCL_VERSION$ac_delim |
| 21470 | TCL_BIN_DIR!$TCL_BIN_DIR$ac_delim |
| 21471 | TCL_SRC_DIR!$TCL_SRC_DIR$ac_delim |
| 21472 | TCL_LIBS!$TCL_LIBS$ac_delim |
| 21473 | TCL_INCLUDE_SPEC!$TCL_INCLUDE_SPEC$ac_delim |
| 21474 | TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim |
| 21475 | TCL_LIB_FLAG!$TCL_LIB_FLAG$ac_delim |
| 21476 | TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim |
| 21477 | _ACEOF |
| 21478 | |
| 21479 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
| 21480 | break |
| 21481 | elif $ac_last_try; then |
| 21482 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 21483 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 21484 | { (exit 1); exit 1; }; } |
| 21485 | else |
| 21486 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21487 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21488 | done |
| 21489 | |
| 21490 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 21491 | if test -n "$ac_eof"; then |
| 21492 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 21493 | ac_eof=`expr $ac_eof + 1` |
| 21494 | fi |
| 21495 | |
| 21496 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21497 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 21498 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 21499 | _ACEOF |
| 21500 | sed ' |
| 21501 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 21502 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 21503 | :n |
| 21504 | t n |
| 21505 | s/'"$ac_delim"'$/,g/; t |
| 21506 | s/$/\\/; p |
| 21507 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 21508 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 21509 | rm -f conf$$subs.sed |
| 21510 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21511 | CEOF$ac_eof |
| 21512 | _ACEOF |
| 21513 | |
| 21514 | |
| 21515 | ac_delim='%!_!# ' |
| 21516 | for ac_last_try in false false false false false :; do |
| 21517 | cat >conf$$subs.sed <<_ACEOF |
| 21518 | TCL_STUB_LIB_FILE!$TCL_STUB_LIB_FILE$ac_delim |
| 21519 | TCL_STUB_LIB_FLAG!$TCL_STUB_LIB_FLAG$ac_delim |
| 21520 | TCL_STUB_LIB_SPEC!$TCL_STUB_LIB_SPEC$ac_delim |
| 21521 | HAVE_TCL!$HAVE_TCL$ac_delim |
| 21522 | TARGET_READLINE_LIBS!$TARGET_READLINE_LIBS$ac_delim |
| 21523 | TARGET_READLINE_INC!$TARGET_READLINE_INC$ac_delim |
| 21524 | TARGET_HAVE_READLINE!$TARGET_HAVE_READLINE$ac_delim |
| 21525 | TARGET_DEBUG!$TARGET_DEBUG$ac_delim |
| 21526 | USE_AMALGAMATION!$USE_AMALGAMATION$ac_delim |
mlcreech | a4edab0 | 2008-03-06 04:14:17 +0000 | [diff] [blame] | 21527 | LOADEXTENSION_FLAGS!$LOADEXTENSION_FLAGS$ac_delim |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21528 | LIBOBJS!$LIBOBJS$ac_delim |
| 21529 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 21530 | _ACEOF |
| 21531 | |
mlcreech | a4edab0 | 2008-03-06 04:14:17 +0000 | [diff] [blame] | 21532 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21533 | break |
| 21534 | elif $ac_last_try; then |
| 21535 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 21536 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 21537 | { (exit 1); exit 1; }; } |
| 21538 | else |
| 21539 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 21540 | fi |
| 21541 | done |
| 21542 | |
| 21543 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 21544 | if test -n "$ac_eof"; then |
| 21545 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 21546 | ac_eof=`expr $ac_eof + 1` |
| 21547 | fi |
| 21548 | |
| 21549 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21550 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 21551 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 21552 | _ACEOF |
| 21553 | sed ' |
| 21554 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 21555 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 21556 | :n |
| 21557 | t n |
| 21558 | s/'"$ac_delim"'$/,g/; t |
| 21559 | s/$/\\/; p |
| 21560 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 21561 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 21562 | rm -f conf$$subs.sed |
| 21563 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21564 | :end |
| 21565 | s/|#_!!_#|//g |
| 21566 | CEOF$ac_eof |
| 21567 | _ACEOF |
| 21568 | |
| 21569 | |
| 21570 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 21571 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 21572 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 21573 | # (actually we leave an empty line to preserve line numbers). |
| 21574 | if test "x$srcdir" = x.; then |
| 21575 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 21576 | s/:*\$(srcdir):*/:/ |
| 21577 | s/:*\${srcdir}:*/:/ |
| 21578 | s/:*@srcdir@:*/:/ |
| 21579 | s/^\([^=]*=[ ]*\):*/\1/ |
| 21580 | s/:*$// |
| 21581 | s/^[^=]*=[ ]*$// |
| 21582 | }' |
| 21583 | fi |
| 21584 | |
| 21585 | cat >>$CONFIG_STATUS <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21586 | fi # test -n "$CONFIG_FILES" |
| 21587 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21588 | |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame^] | 21589 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21590 | do |
| 21591 | case $ac_tag in |
| 21592 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 21593 | esac |
| 21594 | case $ac_mode$ac_tag in |
| 21595 | :[FHL]*:*);; |
| 21596 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 21597 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 21598 | { (exit 1); exit 1; }; };; |
| 21599 | :[FH]-) ac_tag=-:-;; |
| 21600 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 21601 | esac |
| 21602 | ac_save_IFS=$IFS |
| 21603 | IFS=: |
| 21604 | set x $ac_tag |
| 21605 | IFS=$ac_save_IFS |
| 21606 | shift |
| 21607 | ac_file=$1 |
| 21608 | shift |
| 21609 | |
| 21610 | case $ac_mode in |
| 21611 | :L) ac_source=$1;; |
| 21612 | :[FH]) |
| 21613 | ac_file_inputs= |
| 21614 | for ac_f |
| 21615 | do |
| 21616 | case $ac_f in |
| 21617 | -) ac_f="$tmp/stdin";; |
| 21618 | *) # Look for the file first in the build tree, then in the source tree |
| 21619 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 21620 | # because $ac_f cannot contain `:'. |
| 21621 | test -f "$ac_f" || |
| 21622 | case $ac_f in |
| 21623 | [\\/$]*) false;; |
| 21624 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 21625 | esac || |
| 21626 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 21627 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 21628 | { (exit 1); exit 1; }; };; |
| 21629 | esac |
| 21630 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 21631 | done |
| 21632 | |
| 21633 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 21634 | # use $as_me), people would be surprised to read: |
| 21635 | # /* config.h. Generated by config.status. */ |
| 21636 | configure_input="Generated from "`IFS=: |
| 21637 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 21638 | if test x"$ac_file" != x-; then |
| 21639 | configure_input="$ac_file. $configure_input" |
| 21640 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 21641 | echo "$as_me: creating $ac_file" >&6;} |
| 21642 | fi |
| 21643 | |
| 21644 | case $ac_tag in |
| 21645 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 21646 | esac |
| 21647 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21648 | esac |
| 21649 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21650 | ac_dir=`$as_dirname -- "$ac_file" || |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21651 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 21652 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 21653 | X"$ac_file" : 'X\(//\)$' \| \ |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21654 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21655 | echo X"$ac_file" | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21656 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 21657 | s//\1/ |
| 21658 | q |
| 21659 | } |
| 21660 | /^X\(\/\/\)[^/].*/{ |
| 21661 | s//\1/ |
| 21662 | q |
| 21663 | } |
| 21664 | /^X\(\/\/\)$/{ |
| 21665 | s//\1/ |
| 21666 | q |
| 21667 | } |
| 21668 | /^X\(\/\).*/{ |
| 21669 | s//\1/ |
| 21670 | q |
| 21671 | } |
| 21672 | s/.*/./; q'` |
| 21673 | { as_dir="$ac_dir" |
| 21674 | case $as_dir in #( |
| 21675 | -*) as_dir=./$as_dir;; |
| 21676 | esac |
| 21677 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21678 | as_dirs= |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21679 | while :; do |
| 21680 | case $as_dir in #( |
| 21681 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 21682 | *) as_qdir=$as_dir;; |
| 21683 | esac |
| 21684 | as_dirs="'$as_qdir' $as_dirs" |
| 21685 | as_dir=`$as_dirname -- "$as_dir" || |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21686 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 21687 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 21688 | X"$as_dir" : 'X\(//\)$' \| \ |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21689 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21690 | echo X"$as_dir" | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21691 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 21692 | s//\1/ |
| 21693 | q |
| 21694 | } |
| 21695 | /^X\(\/\/\)[^/].*/{ |
| 21696 | s//\1/ |
| 21697 | q |
| 21698 | } |
| 21699 | /^X\(\/\/\)$/{ |
| 21700 | s//\1/ |
| 21701 | q |
| 21702 | } |
| 21703 | /^X\(\/\).*/{ |
| 21704 | s//\1/ |
| 21705 | q |
| 21706 | } |
| 21707 | s/.*/./; q'` |
| 21708 | test -d "$as_dir" && break |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21709 | done |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21710 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 21711 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 21712 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21713 | { (exit 1); exit 1; }; }; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21714 | ac_builddir=. |
| 21715 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21716 | case "$ac_dir" in |
| 21717 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 21718 | *) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21719 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21720 | # A ".." for each directory in $ac_dir_suffix. |
| 21721 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 21722 | case $ac_top_builddir_sub in |
| 21723 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 21724 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 21725 | esac ;; |
| 21726 | esac |
| 21727 | ac_abs_top_builddir=$ac_pwd |
| 21728 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 21729 | # for backward compatibility: |
| 21730 | ac_top_builddir=$ac_top_build_prefix |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21731 | |
| 21732 | case $srcdir in |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21733 | .) # We are building in place. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21734 | ac_srcdir=. |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21735 | ac_top_srcdir=$ac_top_builddir_sub |
| 21736 | ac_abs_top_srcdir=$ac_pwd ;; |
| 21737 | [\\/]* | ?:[\\/]* ) # Absolute name. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21738 | ac_srcdir=$srcdir$ac_dir_suffix; |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21739 | ac_top_srcdir=$srcdir |
| 21740 | ac_abs_top_srcdir=$srcdir ;; |
| 21741 | *) # Relative name. |
| 21742 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 21743 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 21744 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21745 | esac |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21746 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 21747 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21748 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21749 | case $ac_mode in |
| 21750 | :F) |
| 21751 | # |
| 21752 | # CONFIG_FILE |
| 21753 | # |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 21754 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21755 | case $INSTALL in |
| 21756 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21757 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 21758 | esac |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 21759 | _ACEOF |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21760 | |
| 21761 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21762 | # If the template does not know about datarootdir, expand it. |
| 21763 | # FIXME: This hack should be removed a few years after 2.60. |
| 21764 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 21765 | |
| 21766 | case `sed -n '/datarootdir/ { |
| 21767 | p |
| 21768 | q |
| 21769 | } |
| 21770 | /@datadir@/p |
| 21771 | /@docdir@/p |
| 21772 | /@infodir@/p |
| 21773 | /@localedir@/p |
| 21774 | /@mandir@/p |
| 21775 | ' $ac_file_inputs` in |
| 21776 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 21777 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 21778 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 21779 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 21780 | _ACEOF |
| 21781 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21782 | ac_datarootdir_hack=' |
| 21783 | s&@datadir@&$datadir&g |
| 21784 | s&@docdir@&$docdir&g |
| 21785 | s&@infodir@&$infodir&g |
| 21786 | s&@localedir@&$localedir&g |
| 21787 | s&@mandir@&$mandir&g |
| 21788 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 21789 | esac |
| 21790 | _ACEOF |
| 21791 | |
| 21792 | # Neutralize VPATH when `$srcdir' = `.'. |
| 21793 | # Shell code in configure.ac might set extrasub. |
| 21794 | # FIXME: do we really want to maintain this feature? |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 21795 | cat >>$CONFIG_STATUS <<_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21796 | sed "$ac_vpsub |
| 21797 | $extrasub |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21798 | _ACEOF |
| 21799 | cat >>$CONFIG_STATUS <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21800 | :t |
| 21801 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21802 | s&@configure_input@&$configure_input&;t t |
| 21803 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 21804 | s&@srcdir@&$ac_srcdir&;t t |
| 21805 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 21806 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 21807 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 21808 | s&@builddir@&$ac_builddir&;t t |
| 21809 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 21810 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 21811 | s&@INSTALL@&$ac_INSTALL&;t t |
| 21812 | $ac_datarootdir_hack |
| 21813 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 21814 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21815 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 21816 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 21817 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 21818 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 21819 | which seems to be undefined. Please make sure it is defined." >&5 |
| 21820 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 21821 | which seems to be undefined. Please make sure it is defined." >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21822 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21823 | rm -f "$tmp/stdin" |
| 21824 | case $ac_file in |
| 21825 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 21826 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 21827 | esac |
| 21828 | ;; |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame^] | 21829 | :H) |
| 21830 | # |
| 21831 | # CONFIG_HEADER |
| 21832 | # |
| 21833 | _ACEOF |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21834 | |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame^] | 21835 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 21836 | # substitutes the proper values into config.h.in to produce config.h. |
| 21837 | rm -f conftest.defines conftest.tail |
| 21838 | # First, append a space to every undef/define line, to ease matching. |
| 21839 | echo 's/$/ /' >conftest.defines |
| 21840 | # Then, protect against being on the right side of a sed subst, or in |
| 21841 | # an unquoted here document, in config.status. If some macros were |
| 21842 | # called several times there might be several #defines for the same |
| 21843 | # symbol, which is useless. But do not sort them, since the last |
| 21844 | # AC_DEFINE must be honored. |
| 21845 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 21846 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 21847 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 21848 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 21849 | # just an empty string. |
| 21850 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 21851 | ac_dB='\\)[ (].*,\\1define\\2' |
| 21852 | ac_dC=' ' |
| 21853 | ac_dD=' ,' |
| 21854 | |
| 21855 | uniq confdefs.h | |
| 21856 | sed -n ' |
| 21857 | t rset |
| 21858 | :rset |
| 21859 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 21860 | t ok |
| 21861 | d |
| 21862 | :ok |
| 21863 | s/[\\&,]/\\&/g |
| 21864 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 21865 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 21866 | ' >>conftest.defines |
| 21867 | |
| 21868 | # Remove the space that was appended to ease matching. |
| 21869 | # Then replace #undef with comments. This is necessary, for |
| 21870 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 21871 | # on some systems where configure will not decide to define it. |
| 21872 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 21873 | echo 's/ $// |
| 21874 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
| 21875 | |
| 21876 | # Break up conftest.defines: |
| 21877 | ac_max_sed_lines=50 |
| 21878 | |
| 21879 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 21880 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 21881 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 21882 | # et cetera. |
| 21883 | ac_in='$ac_file_inputs' |
| 21884 | ac_out='"$tmp/out1"' |
| 21885 | ac_nxt='"$tmp/out2"' |
| 21886 | |
| 21887 | while : |
| 21888 | do |
| 21889 | # Write a here document: |
| 21890 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21891 | # First, check the format of the line: |
| 21892 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 21893 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 21894 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 21895 | b |
| 21896 | :def |
| 21897 | _ACEOF |
| 21898 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
| 21899 | echo 'CEOF |
| 21900 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 21901 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 21902 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 21903 | grep . conftest.tail >/dev/null || break |
| 21904 | rm -f conftest.defines |
| 21905 | mv conftest.tail conftest.defines |
| 21906 | done |
| 21907 | rm -f conftest.defines conftest.tail |
| 21908 | |
| 21909 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
| 21910 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21911 | if test x"$ac_file" != x-; then |
| 21912 | echo "/* $configure_input */" >"$tmp/config.h" |
| 21913 | cat "$ac_result" >>"$tmp/config.h" |
| 21914 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
| 21915 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 21916 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 21917 | else |
| 21918 | rm -f $ac_file |
| 21919 | mv "$tmp/config.h" $ac_file |
| 21920 | fi |
| 21921 | else |
| 21922 | echo "/* $configure_input */" |
| 21923 | cat "$ac_result" |
| 21924 | fi |
| 21925 | rm -f "$tmp/out12" |
| 21926 | ;; |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 21927 | |
| 21928 | |
| 21929 | esac |
| 21930 | |
| 21931 | done # for ac_tag |
| 21932 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21933 | |
| 21934 | { (exit 0); exit 0; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21935 | _ACEOF |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 21936 | chmod +x $CONFIG_STATUS |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21937 | ac_clean_files=$ac_clean_files_save |
| 21938 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21939 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21940 | # configure is writing to config.log, and then calls config.status. |
| 21941 | # config.status does its own redirection, appending to config.log. |
| 21942 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 21943 | # by configure, so config.status won't be able to write to it; its |
| 21944 | # output is simply discarded. So we exec the FD to /dev/null, |
| 21945 | # effectively closing config.log, so it can be properly (re)opened and |
| 21946 | # appended to by config.status. When coming back to configure, we |
| 21947 | # need to make the FD available again. |
| 21948 | if test "$no_create" != yes; then |
| 21949 | ac_cs_success=: |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21950 | ac_config_status_args= |
| 21951 | test "$silent" = yes && |
| 21952 | ac_config_status_args="$ac_config_status_args --quiet" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21953 | exec 5>/dev/null |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21954 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21955 | exec 5>>config.log |
| 21956 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 21957 | # would make configure fail if this is the last instruction. |
| 21958 | $ac_cs_success || { (exit 1); exit 1; } |
| 21959 | fi |
drh | 613a0fe | 2007-11-23 17:31:17 +0000 | [diff] [blame] | 21960 | |