Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.60. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4 | # |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +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. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 7 | # This configure script is free software; the Free Software Foundation |
| 8 | # gives unlimited permission to copy, distribute and modify it. |
| 9 | ## --------------------- ## |
| 10 | ## M4sh Initialization. ## |
| 11 | ## --------------------- ## |
| 12 | |
| 13 | # Be Bourne compatible |
| 14 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 15 | emulate sh |
| 16 | NULLCMD=: |
| 17 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 18 | # is contrary to our usage. Disable this feature. |
| 19 | alias -g '${1+"$@"}'='"$@"' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20 | setopt NO_GLOB_SUBST |
| 21 | else |
| 22 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 25 | DUALCASE=1; export DUALCASE # for MKS sh |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 26 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 27 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 28 | # PATH needs CR |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 29 | # Avoid depending upon Character Ranges. |
| 30 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 31 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 32 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 33 | as_cr_digits='0123456789' |
| 34 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 35 | |
| 36 | # The user is always right. |
| 37 | if test "${PATH_SEPARATOR+set}" != set; then |
| 38 | echo "#! /bin/sh" >conf$$.sh |
| 39 | echo "exit 0" >>conf$$.sh |
| 40 | chmod +x conf$$.sh |
| 41 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 42 | PATH_SEPARATOR=';' |
| 43 | else |
| 44 | PATH_SEPARATOR=: |
| 45 | fi |
| 46 | rm -f conf$$.sh |
| 47 | fi |
| 48 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 49 | # Support unset when possible. |
| 50 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 51 | as_unset=unset |
| 52 | else |
| 53 | as_unset=false |
| 54 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 55 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 56 | |
| 57 | # IFS |
| 58 | # We need space, tab and new line, in precisely that order. Quoting is |
| 59 | # there to prevent editors from complaining about space-tab. |
| 60 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 61 | # splitting by setting IFS to empty value.) |
| 62 | as_nl=' |
| 63 | ' |
| 64 | IFS=" "" $as_nl" |
| 65 | |
| 66 | # Find who we are. Look in the path if we contain no directory separator. |
| 67 | case $0 in |
| 68 | *[\\/]* ) as_myself=$0 ;; |
| 69 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 70 | for as_dir in $PATH |
| 71 | do |
| 72 | IFS=$as_save_IFS |
| 73 | test -z "$as_dir" && as_dir=. |
| 74 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 75 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 76 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 77 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 78 | ;; |
| 79 | esac |
| 80 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 81 | # in which case we are not to be found in the path. |
| 82 | if test "x$as_myself" = x; then |
| 83 | as_myself=$0 |
| 84 | fi |
| 85 | if test ! -f "$as_myself"; then |
| 86 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 87 | { (exit 1); exit 1; } |
| 88 | fi |
| 89 | |
| 90 | # Work around bugs in pre-3.0 UWIN ksh. |
| 91 | for as_var in ENV MAIL MAILPATH |
| 92 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 93 | done |
| 94 | PS1='$ ' |
| 95 | PS2='> ' |
| 96 | PS4='+ ' |
| 97 | |
| 98 | # NLS nuisances. |
| 99 | for as_var in \ |
| 100 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 101 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 102 | LC_TELEPHONE LC_TIME |
| 103 | do |
| 104 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 105 | eval $as_var=C; export $as_var |
| 106 | else |
| 107 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 108 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 109 | done |
| 110 | |
| 111 | # Required to use basename. |
| 112 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 113 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 114 | as_expr=expr |
| 115 | else |
| 116 | as_expr=false |
| 117 | fi |
| 118 | |
| 119 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 120 | as_basename=basename |
| 121 | else |
| 122 | as_basename=false |
| 123 | fi |
| 124 | |
| 125 | |
| 126 | # Name of the executable. |
| 127 | as_me=`$as_basename -- "$0" || |
| 128 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 129 | X"$0" : 'X\(//\)$' \| \ |
| 130 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 131 | echo X/"$0" | |
| 132 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 133 | s//\1/ |
| 134 | q |
| 135 | } |
| 136 | /^X\/\(\/\/\)$/{ |
| 137 | s//\1/ |
| 138 | q |
| 139 | } |
| 140 | /^X\/\(\/\).*/{ |
| 141 | s//\1/ |
| 142 | q |
| 143 | } |
| 144 | s/.*/./; q'` |
| 145 | |
| 146 | # CDPATH. |
| 147 | $as_unset CDPATH |
| 148 | |
| 149 | |
| 150 | if test "x$CONFIG_SHELL" = x; then |
| 151 | if (eval ":") 2>/dev/null; then |
| 152 | as_have_required=yes |
| 153 | else |
| 154 | as_have_required=no |
| 155 | fi |
| 156 | |
| 157 | if test $as_have_required = yes && (eval ": |
| 158 | (as_func_return () { |
| 159 | (exit \$1) |
| 160 | } |
| 161 | as_func_success () { |
| 162 | as_func_return 0 |
| 163 | } |
| 164 | as_func_failure () { |
| 165 | as_func_return 1 |
| 166 | } |
| 167 | as_func_ret_success () { |
| 168 | return 0 |
| 169 | } |
| 170 | as_func_ret_failure () { |
| 171 | return 1 |
| 172 | } |
| 173 | |
| 174 | exitcode=0 |
| 175 | if as_func_success; then |
| 176 | : |
| 177 | else |
| 178 | exitcode=1 |
| 179 | echo as_func_success failed. |
| 180 | fi |
| 181 | |
| 182 | if as_func_failure; then |
| 183 | exitcode=1 |
| 184 | echo as_func_failure succeeded. |
| 185 | fi |
| 186 | |
| 187 | if as_func_ret_success; then |
| 188 | : |
| 189 | else |
| 190 | exitcode=1 |
| 191 | echo as_func_ret_success failed. |
| 192 | fi |
| 193 | |
| 194 | if as_func_ret_failure; then |
| 195 | exitcode=1 |
| 196 | echo as_func_ret_failure succeeded. |
| 197 | fi |
| 198 | |
| 199 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 200 | : |
| 201 | else |
| 202 | exitcode=1 |
| 203 | echo positional parameters were not saved. |
| 204 | fi |
| 205 | |
| 206 | test \$exitcode = 0) || { (exit 1); exit 1; } |
| 207 | |
| 208 | ( |
| 209 | as_lineno_1=\$LINENO |
| 210 | as_lineno_2=\$LINENO |
| 211 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| 212 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
| 213 | ") 2> /dev/null; then |
| 214 | : |
| 215 | else |
| 216 | as_candidate_shells= |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 218 | for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 219 | do |
| 220 | IFS=$as_save_IFS |
| 221 | test -z "$as_dir" && as_dir=. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 222 | case $as_dir in |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 223 | /*) |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 224 | for as_base in sh bash ksh sh5; do |
| 225 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| 226 | done;; |
| 227 | esac |
| 228 | done |
| 229 | IFS=$as_save_IFS |
| 230 | |
| 231 | |
| 232 | for as_shell in $as_candidate_shells $SHELL; do |
| 233 | # Try only shells that exist, to save several forks. |
| 234 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 235 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
| 236 | # Be Bourne compatible |
| 237 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 238 | emulate sh |
| 239 | NULLCMD=: |
| 240 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 241 | # is contrary to our usage. Disable this feature. |
| 242 | alias -g '${1+"$@"}'='"$@"' |
| 243 | setopt NO_GLOB_SUBST |
| 244 | else |
| 245 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
| 246 | fi |
| 247 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 248 | DUALCASE=1; export DUALCASE # for MKS sh |
| 249 | |
| 250 | : |
| 251 | _ASEOF |
| 252 | }; then |
| 253 | CONFIG_SHELL=$as_shell |
| 254 | as_have_required=yes |
| 255 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
| 256 | # Be Bourne compatible |
| 257 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 258 | emulate sh |
| 259 | NULLCMD=: |
| 260 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 261 | # is contrary to our usage. Disable this feature. |
| 262 | alias -g '${1+"$@"}'='"$@"' |
| 263 | setopt NO_GLOB_SUBST |
| 264 | else |
| 265 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
| 266 | fi |
| 267 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 268 | DUALCASE=1; export DUALCASE # for MKS sh |
| 269 | |
| 270 | : |
| 271 | (as_func_return () { |
| 272 | (exit $1) |
| 273 | } |
| 274 | as_func_success () { |
| 275 | as_func_return 0 |
| 276 | } |
| 277 | as_func_failure () { |
| 278 | as_func_return 1 |
| 279 | } |
| 280 | as_func_ret_success () { |
| 281 | return 0 |
| 282 | } |
| 283 | as_func_ret_failure () { |
| 284 | return 1 |
| 285 | } |
| 286 | |
| 287 | exitcode=0 |
| 288 | if as_func_success; then |
| 289 | : |
| 290 | else |
| 291 | exitcode=1 |
| 292 | echo as_func_success failed. |
| 293 | fi |
| 294 | |
| 295 | if as_func_failure; then |
| 296 | exitcode=1 |
| 297 | echo as_func_failure succeeded. |
| 298 | fi |
| 299 | |
| 300 | if as_func_ret_success; then |
| 301 | : |
| 302 | else |
| 303 | exitcode=1 |
| 304 | echo as_func_ret_success failed. |
| 305 | fi |
| 306 | |
| 307 | if as_func_ret_failure; then |
| 308 | exitcode=1 |
| 309 | echo as_func_ret_failure succeeded. |
| 310 | fi |
| 311 | |
| 312 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 313 | : |
| 314 | else |
| 315 | exitcode=1 |
| 316 | echo positional parameters were not saved. |
| 317 | fi |
| 318 | |
| 319 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 320 | |
| 321 | ( |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 322 | as_lineno_1=$LINENO |
| 323 | as_lineno_2=$LINENO |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 324 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 325 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
| 326 | |
| 327 | _ASEOF |
| 328 | }; then |
| 329 | break |
| 330 | fi |
| 331 | |
| 332 | fi |
| 333 | |
| 334 | done |
| 335 | |
| 336 | if test "x$CONFIG_SHELL" != x; then |
| 337 | for as_var in BASH_ENV ENV |
| 338 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 339 | done |
| 340 | export CONFIG_SHELL |
| 341 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 342 | fi |
| 343 | |
| 344 | |
| 345 | if test $as_have_required = no; then |
| 346 | echo This script requires a shell more modern than all the |
| 347 | echo shells that I found on your system. Please install a |
| 348 | echo modern shell, or manually run the script under such a |
| 349 | echo shell if you do have one. |
| 350 | { (exit 1); exit 1; } |
| 351 | fi |
| 352 | |
| 353 | |
| 354 | fi |
| 355 | |
| 356 | fi |
| 357 | |
| 358 | |
| 359 | |
| 360 | (eval "as_func_return () { |
| 361 | (exit \$1) |
| 362 | } |
| 363 | as_func_success () { |
| 364 | as_func_return 0 |
| 365 | } |
| 366 | as_func_failure () { |
| 367 | as_func_return 1 |
| 368 | } |
| 369 | as_func_ret_success () { |
| 370 | return 0 |
| 371 | } |
| 372 | as_func_ret_failure () { |
| 373 | return 1 |
| 374 | } |
| 375 | |
| 376 | exitcode=0 |
| 377 | if as_func_success; then |
| 378 | : |
| 379 | else |
| 380 | exitcode=1 |
| 381 | echo as_func_success failed. |
| 382 | fi |
| 383 | |
| 384 | if as_func_failure; then |
| 385 | exitcode=1 |
| 386 | echo as_func_failure succeeded. |
| 387 | fi |
| 388 | |
| 389 | if as_func_ret_success; then |
| 390 | : |
| 391 | else |
| 392 | exitcode=1 |
| 393 | echo as_func_ret_success failed. |
| 394 | fi |
| 395 | |
| 396 | if as_func_ret_failure; then |
| 397 | exitcode=1 |
| 398 | echo as_func_ret_failure succeeded. |
| 399 | fi |
| 400 | |
| 401 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 402 | : |
| 403 | else |
| 404 | exitcode=1 |
| 405 | echo positional parameters were not saved. |
| 406 | fi |
| 407 | |
| 408 | test \$exitcode = 0") || { |
| 409 | echo No shell found that supports shell functions. |
| 410 | echo Please tell autoconf@gnu.org about your system, |
| 411 | echo including any error possibly output before this |
| 412 | echo message |
| 413 | } |
| 414 | |
| 415 | |
| 416 | |
| 417 | as_lineno_1=$LINENO |
| 418 | as_lineno_2=$LINENO |
| 419 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 420 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 421 | |
| 422 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 423 | # uniformly replaced by the line number. The first 'sed' inserts a |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 424 | # line-number line after each line using $LINENO; the second 'sed' |
| 425 | # does the real work. The second script uses 'N' to pair each |
| 426 | # line-number line with the line containing $LINENO, and appends |
| 427 | # trailing '-' during substitution so that $LINENO is not a special |
| 428 | # case at line end. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 429 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 430 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 431 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 432 | sed -n ' |
| 433 | p |
| 434 | /[$]LINENO/= |
| 435 | ' <$as_myself | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 436 | sed ' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 437 | s/[$]LINENO.*/&-/ |
| 438 | t lineno |
| 439 | b |
| 440 | :lineno |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 441 | N |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 442 | :loop |
| 443 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 444 | t loop |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 445 | s/-\n.*// |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 446 | ' >$as_me.lineno && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 447 | chmod +x "$as_me.lineno" || |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 448 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 449 | { (exit 1); exit 1; }; } |
| 450 | |
| 451 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 452 | # (the dirname of $[0] is not the place where we might find the |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 453 | # original and so on. Autoconf is especially sensitive to this). |
| 454 | . "./$as_me.lineno" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 455 | # Exit status is that of the last command. |
| 456 | exit |
| 457 | } |
| 458 | |
| 459 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 460 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 461 | as_dirname=dirname |
| 462 | else |
| 463 | as_dirname=false |
| 464 | fi |
| 465 | |
| 466 | ECHO_C= ECHO_N= ECHO_T= |
| 467 | case `echo -n x` in |
| 468 | -n*) |
| 469 | case `echo 'x\c'` in |
| 470 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 471 | *) ECHO_C='\c';; |
| 472 | esac;; |
| 473 | *) |
| 474 | ECHO_N='-n';; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 475 | esac |
| 476 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 477 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 478 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 479 | as_expr=expr |
| 480 | else |
| 481 | as_expr=false |
| 482 | fi |
| 483 | |
| 484 | rm -f conf$$ conf$$.exe conf$$.file |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 485 | if test -d conf$$.dir; then |
| 486 | rm -f conf$$.dir/conf$$.file |
| 487 | else |
| 488 | rm -f conf$$.dir |
| 489 | mkdir conf$$.dir |
| 490 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 491 | echo >conf$$.file |
| 492 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 493 | as_ln_s='ln -s' |
| 494 | # ... but there are two gotchas: |
| 495 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 496 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 497 | # In both cases, we have to default to `cp -p'. |
| 498 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 499 | as_ln_s='cp -p' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 500 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 501 | as_ln_s=ln |
| 502 | else |
| 503 | as_ln_s='cp -p' |
| 504 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 505 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 506 | rmdir conf$$.dir 2>/dev/null |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 507 | |
| 508 | if mkdir -p . 2>/dev/null; then |
| 509 | as_mkdir_p=: |
| 510 | else |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 511 | test -d ./-p && rmdir ./-p |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 512 | as_mkdir_p=false |
| 513 | fi |
| 514 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 515 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 516 | # systems may use methods other than mode bits to determine executability. |
| 517 | cat >conf$$.file <<_ASEOF |
| 518 | #! /bin/sh |
| 519 | exit 0 |
| 520 | _ASEOF |
| 521 | chmod +x conf$$.file |
| 522 | if test -x conf$$.file >/dev/null 2>&1; then |
| 523 | as_executable_p="test -x" |
| 524 | else |
| 525 | as_executable_p=: |
| 526 | fi |
| 527 | rm -f conf$$.file |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 528 | |
| 529 | # Sed expression to map a string onto a valid CPP name. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 530 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 531 | |
| 532 | # Sed expression to map a string onto a valid variable name. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 533 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 534 | |
| 535 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 536 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 537 | |
| 538 | # Check that we are running under the correct shell. |
| 539 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 540 | |
| 541 | case X$ECHO in |
| 542 | X*--fallback-echo) |
| 543 | # Remove one level of quotation (which was required for Make). |
| 544 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
| 545 | ;; |
| 546 | esac |
| 547 | |
| 548 | echo=${ECHO-echo} |
| 549 | if test "X$1" = X--no-reexec; then |
| 550 | # Discard the --no-reexec flag, and continue. |
| 551 | shift |
| 552 | elif test "X$1" = X--fallback-echo; then |
| 553 | # Avoid inline document here, it may be left over |
| 554 | : |
| 555 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
| 556 | # Yippee, $echo works! |
| 557 | : |
| 558 | else |
| 559 | # Restart under the correct shell. |
| 560 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 561 | fi |
| 562 | |
| 563 | if test "X$1" = X--fallback-echo; then |
| 564 | # used as fallback echo |
| 565 | shift |
| 566 | cat <<EOF |
| 567 | $* |
| 568 | EOF |
| 569 | exit 0 |
| 570 | fi |
| 571 | |
| 572 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 573 | # if CDPATH is set. |
| 574 | if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| 575 | |
| 576 | if test -z "$ECHO"; then |
| 577 | if test "X${echo_test_string+set}" != Xset; then |
| 578 | # find a string as large as possible, as long as the shell can cope with it |
| 579 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 580 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 581 | if (echo_test_string="`eval $cmd`") 2>/dev/null && |
| 582 | echo_test_string="`eval $cmd`" && |
| 583 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
| 584 | then |
| 585 | break |
| 586 | fi |
| 587 | done |
| 588 | fi |
| 589 | |
| 590 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 591 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 592 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 593 | : |
| 594 | else |
| 595 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 596 | # backslashes. This makes it impossible to quote backslashes using |
| 597 | # echo "$something" | sed 's/\\/\\\\/g' |
| 598 | # |
| 599 | # So, first we look for a working echo in the user's PATH. |
| 600 | |
| 601 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 602 | for dir in $PATH /usr/ucb; do |
| 603 | IFS="$lt_save_ifs" |
| 604 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 605 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 606 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 607 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 608 | echo="$dir/echo" |
| 609 | break |
| 610 | fi |
| 611 | done |
| 612 | IFS="$lt_save_ifs" |
| 613 | |
| 614 | if test "X$echo" = Xecho; then |
| 615 | # We didn't find a better echo, so look for alternatives. |
| 616 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
| 617 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
| 618 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 619 | # This shell has a builtin print -r that does the trick. |
| 620 | echo='print -r' |
| 621 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
| 622 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 623 | # If we have ksh, try running configure again with it. |
| 624 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 625 | export ORIGINAL_CONFIG_SHELL |
| 626 | CONFIG_SHELL=/bin/ksh |
| 627 | export CONFIG_SHELL |
| 628 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
| 629 | else |
| 630 | # Try using printf. |
| 631 | echo='printf %s\n' |
| 632 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 633 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 634 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 635 | # Cool, printf works |
| 636 | : |
| 637 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 638 | test "X$echo_testing_string" = 'X\t' && |
| 639 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 640 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 641 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 642 | export CONFIG_SHELL |
| 643 | SHELL="$CONFIG_SHELL" |
| 644 | export SHELL |
| 645 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 646 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 647 | test "X$echo_testing_string" = 'X\t' && |
| 648 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 649 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 650 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 651 | else |
| 652 | # maybe with a smaller string... |
| 653 | prev=: |
| 654 | |
| 655 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 656 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
| 657 | then |
| 658 | break |
| 659 | fi |
| 660 | prev="$cmd" |
| 661 | done |
| 662 | |
| 663 | if test "$prev" != 'sed 50q "$0"'; then |
| 664 | echo_test_string=`eval $prev` |
| 665 | export echo_test_string |
| 666 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 667 | else |
| 668 | # Oops. We lost completely, so just stick with echo. |
| 669 | echo=echo |
| 670 | fi |
| 671 | fi |
| 672 | fi |
| 673 | fi |
| 674 | fi |
| 675 | fi |
| 676 | |
| 677 | # Copy echo and quote the copy suitably for passing to libtool from |
| 678 | # the Makefile, instead of quoting the original, which is used later. |
| 679 | ECHO=$echo |
| 680 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 681 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
| 682 | fi |
| 683 | |
| 684 | |
| 685 | |
| 686 | |
| 687 | tagnames=${tagnames+${tagnames},}CXX |
| 688 | |
| 689 | tagnames=${tagnames+${tagnames},}F77 |
| 690 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 691 | exec 7<&0 </dev/null 6>&1 |
| 692 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 693 | # Name of the host. |
| 694 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 695 | # so uname gets run too. |
| 696 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 697 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 698 | # |
| 699 | # Initializations. |
| 700 | # |
| 701 | ac_default_prefix=/usr/local |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 702 | ac_clean_files= |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 703 | ac_config_libobj_dir=. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 704 | LIBOBJS= |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 705 | cross_compiling=no |
| 706 | subdirs= |
| 707 | MFLAGS= |
| 708 | MAKEFLAGS= |
| 709 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 710 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 711 | # Identity of this package. |
| 712 | PACKAGE_NAME= |
| 713 | PACKAGE_TARNAME= |
| 714 | PACKAGE_VERSION= |
| 715 | PACKAGE_STRING= |
| 716 | PACKAGE_BUGREPORT= |
| 717 | |
| 718 | ac_unique_file="libasn1parser/asn1p_y.y" |
| 719 | # Factoring default headers for most tests. |
| 720 | ac_includes_default="\ |
| 721 | #include <stdio.h> |
| 722 | #if HAVE_SYS_TYPES_H |
| 723 | # include <sys/types.h> |
| 724 | #endif |
| 725 | #if HAVE_SYS_STAT_H |
| 726 | # include <sys/stat.h> |
| 727 | #endif |
| 728 | #if STDC_HEADERS |
| 729 | # include <stdlib.h> |
| 730 | # include <stddef.h> |
| 731 | #else |
| 732 | # if HAVE_STDLIB_H |
| 733 | # include <stdlib.h> |
| 734 | # endif |
| 735 | #endif |
| 736 | #if HAVE_STRING_H |
| 737 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 738 | # include <memory.h> |
| 739 | # endif |
| 740 | # include <string.h> |
| 741 | #endif |
| 742 | #if HAVE_STRINGS_H |
| 743 | # include <strings.h> |
| 744 | #endif |
| 745 | #if HAVE_INTTYPES_H |
| 746 | # include <inttypes.h> |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 747 | #endif |
| 748 | #if HAVE_STDINT_H |
| 749 | # include <stdint.h> |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 750 | #endif |
| 751 | #if HAVE_UNISTD_H |
| 752 | # include <unistd.h> |
| 753 | #endif" |
| 754 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 755 | ac_subst_vars='SHELL |
| 756 | PATH_SEPARATOR |
| 757 | PACKAGE_NAME |
| 758 | PACKAGE_TARNAME |
| 759 | PACKAGE_VERSION |
| 760 | PACKAGE_STRING |
| 761 | PACKAGE_BUGREPORT |
| 762 | exec_prefix |
| 763 | prefix |
| 764 | program_transform_name |
| 765 | bindir |
| 766 | sbindir |
| 767 | libexecdir |
| 768 | datarootdir |
| 769 | datadir |
| 770 | sysconfdir |
| 771 | sharedstatedir |
| 772 | localstatedir |
| 773 | includedir |
| 774 | oldincludedir |
| 775 | docdir |
| 776 | infodir |
| 777 | htmldir |
| 778 | dvidir |
| 779 | pdfdir |
| 780 | psdir |
| 781 | libdir |
| 782 | localedir |
| 783 | mandir |
| 784 | DEFS |
| 785 | ECHO_C |
| 786 | ECHO_N |
| 787 | ECHO_T |
| 788 | LIBS |
| 789 | build_alias |
| 790 | host_alias |
| 791 | target_alias |
| 792 | build |
| 793 | build_cpu |
| 794 | build_vendor |
| 795 | build_os |
| 796 | host |
| 797 | host_cpu |
| 798 | host_vendor |
| 799 | host_os |
| 800 | target |
| 801 | target_cpu |
| 802 | target_vendor |
| 803 | target_os |
| 804 | INSTALL_PROGRAM |
| 805 | INSTALL_SCRIPT |
| 806 | INSTALL_DATA |
| 807 | CYGPATH_W |
| 808 | PACKAGE |
| 809 | VERSION |
| 810 | ACLOCAL |
| 811 | AUTOCONF |
| 812 | AUTOMAKE |
| 813 | AUTOHEADER |
| 814 | MAKEINFO |
| 815 | install_sh |
| 816 | STRIP |
| 817 | INSTALL_STRIP_PROGRAM |
| 818 | mkdir_p |
| 819 | AWK |
| 820 | SET_MAKE |
| 821 | am__leading_dot |
| 822 | AMTAR |
| 823 | am__tar |
| 824 | am__untar |
| 825 | MAINTAINER_MODE_TRUE |
| 826 | MAINTAINER_MODE_FALSE |
| 827 | MAINT |
| 828 | CC |
| 829 | CFLAGS |
| 830 | LDFLAGS |
| 831 | CPPFLAGS |
| 832 | ac_ct_CC |
| 833 | EXEEXT |
| 834 | OBJEXT |
| 835 | DEPDIR |
| 836 | am__include |
| 837 | am__quote |
| 838 | AMDEP_TRUE |
| 839 | AMDEP_FALSE |
| 840 | AMDEPBACKSLASH |
| 841 | CCDEPMODE |
| 842 | am__fastdepCC_TRUE |
| 843 | am__fastdepCC_FALSE |
| 844 | GREP |
| 845 | EGREP |
| 846 | LN_S |
| 847 | ECHO |
| 848 | AR |
| 849 | RANLIB |
| 850 | CPP |
| 851 | CXX |
| 852 | CXXFLAGS |
| 853 | ac_ct_CXX |
| 854 | CXXDEPMODE |
| 855 | am__fastdepCXX_TRUE |
| 856 | am__fastdepCXX_FALSE |
| 857 | CXXCPP |
| 858 | F77 |
| 859 | FFLAGS |
| 860 | ac_ct_F77 |
| 861 | LIBTOOL |
| 862 | CONFIGURE_DEPENDS |
| 863 | YACC |
| 864 | YFLAGS |
| 865 | LEX |
| 866 | LEXLIB |
| 867 | LEX_OUTPUT_ROOT |
| 868 | ADD_CFLAGS |
| 869 | LIBOBJS |
| 870 | LTLIBOBJS' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 871 | ac_subst_files='' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 872 | ac_precious_vars='build_alias |
| 873 | host_alias |
| 874 | target_alias |
| 875 | CC |
| 876 | CFLAGS |
| 877 | LDFLAGS |
| 878 | CPPFLAGS |
| 879 | CPP |
| 880 | CXX |
| 881 | CXXFLAGS |
| 882 | CCC |
| 883 | CXXCPP |
| 884 | F77 |
| 885 | FFLAGS |
| 886 | YACC |
| 887 | YFLAGS' |
| 888 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 889 | |
| 890 | # Initialize some variables set by options. |
| 891 | ac_init_help= |
| 892 | ac_init_version=false |
| 893 | # The variables have the same names as the options, with |
| 894 | # dashes changed to underlines. |
| 895 | cache_file=/dev/null |
| 896 | exec_prefix=NONE |
| 897 | no_create= |
| 898 | no_recursion= |
| 899 | prefix=NONE |
| 900 | program_prefix=NONE |
| 901 | program_suffix=NONE |
| 902 | program_transform_name=s,x,x, |
| 903 | silent= |
| 904 | site= |
| 905 | srcdir= |
| 906 | verbose= |
| 907 | x_includes=NONE |
| 908 | x_libraries=NONE |
| 909 | |
| 910 | # Installation directory options. |
| 911 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 912 | # and all the variables that are supposed to be based on exec_prefix |
| 913 | # by default will actually change. |
| 914 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 915 | # (The list follows the same order as the GNU Coding Standards.) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 916 | bindir='${exec_prefix}/bin' |
| 917 | sbindir='${exec_prefix}/sbin' |
| 918 | libexecdir='${exec_prefix}/libexec' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 919 | datarootdir='${prefix}/share' |
| 920 | datadir='${datarootdir}' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 921 | sysconfdir='${prefix}/etc' |
| 922 | sharedstatedir='${prefix}/com' |
| 923 | localstatedir='${prefix}/var' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 924 | includedir='${prefix}/include' |
| 925 | oldincludedir='/usr/include' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 926 | docdir='${datarootdir}/doc/${PACKAGE}' |
| 927 | infodir='${datarootdir}/info' |
| 928 | htmldir='${docdir}' |
| 929 | dvidir='${docdir}' |
| 930 | pdfdir='${docdir}' |
| 931 | psdir='${docdir}' |
| 932 | libdir='${exec_prefix}/lib' |
| 933 | localedir='${datarootdir}/locale' |
| 934 | mandir='${datarootdir}/man' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 935 | |
| 936 | ac_prev= |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 937 | ac_dashdash= |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 938 | for ac_option |
| 939 | do |
| 940 | # If the previous option needs an argument, assign it. |
| 941 | if test -n "$ac_prev"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 942 | eval $ac_prev=\$ac_option |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 943 | ac_prev= |
| 944 | continue |
| 945 | fi |
| 946 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 947 | case $ac_option in |
| 948 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 949 | *) ac_optarg=yes ;; |
| 950 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 951 | |
| 952 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 953 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 954 | case $ac_dashdash$ac_option in |
| 955 | --) |
| 956 | ac_dashdash=yes ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 957 | |
| 958 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 959 | ac_prev=bindir ;; |
| 960 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 961 | bindir=$ac_optarg ;; |
| 962 | |
| 963 | -build | --build | --buil | --bui | --bu) |
| 964 | ac_prev=build_alias ;; |
| 965 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 966 | build_alias=$ac_optarg ;; |
| 967 | |
| 968 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 969 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 970 | ac_prev=cache_file ;; |
| 971 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 972 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 973 | cache_file=$ac_optarg ;; |
| 974 | |
| 975 | --config-cache | -C) |
| 976 | cache_file=config.cache ;; |
| 977 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 978 | -datadir | --datadir | --datadi | --datad) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 979 | ac_prev=datadir ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 980 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 981 | datadir=$ac_optarg ;; |
| 982 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 983 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 984 | | --dataroo | --dataro | --datar) |
| 985 | ac_prev=datarootdir ;; |
| 986 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 987 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 988 | datarootdir=$ac_optarg ;; |
| 989 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 990 | -disable-* | --disable-*) |
| 991 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 992 | # Reject names that are not valid shell variable names. |
| 993 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 994 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 995 | { (exit 1); exit 1; }; } |
| 996 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 997 | eval enable_$ac_feature=no ;; |
| 998 | |
| 999 | -docdir | --docdir | --docdi | --doc | --do) |
| 1000 | ac_prev=docdir ;; |
| 1001 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1002 | docdir=$ac_optarg ;; |
| 1003 | |
| 1004 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1005 | ac_prev=dvidir ;; |
| 1006 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1007 | dvidir=$ac_optarg ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1008 | |
| 1009 | -enable-* | --enable-*) |
| 1010 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 1011 | # Reject names that are not valid shell variable names. |
| 1012 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1013 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 1014 | { (exit 1); exit 1; }; } |
| 1015 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1016 | eval enable_$ac_feature=\$ac_optarg ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1017 | |
| 1018 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1019 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1020 | | --exec | --exe | --ex) |
| 1021 | ac_prev=exec_prefix ;; |
| 1022 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1023 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1024 | | --exec=* | --exe=* | --ex=*) |
| 1025 | exec_prefix=$ac_optarg ;; |
| 1026 | |
| 1027 | -gas | --gas | --ga | --g) |
| 1028 | # Obsolete; use --with-gas. |
| 1029 | with_gas=yes ;; |
| 1030 | |
| 1031 | -help | --help | --hel | --he | -h) |
| 1032 | ac_init_help=long ;; |
| 1033 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1034 | ac_init_help=recursive ;; |
| 1035 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1036 | ac_init_help=short ;; |
| 1037 | |
| 1038 | -host | --host | --hos | --ho) |
| 1039 | ac_prev=host_alias ;; |
| 1040 | -host=* | --host=* | --hos=* | --ho=*) |
| 1041 | host_alias=$ac_optarg ;; |
| 1042 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1043 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1044 | ac_prev=htmldir ;; |
| 1045 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1046 | | --ht=*) |
| 1047 | htmldir=$ac_optarg ;; |
| 1048 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1049 | -includedir | --includedir | --includedi | --included | --include \ |
| 1050 | | --includ | --inclu | --incl | --inc) |
| 1051 | ac_prev=includedir ;; |
| 1052 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1053 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1054 | includedir=$ac_optarg ;; |
| 1055 | |
| 1056 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1057 | ac_prev=infodir ;; |
| 1058 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1059 | infodir=$ac_optarg ;; |
| 1060 | |
| 1061 | -libdir | --libdir | --libdi | --libd) |
| 1062 | ac_prev=libdir ;; |
| 1063 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1064 | libdir=$ac_optarg ;; |
| 1065 | |
| 1066 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1067 | | --libexe | --libex | --libe) |
| 1068 | ac_prev=libexecdir ;; |
| 1069 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1070 | | --libexe=* | --libex=* | --libe=*) |
| 1071 | libexecdir=$ac_optarg ;; |
| 1072 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1073 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1074 | ac_prev=localedir ;; |
| 1075 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1076 | localedir=$ac_optarg ;; |
| 1077 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1078 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1079 | | --localstate | --localstat | --localsta | --localst | --locals) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1080 | ac_prev=localstatedir ;; |
| 1081 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1082 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1083 | localstatedir=$ac_optarg ;; |
| 1084 | |
| 1085 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1086 | ac_prev=mandir ;; |
| 1087 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1088 | mandir=$ac_optarg ;; |
| 1089 | |
| 1090 | -nfp | --nfp | --nf) |
| 1091 | # Obsolete; use --without-fp. |
| 1092 | with_fp=no ;; |
| 1093 | |
| 1094 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1095 | | --no-cr | --no-c | -n) |
| 1096 | no_create=yes ;; |
| 1097 | |
| 1098 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1099 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1100 | no_recursion=yes ;; |
| 1101 | |
| 1102 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1103 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1104 | | --oldin | --oldi | --old | --ol | --o) |
| 1105 | ac_prev=oldincludedir ;; |
| 1106 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1107 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1108 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1109 | oldincludedir=$ac_optarg ;; |
| 1110 | |
| 1111 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1112 | ac_prev=prefix ;; |
| 1113 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1114 | prefix=$ac_optarg ;; |
| 1115 | |
| 1116 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1117 | | --program-pre | --program-pr | --program-p) |
| 1118 | ac_prev=program_prefix ;; |
| 1119 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1120 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1121 | program_prefix=$ac_optarg ;; |
| 1122 | |
| 1123 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1124 | | --program-suf | --program-su | --program-s) |
| 1125 | ac_prev=program_suffix ;; |
| 1126 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1127 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1128 | program_suffix=$ac_optarg ;; |
| 1129 | |
| 1130 | -program-transform-name | --program-transform-name \ |
| 1131 | | --program-transform-nam | --program-transform-na \ |
| 1132 | | --program-transform-n | --program-transform- \ |
| 1133 | | --program-transform | --program-transfor \ |
| 1134 | | --program-transfo | --program-transf \ |
| 1135 | | --program-trans | --program-tran \ |
| 1136 | | --progr-tra | --program-tr | --program-t) |
| 1137 | ac_prev=program_transform_name ;; |
| 1138 | -program-transform-name=* | --program-transform-name=* \ |
| 1139 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1140 | | --program-transform-n=* | --program-transform-=* \ |
| 1141 | | --program-transform=* | --program-transfor=* \ |
| 1142 | | --program-transfo=* | --program-transf=* \ |
| 1143 | | --program-trans=* | --program-tran=* \ |
| 1144 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1145 | program_transform_name=$ac_optarg ;; |
| 1146 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1147 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1148 | ac_prev=pdfdir ;; |
| 1149 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1150 | pdfdir=$ac_optarg ;; |
| 1151 | |
| 1152 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1153 | ac_prev=psdir ;; |
| 1154 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1155 | psdir=$ac_optarg ;; |
| 1156 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1157 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1158 | | -silent | --silent | --silen | --sile | --sil) |
| 1159 | silent=yes ;; |
| 1160 | |
| 1161 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1162 | ac_prev=sbindir ;; |
| 1163 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1164 | | --sbi=* | --sb=*) |
| 1165 | sbindir=$ac_optarg ;; |
| 1166 | |
| 1167 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1168 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1169 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1170 | | --sha | --sh) |
| 1171 | ac_prev=sharedstatedir ;; |
| 1172 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1173 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1174 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1175 | | --sha=* | --sh=*) |
| 1176 | sharedstatedir=$ac_optarg ;; |
| 1177 | |
| 1178 | -site | --site | --sit) |
| 1179 | ac_prev=site ;; |
| 1180 | -site=* | --site=* | --sit=*) |
| 1181 | site=$ac_optarg ;; |
| 1182 | |
| 1183 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1184 | ac_prev=srcdir ;; |
| 1185 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1186 | srcdir=$ac_optarg ;; |
| 1187 | |
| 1188 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1189 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1190 | ac_prev=sysconfdir ;; |
| 1191 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1192 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1193 | sysconfdir=$ac_optarg ;; |
| 1194 | |
| 1195 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1196 | ac_prev=target_alias ;; |
| 1197 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1198 | target_alias=$ac_optarg ;; |
| 1199 | |
| 1200 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1201 | verbose=yes ;; |
| 1202 | |
| 1203 | -version | --version | --versio | --versi | --vers | -V) |
| 1204 | ac_init_version=: ;; |
| 1205 | |
| 1206 | -with-* | --with-*) |
| 1207 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1208 | # Reject names that are not valid shell variable names. |
| 1209 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1210 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1211 | { (exit 1); exit 1; }; } |
| 1212 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1213 | eval with_$ac_package=\$ac_optarg ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1214 | |
| 1215 | -without-* | --without-*) |
| 1216 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1217 | # Reject names that are not valid shell variable names. |
| 1218 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1219 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1220 | { (exit 1); exit 1; }; } |
| 1221 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1222 | eval with_$ac_package=no ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1223 | |
| 1224 | --x) |
| 1225 | # Obsolete; use --with-x. |
| 1226 | with_x=yes ;; |
| 1227 | |
| 1228 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1229 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1230 | ac_prev=x_includes ;; |
| 1231 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1232 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1233 | x_includes=$ac_optarg ;; |
| 1234 | |
| 1235 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1236 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1237 | ac_prev=x_libraries ;; |
| 1238 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1239 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1240 | x_libraries=$ac_optarg ;; |
| 1241 | |
| 1242 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1243 | Try \`$0 --help' for more information." >&2 |
| 1244 | { (exit 1); exit 1; }; } |
| 1245 | ;; |
| 1246 | |
| 1247 | *=*) |
| 1248 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1249 | # Reject names that are not valid shell variable names. |
| 1250 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1251 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1252 | { (exit 1); exit 1; }; } |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1253 | eval $ac_envvar=\$ac_optarg |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1254 | export $ac_envvar ;; |
| 1255 | |
| 1256 | *) |
| 1257 | # FIXME: should be removed in autoconf 3.0. |
| 1258 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1259 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1260 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1261 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1262 | ;; |
| 1263 | |
| 1264 | esac |
| 1265 | done |
| 1266 | |
| 1267 | if test -n "$ac_prev"; then |
| 1268 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1269 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1270 | { (exit 1); exit 1; }; } |
| 1271 | fi |
| 1272 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1273 | # Be sure to have absolute directory names. |
| 1274 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1275 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1276 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1277 | libdir localedir mandir |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1278 | do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1279 | eval ac_val=\$$ac_var |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1280 | case $ac_val in |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1281 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1282 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1283 | esac |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1284 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1285 | { (exit 1); exit 1; }; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1286 | done |
| 1287 | |
| 1288 | # There might be people who depend on the old broken behavior: `$host' |
| 1289 | # used to hold the argument of --host etc. |
| 1290 | # FIXME: To remove some day. |
| 1291 | build=$build_alias |
| 1292 | host=$host_alias |
| 1293 | target=$target_alias |
| 1294 | |
| 1295 | # FIXME: To remove some day. |
| 1296 | if test "x$host_alias" != x; then |
| 1297 | if test "x$build_alias" = x; then |
| 1298 | cross_compiling=maybe |
| 1299 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1300 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1301 | elif test "x$build_alias" != "x$host_alias"; then |
| 1302 | cross_compiling=yes |
| 1303 | fi |
| 1304 | fi |
| 1305 | |
| 1306 | ac_tool_prefix= |
| 1307 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1308 | |
| 1309 | test "$silent" = yes && exec 6>/dev/null |
| 1310 | |
| 1311 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1312 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1313 | ac_ls_di=`ls -di .` && |
| 1314 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1315 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1316 | { (exit 1); exit 1; }; } |
| 1317 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1318 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1319 | { (exit 1); exit 1; }; } |
| 1320 | |
| 1321 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1322 | # Find the source files, if location was not specified. |
| 1323 | if test -z "$srcdir"; then |
| 1324 | ac_srcdir_defaulted=yes |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1325 | # Try the directory containing this script, then the parent directory. |
| 1326 | ac_confdir=`$as_dirname -- "$0" || |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1327 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1328 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1329 | X"$0" : 'X\(//\)$' \| \ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1330 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1331 | echo X"$0" | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1332 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1333 | s//\1/ |
| 1334 | q |
| 1335 | } |
| 1336 | /^X\(\/\/\)[^/].*/{ |
| 1337 | s//\1/ |
| 1338 | q |
| 1339 | } |
| 1340 | /^X\(\/\/\)$/{ |
| 1341 | s//\1/ |
| 1342 | q |
| 1343 | } |
| 1344 | /^X\(\/\).*/{ |
| 1345 | s//\1/ |
| 1346 | q |
| 1347 | } |
| 1348 | s/.*/./; q'` |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1349 | srcdir=$ac_confdir |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1350 | if test ! -r "$srcdir/$ac_unique_file"; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1351 | srcdir=.. |
| 1352 | fi |
| 1353 | else |
| 1354 | ac_srcdir_defaulted=no |
| 1355 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1356 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1357 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1358 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1359 | { (exit 1); exit 1; }; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1360 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1361 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1362 | ac_abs_confdir=`( |
| 1363 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1364 | { (exit 1); exit 1; }; } |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1365 | pwd)` |
| 1366 | # When building in place, set srcdir=. |
| 1367 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1368 | srcdir=. |
| 1369 | fi |
| 1370 | # Remove unnecessary trailing slashes from srcdir. |
| 1371 | # Double slashes in file names in object file debugging info |
| 1372 | # mess up M-x gdb in Emacs. |
| 1373 | case $srcdir in |
| 1374 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1375 | esac |
| 1376 | for ac_var in $ac_precious_vars; do |
| 1377 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1378 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1379 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1380 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1381 | done |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1382 | |
| 1383 | # |
| 1384 | # Report the --help message. |
| 1385 | # |
| 1386 | if test "$ac_init_help" = "long"; then |
| 1387 | # Omit some internal or obsolete options to make the list less imposing. |
| 1388 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1389 | cat <<_ACEOF |
| 1390 | \`configure' configures this package to adapt to many kinds of systems. |
| 1391 | |
| 1392 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1393 | |
| 1394 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1395 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1396 | |
| 1397 | Defaults for the options are specified in brackets. |
| 1398 | |
| 1399 | Configuration: |
| 1400 | -h, --help display this help and exit |
| 1401 | --help=short display options specific to this package |
| 1402 | --help=recursive display the short help of all the included packages |
| 1403 | -V, --version display version information and exit |
| 1404 | -q, --quiet, --silent do not print \`checking...' messages |
| 1405 | --cache-file=FILE cache test results in FILE [disabled] |
| 1406 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1407 | -n, --no-create do not create output files |
| 1408 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1409 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1410 | Installation directories: |
| 1411 | --prefix=PREFIX install architecture-independent files in PREFIX |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1412 | [$ac_default_prefix] |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1413 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1414 | [PREFIX] |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1415 | |
| 1416 | By default, \`make install' will install all the files in |
| 1417 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1418 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1419 | for instance \`--prefix=\$HOME'. |
| 1420 | |
| 1421 | For better control, use the options below. |
| 1422 | |
| 1423 | Fine tuning of the installation directories: |
| 1424 | --bindir=DIR user executables [EPREFIX/bin] |
| 1425 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1426 | --libexecdir=DIR program executables [EPREFIX/libexec] |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1427 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1428 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1429 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1430 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1431 | --includedir=DIR C header files [PREFIX/include] |
| 1432 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1433 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1434 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1435 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1436 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1437 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1438 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
| 1439 | --htmldir=DIR html documentation [DOCDIR] |
| 1440 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1441 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1442 | --psdir=DIR ps documentation [DOCDIR] |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1443 | _ACEOF |
| 1444 | |
| 1445 | cat <<\_ACEOF |
| 1446 | |
| 1447 | Program names: |
| 1448 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1449 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1450 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1451 | |
| 1452 | System types: |
| 1453 | --build=BUILD configure for building on BUILD [guessed] |
| 1454 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1455 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1456 | _ACEOF |
| 1457 | fi |
| 1458 | |
| 1459 | if test -n "$ac_init_help"; then |
| 1460 | |
| 1461 | cat <<\_ACEOF |
| 1462 | |
| 1463 | Optional Features: |
| 1464 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1465 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1466 | --enable-maintainer-mode enable make rules and dependencies not useful |
| 1467 | (and sometimes confusing) to the casual installer |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1468 | --enable-shared[=PKGS] build shared libraries [default=yes] |
| 1469 | --enable-static[=PKGS] build static libraries [default=yes] |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1470 | --enable-fast-install[=PKGS] |
| 1471 | optimize for fast installation [default=yes] |
| 1472 | --disable-dependency-tracking speeds up one-time build |
| 1473 | --enable-dependency-tracking do not reject slow dependency extractors |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1474 | --disable-libtool-lock avoid locking (might break parallel builds) |
| 1475 | --disable-autoconf disable automatic generation of configure script |
| 1476 | --enable-Werror abort compilation after any C compiler warning |
| 1477 | |
| 1478 | Optional Packages: |
| 1479 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1480 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1481 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1482 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1483 | both] |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1484 | --with-tags[=TAGS] include additional configurations [automatic] |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1485 | |
| 1486 | Some influential environment variables: |
| 1487 | CC C compiler command |
| 1488 | CFLAGS C compiler flags |
| 1489 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1490 | nonstandard directory <lib dir> |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1491 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1492 | you have headers in a nonstandard directory <include dir> |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1493 | CPP C preprocessor |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1494 | CXX C++ compiler command |
| 1495 | CXXFLAGS C++ compiler flags |
| 1496 | CXXCPP C++ preprocessor |
| 1497 | F77 Fortran 77 compiler command |
| 1498 | FFLAGS Fortran 77 compiler flags |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1499 | YACC The `Yet Another C Compiler' implementation to use. Defaults to |
| 1500 | the first program found out of: `bison -y', `byacc', `yacc'. |
| 1501 | YFLAGS The list of arguments that will be passed by default to $YACC. |
| 1502 | This script will default YFLAGS to the empty string to avoid a |
| 1503 | default value of `-d' given by some make applications. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1504 | |
| 1505 | Use these variables to override the choices made by `configure' or to help |
| 1506 | it to find libraries and programs with nonstandard names/locations. |
| 1507 | |
| 1508 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1509 | ac_status=$? |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1510 | fi |
| 1511 | |
| 1512 | if test "$ac_init_help" = "recursive"; then |
| 1513 | # If there are subdirs, report their specific --help. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1514 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1515 | test -d "$ac_dir" || continue |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1516 | ac_builddir=. |
| 1517 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1518 | case "$ac_dir" in |
| 1519 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1520 | *) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1521 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1522 | # A ".." for each directory in $ac_dir_suffix. |
| 1523 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1524 | case $ac_top_builddir_sub in |
| 1525 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1526 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1527 | esac ;; |
| 1528 | esac |
| 1529 | ac_abs_top_builddir=$ac_pwd |
| 1530 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1531 | # for backward compatibility: |
| 1532 | ac_top_builddir=$ac_top_build_prefix |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1533 | |
| 1534 | case $srcdir in |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1535 | .) # We are building in place. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1536 | ac_srcdir=. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1537 | ac_top_srcdir=$ac_top_builddir_sub |
| 1538 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1539 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1540 | ac_srcdir=$srcdir$ac_dir_suffix; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1541 | ac_top_srcdir=$srcdir |
| 1542 | ac_abs_top_srcdir=$srcdir ;; |
| 1543 | *) # Relative name. |
| 1544 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1545 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1546 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1547 | esac |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1548 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1549 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1550 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1551 | # Check for guested configure. |
| 1552 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1553 | echo && |
| 1554 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1555 | elif test -f "$ac_srcdir/configure"; then |
| 1556 | echo && |
| 1557 | $SHELL "$ac_srcdir/configure" --help=recursive |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1558 | else |
| 1559 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1560 | fi || ac_status=$? |
| 1561 | cd "$ac_pwd" || { ac_status=$?; break; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1562 | done |
| 1563 | fi |
| 1564 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1565 | test -n "$ac_init_help" && exit $ac_status |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1566 | if $ac_init_version; then |
| 1567 | cat <<\_ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1568 | configure |
| 1569 | generated by GNU Autoconf 2.60 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1570 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1571 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1572 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1573 | This configure script is free software; the Free Software Foundation |
| 1574 | gives unlimited permission to copy, distribute and modify it. |
| 1575 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1576 | exit |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1577 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1578 | cat >config.log <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1579 | This file contains any messages produced by compilers while |
| 1580 | running configure, to aid debugging if configure makes a mistake. |
| 1581 | |
| 1582 | It was created by $as_me, which was |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1583 | generated by GNU Autoconf 2.60. Invocation command line was |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1584 | |
| 1585 | $ $0 $@ |
| 1586 | |
| 1587 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1588 | exec 5>>config.log |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1589 | { |
| 1590 | cat <<_ASUNAME |
| 1591 | ## --------- ## |
| 1592 | ## Platform. ## |
| 1593 | ## --------- ## |
| 1594 | |
| 1595 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1596 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1597 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1598 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1599 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1600 | |
| 1601 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1602 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1603 | |
| 1604 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1605 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1606 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1607 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1608 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1609 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1610 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1611 | |
| 1612 | _ASUNAME |
| 1613 | |
| 1614 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1615 | for as_dir in $PATH |
| 1616 | do |
| 1617 | IFS=$as_save_IFS |
| 1618 | test -z "$as_dir" && as_dir=. |
| 1619 | echo "PATH: $as_dir" |
| 1620 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1621 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1622 | |
| 1623 | } >&5 |
| 1624 | |
| 1625 | cat >&5 <<_ACEOF |
| 1626 | |
| 1627 | |
| 1628 | ## ----------- ## |
| 1629 | ## Core tests. ## |
| 1630 | ## ----------- ## |
| 1631 | |
| 1632 | _ACEOF |
| 1633 | |
| 1634 | |
| 1635 | # Keep a trace of the command line. |
| 1636 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1637 | # Strip out --silent because we don't want to record it for future runs. |
| 1638 | # Also quote any args containing shell meta-characters. |
| 1639 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1640 | ac_configure_args= |
| 1641 | ac_configure_args0= |
| 1642 | ac_configure_args1= |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1643 | ac_must_keep_next=false |
| 1644 | for ac_pass in 1 2 |
| 1645 | do |
| 1646 | for ac_arg |
| 1647 | do |
| 1648 | case $ac_arg in |
| 1649 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1650 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1651 | | -silent | --silent | --silen | --sile | --sil) |
| 1652 | continue ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1653 | *\'*) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1654 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1655 | esac |
| 1656 | case $ac_pass in |
| 1657 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1658 | 2) |
| 1659 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1660 | if test $ac_must_keep_next = true; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1661 | ac_must_keep_next=false # Got value, back to normal. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1662 | else |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1663 | case $ac_arg in |
| 1664 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1665 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1666 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1667 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1668 | case "$ac_configure_args0 " in |
| 1669 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1670 | esac |
| 1671 | ;; |
| 1672 | -* ) ac_must_keep_next=true ;; |
| 1673 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1674 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1675 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1676 | ;; |
| 1677 | esac |
| 1678 | done |
| 1679 | done |
| 1680 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1681 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1682 | |
| 1683 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1684 | # config.log. We remove comments because anyway the quotes in there |
| 1685 | # would cause problems or look ugly. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1686 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1687 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1688 | trap 'exit_status=$? |
| 1689 | # Save into config.log some information that might help in debugging. |
| 1690 | { |
| 1691 | echo |
| 1692 | |
| 1693 | cat <<\_ASBOX |
| 1694 | ## ---------------- ## |
| 1695 | ## Cache variables. ## |
| 1696 | ## ---------------- ## |
| 1697 | _ASBOX |
| 1698 | echo |
| 1699 | # The following way of writing the cache mishandles newlines in values, |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1700 | ( |
| 1701 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1702 | eval ac_val=\$$ac_var |
| 1703 | case $ac_val in #( |
| 1704 | *${as_nl}*) |
| 1705 | case $ac_var in #( |
| 1706 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1707 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1708 | esac |
| 1709 | case $ac_var in #( |
| 1710 | _ | IFS | as_nl) ;; #( |
| 1711 | *) $as_unset $ac_var ;; |
| 1712 | esac ;; |
| 1713 | esac |
| 1714 | done |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1715 | (set) 2>&1 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1716 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1717 | *${as_nl}ac_space=\ *) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1718 | sed -n \ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1719 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1720 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1721 | ;; #( |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1722 | *) |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1723 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1724 | ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1725 | esac | |
| 1726 | sort |
| 1727 | ) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1728 | echo |
| 1729 | |
| 1730 | cat <<\_ASBOX |
| 1731 | ## ----------------- ## |
| 1732 | ## Output variables. ## |
| 1733 | ## ----------------- ## |
| 1734 | _ASBOX |
| 1735 | echo |
| 1736 | for ac_var in $ac_subst_vars |
| 1737 | do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1738 | eval ac_val=\$$ac_var |
| 1739 | case $ac_val in |
| 1740 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1741 | esac |
| 1742 | echo "$ac_var='\''$ac_val'\''" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1743 | done | sort |
| 1744 | echo |
| 1745 | |
| 1746 | if test -n "$ac_subst_files"; then |
| 1747 | cat <<\_ASBOX |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1748 | ## ------------------- ## |
| 1749 | ## File substitutions. ## |
| 1750 | ## ------------------- ## |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1751 | _ASBOX |
| 1752 | echo |
| 1753 | for ac_var in $ac_subst_files |
| 1754 | do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1755 | eval ac_val=\$$ac_var |
| 1756 | case $ac_val in |
| 1757 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1758 | esac |
| 1759 | echo "$ac_var='\''$ac_val'\''" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1760 | done | sort |
| 1761 | echo |
| 1762 | fi |
| 1763 | |
| 1764 | if test -s confdefs.h; then |
| 1765 | cat <<\_ASBOX |
| 1766 | ## ----------- ## |
| 1767 | ## confdefs.h. ## |
| 1768 | ## ----------- ## |
| 1769 | _ASBOX |
| 1770 | echo |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1771 | cat confdefs.h |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1772 | echo |
| 1773 | fi |
| 1774 | test "$ac_signal" != 0 && |
| 1775 | echo "$as_me: caught signal $ac_signal" |
| 1776 | echo "$as_me: exit $exit_status" |
| 1777 | } >&5 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1778 | rm -f core *.core core.conftest.* && |
| 1779 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1780 | exit $exit_status |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1781 | ' 0 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1782 | for ac_signal in 1 2 13 15; do |
| 1783 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1784 | done |
| 1785 | ac_signal=0 |
| 1786 | |
| 1787 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1788 | rm -f -r conftest* confdefs.h |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1789 | |
| 1790 | # Predefined preprocessor variables. |
| 1791 | |
| 1792 | cat >>confdefs.h <<_ACEOF |
| 1793 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1794 | _ACEOF |
| 1795 | |
| 1796 | |
| 1797 | cat >>confdefs.h <<_ACEOF |
| 1798 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1799 | _ACEOF |
| 1800 | |
| 1801 | |
| 1802 | cat >>confdefs.h <<_ACEOF |
| 1803 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1804 | _ACEOF |
| 1805 | |
| 1806 | |
| 1807 | cat >>confdefs.h <<_ACEOF |
| 1808 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1809 | _ACEOF |
| 1810 | |
| 1811 | |
| 1812 | cat >>confdefs.h <<_ACEOF |
| 1813 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1814 | _ACEOF |
| 1815 | |
| 1816 | |
| 1817 | # Let the site file select an alternate cache file if it wants to. |
| 1818 | # Prefer explicitly selected file to automatically selected ones. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1819 | if test -n "$CONFIG_SITE"; then |
| 1820 | set x "$CONFIG_SITE" |
| 1821 | elif test "x$prefix" != xNONE; then |
| 1822 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1823 | else |
| 1824 | set x "$ac_default_prefix/share/config.site" \ |
| 1825 | "$ac_default_prefix/etc/config.site" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1826 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1827 | shift |
| 1828 | for ac_site_file |
| 1829 | do |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1830 | if test -r "$ac_site_file"; then |
| 1831 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1832 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1833 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1834 | . "$ac_site_file" |
| 1835 | fi |
| 1836 | done |
| 1837 | |
| 1838 | if test -r "$cache_file"; then |
| 1839 | # Some versions of bash will fail to source /dev/null (special |
| 1840 | # files actually), so we avoid doing that. |
| 1841 | if test -f "$cache_file"; then |
| 1842 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1843 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1844 | case $cache_file in |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1845 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1846 | *) . "./$cache_file";; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1847 | esac |
| 1848 | fi |
| 1849 | else |
| 1850 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1851 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1852 | >$cache_file |
| 1853 | fi |
| 1854 | |
| 1855 | # Check that the precious variables saved in the cache have kept the same |
| 1856 | # value. |
| 1857 | ac_cache_corrupted=false |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1858 | for ac_var in $ac_precious_vars; do |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1859 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1860 | eval ac_new_set=\$ac_env_${ac_var}_set |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1861 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1862 | eval ac_new_val=\$ac_env_${ac_var}_value |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1863 | case $ac_old_set,$ac_new_set in |
| 1864 | set,) |
| 1865 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1866 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1867 | ac_cache_corrupted=: ;; |
| 1868 | ,set) |
| 1869 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1870 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1871 | ac_cache_corrupted=: ;; |
| 1872 | ,);; |
| 1873 | *) |
| 1874 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1875 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1876 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1877 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1878 | echo "$as_me: former value: $ac_old_val" >&2;} |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1879 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1880 | echo "$as_me: current value: $ac_new_val" >&2;} |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1881 | ac_cache_corrupted=: |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1882 | fi;; |
| 1883 | esac |
| 1884 | # Pass precious variables to config.status. |
| 1885 | if test "$ac_new_set" = set; then |
| 1886 | case $ac_new_val in |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1887 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1888 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1889 | esac |
| 1890 | case " $ac_configure_args " in |
| 1891 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1892 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1893 | esac |
| 1894 | fi |
| 1895 | done |
| 1896 | if $ac_cache_corrupted; then |
| 1897 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1898 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1899 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1900 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1901 | { (exit 1); exit 1; }; } |
| 1902 | fi |
| 1903 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1904 | |
| 1905 | |
| 1906 | |
| 1907 | |
| 1908 | |
| 1909 | |
| 1910 | |
| 1911 | |
| 1912 | |
| 1913 | |
| 1914 | |
| 1915 | |
| 1916 | |
| 1917 | |
| 1918 | |
| 1919 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1920 | ac_ext=c |
| 1921 | ac_cpp='$CPP $CPPFLAGS' |
| 1922 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1923 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1924 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1925 | |
| 1926 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1927 | ac_aux_dir= |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1928 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 1929 | if test -f "$ac_dir/install-sh"; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1930 | ac_aux_dir=$ac_dir |
| 1931 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1932 | break |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1933 | elif test -f "$ac_dir/install.sh"; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1934 | ac_aux_dir=$ac_dir |
| 1935 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1936 | break |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1937 | elif test -f "$ac_dir/shtool"; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1938 | ac_aux_dir=$ac_dir |
| 1939 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1940 | break |
| 1941 | fi |
| 1942 | done |
| 1943 | if test -z "$ac_aux_dir"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1944 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
| 1945 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1946 | { (exit 1); exit 1; }; } |
| 1947 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1948 | |
| 1949 | # These three variables are undocumented and unsupported, |
| 1950 | # and are intended to be withdrawn in a future Autoconf release. |
| 1951 | # They can cause serious problems if a builder's source tree is in a directory |
| 1952 | # whose full name contains unusual characters. |
| 1953 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1954 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1955 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1956 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1957 | |
| 1958 | # Make sure we can run config.sub. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1959 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 1960 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 1961 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1962 | { (exit 1); exit 1; }; } |
| 1963 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1964 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 1965 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1966 | if test "${ac_cv_build+set}" = set; then |
| 1967 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1968 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1969 | ac_build_alias=$build_alias |
| 1970 | test "x$ac_build_alias" = x && |
| 1971 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 1972 | test "x$ac_build_alias" = x && |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1973 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 1974 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1975 | { (exit 1); exit 1; }; } |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1976 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 1977 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 1978 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1979 | { (exit 1); exit 1; }; } |
| 1980 | |
| 1981 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1982 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1983 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 1984 | case $ac_cv_build in |
| 1985 | *-*-*) ;; |
| 1986 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 1987 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 1988 | { (exit 1); exit 1; }; };; |
| 1989 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1990 | build=$ac_cv_build |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1991 | ac_save_IFS=$IFS; IFS='-' |
| 1992 | set x $ac_cv_build |
| 1993 | shift |
| 1994 | build_cpu=$1 |
| 1995 | build_vendor=$2 |
| 1996 | shift; shift |
| 1997 | # Remember, the first character of IFS is used to create $*, |
| 1998 | # except with old shells: |
| 1999 | build_os=$* |
| 2000 | IFS=$ac_save_IFS |
| 2001 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2002 | |
| 2003 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2004 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 2005 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2006 | if test "${ac_cv_host+set}" = set; then |
| 2007 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2008 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2009 | if test "x$host_alias" = x; then |
| 2010 | ac_cv_host=$ac_cv_build |
| 2011 | else |
| 2012 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 2013 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 2014 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2015 | { (exit 1); exit 1; }; } |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2016 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2017 | |
| 2018 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2019 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 2020 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 2021 | case $ac_cv_host in |
| 2022 | *-*-*) ;; |
| 2023 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 2024 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 2025 | { (exit 1); exit 1; }; };; |
| 2026 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2027 | host=$ac_cv_host |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2028 | ac_save_IFS=$IFS; IFS='-' |
| 2029 | set x $ac_cv_host |
| 2030 | shift |
| 2031 | host_cpu=$1 |
| 2032 | host_vendor=$2 |
| 2033 | shift; shift |
| 2034 | # Remember, the first character of IFS is used to create $*, |
| 2035 | # except with old shells: |
| 2036 | host_os=$* |
| 2037 | IFS=$ac_save_IFS |
| 2038 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2039 | |
| 2040 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2041 | { echo "$as_me:$LINENO: checking target system type" >&5 |
| 2042 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2043 | if test "${ac_cv_target+set}" = set; then |
| 2044 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2045 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2046 | if test "x$target_alias" = x; then |
| 2047 | ac_cv_target=$ac_cv_host |
| 2048 | else |
| 2049 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
| 2050 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
| 2051 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2052 | { (exit 1); exit 1; }; } |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2053 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2054 | |
| 2055 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2056 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 2057 | echo "${ECHO_T}$ac_cv_target" >&6; } |
| 2058 | case $ac_cv_target in |
| 2059 | *-*-*) ;; |
| 2060 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
| 2061 | echo "$as_me: error: invalid value of canonical target" >&2;} |
| 2062 | { (exit 1); exit 1; }; };; |
| 2063 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2064 | target=$ac_cv_target |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2065 | ac_save_IFS=$IFS; IFS='-' |
| 2066 | set x $ac_cv_target |
| 2067 | shift |
| 2068 | target_cpu=$1 |
| 2069 | target_vendor=$2 |
| 2070 | shift; shift |
| 2071 | # Remember, the first character of IFS is used to create $*, |
| 2072 | # except with old shells: |
| 2073 | target_os=$* |
| 2074 | IFS=$ac_save_IFS |
| 2075 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2076 | |
| 2077 | |
| 2078 | # The aliases save the names the user supplied, while $host etc. |
| 2079 | # will get canonicalized. |
| 2080 | test -n "$target_alias" && |
| 2081 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 2082 | NONENONEs,x,x, && |
| 2083 | program_prefix=${target_alias}- |
| 2084 | |
Lev Walkin | c46b7cb | 2006-08-18 02:27:55 +0000 | [diff] [blame] | 2085 | am__api_version="1.9" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2086 | # Find a good install program. We prefer a C program (faster), |
| 2087 | # so one script is as good as another. But avoid the broken or |
| 2088 | # incompatible versions: |
| 2089 | # SysV /etc/install, /usr/sbin/install |
| 2090 | # SunOS /usr/etc/install |
| 2091 | # IRIX /sbin/install |
| 2092 | # AIX /bin/install |
| 2093 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 2094 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 2095 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 2096 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2097 | # OS/2's system install, which has a completely different semantic |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2098 | # ./install, which can be erroneously created by make from ./install.sh. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2099 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 2100 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2101 | if test -z "$INSTALL"; then |
| 2102 | if test "${ac_cv_path_install+set}" = set; then |
| 2103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2104 | else |
| 2105 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2106 | for as_dir in $PATH |
| 2107 | do |
| 2108 | IFS=$as_save_IFS |
| 2109 | test -z "$as_dir" && as_dir=. |
| 2110 | # Account for people who put trailing slashes in PATH elements. |
| 2111 | case $as_dir/ in |
| 2112 | ./ | .// | /cC/* | \ |
| 2113 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2114 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2115 | /usr/ucb/* ) ;; |
| 2116 | *) |
| 2117 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 2118 | # Don't use installbsd from OSF since it installs stuff as root |
| 2119 | # by default. |
| 2120 | for ac_prog in ginstall scoinst install; do |
| 2121 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2122 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2123 | if test $ac_prog = install && |
| 2124 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2125 | # AIX install. It has an incompatible calling convention. |
| 2126 | : |
| 2127 | elif test $ac_prog = install && |
| 2128 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2129 | # program-specific install script used by HP pwplus--don't use. |
| 2130 | : |
| 2131 | else |
| 2132 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 2133 | break 3 |
| 2134 | fi |
| 2135 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2136 | done |
| 2137 | done |
| 2138 | ;; |
| 2139 | esac |
| 2140 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2141 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2142 | |
| 2143 | |
| 2144 | fi |
| 2145 | if test "${ac_cv_path_install+set}" = set; then |
| 2146 | INSTALL=$ac_cv_path_install |
| 2147 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2148 | # As a last resort, use the slow shell script. Don't cache a |
| 2149 | # value for INSTALL within a source directory, because that will |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2150 | # break other packages using the cache if that directory is |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2151 | # removed, or if the value is a relative name. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2152 | INSTALL=$ac_install_sh |
| 2153 | fi |
| 2154 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2155 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 2156 | echo "${ECHO_T}$INSTALL" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2157 | |
| 2158 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2159 | # It thinks the first close brace ends the variable substitution. |
| 2160 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2161 | |
| 2162 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 2163 | |
| 2164 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2165 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2166 | { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
| 2167 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2168 | # Just in case |
| 2169 | sleep 1 |
| 2170 | echo timestamp > conftest.file |
| 2171 | # Do `set' in a subshell so we don't clobber the current shell's |
| 2172 | # arguments. Must try -L first in case configure is actually a |
| 2173 | # symlink; some systems play weird games with the mod time of symlinks |
| 2174 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 2175 | # directory). |
| 2176 | if ( |
| 2177 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
| 2178 | if test "$*" = "X"; then |
| 2179 | # -L didn't work. |
| 2180 | set X `ls -t $srcdir/configure conftest.file` |
| 2181 | fi |
| 2182 | rm -f conftest.file |
| 2183 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 2184 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 2185 | |
| 2186 | # If neither matched, then we have a broken ls. This can happen |
| 2187 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 2188 | # broken ls alias from the environment. This has actually |
| 2189 | # happened. Such a system could not be considered "sane". |
| 2190 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
| 2191 | alias in your environment" >&5 |
| 2192 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
| 2193 | alias in your environment" >&2;} |
| 2194 | { (exit 1); exit 1; }; } |
| 2195 | fi |
| 2196 | |
| 2197 | test "$2" = conftest.file |
| 2198 | ) |
| 2199 | then |
| 2200 | # Ok. |
| 2201 | : |
| 2202 | else |
| 2203 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
| 2204 | Check your system clock" >&5 |
| 2205 | echo "$as_me: error: newly created file is older than distributed files! |
| 2206 | Check your system clock" >&2;} |
| 2207 | { (exit 1); exit 1; }; } |
| 2208 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2209 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2210 | echo "${ECHO_T}yes" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2211 | test "$program_prefix" != NONE && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2212 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2213 | # Use a double $ so make ignores it. |
| 2214 | test "$program_suffix" != NONE && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2215 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2216 | # Double any \ or $. echo might interpret backslashes. |
| 2217 | # By default was `s,x,x', remove it if useless. |
| 2218 | cat <<\_ACEOF >conftest.sed |
| 2219 | s/[\\$]/&&/g;s/;s,x,x,$// |
| 2220 | _ACEOF |
| 2221 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2222 | rm -f conftest.sed |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2223 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2224 | # expand $ac_aux_dir to an absolute path |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2225 | am_aux_dir=`cd $ac_aux_dir && pwd` |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2226 | |
| 2227 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
| 2228 | # Use eval to expand $SHELL |
| 2229 | if eval "$MISSING --run true"; then |
| 2230 | am_missing_run="$MISSING --run " |
| 2231 | else |
| 2232 | am_missing_run= |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2233 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
| 2234 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
| 2235 | fi |
| 2236 | |
| 2237 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
Lev Walkin | c46b7cb | 2006-08-18 02:27:55 +0000 | [diff] [blame] | 2238 | # We used to keeping the `.' as first argument, in order to |
| 2239 | # allow $(mkdir_p) to be used without argument. As in |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2240 | # $(mkdir_p) $(somedir) |
Lev Walkin | c46b7cb | 2006-08-18 02:27:55 +0000 | [diff] [blame] | 2241 | # where $(somedir) is conditionally defined. However this is wrong |
| 2242 | # for two reasons: |
| 2243 | # 1. if the package is installed by a user who cannot write `.' |
| 2244 | # make install will fail, |
| 2245 | # 2. the above comment should most certainly read |
| 2246 | # $(mkdir_p) $(DESTDIR)$(somedir) |
| 2247 | # so it does not work when $(somedir) is undefined and |
| 2248 | # $(DESTDIR) is not. |
| 2249 | # To support the latter case, we have to write |
| 2250 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), |
| 2251 | # so the `.' trick is pointless. |
| 2252 | mkdir_p='mkdir -p --' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2253 | else |
| 2254 | # On NextStep and OpenStep, the `mkdir' command does not |
| 2255 | # recognize any option. It will interpret all options as |
| 2256 | # directories to create, and then abort because `.' already |
| 2257 | # exists. |
| 2258 | for d in ./-p ./--version; |
| 2259 | do |
| 2260 | test -d $d && rmdir $d |
| 2261 | done |
| 2262 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
| 2263 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
| 2264 | mkdir_p='$(mkinstalldirs)' |
| 2265 | else |
| 2266 | mkdir_p='$(install_sh) -d' |
| 2267 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2268 | fi |
| 2269 | |
| 2270 | for ac_prog in gawk mawk nawk awk |
| 2271 | do |
| 2272 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2273 | set dummy $ac_prog; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2274 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2275 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2276 | if test "${ac_cv_prog_AWK+set}" = set; then |
| 2277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2278 | else |
| 2279 | if test -n "$AWK"; then |
| 2280 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 2281 | else |
| 2282 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2283 | for as_dir in $PATH |
| 2284 | do |
| 2285 | IFS=$as_save_IFS |
| 2286 | test -z "$as_dir" && as_dir=. |
| 2287 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2288 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2289 | ac_cv_prog_AWK="$ac_prog" |
| 2290 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2291 | break 2 |
| 2292 | fi |
| 2293 | done |
| 2294 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2295 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2296 | |
| 2297 | fi |
| 2298 | fi |
| 2299 | AWK=$ac_cv_prog_AWK |
| 2300 | if test -n "$AWK"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2301 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
| 2302 | echo "${ECHO_T}$AWK" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2303 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2304 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2305 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2306 | fi |
| 2307 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2308 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2309 | test -n "$AWK" && break |
| 2310 | done |
| 2311 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2312 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 2313 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
| 2314 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 2315 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2316 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2317 | else |
| 2318 | cat >conftest.make <<\_ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2319 | SHELL = /bin/sh |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2320 | all: |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2321 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2322 | _ACEOF |
| 2323 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2324 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 2325 | *@@@%%%=?*=@@@%%%*) |
| 2326 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 2327 | *) |
| 2328 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 2329 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2330 | rm -f conftest.make |
| 2331 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2332 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 2333 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2334 | echo "${ECHO_T}yes" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2335 | SET_MAKE= |
| 2336 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2337 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2338 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2339 | SET_MAKE="MAKE=${MAKE-make}" |
| 2340 | fi |
| 2341 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2342 | rm -rf .tst 2>/dev/null |
| 2343 | mkdir .tst 2>/dev/null |
| 2344 | if test -d .tst; then |
| 2345 | am__leading_dot=. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2346 | else |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2347 | am__leading_dot=_ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2348 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2349 | rmdir .tst 2>/dev/null |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2350 | |
| 2351 | # test to see if srcdir already configured |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2352 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2353 | test -f $srcdir/config.status; then |
| 2354 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
| 2355 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
| 2356 | { (exit 1); exit 1; }; } |
| 2357 | fi |
| 2358 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2359 | # test whether we have cygpath |
| 2360 | if test -z "$CYGPATH_W"; then |
| 2361 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 2362 | CYGPATH_W='cygpath -w' |
| 2363 | else |
| 2364 | CYGPATH_W=echo |
| 2365 | fi |
| 2366 | fi |
| 2367 | |
| 2368 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2369 | # Define the identity of the package. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2370 | PACKAGE=asn1c |
Lev Walkin | e73dc67 | 2006-10-09 12:29:34 +0000 | [diff] [blame] | 2371 | VERSION=0.9.22 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2372 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2373 | |
| 2374 | cat >>confdefs.h <<_ACEOF |
| 2375 | #define PACKAGE "$PACKAGE" |
| 2376 | _ACEOF |
| 2377 | |
| 2378 | |
| 2379 | cat >>confdefs.h <<_ACEOF |
| 2380 | #define VERSION "$VERSION" |
| 2381 | _ACEOF |
| 2382 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2383 | # Some tools Automake needs. |
| 2384 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2385 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2386 | |
| 2387 | |
| 2388 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 2389 | |
| 2390 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2391 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2392 | |
| 2393 | |
| 2394 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 2395 | |
| 2396 | |
| 2397 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 2398 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2399 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
| 2400 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2401 | # Installed binaries are usually stripped using `strip' when the user |
| 2402 | # run `make install-strip'. However `strip' might not be the right |
| 2403 | # tool to use in cross-compilation environments, therefore Automake |
| 2404 | # will honor the `STRIP' environment variable to overrule this program. |
| 2405 | if test "$cross_compiling" != no; then |
| 2406 | if test -n "$ac_tool_prefix"; then |
| 2407 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 2408 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2409 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2410 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2411 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 2412 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2413 | else |
| 2414 | if test -n "$STRIP"; then |
| 2415 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2416 | else |
| 2417 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2418 | for as_dir in $PATH |
| 2419 | do |
| 2420 | IFS=$as_save_IFS |
| 2421 | test -z "$as_dir" && as_dir=. |
| 2422 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2423 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2424 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 2425 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2426 | break 2 |
| 2427 | fi |
| 2428 | done |
| 2429 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2430 | IFS=$as_save_IFS |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2431 | |
| 2432 | fi |
| 2433 | fi |
| 2434 | STRIP=$ac_cv_prog_STRIP |
| 2435 | if test -n "$STRIP"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2436 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 2437 | echo "${ECHO_T}$STRIP" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2438 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2439 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2440 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2441 | fi |
| 2442 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2443 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2444 | fi |
| 2445 | if test -z "$ac_cv_prog_STRIP"; then |
| 2446 | ac_ct_STRIP=$STRIP |
| 2447 | # Extract the first word of "strip", so it can be a program name with args. |
| 2448 | set dummy strip; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2449 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2450 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2451 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 2452 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2453 | else |
| 2454 | if test -n "$ac_ct_STRIP"; then |
| 2455 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 2456 | else |
| 2457 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2458 | for as_dir in $PATH |
| 2459 | do |
| 2460 | IFS=$as_save_IFS |
| 2461 | test -z "$as_dir" && as_dir=. |
| 2462 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2463 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2464 | ac_cv_prog_ac_ct_STRIP="strip" |
| 2465 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2466 | break 2 |
| 2467 | fi |
| 2468 | done |
| 2469 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2470 | IFS=$as_save_IFS |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2471 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2472 | fi |
| 2473 | fi |
| 2474 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 2475 | if test -n "$ac_ct_STRIP"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2476 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 2477 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2478 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2479 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2480 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2481 | fi |
| 2482 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2483 | if test "x$ac_ct_STRIP" = x; then |
| 2484 | STRIP=":" |
| 2485 | else |
| 2486 | case $cross_compiling:$ac_tool_warned in |
| 2487 | yes:) |
| 2488 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2489 | whose name does not start with the host triplet. If you think this |
| 2490 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2491 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2492 | whose name does not start with the host triplet. If you think this |
| 2493 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2494 | ac_tool_warned=yes ;; |
| 2495 | esac |
| 2496 | STRIP=$ac_ct_STRIP |
| 2497 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2498 | else |
| 2499 | STRIP="$ac_cv_prog_STRIP" |
| 2500 | fi |
| 2501 | |
| 2502 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2503 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
| 2504 | |
| 2505 | # We need awk for the "check" target. The system "awk" is bad on |
| 2506 | # some platforms. |
Lev Walkin | c46b7cb | 2006-08-18 02:27:55 +0000 | [diff] [blame] | 2507 | # Always define AMTAR for backward compatibility. |
| 2508 | |
| 2509 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 2510 | |
| 2511 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
| 2512 | |
| 2513 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2514 | |
| 2515 | |
| 2516 | |
| 2517 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2518 | { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 2519 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } |
| 2520 | # Check whether --enable-maintainer-mode was given. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2521 | if test "${enable_maintainer_mode+set}" = set; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2522 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2523 | else |
| 2524 | USE_MAINTAINER_MODE=no |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2525 | fi |
| 2526 | |
| 2527 | { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 |
| 2528 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2529 | |
| 2530 | |
| 2531 | if test $USE_MAINTAINER_MODE = yes; then |
| 2532 | MAINTAINER_MODE_TRUE= |
| 2533 | MAINTAINER_MODE_FALSE='#' |
| 2534 | else |
| 2535 | MAINTAINER_MODE_TRUE='#' |
| 2536 | MAINTAINER_MODE_FALSE= |
| 2537 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2538 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2539 | MAINT=$MAINTAINER_MODE_TRUE |
| 2540 | |
| 2541 | |
| 2542 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2543 | # Check whether --enable-shared was given. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2544 | if test "${enable_shared+set}" = set; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2545 | enableval=$enable_shared; p=${PACKAGE-default} |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2546 | case $enableval in |
| 2547 | yes) enable_shared=yes ;; |
| 2548 | no) enable_shared=no ;; |
| 2549 | *) |
| 2550 | enable_shared=no |
| 2551 | # Look at the argument we got. We use all the common list separators. |
| 2552 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 2553 | for pkg in $enableval; do |
| 2554 | IFS="$lt_save_ifs" |
| 2555 | if test "X$pkg" = "X$p"; then |
| 2556 | enable_shared=yes |
| 2557 | fi |
| 2558 | done |
| 2559 | IFS="$lt_save_ifs" |
| 2560 | ;; |
| 2561 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2562 | else |
| 2563 | enable_shared=yes |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2564 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2565 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2566 | |
| 2567 | # Check whether --enable-static was given. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2568 | if test "${enable_static+set}" = set; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2569 | enableval=$enable_static; p=${PACKAGE-default} |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2570 | case $enableval in |
| 2571 | yes) enable_static=yes ;; |
| 2572 | no) enable_static=no ;; |
| 2573 | *) |
| 2574 | enable_static=no |
| 2575 | # Look at the argument we got. We use all the common list separators. |
| 2576 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 2577 | for pkg in $enableval; do |
| 2578 | IFS="$lt_save_ifs" |
| 2579 | if test "X$pkg" = "X$p"; then |
| 2580 | enable_static=yes |
| 2581 | fi |
| 2582 | done |
| 2583 | IFS="$lt_save_ifs" |
| 2584 | ;; |
| 2585 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2586 | else |
| 2587 | enable_static=yes |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2588 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2589 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2590 | |
| 2591 | # Check whether --enable-fast-install was given. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2592 | if test "${enable_fast_install+set}" = set; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2593 | enableval=$enable_fast_install; p=${PACKAGE-default} |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2594 | case $enableval in |
| 2595 | yes) enable_fast_install=yes ;; |
| 2596 | no) enable_fast_install=no ;; |
| 2597 | *) |
| 2598 | enable_fast_install=no |
| 2599 | # Look at the argument we got. We use all the common list separators. |
| 2600 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 2601 | for pkg in $enableval; do |
| 2602 | IFS="$lt_save_ifs" |
| 2603 | if test "X$pkg" = "X$p"; then |
| 2604 | enable_fast_install=yes |
| 2605 | fi |
| 2606 | done |
| 2607 | IFS="$lt_save_ifs" |
| 2608 | ;; |
| 2609 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2610 | else |
| 2611 | enable_fast_install=yes |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2612 | fi |
| 2613 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2614 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2615 | DEPDIR="${am__leading_dot}deps" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2616 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2617 | ac_config_commands="$ac_config_commands depfiles" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2618 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2619 | |
| 2620 | am_make=${MAKE-make} |
| 2621 | cat > confinc << 'END' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2622 | am__doit: |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2623 | @echo done |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2624 | .PHONY: am__doit |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2625 | END |
| 2626 | # If we don't find an include directive, just comment out the code. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2627 | { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
| 2628 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2629 | am__include="#" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2630 | am__quote= |
| 2631 | _am_result=none |
| 2632 | # First try GNU make style include. |
| 2633 | echo "include confinc" > confmf |
| 2634 | # We grep out `Entering directory' and `Leaving directory' |
| 2635 | # messages which can occur if `w' ends up in MAKEFLAGS. |
| 2636 | # In particular we don't look at `^make:' because GNU make might |
| 2637 | # be invoked under some other name (usually "gmake"), in which |
| 2638 | # case it prints its new name instead of `make'. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2639 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2640 | am__include=include |
| 2641 | am__quote= |
| 2642 | _am_result=GNU |
| 2643 | fi |
| 2644 | # Now try BSD make style include. |
| 2645 | if test "$am__include" = "#"; then |
| 2646 | echo '.include "confinc"' > confmf |
| 2647 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
| 2648 | am__include=.include |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2649 | am__quote="\"" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2650 | _am_result=BSD |
| 2651 | fi |
| 2652 | fi |
| 2653 | |
| 2654 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2655 | { echo "$as_me:$LINENO: result: $_am_result" >&5 |
| 2656 | echo "${ECHO_T}$_am_result" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2657 | rm -f confinc confmf |
| 2658 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2659 | # Check whether --enable-dependency-tracking was given. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2660 | if test "${enable_dependency_tracking+set}" = set; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2661 | enableval=$enable_dependency_tracking; |
| 2662 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2663 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2664 | if test "x$enable_dependency_tracking" != xno; then |
| 2665 | am_depcomp="$ac_aux_dir/depcomp" |
| 2666 | AMDEPBACKSLASH='\' |
| 2667 | fi |
| 2668 | |
| 2669 | |
| 2670 | if test "x$enable_dependency_tracking" != xno; then |
| 2671 | AMDEP_TRUE= |
| 2672 | AMDEP_FALSE='#' |
| 2673 | else |
| 2674 | AMDEP_TRUE='#' |
| 2675 | AMDEP_FALSE= |
| 2676 | fi |
| 2677 | |
| 2678 | |
| 2679 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2680 | ac_ext=c |
| 2681 | ac_cpp='$CPP $CPPFLAGS' |
| 2682 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2683 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2684 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2685 | if test -n "$ac_tool_prefix"; then |
| 2686 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2687 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2688 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2689 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2690 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2691 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2692 | else |
| 2693 | if test -n "$CC"; then |
| 2694 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2695 | else |
| 2696 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2697 | for as_dir in $PATH |
| 2698 | do |
| 2699 | IFS=$as_save_IFS |
| 2700 | test -z "$as_dir" && as_dir=. |
| 2701 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2702 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2703 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2704 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2705 | break 2 |
| 2706 | fi |
| 2707 | done |
| 2708 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2709 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2710 | |
| 2711 | fi |
| 2712 | fi |
| 2713 | CC=$ac_cv_prog_CC |
| 2714 | if test -n "$CC"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2715 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2716 | echo "${ECHO_T}$CC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2717 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2718 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2719 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2720 | fi |
| 2721 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2722 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2723 | fi |
| 2724 | if test -z "$ac_cv_prog_CC"; then |
| 2725 | ac_ct_CC=$CC |
| 2726 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2727 | set dummy gcc; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2728 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2729 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2730 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2732 | else |
| 2733 | if test -n "$ac_ct_CC"; then |
| 2734 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2735 | else |
| 2736 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2737 | for as_dir in $PATH |
| 2738 | do |
| 2739 | IFS=$as_save_IFS |
| 2740 | test -z "$as_dir" && as_dir=. |
| 2741 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2742 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2743 | ac_cv_prog_ac_ct_CC="gcc" |
| 2744 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2745 | break 2 |
| 2746 | fi |
| 2747 | done |
| 2748 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2749 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2750 | |
| 2751 | fi |
| 2752 | fi |
| 2753 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2754 | if test -n "$ac_ct_CC"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2755 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2756 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2757 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2758 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2759 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2760 | fi |
| 2761 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2762 | if test "x$ac_ct_CC" = x; then |
| 2763 | CC="" |
| 2764 | else |
| 2765 | case $cross_compiling:$ac_tool_warned in |
| 2766 | yes:) |
| 2767 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2768 | whose name does not start with the host triplet. If you think this |
| 2769 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2770 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2771 | whose name does not start with the host triplet. If you think this |
| 2772 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2773 | ac_tool_warned=yes ;; |
| 2774 | esac |
| 2775 | CC=$ac_ct_CC |
| 2776 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2777 | else |
| 2778 | CC="$ac_cv_prog_CC" |
| 2779 | fi |
| 2780 | |
| 2781 | if test -z "$CC"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2782 | if test -n "$ac_tool_prefix"; then |
| 2783 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2784 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2785 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2786 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2787 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2788 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2789 | else |
| 2790 | if test -n "$CC"; then |
| 2791 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2792 | else |
| 2793 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2794 | for as_dir in $PATH |
| 2795 | do |
| 2796 | IFS=$as_save_IFS |
| 2797 | test -z "$as_dir" && as_dir=. |
| 2798 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2799 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2800 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2801 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2802 | break 2 |
| 2803 | fi |
| 2804 | done |
| 2805 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2806 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2807 | |
| 2808 | fi |
| 2809 | fi |
| 2810 | CC=$ac_cv_prog_CC |
| 2811 | if test -n "$CC"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2812 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2813 | echo "${ECHO_T}$CC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2814 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2815 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2816 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2817 | fi |
| 2818 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2819 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2820 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2821 | fi |
| 2822 | if test -z "$CC"; then |
| 2823 | # Extract the first word of "cc", so it can be a program name with args. |
| 2824 | set dummy cc; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2825 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2826 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2827 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2828 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2829 | else |
| 2830 | if test -n "$CC"; then |
| 2831 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2832 | else |
| 2833 | ac_prog_rejected=no |
| 2834 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2835 | for as_dir in $PATH |
| 2836 | do |
| 2837 | IFS=$as_save_IFS |
| 2838 | test -z "$as_dir" && as_dir=. |
| 2839 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2840 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2841 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2842 | ac_prog_rejected=yes |
| 2843 | continue |
| 2844 | fi |
| 2845 | ac_cv_prog_CC="cc" |
| 2846 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2847 | break 2 |
| 2848 | fi |
| 2849 | done |
| 2850 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2851 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2852 | |
| 2853 | if test $ac_prog_rejected = yes; then |
| 2854 | # We found a bogon in the path, so make sure we never use it. |
| 2855 | set dummy $ac_cv_prog_CC |
| 2856 | shift |
| 2857 | if test $# != 0; then |
| 2858 | # We chose a different compiler from the bogus one. |
| 2859 | # However, it has the same basename, so the bogon will be chosen |
| 2860 | # first if we set CC to just the basename; use the full file name. |
| 2861 | shift |
| 2862 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2863 | fi |
| 2864 | fi |
| 2865 | fi |
| 2866 | fi |
| 2867 | CC=$ac_cv_prog_CC |
| 2868 | if test -n "$CC"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2869 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2870 | echo "${ECHO_T}$CC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2871 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2872 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2873 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2874 | fi |
| 2875 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2876 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2877 | fi |
| 2878 | if test -z "$CC"; then |
| 2879 | if test -n "$ac_tool_prefix"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2880 | for ac_prog in cl.exe |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2881 | do |
| 2882 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2883 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2884 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2885 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2886 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2887 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2888 | else |
| 2889 | if test -n "$CC"; then |
| 2890 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2891 | else |
| 2892 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2893 | for as_dir in $PATH |
| 2894 | do |
| 2895 | IFS=$as_save_IFS |
| 2896 | test -z "$as_dir" && as_dir=. |
| 2897 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2898 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2899 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2900 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2901 | break 2 |
| 2902 | fi |
| 2903 | done |
| 2904 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2905 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2906 | |
| 2907 | fi |
| 2908 | fi |
| 2909 | CC=$ac_cv_prog_CC |
| 2910 | if test -n "$CC"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2911 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2912 | echo "${ECHO_T}$CC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2913 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2914 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2915 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2916 | fi |
| 2917 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2918 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2919 | test -n "$CC" && break |
| 2920 | done |
| 2921 | fi |
| 2922 | if test -z "$CC"; then |
| 2923 | ac_ct_CC=$CC |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2924 | for ac_prog in cl.exe |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2925 | do |
| 2926 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2927 | set dummy $ac_prog; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2928 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2929 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2930 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2932 | else |
| 2933 | if test -n "$ac_ct_CC"; then |
| 2934 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2935 | else |
| 2936 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2937 | for as_dir in $PATH |
| 2938 | do |
| 2939 | IFS=$as_save_IFS |
| 2940 | test -z "$as_dir" && as_dir=. |
| 2941 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2942 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2943 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2944 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2945 | break 2 |
| 2946 | fi |
| 2947 | done |
| 2948 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2949 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2950 | |
| 2951 | fi |
| 2952 | fi |
| 2953 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2954 | if test -n "$ac_ct_CC"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2955 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2956 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2957 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2958 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2959 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2960 | fi |
| 2961 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2962 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2963 | test -n "$ac_ct_CC" && break |
| 2964 | done |
| 2965 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2966 | if test "x$ac_ct_CC" = x; then |
| 2967 | CC="" |
| 2968 | else |
| 2969 | case $cross_compiling:$ac_tool_warned in |
| 2970 | yes:) |
| 2971 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2972 | whose name does not start with the host triplet. If you think this |
| 2973 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2974 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2975 | whose name does not start with the host triplet. If you think this |
| 2976 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2977 | ac_tool_warned=yes ;; |
| 2978 | esac |
| 2979 | CC=$ac_ct_CC |
| 2980 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2981 | fi |
| 2982 | |
| 2983 | fi |
| 2984 | |
| 2985 | |
| 2986 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2987 | See \`config.log' for more details." >&5 |
| 2988 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2989 | See \`config.log' for more details." >&2;} |
| 2990 | { (exit 1); exit 1; }; } |
| 2991 | |
| 2992 | # Provide some information about the compiler. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2993 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2994 | ac_compiler=`set X $ac_compile; echo $2` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2995 | { (ac_try="$ac_compiler --version >&5" |
| 2996 | case "(($ac_try" in |
| 2997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2998 | *) ac_try_echo=$ac_try;; |
| 2999 | esac |
| 3000 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3001 | (eval "$ac_compiler --version >&5") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3002 | ac_status=$? |
| 3003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3004 | (exit $ac_status); } |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3005 | { (ac_try="$ac_compiler -v >&5" |
| 3006 | case "(($ac_try" in |
| 3007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3008 | *) ac_try_echo=$ac_try;; |
| 3009 | esac |
| 3010 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3011 | (eval "$ac_compiler -v >&5") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3012 | ac_status=$? |
| 3013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3014 | (exit $ac_status); } |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3015 | { (ac_try="$ac_compiler -V >&5" |
| 3016 | case "(($ac_try" in |
| 3017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3018 | *) ac_try_echo=$ac_try;; |
| 3019 | esac |
| 3020 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3021 | (eval "$ac_compiler -V >&5") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3022 | ac_status=$? |
| 3023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3024 | (exit $ac_status); } |
| 3025 | |
| 3026 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3027 | /* confdefs.h. */ |
| 3028 | _ACEOF |
| 3029 | cat confdefs.h >>conftest.$ac_ext |
| 3030 | cat >>conftest.$ac_ext <<_ACEOF |
| 3031 | /* end confdefs.h. */ |
| 3032 | |
| 3033 | int |
| 3034 | main () |
| 3035 | { |
| 3036 | |
| 3037 | ; |
| 3038 | return 0; |
| 3039 | } |
| 3040 | _ACEOF |
| 3041 | ac_clean_files_save=$ac_clean_files |
| 3042 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 3043 | # Try to create an executable without -o first, disregard a.out. |
| 3044 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3045 | # of exeext. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3046 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 3047 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3048 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3049 | # |
| 3050 | # List of possible output files, starting from the most likely. |
| 3051 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 3052 | # only as a last resort. b.out is created by i960 compilers. |
| 3053 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 3054 | # |
| 3055 | # The IRIX 6 linker writes into existing files which may not be |
| 3056 | # executable, retaining their permissions. Remove them first so a |
| 3057 | # subsequent execution test works. |
| 3058 | ac_rmfiles= |
| 3059 | for ac_file in $ac_files |
| 3060 | do |
| 3061 | case $ac_file in |
| 3062 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 3063 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3064 | esac |
| 3065 | done |
| 3066 | rm -f $ac_rmfiles |
| 3067 | |
| 3068 | if { (ac_try="$ac_link_default" |
| 3069 | case "(($ac_try" in |
| 3070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3071 | *) ac_try_echo=$ac_try;; |
| 3072 | esac |
| 3073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3074 | (eval "$ac_link_default") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3075 | ac_status=$? |
| 3076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3077 | (exit $ac_status); }; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3078 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3079 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3080 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3081 | # so that the user can short-circuit this test for compilers unknown to |
| 3082 | # Autoconf. |
| 3083 | for ac_file in $ac_files |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3084 | do |
| 3085 | test -f "$ac_file" || continue |
| 3086 | case $ac_file in |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3087 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3088 | ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3089 | [ab].out ) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3090 | # We found the default executable, but exeext='' is most |
| 3091 | # certainly right. |
| 3092 | break;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3093 | *.* ) |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3094 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 3095 | then :; else |
| 3096 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3097 | fi |
| 3098 | # We set ac_cv_exeext here because the later test for it is not |
| 3099 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3100 | # argument, so we may need to know it at that point already. |
| 3101 | # Even if this section looks crufty: it has the advantage of |
| 3102 | # actually working. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3103 | break;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3104 | * ) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3105 | break;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3106 | esac |
| 3107 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3108 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3109 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3110 | else |
| 3111 | echo "$as_me: failed program was:" >&5 |
| 3112 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3113 | |
| 3114 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 3115 | See \`config.log' for more details." >&5 |
| 3116 | echo "$as_me: error: C compiler cannot create executables |
| 3117 | See \`config.log' for more details." >&2;} |
| 3118 | { (exit 77); exit 77; }; } |
| 3119 | fi |
| 3120 | |
| 3121 | ac_exeext=$ac_cv_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3122 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 3123 | echo "${ECHO_T}$ac_file" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3124 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3125 | # Check that the compiler produces executables we can run. If not, either |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3126 | # the compiler is broken, or we cross compile. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3127 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 3128 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3129 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 3130 | # If not cross compiling, check that we can run a simple program. |
| 3131 | if test "$cross_compiling" != yes; then |
| 3132 | if { ac_try='./$ac_file' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3133 | { (case "(($ac_try" in |
| 3134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3135 | *) ac_try_echo=$ac_try;; |
| 3136 | esac |
| 3137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3138 | (eval "$ac_try") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3139 | ac_status=$? |
| 3140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3141 | (exit $ac_status); }; }; then |
| 3142 | cross_compiling=no |
| 3143 | else |
| 3144 | if test "$cross_compiling" = maybe; then |
| 3145 | cross_compiling=yes |
| 3146 | else |
| 3147 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 3148 | If you meant to cross compile, use \`--host'. |
| 3149 | See \`config.log' for more details." >&5 |
| 3150 | echo "$as_me: error: cannot run C compiled programs. |
| 3151 | If you meant to cross compile, use \`--host'. |
| 3152 | See \`config.log' for more details." >&2;} |
| 3153 | { (exit 1); exit 1; }; } |
| 3154 | fi |
| 3155 | fi |
| 3156 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3157 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 3158 | echo "${ECHO_T}yes" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3159 | |
| 3160 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 3161 | ac_clean_files=$ac_clean_files_save |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3162 | # Check that the compiler produces executables we can run. If not, either |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3163 | # the compiler is broken, or we cross compile. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3164 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 3165 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 3166 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 3167 | echo "${ECHO_T}$cross_compiling" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3168 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3169 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 3170 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 3171 | if { (ac_try="$ac_link" |
| 3172 | case "(($ac_try" in |
| 3173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3174 | *) ac_try_echo=$ac_try;; |
| 3175 | esac |
| 3176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3177 | (eval "$ac_link") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3178 | ac_status=$? |
| 3179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3180 | (exit $ac_status); }; then |
| 3181 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3182 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3183 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3184 | # `rm'. |
| 3185 | for ac_file in conftest.exe conftest conftest.*; do |
| 3186 | test -f "$ac_file" || continue |
| 3187 | case $ac_file in |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3188 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3189 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3190 | break;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3191 | * ) break;; |
| 3192 | esac |
| 3193 | done |
| 3194 | else |
| 3195 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 3196 | See \`config.log' for more details." >&5 |
| 3197 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 3198 | See \`config.log' for more details." >&2;} |
| 3199 | { (exit 1); exit 1; }; } |
| 3200 | fi |
| 3201 | |
| 3202 | rm -f conftest$ac_cv_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3203 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 3204 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3205 | |
| 3206 | rm -f conftest.$ac_ext |
| 3207 | EXEEXT=$ac_cv_exeext |
| 3208 | ac_exeext=$EXEEXT |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3209 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 3210 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3211 | if test "${ac_cv_objext+set}" = set; then |
| 3212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3213 | else |
| 3214 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3215 | /* confdefs.h. */ |
| 3216 | _ACEOF |
| 3217 | cat confdefs.h >>conftest.$ac_ext |
| 3218 | cat >>conftest.$ac_ext <<_ACEOF |
| 3219 | /* end confdefs.h. */ |
| 3220 | |
| 3221 | int |
| 3222 | main () |
| 3223 | { |
| 3224 | |
| 3225 | ; |
| 3226 | return 0; |
| 3227 | } |
| 3228 | _ACEOF |
| 3229 | rm -f conftest.o conftest.obj |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3230 | if { (ac_try="$ac_compile" |
| 3231 | case "(($ac_try" in |
| 3232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3233 | *) ac_try_echo=$ac_try;; |
| 3234 | esac |
| 3235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3236 | (eval "$ac_compile") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3237 | ac_status=$? |
| 3238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3239 | (exit $ac_status); }; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3240 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3241 | test -f "$ac_file" || continue; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3242 | case $ac_file in |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3243 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3244 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3245 | break;; |
| 3246 | esac |
| 3247 | done |
| 3248 | else |
| 3249 | echo "$as_me: failed program was:" >&5 |
| 3250 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3251 | |
| 3252 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 3253 | See \`config.log' for more details." >&5 |
| 3254 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 3255 | See \`config.log' for more details." >&2;} |
| 3256 | { (exit 1); exit 1; }; } |
| 3257 | fi |
| 3258 | |
| 3259 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3260 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3261 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 3262 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3263 | OBJEXT=$ac_cv_objext |
| 3264 | ac_objext=$OBJEXT |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3265 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 3266 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3267 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 3268 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3269 | else |
| 3270 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3271 | /* confdefs.h. */ |
| 3272 | _ACEOF |
| 3273 | cat confdefs.h >>conftest.$ac_ext |
| 3274 | cat >>conftest.$ac_ext <<_ACEOF |
| 3275 | /* end confdefs.h. */ |
| 3276 | |
| 3277 | int |
| 3278 | main () |
| 3279 | { |
| 3280 | #ifndef __GNUC__ |
| 3281 | choke me |
| 3282 | #endif |
| 3283 | |
| 3284 | ; |
| 3285 | return 0; |
| 3286 | } |
| 3287 | _ACEOF |
| 3288 | rm -f conftest.$ac_objext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3289 | if { (ac_try="$ac_compile" |
| 3290 | case "(($ac_try" in |
| 3291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3292 | *) ac_try_echo=$ac_try;; |
| 3293 | esac |
| 3294 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3295 | (eval "$ac_compile") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3296 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3297 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3298 | rm -f conftest.er1 |
| 3299 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3301 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3302 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3303 | { (case "(($ac_try" in |
| 3304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3305 | *) ac_try_echo=$ac_try;; |
| 3306 | esac |
| 3307 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3308 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3309 | ac_status=$? |
| 3310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3311 | (exit $ac_status); }; } && |
| 3312 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3313 | { (case "(($ac_try" in |
| 3314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3315 | *) ac_try_echo=$ac_try;; |
| 3316 | esac |
| 3317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3318 | (eval "$ac_try") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3319 | ac_status=$? |
| 3320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3321 | (exit $ac_status); }; }; then |
| 3322 | ac_compiler_gnu=yes |
| 3323 | else |
| 3324 | echo "$as_me: failed program was:" >&5 |
| 3325 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3326 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3327 | ac_compiler_gnu=no |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3328 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3329 | |
| 3330 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3331 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3332 | |
| 3333 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3334 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3335 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3336 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 3337 | ac_test_CFLAGS=${CFLAGS+set} |
| 3338 | ac_save_CFLAGS=$CFLAGS |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3339 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3340 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3341 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 3342 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3343 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3344 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3345 | ac_c_werror_flag=yes |
| 3346 | ac_cv_prog_cc_g=no |
| 3347 | CFLAGS="-g" |
| 3348 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3349 | /* confdefs.h. */ |
| 3350 | _ACEOF |
| 3351 | cat confdefs.h >>conftest.$ac_ext |
| 3352 | cat >>conftest.$ac_ext <<_ACEOF |
| 3353 | /* end confdefs.h. */ |
| 3354 | |
| 3355 | int |
| 3356 | main () |
| 3357 | { |
| 3358 | |
| 3359 | ; |
| 3360 | return 0; |
| 3361 | } |
| 3362 | _ACEOF |
| 3363 | rm -f conftest.$ac_objext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3364 | if { (ac_try="$ac_compile" |
| 3365 | case "(($ac_try" in |
| 3366 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3367 | *) ac_try_echo=$ac_try;; |
| 3368 | esac |
| 3369 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3370 | (eval "$ac_compile") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3371 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3372 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3373 | rm -f conftest.er1 |
| 3374 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3376 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3377 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3378 | { (case "(($ac_try" in |
| 3379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3380 | *) ac_try_echo=$ac_try;; |
| 3381 | esac |
| 3382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3383 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3384 | ac_status=$? |
| 3385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3386 | (exit $ac_status); }; } && |
| 3387 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3388 | { (case "(($ac_try" in |
| 3389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3390 | *) ac_try_echo=$ac_try;; |
| 3391 | esac |
| 3392 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3393 | (eval "$ac_try") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3394 | ac_status=$? |
| 3395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3396 | (exit $ac_status); }; }; then |
| 3397 | ac_cv_prog_cc_g=yes |
| 3398 | else |
| 3399 | echo "$as_me: failed program was:" >&5 |
| 3400 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3401 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3402 | CFLAGS="" |
| 3403 | cat >conftest.$ac_ext <<_ACEOF |
| 3404 | /* confdefs.h. */ |
| 3405 | _ACEOF |
| 3406 | cat confdefs.h >>conftest.$ac_ext |
| 3407 | cat >>conftest.$ac_ext <<_ACEOF |
| 3408 | /* end confdefs.h. */ |
| 3409 | |
| 3410 | int |
| 3411 | main () |
| 3412 | { |
| 3413 | |
| 3414 | ; |
| 3415 | return 0; |
| 3416 | } |
| 3417 | _ACEOF |
| 3418 | rm -f conftest.$ac_objext |
| 3419 | if { (ac_try="$ac_compile" |
| 3420 | case "(($ac_try" in |
| 3421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3422 | *) ac_try_echo=$ac_try;; |
| 3423 | esac |
| 3424 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3425 | (eval "$ac_compile") 2>conftest.er1 |
| 3426 | ac_status=$? |
| 3427 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3428 | rm -f conftest.er1 |
| 3429 | cat conftest.err >&5 |
| 3430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3431 | (exit $ac_status); } && |
| 3432 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3433 | { (case "(($ac_try" in |
| 3434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3435 | *) ac_try_echo=$ac_try;; |
| 3436 | esac |
| 3437 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3438 | (eval "$ac_try") 2>&5 |
| 3439 | ac_status=$? |
| 3440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3441 | (exit $ac_status); }; } && |
| 3442 | { ac_try='test -s conftest.$ac_objext' |
| 3443 | { (case "(($ac_try" in |
| 3444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3445 | *) ac_try_echo=$ac_try;; |
| 3446 | esac |
| 3447 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3448 | (eval "$ac_try") 2>&5 |
| 3449 | ac_status=$? |
| 3450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3451 | (exit $ac_status); }; }; then |
| 3452 | : |
| 3453 | else |
| 3454 | echo "$as_me: failed program was:" >&5 |
| 3455 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3456 | |
| 3457 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3458 | CFLAGS="-g" |
| 3459 | cat >conftest.$ac_ext <<_ACEOF |
| 3460 | /* confdefs.h. */ |
| 3461 | _ACEOF |
| 3462 | cat confdefs.h >>conftest.$ac_ext |
| 3463 | cat >>conftest.$ac_ext <<_ACEOF |
| 3464 | /* end confdefs.h. */ |
| 3465 | |
| 3466 | int |
| 3467 | main () |
| 3468 | { |
| 3469 | |
| 3470 | ; |
| 3471 | return 0; |
| 3472 | } |
| 3473 | _ACEOF |
| 3474 | rm -f conftest.$ac_objext |
| 3475 | if { (ac_try="$ac_compile" |
| 3476 | case "(($ac_try" in |
| 3477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3478 | *) ac_try_echo=$ac_try;; |
| 3479 | esac |
| 3480 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3481 | (eval "$ac_compile") 2>conftest.er1 |
| 3482 | ac_status=$? |
| 3483 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3484 | rm -f conftest.er1 |
| 3485 | cat conftest.err >&5 |
| 3486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3487 | (exit $ac_status); } && |
| 3488 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3489 | { (case "(($ac_try" in |
| 3490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3491 | *) ac_try_echo=$ac_try;; |
| 3492 | esac |
| 3493 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3494 | (eval "$ac_try") 2>&5 |
| 3495 | ac_status=$? |
| 3496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3497 | (exit $ac_status); }; } && |
| 3498 | { ac_try='test -s conftest.$ac_objext' |
| 3499 | { (case "(($ac_try" in |
| 3500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3501 | *) ac_try_echo=$ac_try;; |
| 3502 | esac |
| 3503 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3504 | (eval "$ac_try") 2>&5 |
| 3505 | ac_status=$? |
| 3506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3507 | (exit $ac_status); }; }; then |
| 3508 | ac_cv_prog_cc_g=yes |
| 3509 | else |
| 3510 | echo "$as_me: failed program was:" >&5 |
| 3511 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3512 | |
| 3513 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3514 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3515 | |
| 3516 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3517 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3518 | |
| 3519 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3520 | fi |
| 3521 | |
| 3522 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3523 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3524 | fi |
| 3525 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3526 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3527 | if test "$ac_test_CFLAGS" = set; then |
| 3528 | CFLAGS=$ac_save_CFLAGS |
| 3529 | elif test $ac_cv_prog_cc_g = yes; then |
| 3530 | if test "$GCC" = yes; then |
| 3531 | CFLAGS="-g -O2" |
| 3532 | else |
| 3533 | CFLAGS="-g" |
| 3534 | fi |
| 3535 | else |
| 3536 | if test "$GCC" = yes; then |
| 3537 | CFLAGS="-O2" |
| 3538 | else |
| 3539 | CFLAGS= |
| 3540 | fi |
| 3541 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3542 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3543 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 3544 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3545 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3546 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3547 | ac_cv_prog_cc_c89=no |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3548 | ac_save_CC=$CC |
| 3549 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3550 | /* confdefs.h. */ |
| 3551 | _ACEOF |
| 3552 | cat confdefs.h >>conftest.$ac_ext |
| 3553 | cat >>conftest.$ac_ext <<_ACEOF |
| 3554 | /* end confdefs.h. */ |
| 3555 | #include <stdarg.h> |
| 3556 | #include <stdio.h> |
| 3557 | #include <sys/types.h> |
| 3558 | #include <sys/stat.h> |
| 3559 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3560 | struct buf { int x; }; |
| 3561 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3562 | static char *e (p, i) |
| 3563 | char **p; |
| 3564 | int i; |
| 3565 | { |
| 3566 | return p[i]; |
| 3567 | } |
| 3568 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3569 | { |
| 3570 | char *s; |
| 3571 | va_list v; |
| 3572 | va_start (v,p); |
| 3573 | s = g (p, va_arg (v,int)); |
| 3574 | va_end (v); |
| 3575 | return s; |
| 3576 | } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3577 | |
| 3578 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3579 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3580 | These don't provoke an error unfortunately, instead are silently treated |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3581 | as 'x'. The following induces an error, until -std is added to get |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3582 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3583 | array size at least. It's necessary to write '\x00'==0 to get something |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3584 | that's true only with -std. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3585 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3586 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3587 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3588 | inside strings and character constants. */ |
| 3589 | #define FOO(x) 'x' |
| 3590 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3591 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3592 | int test (int i, double x); |
| 3593 | struct s1 {int (*f) (int a);}; |
| 3594 | struct s2 {int (*f) (double a);}; |
| 3595 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3596 | int argc; |
| 3597 | char **argv; |
| 3598 | int |
| 3599 | main () |
| 3600 | { |
| 3601 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3602 | ; |
| 3603 | return 0; |
| 3604 | } |
| 3605 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3606 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3607 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3608 | do |
| 3609 | CC="$ac_save_CC $ac_arg" |
| 3610 | rm -f conftest.$ac_objext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3611 | if { (ac_try="$ac_compile" |
| 3612 | case "(($ac_try" in |
| 3613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3614 | *) ac_try_echo=$ac_try;; |
| 3615 | esac |
| 3616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3617 | (eval "$ac_compile") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3618 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3619 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3620 | rm -f conftest.er1 |
| 3621 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3623 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3624 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3625 | { (case "(($ac_try" in |
| 3626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3627 | *) ac_try_echo=$ac_try;; |
| 3628 | esac |
| 3629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3630 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3631 | ac_status=$? |
| 3632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3633 | (exit $ac_status); }; } && |
| 3634 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3635 | { (case "(($ac_try" in |
| 3636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3637 | *) ac_try_echo=$ac_try;; |
| 3638 | esac |
| 3639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3640 | (eval "$ac_try") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3641 | ac_status=$? |
| 3642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3643 | (exit $ac_status); }; }; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3644 | ac_cv_prog_cc_c89=$ac_arg |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3645 | else |
| 3646 | echo "$as_me: failed program was:" >&5 |
| 3647 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3648 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3649 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3650 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3651 | |
| 3652 | rm -f core conftest.err conftest.$ac_objext |
| 3653 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3654 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3655 | rm -f conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3656 | CC=$ac_save_CC |
| 3657 | |
| 3658 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3659 | # AC_CACHE_VAL |
| 3660 | case "x$ac_cv_prog_cc_c89" in |
| 3661 | x) |
| 3662 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3663 | echo "${ECHO_T}none needed" >&6; } ;; |
| 3664 | xno) |
| 3665 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3666 | echo "${ECHO_T}unsupported" >&6; } ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3667 | *) |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3668 | CC="$CC $ac_cv_prog_cc_c89" |
| 3669 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3670 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3671 | esac |
| 3672 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3673 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3674 | ac_ext=c |
| 3675 | ac_cpp='$CPP $CPPFLAGS' |
| 3676 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3677 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3678 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3679 | |
| 3680 | depcc="$CC" am_compiler_list= |
| 3681 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3682 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 3683 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3684 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
| 3685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3686 | else |
| 3687 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 3688 | # We make a subdir and do the tests there. Otherwise we can end up |
| 3689 | # making bogus files that we don't know about and never remove. For |
| 3690 | # instance it was reported that on HP-UX the gcc test will end up |
| 3691 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 3692 | # in D'. |
| 3693 | mkdir conftest.dir |
| 3694 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 3695 | # using a relative directory. |
| 3696 | cp "$am_depcomp" conftest.dir |
| 3697 | cd conftest.dir |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3698 | # We will build objects and dependencies in a subdirectory because |
| 3699 | # it helps to detect inapplicable dependency modes. For instance |
| 3700 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 3701 | # side effect of compilation, but ICC will put the dependencies in |
| 3702 | # the current directory while Tru64 will put them in the object |
| 3703 | # directory. |
| 3704 | mkdir sub |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3705 | |
| 3706 | am_cv_CC_dependencies_compiler_type=none |
| 3707 | if test "$am_compiler_list" = ""; then |
| 3708 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 3709 | fi |
| 3710 | for depmode in $am_compiler_list; do |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3711 | # Setup a source with many dependencies, because some compilers |
| 3712 | # like to wrap large dependency lists on column 80 (with \), and |
| 3713 | # we should not choose a depcomp mode which is confused by this. |
| 3714 | # |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3715 | # We need to recreate these files for each test, as the compiler may |
| 3716 | # overwrite some of them when testing with obscure command lines. |
| 3717 | # This happens at least with the AIX C compiler. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3718 | : > sub/conftest.c |
| 3719 | for i in 1 2 3 4 5 6; do |
| 3720 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 3721 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 3722 | # Solaris 8's {/usr,}/bin/sh. |
| 3723 | touch sub/conftst$i.h |
| 3724 | done |
| 3725 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3726 | |
| 3727 | case $depmode in |
| 3728 | nosideeffect) |
| 3729 | # after this tag, mechanisms are not by side-effect, so they'll |
| 3730 | # only be used when explicitly requested |
| 3731 | if test "x$enable_dependency_tracking" = xyes; then |
| 3732 | continue |
| 3733 | else |
| 3734 | break |
| 3735 | fi |
| 3736 | ;; |
| 3737 | none) break ;; |
| 3738 | esac |
| 3739 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 3740 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 3741 | # handle `-M -o', and we need to detect this. |
| 3742 | if depmode=$depmode \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3743 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| 3744 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 3745 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| 3746 | >/dev/null 2>conftest.err && |
| 3747 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 3748 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3749 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3750 | # icc doesn't choke on unknown options, it will just issue warnings |
| 3751 | # or remarks (even with -Werror). So we grep stderr for any message |
| 3752 | # that says an option was ignored or not supported. |
| 3753 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 3754 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 3755 | # The diagnosis changed in icc 8.0: |
| 3756 | # icc: Command line remark: option '-MP' not supported |
| 3757 | if (grep 'ignoring option' conftest.err || |
| 3758 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 3759 | am_cv_CC_dependencies_compiler_type=$depmode |
| 3760 | break |
| 3761 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3762 | fi |
| 3763 | done |
| 3764 | |
| 3765 | cd .. |
| 3766 | rm -rf conftest.dir |
| 3767 | else |
| 3768 | am_cv_CC_dependencies_compiler_type=none |
| 3769 | fi |
| 3770 | |
| 3771 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3772 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 3773 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3774 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 3775 | |
| 3776 | |
| 3777 | |
| 3778 | if |
| 3779 | test "x$enable_dependency_tracking" != xno \ |
| 3780 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 3781 | am__fastdepCC_TRUE= |
| 3782 | am__fastdepCC_FALSE='#' |
| 3783 | else |
| 3784 | am__fastdepCC_TRUE='#' |
| 3785 | am__fastdepCC_FALSE= |
| 3786 | fi |
| 3787 | |
| 3788 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3789 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 3790 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3791 | if test "${lt_cv_path_SED+set}" = set; then |
| 3792 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3793 | else |
| 3794 | # Loop through the user's path and test for sed and gsed. |
| 3795 | # Then use that list of sed's as ones to test for truncation. |
| 3796 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3797 | for as_dir in $PATH |
| 3798 | do |
| 3799 | IFS=$as_save_IFS |
| 3800 | test -z "$as_dir" && as_dir=. |
| 3801 | for lt_ac_prog in sed gsed; do |
| 3802 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3803 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
| 3804 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
| 3805 | fi |
| 3806 | done |
| 3807 | done |
| 3808 | done |
| 3809 | lt_ac_max=0 |
| 3810 | lt_ac_count=0 |
| 3811 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 3812 | # along with /bin/sed that truncates output. |
| 3813 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
| 3814 | test ! -f $lt_ac_sed && break |
| 3815 | cat /dev/null > conftest.in |
| 3816 | lt_ac_count=0 |
| 3817 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| 3818 | # Check for GNU sed and select it if it is found. |
| 3819 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
| 3820 | lt_cv_path_SED=$lt_ac_sed |
| 3821 | break |
| 3822 | fi |
| 3823 | while true; do |
| 3824 | cat conftest.in conftest.in >conftest.tmp |
| 3825 | mv conftest.tmp conftest.in |
| 3826 | cp conftest.in conftest.nl |
| 3827 | echo >>conftest.nl |
| 3828 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
| 3829 | cmp -s conftest.out conftest.nl || break |
| 3830 | # 10000 chars as input seems more than enough |
| 3831 | test $lt_ac_count -gt 10 && break |
| 3832 | lt_ac_count=`expr $lt_ac_count + 1` |
| 3833 | if test $lt_ac_count -gt $lt_ac_max; then |
| 3834 | lt_ac_max=$lt_ac_count |
| 3835 | lt_cv_path_SED=$lt_ac_sed |
| 3836 | fi |
| 3837 | done |
| 3838 | done |
| 3839 | SED=$lt_cv_path_SED |
| 3840 | |
| 3841 | fi |
| 3842 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3843 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 3844 | echo "${ECHO_T}$SED" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3845 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3846 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3847 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 3848 | if test "${ac_cv_path_GREP+set}" = set; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3849 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3850 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3851 | # Extract the first word of "grep ggrep" to use in msg output |
| 3852 | if test -z "$GREP"; then |
| 3853 | set dummy grep ggrep; ac_prog_name=$2 |
| 3854 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3855 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3856 | else |
| 3857 | ac_path_GREP_found=false |
| 3858 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3859 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3860 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3861 | do |
| 3862 | IFS=$as_save_IFS |
| 3863 | test -z "$as_dir" && as_dir=. |
| 3864 | for ac_prog in grep ggrep; do |
| 3865 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3866 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3867 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
| 3868 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3869 | # Check for GNU $ac_path_GREP |
| 3870 | case `"$ac_path_GREP" --version 2>&1` in |
| 3871 | *GNU*) |
| 3872 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3873 | *) |
| 3874 | ac_count=0 |
| 3875 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3876 | while : |
| 3877 | do |
| 3878 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3879 | mv "conftest.tmp" "conftest.in" |
| 3880 | cp "conftest.in" "conftest.nl" |
| 3881 | echo 'GREP' >> "conftest.nl" |
| 3882 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3883 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3884 | ac_count=`expr $ac_count + 1` |
| 3885 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3886 | # Best one so far, save it but keep looking for a better one |
| 3887 | ac_cv_path_GREP="$ac_path_GREP" |
| 3888 | ac_path_GREP_max=$ac_count |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3889 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3890 | # 10*(2^10) chars as input seems more than enough |
| 3891 | test $ac_count -gt 10 && break |
| 3892 | done |
| 3893 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3894 | esac |
| 3895 | |
| 3896 | |
| 3897 | $ac_path_GREP_found && break 3 |
| 3898 | done |
| 3899 | done |
| 3900 | |
| 3901 | done |
| 3902 | IFS=$as_save_IFS |
| 3903 | |
| 3904 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3905 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3906 | |
| 3907 | GREP="$ac_cv_path_GREP" |
| 3908 | if test -z "$GREP"; then |
| 3909 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3910 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3911 | { (exit 1); exit 1; }; } |
| 3912 | fi |
| 3913 | |
| 3914 | else |
| 3915 | ac_cv_path_GREP=$GREP |
| 3916 | fi |
| 3917 | |
| 3918 | |
| 3919 | fi |
| 3920 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3921 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 3922 | GREP="$ac_cv_path_GREP" |
| 3923 | |
| 3924 | |
| 3925 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3926 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3927 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3928 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3929 | else |
| 3930 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3931 | then ac_cv_path_EGREP="$GREP -E" |
| 3932 | else |
| 3933 | # Extract the first word of "egrep" to use in msg output |
| 3934 | if test -z "$EGREP"; then |
| 3935 | set dummy egrep; ac_prog_name=$2 |
| 3936 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3937 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3938 | else |
| 3939 | ac_path_EGREP_found=false |
| 3940 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3941 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3942 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3943 | do |
| 3944 | IFS=$as_save_IFS |
| 3945 | test -z "$as_dir" && as_dir=. |
| 3946 | for ac_prog in egrep; do |
| 3947 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3948 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3949 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
| 3950 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3951 | # Check for GNU $ac_path_EGREP |
| 3952 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3953 | *GNU*) |
| 3954 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3955 | *) |
| 3956 | ac_count=0 |
| 3957 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3958 | while : |
| 3959 | do |
| 3960 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3961 | mv "conftest.tmp" "conftest.in" |
| 3962 | cp "conftest.in" "conftest.nl" |
| 3963 | echo 'EGREP' >> "conftest.nl" |
| 3964 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3965 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3966 | ac_count=`expr $ac_count + 1` |
| 3967 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3968 | # Best one so far, save it but keep looking for a better one |
| 3969 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3970 | ac_path_EGREP_max=$ac_count |
| 3971 | fi |
| 3972 | # 10*(2^10) chars as input seems more than enough |
| 3973 | test $ac_count -gt 10 && break |
| 3974 | done |
| 3975 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3976 | esac |
| 3977 | |
| 3978 | |
| 3979 | $ac_path_EGREP_found && break 3 |
| 3980 | done |
| 3981 | done |
| 3982 | |
| 3983 | done |
| 3984 | IFS=$as_save_IFS |
| 3985 | |
| 3986 | |
| 3987 | fi |
| 3988 | |
| 3989 | EGREP="$ac_cv_path_EGREP" |
| 3990 | if test -z "$EGREP"; then |
| 3991 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3992 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3993 | { (exit 1); exit 1; }; } |
| 3994 | fi |
| 3995 | |
| 3996 | else |
| 3997 | ac_cv_path_EGREP=$EGREP |
| 3998 | fi |
| 3999 | |
| 4000 | |
| 4001 | fi |
| 4002 | fi |
| 4003 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 4004 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 4005 | EGREP="$ac_cv_path_EGREP" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4006 | |
| 4007 | |
| 4008 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4009 | # Check whether --with-gnu-ld was given. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4010 | if test "${with_gnu_ld+set}" = set; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4011 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4012 | else |
| 4013 | with_gnu_ld=no |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4014 | fi |
| 4015 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4016 | ac_prog=ld |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4017 | if test "$GCC" = yes; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4018 | # Check if gcc -print-prog-name=ld gives a path. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4019 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 4020 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4021 | case $host in |
| 4022 | *-*-mingw*) |
| 4023 | # gcc leaves a trailing carriage return which upsets mingw |
| 4024 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 4025 | *) |
| 4026 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 4027 | esac |
| 4028 | case $ac_prog in |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4029 | # Accept absolute paths. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4030 | [\\/]* | ?:[\\/]*) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4031 | re_direlt='/[^/][^/]*/\.\./' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4032 | # Canonicalize the pathname of ld |
| 4033 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4034 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4035 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4036 | done |
| 4037 | test -z "$LD" && LD="$ac_prog" |
| 4038 | ;; |
| 4039 | "") |
| 4040 | # If it fails, then pretend we aren't using GCC. |
| 4041 | ac_prog=ld |
| 4042 | ;; |
| 4043 | *) |
| 4044 | # If it is relative, then search for the first ld in PATH. |
| 4045 | with_gnu_ld=unknown |
| 4046 | ;; |
| 4047 | esac |
| 4048 | elif test "$with_gnu_ld" = yes; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4049 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 4050 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4051 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4052 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 4053 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4054 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4055 | if test "${lt_cv_path_LD+set}" = set; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4056 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4057 | else |
| 4058 | if test -z "$LD"; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4059 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4060 | for ac_dir in $PATH; do |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4061 | IFS="$lt_save_ifs" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4062 | test -z "$ac_dir" && ac_dir=. |
| 4063 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4064 | lt_cv_path_LD="$ac_dir/$ac_prog" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4065 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 4066 | # but apparently some GNU ld's only accept -v. |
| 4067 | # Break only if it was the GNU/non-GNU ld that we prefer. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4068 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 4069 | *GNU* | *'with BFD'*) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4070 | test "$with_gnu_ld" != no && break |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4071 | ;; |
| 4072 | *) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4073 | test "$with_gnu_ld" != yes && break |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4074 | ;; |
| 4075 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4076 | fi |
| 4077 | done |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4078 | IFS="$lt_save_ifs" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4079 | else |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4080 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4081 | fi |
| 4082 | fi |
| 4083 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4084 | LD="$lt_cv_path_LD" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4085 | if test -n "$LD"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4086 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 4087 | echo "${ECHO_T}$LD" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4088 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4089 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4090 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4091 | fi |
| 4092 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 4093 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 4094 | { (exit 1); exit 1; }; } |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4095 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 4096 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4097 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4098 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4099 | else |
| 4100 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4101 | case `$LD -v 2>&1 </dev/null` in |
| 4102 | *GNU* | *'with BFD'*) |
| 4103 | lt_cv_prog_gnu_ld=yes |
| 4104 | ;; |
| 4105 | *) |
| 4106 | lt_cv_prog_gnu_ld=no |
| 4107 | ;; |
| 4108 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4109 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4110 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 4111 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4112 | with_gnu_ld=$lt_cv_prog_gnu_ld |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4113 | |
| 4114 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4115 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 4116 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4117 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 4118 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4119 | else |
| 4120 | lt_cv_ld_reload_flag='-r' |
| 4121 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4122 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 4123 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4124 | reload_flag=$lt_cv_ld_reload_flag |
| 4125 | case $reload_flag in |
| 4126 | "" | " "*) ;; |
| 4127 | *) reload_flag=" $reload_flag" ;; |
| 4128 | esac |
| 4129 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 4130 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4131 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 4132 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4133 | if test "${lt_cv_path_NM+set}" = set; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4135 | else |
| 4136 | if test -n "$NM"; then |
| 4137 | # Let the user override the test. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4138 | lt_cv_path_NM="$NM" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4139 | else |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4140 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4141 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4142 | IFS="$lt_save_ifs" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4143 | test -z "$ac_dir" && ac_dir=. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4144 | tmp_nm="$ac_dir/${ac_tool_prefix}nm" |
| 4145 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4146 | # Check to see if the nm accepts a BSD-compat flag. |
| 4147 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 4148 | # nm: unknown option "B" ignored |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4149 | # Tru64's nm complains that /dev/null is an invalid object file |
| 4150 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 4151 | */dev/null* | *'Invalid file or object type'*) |
| 4152 | lt_cv_path_NM="$tmp_nm -B" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4153 | break |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4154 | ;; |
| 4155 | *) |
| 4156 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 4157 | */dev/null*) |
| 4158 | lt_cv_path_NM="$tmp_nm -p" |
| 4159 | break |
| 4160 | ;; |
| 4161 | *) |
| 4162 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 4163 | continue # so that we can try to find one that supports BSD flags |
| 4164 | ;; |
| 4165 | esac |
| 4166 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4167 | fi |
| 4168 | done |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4169 | IFS="$lt_save_ifs" |
| 4170 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4171 | fi |
| 4172 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4173 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 4174 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4175 | NM="$lt_cv_path_NM" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4176 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4177 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 4178 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4179 | LN_S=$as_ln_s |
| 4180 | if test "$LN_S" = "ln -s"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4181 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4182 | echo "${ECHO_T}yes" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4183 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4184 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 4185 | echo "${ECHO_T}no, using $LN_S" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4186 | fi |
| 4187 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4188 | { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 4189 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4190 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 4191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4192 | else |
| 4193 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 4194 | lt_cv_file_magic_test_file= |
| 4195 | lt_cv_deplibs_check_method='unknown' |
| 4196 | # Need to set the preceding variable on all platforms that support |
| 4197 | # interlibrary dependencies. |
| 4198 | # 'none' -- dependencies not supported. |
| 4199 | # `unknown' -- same as none, but documents that we really don't know. |
| 4200 | # 'pass_all' -- all dependencies passed with no checks. |
| 4201 | # 'test_compile' -- check by making test program. |
| 4202 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 4203 | # which responds to the $file_magic_cmd with a given extended regex. |
| 4204 | # If you have `file' or equivalent on your system and you're not sure |
| 4205 | # whether `pass_all' will *always* work, you probably want this one. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4206 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4207 | case $host_os in |
| 4208 | aix4* | aix5*) |
| 4209 | lt_cv_deplibs_check_method=pass_all |
| 4210 | ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4211 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4212 | beos*) |
| 4213 | lt_cv_deplibs_check_method=pass_all |
| 4214 | ;; |
| 4215 | |
| 4216 | bsdi4*) |
| 4217 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 4218 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 4219 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 4220 | ;; |
| 4221 | |
| 4222 | cygwin*) |
| 4223 | # func_win32_libid is a shell function defined in ltmain.sh |
| 4224 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 4225 | lt_cv_file_magic_cmd='func_win32_libid' |
| 4226 | ;; |
| 4227 | |
| 4228 | mingw* | pw32*) |
| 4229 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 4230 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
| 4231 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 4232 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 4233 | ;; |
| 4234 | |
| 4235 | darwin* | rhapsody*) |
| 4236 | lt_cv_deplibs_check_method=pass_all |
| 4237 | ;; |
| 4238 | |
| 4239 | freebsd* | kfreebsd*-gnu) |
| 4240 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 4241 | case $host_cpu in |
| 4242 | i*86 ) |
| 4243 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 4244 | # Let's accept both of them until this is cleared up. |
| 4245 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
| 4246 | lt_cv_file_magic_cmd=/usr/bin/file |
| 4247 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 4248 | ;; |
| 4249 | esac |
| 4250 | else |
| 4251 | lt_cv_deplibs_check_method=pass_all |
| 4252 | fi |
| 4253 | ;; |
| 4254 | |
| 4255 | gnu*) |
| 4256 | lt_cv_deplibs_check_method=pass_all |
| 4257 | ;; |
| 4258 | |
| 4259 | hpux10.20* | hpux11*) |
| 4260 | lt_cv_file_magic_cmd=/usr/bin/file |
| 4261 | case "$host_cpu" in |
| 4262 | ia64*) |
| 4263 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 4264 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 4265 | ;; |
| 4266 | hppa*64*) |
| 4267 | 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]' |
| 4268 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 4269 | ;; |
| 4270 | *) |
| 4271 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 4272 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 4273 | ;; |
| 4274 | esac |
| 4275 | ;; |
| 4276 | |
| 4277 | irix5* | irix6* | nonstopux*) |
| 4278 | case $LD in |
| 4279 | *-32|*"-32 ") libmagic=32-bit;; |
| 4280 | *-n32|*"-n32 ") libmagic=N32;; |
| 4281 | *-64|*"-64 ") libmagic=64-bit;; |
| 4282 | *) libmagic=never-match;; |
| 4283 | esac |
| 4284 | lt_cv_deplibs_check_method=pass_all |
| 4285 | ;; |
| 4286 | |
| 4287 | # This must be Linux ELF. |
| 4288 | linux*) |
| 4289 | case $host_cpu in |
| 4290 | alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*) |
| 4291 | lt_cv_deplibs_check_method=pass_all ;; |
| 4292 | *) |
| 4293 | # glibc up to 2.1.1 does not perform some relocations on ARM |
| 4294 | # this will be overridden with pass_all, but let us keep it just in case |
| 4295 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
| 4296 | esac |
| 4297 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
| 4298 | lt_cv_deplibs_check_method=pass_all |
| 4299 | ;; |
| 4300 | |
| 4301 | netbsd*) |
| 4302 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 4303 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 4304 | else |
| 4305 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 4306 | fi |
| 4307 | ;; |
| 4308 | |
| 4309 | newos6*) |
| 4310 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 4311 | lt_cv_file_magic_cmd=/usr/bin/file |
| 4312 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 4313 | ;; |
| 4314 | |
| 4315 | nto-qnx*) |
| 4316 | lt_cv_deplibs_check_method=unknown |
| 4317 | ;; |
| 4318 | |
| 4319 | openbsd*) |
| 4320 | lt_cv_file_magic_cmd=/usr/bin/file |
| 4321 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 4322 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 4323 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' |
| 4324 | else |
| 4325 | lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' |
| 4326 | fi |
| 4327 | ;; |
| 4328 | |
| 4329 | osf3* | osf4* | osf5*) |
| 4330 | lt_cv_deplibs_check_method=pass_all |
| 4331 | ;; |
| 4332 | |
| 4333 | sco3.2v5*) |
| 4334 | lt_cv_deplibs_check_method=pass_all |
| 4335 | ;; |
| 4336 | |
| 4337 | solaris*) |
| 4338 | lt_cv_deplibs_check_method=pass_all |
| 4339 | ;; |
| 4340 | |
| 4341 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 4342 | case $host_vendor in |
| 4343 | motorola) |
| 4344 | 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]' |
| 4345 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 4346 | ;; |
| 4347 | ncr) |
| 4348 | lt_cv_deplibs_check_method=pass_all |
| 4349 | ;; |
| 4350 | sequent) |
| 4351 | lt_cv_file_magic_cmd='/bin/file' |
| 4352 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 4353 | ;; |
| 4354 | sni) |
| 4355 | lt_cv_file_magic_cmd='/bin/file' |
| 4356 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 4357 | lt_cv_file_magic_test_file=/lib/libc.so |
| 4358 | ;; |
| 4359 | siemens) |
| 4360 | lt_cv_deplibs_check_method=pass_all |
| 4361 | ;; |
| 4362 | esac |
| 4363 | ;; |
| 4364 | |
| 4365 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) |
| 4366 | lt_cv_deplibs_check_method=pass_all |
| 4367 | ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4368 | esac |
| 4369 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4370 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4371 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 4372 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4373 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 4374 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 4375 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 4376 | |
| 4377 | |
| 4378 | |
| 4379 | |
| 4380 | # If no C compiler was specified, use CC. |
| 4381 | LTCC=${LTCC-"$CC"} |
| 4382 | |
| 4383 | # Allow CC to be a program name with arguments. |
| 4384 | compiler=$CC |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4385 | |
| 4386 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4387 | # Check whether --enable-libtool-lock was given. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4388 | if test "${enable_libtool_lock+set}" = set; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4389 | enableval=$enable_libtool_lock; |
| 4390 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4391 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4392 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4393 | |
| 4394 | # Some flags need to be propagated to the compiler or linker for good |
| 4395 | # libtool support. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4396 | case $host in |
| 4397 | ia64-*-hpux*) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4398 | # Find out which ABI we are using. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4399 | echo 'int i;' > conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4400 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4401 | (eval $ac_compile) 2>&5 |
| 4402 | ac_status=$? |
| 4403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4404 | (exit $ac_status); }; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4405 | case `/usr/bin/file conftest.$ac_objext` in |
| 4406 | *ELF-32*) |
| 4407 | HPUX_IA64_MODE="32" |
| 4408 | ;; |
| 4409 | *ELF-64*) |
| 4410 | HPUX_IA64_MODE="64" |
| 4411 | ;; |
| 4412 | esac |
| 4413 | fi |
| 4414 | rm -rf conftest* |
| 4415 | ;; |
| 4416 | *-*-irix6*) |
| 4417 | # Find out which ABI we are using. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4418 | echo '#line 4418 "configure"' > conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4419 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4420 | (eval $ac_compile) 2>&5 |
| 4421 | ac_status=$? |
| 4422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4423 | (exit $ac_status); }; then |
| 4424 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 4425 | case `/usr/bin/file conftest.$ac_objext` in |
| 4426 | *32-bit*) |
| 4427 | LD="${LD-ld} -melf32bsmip" |
| 4428 | ;; |
| 4429 | *N32*) |
| 4430 | LD="${LD-ld} -melf32bmipn32" |
| 4431 | ;; |
| 4432 | *64-bit*) |
| 4433 | LD="${LD-ld} -melf64bmip" |
| 4434 | ;; |
| 4435 | esac |
| 4436 | else |
| 4437 | case `/usr/bin/file conftest.$ac_objext` in |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4438 | *32-bit*) |
| 4439 | LD="${LD-ld} -32" |
| 4440 | ;; |
| 4441 | *N32*) |
| 4442 | LD="${LD-ld} -n32" |
| 4443 | ;; |
| 4444 | *64-bit*) |
| 4445 | LD="${LD-ld} -64" |
| 4446 | ;; |
| 4447 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4448 | fi |
| 4449 | fi |
| 4450 | rm -rf conftest* |
| 4451 | ;; |
| 4452 | |
| 4453 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| 4454 | # Find out which ABI we are using. |
| 4455 | echo 'int i;' > conftest.$ac_ext |
| 4456 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4457 | (eval $ac_compile) 2>&5 |
| 4458 | ac_status=$? |
| 4459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4460 | (exit $ac_status); }; then |
| 4461 | case "`/usr/bin/file conftest.o`" in |
| 4462 | *32-bit*) |
| 4463 | case $host in |
| 4464 | x86_64-*linux*) |
| 4465 | LD="${LD-ld} -m elf_i386" |
| 4466 | ;; |
| 4467 | ppc64-*linux*|powerpc64-*linux*) |
| 4468 | LD="${LD-ld} -m elf32ppclinux" |
| 4469 | ;; |
| 4470 | s390x-*linux*) |
| 4471 | LD="${LD-ld} -m elf_s390" |
| 4472 | ;; |
| 4473 | sparc64-*linux*) |
| 4474 | LD="${LD-ld} -m elf32_sparc" |
| 4475 | ;; |
| 4476 | esac |
| 4477 | ;; |
| 4478 | *64-bit*) |
| 4479 | case $host in |
| 4480 | x86_64-*linux*) |
| 4481 | LD="${LD-ld} -m elf_x86_64" |
| 4482 | ;; |
| 4483 | ppc*-*linux*|powerpc*-*linux*) |
| 4484 | LD="${LD-ld} -m elf64ppc" |
| 4485 | ;; |
| 4486 | s390*-*linux*) |
| 4487 | LD="${LD-ld} -m elf64_s390" |
| 4488 | ;; |
| 4489 | sparc*-*linux*) |
| 4490 | LD="${LD-ld} -m elf64_sparc" |
| 4491 | ;; |
| 4492 | esac |
| 4493 | ;; |
| 4494 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4495 | fi |
| 4496 | rm -rf conftest* |
| 4497 | ;; |
| 4498 | |
| 4499 | *-*-sco3.2v5*) |
| 4500 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 4501 | SAVE_CFLAGS="$CFLAGS" |
| 4502 | CFLAGS="$CFLAGS -belf" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4503 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 4504 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4505 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 4506 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4507 | else |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4508 | ac_ext=c |
| 4509 | ac_cpp='$CPP $CPPFLAGS' |
| 4510 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4511 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4512 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4513 | |
| 4514 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4515 | /* confdefs.h. */ |
| 4516 | _ACEOF |
| 4517 | cat confdefs.h >>conftest.$ac_ext |
| 4518 | cat >>conftest.$ac_ext <<_ACEOF |
| 4519 | /* end confdefs.h. */ |
| 4520 | |
| 4521 | int |
| 4522 | main () |
| 4523 | { |
| 4524 | |
| 4525 | ; |
| 4526 | return 0; |
| 4527 | } |
| 4528 | _ACEOF |
| 4529 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4530 | if { (ac_try="$ac_link" |
| 4531 | case "(($ac_try" in |
| 4532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4533 | *) ac_try_echo=$ac_try;; |
| 4534 | esac |
| 4535 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4536 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4537 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4538 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4539 | rm -f conftest.er1 |
| 4540 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4542 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4543 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4544 | { (case "(($ac_try" in |
| 4545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4546 | *) ac_try_echo=$ac_try;; |
| 4547 | esac |
| 4548 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4549 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4550 | ac_status=$? |
| 4551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4552 | (exit $ac_status); }; } && |
| 4553 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4554 | { (case "(($ac_try" in |
| 4555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4556 | *) ac_try_echo=$ac_try;; |
| 4557 | esac |
| 4558 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4559 | (eval "$ac_try") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4560 | ac_status=$? |
| 4561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4562 | (exit $ac_status); }; }; then |
| 4563 | lt_cv_cc_needs_belf=yes |
| 4564 | else |
| 4565 | echo "$as_me: failed program was:" >&5 |
| 4566 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4567 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4568 | lt_cv_cc_needs_belf=no |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4569 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4570 | |
| 4571 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4572 | conftest$ac_exeext conftest.$ac_ext |
| 4573 | ac_ext=c |
| 4574 | ac_cpp='$CPP $CPPFLAGS' |
| 4575 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4576 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4577 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4578 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4579 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4580 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 4581 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4582 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 4583 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 4584 | CFLAGS="$SAVE_CFLAGS" |
| 4585 | fi |
| 4586 | ;; |
| 4587 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4588 | esac |
| 4589 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4590 | need_locks="$enable_libtool_lock" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4591 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4592 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4593 | ac_ext=c |
| 4594 | ac_cpp='$CPP $CPPFLAGS' |
| 4595 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4596 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4597 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4598 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 4599 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4600 | # On Suns, sometimes $CPP names a directory. |
| 4601 | if test -n "$CPP" && test -d "$CPP"; then |
| 4602 | CPP= |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4603 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4604 | if test -z "$CPP"; then |
| 4605 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 4606 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4607 | else |
| 4608 | # Double quotes because CPP needs to be expanded |
| 4609 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4610 | do |
| 4611 | ac_preproc_ok=false |
| 4612 | for ac_c_preproc_warn_flag in '' yes |
| 4613 | do |
| 4614 | # Use a header file that comes with gcc, so configuring glibc |
| 4615 | # with a fresh cross-compiler works. |
| 4616 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4617 | # <limits.h> exists even on freestanding compilers. |
| 4618 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4619 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4620 | cat >conftest.$ac_ext <<_ACEOF |
| 4621 | /* confdefs.h. */ |
| 4622 | _ACEOF |
| 4623 | cat confdefs.h >>conftest.$ac_ext |
| 4624 | cat >>conftest.$ac_ext <<_ACEOF |
| 4625 | /* end confdefs.h. */ |
| 4626 | #ifdef __STDC__ |
| 4627 | # include <limits.h> |
| 4628 | #else |
| 4629 | # include <assert.h> |
| 4630 | #endif |
| 4631 | Syntax error |
| 4632 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4633 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4634 | case "(($ac_try" in |
| 4635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4636 | *) ac_try_echo=$ac_try;; |
| 4637 | esac |
| 4638 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4639 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4640 | ac_status=$? |
| 4641 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4642 | rm -f conftest.er1 |
| 4643 | cat conftest.err >&5 |
| 4644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4645 | (exit $ac_status); } >/dev/null; then |
| 4646 | if test -s conftest.err; then |
| 4647 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4648 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4649 | else |
| 4650 | ac_cpp_err= |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4651 | fi |
| 4652 | else |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4653 | ac_cpp_err=yes |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4654 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4655 | if test -z "$ac_cpp_err"; then |
| 4656 | : |
| 4657 | else |
| 4658 | echo "$as_me: failed program was:" >&5 |
| 4659 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4660 | |
| 4661 | # Broken: fails on valid input. |
| 4662 | continue |
| 4663 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4664 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4665 | rm -f conftest.err conftest.$ac_ext |
| 4666 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4667 | # OK, works on sane cases. Now check whether nonexistent headers |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4668 | # can be detected and how. |
| 4669 | cat >conftest.$ac_ext <<_ACEOF |
| 4670 | /* confdefs.h. */ |
| 4671 | _ACEOF |
| 4672 | cat confdefs.h >>conftest.$ac_ext |
| 4673 | cat >>conftest.$ac_ext <<_ACEOF |
| 4674 | /* end confdefs.h. */ |
| 4675 | #include <ac_nonexistent.h> |
| 4676 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4677 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4678 | case "(($ac_try" in |
| 4679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4680 | *) ac_try_echo=$ac_try;; |
| 4681 | esac |
| 4682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4683 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4684 | ac_status=$? |
| 4685 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4686 | rm -f conftest.er1 |
| 4687 | cat conftest.err >&5 |
| 4688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4689 | (exit $ac_status); } >/dev/null; then |
| 4690 | if test -s conftest.err; then |
| 4691 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4692 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4693 | else |
| 4694 | ac_cpp_err= |
| 4695 | fi |
| 4696 | else |
| 4697 | ac_cpp_err=yes |
| 4698 | fi |
| 4699 | if test -z "$ac_cpp_err"; then |
| 4700 | # Broken: success on invalid input. |
| 4701 | continue |
| 4702 | else |
| 4703 | echo "$as_me: failed program was:" >&5 |
| 4704 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4705 | |
| 4706 | # Passes both tests. |
| 4707 | ac_preproc_ok=: |
| 4708 | break |
| 4709 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4710 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4711 | rm -f conftest.err conftest.$ac_ext |
| 4712 | |
| 4713 | done |
| 4714 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4715 | rm -f conftest.err conftest.$ac_ext |
| 4716 | if $ac_preproc_ok; then |
| 4717 | break |
| 4718 | fi |
| 4719 | |
| 4720 | done |
| 4721 | ac_cv_prog_CPP=$CPP |
| 4722 | |
| 4723 | fi |
| 4724 | CPP=$ac_cv_prog_CPP |
| 4725 | else |
| 4726 | ac_cv_prog_CPP=$CPP |
| 4727 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4728 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 4729 | echo "${ECHO_T}$CPP" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4730 | ac_preproc_ok=false |
| 4731 | for ac_c_preproc_warn_flag in '' yes |
| 4732 | do |
| 4733 | # Use a header file that comes with gcc, so configuring glibc |
| 4734 | # with a fresh cross-compiler works. |
| 4735 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4736 | # <limits.h> exists even on freestanding compilers. |
| 4737 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4738 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4739 | cat >conftest.$ac_ext <<_ACEOF |
| 4740 | /* confdefs.h. */ |
| 4741 | _ACEOF |
| 4742 | cat confdefs.h >>conftest.$ac_ext |
| 4743 | cat >>conftest.$ac_ext <<_ACEOF |
| 4744 | /* end confdefs.h. */ |
| 4745 | #ifdef __STDC__ |
| 4746 | # include <limits.h> |
| 4747 | #else |
| 4748 | # include <assert.h> |
| 4749 | #endif |
| 4750 | Syntax error |
| 4751 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4752 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4753 | case "(($ac_try" in |
| 4754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4755 | *) ac_try_echo=$ac_try;; |
| 4756 | esac |
| 4757 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4758 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4759 | ac_status=$? |
| 4760 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4761 | rm -f conftest.er1 |
| 4762 | cat conftest.err >&5 |
| 4763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4764 | (exit $ac_status); } >/dev/null; then |
| 4765 | if test -s conftest.err; then |
| 4766 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4767 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4768 | else |
| 4769 | ac_cpp_err= |
| 4770 | fi |
| 4771 | else |
| 4772 | ac_cpp_err=yes |
| 4773 | fi |
| 4774 | if test -z "$ac_cpp_err"; then |
| 4775 | : |
| 4776 | else |
| 4777 | echo "$as_me: failed program was:" >&5 |
| 4778 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4779 | |
| 4780 | # Broken: fails on valid input. |
| 4781 | continue |
| 4782 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4783 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4784 | rm -f conftest.err conftest.$ac_ext |
| 4785 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4786 | # OK, works on sane cases. Now check whether nonexistent headers |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4787 | # can be detected and how. |
| 4788 | cat >conftest.$ac_ext <<_ACEOF |
| 4789 | /* confdefs.h. */ |
| 4790 | _ACEOF |
| 4791 | cat confdefs.h >>conftest.$ac_ext |
| 4792 | cat >>conftest.$ac_ext <<_ACEOF |
| 4793 | /* end confdefs.h. */ |
| 4794 | #include <ac_nonexistent.h> |
| 4795 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4796 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4797 | case "(($ac_try" in |
| 4798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4799 | *) ac_try_echo=$ac_try;; |
| 4800 | esac |
| 4801 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4802 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4803 | ac_status=$? |
| 4804 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4805 | rm -f conftest.er1 |
| 4806 | cat conftest.err >&5 |
| 4807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4808 | (exit $ac_status); } >/dev/null; then |
| 4809 | if test -s conftest.err; then |
| 4810 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4811 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4812 | else |
| 4813 | ac_cpp_err= |
| 4814 | fi |
| 4815 | else |
| 4816 | ac_cpp_err=yes |
| 4817 | fi |
| 4818 | if test -z "$ac_cpp_err"; then |
| 4819 | # Broken: success on invalid input. |
| 4820 | continue |
| 4821 | else |
| 4822 | echo "$as_me: failed program was:" >&5 |
| 4823 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4824 | |
| 4825 | # Passes both tests. |
| 4826 | ac_preproc_ok=: |
| 4827 | break |
| 4828 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4829 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4830 | rm -f conftest.err conftest.$ac_ext |
| 4831 | |
| 4832 | done |
| 4833 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4834 | rm -f conftest.err conftest.$ac_ext |
| 4835 | if $ac_preproc_ok; then |
| 4836 | : |
| 4837 | else |
| 4838 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 4839 | See \`config.log' for more details." >&5 |
| 4840 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 4841 | See \`config.log' for more details." >&2;} |
| 4842 | { (exit 1); exit 1; }; } |
| 4843 | fi |
| 4844 | |
| 4845 | ac_ext=c |
| 4846 | ac_cpp='$CPP $CPPFLAGS' |
| 4847 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4848 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4849 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4850 | |
| 4851 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4852 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4853 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4854 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4855 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4856 | else |
| 4857 | cat >conftest.$ac_ext <<_ACEOF |
| 4858 | /* confdefs.h. */ |
| 4859 | _ACEOF |
| 4860 | cat confdefs.h >>conftest.$ac_ext |
| 4861 | cat >>conftest.$ac_ext <<_ACEOF |
| 4862 | /* end confdefs.h. */ |
| 4863 | #include <stdlib.h> |
| 4864 | #include <stdarg.h> |
| 4865 | #include <string.h> |
| 4866 | #include <float.h> |
| 4867 | |
| 4868 | int |
| 4869 | main () |
| 4870 | { |
| 4871 | |
| 4872 | ; |
| 4873 | return 0; |
| 4874 | } |
| 4875 | _ACEOF |
| 4876 | rm -f conftest.$ac_objext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4877 | if { (ac_try="$ac_compile" |
| 4878 | case "(($ac_try" in |
| 4879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4880 | *) ac_try_echo=$ac_try;; |
| 4881 | esac |
| 4882 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4883 | (eval "$ac_compile") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4884 | ac_status=$? |
| 4885 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4886 | rm -f conftest.er1 |
| 4887 | cat conftest.err >&5 |
| 4888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4889 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4890 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4891 | { (case "(($ac_try" in |
| 4892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4893 | *) ac_try_echo=$ac_try;; |
| 4894 | esac |
| 4895 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4896 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4897 | ac_status=$? |
| 4898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4899 | (exit $ac_status); }; } && |
| 4900 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4901 | { (case "(($ac_try" in |
| 4902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4903 | *) ac_try_echo=$ac_try;; |
| 4904 | esac |
| 4905 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4906 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4907 | ac_status=$? |
| 4908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4909 | (exit $ac_status); }; }; then |
| 4910 | ac_cv_header_stdc=yes |
| 4911 | else |
| 4912 | echo "$as_me: failed program was:" >&5 |
| 4913 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4914 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4915 | ac_cv_header_stdc=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4916 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4917 | |
| 4918 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4919 | |
| 4920 | if test $ac_cv_header_stdc = yes; then |
| 4921 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4922 | cat >conftest.$ac_ext <<_ACEOF |
| 4923 | /* confdefs.h. */ |
| 4924 | _ACEOF |
| 4925 | cat confdefs.h >>conftest.$ac_ext |
| 4926 | cat >>conftest.$ac_ext <<_ACEOF |
| 4927 | /* end confdefs.h. */ |
| 4928 | #include <string.h> |
| 4929 | |
| 4930 | _ACEOF |
| 4931 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4932 | $EGREP "memchr" >/dev/null 2>&1; then |
| 4933 | : |
| 4934 | else |
| 4935 | ac_cv_header_stdc=no |
| 4936 | fi |
| 4937 | rm -f conftest* |
| 4938 | |
| 4939 | fi |
| 4940 | |
| 4941 | if test $ac_cv_header_stdc = yes; then |
| 4942 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4943 | cat >conftest.$ac_ext <<_ACEOF |
| 4944 | /* confdefs.h. */ |
| 4945 | _ACEOF |
| 4946 | cat confdefs.h >>conftest.$ac_ext |
| 4947 | cat >>conftest.$ac_ext <<_ACEOF |
| 4948 | /* end confdefs.h. */ |
| 4949 | #include <stdlib.h> |
| 4950 | |
| 4951 | _ACEOF |
| 4952 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4953 | $EGREP "free" >/dev/null 2>&1; then |
| 4954 | : |
| 4955 | else |
| 4956 | ac_cv_header_stdc=no |
| 4957 | fi |
| 4958 | rm -f conftest* |
| 4959 | |
| 4960 | fi |
| 4961 | |
| 4962 | if test $ac_cv_header_stdc = yes; then |
| 4963 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4964 | if test "$cross_compiling" = yes; then |
| 4965 | : |
| 4966 | else |
| 4967 | cat >conftest.$ac_ext <<_ACEOF |
| 4968 | /* confdefs.h. */ |
| 4969 | _ACEOF |
| 4970 | cat confdefs.h >>conftest.$ac_ext |
| 4971 | cat >>conftest.$ac_ext <<_ACEOF |
| 4972 | /* end confdefs.h. */ |
| 4973 | #include <ctype.h> |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4974 | #include <stdlib.h> |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4975 | #if ((' ' & 0x0FF) == 0x020) |
| 4976 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4977 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4978 | #else |
| 4979 | # define ISLOWER(c) \ |
| 4980 | (('a' <= (c) && (c) <= 'i') \ |
| 4981 | || ('j' <= (c) && (c) <= 'r') \ |
| 4982 | || ('s' <= (c) && (c) <= 'z')) |
| 4983 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4984 | #endif |
| 4985 | |
| 4986 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4987 | int |
| 4988 | main () |
| 4989 | { |
| 4990 | int i; |
| 4991 | for (i = 0; i < 256; i++) |
| 4992 | if (XOR (islower (i), ISLOWER (i)) |
| 4993 | || toupper (i) != TOUPPER (i)) |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4994 | return 2; |
| 4995 | return 0; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4996 | } |
| 4997 | _ACEOF |
| 4998 | rm -f conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4999 | if { (ac_try="$ac_link" |
| 5000 | case "(($ac_try" in |
| 5001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5002 | *) ac_try_echo=$ac_try;; |
| 5003 | esac |
| 5004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5005 | (eval "$ac_link") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5006 | ac_status=$? |
| 5007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5008 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5009 | { (case "(($ac_try" in |
| 5010 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5011 | *) ac_try_echo=$ac_try;; |
| 5012 | esac |
| 5013 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5014 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5015 | ac_status=$? |
| 5016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5017 | (exit $ac_status); }; }; then |
| 5018 | : |
| 5019 | else |
| 5020 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5021 | echo "$as_me: failed program was:" >&5 |
| 5022 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5023 | |
| 5024 | ( exit $ac_status ) |
| 5025 | ac_cv_header_stdc=no |
| 5026 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5027 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5028 | fi |
| 5029 | |
| 5030 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5031 | fi |
| 5032 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5033 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 5034 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5035 | if test $ac_cv_header_stdc = yes; then |
| 5036 | |
| 5037 | cat >>confdefs.h <<\_ACEOF |
| 5038 | #define STDC_HEADERS 1 |
| 5039 | _ACEOF |
| 5040 | |
| 5041 | fi |
| 5042 | |
| 5043 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 5044 | |
| 5045 | |
| 5046 | |
| 5047 | |
| 5048 | |
| 5049 | |
| 5050 | |
| 5051 | |
| 5052 | |
| 5053 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 5054 | inttypes.h stdint.h unistd.h |
| 5055 | do |
| 5056 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5057 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5058 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5059 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5060 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5061 | else |
| 5062 | cat >conftest.$ac_ext <<_ACEOF |
| 5063 | /* confdefs.h. */ |
| 5064 | _ACEOF |
| 5065 | cat confdefs.h >>conftest.$ac_ext |
| 5066 | cat >>conftest.$ac_ext <<_ACEOF |
| 5067 | /* end confdefs.h. */ |
| 5068 | $ac_includes_default |
| 5069 | |
| 5070 | #include <$ac_header> |
| 5071 | _ACEOF |
| 5072 | rm -f conftest.$ac_objext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5073 | if { (ac_try="$ac_compile" |
| 5074 | case "(($ac_try" in |
| 5075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5076 | *) ac_try_echo=$ac_try;; |
| 5077 | esac |
| 5078 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5079 | (eval "$ac_compile") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5080 | ac_status=$? |
| 5081 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5082 | rm -f conftest.er1 |
| 5083 | cat conftest.err >&5 |
| 5084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5085 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5086 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5087 | { (case "(($ac_try" in |
| 5088 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5089 | *) ac_try_echo=$ac_try;; |
| 5090 | esac |
| 5091 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5092 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5093 | ac_status=$? |
| 5094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5095 | (exit $ac_status); }; } && |
| 5096 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5097 | { (case "(($ac_try" in |
| 5098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5099 | *) ac_try_echo=$ac_try;; |
| 5100 | esac |
| 5101 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5102 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5103 | ac_status=$? |
| 5104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5105 | (exit $ac_status); }; }; then |
| 5106 | eval "$as_ac_Header=yes" |
| 5107 | else |
| 5108 | echo "$as_me: failed program was:" >&5 |
| 5109 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5110 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5111 | eval "$as_ac_Header=no" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5112 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5113 | |
| 5114 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5115 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5116 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5117 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5118 | echo "${ECHO_T}$ac_res" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5119 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5120 | cat >>confdefs.h <<_ACEOF |
| 5121 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5122 | _ACEOF |
| 5123 | |
| 5124 | fi |
| 5125 | |
| 5126 | done |
| 5127 | |
| 5128 | |
| 5129 | |
| 5130 | for ac_header in dlfcn.h |
| 5131 | do |
| 5132 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5133 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 5134 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5135 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5136 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5138 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5139 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5140 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5141 | echo "${ECHO_T}$ac_res" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5142 | else |
| 5143 | # Is the header compilable? |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5144 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 5145 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5146 | cat >conftest.$ac_ext <<_ACEOF |
| 5147 | /* confdefs.h. */ |
| 5148 | _ACEOF |
| 5149 | cat confdefs.h >>conftest.$ac_ext |
| 5150 | cat >>conftest.$ac_ext <<_ACEOF |
| 5151 | /* end confdefs.h. */ |
| 5152 | $ac_includes_default |
| 5153 | #include <$ac_header> |
| 5154 | _ACEOF |
| 5155 | rm -f conftest.$ac_objext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5156 | if { (ac_try="$ac_compile" |
| 5157 | case "(($ac_try" in |
| 5158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5159 | *) ac_try_echo=$ac_try;; |
| 5160 | esac |
| 5161 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5162 | (eval "$ac_compile") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5163 | ac_status=$? |
| 5164 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5165 | rm -f conftest.er1 |
| 5166 | cat conftest.err >&5 |
| 5167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5168 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5169 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5170 | { (case "(($ac_try" in |
| 5171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5172 | *) ac_try_echo=$ac_try;; |
| 5173 | esac |
| 5174 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5175 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5176 | ac_status=$? |
| 5177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5178 | (exit $ac_status); }; } && |
| 5179 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5180 | { (case "(($ac_try" in |
| 5181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5182 | *) ac_try_echo=$ac_try;; |
| 5183 | esac |
| 5184 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5185 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5186 | ac_status=$? |
| 5187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5188 | (exit $ac_status); }; }; then |
| 5189 | ac_header_compiler=yes |
| 5190 | else |
| 5191 | echo "$as_me: failed program was:" >&5 |
| 5192 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5193 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5194 | ac_header_compiler=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5195 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5196 | |
| 5197 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5198 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5199 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5200 | |
| 5201 | # Is the header present? |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5202 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 5203 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5204 | cat >conftest.$ac_ext <<_ACEOF |
| 5205 | /* confdefs.h. */ |
| 5206 | _ACEOF |
| 5207 | cat confdefs.h >>conftest.$ac_ext |
| 5208 | cat >>conftest.$ac_ext <<_ACEOF |
| 5209 | /* end confdefs.h. */ |
| 5210 | #include <$ac_header> |
| 5211 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5212 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5213 | case "(($ac_try" in |
| 5214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5215 | *) ac_try_echo=$ac_try;; |
| 5216 | esac |
| 5217 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5218 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5219 | ac_status=$? |
| 5220 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5221 | rm -f conftest.er1 |
| 5222 | cat conftest.err >&5 |
| 5223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5224 | (exit $ac_status); } >/dev/null; then |
| 5225 | if test -s conftest.err; then |
| 5226 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5227 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5228 | else |
| 5229 | ac_cpp_err= |
| 5230 | fi |
| 5231 | else |
| 5232 | ac_cpp_err=yes |
| 5233 | fi |
| 5234 | if test -z "$ac_cpp_err"; then |
| 5235 | ac_header_preproc=yes |
| 5236 | else |
| 5237 | echo "$as_me: failed program was:" >&5 |
| 5238 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5239 | |
| 5240 | ac_header_preproc=no |
| 5241 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5242 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5243 | rm -f conftest.err conftest.$ac_ext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5244 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5245 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5246 | |
| 5247 | # So? What about this header? |
| 5248 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5249 | yes:no: ) |
| 5250 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5251 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5252 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 5253 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 5254 | ac_header_preproc=yes |
| 5255 | ;; |
| 5256 | no:yes:* ) |
| 5257 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 5258 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 5259 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 5260 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 5261 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 5262 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 5263 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 5264 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5265 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5266 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 5267 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 5268 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5269 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5270 | ;; |
| 5271 | esac |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5272 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5273 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5274 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5275 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5276 | else |
| 5277 | eval "$as_ac_Header=\$ac_header_preproc" |
| 5278 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5279 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5280 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5281 | echo "${ECHO_T}$ac_res" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5282 | |
| 5283 | fi |
| 5284 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5285 | cat >>confdefs.h <<_ACEOF |
| 5286 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5287 | _ACEOF |
| 5288 | |
| 5289 | fi |
| 5290 | |
| 5291 | done |
| 5292 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5293 | ac_ext=cpp |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5294 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5295 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5296 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5297 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5298 | if test -z "$CXX"; then |
| 5299 | if test -n "$CCC"; then |
| 5300 | CXX=$CCC |
| 5301 | else |
| 5302 | if test -n "$ac_tool_prefix"; then |
| 5303 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5304 | do |
| 5305 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5306 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5307 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5308 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5309 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 5310 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5311 | else |
| 5312 | if test -n "$CXX"; then |
| 5313 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 5314 | else |
| 5315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5316 | for as_dir in $PATH |
| 5317 | do |
| 5318 | IFS=$as_save_IFS |
| 5319 | test -z "$as_dir" && as_dir=. |
| 5320 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5321 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5322 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 5323 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5324 | break 2 |
| 5325 | fi |
| 5326 | done |
| 5327 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5328 | IFS=$as_save_IFS |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5329 | |
| 5330 | fi |
| 5331 | fi |
| 5332 | CXX=$ac_cv_prog_CXX |
| 5333 | if test -n "$CXX"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5334 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 5335 | echo "${ECHO_T}$CXX" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5336 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5337 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5338 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5339 | fi |
| 5340 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5341 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5342 | test -n "$CXX" && break |
| 5343 | done |
| 5344 | fi |
| 5345 | if test -z "$CXX"; then |
| 5346 | ac_ct_CXX=$CXX |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5347 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5348 | do |
| 5349 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5350 | set dummy $ac_prog; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5351 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5352 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5353 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 5354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5355 | else |
| 5356 | if test -n "$ac_ct_CXX"; then |
| 5357 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 5358 | else |
| 5359 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5360 | for as_dir in $PATH |
| 5361 | do |
| 5362 | IFS=$as_save_IFS |
| 5363 | test -z "$as_dir" && as_dir=. |
| 5364 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5365 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5366 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 5367 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5368 | break 2 |
| 5369 | fi |
| 5370 | done |
| 5371 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5372 | IFS=$as_save_IFS |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5373 | |
| 5374 | fi |
| 5375 | fi |
| 5376 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 5377 | if test -n "$ac_ct_CXX"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5378 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 5379 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5380 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5381 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5382 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5383 | fi |
| 5384 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5385 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5386 | test -n "$ac_ct_CXX" && break |
| 5387 | done |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5388 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5389 | if test "x$ac_ct_CXX" = x; then |
| 5390 | CXX="g++" |
| 5391 | else |
| 5392 | case $cross_compiling:$ac_tool_warned in |
| 5393 | yes:) |
| 5394 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5395 | whose name does not start with the host triplet. If you think this |
| 5396 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5397 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5398 | whose name does not start with the host triplet. If you think this |
| 5399 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5400 | ac_tool_warned=yes ;; |
| 5401 | esac |
| 5402 | CXX=$ac_ct_CXX |
| 5403 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5404 | fi |
| 5405 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5406 | fi |
| 5407 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5408 | # Provide some information about the compiler. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5409 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5410 | ac_compiler=`set X $ac_compile; echo $2` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5411 | { (ac_try="$ac_compiler --version >&5" |
| 5412 | case "(($ac_try" in |
| 5413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5414 | *) ac_try_echo=$ac_try;; |
| 5415 | esac |
| 5416 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5417 | (eval "$ac_compiler --version >&5") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5418 | ac_status=$? |
| 5419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5420 | (exit $ac_status); } |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5421 | { (ac_try="$ac_compiler -v >&5" |
| 5422 | case "(($ac_try" in |
| 5423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5424 | *) ac_try_echo=$ac_try;; |
| 5425 | esac |
| 5426 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5427 | (eval "$ac_compiler -v >&5") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5428 | ac_status=$? |
| 5429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5430 | (exit $ac_status); } |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5431 | { (ac_try="$ac_compiler -V >&5" |
| 5432 | case "(($ac_try" in |
| 5433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5434 | *) ac_try_echo=$ac_try;; |
| 5435 | esac |
| 5436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5437 | (eval "$ac_compiler -V >&5") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5438 | ac_status=$? |
| 5439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5440 | (exit $ac_status); } |
| 5441 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5442 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 5443 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5444 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 5445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5446 | else |
| 5447 | cat >conftest.$ac_ext <<_ACEOF |
| 5448 | /* confdefs.h. */ |
| 5449 | _ACEOF |
| 5450 | cat confdefs.h >>conftest.$ac_ext |
| 5451 | cat >>conftest.$ac_ext <<_ACEOF |
| 5452 | /* end confdefs.h. */ |
| 5453 | |
| 5454 | int |
| 5455 | main () |
| 5456 | { |
| 5457 | #ifndef __GNUC__ |
| 5458 | choke me |
| 5459 | #endif |
| 5460 | |
| 5461 | ; |
| 5462 | return 0; |
| 5463 | } |
| 5464 | _ACEOF |
| 5465 | rm -f conftest.$ac_objext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5466 | if { (ac_try="$ac_compile" |
| 5467 | case "(($ac_try" in |
| 5468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5469 | *) ac_try_echo=$ac_try;; |
| 5470 | esac |
| 5471 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5472 | (eval "$ac_compile") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5473 | ac_status=$? |
| 5474 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5475 | rm -f conftest.er1 |
| 5476 | cat conftest.err >&5 |
| 5477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5478 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5479 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 5480 | { (case "(($ac_try" in |
| 5481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5482 | *) ac_try_echo=$ac_try;; |
| 5483 | esac |
| 5484 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5485 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5486 | ac_status=$? |
| 5487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5488 | (exit $ac_status); }; } && |
| 5489 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5490 | { (case "(($ac_try" in |
| 5491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5492 | *) ac_try_echo=$ac_try;; |
| 5493 | esac |
| 5494 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5495 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5496 | ac_status=$? |
| 5497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5498 | (exit $ac_status); }; }; then |
| 5499 | ac_compiler_gnu=yes |
| 5500 | else |
| 5501 | echo "$as_me: failed program was:" >&5 |
| 5502 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5503 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5504 | ac_compiler_gnu=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5505 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5506 | |
| 5507 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5508 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 5509 | |
| 5510 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5511 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 5512 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5513 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 5514 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 5515 | ac_save_CXXFLAGS=$CXXFLAGS |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5516 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 5517 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5518 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 5519 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5520 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5521 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 5522 | ac_cxx_werror_flag=yes |
| 5523 | ac_cv_prog_cxx_g=no |
| 5524 | CXXFLAGS="-g" |
| 5525 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5526 | /* confdefs.h. */ |
| 5527 | _ACEOF |
| 5528 | cat confdefs.h >>conftest.$ac_ext |
| 5529 | cat >>conftest.$ac_ext <<_ACEOF |
| 5530 | /* end confdefs.h. */ |
| 5531 | |
| 5532 | int |
| 5533 | main () |
| 5534 | { |
| 5535 | |
| 5536 | ; |
| 5537 | return 0; |
| 5538 | } |
| 5539 | _ACEOF |
| 5540 | rm -f conftest.$ac_objext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5541 | if { (ac_try="$ac_compile" |
| 5542 | case "(($ac_try" in |
| 5543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5544 | *) ac_try_echo=$ac_try;; |
| 5545 | esac |
| 5546 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5547 | (eval "$ac_compile") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5548 | ac_status=$? |
| 5549 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5550 | rm -f conftest.er1 |
| 5551 | cat conftest.err >&5 |
| 5552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5553 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5554 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 5555 | { (case "(($ac_try" in |
| 5556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5557 | *) ac_try_echo=$ac_try;; |
| 5558 | esac |
| 5559 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5560 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5561 | ac_status=$? |
| 5562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5563 | (exit $ac_status); }; } && |
| 5564 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5565 | { (case "(($ac_try" in |
| 5566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5567 | *) ac_try_echo=$ac_try;; |
| 5568 | esac |
| 5569 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5570 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5571 | ac_status=$? |
| 5572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5573 | (exit $ac_status); }; }; then |
| 5574 | ac_cv_prog_cxx_g=yes |
| 5575 | else |
| 5576 | echo "$as_me: failed program was:" >&5 |
| 5577 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5578 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5579 | CXXFLAGS="" |
| 5580 | cat >conftest.$ac_ext <<_ACEOF |
| 5581 | /* confdefs.h. */ |
| 5582 | _ACEOF |
| 5583 | cat confdefs.h >>conftest.$ac_ext |
| 5584 | cat >>conftest.$ac_ext <<_ACEOF |
| 5585 | /* end confdefs.h. */ |
| 5586 | |
| 5587 | int |
| 5588 | main () |
| 5589 | { |
| 5590 | |
| 5591 | ; |
| 5592 | return 0; |
| 5593 | } |
| 5594 | _ACEOF |
| 5595 | rm -f conftest.$ac_objext |
| 5596 | if { (ac_try="$ac_compile" |
| 5597 | case "(($ac_try" in |
| 5598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5599 | *) ac_try_echo=$ac_try;; |
| 5600 | esac |
| 5601 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5602 | (eval "$ac_compile") 2>conftest.er1 |
| 5603 | ac_status=$? |
| 5604 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5605 | rm -f conftest.er1 |
| 5606 | cat conftest.err >&5 |
| 5607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5608 | (exit $ac_status); } && |
| 5609 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 5610 | { (case "(($ac_try" in |
| 5611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5612 | *) ac_try_echo=$ac_try;; |
| 5613 | esac |
| 5614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5615 | (eval "$ac_try") 2>&5 |
| 5616 | ac_status=$? |
| 5617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5618 | (exit $ac_status); }; } && |
| 5619 | { ac_try='test -s conftest.$ac_objext' |
| 5620 | { (case "(($ac_try" in |
| 5621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5622 | *) ac_try_echo=$ac_try;; |
| 5623 | esac |
| 5624 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5625 | (eval "$ac_try") 2>&5 |
| 5626 | ac_status=$? |
| 5627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5628 | (exit $ac_status); }; }; then |
| 5629 | : |
| 5630 | else |
| 5631 | echo "$as_me: failed program was:" >&5 |
| 5632 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5633 | |
| 5634 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 5635 | CXXFLAGS="-g" |
| 5636 | cat >conftest.$ac_ext <<_ACEOF |
| 5637 | /* confdefs.h. */ |
| 5638 | _ACEOF |
| 5639 | cat confdefs.h >>conftest.$ac_ext |
| 5640 | cat >>conftest.$ac_ext <<_ACEOF |
| 5641 | /* end confdefs.h. */ |
| 5642 | |
| 5643 | int |
| 5644 | main () |
| 5645 | { |
| 5646 | |
| 5647 | ; |
| 5648 | return 0; |
| 5649 | } |
| 5650 | _ACEOF |
| 5651 | rm -f conftest.$ac_objext |
| 5652 | if { (ac_try="$ac_compile" |
| 5653 | case "(($ac_try" in |
| 5654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5655 | *) ac_try_echo=$ac_try;; |
| 5656 | esac |
| 5657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5658 | (eval "$ac_compile") 2>conftest.er1 |
| 5659 | ac_status=$? |
| 5660 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5661 | rm -f conftest.er1 |
| 5662 | cat conftest.err >&5 |
| 5663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5664 | (exit $ac_status); } && |
| 5665 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 5666 | { (case "(($ac_try" in |
| 5667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5668 | *) ac_try_echo=$ac_try;; |
| 5669 | esac |
| 5670 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5671 | (eval "$ac_try") 2>&5 |
| 5672 | ac_status=$? |
| 5673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5674 | (exit $ac_status); }; } && |
| 5675 | { ac_try='test -s conftest.$ac_objext' |
| 5676 | { (case "(($ac_try" in |
| 5677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5678 | *) ac_try_echo=$ac_try;; |
| 5679 | esac |
| 5680 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5681 | (eval "$ac_try") 2>&5 |
| 5682 | ac_status=$? |
| 5683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5684 | (exit $ac_status); }; }; then |
| 5685 | ac_cv_prog_cxx_g=yes |
| 5686 | else |
| 5687 | echo "$as_me: failed program was:" >&5 |
| 5688 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5689 | |
| 5690 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5691 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5692 | |
| 5693 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5694 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5695 | |
| 5696 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5697 | fi |
| 5698 | |
| 5699 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5700 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 5701 | fi |
| 5702 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 5703 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5704 | if test "$ac_test_CXXFLAGS" = set; then |
| 5705 | CXXFLAGS=$ac_save_CXXFLAGS |
| 5706 | elif test $ac_cv_prog_cxx_g = yes; then |
| 5707 | if test "$GXX" = yes; then |
| 5708 | CXXFLAGS="-g -O2" |
| 5709 | else |
| 5710 | CXXFLAGS="-g" |
| 5711 | fi |
| 5712 | else |
| 5713 | if test "$GXX" = yes; then |
| 5714 | CXXFLAGS="-O2" |
| 5715 | else |
| 5716 | CXXFLAGS= |
| 5717 | fi |
| 5718 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5719 | ac_ext=cpp |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5720 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5721 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5722 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5723 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5724 | |
| 5725 | depcc="$CXX" am_compiler_list= |
| 5726 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5727 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 5728 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5729 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
| 5730 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5731 | else |
| 5732 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 5733 | # We make a subdir and do the tests there. Otherwise we can end up |
| 5734 | # making bogus files that we don't know about and never remove. For |
| 5735 | # instance it was reported that on HP-UX the gcc test will end up |
| 5736 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 5737 | # in D'. |
| 5738 | mkdir conftest.dir |
| 5739 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 5740 | # using a relative directory. |
| 5741 | cp "$am_depcomp" conftest.dir |
| 5742 | cd conftest.dir |
| 5743 | # We will build objects and dependencies in a subdirectory because |
| 5744 | # it helps to detect inapplicable dependency modes. For instance |
| 5745 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 5746 | # side effect of compilation, but ICC will put the dependencies in |
| 5747 | # the current directory while Tru64 will put them in the object |
| 5748 | # directory. |
| 5749 | mkdir sub |
| 5750 | |
| 5751 | am_cv_CXX_dependencies_compiler_type=none |
| 5752 | if test "$am_compiler_list" = ""; then |
| 5753 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 5754 | fi |
| 5755 | for depmode in $am_compiler_list; do |
| 5756 | # Setup a source with many dependencies, because some compilers |
| 5757 | # like to wrap large dependency lists on column 80 (with \), and |
| 5758 | # we should not choose a depcomp mode which is confused by this. |
| 5759 | # |
| 5760 | # We need to recreate these files for each test, as the compiler may |
| 5761 | # overwrite some of them when testing with obscure command lines. |
| 5762 | # This happens at least with the AIX C compiler. |
| 5763 | : > sub/conftest.c |
| 5764 | for i in 1 2 3 4 5 6; do |
| 5765 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 5766 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 5767 | # Solaris 8's {/usr,}/bin/sh. |
| 5768 | touch sub/conftst$i.h |
| 5769 | done |
| 5770 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 5771 | |
| 5772 | case $depmode in |
| 5773 | nosideeffect) |
| 5774 | # after this tag, mechanisms are not by side-effect, so they'll |
| 5775 | # only be used when explicitly requested |
| 5776 | if test "x$enable_dependency_tracking" = xyes; then |
| 5777 | continue |
| 5778 | else |
| 5779 | break |
| 5780 | fi |
| 5781 | ;; |
| 5782 | none) break ;; |
| 5783 | esac |
| 5784 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 5785 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 5786 | # handle `-M -o', and we need to detect this. |
| 5787 | if depmode=$depmode \ |
| 5788 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| 5789 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 5790 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| 5791 | >/dev/null 2>conftest.err && |
| 5792 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 5793 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
| 5794 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 5795 | # icc doesn't choke on unknown options, it will just issue warnings |
| 5796 | # or remarks (even with -Werror). So we grep stderr for any message |
| 5797 | # that says an option was ignored or not supported. |
| 5798 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 5799 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 5800 | # The diagnosis changed in icc 8.0: |
| 5801 | # icc: Command line remark: option '-MP' not supported |
| 5802 | if (grep 'ignoring option' conftest.err || |
| 5803 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 5804 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 5805 | break |
| 5806 | fi |
| 5807 | fi |
| 5808 | done |
| 5809 | |
| 5810 | cd .. |
| 5811 | rm -rf conftest.dir |
| 5812 | else |
| 5813 | am_cv_CXX_dependencies_compiler_type=none |
| 5814 | fi |
| 5815 | |
| 5816 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5817 | { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 5818 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5819 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 5820 | |
| 5821 | |
| 5822 | |
| 5823 | if |
| 5824 | test "x$enable_dependency_tracking" != xno \ |
| 5825 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 5826 | am__fastdepCXX_TRUE= |
| 5827 | am__fastdepCXX_FALSE='#' |
| 5828 | else |
| 5829 | am__fastdepCXX_TRUE='#' |
| 5830 | am__fastdepCXX_FALSE= |
| 5831 | fi |
| 5832 | |
| 5833 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5834 | ac_ext=cpp |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5835 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5836 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5837 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5838 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5839 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 5840 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5841 | if test -z "$CXXCPP"; then |
| 5842 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
| 5843 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5844 | else |
| 5845 | # Double quotes because CXXCPP needs to be expanded |
| 5846 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 5847 | do |
| 5848 | ac_preproc_ok=false |
| 5849 | for ac_cxx_preproc_warn_flag in '' yes |
| 5850 | do |
| 5851 | # Use a header file that comes with gcc, so configuring glibc |
| 5852 | # with a fresh cross-compiler works. |
| 5853 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5854 | # <limits.h> exists even on freestanding compilers. |
| 5855 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5856 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5857 | cat >conftest.$ac_ext <<_ACEOF |
| 5858 | /* confdefs.h. */ |
| 5859 | _ACEOF |
| 5860 | cat confdefs.h >>conftest.$ac_ext |
| 5861 | cat >>conftest.$ac_ext <<_ACEOF |
| 5862 | /* end confdefs.h. */ |
| 5863 | #ifdef __STDC__ |
| 5864 | # include <limits.h> |
| 5865 | #else |
| 5866 | # include <assert.h> |
| 5867 | #endif |
| 5868 | Syntax error |
| 5869 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5870 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5871 | case "(($ac_try" in |
| 5872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5873 | *) ac_try_echo=$ac_try;; |
| 5874 | esac |
| 5875 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5876 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5877 | ac_status=$? |
| 5878 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5879 | rm -f conftest.er1 |
| 5880 | cat conftest.err >&5 |
| 5881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5882 | (exit $ac_status); } >/dev/null; then |
| 5883 | if test -s conftest.err; then |
| 5884 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 5885 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 5886 | else |
| 5887 | ac_cpp_err= |
| 5888 | fi |
| 5889 | else |
| 5890 | ac_cpp_err=yes |
| 5891 | fi |
| 5892 | if test -z "$ac_cpp_err"; then |
| 5893 | : |
| 5894 | else |
| 5895 | echo "$as_me: failed program was:" >&5 |
| 5896 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5897 | |
| 5898 | # Broken: fails on valid input. |
| 5899 | continue |
| 5900 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5901 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5902 | rm -f conftest.err conftest.$ac_ext |
| 5903 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5904 | # OK, works on sane cases. Now check whether nonexistent headers |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5905 | # can be detected and how. |
| 5906 | cat >conftest.$ac_ext <<_ACEOF |
| 5907 | /* confdefs.h. */ |
| 5908 | _ACEOF |
| 5909 | cat confdefs.h >>conftest.$ac_ext |
| 5910 | cat >>conftest.$ac_ext <<_ACEOF |
| 5911 | /* end confdefs.h. */ |
| 5912 | #include <ac_nonexistent.h> |
| 5913 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5914 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5915 | case "(($ac_try" in |
| 5916 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5917 | *) ac_try_echo=$ac_try;; |
| 5918 | esac |
| 5919 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5920 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5921 | ac_status=$? |
| 5922 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5923 | rm -f conftest.er1 |
| 5924 | cat conftest.err >&5 |
| 5925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5926 | (exit $ac_status); } >/dev/null; then |
| 5927 | if test -s conftest.err; then |
| 5928 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 5929 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 5930 | else |
| 5931 | ac_cpp_err= |
| 5932 | fi |
| 5933 | else |
| 5934 | ac_cpp_err=yes |
| 5935 | fi |
| 5936 | if test -z "$ac_cpp_err"; then |
| 5937 | # Broken: success on invalid input. |
| 5938 | continue |
| 5939 | else |
| 5940 | echo "$as_me: failed program was:" >&5 |
| 5941 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5942 | |
| 5943 | # Passes both tests. |
| 5944 | ac_preproc_ok=: |
| 5945 | break |
| 5946 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5947 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5948 | rm -f conftest.err conftest.$ac_ext |
| 5949 | |
| 5950 | done |
| 5951 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5952 | rm -f conftest.err conftest.$ac_ext |
| 5953 | if $ac_preproc_ok; then |
| 5954 | break |
| 5955 | fi |
| 5956 | |
| 5957 | done |
| 5958 | ac_cv_prog_CXXCPP=$CXXCPP |
| 5959 | |
| 5960 | fi |
| 5961 | CXXCPP=$ac_cv_prog_CXXCPP |
| 5962 | else |
| 5963 | ac_cv_prog_CXXCPP=$CXXCPP |
| 5964 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5965 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 5966 | echo "${ECHO_T}$CXXCPP" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5967 | ac_preproc_ok=false |
| 5968 | for ac_cxx_preproc_warn_flag in '' yes |
| 5969 | do |
| 5970 | # Use a header file that comes with gcc, so configuring glibc |
| 5971 | # with a fresh cross-compiler works. |
| 5972 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5973 | # <limits.h> exists even on freestanding compilers. |
| 5974 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5975 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5976 | cat >conftest.$ac_ext <<_ACEOF |
| 5977 | /* confdefs.h. */ |
| 5978 | _ACEOF |
| 5979 | cat confdefs.h >>conftest.$ac_ext |
| 5980 | cat >>conftest.$ac_ext <<_ACEOF |
| 5981 | /* end confdefs.h. */ |
| 5982 | #ifdef __STDC__ |
| 5983 | # include <limits.h> |
| 5984 | #else |
| 5985 | # include <assert.h> |
| 5986 | #endif |
| 5987 | Syntax error |
| 5988 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5989 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5990 | case "(($ac_try" in |
| 5991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5992 | *) ac_try_echo=$ac_try;; |
| 5993 | esac |
| 5994 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5995 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5996 | ac_status=$? |
| 5997 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5998 | rm -f conftest.er1 |
| 5999 | cat conftest.err >&5 |
| 6000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6001 | (exit $ac_status); } >/dev/null; then |
| 6002 | if test -s conftest.err; then |
| 6003 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 6004 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 6005 | else |
| 6006 | ac_cpp_err= |
| 6007 | fi |
| 6008 | else |
| 6009 | ac_cpp_err=yes |
| 6010 | fi |
| 6011 | if test -z "$ac_cpp_err"; then |
| 6012 | : |
| 6013 | else |
| 6014 | echo "$as_me: failed program was:" >&5 |
| 6015 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6016 | |
| 6017 | # Broken: fails on valid input. |
| 6018 | continue |
| 6019 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6020 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6021 | rm -f conftest.err conftest.$ac_ext |
| 6022 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6023 | # OK, works on sane cases. Now check whether nonexistent headers |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6024 | # can be detected and how. |
| 6025 | cat >conftest.$ac_ext <<_ACEOF |
| 6026 | /* confdefs.h. */ |
| 6027 | _ACEOF |
| 6028 | cat confdefs.h >>conftest.$ac_ext |
| 6029 | cat >>conftest.$ac_ext <<_ACEOF |
| 6030 | /* end confdefs.h. */ |
| 6031 | #include <ac_nonexistent.h> |
| 6032 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6033 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6034 | case "(($ac_try" in |
| 6035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6036 | *) ac_try_echo=$ac_try;; |
| 6037 | esac |
| 6038 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6039 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6040 | ac_status=$? |
| 6041 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6042 | rm -f conftest.er1 |
| 6043 | cat conftest.err >&5 |
| 6044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6045 | (exit $ac_status); } >/dev/null; then |
| 6046 | if test -s conftest.err; then |
| 6047 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 6048 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 6049 | else |
| 6050 | ac_cpp_err= |
| 6051 | fi |
| 6052 | else |
| 6053 | ac_cpp_err=yes |
| 6054 | fi |
| 6055 | if test -z "$ac_cpp_err"; then |
| 6056 | # Broken: success on invalid input. |
| 6057 | continue |
| 6058 | else |
| 6059 | echo "$as_me: failed program was:" >&5 |
| 6060 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6061 | |
| 6062 | # Passes both tests. |
| 6063 | ac_preproc_ok=: |
| 6064 | break |
| 6065 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6066 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6067 | rm -f conftest.err conftest.$ac_ext |
| 6068 | |
| 6069 | done |
| 6070 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 6071 | rm -f conftest.err conftest.$ac_ext |
| 6072 | if $ac_preproc_ok; then |
| 6073 | : |
| 6074 | else |
| 6075 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 6076 | See \`config.log' for more details." >&5 |
| 6077 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 6078 | See \`config.log' for more details." >&2;} |
| 6079 | { (exit 1); exit 1; }; } |
| 6080 | fi |
| 6081 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6082 | ac_ext=cpp |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6083 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 6084 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6085 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6086 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 6087 | |
| 6088 | |
| 6089 | ac_ext=f |
| 6090 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 6091 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6092 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 6093 | if test -n "$ac_tool_prefix"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6094 | for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6095 | do |
| 6096 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6097 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6098 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6099 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6100 | if test "${ac_cv_prog_F77+set}" = set; then |
| 6101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6102 | else |
| 6103 | if test -n "$F77"; then |
| 6104 | ac_cv_prog_F77="$F77" # Let the user override the test. |
| 6105 | else |
| 6106 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6107 | for as_dir in $PATH |
| 6108 | do |
| 6109 | IFS=$as_save_IFS |
| 6110 | test -z "$as_dir" && as_dir=. |
| 6111 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6112 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6113 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
| 6114 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6115 | break 2 |
| 6116 | fi |
| 6117 | done |
| 6118 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6119 | IFS=$as_save_IFS |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6120 | |
| 6121 | fi |
| 6122 | fi |
| 6123 | F77=$ac_cv_prog_F77 |
| 6124 | if test -n "$F77"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6125 | { echo "$as_me:$LINENO: result: $F77" >&5 |
| 6126 | echo "${ECHO_T}$F77" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6127 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6128 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6129 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6130 | fi |
| 6131 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6132 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6133 | test -n "$F77" && break |
| 6134 | done |
| 6135 | fi |
| 6136 | if test -z "$F77"; then |
| 6137 | ac_ct_F77=$F77 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6138 | for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6139 | do |
| 6140 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6141 | set dummy $ac_prog; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6142 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6143 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6144 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
| 6145 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6146 | else |
| 6147 | if test -n "$ac_ct_F77"; then |
| 6148 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
| 6149 | else |
| 6150 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6151 | for as_dir in $PATH |
| 6152 | do |
| 6153 | IFS=$as_save_IFS |
| 6154 | test -z "$as_dir" && as_dir=. |
| 6155 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6156 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6157 | ac_cv_prog_ac_ct_F77="$ac_prog" |
| 6158 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6159 | break 2 |
| 6160 | fi |
| 6161 | done |
| 6162 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6163 | IFS=$as_save_IFS |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6164 | |
| 6165 | fi |
| 6166 | fi |
| 6167 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
| 6168 | if test -n "$ac_ct_F77"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6169 | { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
| 6170 | echo "${ECHO_T}$ac_ct_F77" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6171 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6172 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6173 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6174 | fi |
| 6175 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6176 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6177 | test -n "$ac_ct_F77" && break |
| 6178 | done |
| 6179 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6180 | if test "x$ac_ct_F77" = x; then |
| 6181 | F77="" |
| 6182 | else |
| 6183 | case $cross_compiling:$ac_tool_warned in |
| 6184 | yes:) |
| 6185 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6186 | whose name does not start with the host triplet. If you think this |
| 6187 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6188 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6189 | whose name does not start with the host triplet. If you think this |
| 6190 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6191 | ac_tool_warned=yes ;; |
| 6192 | esac |
| 6193 | F77=$ac_ct_F77 |
| 6194 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6195 | fi |
| 6196 | |
| 6197 | |
| 6198 | # Provide some information about the compiler. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6199 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6200 | ac_compiler=`set X $ac_compile; echo $2` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6201 | { (ac_try="$ac_compiler --version >&5" |
| 6202 | case "(($ac_try" in |
| 6203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6204 | *) ac_try_echo=$ac_try;; |
| 6205 | esac |
| 6206 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6207 | (eval "$ac_compiler --version >&5") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6208 | ac_status=$? |
| 6209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6210 | (exit $ac_status); } |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6211 | { (ac_try="$ac_compiler -v >&5" |
| 6212 | case "(($ac_try" in |
| 6213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6214 | *) ac_try_echo=$ac_try;; |
| 6215 | esac |
| 6216 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6217 | (eval "$ac_compiler -v >&5") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6218 | ac_status=$? |
| 6219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6220 | (exit $ac_status); } |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6221 | { (ac_try="$ac_compiler -V >&5" |
| 6222 | case "(($ac_try" in |
| 6223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6224 | *) ac_try_echo=$ac_try;; |
| 6225 | esac |
| 6226 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6227 | (eval "$ac_compiler -V >&5") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6228 | ac_status=$? |
| 6229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6230 | (exit $ac_status); } |
| 6231 | rm -f a.out |
| 6232 | |
| 6233 | # If we don't use `.F' as extension, the preprocessor is not run on the |
| 6234 | # input file. (Note that this only needs to work for GNU compilers.) |
| 6235 | ac_save_ext=$ac_ext |
| 6236 | ac_ext=F |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6237 | { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
| 6238 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6239 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
| 6240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6241 | else |
| 6242 | cat >conftest.$ac_ext <<_ACEOF |
| 6243 | program main |
| 6244 | #ifndef __GNUC__ |
| 6245 | choke me |
| 6246 | #endif |
| 6247 | |
| 6248 | end |
| 6249 | _ACEOF |
| 6250 | rm -f conftest.$ac_objext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6251 | if { (ac_try="$ac_compile" |
| 6252 | case "(($ac_try" in |
| 6253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6254 | *) ac_try_echo=$ac_try;; |
| 6255 | esac |
| 6256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6257 | (eval "$ac_compile") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6258 | ac_status=$? |
| 6259 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6260 | rm -f conftest.er1 |
| 6261 | cat conftest.err >&5 |
| 6262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6263 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6264 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 6265 | { (case "(($ac_try" in |
| 6266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6267 | *) ac_try_echo=$ac_try;; |
| 6268 | esac |
| 6269 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6270 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6271 | ac_status=$? |
| 6272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6273 | (exit $ac_status); }; } && |
| 6274 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6275 | { (case "(($ac_try" in |
| 6276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6277 | *) ac_try_echo=$ac_try;; |
| 6278 | esac |
| 6279 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6280 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6281 | ac_status=$? |
| 6282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6283 | (exit $ac_status); }; }; then |
| 6284 | ac_compiler_gnu=yes |
| 6285 | else |
| 6286 | echo "$as_me: failed program was:" >&5 |
| 6287 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6288 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6289 | ac_compiler_gnu=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6290 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6291 | |
| 6292 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6293 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
| 6294 | |
| 6295 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6296 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
| 6297 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6298 | ac_ext=$ac_save_ext |
| 6299 | ac_test_FFLAGS=${FFLAGS+set} |
| 6300 | ac_save_FFLAGS=$FFLAGS |
| 6301 | FFLAGS= |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6302 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
| 6303 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6304 | if test "${ac_cv_prog_f77_g+set}" = set; then |
| 6305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6306 | else |
| 6307 | FFLAGS=-g |
| 6308 | cat >conftest.$ac_ext <<_ACEOF |
| 6309 | program main |
| 6310 | |
| 6311 | end |
| 6312 | _ACEOF |
| 6313 | rm -f conftest.$ac_objext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6314 | if { (ac_try="$ac_compile" |
| 6315 | case "(($ac_try" in |
| 6316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6317 | *) ac_try_echo=$ac_try;; |
| 6318 | esac |
| 6319 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6320 | (eval "$ac_compile") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6321 | ac_status=$? |
| 6322 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6323 | rm -f conftest.er1 |
| 6324 | cat conftest.err >&5 |
| 6325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6326 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6327 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 6328 | { (case "(($ac_try" in |
| 6329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6330 | *) ac_try_echo=$ac_try;; |
| 6331 | esac |
| 6332 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6333 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6334 | ac_status=$? |
| 6335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6336 | (exit $ac_status); }; } && |
| 6337 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6338 | { (case "(($ac_try" in |
| 6339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6340 | *) ac_try_echo=$ac_try;; |
| 6341 | esac |
| 6342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6343 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6344 | ac_status=$? |
| 6345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6346 | (exit $ac_status); }; }; then |
| 6347 | ac_cv_prog_f77_g=yes |
| 6348 | else |
| 6349 | echo "$as_me: failed program was:" >&5 |
| 6350 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6351 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6352 | ac_cv_prog_f77_g=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6353 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6354 | |
| 6355 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6356 | |
| 6357 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6358 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
| 6359 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6360 | if test "$ac_test_FFLAGS" = set; then |
| 6361 | FFLAGS=$ac_save_FFLAGS |
| 6362 | elif test $ac_cv_prog_f77_g = yes; then |
| 6363 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
| 6364 | FFLAGS="-g -O2" |
| 6365 | else |
| 6366 | FFLAGS="-g" |
| 6367 | fi |
| 6368 | else |
| 6369 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
| 6370 | FFLAGS="-O2" |
| 6371 | else |
| 6372 | FFLAGS= |
| 6373 | fi |
| 6374 | fi |
| 6375 | |
| 6376 | G77=`test $ac_compiler_gnu = yes && echo yes` |
| 6377 | ac_ext=c |
| 6378 | ac_cpp='$CPP $CPPFLAGS' |
| 6379 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6380 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6381 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6382 | |
| 6383 | |
| 6384 | |
| 6385 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| 6386 | |
| 6387 | # find the maximum length of command line arguments |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6388 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 6389 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6390 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| 6391 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6392 | else |
| 6393 | i=0 |
| 6394 | teststring="ABCD" |
| 6395 | |
| 6396 | case $build_os in |
| 6397 | msdosdjgpp*) |
| 6398 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 6399 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 6400 | # during glob expansion). Even if it were fixed, the result of this |
| 6401 | # check would be larger than it should be. |
| 6402 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 6403 | ;; |
| 6404 | |
| 6405 | gnu*) |
| 6406 | # Under GNU Hurd, this test is not required because there is |
| 6407 | # no limit to the length of command line arguments. |
| 6408 | # Libtool will interpret -1 as no limit whatsoever |
| 6409 | lt_cv_sys_max_cmd_len=-1; |
| 6410 | ;; |
| 6411 | |
| 6412 | cygwin* | mingw*) |
| 6413 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 6414 | # about 5 minutes as the teststring grows exponentially. |
| 6415 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 6416 | # you end up with a "frozen" computer, even though with patience |
| 6417 | # the test eventually succeeds (with a max line length of 256k). |
| 6418 | # Instead, let's just punt: use the minimum linelength reported by |
| 6419 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 6420 | lt_cv_sys_max_cmd_len=8192; |
| 6421 | ;; |
| 6422 | |
| 6423 | amigaos*) |
| 6424 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 6425 | # So we just punt and use a minimum line length of 8192. |
| 6426 | lt_cv_sys_max_cmd_len=8192; |
| 6427 | ;; |
| 6428 | |
| 6429 | *) |
| 6430 | # If test is not a shell built-in, we'll probably end up computing a |
| 6431 | # maximum length that is only half of the actual maximum length, but |
| 6432 | # we can't tell. |
| 6433 | while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
| 6434 | = "XX$teststring") >/dev/null 2>&1 && |
| 6435 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
| 6436 | lt_cv_sys_max_cmd_len=$new_result && |
| 6437 | test $i != 17 # 1/2 MB should be enough |
| 6438 | do |
| 6439 | i=`expr $i + 1` |
| 6440 | teststring=$teststring$teststring |
| 6441 | done |
| 6442 | teststring= |
| 6443 | # Add a significant safety factor because C++ compilers can tack on massive |
| 6444 | # amounts of additional arguments before passing them to the linker. |
| 6445 | # It appears as though 1/2 is a usable value. |
| 6446 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 6447 | ;; |
| 6448 | esac |
| 6449 | |
| 6450 | fi |
| 6451 | |
| 6452 | if test -n $lt_cv_sys_max_cmd_len ; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6453 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 6454 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6455 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6456 | { echo "$as_me:$LINENO: result: none" >&5 |
| 6457 | echo "${ECHO_T}none" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6458 | fi |
| 6459 | |
| 6460 | |
| 6461 | |
| 6462 | |
| 6463 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6464 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 6465 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6466 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 6467 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6468 | else |
| 6469 | |
| 6470 | # These are sane defaults that work on at least a few old systems. |
| 6471 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 6472 | |
| 6473 | # Character class describing NM global symbol codes. |
| 6474 | symcode='[BCDEGRST]' |
| 6475 | |
| 6476 | # Regexp to match symbols that can be accessed directly from C. |
| 6477 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 6478 | |
| 6479 | # Transform the above into a raw symbol and a C symbol. |
| 6480 | symxfrm='\1 \2\3 \3' |
| 6481 | |
| 6482 | # Transform an extracted symbol line into a proper C declaration |
| 6483 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 6484 | |
| 6485 | # Transform an extracted symbol line into symbol name and symbol address |
| 6486 | 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'" |
| 6487 | |
| 6488 | # Define system-specific variables. |
| 6489 | case $host_os in |
| 6490 | aix*) |
| 6491 | symcode='[BCDT]' |
| 6492 | ;; |
| 6493 | cygwin* | mingw* | pw32*) |
| 6494 | symcode='[ABCDGISTW]' |
| 6495 | ;; |
| 6496 | hpux*) # Its linker distinguishes data from code symbols |
| 6497 | if test "$host_cpu" = ia64; then |
| 6498 | symcode='[ABCDEGRST]' |
| 6499 | fi |
| 6500 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 6501 | 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'" |
| 6502 | ;; |
| 6503 | irix* | nonstopux*) |
| 6504 | symcode='[BCDEGRST]' |
| 6505 | ;; |
| 6506 | osf*) |
| 6507 | symcode='[BCDEGQRST]' |
| 6508 | ;; |
| 6509 | solaris* | sysv5*) |
| 6510 | symcode='[BDRT]' |
| 6511 | ;; |
| 6512 | sysv4) |
| 6513 | symcode='[DFNSTU]' |
| 6514 | ;; |
| 6515 | esac |
| 6516 | |
| 6517 | # Handle CRLF in mingw tool chain |
| 6518 | opt_cr= |
| 6519 | case $build_os in |
| 6520 | mingw*) |
| 6521 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 6522 | ;; |
| 6523 | esac |
| 6524 | |
| 6525 | # If we're using GNU nm, then use its standard symbol codes. |
| 6526 | case `$NM -V 2>&1` in |
| 6527 | *GNU* | *'with BFD'*) |
| 6528 | symcode='[ABCDGIRSTW]' ;; |
| 6529 | esac |
| 6530 | |
| 6531 | # Try without a prefix undercore, then with it. |
| 6532 | for ac_symprfx in "" "_"; do |
| 6533 | |
| 6534 | # Write the raw and C identifiers. |
| 6535 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
| 6536 | |
| 6537 | # Check to see that the pipe works correctly. |
| 6538 | pipe_works=no |
| 6539 | |
| 6540 | rm -f conftest* |
| 6541 | cat > conftest.$ac_ext <<EOF |
| 6542 | #ifdef __cplusplus |
| 6543 | extern "C" { |
| 6544 | #endif |
| 6545 | char nm_test_var; |
| 6546 | void nm_test_func(){} |
| 6547 | #ifdef __cplusplus |
| 6548 | } |
| 6549 | #endif |
| 6550 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 6551 | EOF |
| 6552 | |
| 6553 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6554 | (eval $ac_compile) 2>&5 |
| 6555 | ac_status=$? |
| 6556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6557 | (exit $ac_status); }; then |
| 6558 | # Now try to grab the symbols. |
| 6559 | nlist=conftest.nm |
| 6560 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 6561 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 6562 | ac_status=$? |
| 6563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6564 | (exit $ac_status); } && test -s "$nlist"; then |
| 6565 | # Try sorting and uniquifying the output. |
| 6566 | if sort "$nlist" | uniq > "$nlist"T; then |
| 6567 | mv -f "$nlist"T "$nlist" |
| 6568 | else |
| 6569 | rm -f "$nlist"T |
| 6570 | fi |
| 6571 | |
| 6572 | # Make sure that we snagged all the symbols we need. |
| 6573 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 6574 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 6575 | cat <<EOF > conftest.$ac_ext |
| 6576 | #ifdef __cplusplus |
| 6577 | extern "C" { |
| 6578 | #endif |
| 6579 | |
| 6580 | EOF |
| 6581 | # Now generate the symbol file. |
| 6582 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 6583 | |
| 6584 | cat <<EOF >> conftest.$ac_ext |
| 6585 | #if defined (__STDC__) && __STDC__ |
| 6586 | # define lt_ptr_t void * |
| 6587 | #else |
| 6588 | # define lt_ptr_t char * |
| 6589 | # define const |
| 6590 | #endif |
| 6591 | |
| 6592 | /* The mapping between symbol names and symbols. */ |
| 6593 | const struct { |
| 6594 | const char *name; |
| 6595 | lt_ptr_t address; |
| 6596 | } |
| 6597 | lt_preloaded_symbols[] = |
| 6598 | { |
| 6599 | EOF |
| 6600 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 6601 | cat <<\EOF >> conftest.$ac_ext |
| 6602 | {0, (lt_ptr_t) 0} |
| 6603 | }; |
| 6604 | |
| 6605 | #ifdef __cplusplus |
| 6606 | } |
| 6607 | #endif |
| 6608 | EOF |
| 6609 | # Now try linking the two files. |
| 6610 | mv conftest.$ac_objext conftstm.$ac_objext |
| 6611 | lt_save_LIBS="$LIBS" |
| 6612 | lt_save_CFLAGS="$CFLAGS" |
| 6613 | LIBS="conftstm.$ac_objext" |
| 6614 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 6615 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6616 | (eval $ac_link) 2>&5 |
| 6617 | ac_status=$? |
| 6618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6619 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 6620 | pipe_works=yes |
| 6621 | fi |
| 6622 | LIBS="$lt_save_LIBS" |
| 6623 | CFLAGS="$lt_save_CFLAGS" |
| 6624 | else |
| 6625 | echo "cannot find nm_test_func in $nlist" >&5 |
| 6626 | fi |
| 6627 | else |
| 6628 | echo "cannot find nm_test_var in $nlist" >&5 |
| 6629 | fi |
| 6630 | else |
| 6631 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 6632 | fi |
| 6633 | else |
| 6634 | echo "$progname: failed program was:" >&5 |
| 6635 | cat conftest.$ac_ext >&5 |
| 6636 | fi |
| 6637 | rm -f conftest* conftst* |
| 6638 | |
| 6639 | # Do not use the global_symbol_pipe unless it works. |
| 6640 | if test "$pipe_works" = yes; then |
| 6641 | break |
| 6642 | else |
| 6643 | lt_cv_sys_global_symbol_pipe= |
| 6644 | fi |
| 6645 | done |
| 6646 | |
| 6647 | fi |
| 6648 | |
| 6649 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 6650 | lt_cv_sys_global_symbol_to_cdecl= |
| 6651 | fi |
| 6652 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6653 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 6654 | echo "${ECHO_T}failed" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6655 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6656 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 6657 | echo "${ECHO_T}ok" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6658 | fi |
| 6659 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6660 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 6661 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6662 | if test "${lt_cv_objdir+set}" = set; then |
| 6663 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6664 | else |
| 6665 | rm -f .libs 2>/dev/null |
| 6666 | mkdir .libs 2>/dev/null |
| 6667 | if test -d .libs; then |
| 6668 | lt_cv_objdir=.libs |
| 6669 | else |
| 6670 | # MS-DOS does not allow filenames that begin with a dot. |
| 6671 | lt_cv_objdir=_libs |
| 6672 | fi |
| 6673 | rmdir .libs 2>/dev/null |
| 6674 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6675 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
| 6676 | echo "${ECHO_T}$lt_cv_objdir" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6677 | objdir=$lt_cv_objdir |
| 6678 | |
| 6679 | |
| 6680 | |
| 6681 | |
| 6682 | |
| 6683 | case $host_os in |
| 6684 | aix3*) |
| 6685 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 6686 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 6687 | # vanish in a puff of smoke. |
| 6688 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 6689 | COLLECT_NAMES= |
| 6690 | export COLLECT_NAMES |
| 6691 | fi |
| 6692 | ;; |
| 6693 | esac |
| 6694 | |
| 6695 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 6696 | # metacharacters that are still active within double-quoted strings. |
| 6697 | Xsed='sed -e s/^X//' |
| 6698 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 6699 | |
| 6700 | # Same as above, but do not quote variable references. |
| 6701 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 6702 | |
| 6703 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 6704 | # double_quote_subst'ed string. |
| 6705 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 6706 | |
| 6707 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 6708 | no_glob_subst='s/\*/\\\*/g' |
| 6709 | |
| 6710 | # Constants: |
| 6711 | rm="rm -f" |
| 6712 | |
| 6713 | # Global variables: |
| 6714 | default_ofile=libtool |
| 6715 | can_build_shared=yes |
| 6716 | |
| 6717 | # All known linkers require a `.a' archive for static linking (except M$VC, |
| 6718 | # which needs '.lib'). |
| 6719 | libext=a |
| 6720 | ltmain="$ac_aux_dir/ltmain.sh" |
| 6721 | ofile="$default_ofile" |
| 6722 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 6723 | |
| 6724 | if test -n "$ac_tool_prefix"; then |
| 6725 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 6726 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6727 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6728 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6729 | if test "${ac_cv_prog_AR+set}" = set; then |
| 6730 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6731 | else |
| 6732 | if test -n "$AR"; then |
| 6733 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 6734 | else |
| 6735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6736 | for as_dir in $PATH |
| 6737 | do |
| 6738 | IFS=$as_save_IFS |
| 6739 | test -z "$as_dir" && as_dir=. |
| 6740 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6741 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6742 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 6743 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6744 | break 2 |
| 6745 | fi |
| 6746 | done |
| 6747 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6748 | IFS=$as_save_IFS |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6749 | |
| 6750 | fi |
| 6751 | fi |
| 6752 | AR=$ac_cv_prog_AR |
| 6753 | if test -n "$AR"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6754 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 6755 | echo "${ECHO_T}$AR" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6756 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6757 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6758 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6759 | fi |
| 6760 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6761 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6762 | fi |
| 6763 | if test -z "$ac_cv_prog_AR"; then |
| 6764 | ac_ct_AR=$AR |
| 6765 | # Extract the first word of "ar", so it can be a program name with args. |
| 6766 | set dummy ar; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6767 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6768 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6769 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 6770 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6771 | else |
| 6772 | if test -n "$ac_ct_AR"; then |
| 6773 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 6774 | else |
| 6775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6776 | for as_dir in $PATH |
| 6777 | do |
| 6778 | IFS=$as_save_IFS |
| 6779 | test -z "$as_dir" && as_dir=. |
| 6780 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6781 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6782 | ac_cv_prog_ac_ct_AR="ar" |
| 6783 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6784 | break 2 |
| 6785 | fi |
| 6786 | done |
| 6787 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6788 | IFS=$as_save_IFS |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6789 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6790 | fi |
| 6791 | fi |
| 6792 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 6793 | if test -n "$ac_ct_AR"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6794 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 6795 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6796 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6797 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6798 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6799 | fi |
| 6800 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6801 | if test "x$ac_ct_AR" = x; then |
| 6802 | AR="false" |
| 6803 | else |
| 6804 | case $cross_compiling:$ac_tool_warned in |
| 6805 | yes:) |
| 6806 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6807 | whose name does not start with the host triplet. If you think this |
| 6808 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6809 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6810 | whose name does not start with the host triplet. If you think this |
| 6811 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6812 | ac_tool_warned=yes ;; |
| 6813 | esac |
| 6814 | AR=$ac_ct_AR |
| 6815 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6816 | else |
| 6817 | AR="$ac_cv_prog_AR" |
| 6818 | fi |
| 6819 | |
| 6820 | if test -n "$ac_tool_prefix"; then |
| 6821 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6822 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6823 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6824 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6825 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 6826 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6827 | else |
| 6828 | if test -n "$RANLIB"; then |
| 6829 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6830 | else |
| 6831 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6832 | for as_dir in $PATH |
| 6833 | do |
| 6834 | IFS=$as_save_IFS |
| 6835 | test -z "$as_dir" && as_dir=. |
| 6836 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6837 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6838 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 6839 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6840 | break 2 |
| 6841 | fi |
| 6842 | done |
| 6843 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6844 | IFS=$as_save_IFS |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6845 | |
| 6846 | fi |
| 6847 | fi |
| 6848 | RANLIB=$ac_cv_prog_RANLIB |
| 6849 | if test -n "$RANLIB"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6850 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 6851 | echo "${ECHO_T}$RANLIB" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6852 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6853 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6854 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6855 | fi |
| 6856 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6857 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6858 | fi |
| 6859 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6860 | ac_ct_RANLIB=$RANLIB |
| 6861 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6862 | set dummy ranlib; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6863 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6864 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6865 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 6866 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6867 | else |
| 6868 | if test -n "$ac_ct_RANLIB"; then |
| 6869 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6870 | else |
| 6871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6872 | for as_dir in $PATH |
| 6873 | do |
| 6874 | IFS=$as_save_IFS |
| 6875 | test -z "$as_dir" && as_dir=. |
| 6876 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6877 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6878 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 6879 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6880 | break 2 |
| 6881 | fi |
| 6882 | done |
| 6883 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6884 | IFS=$as_save_IFS |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6885 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6886 | fi |
| 6887 | fi |
| 6888 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6889 | if test -n "$ac_ct_RANLIB"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6890 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 6891 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6892 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6893 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6894 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6895 | fi |
| 6896 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6897 | if test "x$ac_ct_RANLIB" = x; then |
| 6898 | RANLIB=":" |
| 6899 | else |
| 6900 | case $cross_compiling:$ac_tool_warned in |
| 6901 | yes:) |
| 6902 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6903 | whose name does not start with the host triplet. If you think this |
| 6904 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6905 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6906 | whose name does not start with the host triplet. If you think this |
| 6907 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6908 | ac_tool_warned=yes ;; |
| 6909 | esac |
| 6910 | RANLIB=$ac_ct_RANLIB |
| 6911 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6912 | else |
| 6913 | RANLIB="$ac_cv_prog_RANLIB" |
| 6914 | fi |
| 6915 | |
| 6916 | if test -n "$ac_tool_prefix"; then |
| 6917 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 6918 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6919 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6920 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6921 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 6922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6923 | else |
| 6924 | if test -n "$STRIP"; then |
| 6925 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 6926 | else |
| 6927 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6928 | for as_dir in $PATH |
| 6929 | do |
| 6930 | IFS=$as_save_IFS |
| 6931 | test -z "$as_dir" && as_dir=. |
| 6932 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6933 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6934 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 6935 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6936 | break 2 |
| 6937 | fi |
| 6938 | done |
| 6939 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6940 | IFS=$as_save_IFS |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6941 | |
| 6942 | fi |
| 6943 | fi |
| 6944 | STRIP=$ac_cv_prog_STRIP |
| 6945 | if test -n "$STRIP"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6946 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 6947 | echo "${ECHO_T}$STRIP" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6948 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6949 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6950 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6951 | fi |
| 6952 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6953 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6954 | fi |
| 6955 | if test -z "$ac_cv_prog_STRIP"; then |
| 6956 | ac_ct_STRIP=$STRIP |
| 6957 | # Extract the first word of "strip", so it can be a program name with args. |
| 6958 | set dummy strip; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6959 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6960 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6961 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 6962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6963 | else |
| 6964 | if test -n "$ac_ct_STRIP"; then |
| 6965 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 6966 | else |
| 6967 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6968 | for as_dir in $PATH |
| 6969 | do |
| 6970 | IFS=$as_save_IFS |
| 6971 | test -z "$as_dir" && as_dir=. |
| 6972 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6973 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6974 | ac_cv_prog_ac_ct_STRIP="strip" |
| 6975 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6976 | break 2 |
| 6977 | fi |
| 6978 | done |
| 6979 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6980 | IFS=$as_save_IFS |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6981 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6982 | fi |
| 6983 | fi |
| 6984 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 6985 | if test -n "$ac_ct_STRIP"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6986 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 6987 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6988 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6989 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6990 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6991 | fi |
| 6992 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6993 | if test "x$ac_ct_STRIP" = x; then |
| 6994 | STRIP=":" |
| 6995 | else |
| 6996 | case $cross_compiling:$ac_tool_warned in |
| 6997 | yes:) |
| 6998 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6999 | whose name does not start with the host triplet. If you think this |
| 7000 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 7001 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 7002 | whose name does not start with the host triplet. If you think this |
| 7003 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 7004 | ac_tool_warned=yes ;; |
| 7005 | esac |
| 7006 | STRIP=$ac_ct_STRIP |
| 7007 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7008 | else |
| 7009 | STRIP="$ac_cv_prog_STRIP" |
| 7010 | fi |
| 7011 | |
| 7012 | |
| 7013 | old_CC="$CC" |
| 7014 | old_CFLAGS="$CFLAGS" |
| 7015 | |
| 7016 | # Set sane defaults for various variables |
| 7017 | test -z "$AR" && AR=ar |
| 7018 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 7019 | test -z "$AS" && AS=as |
| 7020 | test -z "$CC" && CC=cc |
| 7021 | test -z "$LTCC" && LTCC=$CC |
| 7022 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 7023 | test -z "$LD" && LD=ld |
| 7024 | test -z "$LN_S" && LN_S="ln -s" |
| 7025 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 7026 | test -z "$NM" && NM=nm |
| 7027 | test -z "$SED" && SED=sed |
| 7028 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 7029 | test -z "$RANLIB" && RANLIB=: |
| 7030 | test -z "$STRIP" && STRIP=: |
| 7031 | test -z "$ac_objext" && ac_objext=o |
| 7032 | |
| 7033 | # Determine commands to create old-style static archives. |
| 7034 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 7035 | old_postinstall_cmds='chmod 644 $oldlib' |
| 7036 | old_postuninstall_cmds= |
| 7037 | |
| 7038 | if test -n "$RANLIB"; then |
| 7039 | case $host_os in |
| 7040 | openbsd*) |
| 7041 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
| 7042 | ;; |
| 7043 | *) |
| 7044 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
| 7045 | ;; |
| 7046 | esac |
| 7047 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 7048 | fi |
| 7049 | |
| 7050 | # Only perform the check for file, if the check method requires it |
| 7051 | case $deplibs_check_method in |
| 7052 | file_magic*) |
| 7053 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7054 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 7055 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7056 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 7057 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7058 | else |
| 7059 | case $MAGIC_CMD in |
| 7060 | [\\/*] | ?:[\\/]*) |
| 7061 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 7062 | ;; |
| 7063 | *) |
| 7064 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 7065 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 7066 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 7067 | for ac_dir in $ac_dummy; do |
| 7068 | IFS="$lt_save_ifs" |
| 7069 | test -z "$ac_dir" && ac_dir=. |
| 7070 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 7071 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 7072 | if test -n "$file_magic_test_file"; then |
| 7073 | case $deplibs_check_method in |
| 7074 | "file_magic "*) |
| 7075 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 7076 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7077 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 7078 | $EGREP "$file_magic_regex" > /dev/null; then |
| 7079 | : |
| 7080 | else |
| 7081 | cat <<EOF 1>&2 |
| 7082 | |
| 7083 | *** Warning: the command libtool uses to detect shared libraries, |
| 7084 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 7085 | *** The result is that libtool may fail to recognize shared libraries |
| 7086 | *** as such. This will affect the creation of libtool libraries that |
| 7087 | *** depend on shared libraries, but programs linked with such libtool |
| 7088 | *** libraries will work regardless of this problem. Nevertheless, you |
| 7089 | *** may want to report the problem to your system manager and/or to |
| 7090 | *** bug-libtool@gnu.org |
| 7091 | |
| 7092 | EOF |
| 7093 | fi ;; |
| 7094 | esac |
| 7095 | fi |
| 7096 | break |
| 7097 | fi |
| 7098 | done |
| 7099 | IFS="$lt_save_ifs" |
| 7100 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 7101 | ;; |
| 7102 | esac |
| 7103 | fi |
| 7104 | |
| 7105 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7106 | if test -n "$MAGIC_CMD"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7107 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 7108 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7109 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7110 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7111 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7112 | fi |
| 7113 | |
| 7114 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 7115 | if test -n "$ac_tool_prefix"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7116 | { echo "$as_me:$LINENO: checking for file" >&5 |
| 7117 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7118 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 7119 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7120 | else |
| 7121 | case $MAGIC_CMD in |
| 7122 | [\\/*] | ?:[\\/]*) |
| 7123 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 7124 | ;; |
| 7125 | *) |
| 7126 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 7127 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 7128 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 7129 | for ac_dir in $ac_dummy; do |
| 7130 | IFS="$lt_save_ifs" |
| 7131 | test -z "$ac_dir" && ac_dir=. |
| 7132 | if test -f $ac_dir/file; then |
| 7133 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 7134 | if test -n "$file_magic_test_file"; then |
| 7135 | case $deplibs_check_method in |
| 7136 | "file_magic "*) |
| 7137 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 7138 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7139 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 7140 | $EGREP "$file_magic_regex" > /dev/null; then |
| 7141 | : |
| 7142 | else |
| 7143 | cat <<EOF 1>&2 |
| 7144 | |
| 7145 | *** Warning: the command libtool uses to detect shared libraries, |
| 7146 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 7147 | *** The result is that libtool may fail to recognize shared libraries |
| 7148 | *** as such. This will affect the creation of libtool libraries that |
| 7149 | *** depend on shared libraries, but programs linked with such libtool |
| 7150 | *** libraries will work regardless of this problem. Nevertheless, you |
| 7151 | *** may want to report the problem to your system manager and/or to |
| 7152 | *** bug-libtool@gnu.org |
| 7153 | |
| 7154 | EOF |
| 7155 | fi ;; |
| 7156 | esac |
| 7157 | fi |
| 7158 | break |
| 7159 | fi |
| 7160 | done |
| 7161 | IFS="$lt_save_ifs" |
| 7162 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 7163 | ;; |
| 7164 | esac |
| 7165 | fi |
| 7166 | |
| 7167 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7168 | if test -n "$MAGIC_CMD"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7169 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 7170 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7171 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7172 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7173 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7174 | fi |
| 7175 | |
| 7176 | else |
| 7177 | MAGIC_CMD=: |
| 7178 | fi |
| 7179 | fi |
| 7180 | |
| 7181 | fi |
| 7182 | ;; |
| 7183 | esac |
| 7184 | |
| 7185 | enable_dlopen=no |
| 7186 | enable_win32_dll=no |
| 7187 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7188 | # Check whether --enable-libtool-lock was given. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7189 | if test "${enable_libtool_lock+set}" = set; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7190 | enableval=$enable_libtool_lock; |
| 7191 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7192 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7193 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 7194 | |
| 7195 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7196 | # Check whether --with-pic was given. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7197 | if test "${with_pic+set}" = set; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7198 | withval=$with_pic; pic_mode="$withval" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7199 | else |
| 7200 | pic_mode=default |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7201 | fi |
| 7202 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7203 | test -z "$pic_mode" && pic_mode=default |
| 7204 | |
| 7205 | # Use C for the default configuration in the libtool script |
| 7206 | tagname= |
| 7207 | lt_save_CC="$CC" |
| 7208 | ac_ext=c |
| 7209 | ac_cpp='$CPP $CPPFLAGS' |
| 7210 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7211 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7212 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7213 | |
| 7214 | |
| 7215 | # Source file extension for C test sources. |
| 7216 | ac_ext=c |
| 7217 | |
| 7218 | # Object file extension for compiled C test sources. |
| 7219 | objext=o |
| 7220 | objext=$objext |
| 7221 | |
| 7222 | # Code to be used in simple compile tests |
| 7223 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 7224 | |
| 7225 | # Code to be used in simple link tests |
| 7226 | lt_simple_link_test_code='int main(){return(0);}\n' |
| 7227 | |
| 7228 | |
| 7229 | # If no C compiler was specified, use CC. |
| 7230 | LTCC=${LTCC-"$CC"} |
| 7231 | |
| 7232 | # Allow CC to be a program name with arguments. |
| 7233 | compiler=$CC |
| 7234 | |
| 7235 | |
| 7236 | # |
| 7237 | # Check for any special shared library compilation flags. |
| 7238 | # |
| 7239 | lt_prog_cc_shlib= |
| 7240 | if test "$GCC" = no; then |
| 7241 | case $host_os in |
| 7242 | sco3.2v5*) |
| 7243 | lt_prog_cc_shlib='-belf' |
| 7244 | ;; |
| 7245 | esac |
| 7246 | fi |
| 7247 | if test -n "$lt_prog_cc_shlib"; then |
| 7248 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 |
| 7249 | echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} |
| 7250 | if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : |
| 7251 | else |
| 7252 | { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
| 7253 | echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
| 7254 | lt_cv_prog_cc_can_build_shared=no |
| 7255 | fi |
| 7256 | fi |
| 7257 | |
| 7258 | |
| 7259 | # |
| 7260 | # Check to make sure the static flag actually works. |
| 7261 | # |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7262 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 |
| 7263 | echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7264 | if test "${lt_prog_compiler_static_works+set}" = set; then |
| 7265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7266 | else |
| 7267 | lt_prog_compiler_static_works=no |
| 7268 | save_LDFLAGS="$LDFLAGS" |
| 7269 | LDFLAGS="$LDFLAGS $lt_prog_compiler_static" |
| 7270 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 7271 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 7272 | # The compiler can only warn and ignore the option if not recognized |
| 7273 | # So say no if there are warnings |
| 7274 | if test -s conftest.err; then |
| 7275 | # Append any errors to the config.log. |
| 7276 | cat conftest.err 1>&5 |
| 7277 | else |
| 7278 | lt_prog_compiler_static_works=yes |
| 7279 | fi |
| 7280 | fi |
| 7281 | $rm conftest* |
| 7282 | LDFLAGS="$save_LDFLAGS" |
| 7283 | |
| 7284 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7285 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
| 7286 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7287 | |
| 7288 | if test x"$lt_prog_compiler_static_works" = xyes; then |
| 7289 | : |
| 7290 | else |
| 7291 | lt_prog_compiler_static= |
| 7292 | fi |
| 7293 | |
| 7294 | |
| 7295 | |
| 7296 | |
| 7297 | lt_prog_compiler_no_builtin_flag= |
| 7298 | |
| 7299 | if test "$GCC" = yes; then |
| 7300 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 7301 | |
| 7302 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7303 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 7304 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7305 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 7306 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7307 | else |
| 7308 | lt_cv_prog_compiler_rtti_exceptions=no |
| 7309 | ac_outfile=conftest.$ac_objext |
| 7310 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 7311 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 7312 | # Insert the option either (1) after the last *FLAGS variable, or |
| 7313 | # (2) before a word containing "conftest.", or (3) at the end. |
| 7314 | # Note that $ac_compile itself does not contain backslashes and begins |
| 7315 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 7316 | # The option is referenced via a variable to avoid confusing sed. |
| 7317 | lt_compile=`echo "$ac_compile" | $SED \ |
| 7318 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 7319 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 7320 | -e 's:$: $lt_compiler_flag:'` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7321 | (eval echo "\"\$as_me:7321: $lt_compile\"" >&5) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7322 | (eval "$lt_compile" 2>conftest.err) |
| 7323 | ac_status=$? |
| 7324 | cat conftest.err >&5 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7325 | echo "$as_me:7325: \$? = $ac_status" >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7326 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 7327 | # The compiler can only warn and ignore the option if not recognized |
| 7328 | # So say no if there are warnings |
| 7329 | if test ! -s conftest.err; then |
| 7330 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 7331 | fi |
| 7332 | fi |
| 7333 | $rm conftest* |
| 7334 | |
| 7335 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7336 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 7337 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7338 | |
| 7339 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 7340 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 7341 | else |
| 7342 | : |
| 7343 | fi |
| 7344 | |
| 7345 | fi |
| 7346 | |
| 7347 | lt_prog_compiler_wl= |
| 7348 | lt_prog_compiler_pic= |
| 7349 | lt_prog_compiler_static= |
| 7350 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7351 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 7352 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7353 | |
| 7354 | if test "$GCC" = yes; then |
| 7355 | lt_prog_compiler_wl='-Wl,' |
| 7356 | lt_prog_compiler_static='-static' |
| 7357 | |
| 7358 | case $host_os in |
| 7359 | aix*) |
| 7360 | # All AIX code is PIC. |
| 7361 | if test "$host_cpu" = ia64; then |
| 7362 | # AIX 5 now supports IA64 processor |
| 7363 | lt_prog_compiler_static='-Bstatic' |
| 7364 | fi |
| 7365 | ;; |
| 7366 | |
| 7367 | amigaos*) |
| 7368 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 7369 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 7370 | # like `-m68040'. |
| 7371 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 7372 | ;; |
| 7373 | |
| 7374 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 7375 | # PIC is the default for these OSes. |
| 7376 | ;; |
| 7377 | |
| 7378 | mingw* | pw32* | os2*) |
| 7379 | # This hack is so that the source file can tell whether it is being |
| 7380 | # built for inclusion in a dll (and should export symbols for example). |
| 7381 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 7382 | ;; |
| 7383 | |
| 7384 | darwin* | rhapsody*) |
| 7385 | # PIC is the default on this platform |
| 7386 | # Common symbols not allowed in MH_DYLIB files |
| 7387 | lt_prog_compiler_pic='-fno-common' |
| 7388 | ;; |
| 7389 | |
| 7390 | msdosdjgpp*) |
| 7391 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 7392 | # on systems that don't support them. |
| 7393 | lt_prog_compiler_can_build_shared=no |
| 7394 | enable_shared=no |
| 7395 | ;; |
| 7396 | |
| 7397 | sysv4*MP*) |
| 7398 | if test -d /usr/nec; then |
| 7399 | lt_prog_compiler_pic=-Kconform_pic |
| 7400 | fi |
| 7401 | ;; |
| 7402 | |
| 7403 | hpux*) |
| 7404 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 7405 | # not for PA HP-UX. |
| 7406 | case "$host_cpu" in |
| 7407 | hppa*64*|ia64*) |
| 7408 | # +Z the default |
| 7409 | ;; |
| 7410 | *) |
| 7411 | lt_prog_compiler_pic='-fPIC' |
| 7412 | ;; |
| 7413 | esac |
| 7414 | ;; |
| 7415 | |
| 7416 | *) |
| 7417 | lt_prog_compiler_pic='-fPIC' |
| 7418 | ;; |
| 7419 | esac |
| 7420 | else |
| 7421 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 7422 | case $host_os in |
| 7423 | aix*) |
| 7424 | lt_prog_compiler_wl='-Wl,' |
| 7425 | if test "$host_cpu" = ia64; then |
| 7426 | # AIX 5 now supports IA64 processor |
| 7427 | lt_prog_compiler_static='-Bstatic' |
| 7428 | else |
| 7429 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 7430 | fi |
| 7431 | ;; |
| 7432 | |
| 7433 | mingw* | pw32* | os2*) |
| 7434 | # This hack is so that the source file can tell whether it is being |
| 7435 | # built for inclusion in a dll (and should export symbols for example). |
| 7436 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 7437 | ;; |
| 7438 | |
| 7439 | hpux9* | hpux10* | hpux11*) |
| 7440 | lt_prog_compiler_wl='-Wl,' |
| 7441 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 7442 | # not for PA HP-UX. |
| 7443 | case "$host_cpu" in |
| 7444 | hppa*64*|ia64*) |
| 7445 | # +Z the default |
| 7446 | ;; |
| 7447 | *) |
| 7448 | lt_prog_compiler_pic='+Z' |
| 7449 | ;; |
| 7450 | esac |
| 7451 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 7452 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
| 7453 | ;; |
| 7454 | |
| 7455 | irix5* | irix6* | nonstopux*) |
| 7456 | lt_prog_compiler_wl='-Wl,' |
| 7457 | # PIC (with -KPIC) is the default. |
| 7458 | lt_prog_compiler_static='-non_shared' |
| 7459 | ;; |
| 7460 | |
| 7461 | newsos6) |
| 7462 | lt_prog_compiler_pic='-KPIC' |
| 7463 | lt_prog_compiler_static='-Bstatic' |
| 7464 | ;; |
| 7465 | |
| 7466 | linux*) |
| 7467 | case $CC in |
| 7468 | icc* | ecc*) |
| 7469 | lt_prog_compiler_wl='-Wl,' |
| 7470 | lt_prog_compiler_pic='-KPIC' |
| 7471 | lt_prog_compiler_static='-static' |
| 7472 | ;; |
| 7473 | ccc*) |
| 7474 | lt_prog_compiler_wl='-Wl,' |
| 7475 | # All Alpha code is PIC. |
| 7476 | lt_prog_compiler_static='-non_shared' |
| 7477 | ;; |
| 7478 | esac |
| 7479 | ;; |
| 7480 | |
| 7481 | osf3* | osf4* | osf5*) |
| 7482 | lt_prog_compiler_wl='-Wl,' |
| 7483 | # All OSF/1 code is PIC. |
| 7484 | lt_prog_compiler_static='-non_shared' |
| 7485 | ;; |
| 7486 | |
| 7487 | sco3.2v5*) |
| 7488 | lt_prog_compiler_pic='-Kpic' |
| 7489 | lt_prog_compiler_static='-dn' |
| 7490 | ;; |
| 7491 | |
| 7492 | solaris*) |
| 7493 | lt_prog_compiler_wl='-Wl,' |
| 7494 | lt_prog_compiler_pic='-KPIC' |
| 7495 | lt_prog_compiler_static='-Bstatic' |
| 7496 | ;; |
| 7497 | |
| 7498 | sunos4*) |
| 7499 | lt_prog_compiler_wl='-Qoption ld ' |
| 7500 | lt_prog_compiler_pic='-PIC' |
| 7501 | lt_prog_compiler_static='-Bstatic' |
| 7502 | ;; |
| 7503 | |
| 7504 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 7505 | lt_prog_compiler_wl='-Wl,' |
| 7506 | lt_prog_compiler_pic='-KPIC' |
| 7507 | lt_prog_compiler_static='-Bstatic' |
| 7508 | ;; |
| 7509 | |
| 7510 | sysv4*MP*) |
| 7511 | if test -d /usr/nec ;then |
| 7512 | lt_prog_compiler_pic='-Kconform_pic' |
| 7513 | lt_prog_compiler_static='-Bstatic' |
| 7514 | fi |
| 7515 | ;; |
| 7516 | |
| 7517 | uts4*) |
| 7518 | lt_prog_compiler_pic='-pic' |
| 7519 | lt_prog_compiler_static='-Bstatic' |
| 7520 | ;; |
| 7521 | |
| 7522 | *) |
| 7523 | lt_prog_compiler_can_build_shared=no |
| 7524 | ;; |
| 7525 | esac |
| 7526 | fi |
| 7527 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7528 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
| 7529 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7530 | |
| 7531 | # |
| 7532 | # Check to make sure the PIC flag actually works. |
| 7533 | # |
| 7534 | if test -n "$lt_prog_compiler_pic"; then |
| 7535 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7536 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 7537 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7538 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
| 7539 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7540 | else |
| 7541 | lt_prog_compiler_pic_works=no |
| 7542 | ac_outfile=conftest.$ac_objext |
| 7543 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 7544 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 7545 | # Insert the option either (1) after the last *FLAGS variable, or |
| 7546 | # (2) before a word containing "conftest.", or (3) at the end. |
| 7547 | # Note that $ac_compile itself does not contain backslashes and begins |
| 7548 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 7549 | # The option is referenced via a variable to avoid confusing sed. |
| 7550 | lt_compile=`echo "$ac_compile" | $SED \ |
| 7551 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 7552 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 7553 | -e 's:$: $lt_compiler_flag:'` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7554 | (eval echo "\"\$as_me:7554: $lt_compile\"" >&5) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7555 | (eval "$lt_compile" 2>conftest.err) |
| 7556 | ac_status=$? |
| 7557 | cat conftest.err >&5 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7558 | echo "$as_me:7558: \$? = $ac_status" >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7559 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 7560 | # The compiler can only warn and ignore the option if not recognized |
| 7561 | # So say no if there are warnings |
| 7562 | if test ! -s conftest.err; then |
| 7563 | lt_prog_compiler_pic_works=yes |
| 7564 | fi |
| 7565 | fi |
| 7566 | $rm conftest* |
| 7567 | |
| 7568 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7569 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
| 7570 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7571 | |
| 7572 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
| 7573 | case $lt_prog_compiler_pic in |
| 7574 | "" | " "*) ;; |
| 7575 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 7576 | esac |
| 7577 | else |
| 7578 | lt_prog_compiler_pic= |
| 7579 | lt_prog_compiler_can_build_shared=no |
| 7580 | fi |
| 7581 | |
| 7582 | fi |
| 7583 | case "$host_os" in |
| 7584 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 7585 | *djgpp*) |
| 7586 | lt_prog_compiler_pic= |
| 7587 | ;; |
| 7588 | *) |
| 7589 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 7590 | ;; |
| 7591 | esac |
| 7592 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7593 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 7594 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7595 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
| 7596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7597 | else |
| 7598 | lt_cv_prog_compiler_c_o=no |
| 7599 | $rm -r conftest 2>/dev/null |
| 7600 | mkdir conftest |
| 7601 | cd conftest |
| 7602 | mkdir out |
| 7603 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 7604 | |
| 7605 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 7606 | # Insert the option either (1) after the last *FLAGS variable, or |
| 7607 | # (2) before a word containing "conftest.", or (3) at the end. |
| 7608 | # Note that $ac_compile itself does not contain backslashes and begins |
| 7609 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 7610 | lt_compile=`echo "$ac_compile" | $SED \ |
| 7611 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 7612 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 7613 | -e 's:$: $lt_compiler_flag:'` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7614 | (eval echo "\"\$as_me:7614: $lt_compile\"" >&5) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7615 | (eval "$lt_compile" 2>out/conftest.err) |
| 7616 | ac_status=$? |
| 7617 | cat out/conftest.err >&5 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7618 | echo "$as_me:7618: \$? = $ac_status" >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7619 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 7620 | then |
| 7621 | # The compiler can only warn and ignore the option if not recognized |
| 7622 | # So say no if there are warnings |
| 7623 | if test ! -s out/conftest.err; then |
| 7624 | lt_cv_prog_compiler_c_o=yes |
| 7625 | fi |
| 7626 | fi |
| 7627 | chmod u+w . |
| 7628 | $rm conftest* |
| 7629 | # SGI C++ compiler will create directory out/ii_files/ for |
| 7630 | # template instantiation |
| 7631 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 7632 | $rm out/* && rmdir out |
| 7633 | cd .. |
| 7634 | rmdir conftest |
| 7635 | $rm conftest* |
| 7636 | |
| 7637 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7638 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 7639 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7640 | |
| 7641 | |
| 7642 | hard_links="nottested" |
| 7643 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
| 7644 | # do not overwrite the value of need_locks provided by the user |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7645 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 7646 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7647 | hard_links=yes |
| 7648 | $rm conftest* |
| 7649 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 7650 | touch conftest.a |
| 7651 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 7652 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7653 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 7654 | echo "${ECHO_T}$hard_links" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7655 | if test "$hard_links" = no; then |
| 7656 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 7657 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 7658 | need_locks=warn |
| 7659 | fi |
| 7660 | else |
| 7661 | need_locks=no |
| 7662 | fi |
| 7663 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7664 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 7665 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7666 | |
| 7667 | runpath_var= |
| 7668 | allow_undefined_flag= |
| 7669 | enable_shared_with_static_runtimes=no |
| 7670 | archive_cmds= |
| 7671 | archive_expsym_cmds= |
| 7672 | old_archive_From_new_cmds= |
| 7673 | old_archive_from_expsyms_cmds= |
| 7674 | export_dynamic_flag_spec= |
| 7675 | whole_archive_flag_spec= |
| 7676 | thread_safe_flag_spec= |
| 7677 | hardcode_libdir_flag_spec= |
| 7678 | hardcode_libdir_flag_spec_ld= |
| 7679 | hardcode_libdir_separator= |
| 7680 | hardcode_direct=no |
| 7681 | hardcode_minus_L=no |
| 7682 | hardcode_shlibpath_var=unsupported |
| 7683 | link_all_deplibs=unknown |
| 7684 | hardcode_automatic=no |
| 7685 | module_cmds= |
| 7686 | module_expsym_cmds= |
| 7687 | always_export_symbols=no |
| 7688 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 7689 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 7690 | # included in the symbol list |
| 7691 | include_expsyms= |
| 7692 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 7693 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 7694 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 7695 | # as well as any symbol that contains `d'. |
| 7696 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 7697 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 7698 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 7699 | # the symbol is explicitly referenced. Since portable code cannot |
| 7700 | # rely on this symbol name, it's probably fine to never include it in |
| 7701 | # preloaded symbol tables. |
| 7702 | extract_expsyms_cmds= |
| 7703 | |
| 7704 | case $host_os in |
| 7705 | cygwin* | mingw* | pw32*) |
| 7706 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 7707 | # When not using gcc, we currently assume that we are using |
| 7708 | # Microsoft Visual C++. |
| 7709 | if test "$GCC" != yes; then |
| 7710 | with_gnu_ld=no |
| 7711 | fi |
| 7712 | ;; |
| 7713 | openbsd*) |
| 7714 | with_gnu_ld=no |
| 7715 | ;; |
| 7716 | esac |
| 7717 | |
| 7718 | ld_shlibs=yes |
| 7719 | if test "$with_gnu_ld" = yes; then |
| 7720 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 7721 | wlarc='${wl}' |
| 7722 | |
| 7723 | # See if GNU ld supports shared libraries. |
| 7724 | case $host_os in |
| 7725 | aix3* | aix4* | aix5*) |
| 7726 | # On AIX/PPC, the GNU linker is very broken |
| 7727 | if test "$host_cpu" != ia64; then |
| 7728 | ld_shlibs=no |
| 7729 | cat <<EOF 1>&2 |
| 7730 | |
| 7731 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 7732 | *** to be unable to reliably create shared libraries on AIX. |
| 7733 | *** Therefore, libtool is disabling shared libraries support. If you |
| 7734 | *** really care for shared libraries, you may want to modify your PATH |
| 7735 | *** so that a non-GNU linker is found, and then restart. |
| 7736 | |
| 7737 | EOF |
| 7738 | fi |
| 7739 | ;; |
| 7740 | |
| 7741 | amigaos*) |
| 7742 | 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)' |
| 7743 | hardcode_libdir_flag_spec='-L$libdir' |
| 7744 | hardcode_minus_L=yes |
| 7745 | |
| 7746 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 7747 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 7748 | # to version 4, is to share data among multiple programs linked |
| 7749 | # with the same dynamic library. Since this doesn't match the |
| 7750 | # behavior of shared libraries on other platforms, we can't use |
| 7751 | # them. |
| 7752 | ld_shlibs=no |
| 7753 | ;; |
| 7754 | |
| 7755 | beos*) |
| 7756 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 7757 | allow_undefined_flag=unsupported |
| 7758 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 7759 | # support --undefined. This deserves some investigation. FIXME |
| 7760 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7761 | else |
| 7762 | ld_shlibs=no |
| 7763 | fi |
| 7764 | ;; |
| 7765 | |
| 7766 | cygwin* | mingw* | pw32*) |
| 7767 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 7768 | # as there is no search path for DLLs. |
| 7769 | hardcode_libdir_flag_spec='-L$libdir' |
| 7770 | allow_undefined_flag=unsupported |
| 7771 | always_export_symbols=no |
| 7772 | enable_shared_with_static_runtimes=yes |
| 7773 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 7774 | |
| 7775 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 7776 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 7777 | # If the export-symbols file already is a .def file (1st line |
| 7778 | # is EXPORTS), use it as is; otherwise, prepend... |
| 7779 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 7780 | cp $export_symbols $output_objdir/$soname.def; |
| 7781 | else |
| 7782 | echo EXPORTS > $output_objdir/$soname.def; |
| 7783 | cat $export_symbols >> $output_objdir/$soname.def; |
| 7784 | fi~ |
| 7785 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 7786 | else |
| 7787 | ld_shlibs=no |
| 7788 | fi |
| 7789 | ;; |
| 7790 | |
| 7791 | netbsd*) |
| 7792 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 7793 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 7794 | wlarc= |
| 7795 | else |
| 7796 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7797 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 7798 | fi |
| 7799 | ;; |
| 7800 | |
| 7801 | solaris* | sysv5*) |
| 7802 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 7803 | ld_shlibs=no |
| 7804 | cat <<EOF 1>&2 |
| 7805 | |
| 7806 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 7807 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 7808 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 7809 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 7810 | *** your PATH or compiler configuration so that the native linker is |
| 7811 | *** used, and then restart. |
| 7812 | |
| 7813 | EOF |
| 7814 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 7815 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7816 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 7817 | else |
| 7818 | ld_shlibs=no |
| 7819 | fi |
| 7820 | ;; |
| 7821 | |
| 7822 | sunos4*) |
| 7823 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 7824 | wlarc= |
| 7825 | hardcode_direct=yes |
| 7826 | hardcode_shlibpath_var=no |
| 7827 | ;; |
| 7828 | |
| 7829 | linux*) |
| 7830 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 7831 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7832 | archive_cmds="$tmp_archive_cmds" |
| 7833 | supports_anon_versioning=no |
| 7834 | case `$LD -v 2>/dev/null` in |
| 7835 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 7836 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 7837 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 7838 | *\ 2.11.*) ;; # other 2.11 versions |
| 7839 | *) supports_anon_versioning=yes ;; |
| 7840 | esac |
| 7841 | if test $supports_anon_versioning = yes; then |
| 7842 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 7843 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 7844 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 7845 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 7846 | else |
| 7847 | archive_expsym_cmds="$tmp_archive_cmds" |
| 7848 | fi |
| 7849 | else |
| 7850 | ld_shlibs=no |
| 7851 | fi |
| 7852 | ;; |
| 7853 | |
| 7854 | *) |
| 7855 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 7856 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7857 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 7858 | else |
| 7859 | ld_shlibs=no |
| 7860 | fi |
| 7861 | ;; |
| 7862 | esac |
| 7863 | |
| 7864 | if test "$ld_shlibs" = yes; then |
| 7865 | runpath_var=LD_RUN_PATH |
| 7866 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 7867 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 7868 | # ancient GNU ld didn't support --whole-archive et. al. |
| 7869 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 7870 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 7871 | else |
| 7872 | whole_archive_flag_spec= |
| 7873 | fi |
| 7874 | fi |
| 7875 | else |
| 7876 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 7877 | case $host_os in |
| 7878 | aix3*) |
| 7879 | allow_undefined_flag=unsupported |
| 7880 | always_export_symbols=yes |
| 7881 | 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' |
| 7882 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 7883 | # are no directories specified by -L. |
| 7884 | hardcode_minus_L=yes |
| 7885 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 7886 | # Neither direct hardcoding nor static linking is supported with a |
| 7887 | # broken collect2. |
| 7888 | hardcode_direct=unsupported |
| 7889 | fi |
| 7890 | ;; |
| 7891 | |
| 7892 | aix4* | aix5*) |
| 7893 | if test "$host_cpu" = ia64; then |
| 7894 | # On IA64, the linker does run time linking by default, so we don't |
| 7895 | # have to do anything special. |
| 7896 | aix_use_runtimelinking=no |
| 7897 | exp_sym_flag='-Bexport' |
| 7898 | no_entry_flag="" |
| 7899 | else |
| 7900 | # If we're using GNU nm, then we don't want the "-C" option. |
| 7901 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 7902 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 7903 | 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' |
| 7904 | else |
| 7905 | 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' |
| 7906 | fi |
| 7907 | aix_use_runtimelinking=no |
| 7908 | |
| 7909 | # Test if we are trying to use run time linking or normal |
| 7910 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 7911 | # need to do runtime linking. |
| 7912 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 7913 | for ld_flag in $LDFLAGS; do |
| 7914 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 7915 | aix_use_runtimelinking=yes |
| 7916 | break |
| 7917 | fi |
| 7918 | done |
| 7919 | esac |
| 7920 | |
| 7921 | exp_sym_flag='-bexport' |
| 7922 | no_entry_flag='-bnoentry' |
| 7923 | fi |
| 7924 | |
| 7925 | # When large executables or shared objects are built, AIX ld can |
| 7926 | # have problems creating the table of contents. If linking a library |
| 7927 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 7928 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 7929 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 7930 | |
| 7931 | archive_cmds='' |
| 7932 | hardcode_direct=yes |
| 7933 | hardcode_libdir_separator=':' |
| 7934 | link_all_deplibs=yes |
| 7935 | |
| 7936 | if test "$GCC" = yes; then |
| 7937 | case $host_os in aix4.012|aix4.012.*) |
| 7938 | # We only want to do this on AIX 4.2 and lower, the check |
| 7939 | # below for broken collect2 doesn't work under 4.3+ |
| 7940 | collect2name=`${CC} -print-prog-name=collect2` |
| 7941 | if test -f "$collect2name" && \ |
| 7942 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 7943 | then |
| 7944 | # We have reworked collect2 |
| 7945 | hardcode_direct=yes |
| 7946 | else |
| 7947 | # We have old collect2 |
| 7948 | hardcode_direct=unsupported |
| 7949 | # It fails to find uninstalled libraries when the uninstalled |
| 7950 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 7951 | # to unsupported forces relinking |
| 7952 | hardcode_minus_L=yes |
| 7953 | hardcode_libdir_flag_spec='-L$libdir' |
| 7954 | hardcode_libdir_separator= |
| 7955 | fi |
| 7956 | esac |
| 7957 | shared_flag='-shared' |
| 7958 | else |
| 7959 | # not using gcc |
| 7960 | if test "$host_cpu" = ia64; then |
| 7961 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 7962 | # chokes on -Wl,-G. The following line is correct: |
| 7963 | shared_flag='-G' |
| 7964 | else |
| 7965 | if test "$aix_use_runtimelinking" = yes; then |
| 7966 | shared_flag='${wl}-G' |
| 7967 | else |
| 7968 | shared_flag='${wl}-bM:SRE' |
| 7969 | fi |
| 7970 | fi |
| 7971 | fi |
| 7972 | |
| 7973 | # It seems that -bexpall does not export symbols beginning with |
| 7974 | # underscore (_), so it is better to generate a list of symbols to export. |
| 7975 | always_export_symbols=yes |
| 7976 | if test "$aix_use_runtimelinking" = yes; then |
| 7977 | # Warning - without using the other runtime loading flags (-brtl), |
| 7978 | # -berok will link without error, but may produce a broken library. |
| 7979 | allow_undefined_flag='-berok' |
| 7980 | # Determine the default libpath from the value encoded in an empty executable. |
| 7981 | cat >conftest.$ac_ext <<_ACEOF |
| 7982 | /* confdefs.h. */ |
| 7983 | _ACEOF |
| 7984 | cat confdefs.h >>conftest.$ac_ext |
| 7985 | cat >>conftest.$ac_ext <<_ACEOF |
| 7986 | /* end confdefs.h. */ |
| 7987 | |
| 7988 | int |
| 7989 | main () |
| 7990 | { |
| 7991 | |
| 7992 | ; |
| 7993 | return 0; |
| 7994 | } |
| 7995 | _ACEOF |
| 7996 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7997 | if { (ac_try="$ac_link" |
| 7998 | case "(($ac_try" in |
| 7999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8000 | *) ac_try_echo=$ac_try;; |
| 8001 | esac |
| 8002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8003 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8004 | ac_status=$? |
| 8005 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8006 | rm -f conftest.er1 |
| 8007 | cat conftest.err >&5 |
| 8008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8009 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 8010 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8011 | { (case "(($ac_try" in |
| 8012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8013 | *) ac_try_echo=$ac_try;; |
| 8014 | esac |
| 8015 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8016 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8017 | ac_status=$? |
| 8018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8019 | (exit $ac_status); }; } && |
| 8020 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 8021 | { (case "(($ac_try" in |
| 8022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8023 | *) ac_try_echo=$ac_try;; |
| 8024 | esac |
| 8025 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8026 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8027 | ac_status=$? |
| 8028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8029 | (exit $ac_status); }; }; then |
| 8030 | |
| 8031 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 8032 | }'` |
| 8033 | # Check for a 64-bit object if we didn't find anything. |
| 8034 | 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; } |
| 8035 | }'`; fi |
| 8036 | else |
| 8037 | echo "$as_me: failed program was:" >&5 |
| 8038 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8039 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 8040 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8041 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 8042 | |
| 8043 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8044 | conftest$ac_exeext conftest.$ac_ext |
| 8045 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 8046 | |
| 8047 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 8048 | archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 8049 | else |
| 8050 | if test "$host_cpu" = ia64; then |
| 8051 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 8052 | allow_undefined_flag="-z nodefs" |
| 8053 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
| 8054 | else |
| 8055 | # Determine the default libpath from the value encoded in an empty executable. |
| 8056 | cat >conftest.$ac_ext <<_ACEOF |
| 8057 | /* confdefs.h. */ |
| 8058 | _ACEOF |
| 8059 | cat confdefs.h >>conftest.$ac_ext |
| 8060 | cat >>conftest.$ac_ext <<_ACEOF |
| 8061 | /* end confdefs.h. */ |
| 8062 | |
| 8063 | int |
| 8064 | main () |
| 8065 | { |
| 8066 | |
| 8067 | ; |
| 8068 | return 0; |
| 8069 | } |
| 8070 | _ACEOF |
| 8071 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 8072 | if { (ac_try="$ac_link" |
| 8073 | case "(($ac_try" in |
| 8074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8075 | *) ac_try_echo=$ac_try;; |
| 8076 | esac |
| 8077 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8078 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8079 | ac_status=$? |
| 8080 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8081 | rm -f conftest.er1 |
| 8082 | cat conftest.err >&5 |
| 8083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8084 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 8085 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8086 | { (case "(($ac_try" in |
| 8087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8088 | *) ac_try_echo=$ac_try;; |
| 8089 | esac |
| 8090 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8091 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8092 | ac_status=$? |
| 8093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8094 | (exit $ac_status); }; } && |
| 8095 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 8096 | { (case "(($ac_try" in |
| 8097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8098 | *) ac_try_echo=$ac_try;; |
| 8099 | esac |
| 8100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8101 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8102 | ac_status=$? |
| 8103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8104 | (exit $ac_status); }; }; then |
| 8105 | |
| 8106 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 8107 | }'` |
| 8108 | # Check for a 64-bit object if we didn't find anything. |
| 8109 | 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; } |
| 8110 | }'`; fi |
| 8111 | else |
| 8112 | echo "$as_me: failed program was:" >&5 |
| 8113 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8114 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 8115 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8116 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 8117 | |
| 8118 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8119 | conftest$ac_exeext conftest.$ac_ext |
| 8120 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 8121 | |
| 8122 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 8123 | # Warning - without using the other run time loading flags, |
| 8124 | # -berok will link without error, but may produce a broken library. |
| 8125 | no_undefined_flag=' ${wl}-bernotok' |
| 8126 | allow_undefined_flag=' ${wl}-berok' |
| 8127 | # -bexpall does not export symbols beginning with underscore (_) |
| 8128 | always_export_symbols=yes |
| 8129 | # Exported symbols can be pulled into shared objects from archives |
| 8130 | whole_archive_flag_spec=' ' |
| 8131 | archive_cmds_need_lc=yes |
| 8132 | # This is similar to how AIX traditionally builds it's shared libraries. |
| 8133 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 8134 | fi |
| 8135 | fi |
| 8136 | ;; |
| 8137 | |
| 8138 | amigaos*) |
| 8139 | 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)' |
| 8140 | hardcode_libdir_flag_spec='-L$libdir' |
| 8141 | hardcode_minus_L=yes |
| 8142 | # see comment about different semantics on the GNU ld section |
| 8143 | ld_shlibs=no |
| 8144 | ;; |
| 8145 | |
| 8146 | bsdi4*) |
| 8147 | export_dynamic_flag_spec=-rdynamic |
| 8148 | ;; |
| 8149 | |
| 8150 | cygwin* | mingw* | pw32*) |
| 8151 | # When not using gcc, we currently assume that we are using |
| 8152 | # Microsoft Visual C++. |
| 8153 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 8154 | # no search path for DLLs. |
| 8155 | hardcode_libdir_flag_spec=' ' |
| 8156 | allow_undefined_flag=unsupported |
| 8157 | # Tell ltmain to make .lib files, not .a files. |
| 8158 | libext=lib |
| 8159 | # Tell ltmain to make .dll files, not .so files. |
| 8160 | shrext_cmds=".dll" |
| 8161 | # FIXME: Setting linknames here is a bad hack. |
| 8162 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 8163 | # The linker will automatically build a .lib file if we build a DLL. |
| 8164 | old_archive_From_new_cmds='true' |
| 8165 | # FIXME: Should let the user specify the lib program. |
| 8166 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 8167 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 8168 | enable_shared_with_static_runtimes=yes |
| 8169 | ;; |
| 8170 | |
| 8171 | darwin* | rhapsody*) |
| 8172 | if test "$GXX" = yes ; then |
| 8173 | archive_cmds_need_lc=no |
| 8174 | case "$host_os" in |
| 8175 | rhapsody* | darwin1.[012]) |
| 8176 | allow_undefined_flag='-undefined suppress' |
| 8177 | ;; |
| 8178 | *) # Darwin 1.3 on |
| 8179 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 8180 | allow_undefined_flag='-flat_namespace -undefined suppress' |
| 8181 | else |
| 8182 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 8183 | 10.[012]) |
| 8184 | allow_undefined_flag='-flat_namespace -undefined suppress' |
| 8185 | ;; |
| 8186 | 10.*) |
| 8187 | allow_undefined_flag='-undefined dynamic_lookup' |
| 8188 | ;; |
| 8189 | esac |
| 8190 | fi |
| 8191 | ;; |
| 8192 | esac |
| 8193 | lt_int_apple_cc_single_mod=no |
| 8194 | output_verbose_link_cmd='echo' |
| 8195 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
| 8196 | lt_int_apple_cc_single_mod=yes |
| 8197 | fi |
| 8198 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 8199 | archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 8200 | else |
| 8201 | archive_cmds='$CC -r ${wl}-bind_at_load -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' |
| 8202 | fi |
| 8203 | module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 8204 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 8205 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 8206 | archive_expsym_cmds='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}' |
| 8207 | else |
| 8208 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' |
| 8209 | fi |
| 8210 | 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}' |
| 8211 | hardcode_direct=no |
| 8212 | hardcode_automatic=yes |
| 8213 | hardcode_shlibpath_var=unsupported |
| 8214 | whole_archive_flag_spec='-all_load $convenience' |
| 8215 | link_all_deplibs=yes |
| 8216 | else |
| 8217 | ld_shlibs=no |
| 8218 | fi |
| 8219 | ;; |
| 8220 | |
| 8221 | dgux*) |
| 8222 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8223 | hardcode_libdir_flag_spec='-L$libdir' |
| 8224 | hardcode_shlibpath_var=no |
| 8225 | ;; |
| 8226 | |
| 8227 | freebsd1*) |
| 8228 | ld_shlibs=no |
| 8229 | ;; |
| 8230 | |
| 8231 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 8232 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 8233 | # does not break anything, and helps significantly (at the cost of a little |
| 8234 | # extra space). |
| 8235 | freebsd2.2*) |
| 8236 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 8237 | hardcode_libdir_flag_spec='-R$libdir' |
| 8238 | hardcode_direct=yes |
| 8239 | hardcode_shlibpath_var=no |
| 8240 | ;; |
| 8241 | |
| 8242 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 8243 | freebsd2*) |
| 8244 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 8245 | hardcode_direct=yes |
| 8246 | hardcode_minus_L=yes |
| 8247 | hardcode_shlibpath_var=no |
| 8248 | ;; |
| 8249 | |
| 8250 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 8251 | freebsd* | kfreebsd*-gnu) |
| 8252 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 8253 | hardcode_libdir_flag_spec='-R$libdir' |
| 8254 | hardcode_direct=yes |
| 8255 | hardcode_shlibpath_var=no |
| 8256 | ;; |
| 8257 | |
| 8258 | hpux9*) |
| 8259 | if test "$GCC" = yes; then |
| 8260 | 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' |
| 8261 | else |
| 8262 | 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' |
| 8263 | fi |
| 8264 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 8265 | hardcode_libdir_separator=: |
| 8266 | hardcode_direct=yes |
| 8267 | |
| 8268 | # hardcode_minus_L: Not really in the search PATH, |
| 8269 | # but as the default location of the library. |
| 8270 | hardcode_minus_L=yes |
| 8271 | export_dynamic_flag_spec='${wl}-E' |
| 8272 | ;; |
| 8273 | |
| 8274 | hpux10* | hpux11*) |
| 8275 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 8276 | case "$host_cpu" in |
| 8277 | hppa*64*|ia64*) |
| 8278 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8279 | ;; |
| 8280 | *) |
| 8281 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 8282 | ;; |
| 8283 | esac |
| 8284 | else |
| 8285 | case "$host_cpu" in |
| 8286 | hppa*64*|ia64*) |
| 8287 | archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8288 | ;; |
| 8289 | *) |
| 8290 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 8291 | ;; |
| 8292 | esac |
| 8293 | fi |
| 8294 | if test "$with_gnu_ld" = no; then |
| 8295 | case "$host_cpu" in |
| 8296 | hppa*64*) |
| 8297 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 8298 | hardcode_libdir_flag_spec_ld='+b $libdir' |
| 8299 | hardcode_libdir_separator=: |
| 8300 | hardcode_direct=no |
| 8301 | hardcode_shlibpath_var=no |
| 8302 | ;; |
| 8303 | ia64*) |
| 8304 | hardcode_libdir_flag_spec='-L$libdir' |
| 8305 | hardcode_direct=no |
| 8306 | hardcode_shlibpath_var=no |
| 8307 | |
| 8308 | # hardcode_minus_L: Not really in the search PATH, |
| 8309 | # but as the default location of the library. |
| 8310 | hardcode_minus_L=yes |
| 8311 | ;; |
| 8312 | *) |
| 8313 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 8314 | hardcode_libdir_separator=: |
| 8315 | hardcode_direct=yes |
| 8316 | export_dynamic_flag_spec='${wl}-E' |
| 8317 | |
| 8318 | # hardcode_minus_L: Not really in the search PATH, |
| 8319 | # but as the default location of the library. |
| 8320 | hardcode_minus_L=yes |
| 8321 | ;; |
| 8322 | esac |
| 8323 | fi |
| 8324 | ;; |
| 8325 | |
| 8326 | irix5* | irix6* | nonstopux*) |
| 8327 | if test "$GCC" = yes; then |
| 8328 | 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' |
| 8329 | else |
| 8330 | 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' |
| 8331 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 8332 | fi |
| 8333 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8334 | hardcode_libdir_separator=: |
| 8335 | link_all_deplibs=yes |
| 8336 | ;; |
| 8337 | |
| 8338 | netbsd*) |
| 8339 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 8340 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 8341 | else |
| 8342 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 8343 | fi |
| 8344 | hardcode_libdir_flag_spec='-R$libdir' |
| 8345 | hardcode_direct=yes |
| 8346 | hardcode_shlibpath_var=no |
| 8347 | ;; |
| 8348 | |
| 8349 | newsos6) |
| 8350 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8351 | hardcode_direct=yes |
| 8352 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8353 | hardcode_libdir_separator=: |
| 8354 | hardcode_shlibpath_var=no |
| 8355 | ;; |
| 8356 | |
| 8357 | openbsd*) |
| 8358 | hardcode_direct=yes |
| 8359 | hardcode_shlibpath_var=no |
| 8360 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 8361 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 8362 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 8363 | export_dynamic_flag_spec='${wl}-E' |
| 8364 | else |
| 8365 | case $host_os in |
| 8366 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 8367 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 8368 | hardcode_libdir_flag_spec='-R$libdir' |
| 8369 | ;; |
| 8370 | *) |
| 8371 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 8372 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 8373 | ;; |
| 8374 | esac |
| 8375 | fi |
| 8376 | ;; |
| 8377 | |
| 8378 | os2*) |
| 8379 | hardcode_libdir_flag_spec='-L$libdir' |
| 8380 | hardcode_minus_L=yes |
| 8381 | allow_undefined_flag=unsupported |
| 8382 | 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' |
| 8383 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 8384 | ;; |
| 8385 | |
| 8386 | osf3*) |
| 8387 | if test "$GCC" = yes; then |
| 8388 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 8389 | 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' |
| 8390 | else |
| 8391 | allow_undefined_flag=' -expect_unresolved \*' |
| 8392 | 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' |
| 8393 | fi |
| 8394 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8395 | hardcode_libdir_separator=: |
| 8396 | ;; |
| 8397 | |
| 8398 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 8399 | if test "$GCC" = yes; then |
| 8400 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 8401 | 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' |
| 8402 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8403 | else |
| 8404 | allow_undefined_flag=' -expect_unresolved \*' |
| 8405 | 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' |
| 8406 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
| 8407 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' |
| 8408 | |
| 8409 | # Both c and cxx compiler support -rpath directly |
| 8410 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 8411 | fi |
| 8412 | hardcode_libdir_separator=: |
| 8413 | ;; |
| 8414 | |
| 8415 | sco3.2v5*) |
| 8416 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8417 | hardcode_shlibpath_var=no |
| 8418 | export_dynamic_flag_spec='${wl}-Bexport' |
| 8419 | runpath_var=LD_RUN_PATH |
| 8420 | hardcode_runpath_var=yes |
| 8421 | ;; |
| 8422 | |
| 8423 | solaris*) |
| 8424 | no_undefined_flag=' -z text' |
| 8425 | if test "$GCC" = yes; then |
| 8426 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8427 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 8428 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 8429 | else |
| 8430 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8431 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 8432 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 8433 | fi |
| 8434 | hardcode_libdir_flag_spec='-R$libdir' |
| 8435 | hardcode_shlibpath_var=no |
| 8436 | case $host_os in |
| 8437 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 8438 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 8439 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 8440 | esac |
| 8441 | link_all_deplibs=yes |
| 8442 | ;; |
| 8443 | |
| 8444 | sunos4*) |
| 8445 | if test "x$host_vendor" = xsequent; then |
| 8446 | # Use $CC to link under sequent, because it throws in some extra .o |
| 8447 | # files that make .init and .fini sections work. |
| 8448 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8449 | else |
| 8450 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 8451 | fi |
| 8452 | hardcode_libdir_flag_spec='-L$libdir' |
| 8453 | hardcode_direct=yes |
| 8454 | hardcode_minus_L=yes |
| 8455 | hardcode_shlibpath_var=no |
| 8456 | ;; |
| 8457 | |
| 8458 | sysv4) |
| 8459 | case $host_vendor in |
| 8460 | sni) |
| 8461 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8462 | hardcode_direct=yes # is this really true??? |
| 8463 | ;; |
| 8464 | siemens) |
| 8465 | ## LD is ld it makes a PLAMLIB |
| 8466 | ## CC just makes a GrossModule. |
| 8467 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 8468 | reload_cmds='$CC -r -o $output$reload_objs' |
| 8469 | hardcode_direct=no |
| 8470 | ;; |
| 8471 | motorola) |
| 8472 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8473 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 8474 | ;; |
| 8475 | esac |
| 8476 | runpath_var='LD_RUN_PATH' |
| 8477 | hardcode_shlibpath_var=no |
| 8478 | ;; |
| 8479 | |
| 8480 | sysv4.3*) |
| 8481 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8482 | hardcode_shlibpath_var=no |
| 8483 | export_dynamic_flag_spec='-Bexport' |
| 8484 | ;; |
| 8485 | |
| 8486 | sysv4*MP*) |
| 8487 | if test -d /usr/nec; then |
| 8488 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8489 | hardcode_shlibpath_var=no |
| 8490 | runpath_var=LD_RUN_PATH |
| 8491 | hardcode_runpath_var=yes |
| 8492 | ld_shlibs=yes |
| 8493 | fi |
| 8494 | ;; |
| 8495 | |
| 8496 | sysv4.2uw2*) |
| 8497 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 8498 | hardcode_direct=yes |
| 8499 | hardcode_minus_L=no |
| 8500 | hardcode_shlibpath_var=no |
| 8501 | hardcode_runpath_var=yes |
| 8502 | runpath_var=LD_RUN_PATH |
| 8503 | ;; |
| 8504 | |
| 8505 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 8506 | no_undefined_flag='${wl}-z ${wl}text' |
| 8507 | if test "$GCC" = yes; then |
| 8508 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8509 | else |
| 8510 | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8511 | fi |
| 8512 | runpath_var='LD_RUN_PATH' |
| 8513 | hardcode_shlibpath_var=no |
| 8514 | ;; |
| 8515 | |
| 8516 | sysv5*) |
| 8517 | no_undefined_flag=' -z text' |
| 8518 | # $CC -shared without GNU ld will not create a library from C++ |
| 8519 | # object files and a static libstdc++, better avoid it by now |
| 8520 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8521 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 8522 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 8523 | hardcode_libdir_flag_spec= |
| 8524 | hardcode_shlibpath_var=no |
| 8525 | runpath_var='LD_RUN_PATH' |
| 8526 | ;; |
| 8527 | |
| 8528 | uts4*) |
| 8529 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8530 | hardcode_libdir_flag_spec='-L$libdir' |
| 8531 | hardcode_shlibpath_var=no |
| 8532 | ;; |
| 8533 | |
| 8534 | *) |
| 8535 | ld_shlibs=no |
| 8536 | ;; |
| 8537 | esac |
| 8538 | fi |
| 8539 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 8540 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 8541 | echo "${ECHO_T}$ld_shlibs" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8542 | test "$ld_shlibs" = no && can_build_shared=no |
| 8543 | |
| 8544 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 8545 | if test "$GCC" = yes; then |
| 8546 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 8547 | fi |
| 8548 | |
| 8549 | # |
| 8550 | # Do we need to explicitly link libc? |
| 8551 | # |
| 8552 | case "x$archive_cmds_need_lc" in |
| 8553 | x|xyes) |
| 8554 | # Assume -lc should be added |
| 8555 | archive_cmds_need_lc=yes |
| 8556 | |
| 8557 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 8558 | case $archive_cmds in |
| 8559 | *'~'*) |
| 8560 | # FIXME: we may have to deal with multi-command sequences. |
| 8561 | ;; |
| 8562 | '$CC '*) |
| 8563 | # Test whether the compiler implicitly links with -lc since on some |
| 8564 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 8565 | # to ld, don't add -lc before -lgcc. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 8566 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 8567 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8568 | $rm conftest* |
| 8569 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8570 | |
| 8571 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8572 | (eval $ac_compile) 2>&5 |
| 8573 | ac_status=$? |
| 8574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8575 | (exit $ac_status); } 2>conftest.err; then |
| 8576 | soname=conftest |
| 8577 | lib=conftest |
| 8578 | libobjs=conftest.$ac_objext |
| 8579 | deplibs= |
| 8580 | wl=$lt_prog_compiler_wl |
| 8581 | compiler_flags=-v |
| 8582 | linker_flags=-v |
| 8583 | verstring= |
| 8584 | output_objdir=. |
| 8585 | libname=conftest |
| 8586 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 8587 | allow_undefined_flag= |
| 8588 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 8589 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 8590 | ac_status=$? |
| 8591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8592 | (exit $ac_status); } |
| 8593 | then |
| 8594 | archive_cmds_need_lc=no |
| 8595 | else |
| 8596 | archive_cmds_need_lc=yes |
| 8597 | fi |
| 8598 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 8599 | else |
| 8600 | cat conftest.err 1>&5 |
| 8601 | fi |
| 8602 | $rm conftest* |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 8603 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
| 8604 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8605 | ;; |
| 8606 | esac |
| 8607 | fi |
| 8608 | ;; |
| 8609 | esac |
| 8610 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 8611 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 8612 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8613 | library_names_spec= |
| 8614 | libname_spec='lib$name' |
| 8615 | soname_spec= |
| 8616 | shrext_cmds=".so" |
| 8617 | postinstall_cmds= |
| 8618 | postuninstall_cmds= |
| 8619 | finish_cmds= |
| 8620 | finish_eval= |
| 8621 | shlibpath_var= |
| 8622 | shlibpath_overrides_runpath=unknown |
| 8623 | version_type=none |
| 8624 | dynamic_linker="$host_os ld.so" |
| 8625 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 8626 | if test "$GCC" = yes; then |
| 8627 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8628 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 8629 | # if the path contains ";" then we assume it to be the separator |
| 8630 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 8631 | # assumed that no part of a normal pathname contains ";" but that should |
| 8632 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 8633 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8634 | else |
| 8635 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8636 | fi |
| 8637 | else |
| 8638 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 8639 | fi |
| 8640 | need_lib_prefix=unknown |
| 8641 | hardcode_into_libs=no |
| 8642 | |
| 8643 | # when you set need_version to no, make sure it does not cause -set_version |
| 8644 | # flags to be left without arguments |
| 8645 | need_version=unknown |
| 8646 | |
| 8647 | case $host_os in |
| 8648 | aix3*) |
| 8649 | version_type=linux |
| 8650 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 8651 | shlibpath_var=LIBPATH |
| 8652 | |
| 8653 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 8654 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8655 | ;; |
| 8656 | |
| 8657 | aix4* | aix5*) |
| 8658 | version_type=linux |
| 8659 | need_lib_prefix=no |
| 8660 | need_version=no |
| 8661 | hardcode_into_libs=yes |
| 8662 | if test "$host_cpu" = ia64; then |
| 8663 | # AIX 5 supports IA64 |
| 8664 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 8665 | shlibpath_var=LD_LIBRARY_PATH |
| 8666 | else |
| 8667 | # With GCC up to 2.95.x, collect2 would create an import file |
| 8668 | # for dependence libraries. The import file would start with |
| 8669 | # the line `#! .'. This would cause the generated library to |
| 8670 | # depend on `.', always an invalid library. This was fixed in |
| 8671 | # development snapshots of GCC prior to 3.0. |
| 8672 | case $host_os in |
| 8673 | aix4 | aix4.[01] | aix4.[01].*) |
| 8674 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 8675 | echo ' yes ' |
| 8676 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 8677 | : |
| 8678 | else |
| 8679 | can_build_shared=no |
| 8680 | fi |
| 8681 | ;; |
| 8682 | esac |
| 8683 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 8684 | # soname into executable. Probably we can add versioning support to |
| 8685 | # collect2, so additional links can be useful in future. |
| 8686 | if test "$aix_use_runtimelinking" = yes; then |
| 8687 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 8688 | # instead of lib<name>.a to let people know that these are not |
| 8689 | # typical AIX shared libraries. |
| 8690 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8691 | else |
| 8692 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 8693 | # and later when we are not doing run time linking. |
| 8694 | library_names_spec='${libname}${release}.a $libname.a' |
| 8695 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8696 | fi |
| 8697 | shlibpath_var=LIBPATH |
| 8698 | fi |
| 8699 | ;; |
| 8700 | |
| 8701 | amigaos*) |
| 8702 | library_names_spec='$libname.ixlibrary $libname.a' |
| 8703 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 8704 | 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' |
| 8705 | ;; |
| 8706 | |
| 8707 | beos*) |
| 8708 | library_names_spec='${libname}${shared_ext}' |
| 8709 | dynamic_linker="$host_os ld.so" |
| 8710 | shlibpath_var=LIBRARY_PATH |
| 8711 | ;; |
| 8712 | |
| 8713 | bsdi4*) |
| 8714 | version_type=linux |
| 8715 | need_version=no |
| 8716 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8717 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8718 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 8719 | shlibpath_var=LD_LIBRARY_PATH |
| 8720 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 8721 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 8722 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 8723 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 8724 | # libtool to hard-code these into programs |
| 8725 | ;; |
| 8726 | |
| 8727 | cygwin* | mingw* | pw32*) |
| 8728 | version_type=windows |
| 8729 | shrext_cmds=".dll" |
| 8730 | need_version=no |
| 8731 | need_lib_prefix=no |
| 8732 | |
| 8733 | case $GCC,$host_os in |
| 8734 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 8735 | library_names_spec='$libname.dll.a' |
| 8736 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 8737 | postinstall_cmds='base_file=`basename \${file}`~ |
| 8738 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 8739 | dldir=$destdir/`dirname \$dlpath`~ |
| 8740 | test -d \$dldir || mkdir -p \$dldir~ |
| 8741 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 8742 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 8743 | dlpath=$dir/\$dldll~ |
| 8744 | $rm \$dlpath' |
| 8745 | shlibpath_overrides_runpath=yes |
| 8746 | |
| 8747 | case $host_os in |
| 8748 | cygwin*) |
| 8749 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 8750 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8751 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 8752 | ;; |
| 8753 | mingw*) |
| 8754 | # MinGW DLLs use traditional 'lib' prefix |
| 8755 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8756 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8757 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 8758 | # It is most probably a Windows format PATH printed by |
| 8759 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 8760 | # path with ; separators, and with drive letters. We can handle the |
| 8761 | # drive letters (cygwin fileutils understands them), so leave them, |
| 8762 | # especially as we might pass files found there to a mingw objdump, |
| 8763 | # which wouldn't understand a cygwinified path. Ahh. |
| 8764 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8765 | else |
| 8766 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8767 | fi |
| 8768 | ;; |
| 8769 | pw32*) |
| 8770 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 8771 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 8772 | ;; |
| 8773 | esac |
| 8774 | ;; |
| 8775 | |
| 8776 | *) |
| 8777 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 8778 | ;; |
| 8779 | esac |
| 8780 | dynamic_linker='Win32 ld.exe' |
| 8781 | # FIXME: first we should search . and the directory the executable is in |
| 8782 | shlibpath_var=PATH |
| 8783 | ;; |
| 8784 | |
| 8785 | darwin* | rhapsody*) |
| 8786 | dynamic_linker="$host_os dyld" |
| 8787 | version_type=darwin |
| 8788 | need_lib_prefix=no |
| 8789 | need_version=no |
| 8790 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 8791 | soname_spec='${libname}${release}${major}$shared_ext' |
| 8792 | shlibpath_overrides_runpath=yes |
| 8793 | shlibpath_var=DYLD_LIBRARY_PATH |
| 8794 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
| 8795 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 8796 | if test "$GCC" = yes; then |
| 8797 | 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"` |
| 8798 | else |
| 8799 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 8800 | fi |
| 8801 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 8802 | ;; |
| 8803 | |
| 8804 | dgux*) |
| 8805 | version_type=linux |
| 8806 | need_lib_prefix=no |
| 8807 | need_version=no |
| 8808 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 8809 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8810 | shlibpath_var=LD_LIBRARY_PATH |
| 8811 | ;; |
| 8812 | |
| 8813 | freebsd1*) |
| 8814 | dynamic_linker=no |
| 8815 | ;; |
| 8816 | |
| 8817 | kfreebsd*-gnu) |
| 8818 | version_type=linux |
| 8819 | need_lib_prefix=no |
| 8820 | need_version=no |
| 8821 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8822 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8823 | shlibpath_var=LD_LIBRARY_PATH |
| 8824 | shlibpath_overrides_runpath=no |
| 8825 | hardcode_into_libs=yes |
| 8826 | dynamic_linker='GNU ld.so' |
| 8827 | ;; |
| 8828 | |
| 8829 | freebsd*) |
| 8830 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 8831 | version_type=freebsd-$objformat |
| 8832 | case $version_type in |
| 8833 | freebsd-elf*) |
| 8834 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 8835 | need_version=no |
| 8836 | need_lib_prefix=no |
| 8837 | ;; |
| 8838 | freebsd-*) |
| 8839 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 8840 | need_version=yes |
| 8841 | ;; |
| 8842 | esac |
| 8843 | shlibpath_var=LD_LIBRARY_PATH |
| 8844 | case $host_os in |
| 8845 | freebsd2*) |
| 8846 | shlibpath_overrides_runpath=yes |
| 8847 | ;; |
| 8848 | freebsd3.01* | freebsdelf3.01*) |
| 8849 | shlibpath_overrides_runpath=yes |
| 8850 | hardcode_into_libs=yes |
| 8851 | ;; |
| 8852 | *) # from 3.2 on |
| 8853 | shlibpath_overrides_runpath=no |
| 8854 | hardcode_into_libs=yes |
| 8855 | ;; |
| 8856 | esac |
| 8857 | ;; |
| 8858 | |
| 8859 | gnu*) |
| 8860 | version_type=linux |
| 8861 | need_lib_prefix=no |
| 8862 | need_version=no |
| 8863 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 8864 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8865 | shlibpath_var=LD_LIBRARY_PATH |
| 8866 | hardcode_into_libs=yes |
| 8867 | ;; |
| 8868 | |
| 8869 | hpux9* | hpux10* | hpux11*) |
| 8870 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 8871 | # link against other versions. |
| 8872 | version_type=sunos |
| 8873 | need_lib_prefix=no |
| 8874 | need_version=no |
| 8875 | case "$host_cpu" in |
| 8876 | ia64*) |
| 8877 | shrext_cmds='.so' |
| 8878 | hardcode_into_libs=yes |
| 8879 | dynamic_linker="$host_os dld.so" |
| 8880 | shlibpath_var=LD_LIBRARY_PATH |
| 8881 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 8882 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8883 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8884 | if test "X$HPUX_IA64_MODE" = X32; then |
| 8885 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 8886 | else |
| 8887 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 8888 | fi |
| 8889 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 8890 | ;; |
| 8891 | hppa*64*) |
| 8892 | shrext_cmds='.sl' |
| 8893 | hardcode_into_libs=yes |
| 8894 | dynamic_linker="$host_os dld.sl" |
| 8895 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 8896 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 8897 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8898 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8899 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 8900 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 8901 | ;; |
| 8902 | *) |
| 8903 | shrext_cmds='.sl' |
| 8904 | dynamic_linker="$host_os dld.sl" |
| 8905 | shlibpath_var=SHLIB_PATH |
| 8906 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 8907 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8908 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8909 | ;; |
| 8910 | esac |
| 8911 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 8912 | postinstall_cmds='chmod 555 $lib' |
| 8913 | ;; |
| 8914 | |
| 8915 | irix5* | irix6* | nonstopux*) |
| 8916 | case $host_os in |
| 8917 | nonstopux*) version_type=nonstopux ;; |
| 8918 | *) |
| 8919 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 8920 | version_type=linux |
| 8921 | else |
| 8922 | version_type=irix |
| 8923 | fi ;; |
| 8924 | esac |
| 8925 | need_lib_prefix=no |
| 8926 | need_version=no |
| 8927 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8928 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 8929 | case $host_os in |
| 8930 | irix5* | nonstopux*) |
| 8931 | libsuff= shlibsuff= |
| 8932 | ;; |
| 8933 | *) |
| 8934 | case $LD in # libtool.m4 will add one of these switches to LD |
| 8935 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 8936 | libsuff= shlibsuff= libmagic=32-bit;; |
| 8937 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 8938 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 8939 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 8940 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 8941 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 8942 | esac |
| 8943 | ;; |
| 8944 | esac |
| 8945 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 8946 | shlibpath_overrides_runpath=no |
| 8947 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 8948 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 8949 | hardcode_into_libs=yes |
| 8950 | ;; |
| 8951 | |
| 8952 | # No shared lib support for Linux oldld, aout, or coff. |
| 8953 | linux*oldld* | linux*aout* | linux*coff*) |
| 8954 | dynamic_linker=no |
| 8955 | ;; |
| 8956 | |
| 8957 | # This must be Linux ELF. |
| 8958 | linux*) |
| 8959 | version_type=linux |
| 8960 | need_lib_prefix=no |
| 8961 | need_version=no |
| 8962 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8963 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8964 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 8965 | shlibpath_var=LD_LIBRARY_PATH |
| 8966 | shlibpath_overrides_runpath=no |
| 8967 | # This implies no fast_install, which is unacceptable. |
| 8968 | # Some rework will be needed to allow for fast_install |
| 8969 | # before this can be enabled. |
| 8970 | hardcode_into_libs=yes |
| 8971 | |
| 8972 | # Append ld.so.conf contents to the search path |
| 8973 | if test -f /etc/ld.so.conf; then |
| 8974 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
| 8975 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 8976 | fi |
| 8977 | |
| 8978 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 8979 | # powerpc, because MkLinux only supported shared libraries with the |
| 8980 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 8981 | # most powerpc-linux boxes support dynamic linking these days and |
| 8982 | # people can always --disable-shared, the test was removed, and we |
| 8983 | # assume the GNU/Linux dynamic linker is in use. |
| 8984 | dynamic_linker='GNU/Linux ld.so' |
| 8985 | ;; |
| 8986 | |
| 8987 | knetbsd*-gnu) |
| 8988 | version_type=linux |
| 8989 | need_lib_prefix=no |
| 8990 | need_version=no |
| 8991 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8992 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8993 | shlibpath_var=LD_LIBRARY_PATH |
| 8994 | shlibpath_overrides_runpath=no |
| 8995 | hardcode_into_libs=yes |
| 8996 | dynamic_linker='GNU ld.so' |
| 8997 | ;; |
| 8998 | |
| 8999 | netbsd*) |
| 9000 | version_type=sunos |
| 9001 | need_lib_prefix=no |
| 9002 | need_version=no |
| 9003 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 9004 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9005 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9006 | dynamic_linker='NetBSD (a.out) ld.so' |
| 9007 | else |
| 9008 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9009 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9010 | dynamic_linker='NetBSD ld.elf_so' |
| 9011 | fi |
| 9012 | shlibpath_var=LD_LIBRARY_PATH |
| 9013 | shlibpath_overrides_runpath=yes |
| 9014 | hardcode_into_libs=yes |
| 9015 | ;; |
| 9016 | |
| 9017 | newsos6) |
| 9018 | version_type=linux |
| 9019 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9020 | shlibpath_var=LD_LIBRARY_PATH |
| 9021 | shlibpath_overrides_runpath=yes |
| 9022 | ;; |
| 9023 | |
| 9024 | nto-qnx*) |
| 9025 | version_type=linux |
| 9026 | need_lib_prefix=no |
| 9027 | need_version=no |
| 9028 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9029 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9030 | shlibpath_var=LD_LIBRARY_PATH |
| 9031 | shlibpath_overrides_runpath=yes |
| 9032 | ;; |
| 9033 | |
| 9034 | openbsd*) |
| 9035 | version_type=sunos |
| 9036 | need_lib_prefix=no |
| 9037 | need_version=yes |
| 9038 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9039 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9040 | shlibpath_var=LD_LIBRARY_PATH |
| 9041 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 9042 | case $host_os in |
| 9043 | openbsd2.[89] | openbsd2.[89].*) |
| 9044 | shlibpath_overrides_runpath=no |
| 9045 | ;; |
| 9046 | *) |
| 9047 | shlibpath_overrides_runpath=yes |
| 9048 | ;; |
| 9049 | esac |
| 9050 | else |
| 9051 | shlibpath_overrides_runpath=yes |
| 9052 | fi |
| 9053 | ;; |
| 9054 | |
| 9055 | os2*) |
| 9056 | libname_spec='$name' |
| 9057 | shrext_cmds=".dll" |
| 9058 | need_lib_prefix=no |
| 9059 | library_names_spec='$libname${shared_ext} $libname.a' |
| 9060 | dynamic_linker='OS/2 ld.exe' |
| 9061 | shlibpath_var=LIBPATH |
| 9062 | ;; |
| 9063 | |
| 9064 | osf3* | osf4* | osf5*) |
| 9065 | version_type=osf |
| 9066 | need_lib_prefix=no |
| 9067 | need_version=no |
| 9068 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9069 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9070 | shlibpath_var=LD_LIBRARY_PATH |
| 9071 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 9072 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 9073 | ;; |
| 9074 | |
| 9075 | sco3.2v5*) |
| 9076 | version_type=osf |
| 9077 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9078 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9079 | shlibpath_var=LD_LIBRARY_PATH |
| 9080 | ;; |
| 9081 | |
| 9082 | solaris*) |
| 9083 | version_type=linux |
| 9084 | need_lib_prefix=no |
| 9085 | need_version=no |
| 9086 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9087 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9088 | shlibpath_var=LD_LIBRARY_PATH |
| 9089 | shlibpath_overrides_runpath=yes |
| 9090 | hardcode_into_libs=yes |
| 9091 | # ldd complains unless libraries are executable |
| 9092 | postinstall_cmds='chmod +x $lib' |
| 9093 | ;; |
| 9094 | |
| 9095 | sunos4*) |
| 9096 | version_type=sunos |
| 9097 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9098 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 9099 | shlibpath_var=LD_LIBRARY_PATH |
| 9100 | shlibpath_overrides_runpath=yes |
| 9101 | if test "$with_gnu_ld" = yes; then |
| 9102 | need_lib_prefix=no |
| 9103 | fi |
| 9104 | need_version=yes |
| 9105 | ;; |
| 9106 | |
| 9107 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 9108 | version_type=linux |
| 9109 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9110 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9111 | shlibpath_var=LD_LIBRARY_PATH |
| 9112 | case $host_vendor in |
| 9113 | sni) |
| 9114 | shlibpath_overrides_runpath=no |
| 9115 | need_lib_prefix=no |
| 9116 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 9117 | runpath_var=LD_RUN_PATH |
| 9118 | ;; |
| 9119 | siemens) |
| 9120 | need_lib_prefix=no |
| 9121 | ;; |
| 9122 | motorola) |
| 9123 | need_lib_prefix=no |
| 9124 | need_version=no |
| 9125 | shlibpath_overrides_runpath=no |
| 9126 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 9127 | ;; |
| 9128 | esac |
| 9129 | ;; |
| 9130 | |
| 9131 | sysv4*MP*) |
| 9132 | if test -d /usr/nec ;then |
| 9133 | version_type=linux |
| 9134 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 9135 | soname_spec='$libname${shared_ext}.$major' |
| 9136 | shlibpath_var=LD_LIBRARY_PATH |
| 9137 | fi |
| 9138 | ;; |
| 9139 | |
| 9140 | uts4*) |
| 9141 | version_type=linux |
| 9142 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9143 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9144 | shlibpath_var=LD_LIBRARY_PATH |
| 9145 | ;; |
| 9146 | |
| 9147 | *) |
| 9148 | dynamic_linker=no |
| 9149 | ;; |
| 9150 | esac |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9151 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 9152 | echo "${ECHO_T}$dynamic_linker" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9153 | test "$dynamic_linker" = no && can_build_shared=no |
| 9154 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9155 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 9156 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9157 | hardcode_action= |
| 9158 | if test -n "$hardcode_libdir_flag_spec" || \ |
| 9159 | test -n "$runpath_var " || \ |
| 9160 | test "X$hardcode_automatic"="Xyes" ; then |
| 9161 | |
| 9162 | # We can hardcode non-existant directories. |
| 9163 | if test "$hardcode_direct" != no && |
| 9164 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 9165 | # have to relink, otherwise we might link with an installed library |
| 9166 | # when we should be linking with a yet-to-be-installed one |
| 9167 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 9168 | test "$hardcode_minus_L" != no; then |
| 9169 | # Linking always hardcodes the temporary library directory. |
| 9170 | hardcode_action=relink |
| 9171 | else |
| 9172 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 9173 | hardcode_action=immediate |
| 9174 | fi |
| 9175 | else |
| 9176 | # We cannot hardcode anything, or else we can only hardcode existing |
| 9177 | # directories. |
| 9178 | hardcode_action=unsupported |
| 9179 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9180 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 9181 | echo "${ECHO_T}$hardcode_action" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9182 | |
| 9183 | if test "$hardcode_action" = relink; then |
| 9184 | # Fast installation is not supported |
| 9185 | enable_fast_install=no |
| 9186 | elif test "$shlibpath_overrides_runpath" = yes || |
| 9187 | test "$enable_shared" = no; then |
| 9188 | # Fast installation is not necessary |
| 9189 | enable_fast_install=needless |
| 9190 | fi |
| 9191 | |
| 9192 | striplib= |
| 9193 | old_striplib= |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9194 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 9195 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9196 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 9197 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 9198 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9199 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9200 | echo "${ECHO_T}yes" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9201 | else |
| 9202 | # FIXME - insert some real tests, host_os isn't really good enough |
| 9203 | case $host_os in |
| 9204 | darwin*) |
| 9205 | if test -n "$STRIP" ; then |
| 9206 | striplib="$STRIP -x" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9207 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9208 | echo "${ECHO_T}yes" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9209 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9210 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9211 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9212 | fi |
| 9213 | ;; |
| 9214 | *) |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9215 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9216 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9217 | ;; |
| 9218 | esac |
| 9219 | fi |
| 9220 | |
| 9221 | if test "x$enable_dlopen" != xyes; then |
| 9222 | enable_dlopen=unknown |
| 9223 | enable_dlopen_self=unknown |
| 9224 | enable_dlopen_self_static=unknown |
| 9225 | else |
| 9226 | lt_cv_dlopen=no |
| 9227 | lt_cv_dlopen_libs= |
| 9228 | |
| 9229 | case $host_os in |
| 9230 | beos*) |
| 9231 | lt_cv_dlopen="load_add_on" |
| 9232 | lt_cv_dlopen_libs= |
| 9233 | lt_cv_dlopen_self=yes |
| 9234 | ;; |
| 9235 | |
| 9236 | mingw* | pw32*) |
| 9237 | lt_cv_dlopen="LoadLibrary" |
| 9238 | lt_cv_dlopen_libs= |
| 9239 | ;; |
| 9240 | |
| 9241 | cygwin*) |
| 9242 | lt_cv_dlopen="dlopen" |
| 9243 | lt_cv_dlopen_libs= |
| 9244 | ;; |
| 9245 | |
| 9246 | darwin*) |
| 9247 | # if libdl is installed we need to link against it |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9248 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 9249 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9250 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 9251 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9252 | else |
| 9253 | ac_check_lib_save_LIBS=$LIBS |
| 9254 | LIBS="-ldl $LIBS" |
| 9255 | cat >conftest.$ac_ext <<_ACEOF |
| 9256 | /* confdefs.h. */ |
| 9257 | _ACEOF |
| 9258 | cat confdefs.h >>conftest.$ac_ext |
| 9259 | cat >>conftest.$ac_ext <<_ACEOF |
| 9260 | /* end confdefs.h. */ |
| 9261 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9262 | /* Override any GCC internal prototype to avoid an error. |
| 9263 | Use char because int might match the return type of a GCC |
| 9264 | builtin and then its argument prototype would still apply. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9265 | #ifdef __cplusplus |
| 9266 | extern "C" |
| 9267 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9268 | char dlopen (); |
| 9269 | int |
| 9270 | main () |
| 9271 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9272 | return dlopen (); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9273 | ; |
| 9274 | return 0; |
| 9275 | } |
| 9276 | _ACEOF |
| 9277 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9278 | if { (ac_try="$ac_link" |
| 9279 | case "(($ac_try" in |
| 9280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9281 | *) ac_try_echo=$ac_try;; |
| 9282 | esac |
| 9283 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9284 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9285 | ac_status=$? |
| 9286 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9287 | rm -f conftest.er1 |
| 9288 | cat conftest.err >&5 |
| 9289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9290 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9291 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9292 | { (case "(($ac_try" in |
| 9293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9294 | *) ac_try_echo=$ac_try;; |
| 9295 | esac |
| 9296 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9297 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9298 | ac_status=$? |
| 9299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9300 | (exit $ac_status); }; } && |
| 9301 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9302 | { (case "(($ac_try" in |
| 9303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9304 | *) ac_try_echo=$ac_try;; |
| 9305 | esac |
| 9306 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9307 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9308 | ac_status=$? |
| 9309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9310 | (exit $ac_status); }; }; then |
| 9311 | ac_cv_lib_dl_dlopen=yes |
| 9312 | else |
| 9313 | echo "$as_me: failed program was:" >&5 |
| 9314 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9315 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9316 | ac_cv_lib_dl_dlopen=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9317 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9318 | |
| 9319 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9320 | conftest$ac_exeext conftest.$ac_ext |
| 9321 | LIBS=$ac_check_lib_save_LIBS |
| 9322 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9323 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9324 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9325 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 9326 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 9327 | else |
| 9328 | |
| 9329 | lt_cv_dlopen="dyld" |
| 9330 | lt_cv_dlopen_libs= |
| 9331 | lt_cv_dlopen_self=yes |
| 9332 | |
| 9333 | fi |
| 9334 | |
| 9335 | ;; |
| 9336 | |
| 9337 | *) |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9338 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 9339 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9340 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 9341 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9342 | else |
| 9343 | cat >conftest.$ac_ext <<_ACEOF |
| 9344 | /* confdefs.h. */ |
| 9345 | _ACEOF |
| 9346 | cat confdefs.h >>conftest.$ac_ext |
| 9347 | cat >>conftest.$ac_ext <<_ACEOF |
| 9348 | /* end confdefs.h. */ |
| 9349 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 9350 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9351 | #define shl_load innocuous_shl_load |
| 9352 | |
| 9353 | /* System header to define __stub macros and hopefully few prototypes, |
| 9354 | which can conflict with char shl_load (); below. |
| 9355 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9356 | <limits.h> exists even on freestanding compilers. */ |
| 9357 | |
| 9358 | #ifdef __STDC__ |
| 9359 | # include <limits.h> |
| 9360 | #else |
| 9361 | # include <assert.h> |
| 9362 | #endif |
| 9363 | |
| 9364 | #undef shl_load |
| 9365 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9366 | /* Override any GCC internal prototype to avoid an error. |
| 9367 | Use char because int might match the return type of a GCC |
| 9368 | builtin and then its argument prototype would still apply. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9369 | #ifdef __cplusplus |
| 9370 | extern "C" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9371 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9372 | char shl_load (); |
| 9373 | /* The GNU C library defines this for functions which it implements |
| 9374 | to always fail with ENOSYS. Some functions are actually named |
| 9375 | something starting with __ and the normal name is an alias. */ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9376 | #if defined __stub_shl_load || defined __stub___shl_load |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9377 | choke me |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9378 | #endif |
| 9379 | |
| 9380 | int |
| 9381 | main () |
| 9382 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9383 | return shl_load (); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9384 | ; |
| 9385 | return 0; |
| 9386 | } |
| 9387 | _ACEOF |
| 9388 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9389 | if { (ac_try="$ac_link" |
| 9390 | case "(($ac_try" in |
| 9391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9392 | *) ac_try_echo=$ac_try;; |
| 9393 | esac |
| 9394 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9395 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9396 | ac_status=$? |
| 9397 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9398 | rm -f conftest.er1 |
| 9399 | cat conftest.err >&5 |
| 9400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9401 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9402 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9403 | { (case "(($ac_try" in |
| 9404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9405 | *) ac_try_echo=$ac_try;; |
| 9406 | esac |
| 9407 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9408 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9409 | ac_status=$? |
| 9410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9411 | (exit $ac_status); }; } && |
| 9412 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9413 | { (case "(($ac_try" in |
| 9414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9415 | *) ac_try_echo=$ac_try;; |
| 9416 | esac |
| 9417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9418 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9419 | ac_status=$? |
| 9420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9421 | (exit $ac_status); }; }; then |
| 9422 | ac_cv_func_shl_load=yes |
| 9423 | else |
| 9424 | echo "$as_me: failed program was:" >&5 |
| 9425 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9426 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9427 | ac_cv_func_shl_load=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9428 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9429 | |
| 9430 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9431 | conftest$ac_exeext conftest.$ac_ext |
| 9432 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9433 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 9434 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9435 | if test $ac_cv_func_shl_load = yes; then |
| 9436 | lt_cv_dlopen="shl_load" |
| 9437 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9438 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 9439 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9440 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 9441 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9442 | else |
| 9443 | ac_check_lib_save_LIBS=$LIBS |
| 9444 | LIBS="-ldld $LIBS" |
| 9445 | cat >conftest.$ac_ext <<_ACEOF |
| 9446 | /* confdefs.h. */ |
| 9447 | _ACEOF |
| 9448 | cat confdefs.h >>conftest.$ac_ext |
| 9449 | cat >>conftest.$ac_ext <<_ACEOF |
| 9450 | /* end confdefs.h. */ |
| 9451 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9452 | /* Override any GCC internal prototype to avoid an error. |
| 9453 | Use char because int might match the return type of a GCC |
| 9454 | builtin and then its argument prototype would still apply. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9455 | #ifdef __cplusplus |
| 9456 | extern "C" |
| 9457 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9458 | char shl_load (); |
| 9459 | int |
| 9460 | main () |
| 9461 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9462 | return shl_load (); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9463 | ; |
| 9464 | return 0; |
| 9465 | } |
| 9466 | _ACEOF |
| 9467 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9468 | if { (ac_try="$ac_link" |
| 9469 | case "(($ac_try" in |
| 9470 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9471 | *) ac_try_echo=$ac_try;; |
| 9472 | esac |
| 9473 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9474 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9475 | ac_status=$? |
| 9476 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9477 | rm -f conftest.er1 |
| 9478 | cat conftest.err >&5 |
| 9479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9480 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9481 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9482 | { (case "(($ac_try" in |
| 9483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9484 | *) ac_try_echo=$ac_try;; |
| 9485 | esac |
| 9486 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9487 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9488 | ac_status=$? |
| 9489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9490 | (exit $ac_status); }; } && |
| 9491 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9492 | { (case "(($ac_try" in |
| 9493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9494 | *) ac_try_echo=$ac_try;; |
| 9495 | esac |
| 9496 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9497 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9498 | ac_status=$? |
| 9499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9500 | (exit $ac_status); }; }; then |
| 9501 | ac_cv_lib_dld_shl_load=yes |
| 9502 | else |
| 9503 | echo "$as_me: failed program was:" >&5 |
| 9504 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9505 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9506 | ac_cv_lib_dld_shl_load=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9507 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9508 | |
| 9509 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9510 | conftest$ac_exeext conftest.$ac_ext |
| 9511 | LIBS=$ac_check_lib_save_LIBS |
| 9512 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9513 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9514 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9515 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 9516 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 9517 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9518 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 9519 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9520 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 9521 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9522 | else |
| 9523 | cat >conftest.$ac_ext <<_ACEOF |
| 9524 | /* confdefs.h. */ |
| 9525 | _ACEOF |
| 9526 | cat confdefs.h >>conftest.$ac_ext |
| 9527 | cat >>conftest.$ac_ext <<_ACEOF |
| 9528 | /* end confdefs.h. */ |
| 9529 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 9530 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9531 | #define dlopen innocuous_dlopen |
| 9532 | |
| 9533 | /* System header to define __stub macros and hopefully few prototypes, |
| 9534 | which can conflict with char dlopen (); below. |
| 9535 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9536 | <limits.h> exists even on freestanding compilers. */ |
| 9537 | |
| 9538 | #ifdef __STDC__ |
| 9539 | # include <limits.h> |
| 9540 | #else |
| 9541 | # include <assert.h> |
| 9542 | #endif |
| 9543 | |
| 9544 | #undef dlopen |
| 9545 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9546 | /* Override any GCC internal prototype to avoid an error. |
| 9547 | Use char because int might match the return type of a GCC |
| 9548 | builtin and then its argument prototype would still apply. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9549 | #ifdef __cplusplus |
| 9550 | extern "C" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9551 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9552 | char dlopen (); |
| 9553 | /* The GNU C library defines this for functions which it implements |
| 9554 | to always fail with ENOSYS. Some functions are actually named |
| 9555 | something starting with __ and the normal name is an alias. */ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9556 | #if defined __stub_dlopen || defined __stub___dlopen |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9557 | choke me |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9558 | #endif |
| 9559 | |
| 9560 | int |
| 9561 | main () |
| 9562 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9563 | return dlopen (); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9564 | ; |
| 9565 | return 0; |
| 9566 | } |
| 9567 | _ACEOF |
| 9568 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9569 | if { (ac_try="$ac_link" |
| 9570 | case "(($ac_try" in |
| 9571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9572 | *) ac_try_echo=$ac_try;; |
| 9573 | esac |
| 9574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9575 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9576 | ac_status=$? |
| 9577 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9578 | rm -f conftest.er1 |
| 9579 | cat conftest.err >&5 |
| 9580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9581 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9582 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9583 | { (case "(($ac_try" in |
| 9584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9585 | *) ac_try_echo=$ac_try;; |
| 9586 | esac |
| 9587 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9588 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9589 | ac_status=$? |
| 9590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9591 | (exit $ac_status); }; } && |
| 9592 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9593 | { (case "(($ac_try" in |
| 9594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9595 | *) ac_try_echo=$ac_try;; |
| 9596 | esac |
| 9597 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9598 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9599 | ac_status=$? |
| 9600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9601 | (exit $ac_status); }; }; then |
| 9602 | ac_cv_func_dlopen=yes |
| 9603 | else |
| 9604 | echo "$as_me: failed program was:" >&5 |
| 9605 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9606 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9607 | ac_cv_func_dlopen=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9608 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9609 | |
| 9610 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9611 | conftest$ac_exeext conftest.$ac_ext |
| 9612 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9613 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 9614 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9615 | if test $ac_cv_func_dlopen = yes; then |
| 9616 | lt_cv_dlopen="dlopen" |
| 9617 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9618 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 9619 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9620 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 9621 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9622 | else |
| 9623 | ac_check_lib_save_LIBS=$LIBS |
| 9624 | LIBS="-ldl $LIBS" |
| 9625 | cat >conftest.$ac_ext <<_ACEOF |
| 9626 | /* confdefs.h. */ |
| 9627 | _ACEOF |
| 9628 | cat confdefs.h >>conftest.$ac_ext |
| 9629 | cat >>conftest.$ac_ext <<_ACEOF |
| 9630 | /* end confdefs.h. */ |
| 9631 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9632 | /* Override any GCC internal prototype to avoid an error. |
| 9633 | Use char because int might match the return type of a GCC |
| 9634 | builtin and then its argument prototype would still apply. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9635 | #ifdef __cplusplus |
| 9636 | extern "C" |
| 9637 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9638 | char dlopen (); |
| 9639 | int |
| 9640 | main () |
| 9641 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9642 | return dlopen (); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9643 | ; |
| 9644 | return 0; |
| 9645 | } |
| 9646 | _ACEOF |
| 9647 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9648 | if { (ac_try="$ac_link" |
| 9649 | case "(($ac_try" in |
| 9650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9651 | *) ac_try_echo=$ac_try;; |
| 9652 | esac |
| 9653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9654 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9655 | ac_status=$? |
| 9656 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9657 | rm -f conftest.er1 |
| 9658 | cat conftest.err >&5 |
| 9659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9660 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9661 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9662 | { (case "(($ac_try" in |
| 9663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9664 | *) ac_try_echo=$ac_try;; |
| 9665 | esac |
| 9666 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9667 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9668 | ac_status=$? |
| 9669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9670 | (exit $ac_status); }; } && |
| 9671 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9672 | { (case "(($ac_try" in |
| 9673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9674 | *) ac_try_echo=$ac_try;; |
| 9675 | esac |
| 9676 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9677 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9678 | ac_status=$? |
| 9679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9680 | (exit $ac_status); }; }; then |
| 9681 | ac_cv_lib_dl_dlopen=yes |
| 9682 | else |
| 9683 | echo "$as_me: failed program was:" >&5 |
| 9684 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9685 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9686 | ac_cv_lib_dl_dlopen=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9687 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9688 | |
| 9689 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9690 | conftest$ac_exeext conftest.$ac_ext |
| 9691 | LIBS=$ac_check_lib_save_LIBS |
| 9692 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9693 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9694 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9695 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 9696 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 9697 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9698 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 9699 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9700 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 9701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9702 | else |
| 9703 | ac_check_lib_save_LIBS=$LIBS |
| 9704 | LIBS="-lsvld $LIBS" |
| 9705 | cat >conftest.$ac_ext <<_ACEOF |
| 9706 | /* confdefs.h. */ |
| 9707 | _ACEOF |
| 9708 | cat confdefs.h >>conftest.$ac_ext |
| 9709 | cat >>conftest.$ac_ext <<_ACEOF |
| 9710 | /* end confdefs.h. */ |
| 9711 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9712 | /* Override any GCC internal prototype to avoid an error. |
| 9713 | Use char because int might match the return type of a GCC |
| 9714 | builtin and then its argument prototype would still apply. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9715 | #ifdef __cplusplus |
| 9716 | extern "C" |
| 9717 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9718 | char dlopen (); |
| 9719 | int |
| 9720 | main () |
| 9721 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9722 | return dlopen (); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9723 | ; |
| 9724 | return 0; |
| 9725 | } |
| 9726 | _ACEOF |
| 9727 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9728 | if { (ac_try="$ac_link" |
| 9729 | case "(($ac_try" in |
| 9730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9731 | *) ac_try_echo=$ac_try;; |
| 9732 | esac |
| 9733 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9734 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9735 | ac_status=$? |
| 9736 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9737 | rm -f conftest.er1 |
| 9738 | cat conftest.err >&5 |
| 9739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9740 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9741 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9742 | { (case "(($ac_try" in |
| 9743 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9744 | *) ac_try_echo=$ac_try;; |
| 9745 | esac |
| 9746 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9747 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9748 | ac_status=$? |
| 9749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9750 | (exit $ac_status); }; } && |
| 9751 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9752 | { (case "(($ac_try" in |
| 9753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9754 | *) ac_try_echo=$ac_try;; |
| 9755 | esac |
| 9756 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9757 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9758 | ac_status=$? |
| 9759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9760 | (exit $ac_status); }; }; then |
| 9761 | ac_cv_lib_svld_dlopen=yes |
| 9762 | else |
| 9763 | echo "$as_me: failed program was:" >&5 |
| 9764 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9765 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9766 | ac_cv_lib_svld_dlopen=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9767 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9768 | |
| 9769 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9770 | conftest$ac_exeext conftest.$ac_ext |
| 9771 | LIBS=$ac_check_lib_save_LIBS |
| 9772 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9773 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 9774 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9775 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 9776 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 9777 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9778 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 9779 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9780 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 9781 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9782 | else |
| 9783 | ac_check_lib_save_LIBS=$LIBS |
| 9784 | LIBS="-ldld $LIBS" |
| 9785 | cat >conftest.$ac_ext <<_ACEOF |
| 9786 | /* confdefs.h. */ |
| 9787 | _ACEOF |
| 9788 | cat confdefs.h >>conftest.$ac_ext |
| 9789 | cat >>conftest.$ac_ext <<_ACEOF |
| 9790 | /* end confdefs.h. */ |
| 9791 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9792 | /* Override any GCC internal prototype to avoid an error. |
| 9793 | Use char because int might match the return type of a GCC |
| 9794 | builtin and then its argument prototype would still apply. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9795 | #ifdef __cplusplus |
| 9796 | extern "C" |
| 9797 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9798 | char dld_link (); |
| 9799 | int |
| 9800 | main () |
| 9801 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9802 | return dld_link (); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9803 | ; |
| 9804 | return 0; |
| 9805 | } |
| 9806 | _ACEOF |
| 9807 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9808 | if { (ac_try="$ac_link" |
| 9809 | case "(($ac_try" in |
| 9810 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9811 | *) ac_try_echo=$ac_try;; |
| 9812 | esac |
| 9813 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9814 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9815 | ac_status=$? |
| 9816 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9817 | rm -f conftest.er1 |
| 9818 | cat conftest.err >&5 |
| 9819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9820 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9821 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9822 | { (case "(($ac_try" in |
| 9823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9824 | *) ac_try_echo=$ac_try;; |
| 9825 | esac |
| 9826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9827 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9828 | ac_status=$? |
| 9829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9830 | (exit $ac_status); }; } && |
| 9831 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9832 | { (case "(($ac_try" in |
| 9833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9834 | *) ac_try_echo=$ac_try;; |
| 9835 | esac |
| 9836 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9837 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9838 | ac_status=$? |
| 9839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9840 | (exit $ac_status); }; }; then |
| 9841 | ac_cv_lib_dld_dld_link=yes |
| 9842 | else |
| 9843 | echo "$as_me: failed program was:" >&5 |
| 9844 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9845 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9846 | ac_cv_lib_dld_dld_link=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9847 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9848 | |
| 9849 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9850 | conftest$ac_exeext conftest.$ac_ext |
| 9851 | LIBS=$ac_check_lib_save_LIBS |
| 9852 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9853 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 9854 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9855 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 9856 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 9857 | fi |
| 9858 | |
| 9859 | |
| 9860 | fi |
| 9861 | |
| 9862 | |
| 9863 | fi |
| 9864 | |
| 9865 | |
| 9866 | fi |
| 9867 | |
| 9868 | |
| 9869 | fi |
| 9870 | |
| 9871 | |
| 9872 | fi |
| 9873 | |
| 9874 | ;; |
| 9875 | esac |
| 9876 | |
| 9877 | if test "x$lt_cv_dlopen" != xno; then |
| 9878 | enable_dlopen=yes |
| 9879 | else |
| 9880 | enable_dlopen=no |
| 9881 | fi |
| 9882 | |
| 9883 | case $lt_cv_dlopen in |
| 9884 | dlopen) |
| 9885 | save_CPPFLAGS="$CPPFLAGS" |
| 9886 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 9887 | |
| 9888 | save_LDFLAGS="$LDFLAGS" |
| 9889 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 9890 | |
| 9891 | save_LIBS="$LIBS" |
| 9892 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 9893 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9894 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 9895 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9896 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 9897 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9898 | else |
| 9899 | if test "$cross_compiling" = yes; then : |
| 9900 | lt_cv_dlopen_self=cross |
| 9901 | else |
| 9902 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 9903 | lt_status=$lt_dlunknown |
| 9904 | cat > conftest.$ac_ext <<EOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9905 | #line 9905 "configure" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9906 | #include "confdefs.h" |
| 9907 | |
| 9908 | #if HAVE_DLFCN_H |
| 9909 | #include <dlfcn.h> |
| 9910 | #endif |
| 9911 | |
| 9912 | #include <stdio.h> |
| 9913 | |
| 9914 | #ifdef RTLD_GLOBAL |
| 9915 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 9916 | #else |
| 9917 | # ifdef DL_GLOBAL |
| 9918 | # define LT_DLGLOBAL DL_GLOBAL |
| 9919 | # else |
| 9920 | # define LT_DLGLOBAL 0 |
| 9921 | # endif |
| 9922 | #endif |
| 9923 | |
| 9924 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 9925 | find out it does not work in some platform. */ |
| 9926 | #ifndef LT_DLLAZY_OR_NOW |
| 9927 | # ifdef RTLD_LAZY |
| 9928 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 9929 | # else |
| 9930 | # ifdef DL_LAZY |
| 9931 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 9932 | # else |
| 9933 | # ifdef RTLD_NOW |
| 9934 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 9935 | # else |
| 9936 | # ifdef DL_NOW |
| 9937 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 9938 | # else |
| 9939 | # define LT_DLLAZY_OR_NOW 0 |
| 9940 | # endif |
| 9941 | # endif |
| 9942 | # endif |
| 9943 | # endif |
| 9944 | #endif |
| 9945 | |
| 9946 | #ifdef __cplusplus |
| 9947 | extern "C" void exit (int); |
| 9948 | #endif |
| 9949 | |
| 9950 | void fnord() { int i=42;} |
| 9951 | int main () |
| 9952 | { |
| 9953 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 9954 | int status = $lt_dlunknown; |
| 9955 | |
| 9956 | if (self) |
| 9957 | { |
| 9958 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 9959 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 9960 | /* dlclose (self); */ |
| 9961 | } |
| 9962 | |
| 9963 | exit (status); |
| 9964 | } |
| 9965 | EOF |
| 9966 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9967 | (eval $ac_link) 2>&5 |
| 9968 | ac_status=$? |
| 9969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9970 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 9971 | (./conftest; exit; ) 2>/dev/null |
| 9972 | lt_status=$? |
| 9973 | case x$lt_status in |
| 9974 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 9975 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 9976 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 9977 | esac |
| 9978 | else : |
| 9979 | # compilation failed |
| 9980 | lt_cv_dlopen_self=no |
| 9981 | fi |
| 9982 | fi |
| 9983 | rm -fr conftest* |
| 9984 | |
| 9985 | |
| 9986 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9987 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 9988 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9989 | |
| 9990 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 9991 | LDFLAGS="$LDFLAGS $link_static_flag" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9992 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 9993 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9994 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 9995 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9996 | else |
| 9997 | if test "$cross_compiling" = yes; then : |
| 9998 | lt_cv_dlopen_self_static=cross |
| 9999 | else |
| 10000 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 10001 | lt_status=$lt_dlunknown |
| 10002 | cat > conftest.$ac_ext <<EOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10003 | #line 10003 "configure" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10004 | #include "confdefs.h" |
| 10005 | |
| 10006 | #if HAVE_DLFCN_H |
| 10007 | #include <dlfcn.h> |
| 10008 | #endif |
| 10009 | |
| 10010 | #include <stdio.h> |
| 10011 | |
| 10012 | #ifdef RTLD_GLOBAL |
| 10013 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 10014 | #else |
| 10015 | # ifdef DL_GLOBAL |
| 10016 | # define LT_DLGLOBAL DL_GLOBAL |
| 10017 | # else |
| 10018 | # define LT_DLGLOBAL 0 |
| 10019 | # endif |
| 10020 | #endif |
| 10021 | |
| 10022 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 10023 | find out it does not work in some platform. */ |
| 10024 | #ifndef LT_DLLAZY_OR_NOW |
| 10025 | # ifdef RTLD_LAZY |
| 10026 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 10027 | # else |
| 10028 | # ifdef DL_LAZY |
| 10029 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 10030 | # else |
| 10031 | # ifdef RTLD_NOW |
| 10032 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 10033 | # else |
| 10034 | # ifdef DL_NOW |
| 10035 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 10036 | # else |
| 10037 | # define LT_DLLAZY_OR_NOW 0 |
| 10038 | # endif |
| 10039 | # endif |
| 10040 | # endif |
| 10041 | # endif |
| 10042 | #endif |
| 10043 | |
| 10044 | #ifdef __cplusplus |
| 10045 | extern "C" void exit (int); |
| 10046 | #endif |
| 10047 | |
| 10048 | void fnord() { int i=42;} |
| 10049 | int main () |
| 10050 | { |
| 10051 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 10052 | int status = $lt_dlunknown; |
| 10053 | |
| 10054 | if (self) |
| 10055 | { |
| 10056 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 10057 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 10058 | /* dlclose (self); */ |
| 10059 | } |
| 10060 | |
| 10061 | exit (status); |
| 10062 | } |
| 10063 | EOF |
| 10064 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10065 | (eval $ac_link) 2>&5 |
| 10066 | ac_status=$? |
| 10067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10068 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 10069 | (./conftest; exit; ) 2>/dev/null |
| 10070 | lt_status=$? |
| 10071 | case x$lt_status in |
| 10072 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 10073 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 10074 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 10075 | esac |
| 10076 | else : |
| 10077 | # compilation failed |
| 10078 | lt_cv_dlopen_self_static=no |
| 10079 | fi |
| 10080 | fi |
| 10081 | rm -fr conftest* |
| 10082 | |
| 10083 | |
| 10084 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10085 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 10086 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10087 | fi |
| 10088 | |
| 10089 | CPPFLAGS="$save_CPPFLAGS" |
| 10090 | LDFLAGS="$save_LDFLAGS" |
| 10091 | LIBS="$save_LIBS" |
| 10092 | ;; |
| 10093 | esac |
| 10094 | |
| 10095 | case $lt_cv_dlopen_self in |
| 10096 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 10097 | *) enable_dlopen_self=unknown ;; |
| 10098 | esac |
| 10099 | |
| 10100 | case $lt_cv_dlopen_self_static in |
| 10101 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 10102 | *) enable_dlopen_self_static=unknown ;; |
| 10103 | esac |
| 10104 | fi |
| 10105 | |
| 10106 | |
| 10107 | # Report which librarie types wil actually be built |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10108 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 10109 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
| 10110 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 10111 | echo "${ECHO_T}$can_build_shared" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10112 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10113 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 10114 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10115 | test "$can_build_shared" = "no" && enable_shared=no |
| 10116 | |
| 10117 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 10118 | # are all built from PIC. |
| 10119 | case "$host_os" in |
| 10120 | aix3*) |
| 10121 | test "$enable_shared" = yes && enable_static=no |
| 10122 | if test -n "$RANLIB"; then |
| 10123 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 10124 | postinstall_cmds='$RANLIB $lib' |
| 10125 | fi |
| 10126 | ;; |
| 10127 | |
| 10128 | aix4* | aix5*) |
| 10129 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 10130 | test "$enable_shared" = yes && enable_static=no |
| 10131 | fi |
| 10132 | ;; |
| 10133 | darwin* | rhapsody*) |
| 10134 | if test "$GCC" = yes; then |
| 10135 | archive_cmds_need_lc=no |
| 10136 | case "$host_os" in |
| 10137 | rhapsody* | darwin1.[012]) |
| 10138 | allow_undefined_flag='-undefined suppress' |
| 10139 | ;; |
| 10140 | *) # Darwin 1.3 on |
| 10141 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 10142 | allow_undefined_flag='-flat_namespace -undefined suppress' |
| 10143 | else |
| 10144 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 10145 | 10.[012]) |
| 10146 | allow_undefined_flag='-flat_namespace -undefined suppress' |
| 10147 | ;; |
| 10148 | 10.*) |
| 10149 | allow_undefined_flag='-undefined dynamic_lookup' |
| 10150 | ;; |
| 10151 | esac |
| 10152 | fi |
| 10153 | ;; |
| 10154 | esac |
| 10155 | output_verbose_link_cmd='echo' |
| 10156 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' |
| 10157 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 10158 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 10159 | 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}' |
| 10160 | 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}' |
| 10161 | hardcode_direct=no |
| 10162 | hardcode_automatic=yes |
| 10163 | hardcode_shlibpath_var=unsupported |
| 10164 | whole_archive_flag_spec='-all_load $convenience' |
| 10165 | link_all_deplibs=yes |
| 10166 | else |
| 10167 | ld_shlibs=no |
| 10168 | fi |
| 10169 | ;; |
| 10170 | esac |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10171 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 10172 | echo "${ECHO_T}$enable_shared" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10173 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10174 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 10175 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10176 | # Make sure either enable_shared or enable_static is yes. |
| 10177 | test "$enable_shared" = yes || enable_static=yes |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10178 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 10179 | echo "${ECHO_T}$enable_static" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10180 | |
| 10181 | # The else clause should only fire when bootstrapping the |
| 10182 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 10183 | # with your package, and you will get complaints that there are |
| 10184 | # no rules to generate ltmain.sh. |
| 10185 | if test -f "$ltmain"; then |
| 10186 | # See if we are running on zsh, and set the options which allow our commands through |
| 10187 | # without removal of \ escapes. |
| 10188 | if test -n "${ZSH_VERSION+set}" ; then |
| 10189 | setopt NO_GLOB_SUBST |
| 10190 | fi |
| 10191 | # Now quote all the things that may contain metacharacters while being |
| 10192 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 10193 | # variables and quote the copies for generation of the libtool script. |
| 10194 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 10195 | SED SHELL STRIP \ |
| 10196 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 10197 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 10198 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 10199 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 10200 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 10201 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 10202 | old_postinstall_cmds old_postuninstall_cmds \ |
| 10203 | compiler \ |
| 10204 | CC \ |
| 10205 | LD \ |
| 10206 | lt_prog_compiler_wl \ |
| 10207 | lt_prog_compiler_pic \ |
| 10208 | lt_prog_compiler_static \ |
| 10209 | lt_prog_compiler_no_builtin_flag \ |
| 10210 | export_dynamic_flag_spec \ |
| 10211 | thread_safe_flag_spec \ |
| 10212 | whole_archive_flag_spec \ |
| 10213 | enable_shared_with_static_runtimes \ |
| 10214 | old_archive_cmds \ |
| 10215 | old_archive_from_new_cmds \ |
| 10216 | predep_objects \ |
| 10217 | postdep_objects \ |
| 10218 | predeps \ |
| 10219 | postdeps \ |
| 10220 | compiler_lib_search_path \ |
| 10221 | archive_cmds \ |
| 10222 | archive_expsym_cmds \ |
| 10223 | postinstall_cmds \ |
| 10224 | postuninstall_cmds \ |
| 10225 | old_archive_from_expsyms_cmds \ |
| 10226 | allow_undefined_flag \ |
| 10227 | no_undefined_flag \ |
| 10228 | export_symbols_cmds \ |
| 10229 | hardcode_libdir_flag_spec \ |
| 10230 | hardcode_libdir_flag_spec_ld \ |
| 10231 | hardcode_libdir_separator \ |
| 10232 | hardcode_automatic \ |
| 10233 | module_cmds \ |
| 10234 | module_expsym_cmds \ |
| 10235 | lt_cv_prog_compiler_c_o \ |
| 10236 | exclude_expsyms \ |
| 10237 | include_expsyms; do |
| 10238 | |
| 10239 | case $var in |
| 10240 | old_archive_cmds | \ |
| 10241 | old_archive_from_new_cmds | \ |
| 10242 | archive_cmds | \ |
| 10243 | archive_expsym_cmds | \ |
| 10244 | module_cmds | \ |
| 10245 | module_expsym_cmds | \ |
| 10246 | old_archive_from_expsyms_cmds | \ |
| 10247 | export_symbols_cmds | \ |
| 10248 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 10249 | postinstall_cmds | postuninstall_cmds | \ |
| 10250 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 10251 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 10252 | # Double-quote double-evaled strings. |
| 10253 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 10254 | ;; |
| 10255 | *) |
| 10256 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 10257 | ;; |
| 10258 | esac |
| 10259 | done |
| 10260 | |
| 10261 | case $lt_echo in |
| 10262 | *'\$0 --fallback-echo"') |
| 10263 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 10264 | ;; |
| 10265 | esac |
| 10266 | |
| 10267 | cfgfile="${ofile}T" |
| 10268 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
| 10269 | $rm -f "$cfgfile" |
| 10270 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
| 10271 | echo "$as_me: creating $ofile" >&6;} |
| 10272 | |
| 10273 | cat <<__EOF__ >> "$cfgfile" |
| 10274 | #! $SHELL |
| 10275 | |
| 10276 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 10277 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 10278 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 10279 | # |
| 10280 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
| 10281 | # Free Software Foundation, Inc. |
| 10282 | # |
| 10283 | # This file is part of GNU Libtool: |
| 10284 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 10285 | # |
| 10286 | # This program is free software; you can redistribute it and/or modify |
| 10287 | # it under the terms of the GNU General Public License as published by |
| 10288 | # the Free Software Foundation; either version 2 of the License, or |
| 10289 | # (at your option) any later version. |
| 10290 | # |
| 10291 | # This program is distributed in the hope that it will be useful, but |
| 10292 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10293 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 10294 | # General Public License for more details. |
| 10295 | # |
| 10296 | # You should have received a copy of the GNU General Public License |
| 10297 | # along with this program; if not, write to the Free Software |
| 10298 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 10299 | # |
| 10300 | # As a special exception to the GNU General Public License, if you |
| 10301 | # distribute this file as part of a program that contains a |
| 10302 | # configuration script generated by Autoconf, you may include it under |
| 10303 | # the same distribution terms that you use for the rest of that program. |
| 10304 | |
| 10305 | # A sed program that does not truncate output. |
| 10306 | SED=$lt_SED |
| 10307 | |
| 10308 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 10309 | Xsed="$SED -e s/^X//" |
| 10310 | |
| 10311 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 10312 | # if CDPATH is set. |
| 10313 | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| 10314 | |
| 10315 | # The names of the tagged configurations supported by this script. |
| 10316 | available_tags= |
| 10317 | |
| 10318 | # ### BEGIN LIBTOOL CONFIG |
| 10319 | |
| 10320 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 10321 | |
| 10322 | # Shell to use when invoking shell scripts. |
| 10323 | SHELL=$lt_SHELL |
| 10324 | |
| 10325 | # Whether or not to build shared libraries. |
| 10326 | build_libtool_libs=$enable_shared |
| 10327 | |
| 10328 | # Whether or not to build static libraries. |
| 10329 | build_old_libs=$enable_static |
| 10330 | |
| 10331 | # Whether or not to add -lc for building shared libraries. |
| 10332 | build_libtool_need_lc=$archive_cmds_need_lc |
| 10333 | |
| 10334 | # Whether or not to disallow shared libs when runtime libs are static |
| 10335 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 10336 | |
| 10337 | # Whether or not to optimize for fast installation. |
| 10338 | fast_install=$enable_fast_install |
| 10339 | |
| 10340 | # The host system. |
| 10341 | host_alias=$host_alias |
| 10342 | host=$host |
| 10343 | |
| 10344 | # An echo program that does not interpret backslashes. |
| 10345 | echo=$lt_echo |
| 10346 | |
| 10347 | # The archiver. |
| 10348 | AR=$lt_AR |
| 10349 | AR_FLAGS=$lt_AR_FLAGS |
| 10350 | |
| 10351 | # A C compiler. |
| 10352 | LTCC=$lt_LTCC |
| 10353 | |
| 10354 | # A language-specific compiler. |
| 10355 | CC=$lt_compiler |
| 10356 | |
| 10357 | # Is the compiler the GNU C compiler? |
| 10358 | with_gcc=$GCC |
| 10359 | |
| 10360 | # An ERE matcher. |
| 10361 | EGREP=$lt_EGREP |
| 10362 | |
| 10363 | # The linker used to build libraries. |
| 10364 | LD=$lt_LD |
| 10365 | |
| 10366 | # Whether we need hard or soft links. |
| 10367 | LN_S=$lt_LN_S |
| 10368 | |
| 10369 | # A BSD-compatible nm program. |
| 10370 | NM=$lt_NM |
| 10371 | |
| 10372 | # A symbol stripping program |
| 10373 | STRIP=$lt_STRIP |
| 10374 | |
| 10375 | # Used to examine libraries when file_magic_cmd begins "file" |
| 10376 | MAGIC_CMD=$MAGIC_CMD |
| 10377 | |
| 10378 | # Used on cygwin: DLL creation program. |
| 10379 | DLLTOOL="$DLLTOOL" |
| 10380 | |
| 10381 | # Used on cygwin: object dumper. |
| 10382 | OBJDUMP="$OBJDUMP" |
| 10383 | |
| 10384 | # Used on cygwin: assembler. |
| 10385 | AS="$AS" |
| 10386 | |
| 10387 | # The name of the directory that contains temporary libtool files. |
| 10388 | objdir=$objdir |
| 10389 | |
| 10390 | # How to create reloadable object files. |
| 10391 | reload_flag=$lt_reload_flag |
| 10392 | reload_cmds=$lt_reload_cmds |
| 10393 | |
| 10394 | # How to pass a linker flag through the compiler. |
| 10395 | wl=$lt_lt_prog_compiler_wl |
| 10396 | |
| 10397 | # Object file suffix (normally "o"). |
| 10398 | objext="$ac_objext" |
| 10399 | |
| 10400 | # Old archive suffix (normally "a"). |
| 10401 | libext="$libext" |
| 10402 | |
| 10403 | # Shared library suffix (normally ".so"). |
| 10404 | shrext_cmds='$shrext_cmds' |
| 10405 | |
| 10406 | # Executable file suffix (normally ""). |
| 10407 | exeext="$exeext" |
| 10408 | |
| 10409 | # Additional compiler flags for building library objects. |
| 10410 | pic_flag=$lt_lt_prog_compiler_pic |
| 10411 | pic_mode=$pic_mode |
| 10412 | |
| 10413 | # What is the maximum length of a command? |
| 10414 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 10415 | |
| 10416 | # Does compiler simultaneously support -c and -o options? |
| 10417 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 10418 | |
| 10419 | # Must we lock files when doing compilation ? |
| 10420 | need_locks=$lt_need_locks |
| 10421 | |
| 10422 | # Do we need the lib prefix for modules? |
| 10423 | need_lib_prefix=$need_lib_prefix |
| 10424 | |
| 10425 | # Do we need a version for libraries? |
| 10426 | need_version=$need_version |
| 10427 | |
| 10428 | # Whether dlopen is supported. |
| 10429 | dlopen_support=$enable_dlopen |
| 10430 | |
| 10431 | # Whether dlopen of programs is supported. |
| 10432 | dlopen_self=$enable_dlopen_self |
| 10433 | |
| 10434 | # Whether dlopen of statically linked programs is supported. |
| 10435 | dlopen_self_static=$enable_dlopen_self_static |
| 10436 | |
| 10437 | # Compiler flag to prevent dynamic linking. |
| 10438 | link_static_flag=$lt_lt_prog_compiler_static |
| 10439 | |
| 10440 | # Compiler flag to turn off builtin functions. |
| 10441 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 10442 | |
| 10443 | # Compiler flag to allow reflexive dlopens. |
| 10444 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 10445 | |
| 10446 | # Compiler flag to generate shared objects directly from archives. |
| 10447 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 10448 | |
| 10449 | # Compiler flag to generate thread-safe objects. |
| 10450 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 10451 | |
| 10452 | # Library versioning type. |
| 10453 | version_type=$version_type |
| 10454 | |
| 10455 | # Format of library name prefix. |
| 10456 | libname_spec=$lt_libname_spec |
| 10457 | |
| 10458 | # List of archive names. First name is the real one, the rest are links. |
| 10459 | # The last name is the one that the linker finds with -lNAME. |
| 10460 | library_names_spec=$lt_library_names_spec |
| 10461 | |
| 10462 | # The coded name of the library, if different from the real name. |
| 10463 | soname_spec=$lt_soname_spec |
| 10464 | |
| 10465 | # Commands used to build and install an old-style archive. |
| 10466 | RANLIB=$lt_RANLIB |
| 10467 | old_archive_cmds=$lt_old_archive_cmds |
| 10468 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 10469 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 10470 | |
| 10471 | # Create an old-style archive from a shared archive. |
| 10472 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 10473 | |
| 10474 | # Create a temporary old-style archive to link instead of a shared archive. |
| 10475 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 10476 | |
| 10477 | # Commands used to build and install a shared archive. |
| 10478 | archive_cmds=$lt_archive_cmds |
| 10479 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 10480 | postinstall_cmds=$lt_postinstall_cmds |
| 10481 | postuninstall_cmds=$lt_postuninstall_cmds |
| 10482 | |
| 10483 | # Commands used to build a loadable module (assumed same as above if empty) |
| 10484 | module_cmds=$lt_module_cmds |
| 10485 | module_expsym_cmds=$lt_module_expsym_cmds |
| 10486 | |
| 10487 | # Commands to strip libraries. |
| 10488 | old_striplib=$lt_old_striplib |
| 10489 | striplib=$lt_striplib |
| 10490 | |
| 10491 | # Dependencies to place before the objects being linked to create a |
| 10492 | # shared library. |
| 10493 | predep_objects=$lt_predep_objects |
| 10494 | |
| 10495 | # Dependencies to place after the objects being linked to create a |
| 10496 | # shared library. |
| 10497 | postdep_objects=$lt_postdep_objects |
| 10498 | |
| 10499 | # Dependencies to place before the objects being linked to create a |
| 10500 | # shared library. |
| 10501 | predeps=$lt_predeps |
| 10502 | |
| 10503 | # Dependencies to place after the objects being linked to create a |
| 10504 | # shared library. |
| 10505 | postdeps=$lt_postdeps |
| 10506 | |
| 10507 | # The library search path used internally by the compiler when linking |
| 10508 | # a shared library. |
| 10509 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 10510 | |
| 10511 | # Method to check whether dependent libraries are shared objects. |
| 10512 | deplibs_check_method=$lt_deplibs_check_method |
| 10513 | |
| 10514 | # Command to use when deplibs_check_method == file_magic. |
| 10515 | file_magic_cmd=$lt_file_magic_cmd |
| 10516 | |
| 10517 | # Flag that allows shared libraries with undefined symbols to be built. |
| 10518 | allow_undefined_flag=$lt_allow_undefined_flag |
| 10519 | |
| 10520 | # Flag that forces no undefined symbols. |
| 10521 | no_undefined_flag=$lt_no_undefined_flag |
| 10522 | |
| 10523 | # Commands used to finish a libtool library installation in a directory. |
| 10524 | finish_cmds=$lt_finish_cmds |
| 10525 | |
| 10526 | # Same as above, but a single script fragment to be evaled but not shown. |
| 10527 | finish_eval=$lt_finish_eval |
| 10528 | |
| 10529 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 10530 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 10531 | |
| 10532 | # Transform the output of nm in a proper C declaration |
| 10533 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 10534 | |
| 10535 | # Transform the output of nm in a C name address pair |
| 10536 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 10537 | |
| 10538 | # This is the shared library runtime path variable. |
| 10539 | runpath_var=$runpath_var |
| 10540 | |
| 10541 | # This is the shared library path variable. |
| 10542 | shlibpath_var=$shlibpath_var |
| 10543 | |
| 10544 | # Is shlibpath searched before the hard-coded library search path? |
| 10545 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 10546 | |
| 10547 | # How to hardcode a shared library path into an executable. |
| 10548 | hardcode_action=$hardcode_action |
| 10549 | |
| 10550 | # Whether we should hardcode library paths into libraries. |
| 10551 | hardcode_into_libs=$hardcode_into_libs |
| 10552 | |
| 10553 | # Flag to hardcode \$libdir into a binary during linking. |
| 10554 | # This must work even if \$libdir does not exist. |
| 10555 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 10556 | |
| 10557 | # If ld is used when linking, flag to hardcode \$libdir into |
| 10558 | # a binary during linking. This must work even if \$libdir does |
| 10559 | # not exist. |
| 10560 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 10561 | |
| 10562 | # Whether we need a single -rpath flag with a separated argument. |
| 10563 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 10564 | |
| 10565 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 10566 | # resulting binary. |
| 10567 | hardcode_direct=$hardcode_direct |
| 10568 | |
| 10569 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 10570 | # resulting binary. |
| 10571 | hardcode_minus_L=$hardcode_minus_L |
| 10572 | |
| 10573 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 10574 | # the resulting binary. |
| 10575 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 10576 | |
| 10577 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 10578 | # and all subsequent libraries and executables linked against it. |
| 10579 | hardcode_automatic=$hardcode_automatic |
| 10580 | |
| 10581 | # Variables whose values should be saved in libtool wrapper scripts and |
| 10582 | # restored at relink time. |
| 10583 | variables_saved_for_relink="$variables_saved_for_relink" |
| 10584 | |
| 10585 | # Whether libtool must link a program against all its dependency libraries. |
| 10586 | link_all_deplibs=$link_all_deplibs |
| 10587 | |
| 10588 | # Compile-time system search path for libraries |
| 10589 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 10590 | |
| 10591 | # Run-time system search path for libraries |
| 10592 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 10593 | |
| 10594 | # Fix the shell variable \$srcfile for the compiler. |
| 10595 | fix_srcfile_path="$fix_srcfile_path" |
| 10596 | |
| 10597 | # Set to yes if exported symbols are required. |
| 10598 | always_export_symbols=$always_export_symbols |
| 10599 | |
| 10600 | # The commands to list exported symbols. |
| 10601 | export_symbols_cmds=$lt_export_symbols_cmds |
| 10602 | |
| 10603 | # The commands to extract the exported symbol list from a shared archive. |
| 10604 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 10605 | |
| 10606 | # Symbols that should not be listed in the preloaded symbols. |
| 10607 | exclude_expsyms=$lt_exclude_expsyms |
| 10608 | |
| 10609 | # Symbols that must always be exported. |
| 10610 | include_expsyms=$lt_include_expsyms |
| 10611 | |
| 10612 | # ### END LIBTOOL CONFIG |
| 10613 | |
| 10614 | __EOF__ |
| 10615 | |
| 10616 | |
| 10617 | case $host_os in |
| 10618 | aix3*) |
| 10619 | cat <<\EOF >> "$cfgfile" |
| 10620 | |
| 10621 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 10622 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 10623 | # vanish in a puff of smoke. |
| 10624 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 10625 | COLLECT_NAMES= |
| 10626 | export COLLECT_NAMES |
| 10627 | fi |
| 10628 | EOF |
| 10629 | ;; |
| 10630 | esac |
| 10631 | |
| 10632 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 10633 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 10634 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 10635 | # is reportedly fixed, but why not run on old versions too? |
| 10636 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
| 10637 | |
| 10638 | mv -f "$cfgfile" "$ofile" || \ |
| 10639 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 10640 | chmod +x "$ofile" |
| 10641 | |
| 10642 | else |
| 10643 | # If there is no Makefile yet, we rely on a make rule to execute |
| 10644 | # `config.status --recheck' to rerun these tests and create the |
| 10645 | # libtool script then. |
| 10646 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 10647 | if test -f "$ltmain_in"; then |
| 10648 | test -f Makefile && make "$ltmain" |
| 10649 | fi |
| 10650 | fi |
| 10651 | |
| 10652 | |
| 10653 | ac_ext=c |
| 10654 | ac_cpp='$CPP $CPPFLAGS' |
| 10655 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10656 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10657 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10658 | |
| 10659 | CC="$lt_save_CC" |
| 10660 | |
| 10661 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10662 | # Check whether --with-tags was given. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10663 | if test "${with_tags+set}" = set; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10664 | withval=$with_tags; tagnames="$withval" |
| 10665 | fi |
| 10666 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10667 | |
| 10668 | if test -f "$ltmain" && test -n "$tagnames"; then |
| 10669 | if test ! -f "${ofile}"; then |
| 10670 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
| 10671 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
| 10672 | fi |
| 10673 | |
| 10674 | if test -z "$LTCC"; then |
| 10675 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
| 10676 | if test -z "$LTCC"; then |
| 10677 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
| 10678 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
| 10679 | else |
| 10680 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
| 10681 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
| 10682 | fi |
| 10683 | fi |
| 10684 | |
| 10685 | # Extract list of available tagged configurations in $ofile. |
| 10686 | # Note that this assumes the entire list is on one line. |
| 10687 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
| 10688 | |
| 10689 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 10690 | for tagname in $tagnames; do |
| 10691 | IFS="$lt_save_ifs" |
| 10692 | # Check whether tagname contains only valid characters |
| 10693 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
| 10694 | "") ;; |
| 10695 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
| 10696 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
| 10697 | { (exit 1); exit 1; }; } |
| 10698 | ;; |
| 10699 | esac |
| 10700 | |
| 10701 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
| 10702 | then |
| 10703 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
| 10704 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
| 10705 | { (exit 1); exit 1; }; } |
| 10706 | fi |
| 10707 | |
| 10708 | # Update the list of available tags. |
| 10709 | if test -n "$tagname"; then |
| 10710 | echo appending configuration tag \"$tagname\" to $ofile |
| 10711 | |
| 10712 | case $tagname in |
| 10713 | CXX) |
| 10714 | if test -n "$CXX" && test "X$CXX" != "Xno"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10715 | ac_ext=cpp |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10716 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 10717 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10718 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10719 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 10720 | |
| 10721 | |
| 10722 | |
| 10723 | |
| 10724 | archive_cmds_need_lc_CXX=no |
| 10725 | allow_undefined_flag_CXX= |
| 10726 | always_export_symbols_CXX=no |
| 10727 | archive_expsym_cmds_CXX= |
| 10728 | export_dynamic_flag_spec_CXX= |
| 10729 | hardcode_direct_CXX=no |
| 10730 | hardcode_libdir_flag_spec_CXX= |
| 10731 | hardcode_libdir_flag_spec_ld_CXX= |
| 10732 | hardcode_libdir_separator_CXX= |
| 10733 | hardcode_minus_L_CXX=no |
| 10734 | hardcode_automatic_CXX=no |
| 10735 | module_cmds_CXX= |
| 10736 | module_expsym_cmds_CXX= |
| 10737 | link_all_deplibs_CXX=unknown |
| 10738 | old_archive_cmds_CXX=$old_archive_cmds |
| 10739 | no_undefined_flag_CXX= |
| 10740 | whole_archive_flag_spec_CXX= |
| 10741 | enable_shared_with_static_runtimes_CXX=no |
| 10742 | |
| 10743 | # Dependencies to place before and after the object being linked: |
| 10744 | predep_objects_CXX= |
| 10745 | postdep_objects_CXX= |
| 10746 | predeps_CXX= |
| 10747 | postdeps_CXX= |
| 10748 | compiler_lib_search_path_CXX= |
| 10749 | |
| 10750 | # Source file extension for C++ test sources. |
| 10751 | ac_ext=cc |
| 10752 | |
| 10753 | # Object file extension for compiled C++ test sources. |
| 10754 | objext=o |
| 10755 | objext_CXX=$objext |
| 10756 | |
| 10757 | # Code to be used in simple compile tests |
| 10758 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 10759 | |
| 10760 | # Code to be used in simple link tests |
| 10761 | lt_simple_link_test_code='int main(int, char *) { return(0); }\n' |
| 10762 | |
| 10763 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 10764 | |
| 10765 | # If no C compiler was specified, use CC. |
| 10766 | LTCC=${LTCC-"$CC"} |
| 10767 | |
| 10768 | # Allow CC to be a program name with arguments. |
| 10769 | compiler=$CC |
| 10770 | |
| 10771 | |
| 10772 | # Allow CC to be a program name with arguments. |
| 10773 | lt_save_CC=$CC |
| 10774 | lt_save_LD=$LD |
| 10775 | lt_save_GCC=$GCC |
| 10776 | GCC=$GXX |
| 10777 | lt_save_with_gnu_ld=$with_gnu_ld |
| 10778 | lt_save_path_LD=$lt_cv_path_LD |
| 10779 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 10780 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 10781 | else |
| 10782 | unset lt_cv_prog_gnu_ld |
| 10783 | fi |
| 10784 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 10785 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 10786 | else |
| 10787 | unset lt_cv_path_LD |
| 10788 | fi |
| 10789 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 10790 | CC=${CXX-"c++"} |
| 10791 | compiler=$CC |
| 10792 | compiler_CXX=$CC |
| 10793 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
| 10794 | |
| 10795 | # We don't want -fno-exception wen compiling C++ code, so set the |
| 10796 | # no_builtin_flag separately |
| 10797 | if test "$GXX" = yes; then |
| 10798 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 10799 | else |
| 10800 | lt_prog_compiler_no_builtin_flag_CXX= |
| 10801 | fi |
| 10802 | |
| 10803 | if test "$GXX" = yes; then |
| 10804 | # Set up default GNU C++ configuration |
| 10805 | |
| 10806 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10807 | # Check whether --with-gnu-ld was given. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10808 | if test "${with_gnu_ld+set}" = set; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10809 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10810 | else |
| 10811 | with_gnu_ld=no |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10812 | fi |
| 10813 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10814 | ac_prog=ld |
| 10815 | if test "$GCC" = yes; then |
| 10816 | # Check if gcc -print-prog-name=ld gives a path. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10817 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 10818 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10819 | case $host in |
| 10820 | *-*-mingw*) |
| 10821 | # gcc leaves a trailing carriage return which upsets mingw |
| 10822 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 10823 | *) |
| 10824 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 10825 | esac |
| 10826 | case $ac_prog in |
| 10827 | # Accept absolute paths. |
| 10828 | [\\/]* | ?:[\\/]*) |
| 10829 | re_direlt='/[^/][^/]*/\.\./' |
| 10830 | # Canonicalize the pathname of ld |
| 10831 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 10832 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 10833 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 10834 | done |
| 10835 | test -z "$LD" && LD="$ac_prog" |
| 10836 | ;; |
| 10837 | "") |
| 10838 | # If it fails, then pretend we aren't using GCC. |
| 10839 | ac_prog=ld |
| 10840 | ;; |
| 10841 | *) |
| 10842 | # If it is relative, then search for the first ld in PATH. |
| 10843 | with_gnu_ld=unknown |
| 10844 | ;; |
| 10845 | esac |
| 10846 | elif test "$with_gnu_ld" = yes; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10847 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 10848 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10849 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10850 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 10851 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10852 | fi |
| 10853 | if test "${lt_cv_path_LD+set}" = set; then |
| 10854 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10855 | else |
| 10856 | if test -z "$LD"; then |
| 10857 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 10858 | for ac_dir in $PATH; do |
| 10859 | IFS="$lt_save_ifs" |
| 10860 | test -z "$ac_dir" && ac_dir=. |
| 10861 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 10862 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 10863 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 10864 | # but apparently some GNU ld's only accept -v. |
| 10865 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 10866 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 10867 | *GNU* | *'with BFD'*) |
| 10868 | test "$with_gnu_ld" != no && break |
| 10869 | ;; |
| 10870 | *) |
| 10871 | test "$with_gnu_ld" != yes && break |
| 10872 | ;; |
| 10873 | esac |
| 10874 | fi |
| 10875 | done |
| 10876 | IFS="$lt_save_ifs" |
| 10877 | else |
| 10878 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 10879 | fi |
| 10880 | fi |
| 10881 | |
| 10882 | LD="$lt_cv_path_LD" |
| 10883 | if test -n "$LD"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10884 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 10885 | echo "${ECHO_T}$LD" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10886 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10887 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10888 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10889 | fi |
| 10890 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 10891 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 10892 | { (exit 1); exit 1; }; } |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10893 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 10894 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10895 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 10896 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10897 | else |
| 10898 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 10899 | case `$LD -v 2>&1 </dev/null` in |
| 10900 | *GNU* | *'with BFD'*) |
| 10901 | lt_cv_prog_gnu_ld=yes |
| 10902 | ;; |
| 10903 | *) |
| 10904 | lt_cv_prog_gnu_ld=no |
| 10905 | ;; |
| 10906 | esac |
| 10907 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10908 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 10909 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10910 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 10911 | |
| 10912 | |
| 10913 | |
| 10914 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 10915 | # archiving commands below assume that GNU ld is being used. |
| 10916 | if test "$with_gnu_ld" = yes; then |
| 10917 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 10918 | 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' |
| 10919 | |
| 10920 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 10921 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 10922 | |
| 10923 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 10924 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 10925 | # investigate it a little bit more. (MM) |
| 10926 | wlarc='${wl}' |
| 10927 | |
| 10928 | # ancient GNU ld didn't support --whole-archive et. al. |
| 10929 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
| 10930 | grep 'no-whole-archive' > /dev/null; then |
| 10931 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 10932 | else |
| 10933 | whole_archive_flag_spec_CXX= |
| 10934 | fi |
| 10935 | else |
| 10936 | with_gnu_ld=no |
| 10937 | wlarc= |
| 10938 | |
| 10939 | # A generic and very simple default shared library creation |
| 10940 | # command for GNU C++ for the case where it uses the native |
| 10941 | # linker, instead of GNU ld. If possible, this setting should |
| 10942 | # overridden to take advantage of the native linker features on |
| 10943 | # the platform it is being used on. |
| 10944 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 10945 | fi |
| 10946 | |
| 10947 | # Commands to make compiler produce verbose output that lists |
| 10948 | # what "hidden" libraries, object files and flags are used when |
| 10949 | # linking a shared library. |
| 10950 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 10951 | |
| 10952 | else |
| 10953 | GXX=no |
| 10954 | with_gnu_ld=no |
| 10955 | wlarc= |
| 10956 | fi |
| 10957 | |
| 10958 | # PORTME: fill in a description of your system's C++ link characteristics |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10959 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 10960 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10961 | ld_shlibs_CXX=yes |
| 10962 | case $host_os in |
| 10963 | aix3*) |
| 10964 | # FIXME: insert proper C++ library support |
| 10965 | ld_shlibs_CXX=no |
| 10966 | ;; |
| 10967 | aix4* | aix5*) |
| 10968 | if test "$host_cpu" = ia64; then |
| 10969 | # On IA64, the linker does run time linking by default, so we don't |
| 10970 | # have to do anything special. |
| 10971 | aix_use_runtimelinking=no |
| 10972 | exp_sym_flag='-Bexport' |
| 10973 | no_entry_flag="" |
| 10974 | else |
| 10975 | aix_use_runtimelinking=no |
| 10976 | |
| 10977 | # Test if we are trying to use run time linking or normal |
| 10978 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 10979 | # need to do runtime linking. |
| 10980 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 10981 | for ld_flag in $LDFLAGS; do |
| 10982 | case $ld_flag in |
| 10983 | *-brtl*) |
| 10984 | aix_use_runtimelinking=yes |
| 10985 | break |
| 10986 | ;; |
| 10987 | esac |
| 10988 | done |
| 10989 | esac |
| 10990 | |
| 10991 | exp_sym_flag='-bexport' |
| 10992 | no_entry_flag='-bnoentry' |
| 10993 | fi |
| 10994 | |
| 10995 | # When large executables or shared objects are built, AIX ld can |
| 10996 | # have problems creating the table of contents. If linking a library |
| 10997 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 10998 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 10999 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 11000 | |
| 11001 | archive_cmds_CXX='' |
| 11002 | hardcode_direct_CXX=yes |
| 11003 | hardcode_libdir_separator_CXX=':' |
| 11004 | link_all_deplibs_CXX=yes |
| 11005 | |
| 11006 | if test "$GXX" = yes; then |
| 11007 | case $host_os in aix4.012|aix4.012.*) |
| 11008 | # We only want to do this on AIX 4.2 and lower, the check |
| 11009 | # below for broken collect2 doesn't work under 4.3+ |
| 11010 | collect2name=`${CC} -print-prog-name=collect2` |
| 11011 | if test -f "$collect2name" && \ |
| 11012 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 11013 | then |
| 11014 | # We have reworked collect2 |
| 11015 | hardcode_direct_CXX=yes |
| 11016 | else |
| 11017 | # We have old collect2 |
| 11018 | hardcode_direct_CXX=unsupported |
| 11019 | # It fails to find uninstalled libraries when the uninstalled |
| 11020 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 11021 | # to unsupported forces relinking |
| 11022 | hardcode_minus_L_CXX=yes |
| 11023 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 11024 | hardcode_libdir_separator_CXX= |
| 11025 | fi |
| 11026 | esac |
| 11027 | shared_flag='-shared' |
| 11028 | else |
| 11029 | # not using gcc |
| 11030 | if test "$host_cpu" = ia64; then |
| 11031 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 11032 | # chokes on -Wl,-G. The following line is correct: |
| 11033 | shared_flag='-G' |
| 11034 | else |
| 11035 | if test "$aix_use_runtimelinking" = yes; then |
| 11036 | shared_flag='${wl}-G' |
| 11037 | else |
| 11038 | shared_flag='${wl}-bM:SRE' |
| 11039 | fi |
| 11040 | fi |
| 11041 | fi |
| 11042 | |
| 11043 | # It seems that -bexpall does not export symbols beginning with |
| 11044 | # underscore (_), so it is better to generate a list of symbols to export. |
| 11045 | always_export_symbols_CXX=yes |
| 11046 | if test "$aix_use_runtimelinking" = yes; then |
| 11047 | # Warning - without using the other runtime loading flags (-brtl), |
| 11048 | # -berok will link without error, but may produce a broken library. |
| 11049 | allow_undefined_flag_CXX='-berok' |
| 11050 | # Determine the default libpath from the value encoded in an empty executable. |
| 11051 | cat >conftest.$ac_ext <<_ACEOF |
| 11052 | /* confdefs.h. */ |
| 11053 | _ACEOF |
| 11054 | cat confdefs.h >>conftest.$ac_ext |
| 11055 | cat >>conftest.$ac_ext <<_ACEOF |
| 11056 | /* end confdefs.h. */ |
| 11057 | |
| 11058 | int |
| 11059 | main () |
| 11060 | { |
| 11061 | |
| 11062 | ; |
| 11063 | return 0; |
| 11064 | } |
| 11065 | _ACEOF |
| 11066 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11067 | if { (ac_try="$ac_link" |
| 11068 | case "(($ac_try" in |
| 11069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11070 | *) ac_try_echo=$ac_try;; |
| 11071 | esac |
| 11072 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11073 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11074 | ac_status=$? |
| 11075 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11076 | rm -f conftest.er1 |
| 11077 | cat conftest.err >&5 |
| 11078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11079 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11080 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 11081 | { (case "(($ac_try" in |
| 11082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11083 | *) ac_try_echo=$ac_try;; |
| 11084 | esac |
| 11085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11086 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11087 | ac_status=$? |
| 11088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11089 | (exit $ac_status); }; } && |
| 11090 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11091 | { (case "(($ac_try" in |
| 11092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11093 | *) ac_try_echo=$ac_try;; |
| 11094 | esac |
| 11095 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11096 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11097 | ac_status=$? |
| 11098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11099 | (exit $ac_status); }; }; then |
| 11100 | |
| 11101 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 11102 | }'` |
| 11103 | # Check for a 64-bit object if we didn't find anything. |
| 11104 | 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; } |
| 11105 | }'`; fi |
| 11106 | else |
| 11107 | echo "$as_me: failed program was:" >&5 |
| 11108 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11109 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11110 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11111 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11112 | |
| 11113 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11114 | conftest$ac_exeext conftest.$ac_ext |
| 11115 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 11116 | |
| 11117 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 11118 | |
| 11119 | archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 11120 | else |
| 11121 | if test "$host_cpu" = ia64; then |
| 11122 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 11123 | allow_undefined_flag_CXX="-z nodefs" |
| 11124 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
| 11125 | else |
| 11126 | # Determine the default libpath from the value encoded in an empty executable. |
| 11127 | cat >conftest.$ac_ext <<_ACEOF |
| 11128 | /* confdefs.h. */ |
| 11129 | _ACEOF |
| 11130 | cat confdefs.h >>conftest.$ac_ext |
| 11131 | cat >>conftest.$ac_ext <<_ACEOF |
| 11132 | /* end confdefs.h. */ |
| 11133 | |
| 11134 | int |
| 11135 | main () |
| 11136 | { |
| 11137 | |
| 11138 | ; |
| 11139 | return 0; |
| 11140 | } |
| 11141 | _ACEOF |
| 11142 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11143 | if { (ac_try="$ac_link" |
| 11144 | case "(($ac_try" in |
| 11145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11146 | *) ac_try_echo=$ac_try;; |
| 11147 | esac |
| 11148 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11149 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11150 | ac_status=$? |
| 11151 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11152 | rm -f conftest.er1 |
| 11153 | cat conftest.err >&5 |
| 11154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11155 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11156 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 11157 | { (case "(($ac_try" in |
| 11158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11159 | *) ac_try_echo=$ac_try;; |
| 11160 | esac |
| 11161 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11162 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11163 | ac_status=$? |
| 11164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11165 | (exit $ac_status); }; } && |
| 11166 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11167 | { (case "(($ac_try" in |
| 11168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11169 | *) ac_try_echo=$ac_try;; |
| 11170 | esac |
| 11171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11172 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11173 | ac_status=$? |
| 11174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11175 | (exit $ac_status); }; }; then |
| 11176 | |
| 11177 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 11178 | }'` |
| 11179 | # Check for a 64-bit object if we didn't find anything. |
| 11180 | 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; } |
| 11181 | }'`; fi |
| 11182 | else |
| 11183 | echo "$as_me: failed program was:" >&5 |
| 11184 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11185 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11186 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11187 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11188 | |
| 11189 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11190 | conftest$ac_exeext conftest.$ac_ext |
| 11191 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 11192 | |
| 11193 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 11194 | # Warning - without using the other run time loading flags, |
| 11195 | # -berok will link without error, but may produce a broken library. |
| 11196 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 11197 | allow_undefined_flag_CXX=' ${wl}-berok' |
| 11198 | # -bexpall does not export symbols beginning with underscore (_) |
| 11199 | always_export_symbols_CXX=yes |
| 11200 | # Exported symbols can be pulled into shared objects from archives |
| 11201 | whole_archive_flag_spec_CXX=' ' |
| 11202 | archive_cmds_need_lc_CXX=yes |
| 11203 | # This is similar to how AIX traditionally builds it's shared libraries. |
| 11204 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 11205 | fi |
| 11206 | fi |
| 11207 | ;; |
| 11208 | chorus*) |
| 11209 | case $cc_basename in |
| 11210 | *) |
| 11211 | # FIXME: insert proper C++ library support |
| 11212 | ld_shlibs_CXX=no |
| 11213 | ;; |
| 11214 | esac |
| 11215 | ;; |
| 11216 | |
| 11217 | cygwin* | mingw* | pw32*) |
| 11218 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 11219 | # as there is no search path for DLLs. |
| 11220 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 11221 | allow_undefined_flag_CXX=unsupported |
| 11222 | always_export_symbols_CXX=no |
| 11223 | enable_shared_with_static_runtimes_CXX=yes |
| 11224 | |
| 11225 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 11226 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 11227 | # If the export-symbols file already is a .def file (1st line |
| 11228 | # is EXPORTS), use it as is; otherwise, prepend... |
| 11229 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 11230 | cp $export_symbols $output_objdir/$soname.def; |
| 11231 | else |
| 11232 | echo EXPORTS > $output_objdir/$soname.def; |
| 11233 | cat $export_symbols >> $output_objdir/$soname.def; |
| 11234 | fi~ |
| 11235 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 11236 | else |
| 11237 | ld_shlibs_CXX=no |
| 11238 | fi |
| 11239 | ;; |
| 11240 | |
| 11241 | darwin* | rhapsody*) |
| 11242 | if test "$GXX" = yes; then |
| 11243 | archive_cmds_need_lc_CXX=no |
| 11244 | case "$host_os" in |
| 11245 | rhapsody* | darwin1.[012]) |
| 11246 | allow_undefined_flag_CXX='-undefined suppress' |
| 11247 | ;; |
| 11248 | *) # Darwin 1.3 on |
| 11249 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 11250 | allow_undefined_flag_CXX='-flat_namespace -undefined suppress' |
| 11251 | else |
| 11252 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 11253 | 10.[012]) |
| 11254 | allow_undefined_flag_CXX='-flat_namespace -undefined suppress' |
| 11255 | ;; |
| 11256 | 10.*) |
| 11257 | allow_undefined_flag_CXX='-undefined dynamic_lookup' |
| 11258 | ;; |
| 11259 | esac |
| 11260 | fi |
| 11261 | ;; |
| 11262 | esac |
| 11263 | lt_int_apple_cc_single_mod=no |
| 11264 | output_verbose_link_cmd='echo' |
| 11265 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
| 11266 | lt_int_apple_cc_single_mod=yes |
| 11267 | fi |
| 11268 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 11269 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 11270 | else |
| 11271 | archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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' |
| 11272 | fi |
| 11273 | module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 11274 | |
| 11275 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 11276 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 11277 | 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}' |
| 11278 | else |
| 11279 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' |
| 11280 | fi |
| 11281 | 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}' |
| 11282 | hardcode_direct_CXX=no |
| 11283 | hardcode_automatic_CXX=yes |
| 11284 | hardcode_shlibpath_var_CXX=unsupported |
| 11285 | whole_archive_flag_spec_CXX='-all_load $convenience' |
| 11286 | link_all_deplibs_CXX=yes |
| 11287 | else |
| 11288 | ld_shlibs_CXX=no |
| 11289 | fi |
| 11290 | ;; |
| 11291 | |
| 11292 | dgux*) |
| 11293 | case $cc_basename in |
| 11294 | ec++) |
| 11295 | # FIXME: insert proper C++ library support |
| 11296 | ld_shlibs_CXX=no |
| 11297 | ;; |
| 11298 | ghcx) |
| 11299 | # Green Hills C++ Compiler |
| 11300 | # FIXME: insert proper C++ library support |
| 11301 | ld_shlibs_CXX=no |
| 11302 | ;; |
| 11303 | *) |
| 11304 | # FIXME: insert proper C++ library support |
| 11305 | ld_shlibs_CXX=no |
| 11306 | ;; |
| 11307 | esac |
| 11308 | ;; |
| 11309 | freebsd12*) |
| 11310 | # C++ shared libraries reported to be fairly broken before switch to ELF |
| 11311 | ld_shlibs_CXX=no |
| 11312 | ;; |
| 11313 | freebsd-elf*) |
| 11314 | archive_cmds_need_lc_CXX=no |
| 11315 | ;; |
| 11316 | freebsd* | kfreebsd*-gnu) |
| 11317 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 11318 | # conventions |
| 11319 | ld_shlibs_CXX=yes |
| 11320 | ;; |
| 11321 | gnu*) |
| 11322 | ;; |
| 11323 | hpux9*) |
| 11324 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 11325 | hardcode_libdir_separator_CXX=: |
| 11326 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 11327 | hardcode_direct_CXX=yes |
| 11328 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 11329 | # but as the default |
| 11330 | # location of the library. |
| 11331 | |
| 11332 | case $cc_basename in |
| 11333 | CC) |
| 11334 | # FIXME: insert proper C++ library support |
| 11335 | ld_shlibs_CXX=no |
| 11336 | ;; |
| 11337 | aCC) |
| 11338 | 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' |
| 11339 | # Commands to make compiler produce verbose output that lists |
| 11340 | # what "hidden" libraries, object files and flags are used when |
| 11341 | # linking a shared library. |
| 11342 | # |
| 11343 | # There doesn't appear to be a way to prevent this compiler from |
| 11344 | # explicitly linking system object files so we need to strip them |
| 11345 | # from the output so that they don't get included in the library |
| 11346 | # dependencies. |
| 11347 | 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' |
| 11348 | ;; |
| 11349 | *) |
| 11350 | if test "$GXX" = yes; then |
| 11351 | 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' |
| 11352 | else |
| 11353 | # FIXME: insert proper C++ library support |
| 11354 | ld_shlibs_CXX=no |
| 11355 | fi |
| 11356 | ;; |
| 11357 | esac |
| 11358 | ;; |
| 11359 | hpux10*|hpux11*) |
| 11360 | if test $with_gnu_ld = no; then |
| 11361 | case "$host_cpu" in |
| 11362 | hppa*64*) |
| 11363 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 11364 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
| 11365 | hardcode_libdir_separator_CXX=: |
| 11366 | ;; |
| 11367 | ia64*) |
| 11368 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 11369 | ;; |
| 11370 | *) |
| 11371 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 11372 | hardcode_libdir_separator_CXX=: |
| 11373 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 11374 | ;; |
| 11375 | esac |
| 11376 | fi |
| 11377 | case "$host_cpu" in |
| 11378 | hppa*64*) |
| 11379 | hardcode_direct_CXX=no |
| 11380 | hardcode_shlibpath_var_CXX=no |
| 11381 | ;; |
| 11382 | ia64*) |
| 11383 | hardcode_direct_CXX=no |
| 11384 | hardcode_shlibpath_var_CXX=no |
| 11385 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 11386 | # but as the default |
| 11387 | # location of the library. |
| 11388 | ;; |
| 11389 | *) |
| 11390 | hardcode_direct_CXX=yes |
| 11391 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 11392 | # but as the default |
| 11393 | # location of the library. |
| 11394 | ;; |
| 11395 | esac |
| 11396 | |
| 11397 | case $cc_basename in |
| 11398 | CC) |
| 11399 | # FIXME: insert proper C++ library support |
| 11400 | ld_shlibs_CXX=no |
| 11401 | ;; |
| 11402 | aCC) |
| 11403 | case "$host_cpu" in |
| 11404 | hppa*64*|ia64*) |
| 11405 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
| 11406 | ;; |
| 11407 | *) |
| 11408 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 11409 | ;; |
| 11410 | esac |
| 11411 | # Commands to make compiler produce verbose output that lists |
| 11412 | # what "hidden" libraries, object files and flags are used when |
| 11413 | # linking a shared library. |
| 11414 | # |
| 11415 | # There doesn't appear to be a way to prevent this compiler from |
| 11416 | # explicitly linking system object files so we need to strip them |
| 11417 | # from the output so that they don't get included in the library |
| 11418 | # dependencies. |
| 11419 | 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' |
| 11420 | ;; |
| 11421 | *) |
| 11422 | if test "$GXX" = yes; then |
| 11423 | if test $with_gnu_ld = no; then |
| 11424 | case "$host_cpu" in |
| 11425 | ia64*|hppa*64*) |
| 11426 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
| 11427 | ;; |
| 11428 | *) |
| 11429 | 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' |
| 11430 | ;; |
| 11431 | esac |
| 11432 | fi |
| 11433 | else |
| 11434 | # FIXME: insert proper C++ library support |
| 11435 | ld_shlibs_CXX=no |
| 11436 | fi |
| 11437 | ;; |
| 11438 | esac |
| 11439 | ;; |
| 11440 | irix5* | irix6*) |
| 11441 | case $cc_basename in |
| 11442 | CC) |
| 11443 | # SGI C++ |
| 11444 | 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 ${objdir}/so_locations -o $lib' |
| 11445 | |
| 11446 | # Archives containing C++ object files must be created using |
| 11447 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 11448 | # necessary to make sure instantiated templates are included |
| 11449 | # in the archive. |
| 11450 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 11451 | ;; |
| 11452 | *) |
| 11453 | if test "$GXX" = yes; then |
| 11454 | if test "$with_gnu_ld" = no; then |
| 11455 | 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}${objdir}/so_locations -o $lib' |
| 11456 | else |
| 11457 | 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' |
| 11458 | fi |
| 11459 | fi |
| 11460 | link_all_deplibs_CXX=yes |
| 11461 | ;; |
| 11462 | esac |
| 11463 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 11464 | hardcode_libdir_separator_CXX=: |
| 11465 | ;; |
| 11466 | linux*) |
| 11467 | case $cc_basename in |
| 11468 | KCC) |
| 11469 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 11470 | |
| 11471 | # KCC will only create a shared library if the output file |
| 11472 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 11473 | # to its proper name (with version) after linking. |
| 11474 | 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' |
| 11475 | 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' |
| 11476 | # Commands to make compiler produce verbose output that lists |
| 11477 | # what "hidden" libraries, object files and flags are used when |
| 11478 | # linking a shared library. |
| 11479 | # |
| 11480 | # There doesn't appear to be a way to prevent this compiler from |
| 11481 | # explicitly linking system object files so we need to strip them |
| 11482 | # from the output so that they don't get included in the library |
| 11483 | # dependencies. |
| 11484 | 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' |
| 11485 | |
| 11486 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
| 11487 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 11488 | |
| 11489 | # Archives containing C++ object files must be created using |
| 11490 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 11491 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 11492 | ;; |
| 11493 | icpc) |
| 11494 | # Intel C++ |
| 11495 | with_gnu_ld=yes |
| 11496 | archive_cmds_need_lc_CXX=no |
| 11497 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11498 | 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' |
| 11499 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 11500 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 11501 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 11502 | ;; |
| 11503 | cxx) |
| 11504 | # Compaq C++ |
| 11505 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11506 | 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' |
| 11507 | |
| 11508 | runpath_var=LD_RUN_PATH |
| 11509 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 11510 | hardcode_libdir_separator_CXX=: |
| 11511 | |
| 11512 | # Commands to make compiler produce verbose output that lists |
| 11513 | # what "hidden" libraries, object files and flags are used when |
| 11514 | # linking a shared library. |
| 11515 | # |
| 11516 | # There doesn't appear to be a way to prevent this compiler from |
| 11517 | # explicitly linking system object files so we need to strip them |
| 11518 | # from the output so that they don't get included in the library |
| 11519 | # dependencies. |
| 11520 | 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' |
| 11521 | ;; |
| 11522 | esac |
| 11523 | ;; |
| 11524 | lynxos*) |
| 11525 | # FIXME: insert proper C++ library support |
| 11526 | ld_shlibs_CXX=no |
| 11527 | ;; |
| 11528 | m88k*) |
| 11529 | # FIXME: insert proper C++ library support |
| 11530 | ld_shlibs_CXX=no |
| 11531 | ;; |
| 11532 | mvs*) |
| 11533 | case $cc_basename in |
| 11534 | cxx) |
| 11535 | # FIXME: insert proper C++ library support |
| 11536 | ld_shlibs_CXX=no |
| 11537 | ;; |
| 11538 | *) |
| 11539 | # FIXME: insert proper C++ library support |
| 11540 | ld_shlibs_CXX=no |
| 11541 | ;; |
| 11542 | esac |
| 11543 | ;; |
| 11544 | netbsd*) |
| 11545 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 11546 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 11547 | wlarc= |
| 11548 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 11549 | hardcode_direct_CXX=yes |
| 11550 | hardcode_shlibpath_var_CXX=no |
| 11551 | fi |
| 11552 | # Workaround some broken pre-1.5 toolchains |
| 11553 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 11554 | ;; |
| 11555 | osf3*) |
| 11556 | case $cc_basename in |
| 11557 | KCC) |
| 11558 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 11559 | |
| 11560 | # KCC will only create a shared library if the output file |
| 11561 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 11562 | # to its proper name (with version) after linking. |
| 11563 | 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' |
| 11564 | |
| 11565 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 11566 | hardcode_libdir_separator_CXX=: |
| 11567 | |
| 11568 | # Archives containing C++ object files must be created using |
| 11569 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 11570 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 11571 | |
| 11572 | ;; |
| 11573 | RCC) |
| 11574 | # Rational C++ 2.4.1 |
| 11575 | # FIXME: insert proper C++ library support |
| 11576 | ld_shlibs_CXX=no |
| 11577 | ;; |
| 11578 | cxx) |
| 11579 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 11580 | 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 ${objdir}/so_locations -o $lib' |
| 11581 | |
| 11582 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 11583 | hardcode_libdir_separator_CXX=: |
| 11584 | |
| 11585 | # Commands to make compiler produce verbose output that lists |
| 11586 | # what "hidden" libraries, object files and flags are used when |
| 11587 | # linking a shared library. |
| 11588 | # |
| 11589 | # There doesn't appear to be a way to prevent this compiler from |
| 11590 | # explicitly linking system object files so we need to strip them |
| 11591 | # from the output so that they don't get included in the library |
| 11592 | # dependencies. |
| 11593 | 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' |
| 11594 | ;; |
| 11595 | *) |
| 11596 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 11597 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 11598 | 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}${objdir}/so_locations -o $lib' |
| 11599 | |
| 11600 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 11601 | hardcode_libdir_separator_CXX=: |
| 11602 | |
| 11603 | # Commands to make compiler produce verbose output that lists |
| 11604 | # what "hidden" libraries, object files and flags are used when |
| 11605 | # linking a shared library. |
| 11606 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 11607 | |
| 11608 | else |
| 11609 | # FIXME: insert proper C++ library support |
| 11610 | ld_shlibs_CXX=no |
| 11611 | fi |
| 11612 | ;; |
| 11613 | esac |
| 11614 | ;; |
| 11615 | osf4* | osf5*) |
| 11616 | case $cc_basename in |
| 11617 | KCC) |
| 11618 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 11619 | |
| 11620 | # KCC will only create a shared library if the output file |
| 11621 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 11622 | # to its proper name (with version) after linking. |
| 11623 | 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' |
| 11624 | |
| 11625 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 11626 | hardcode_libdir_separator_CXX=: |
| 11627 | |
| 11628 | # Archives containing C++ object files must be created using |
| 11629 | # the KAI C++ compiler. |
| 11630 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
| 11631 | ;; |
| 11632 | RCC) |
| 11633 | # Rational C++ 2.4.1 |
| 11634 | # FIXME: insert proper C++ library support |
| 11635 | ld_shlibs_CXX=no |
| 11636 | ;; |
| 11637 | cxx) |
| 11638 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
| 11639 | 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 ${objdir}/so_locations -o $lib' |
| 11640 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 11641 | echo "-hidden">> $lib.exp~ |
| 11642 | $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 $objdir/so_locations -o $lib~ |
| 11643 | $rm $lib.exp' |
| 11644 | |
| 11645 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 11646 | hardcode_libdir_separator_CXX=: |
| 11647 | |
| 11648 | # Commands to make compiler produce verbose output that lists |
| 11649 | # what "hidden" libraries, object files and flags are used when |
| 11650 | # linking a shared library. |
| 11651 | # |
| 11652 | # There doesn't appear to be a way to prevent this compiler from |
| 11653 | # explicitly linking system object files so we need to strip them |
| 11654 | # from the output so that they don't get included in the library |
| 11655 | # dependencies. |
| 11656 | 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' |
| 11657 | ;; |
| 11658 | *) |
| 11659 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 11660 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 11661 | 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}${objdir}/so_locations -o $lib' |
| 11662 | |
| 11663 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 11664 | hardcode_libdir_separator_CXX=: |
| 11665 | |
| 11666 | # Commands to make compiler produce verbose output that lists |
| 11667 | # what "hidden" libraries, object files and flags are used when |
| 11668 | # linking a shared library. |
| 11669 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 11670 | |
| 11671 | else |
| 11672 | # FIXME: insert proper C++ library support |
| 11673 | ld_shlibs_CXX=no |
| 11674 | fi |
| 11675 | ;; |
| 11676 | esac |
| 11677 | ;; |
| 11678 | psos*) |
| 11679 | # FIXME: insert proper C++ library support |
| 11680 | ld_shlibs_CXX=no |
| 11681 | ;; |
| 11682 | sco*) |
| 11683 | archive_cmds_need_lc_CXX=no |
| 11684 | case $cc_basename in |
| 11685 | CC) |
| 11686 | # FIXME: insert proper C++ library support |
| 11687 | ld_shlibs_CXX=no |
| 11688 | ;; |
| 11689 | *) |
| 11690 | # FIXME: insert proper C++ library support |
| 11691 | ld_shlibs_CXX=no |
| 11692 | ;; |
| 11693 | esac |
| 11694 | ;; |
| 11695 | sunos4*) |
| 11696 | case $cc_basename in |
| 11697 | CC) |
| 11698 | # Sun C++ 4.x |
| 11699 | # FIXME: insert proper C++ library support |
| 11700 | ld_shlibs_CXX=no |
| 11701 | ;; |
| 11702 | lcc) |
| 11703 | # Lucid |
| 11704 | # FIXME: insert proper C++ library support |
| 11705 | ld_shlibs_CXX=no |
| 11706 | ;; |
| 11707 | *) |
| 11708 | # FIXME: insert proper C++ library support |
| 11709 | ld_shlibs_CXX=no |
| 11710 | ;; |
| 11711 | esac |
| 11712 | ;; |
| 11713 | solaris*) |
| 11714 | case $cc_basename in |
| 11715 | CC) |
| 11716 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 11717 | no_undefined_flag_CXX=' -zdefs' |
| 11718 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 11719 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 11720 | $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 11721 | |
| 11722 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 11723 | hardcode_shlibpath_var_CXX=no |
| 11724 | case $host_os in |
| 11725 | solaris2.0-5 | solaris2.0-5.*) ;; |
| 11726 | *) |
| 11727 | # The C++ compiler is used as linker so we must use $wl |
| 11728 | # flag to pass the commands to the underlying system |
| 11729 | # linker. |
| 11730 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 11731 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 11732 | ;; |
| 11733 | esac |
| 11734 | link_all_deplibs_CXX=yes |
| 11735 | |
| 11736 | # Commands to make compiler produce verbose output that lists |
| 11737 | # what "hidden" libraries, object files and flags are used when |
| 11738 | # linking a shared library. |
| 11739 | # |
| 11740 | # There doesn't appear to be a way to prevent this compiler from |
| 11741 | # explicitly linking system object files so we need to strip them |
| 11742 | # from the output so that they don't get included in the library |
| 11743 | # dependencies. |
| 11744 | output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| 11745 | |
| 11746 | # Archives containing C++ object files must be created using |
| 11747 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 11748 | # necessary to make sure instantiated templates are included |
| 11749 | # in the archive. |
| 11750 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 11751 | ;; |
| 11752 | gcx) |
| 11753 | # Green Hills C++ Compiler |
| 11754 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 11755 | |
| 11756 | # The C++ compiler must be used to create the archive. |
| 11757 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 11758 | ;; |
| 11759 | *) |
| 11760 | # GNU C++ compiler with Solaris linker |
| 11761 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 11762 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 11763 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
| 11764 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 11765 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 11766 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 11767 | |
| 11768 | # Commands to make compiler produce verbose output that lists |
| 11769 | # what "hidden" libraries, object files and flags are used when |
| 11770 | # linking a shared library. |
| 11771 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 11772 | else |
| 11773 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 11774 | # platform. |
| 11775 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 11776 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 11777 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 11778 | |
| 11779 | # Commands to make compiler produce verbose output that lists |
| 11780 | # what "hidden" libraries, object files and flags are used when |
| 11781 | # linking a shared library. |
| 11782 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 11783 | fi |
| 11784 | |
| 11785 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 11786 | fi |
| 11787 | ;; |
| 11788 | esac |
| 11789 | ;; |
| 11790 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 11791 | archive_cmds_need_lc_CXX=no |
| 11792 | ;; |
| 11793 | tandem*) |
| 11794 | case $cc_basename in |
| 11795 | NCC) |
| 11796 | # NonStop-UX NCC 3.20 |
| 11797 | # FIXME: insert proper C++ library support |
| 11798 | ld_shlibs_CXX=no |
| 11799 | ;; |
| 11800 | *) |
| 11801 | # FIXME: insert proper C++ library support |
| 11802 | ld_shlibs_CXX=no |
| 11803 | ;; |
| 11804 | esac |
| 11805 | ;; |
| 11806 | vxworks*) |
| 11807 | # FIXME: insert proper C++ library support |
| 11808 | ld_shlibs_CXX=no |
| 11809 | ;; |
| 11810 | *) |
| 11811 | # FIXME: insert proper C++ library support |
| 11812 | ld_shlibs_CXX=no |
| 11813 | ;; |
| 11814 | esac |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11815 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 11816 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11817 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 11818 | |
| 11819 | GCC_CXX="$GXX" |
| 11820 | LD_CXX="$LD" |
| 11821 | |
| 11822 | |
| 11823 | cat > conftest.$ac_ext <<EOF |
| 11824 | class Foo |
| 11825 | { |
| 11826 | public: |
| 11827 | Foo (void) { a = 0; } |
| 11828 | private: |
| 11829 | int a; |
| 11830 | }; |
| 11831 | EOF |
| 11832 | |
| 11833 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11834 | (eval $ac_compile) 2>&5 |
| 11835 | ac_status=$? |
| 11836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11837 | (exit $ac_status); }; then |
| 11838 | # Parse the compiler output and extract the necessary |
| 11839 | # objects, libraries and library flags. |
| 11840 | |
| 11841 | # Sentinel used to keep track of whether or not we are before |
| 11842 | # the conftest object file. |
| 11843 | pre_test_object_deps_done=no |
| 11844 | |
| 11845 | # The `*' in the case matches for architectures that use `case' in |
| 11846 | # $output_verbose_cmd can trigger glob expansion during the loop |
| 11847 | # eval without this substitution. |
| 11848 | output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" |
| 11849 | |
| 11850 | for p in `eval $output_verbose_link_cmd`; do |
| 11851 | case $p in |
| 11852 | |
| 11853 | -L* | -R* | -l*) |
| 11854 | # Some compilers place space between "-{L,R}" and the path. |
| 11855 | # Remove the space. |
| 11856 | if test $p = "-L" \ |
| 11857 | || test $p = "-R"; then |
| 11858 | prev=$p |
| 11859 | continue |
| 11860 | else |
| 11861 | prev= |
| 11862 | fi |
| 11863 | |
| 11864 | if test "$pre_test_object_deps_done" = no; then |
| 11865 | case $p in |
| 11866 | -L* | -R*) |
| 11867 | # Internal compiler library paths should come after those |
| 11868 | # provided the user. The postdeps already come after the |
| 11869 | # user supplied libs so there is no need to process them. |
| 11870 | if test -z "$compiler_lib_search_path_CXX"; then |
| 11871 | compiler_lib_search_path_CXX="${prev}${p}" |
| 11872 | else |
| 11873 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 11874 | fi |
| 11875 | ;; |
| 11876 | # The "-l" case would never come before the object being |
| 11877 | # linked, so don't bother handling this case. |
| 11878 | esac |
| 11879 | else |
| 11880 | if test -z "$postdeps_CXX"; then |
| 11881 | postdeps_CXX="${prev}${p}" |
| 11882 | else |
| 11883 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 11884 | fi |
| 11885 | fi |
| 11886 | ;; |
| 11887 | |
| 11888 | *.$objext) |
| 11889 | # This assumes that the test object file only shows up |
| 11890 | # once in the compiler output. |
| 11891 | if test "$p" = "conftest.$objext"; then |
| 11892 | pre_test_object_deps_done=yes |
| 11893 | continue |
| 11894 | fi |
| 11895 | |
| 11896 | if test "$pre_test_object_deps_done" = no; then |
| 11897 | if test -z "$predep_objects_CXX"; then |
| 11898 | predep_objects_CXX="$p" |
| 11899 | else |
| 11900 | predep_objects_CXX="$predep_objects_CXX $p" |
| 11901 | fi |
| 11902 | else |
| 11903 | if test -z "$postdep_objects_CXX"; then |
| 11904 | postdep_objects_CXX="$p" |
| 11905 | else |
| 11906 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 11907 | fi |
| 11908 | fi |
| 11909 | ;; |
| 11910 | |
| 11911 | *) ;; # Ignore the rest. |
| 11912 | |
| 11913 | esac |
| 11914 | done |
| 11915 | |
| 11916 | # Clean up. |
| 11917 | rm -f a.out a.exe |
| 11918 | else |
| 11919 | echo "libtool.m4: error: problem compiling CXX test program" |
| 11920 | fi |
| 11921 | |
| 11922 | $rm -f confest.$objext |
| 11923 | |
| 11924 | case " $postdeps_CXX " in |
| 11925 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 11926 | esac |
| 11927 | |
| 11928 | lt_prog_compiler_wl_CXX= |
| 11929 | lt_prog_compiler_pic_CXX= |
| 11930 | lt_prog_compiler_static_CXX= |
| 11931 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11932 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 11933 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11934 | |
| 11935 | # C++ specific cases for pic, static, wl, etc. |
| 11936 | if test "$GXX" = yes; then |
| 11937 | lt_prog_compiler_wl_CXX='-Wl,' |
| 11938 | lt_prog_compiler_static_CXX='-static' |
| 11939 | |
| 11940 | case $host_os in |
| 11941 | aix*) |
| 11942 | # All AIX code is PIC. |
| 11943 | if test "$host_cpu" = ia64; then |
| 11944 | # AIX 5 now supports IA64 processor |
| 11945 | lt_prog_compiler_static_CXX='-Bstatic' |
| 11946 | fi |
| 11947 | ;; |
| 11948 | amigaos*) |
| 11949 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 11950 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 11951 | # like `-m68040'. |
| 11952 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 11953 | ;; |
| 11954 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 11955 | # PIC is the default for these OSes. |
| 11956 | ;; |
| 11957 | mingw* | os2* | pw32*) |
| 11958 | # This hack is so that the source file can tell whether it is being |
| 11959 | # built for inclusion in a dll (and should export symbols for example). |
| 11960 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 11961 | ;; |
| 11962 | darwin* | rhapsody*) |
| 11963 | # PIC is the default on this platform |
| 11964 | # Common symbols not allowed in MH_DYLIB files |
| 11965 | lt_prog_compiler_pic_CXX='-fno-common' |
| 11966 | ;; |
| 11967 | *djgpp*) |
| 11968 | # DJGPP does not support shared libraries at all |
| 11969 | lt_prog_compiler_pic_CXX= |
| 11970 | ;; |
| 11971 | sysv4*MP*) |
| 11972 | if test -d /usr/nec; then |
| 11973 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 11974 | fi |
| 11975 | ;; |
| 11976 | hpux*) |
| 11977 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 11978 | # not for PA HP-UX. |
| 11979 | case "$host_cpu" in |
| 11980 | hppa*64*|ia64*) |
| 11981 | ;; |
| 11982 | *) |
| 11983 | lt_prog_compiler_pic_CXX='-fPIC' |
| 11984 | ;; |
| 11985 | esac |
| 11986 | ;; |
| 11987 | *) |
| 11988 | lt_prog_compiler_pic_CXX='-fPIC' |
| 11989 | ;; |
| 11990 | esac |
| 11991 | else |
| 11992 | case $host_os in |
| 11993 | aix4* | aix5*) |
| 11994 | # All AIX code is PIC. |
| 11995 | if test "$host_cpu" = ia64; then |
| 11996 | # AIX 5 now supports IA64 processor |
| 11997 | lt_prog_compiler_static_CXX='-Bstatic' |
| 11998 | else |
| 11999 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 12000 | fi |
| 12001 | ;; |
| 12002 | chorus*) |
| 12003 | case $cc_basename in |
| 12004 | cxch68) |
| 12005 | # Green Hills C++ Compiler |
| 12006 | # _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" |
| 12007 | ;; |
| 12008 | esac |
| 12009 | ;; |
| 12010 | dgux*) |
| 12011 | case $cc_basename in |
| 12012 | ec++) |
| 12013 | lt_prog_compiler_pic_CXX='-KPIC' |
| 12014 | ;; |
| 12015 | ghcx) |
| 12016 | # Green Hills C++ Compiler |
| 12017 | lt_prog_compiler_pic_CXX='-pic' |
| 12018 | ;; |
| 12019 | *) |
| 12020 | ;; |
| 12021 | esac |
| 12022 | ;; |
| 12023 | freebsd* | kfreebsd*-gnu) |
| 12024 | # FreeBSD uses GNU C++ |
| 12025 | ;; |
| 12026 | hpux9* | hpux10* | hpux11*) |
| 12027 | case $cc_basename in |
| 12028 | CC) |
| 12029 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12030 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
| 12031 | if test "$host_cpu" != ia64; then |
| 12032 | lt_prog_compiler_pic_CXX='+Z' |
| 12033 | fi |
| 12034 | ;; |
| 12035 | aCC) |
| 12036 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12037 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
| 12038 | case "$host_cpu" in |
| 12039 | hppa*64*|ia64*) |
| 12040 | # +Z the default |
| 12041 | ;; |
| 12042 | *) |
| 12043 | lt_prog_compiler_pic_CXX='+Z' |
| 12044 | ;; |
| 12045 | esac |
| 12046 | ;; |
| 12047 | *) |
| 12048 | ;; |
| 12049 | esac |
| 12050 | ;; |
| 12051 | irix5* | irix6* | nonstopux*) |
| 12052 | case $cc_basename in |
| 12053 | CC) |
| 12054 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12055 | lt_prog_compiler_static_CXX='-non_shared' |
| 12056 | # CC pic flag -KPIC is the default. |
| 12057 | ;; |
| 12058 | *) |
| 12059 | ;; |
| 12060 | esac |
| 12061 | ;; |
| 12062 | linux*) |
| 12063 | case $cc_basename in |
| 12064 | KCC) |
| 12065 | # KAI C++ Compiler |
| 12066 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 12067 | lt_prog_compiler_pic_CXX='-fPIC' |
| 12068 | ;; |
| 12069 | icpc) |
| 12070 | # Intel C++ |
| 12071 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12072 | lt_prog_compiler_pic_CXX='-KPIC' |
| 12073 | lt_prog_compiler_static_CXX='-static' |
| 12074 | ;; |
| 12075 | cxx) |
| 12076 | # Compaq C++ |
| 12077 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 12078 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 12079 | lt_prog_compiler_pic_CXX= |
| 12080 | lt_prog_compiler_static_CXX='-non_shared' |
| 12081 | ;; |
| 12082 | *) |
| 12083 | ;; |
| 12084 | esac |
| 12085 | ;; |
| 12086 | lynxos*) |
| 12087 | ;; |
| 12088 | m88k*) |
| 12089 | ;; |
| 12090 | mvs*) |
| 12091 | case $cc_basename in |
| 12092 | cxx) |
| 12093 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 12094 | ;; |
| 12095 | *) |
| 12096 | ;; |
| 12097 | esac |
| 12098 | ;; |
| 12099 | netbsd*) |
| 12100 | ;; |
| 12101 | osf3* | osf4* | osf5*) |
| 12102 | case $cc_basename in |
| 12103 | KCC) |
| 12104 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 12105 | ;; |
| 12106 | RCC) |
| 12107 | # Rational C++ 2.4.1 |
| 12108 | lt_prog_compiler_pic_CXX='-pic' |
| 12109 | ;; |
| 12110 | cxx) |
| 12111 | # Digital/Compaq C++ |
| 12112 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12113 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 12114 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 12115 | lt_prog_compiler_pic_CXX= |
| 12116 | lt_prog_compiler_static_CXX='-non_shared' |
| 12117 | ;; |
| 12118 | *) |
| 12119 | ;; |
| 12120 | esac |
| 12121 | ;; |
| 12122 | psos*) |
| 12123 | ;; |
| 12124 | sco*) |
| 12125 | case $cc_basename in |
| 12126 | CC) |
| 12127 | lt_prog_compiler_pic_CXX='-fPIC' |
| 12128 | ;; |
| 12129 | *) |
| 12130 | ;; |
| 12131 | esac |
| 12132 | ;; |
| 12133 | solaris*) |
| 12134 | case $cc_basename in |
| 12135 | CC) |
| 12136 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 12137 | lt_prog_compiler_pic_CXX='-KPIC' |
| 12138 | lt_prog_compiler_static_CXX='-Bstatic' |
| 12139 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 12140 | ;; |
| 12141 | gcx) |
| 12142 | # Green Hills C++ Compiler |
| 12143 | lt_prog_compiler_pic_CXX='-PIC' |
| 12144 | ;; |
| 12145 | *) |
| 12146 | ;; |
| 12147 | esac |
| 12148 | ;; |
| 12149 | sunos4*) |
| 12150 | case $cc_basename in |
| 12151 | CC) |
| 12152 | # Sun C++ 4.x |
| 12153 | lt_prog_compiler_pic_CXX='-pic' |
| 12154 | lt_prog_compiler_static_CXX='-Bstatic' |
| 12155 | ;; |
| 12156 | lcc) |
| 12157 | # Lucid |
| 12158 | lt_prog_compiler_pic_CXX='-pic' |
| 12159 | ;; |
| 12160 | *) |
| 12161 | ;; |
| 12162 | esac |
| 12163 | ;; |
| 12164 | tandem*) |
| 12165 | case $cc_basename in |
| 12166 | NCC) |
| 12167 | # NonStop-UX NCC 3.20 |
| 12168 | lt_prog_compiler_pic_CXX='-KPIC' |
| 12169 | ;; |
| 12170 | *) |
| 12171 | ;; |
| 12172 | esac |
| 12173 | ;; |
| 12174 | unixware*) |
| 12175 | ;; |
| 12176 | vxworks*) |
| 12177 | ;; |
| 12178 | *) |
| 12179 | lt_prog_compiler_can_build_shared_CXX=no |
| 12180 | ;; |
| 12181 | esac |
| 12182 | fi |
| 12183 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12184 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
| 12185 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12186 | |
| 12187 | # |
| 12188 | # Check to make sure the PIC flag actually works. |
| 12189 | # |
| 12190 | if test -n "$lt_prog_compiler_pic_CXX"; then |
| 12191 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12192 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 12193 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12194 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
| 12195 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12196 | else |
| 12197 | lt_prog_compiler_pic_works_CXX=no |
| 12198 | ac_outfile=conftest.$ac_objext |
| 12199 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12200 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 12201 | # Insert the option either (1) after the last *FLAGS variable, or |
| 12202 | # (2) before a word containing "conftest.", or (3) at the end. |
| 12203 | # Note that $ac_compile itself does not contain backslashes and begins |
| 12204 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 12205 | # The option is referenced via a variable to avoid confusing sed. |
| 12206 | lt_compile=`echo "$ac_compile" | $SED \ |
| 12207 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 12208 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 12209 | -e 's:$: $lt_compiler_flag:'` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12210 | (eval echo "\"\$as_me:12210: $lt_compile\"" >&5) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12211 | (eval "$lt_compile" 2>conftest.err) |
| 12212 | ac_status=$? |
| 12213 | cat conftest.err >&5 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12214 | echo "$as_me:12214: \$? = $ac_status" >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12215 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 12216 | # The compiler can only warn and ignore the option if not recognized |
| 12217 | # So say no if there are warnings |
| 12218 | if test ! -s conftest.err; then |
| 12219 | lt_prog_compiler_pic_works_CXX=yes |
| 12220 | fi |
| 12221 | fi |
| 12222 | $rm conftest* |
| 12223 | |
| 12224 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12225 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
| 12226 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12227 | |
| 12228 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
| 12229 | case $lt_prog_compiler_pic_CXX in |
| 12230 | "" | " "*) ;; |
| 12231 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 12232 | esac |
| 12233 | else |
| 12234 | lt_prog_compiler_pic_CXX= |
| 12235 | lt_prog_compiler_can_build_shared_CXX=no |
| 12236 | fi |
| 12237 | |
| 12238 | fi |
| 12239 | case "$host_os" in |
| 12240 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 12241 | *djgpp*) |
| 12242 | lt_prog_compiler_pic_CXX= |
| 12243 | ;; |
| 12244 | *) |
| 12245 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 12246 | ;; |
| 12247 | esac |
| 12248 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12249 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 12250 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12251 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
| 12252 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12253 | else |
| 12254 | lt_cv_prog_compiler_c_o_CXX=no |
| 12255 | $rm -r conftest 2>/dev/null |
| 12256 | mkdir conftest |
| 12257 | cd conftest |
| 12258 | mkdir out |
| 12259 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12260 | |
| 12261 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 12262 | # Insert the option either (1) after the last *FLAGS variable, or |
| 12263 | # (2) before a word containing "conftest.", or (3) at the end. |
| 12264 | # Note that $ac_compile itself does not contain backslashes and begins |
| 12265 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 12266 | lt_compile=`echo "$ac_compile" | $SED \ |
| 12267 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 12268 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 12269 | -e 's:$: $lt_compiler_flag:'` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12270 | (eval echo "\"\$as_me:12270: $lt_compile\"" >&5) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12271 | (eval "$lt_compile" 2>out/conftest.err) |
| 12272 | ac_status=$? |
| 12273 | cat out/conftest.err >&5 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12274 | echo "$as_me:12274: \$? = $ac_status" >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12275 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 12276 | then |
| 12277 | # The compiler can only warn and ignore the option if not recognized |
| 12278 | # So say no if there are warnings |
| 12279 | if test ! -s out/conftest.err; then |
| 12280 | lt_cv_prog_compiler_c_o_CXX=yes |
| 12281 | fi |
| 12282 | fi |
| 12283 | chmod u+w . |
| 12284 | $rm conftest* |
| 12285 | # SGI C++ compiler will create directory out/ii_files/ for |
| 12286 | # template instantiation |
| 12287 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 12288 | $rm out/* && rmdir out |
| 12289 | cd .. |
| 12290 | rmdir conftest |
| 12291 | $rm conftest* |
| 12292 | |
| 12293 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12294 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 12295 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12296 | |
| 12297 | |
| 12298 | hard_links="nottested" |
| 12299 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 12300 | # do not overwrite the value of need_locks provided by the user |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12301 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 12302 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12303 | hard_links=yes |
| 12304 | $rm conftest* |
| 12305 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 12306 | touch conftest.a |
| 12307 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 12308 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12309 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 12310 | echo "${ECHO_T}$hard_links" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12311 | if test "$hard_links" = no; then |
| 12312 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 12313 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 12314 | need_locks=warn |
| 12315 | fi |
| 12316 | else |
| 12317 | need_locks=no |
| 12318 | fi |
| 12319 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12320 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 12321 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12322 | |
| 12323 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 12324 | case $host_os in |
| 12325 | aix4* | aix5*) |
| 12326 | # If we're using GNU nm, then we don't want the "-C" option. |
| 12327 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 12328 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 12329 | 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' |
| 12330 | else |
| 12331 | 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' |
| 12332 | fi |
| 12333 | ;; |
| 12334 | pw32*) |
| 12335 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 12336 | ;; |
| 12337 | cygwin* | mingw*) |
| 12338 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 12339 | ;; |
| 12340 | *) |
| 12341 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 12342 | ;; |
| 12343 | esac |
| 12344 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12345 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 12346 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12347 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 12348 | |
| 12349 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 12350 | if test "$GCC" = yes; then |
| 12351 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 12352 | fi |
| 12353 | |
| 12354 | # |
| 12355 | # Do we need to explicitly link libc? |
| 12356 | # |
| 12357 | case "x$archive_cmds_need_lc_CXX" in |
| 12358 | x|xyes) |
| 12359 | # Assume -lc should be added |
| 12360 | archive_cmds_need_lc_CXX=yes |
| 12361 | |
| 12362 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 12363 | case $archive_cmds_CXX in |
| 12364 | *'~'*) |
| 12365 | # FIXME: we may have to deal with multi-command sequences. |
| 12366 | ;; |
| 12367 | '$CC '*) |
| 12368 | # Test whether the compiler implicitly links with -lc since on some |
| 12369 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 12370 | # to ld, don't add -lc before -lgcc. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12371 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 12372 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12373 | $rm conftest* |
| 12374 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12375 | |
| 12376 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12377 | (eval $ac_compile) 2>&5 |
| 12378 | ac_status=$? |
| 12379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12380 | (exit $ac_status); } 2>conftest.err; then |
| 12381 | soname=conftest |
| 12382 | lib=conftest |
| 12383 | libobjs=conftest.$ac_objext |
| 12384 | deplibs= |
| 12385 | wl=$lt_prog_compiler_wl_CXX |
| 12386 | compiler_flags=-v |
| 12387 | linker_flags=-v |
| 12388 | verstring= |
| 12389 | output_objdir=. |
| 12390 | libname=conftest |
| 12391 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 12392 | allow_undefined_flag_CXX= |
| 12393 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 12394 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 12395 | ac_status=$? |
| 12396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12397 | (exit $ac_status); } |
| 12398 | then |
| 12399 | archive_cmds_need_lc_CXX=no |
| 12400 | else |
| 12401 | archive_cmds_need_lc_CXX=yes |
| 12402 | fi |
| 12403 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 12404 | else |
| 12405 | cat conftest.err 1>&5 |
| 12406 | fi |
| 12407 | $rm conftest* |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12408 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
| 12409 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12410 | ;; |
| 12411 | esac |
| 12412 | fi |
| 12413 | ;; |
| 12414 | esac |
| 12415 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12416 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 12417 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12418 | library_names_spec= |
| 12419 | libname_spec='lib$name' |
| 12420 | soname_spec= |
| 12421 | shrext_cmds=".so" |
| 12422 | postinstall_cmds= |
| 12423 | postuninstall_cmds= |
| 12424 | finish_cmds= |
| 12425 | finish_eval= |
| 12426 | shlibpath_var= |
| 12427 | shlibpath_overrides_runpath=unknown |
| 12428 | version_type=none |
| 12429 | dynamic_linker="$host_os ld.so" |
| 12430 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 12431 | if test "$GCC" = yes; then |
| 12432 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 12433 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 12434 | # if the path contains ";" then we assume it to be the separator |
| 12435 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 12436 | # assumed that no part of a normal pathname contains ";" but that should |
| 12437 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 12438 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 12439 | else |
| 12440 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 12441 | fi |
| 12442 | else |
| 12443 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 12444 | fi |
| 12445 | need_lib_prefix=unknown |
| 12446 | hardcode_into_libs=no |
| 12447 | |
| 12448 | # when you set need_version to no, make sure it does not cause -set_version |
| 12449 | # flags to be left without arguments |
| 12450 | need_version=unknown |
| 12451 | |
| 12452 | case $host_os in |
| 12453 | aix3*) |
| 12454 | version_type=linux |
| 12455 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 12456 | shlibpath_var=LIBPATH |
| 12457 | |
| 12458 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 12459 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12460 | ;; |
| 12461 | |
| 12462 | aix4* | aix5*) |
| 12463 | version_type=linux |
| 12464 | need_lib_prefix=no |
| 12465 | need_version=no |
| 12466 | hardcode_into_libs=yes |
| 12467 | if test "$host_cpu" = ia64; then |
| 12468 | # AIX 5 supports IA64 |
| 12469 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 12470 | shlibpath_var=LD_LIBRARY_PATH |
| 12471 | else |
| 12472 | # With GCC up to 2.95.x, collect2 would create an import file |
| 12473 | # for dependence libraries. The import file would start with |
| 12474 | # the line `#! .'. This would cause the generated library to |
| 12475 | # depend on `.', always an invalid library. This was fixed in |
| 12476 | # development snapshots of GCC prior to 3.0. |
| 12477 | case $host_os in |
| 12478 | aix4 | aix4.[01] | aix4.[01].*) |
| 12479 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 12480 | echo ' yes ' |
| 12481 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 12482 | : |
| 12483 | else |
| 12484 | can_build_shared=no |
| 12485 | fi |
| 12486 | ;; |
| 12487 | esac |
| 12488 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 12489 | # soname into executable. Probably we can add versioning support to |
| 12490 | # collect2, so additional links can be useful in future. |
| 12491 | if test "$aix_use_runtimelinking" = yes; then |
| 12492 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 12493 | # instead of lib<name>.a to let people know that these are not |
| 12494 | # typical AIX shared libraries. |
| 12495 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12496 | else |
| 12497 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 12498 | # and later when we are not doing run time linking. |
| 12499 | library_names_spec='${libname}${release}.a $libname.a' |
| 12500 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12501 | fi |
| 12502 | shlibpath_var=LIBPATH |
| 12503 | fi |
| 12504 | ;; |
| 12505 | |
| 12506 | amigaos*) |
| 12507 | library_names_spec='$libname.ixlibrary $libname.a' |
| 12508 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 12509 | 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' |
| 12510 | ;; |
| 12511 | |
| 12512 | beos*) |
| 12513 | library_names_spec='${libname}${shared_ext}' |
| 12514 | dynamic_linker="$host_os ld.so" |
| 12515 | shlibpath_var=LIBRARY_PATH |
| 12516 | ;; |
| 12517 | |
| 12518 | bsdi4*) |
| 12519 | version_type=linux |
| 12520 | need_version=no |
| 12521 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12522 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12523 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 12524 | shlibpath_var=LD_LIBRARY_PATH |
| 12525 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 12526 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 12527 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 12528 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 12529 | # libtool to hard-code these into programs |
| 12530 | ;; |
| 12531 | |
| 12532 | cygwin* | mingw* | pw32*) |
| 12533 | version_type=windows |
| 12534 | shrext_cmds=".dll" |
| 12535 | need_version=no |
| 12536 | need_lib_prefix=no |
| 12537 | |
| 12538 | case $GCC,$host_os in |
| 12539 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 12540 | library_names_spec='$libname.dll.a' |
| 12541 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 12542 | postinstall_cmds='base_file=`basename \${file}`~ |
| 12543 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 12544 | dldir=$destdir/`dirname \$dlpath`~ |
| 12545 | test -d \$dldir || mkdir -p \$dldir~ |
| 12546 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 12547 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 12548 | dlpath=$dir/\$dldll~ |
| 12549 | $rm \$dlpath' |
| 12550 | shlibpath_overrides_runpath=yes |
| 12551 | |
| 12552 | case $host_os in |
| 12553 | cygwin*) |
| 12554 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 12555 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 12556 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 12557 | ;; |
| 12558 | mingw*) |
| 12559 | # MinGW DLLs use traditional 'lib' prefix |
| 12560 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 12561 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 12562 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 12563 | # It is most probably a Windows format PATH printed by |
| 12564 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 12565 | # path with ; separators, and with drive letters. We can handle the |
| 12566 | # drive letters (cygwin fileutils understands them), so leave them, |
| 12567 | # especially as we might pass files found there to a mingw objdump, |
| 12568 | # which wouldn't understand a cygwinified path. Ahh. |
| 12569 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 12570 | else |
| 12571 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 12572 | fi |
| 12573 | ;; |
| 12574 | pw32*) |
| 12575 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 12576 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 12577 | ;; |
| 12578 | esac |
| 12579 | ;; |
| 12580 | |
| 12581 | *) |
| 12582 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 12583 | ;; |
| 12584 | esac |
| 12585 | dynamic_linker='Win32 ld.exe' |
| 12586 | # FIXME: first we should search . and the directory the executable is in |
| 12587 | shlibpath_var=PATH |
| 12588 | ;; |
| 12589 | |
| 12590 | darwin* | rhapsody*) |
| 12591 | dynamic_linker="$host_os dyld" |
| 12592 | version_type=darwin |
| 12593 | need_lib_prefix=no |
| 12594 | need_version=no |
| 12595 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 12596 | soname_spec='${libname}${release}${major}$shared_ext' |
| 12597 | shlibpath_overrides_runpath=yes |
| 12598 | shlibpath_var=DYLD_LIBRARY_PATH |
| 12599 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
| 12600 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 12601 | if test "$GCC" = yes; then |
| 12602 | 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"` |
| 12603 | else |
| 12604 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 12605 | fi |
| 12606 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 12607 | ;; |
| 12608 | |
| 12609 | dgux*) |
| 12610 | version_type=linux |
| 12611 | need_lib_prefix=no |
| 12612 | need_version=no |
| 12613 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 12614 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12615 | shlibpath_var=LD_LIBRARY_PATH |
| 12616 | ;; |
| 12617 | |
| 12618 | freebsd1*) |
| 12619 | dynamic_linker=no |
| 12620 | ;; |
| 12621 | |
| 12622 | kfreebsd*-gnu) |
| 12623 | version_type=linux |
| 12624 | need_lib_prefix=no |
| 12625 | need_version=no |
| 12626 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 12627 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12628 | shlibpath_var=LD_LIBRARY_PATH |
| 12629 | shlibpath_overrides_runpath=no |
| 12630 | hardcode_into_libs=yes |
| 12631 | dynamic_linker='GNU ld.so' |
| 12632 | ;; |
| 12633 | |
| 12634 | freebsd*) |
| 12635 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 12636 | version_type=freebsd-$objformat |
| 12637 | case $version_type in |
| 12638 | freebsd-elf*) |
| 12639 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 12640 | need_version=no |
| 12641 | need_lib_prefix=no |
| 12642 | ;; |
| 12643 | freebsd-*) |
| 12644 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 12645 | need_version=yes |
| 12646 | ;; |
| 12647 | esac |
| 12648 | shlibpath_var=LD_LIBRARY_PATH |
| 12649 | case $host_os in |
| 12650 | freebsd2*) |
| 12651 | shlibpath_overrides_runpath=yes |
| 12652 | ;; |
| 12653 | freebsd3.01* | freebsdelf3.01*) |
| 12654 | shlibpath_overrides_runpath=yes |
| 12655 | hardcode_into_libs=yes |
| 12656 | ;; |
| 12657 | *) # from 3.2 on |
| 12658 | shlibpath_overrides_runpath=no |
| 12659 | hardcode_into_libs=yes |
| 12660 | ;; |
| 12661 | esac |
| 12662 | ;; |
| 12663 | |
| 12664 | gnu*) |
| 12665 | version_type=linux |
| 12666 | need_lib_prefix=no |
| 12667 | need_version=no |
| 12668 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 12669 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12670 | shlibpath_var=LD_LIBRARY_PATH |
| 12671 | hardcode_into_libs=yes |
| 12672 | ;; |
| 12673 | |
| 12674 | hpux9* | hpux10* | hpux11*) |
| 12675 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 12676 | # link against other versions. |
| 12677 | version_type=sunos |
| 12678 | need_lib_prefix=no |
| 12679 | need_version=no |
| 12680 | case "$host_cpu" in |
| 12681 | ia64*) |
| 12682 | shrext_cmds='.so' |
| 12683 | hardcode_into_libs=yes |
| 12684 | dynamic_linker="$host_os dld.so" |
| 12685 | shlibpath_var=LD_LIBRARY_PATH |
| 12686 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 12687 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12688 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12689 | if test "X$HPUX_IA64_MODE" = X32; then |
| 12690 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 12691 | else |
| 12692 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 12693 | fi |
| 12694 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 12695 | ;; |
| 12696 | hppa*64*) |
| 12697 | shrext_cmds='.sl' |
| 12698 | hardcode_into_libs=yes |
| 12699 | dynamic_linker="$host_os dld.sl" |
| 12700 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 12701 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 12702 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12703 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12704 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 12705 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 12706 | ;; |
| 12707 | *) |
| 12708 | shrext_cmds='.sl' |
| 12709 | dynamic_linker="$host_os dld.sl" |
| 12710 | shlibpath_var=SHLIB_PATH |
| 12711 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 12712 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12713 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12714 | ;; |
| 12715 | esac |
| 12716 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 12717 | postinstall_cmds='chmod 555 $lib' |
| 12718 | ;; |
| 12719 | |
| 12720 | irix5* | irix6* | nonstopux*) |
| 12721 | case $host_os in |
| 12722 | nonstopux*) version_type=nonstopux ;; |
| 12723 | *) |
| 12724 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 12725 | version_type=linux |
| 12726 | else |
| 12727 | version_type=irix |
| 12728 | fi ;; |
| 12729 | esac |
| 12730 | need_lib_prefix=no |
| 12731 | need_version=no |
| 12732 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12733 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 12734 | case $host_os in |
| 12735 | irix5* | nonstopux*) |
| 12736 | libsuff= shlibsuff= |
| 12737 | ;; |
| 12738 | *) |
| 12739 | case $LD in # libtool.m4 will add one of these switches to LD |
| 12740 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 12741 | libsuff= shlibsuff= libmagic=32-bit;; |
| 12742 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 12743 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 12744 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 12745 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 12746 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 12747 | esac |
| 12748 | ;; |
| 12749 | esac |
| 12750 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 12751 | shlibpath_overrides_runpath=no |
| 12752 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 12753 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 12754 | hardcode_into_libs=yes |
| 12755 | ;; |
| 12756 | |
| 12757 | # No shared lib support for Linux oldld, aout, or coff. |
| 12758 | linux*oldld* | linux*aout* | linux*coff*) |
| 12759 | dynamic_linker=no |
| 12760 | ;; |
| 12761 | |
| 12762 | # This must be Linux ELF. |
| 12763 | linux*) |
| 12764 | version_type=linux |
| 12765 | need_lib_prefix=no |
| 12766 | need_version=no |
| 12767 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12768 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12769 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 12770 | shlibpath_var=LD_LIBRARY_PATH |
| 12771 | shlibpath_overrides_runpath=no |
| 12772 | # This implies no fast_install, which is unacceptable. |
| 12773 | # Some rework will be needed to allow for fast_install |
| 12774 | # before this can be enabled. |
| 12775 | hardcode_into_libs=yes |
| 12776 | |
| 12777 | # Append ld.so.conf contents to the search path |
| 12778 | if test -f /etc/ld.so.conf; then |
| 12779 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
| 12780 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 12781 | fi |
| 12782 | |
| 12783 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 12784 | # powerpc, because MkLinux only supported shared libraries with the |
| 12785 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 12786 | # most powerpc-linux boxes support dynamic linking these days and |
| 12787 | # people can always --disable-shared, the test was removed, and we |
| 12788 | # assume the GNU/Linux dynamic linker is in use. |
| 12789 | dynamic_linker='GNU/Linux ld.so' |
| 12790 | ;; |
| 12791 | |
| 12792 | knetbsd*-gnu) |
| 12793 | version_type=linux |
| 12794 | need_lib_prefix=no |
| 12795 | need_version=no |
| 12796 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 12797 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12798 | shlibpath_var=LD_LIBRARY_PATH |
| 12799 | shlibpath_overrides_runpath=no |
| 12800 | hardcode_into_libs=yes |
| 12801 | dynamic_linker='GNU ld.so' |
| 12802 | ;; |
| 12803 | |
| 12804 | netbsd*) |
| 12805 | version_type=sunos |
| 12806 | need_lib_prefix=no |
| 12807 | need_version=no |
| 12808 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 12809 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 12810 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 12811 | dynamic_linker='NetBSD (a.out) ld.so' |
| 12812 | else |
| 12813 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 12814 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12815 | dynamic_linker='NetBSD ld.elf_so' |
| 12816 | fi |
| 12817 | shlibpath_var=LD_LIBRARY_PATH |
| 12818 | shlibpath_overrides_runpath=yes |
| 12819 | hardcode_into_libs=yes |
| 12820 | ;; |
| 12821 | |
| 12822 | newsos6) |
| 12823 | version_type=linux |
| 12824 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12825 | shlibpath_var=LD_LIBRARY_PATH |
| 12826 | shlibpath_overrides_runpath=yes |
| 12827 | ;; |
| 12828 | |
| 12829 | nto-qnx*) |
| 12830 | version_type=linux |
| 12831 | need_lib_prefix=no |
| 12832 | need_version=no |
| 12833 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12834 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12835 | shlibpath_var=LD_LIBRARY_PATH |
| 12836 | shlibpath_overrides_runpath=yes |
| 12837 | ;; |
| 12838 | |
| 12839 | openbsd*) |
| 12840 | version_type=sunos |
| 12841 | need_lib_prefix=no |
| 12842 | need_version=yes |
| 12843 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 12844 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 12845 | shlibpath_var=LD_LIBRARY_PATH |
| 12846 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 12847 | case $host_os in |
| 12848 | openbsd2.[89] | openbsd2.[89].*) |
| 12849 | shlibpath_overrides_runpath=no |
| 12850 | ;; |
| 12851 | *) |
| 12852 | shlibpath_overrides_runpath=yes |
| 12853 | ;; |
| 12854 | esac |
| 12855 | else |
| 12856 | shlibpath_overrides_runpath=yes |
| 12857 | fi |
| 12858 | ;; |
| 12859 | |
| 12860 | os2*) |
| 12861 | libname_spec='$name' |
| 12862 | shrext_cmds=".dll" |
| 12863 | need_lib_prefix=no |
| 12864 | library_names_spec='$libname${shared_ext} $libname.a' |
| 12865 | dynamic_linker='OS/2 ld.exe' |
| 12866 | shlibpath_var=LIBPATH |
| 12867 | ;; |
| 12868 | |
| 12869 | osf3* | osf4* | osf5*) |
| 12870 | version_type=osf |
| 12871 | need_lib_prefix=no |
| 12872 | need_version=no |
| 12873 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12874 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12875 | shlibpath_var=LD_LIBRARY_PATH |
| 12876 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 12877 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 12878 | ;; |
| 12879 | |
| 12880 | sco3.2v5*) |
| 12881 | version_type=osf |
| 12882 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12883 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12884 | shlibpath_var=LD_LIBRARY_PATH |
| 12885 | ;; |
| 12886 | |
| 12887 | solaris*) |
| 12888 | version_type=linux |
| 12889 | need_lib_prefix=no |
| 12890 | need_version=no |
| 12891 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12892 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12893 | shlibpath_var=LD_LIBRARY_PATH |
| 12894 | shlibpath_overrides_runpath=yes |
| 12895 | hardcode_into_libs=yes |
| 12896 | # ldd complains unless libraries are executable |
| 12897 | postinstall_cmds='chmod +x $lib' |
| 12898 | ;; |
| 12899 | |
| 12900 | sunos4*) |
| 12901 | version_type=sunos |
| 12902 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 12903 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 12904 | shlibpath_var=LD_LIBRARY_PATH |
| 12905 | shlibpath_overrides_runpath=yes |
| 12906 | if test "$with_gnu_ld" = yes; then |
| 12907 | need_lib_prefix=no |
| 12908 | fi |
| 12909 | need_version=yes |
| 12910 | ;; |
| 12911 | |
| 12912 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 12913 | version_type=linux |
| 12914 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12915 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12916 | shlibpath_var=LD_LIBRARY_PATH |
| 12917 | case $host_vendor in |
| 12918 | sni) |
| 12919 | shlibpath_overrides_runpath=no |
| 12920 | need_lib_prefix=no |
| 12921 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 12922 | runpath_var=LD_RUN_PATH |
| 12923 | ;; |
| 12924 | siemens) |
| 12925 | need_lib_prefix=no |
| 12926 | ;; |
| 12927 | motorola) |
| 12928 | need_lib_prefix=no |
| 12929 | need_version=no |
| 12930 | shlibpath_overrides_runpath=no |
| 12931 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 12932 | ;; |
| 12933 | esac |
| 12934 | ;; |
| 12935 | |
| 12936 | sysv4*MP*) |
| 12937 | if test -d /usr/nec ;then |
| 12938 | version_type=linux |
| 12939 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 12940 | soname_spec='$libname${shared_ext}.$major' |
| 12941 | shlibpath_var=LD_LIBRARY_PATH |
| 12942 | fi |
| 12943 | ;; |
| 12944 | |
| 12945 | uts4*) |
| 12946 | version_type=linux |
| 12947 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12948 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12949 | shlibpath_var=LD_LIBRARY_PATH |
| 12950 | ;; |
| 12951 | |
| 12952 | *) |
| 12953 | dynamic_linker=no |
| 12954 | ;; |
| 12955 | esac |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12956 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 12957 | echo "${ECHO_T}$dynamic_linker" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12958 | test "$dynamic_linker" = no && can_build_shared=no |
| 12959 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12960 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 12961 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12962 | hardcode_action_CXX= |
| 12963 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
| 12964 | test -n "$runpath_var CXX" || \ |
| 12965 | test "X$hardcode_automatic_CXX"="Xyes" ; then |
| 12966 | |
| 12967 | # We can hardcode non-existant directories. |
| 12968 | if test "$hardcode_direct_CXX" != no && |
| 12969 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 12970 | # have to relink, otherwise we might link with an installed library |
| 12971 | # when we should be linking with a yet-to-be-installed one |
| 12972 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 12973 | test "$hardcode_minus_L_CXX" != no; then |
| 12974 | # Linking always hardcodes the temporary library directory. |
| 12975 | hardcode_action_CXX=relink |
| 12976 | else |
| 12977 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 12978 | hardcode_action_CXX=immediate |
| 12979 | fi |
| 12980 | else |
| 12981 | # We cannot hardcode anything, or else we can only hardcode existing |
| 12982 | # directories. |
| 12983 | hardcode_action_CXX=unsupported |
| 12984 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12985 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
| 12986 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12987 | |
| 12988 | if test "$hardcode_action_CXX" = relink; then |
| 12989 | # Fast installation is not supported |
| 12990 | enable_fast_install=no |
| 12991 | elif test "$shlibpath_overrides_runpath" = yes || |
| 12992 | test "$enable_shared" = no; then |
| 12993 | # Fast installation is not necessary |
| 12994 | enable_fast_install=needless |
| 12995 | fi |
| 12996 | |
| 12997 | striplib= |
| 12998 | old_striplib= |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12999 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 13000 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13001 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 13002 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 13003 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13004 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 13005 | echo "${ECHO_T}yes" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13006 | else |
| 13007 | # FIXME - insert some real tests, host_os isn't really good enough |
| 13008 | case $host_os in |
| 13009 | darwin*) |
| 13010 | if test -n "$STRIP" ; then |
| 13011 | striplib="$STRIP -x" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13012 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 13013 | echo "${ECHO_T}yes" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13014 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13015 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13016 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13017 | fi |
| 13018 | ;; |
| 13019 | *) |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13020 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13021 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13022 | ;; |
| 13023 | esac |
| 13024 | fi |
| 13025 | |
| 13026 | if test "x$enable_dlopen" != xyes; then |
| 13027 | enable_dlopen=unknown |
| 13028 | enable_dlopen_self=unknown |
| 13029 | enable_dlopen_self_static=unknown |
| 13030 | else |
| 13031 | lt_cv_dlopen=no |
| 13032 | lt_cv_dlopen_libs= |
| 13033 | |
| 13034 | case $host_os in |
| 13035 | beos*) |
| 13036 | lt_cv_dlopen="load_add_on" |
| 13037 | lt_cv_dlopen_libs= |
| 13038 | lt_cv_dlopen_self=yes |
| 13039 | ;; |
| 13040 | |
| 13041 | mingw* | pw32*) |
| 13042 | lt_cv_dlopen="LoadLibrary" |
| 13043 | lt_cv_dlopen_libs= |
| 13044 | ;; |
| 13045 | |
| 13046 | cygwin*) |
| 13047 | lt_cv_dlopen="dlopen" |
| 13048 | lt_cv_dlopen_libs= |
| 13049 | ;; |
| 13050 | |
| 13051 | darwin*) |
| 13052 | # if libdl is installed we need to link against it |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13053 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 13054 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13055 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 13056 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13057 | else |
| 13058 | ac_check_lib_save_LIBS=$LIBS |
| 13059 | LIBS="-ldl $LIBS" |
| 13060 | cat >conftest.$ac_ext <<_ACEOF |
| 13061 | /* confdefs.h. */ |
| 13062 | _ACEOF |
| 13063 | cat confdefs.h >>conftest.$ac_ext |
| 13064 | cat >>conftest.$ac_ext <<_ACEOF |
| 13065 | /* end confdefs.h. */ |
| 13066 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13067 | /* Override any GCC internal prototype to avoid an error. |
| 13068 | Use char because int might match the return type of a GCC |
| 13069 | builtin and then its argument prototype would still apply. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13070 | #ifdef __cplusplus |
| 13071 | extern "C" |
| 13072 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13073 | char dlopen (); |
| 13074 | int |
| 13075 | main () |
| 13076 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13077 | return dlopen (); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13078 | ; |
| 13079 | return 0; |
| 13080 | } |
| 13081 | _ACEOF |
| 13082 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13083 | if { (ac_try="$ac_link" |
| 13084 | case "(($ac_try" in |
| 13085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13086 | *) ac_try_echo=$ac_try;; |
| 13087 | esac |
| 13088 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13089 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13090 | ac_status=$? |
| 13091 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13092 | rm -f conftest.er1 |
| 13093 | cat conftest.err >&5 |
| 13094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13095 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13096 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 13097 | { (case "(($ac_try" in |
| 13098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13099 | *) ac_try_echo=$ac_try;; |
| 13100 | esac |
| 13101 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13102 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13103 | ac_status=$? |
| 13104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13105 | (exit $ac_status); }; } && |
| 13106 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13107 | { (case "(($ac_try" in |
| 13108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13109 | *) ac_try_echo=$ac_try;; |
| 13110 | esac |
| 13111 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13112 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13113 | ac_status=$? |
| 13114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13115 | (exit $ac_status); }; }; then |
| 13116 | ac_cv_lib_dl_dlopen=yes |
| 13117 | else |
| 13118 | echo "$as_me: failed program was:" >&5 |
| 13119 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13120 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13121 | ac_cv_lib_dl_dlopen=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13122 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13123 | |
| 13124 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13125 | conftest$ac_exeext conftest.$ac_ext |
| 13126 | LIBS=$ac_check_lib_save_LIBS |
| 13127 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13128 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 13129 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13130 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 13131 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 13132 | else |
| 13133 | |
| 13134 | lt_cv_dlopen="dyld" |
| 13135 | lt_cv_dlopen_libs= |
| 13136 | lt_cv_dlopen_self=yes |
| 13137 | |
| 13138 | fi |
| 13139 | |
| 13140 | ;; |
| 13141 | |
| 13142 | *) |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13143 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 13144 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13145 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 13146 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13147 | else |
| 13148 | cat >conftest.$ac_ext <<_ACEOF |
| 13149 | /* confdefs.h. */ |
| 13150 | _ACEOF |
| 13151 | cat confdefs.h >>conftest.$ac_ext |
| 13152 | cat >>conftest.$ac_ext <<_ACEOF |
| 13153 | /* end confdefs.h. */ |
| 13154 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 13155 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 13156 | #define shl_load innocuous_shl_load |
| 13157 | |
| 13158 | /* System header to define __stub macros and hopefully few prototypes, |
| 13159 | which can conflict with char shl_load (); below. |
| 13160 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13161 | <limits.h> exists even on freestanding compilers. */ |
| 13162 | |
| 13163 | #ifdef __STDC__ |
| 13164 | # include <limits.h> |
| 13165 | #else |
| 13166 | # include <assert.h> |
| 13167 | #endif |
| 13168 | |
| 13169 | #undef shl_load |
| 13170 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13171 | /* Override any GCC internal prototype to avoid an error. |
| 13172 | Use char because int might match the return type of a GCC |
| 13173 | builtin and then its argument prototype would still apply. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13174 | #ifdef __cplusplus |
| 13175 | extern "C" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13176 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13177 | char shl_load (); |
| 13178 | /* The GNU C library defines this for functions which it implements |
| 13179 | to always fail with ENOSYS. Some functions are actually named |
| 13180 | something starting with __ and the normal name is an alias. */ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13181 | #if defined __stub_shl_load || defined __stub___shl_load |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13182 | choke me |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13183 | #endif |
| 13184 | |
| 13185 | int |
| 13186 | main () |
| 13187 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13188 | return shl_load (); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13189 | ; |
| 13190 | return 0; |
| 13191 | } |
| 13192 | _ACEOF |
| 13193 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13194 | if { (ac_try="$ac_link" |
| 13195 | case "(($ac_try" in |
| 13196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13197 | *) ac_try_echo=$ac_try;; |
| 13198 | esac |
| 13199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13200 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13201 | ac_status=$? |
| 13202 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13203 | rm -f conftest.er1 |
| 13204 | cat conftest.err >&5 |
| 13205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13206 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13207 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 13208 | { (case "(($ac_try" in |
| 13209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13210 | *) ac_try_echo=$ac_try;; |
| 13211 | esac |
| 13212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13213 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13214 | ac_status=$? |
| 13215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13216 | (exit $ac_status); }; } && |
| 13217 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13218 | { (case "(($ac_try" in |
| 13219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13220 | *) ac_try_echo=$ac_try;; |
| 13221 | esac |
| 13222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13223 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13224 | ac_status=$? |
| 13225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13226 | (exit $ac_status); }; }; then |
| 13227 | ac_cv_func_shl_load=yes |
| 13228 | else |
| 13229 | echo "$as_me: failed program was:" >&5 |
| 13230 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13231 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13232 | ac_cv_func_shl_load=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13233 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13234 | |
| 13235 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13236 | conftest$ac_exeext conftest.$ac_ext |
| 13237 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13238 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 13239 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13240 | if test $ac_cv_func_shl_load = yes; then |
| 13241 | lt_cv_dlopen="shl_load" |
| 13242 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13243 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 13244 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13245 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 13246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13247 | else |
| 13248 | ac_check_lib_save_LIBS=$LIBS |
| 13249 | LIBS="-ldld $LIBS" |
| 13250 | cat >conftest.$ac_ext <<_ACEOF |
| 13251 | /* confdefs.h. */ |
| 13252 | _ACEOF |
| 13253 | cat confdefs.h >>conftest.$ac_ext |
| 13254 | cat >>conftest.$ac_ext <<_ACEOF |
| 13255 | /* end confdefs.h. */ |
| 13256 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13257 | /* Override any GCC internal prototype to avoid an error. |
| 13258 | Use char because int might match the return type of a GCC |
| 13259 | builtin and then its argument prototype would still apply. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13260 | #ifdef __cplusplus |
| 13261 | extern "C" |
| 13262 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13263 | char shl_load (); |
| 13264 | int |
| 13265 | main () |
| 13266 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13267 | return shl_load (); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13268 | ; |
| 13269 | return 0; |
| 13270 | } |
| 13271 | _ACEOF |
| 13272 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13273 | if { (ac_try="$ac_link" |
| 13274 | case "(($ac_try" in |
| 13275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13276 | *) ac_try_echo=$ac_try;; |
| 13277 | esac |
| 13278 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13279 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13280 | ac_status=$? |
| 13281 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13282 | rm -f conftest.er1 |
| 13283 | cat conftest.err >&5 |
| 13284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13285 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13286 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 13287 | { (case "(($ac_try" in |
| 13288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13289 | *) ac_try_echo=$ac_try;; |
| 13290 | esac |
| 13291 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13292 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13293 | ac_status=$? |
| 13294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13295 | (exit $ac_status); }; } && |
| 13296 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13297 | { (case "(($ac_try" in |
| 13298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13299 | *) ac_try_echo=$ac_try;; |
| 13300 | esac |
| 13301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13302 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13303 | ac_status=$? |
| 13304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13305 | (exit $ac_status); }; }; then |
| 13306 | ac_cv_lib_dld_shl_load=yes |
| 13307 | else |
| 13308 | echo "$as_me: failed program was:" >&5 |
| 13309 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13310 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13311 | ac_cv_lib_dld_shl_load=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13312 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13313 | |
| 13314 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13315 | conftest$ac_exeext conftest.$ac_ext |
| 13316 | LIBS=$ac_check_lib_save_LIBS |
| 13317 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13318 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 13319 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13320 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 13321 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 13322 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13323 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 13324 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13325 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 13326 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13327 | else |
| 13328 | cat >conftest.$ac_ext <<_ACEOF |
| 13329 | /* confdefs.h. */ |
| 13330 | _ACEOF |
| 13331 | cat confdefs.h >>conftest.$ac_ext |
| 13332 | cat >>conftest.$ac_ext <<_ACEOF |
| 13333 | /* end confdefs.h. */ |
| 13334 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 13335 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 13336 | #define dlopen innocuous_dlopen |
| 13337 | |
| 13338 | /* System header to define __stub macros and hopefully few prototypes, |
| 13339 | which can conflict with char dlopen (); below. |
| 13340 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13341 | <limits.h> exists even on freestanding compilers. */ |
| 13342 | |
| 13343 | #ifdef __STDC__ |
| 13344 | # include <limits.h> |
| 13345 | #else |
| 13346 | # include <assert.h> |
| 13347 | #endif |
| 13348 | |
| 13349 | #undef dlopen |
| 13350 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13351 | /* Override any GCC internal prototype to avoid an error. |
| 13352 | Use char because int might match the return type of a GCC |
| 13353 | builtin and then its argument prototype would still apply. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13354 | #ifdef __cplusplus |
| 13355 | extern "C" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13356 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13357 | char dlopen (); |
| 13358 | /* The GNU C library defines this for functions which it implements |
| 13359 | to always fail with ENOSYS. Some functions are actually named |
| 13360 | something starting with __ and the normal name is an alias. */ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13361 | #if defined __stub_dlopen || defined __stub___dlopen |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13362 | choke me |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13363 | #endif |
| 13364 | |
| 13365 | int |
| 13366 | main () |
| 13367 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13368 | return dlopen (); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13369 | ; |
| 13370 | return 0; |
| 13371 | } |
| 13372 | _ACEOF |
| 13373 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13374 | if { (ac_try="$ac_link" |
| 13375 | case "(($ac_try" in |
| 13376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13377 | *) ac_try_echo=$ac_try;; |
| 13378 | esac |
| 13379 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13380 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13381 | ac_status=$? |
| 13382 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13383 | rm -f conftest.er1 |
| 13384 | cat conftest.err >&5 |
| 13385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13386 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13387 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 13388 | { (case "(($ac_try" in |
| 13389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13390 | *) ac_try_echo=$ac_try;; |
| 13391 | esac |
| 13392 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13393 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13394 | ac_status=$? |
| 13395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13396 | (exit $ac_status); }; } && |
| 13397 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13398 | { (case "(($ac_try" in |
| 13399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13400 | *) ac_try_echo=$ac_try;; |
| 13401 | esac |
| 13402 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13403 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13404 | ac_status=$? |
| 13405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13406 | (exit $ac_status); }; }; then |
| 13407 | ac_cv_func_dlopen=yes |
| 13408 | else |
| 13409 | echo "$as_me: failed program was:" >&5 |
| 13410 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13411 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13412 | ac_cv_func_dlopen=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13413 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13414 | |
| 13415 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13416 | conftest$ac_exeext conftest.$ac_ext |
| 13417 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13418 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 13419 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13420 | if test $ac_cv_func_dlopen = yes; then |
| 13421 | lt_cv_dlopen="dlopen" |
| 13422 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13423 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 13424 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13425 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 13426 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13427 | else |
| 13428 | ac_check_lib_save_LIBS=$LIBS |
| 13429 | LIBS="-ldl $LIBS" |
| 13430 | cat >conftest.$ac_ext <<_ACEOF |
| 13431 | /* confdefs.h. */ |
| 13432 | _ACEOF |
| 13433 | cat confdefs.h >>conftest.$ac_ext |
| 13434 | cat >>conftest.$ac_ext <<_ACEOF |
| 13435 | /* end confdefs.h. */ |
| 13436 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13437 | /* Override any GCC internal prototype to avoid an error. |
| 13438 | Use char because int might match the return type of a GCC |
| 13439 | builtin and then its argument prototype would still apply. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13440 | #ifdef __cplusplus |
| 13441 | extern "C" |
| 13442 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13443 | char dlopen (); |
| 13444 | int |
| 13445 | main () |
| 13446 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13447 | return dlopen (); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13448 | ; |
| 13449 | return 0; |
| 13450 | } |
| 13451 | _ACEOF |
| 13452 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13453 | if { (ac_try="$ac_link" |
| 13454 | case "(($ac_try" in |
| 13455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13456 | *) ac_try_echo=$ac_try;; |
| 13457 | esac |
| 13458 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13459 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13460 | ac_status=$? |
| 13461 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13462 | rm -f conftest.er1 |
| 13463 | cat conftest.err >&5 |
| 13464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13465 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13466 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 13467 | { (case "(($ac_try" in |
| 13468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13469 | *) ac_try_echo=$ac_try;; |
| 13470 | esac |
| 13471 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13472 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13473 | ac_status=$? |
| 13474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13475 | (exit $ac_status); }; } && |
| 13476 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13477 | { (case "(($ac_try" in |
| 13478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13479 | *) ac_try_echo=$ac_try;; |
| 13480 | esac |
| 13481 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13482 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13483 | ac_status=$? |
| 13484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13485 | (exit $ac_status); }; }; then |
| 13486 | ac_cv_lib_dl_dlopen=yes |
| 13487 | else |
| 13488 | echo "$as_me: failed program was:" >&5 |
| 13489 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13490 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13491 | ac_cv_lib_dl_dlopen=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13492 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13493 | |
| 13494 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13495 | conftest$ac_exeext conftest.$ac_ext |
| 13496 | LIBS=$ac_check_lib_save_LIBS |
| 13497 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13498 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 13499 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13500 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 13501 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 13502 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13503 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 13504 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13505 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 13506 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13507 | else |
| 13508 | ac_check_lib_save_LIBS=$LIBS |
| 13509 | LIBS="-lsvld $LIBS" |
| 13510 | cat >conftest.$ac_ext <<_ACEOF |
| 13511 | /* confdefs.h. */ |
| 13512 | _ACEOF |
| 13513 | cat confdefs.h >>conftest.$ac_ext |
| 13514 | cat >>conftest.$ac_ext <<_ACEOF |
| 13515 | /* end confdefs.h. */ |
| 13516 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13517 | /* Override any GCC internal prototype to avoid an error. |
| 13518 | Use char because int might match the return type of a GCC |
| 13519 | builtin and then its argument prototype would still apply. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13520 | #ifdef __cplusplus |
| 13521 | extern "C" |
| 13522 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13523 | char dlopen (); |
| 13524 | int |
| 13525 | main () |
| 13526 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13527 | return dlopen (); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13528 | ; |
| 13529 | return 0; |
| 13530 | } |
| 13531 | _ACEOF |
| 13532 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13533 | if { (ac_try="$ac_link" |
| 13534 | case "(($ac_try" in |
| 13535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13536 | *) ac_try_echo=$ac_try;; |
| 13537 | esac |
| 13538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13539 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13540 | ac_status=$? |
| 13541 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13542 | rm -f conftest.er1 |
| 13543 | cat conftest.err >&5 |
| 13544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13545 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13546 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 13547 | { (case "(($ac_try" in |
| 13548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13549 | *) ac_try_echo=$ac_try;; |
| 13550 | esac |
| 13551 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13552 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13553 | ac_status=$? |
| 13554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13555 | (exit $ac_status); }; } && |
| 13556 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13557 | { (case "(($ac_try" in |
| 13558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13559 | *) ac_try_echo=$ac_try;; |
| 13560 | esac |
| 13561 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13562 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13563 | ac_status=$? |
| 13564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13565 | (exit $ac_status); }; }; then |
| 13566 | ac_cv_lib_svld_dlopen=yes |
| 13567 | else |
| 13568 | echo "$as_me: failed program was:" >&5 |
| 13569 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13570 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13571 | ac_cv_lib_svld_dlopen=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13572 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13573 | |
| 13574 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13575 | conftest$ac_exeext conftest.$ac_ext |
| 13576 | LIBS=$ac_check_lib_save_LIBS |
| 13577 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13578 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 13579 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13580 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 13581 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 13582 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13583 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 13584 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13585 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 13586 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13587 | else |
| 13588 | ac_check_lib_save_LIBS=$LIBS |
| 13589 | LIBS="-ldld $LIBS" |
| 13590 | cat >conftest.$ac_ext <<_ACEOF |
| 13591 | /* confdefs.h. */ |
| 13592 | _ACEOF |
| 13593 | cat confdefs.h >>conftest.$ac_ext |
| 13594 | cat >>conftest.$ac_ext <<_ACEOF |
| 13595 | /* end confdefs.h. */ |
| 13596 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13597 | /* Override any GCC internal prototype to avoid an error. |
| 13598 | Use char because int might match the return type of a GCC |
| 13599 | builtin and then its argument prototype would still apply. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13600 | #ifdef __cplusplus |
| 13601 | extern "C" |
| 13602 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13603 | char dld_link (); |
| 13604 | int |
| 13605 | main () |
| 13606 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13607 | return dld_link (); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13608 | ; |
| 13609 | return 0; |
| 13610 | } |
| 13611 | _ACEOF |
| 13612 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13613 | if { (ac_try="$ac_link" |
| 13614 | case "(($ac_try" in |
| 13615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13616 | *) ac_try_echo=$ac_try;; |
| 13617 | esac |
| 13618 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13619 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13620 | ac_status=$? |
| 13621 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13622 | rm -f conftest.er1 |
| 13623 | cat conftest.err >&5 |
| 13624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13625 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13626 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 13627 | { (case "(($ac_try" in |
| 13628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13629 | *) ac_try_echo=$ac_try;; |
| 13630 | esac |
| 13631 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13632 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13633 | ac_status=$? |
| 13634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13635 | (exit $ac_status); }; } && |
| 13636 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13637 | { (case "(($ac_try" in |
| 13638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13639 | *) ac_try_echo=$ac_try;; |
| 13640 | esac |
| 13641 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13642 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13643 | ac_status=$? |
| 13644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13645 | (exit $ac_status); }; }; then |
| 13646 | ac_cv_lib_dld_dld_link=yes |
| 13647 | else |
| 13648 | echo "$as_me: failed program was:" >&5 |
| 13649 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13650 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13651 | ac_cv_lib_dld_dld_link=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13652 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13653 | |
| 13654 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13655 | conftest$ac_exeext conftest.$ac_ext |
| 13656 | LIBS=$ac_check_lib_save_LIBS |
| 13657 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13658 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 13659 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13660 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 13661 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 13662 | fi |
| 13663 | |
| 13664 | |
| 13665 | fi |
| 13666 | |
| 13667 | |
| 13668 | fi |
| 13669 | |
| 13670 | |
| 13671 | fi |
| 13672 | |
| 13673 | |
| 13674 | fi |
| 13675 | |
| 13676 | |
| 13677 | fi |
| 13678 | |
| 13679 | ;; |
| 13680 | esac |
| 13681 | |
| 13682 | if test "x$lt_cv_dlopen" != xno; then |
| 13683 | enable_dlopen=yes |
| 13684 | else |
| 13685 | enable_dlopen=no |
| 13686 | fi |
| 13687 | |
| 13688 | case $lt_cv_dlopen in |
| 13689 | dlopen) |
| 13690 | save_CPPFLAGS="$CPPFLAGS" |
| 13691 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 13692 | |
| 13693 | save_LDFLAGS="$LDFLAGS" |
| 13694 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 13695 | |
| 13696 | save_LIBS="$LIBS" |
| 13697 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 13698 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13699 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 13700 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13701 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 13702 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13703 | else |
| 13704 | if test "$cross_compiling" = yes; then : |
| 13705 | lt_cv_dlopen_self=cross |
| 13706 | else |
| 13707 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 13708 | lt_status=$lt_dlunknown |
| 13709 | cat > conftest.$ac_ext <<EOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13710 | #line 13710 "configure" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13711 | #include "confdefs.h" |
| 13712 | |
| 13713 | #if HAVE_DLFCN_H |
| 13714 | #include <dlfcn.h> |
| 13715 | #endif |
| 13716 | |
| 13717 | #include <stdio.h> |
| 13718 | |
| 13719 | #ifdef RTLD_GLOBAL |
| 13720 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 13721 | #else |
| 13722 | # ifdef DL_GLOBAL |
| 13723 | # define LT_DLGLOBAL DL_GLOBAL |
| 13724 | # else |
| 13725 | # define LT_DLGLOBAL 0 |
| 13726 | # endif |
| 13727 | #endif |
| 13728 | |
| 13729 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 13730 | find out it does not work in some platform. */ |
| 13731 | #ifndef LT_DLLAZY_OR_NOW |
| 13732 | # ifdef RTLD_LAZY |
| 13733 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 13734 | # else |
| 13735 | # ifdef DL_LAZY |
| 13736 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 13737 | # else |
| 13738 | # ifdef RTLD_NOW |
| 13739 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 13740 | # else |
| 13741 | # ifdef DL_NOW |
| 13742 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 13743 | # else |
| 13744 | # define LT_DLLAZY_OR_NOW 0 |
| 13745 | # endif |
| 13746 | # endif |
| 13747 | # endif |
| 13748 | # endif |
| 13749 | #endif |
| 13750 | |
| 13751 | #ifdef __cplusplus |
| 13752 | extern "C" void exit (int); |
| 13753 | #endif |
| 13754 | |
| 13755 | void fnord() { int i=42;} |
| 13756 | int main () |
| 13757 | { |
| 13758 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 13759 | int status = $lt_dlunknown; |
| 13760 | |
| 13761 | if (self) |
| 13762 | { |
| 13763 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 13764 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 13765 | /* dlclose (self); */ |
| 13766 | } |
| 13767 | |
| 13768 | exit (status); |
| 13769 | } |
| 13770 | EOF |
| 13771 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13772 | (eval $ac_link) 2>&5 |
| 13773 | ac_status=$? |
| 13774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13775 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 13776 | (./conftest; exit; ) 2>/dev/null |
| 13777 | lt_status=$? |
| 13778 | case x$lt_status in |
| 13779 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 13780 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 13781 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 13782 | esac |
| 13783 | else : |
| 13784 | # compilation failed |
| 13785 | lt_cv_dlopen_self=no |
| 13786 | fi |
| 13787 | fi |
| 13788 | rm -fr conftest* |
| 13789 | |
| 13790 | |
| 13791 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13792 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 13793 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13794 | |
| 13795 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 13796 | LDFLAGS="$LDFLAGS $link_static_flag" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13797 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 13798 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13799 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 13800 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13801 | else |
| 13802 | if test "$cross_compiling" = yes; then : |
| 13803 | lt_cv_dlopen_self_static=cross |
| 13804 | else |
| 13805 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 13806 | lt_status=$lt_dlunknown |
| 13807 | cat > conftest.$ac_ext <<EOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13808 | #line 13808 "configure" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13809 | #include "confdefs.h" |
| 13810 | |
| 13811 | #if HAVE_DLFCN_H |
| 13812 | #include <dlfcn.h> |
| 13813 | #endif |
| 13814 | |
| 13815 | #include <stdio.h> |
| 13816 | |
| 13817 | #ifdef RTLD_GLOBAL |
| 13818 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 13819 | #else |
| 13820 | # ifdef DL_GLOBAL |
| 13821 | # define LT_DLGLOBAL DL_GLOBAL |
| 13822 | # else |
| 13823 | # define LT_DLGLOBAL 0 |
| 13824 | # endif |
| 13825 | #endif |
| 13826 | |
| 13827 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 13828 | find out it does not work in some platform. */ |
| 13829 | #ifndef LT_DLLAZY_OR_NOW |
| 13830 | # ifdef RTLD_LAZY |
| 13831 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 13832 | # else |
| 13833 | # ifdef DL_LAZY |
| 13834 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 13835 | # else |
| 13836 | # ifdef RTLD_NOW |
| 13837 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 13838 | # else |
| 13839 | # ifdef DL_NOW |
| 13840 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 13841 | # else |
| 13842 | # define LT_DLLAZY_OR_NOW 0 |
| 13843 | # endif |
| 13844 | # endif |
| 13845 | # endif |
| 13846 | # endif |
| 13847 | #endif |
| 13848 | |
| 13849 | #ifdef __cplusplus |
| 13850 | extern "C" void exit (int); |
| 13851 | #endif |
| 13852 | |
| 13853 | void fnord() { int i=42;} |
| 13854 | int main () |
| 13855 | { |
| 13856 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 13857 | int status = $lt_dlunknown; |
| 13858 | |
| 13859 | if (self) |
| 13860 | { |
| 13861 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 13862 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 13863 | /* dlclose (self); */ |
| 13864 | } |
| 13865 | |
| 13866 | exit (status); |
| 13867 | } |
| 13868 | EOF |
| 13869 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13870 | (eval $ac_link) 2>&5 |
| 13871 | ac_status=$? |
| 13872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13873 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 13874 | (./conftest; exit; ) 2>/dev/null |
| 13875 | lt_status=$? |
| 13876 | case x$lt_status in |
| 13877 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 13878 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 13879 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 13880 | esac |
| 13881 | else : |
| 13882 | # compilation failed |
| 13883 | lt_cv_dlopen_self_static=no |
| 13884 | fi |
| 13885 | fi |
| 13886 | rm -fr conftest* |
| 13887 | |
| 13888 | |
| 13889 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13890 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 13891 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13892 | fi |
| 13893 | |
| 13894 | CPPFLAGS="$save_CPPFLAGS" |
| 13895 | LDFLAGS="$save_LDFLAGS" |
| 13896 | LIBS="$save_LIBS" |
| 13897 | ;; |
| 13898 | esac |
| 13899 | |
| 13900 | case $lt_cv_dlopen_self in |
| 13901 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 13902 | *) enable_dlopen_self=unknown ;; |
| 13903 | esac |
| 13904 | |
| 13905 | case $lt_cv_dlopen_self_static in |
| 13906 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 13907 | *) enable_dlopen_self_static=unknown ;; |
| 13908 | esac |
| 13909 | fi |
| 13910 | |
| 13911 | |
| 13912 | # The else clause should only fire when bootstrapping the |
| 13913 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 13914 | # with your package, and you will get complaints that there are |
| 13915 | # no rules to generate ltmain.sh. |
| 13916 | if test -f "$ltmain"; then |
| 13917 | # See if we are running on zsh, and set the options which allow our commands through |
| 13918 | # without removal of \ escapes. |
| 13919 | if test -n "${ZSH_VERSION+set}" ; then |
| 13920 | setopt NO_GLOB_SUBST |
| 13921 | fi |
| 13922 | # Now quote all the things that may contain metacharacters while being |
| 13923 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 13924 | # variables and quote the copies for generation of the libtool script. |
| 13925 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 13926 | SED SHELL STRIP \ |
| 13927 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 13928 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 13929 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 13930 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 13931 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 13932 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 13933 | old_postinstall_cmds old_postuninstall_cmds \ |
| 13934 | compiler_CXX \ |
| 13935 | CC_CXX \ |
| 13936 | LD_CXX \ |
| 13937 | lt_prog_compiler_wl_CXX \ |
| 13938 | lt_prog_compiler_pic_CXX \ |
| 13939 | lt_prog_compiler_static_CXX \ |
| 13940 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 13941 | export_dynamic_flag_spec_CXX \ |
| 13942 | thread_safe_flag_spec_CXX \ |
| 13943 | whole_archive_flag_spec_CXX \ |
| 13944 | enable_shared_with_static_runtimes_CXX \ |
| 13945 | old_archive_cmds_CXX \ |
| 13946 | old_archive_from_new_cmds_CXX \ |
| 13947 | predep_objects_CXX \ |
| 13948 | postdep_objects_CXX \ |
| 13949 | predeps_CXX \ |
| 13950 | postdeps_CXX \ |
| 13951 | compiler_lib_search_path_CXX \ |
| 13952 | archive_cmds_CXX \ |
| 13953 | archive_expsym_cmds_CXX \ |
| 13954 | postinstall_cmds_CXX \ |
| 13955 | postuninstall_cmds_CXX \ |
| 13956 | old_archive_from_expsyms_cmds_CXX \ |
| 13957 | allow_undefined_flag_CXX \ |
| 13958 | no_undefined_flag_CXX \ |
| 13959 | export_symbols_cmds_CXX \ |
| 13960 | hardcode_libdir_flag_spec_CXX \ |
| 13961 | hardcode_libdir_flag_spec_ld_CXX \ |
| 13962 | hardcode_libdir_separator_CXX \ |
| 13963 | hardcode_automatic_CXX \ |
| 13964 | module_cmds_CXX \ |
| 13965 | module_expsym_cmds_CXX \ |
| 13966 | lt_cv_prog_compiler_c_o_CXX \ |
| 13967 | exclude_expsyms_CXX \ |
| 13968 | include_expsyms_CXX; do |
| 13969 | |
| 13970 | case $var in |
| 13971 | old_archive_cmds_CXX | \ |
| 13972 | old_archive_from_new_cmds_CXX | \ |
| 13973 | archive_cmds_CXX | \ |
| 13974 | archive_expsym_cmds_CXX | \ |
| 13975 | module_cmds_CXX | \ |
| 13976 | module_expsym_cmds_CXX | \ |
| 13977 | old_archive_from_expsyms_cmds_CXX | \ |
| 13978 | export_symbols_cmds_CXX | \ |
| 13979 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 13980 | postinstall_cmds | postuninstall_cmds | \ |
| 13981 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 13982 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 13983 | # Double-quote double-evaled strings. |
| 13984 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 13985 | ;; |
| 13986 | *) |
| 13987 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 13988 | ;; |
| 13989 | esac |
| 13990 | done |
| 13991 | |
| 13992 | case $lt_echo in |
| 13993 | *'\$0 --fallback-echo"') |
| 13994 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 13995 | ;; |
| 13996 | esac |
| 13997 | |
| 13998 | cfgfile="$ofile" |
| 13999 | |
| 14000 | cat <<__EOF__ >> "$cfgfile" |
| 14001 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 14002 | |
| 14003 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 14004 | |
| 14005 | # Shell to use when invoking shell scripts. |
| 14006 | SHELL=$lt_SHELL |
| 14007 | |
| 14008 | # Whether or not to build shared libraries. |
| 14009 | build_libtool_libs=$enable_shared |
| 14010 | |
| 14011 | # Whether or not to build static libraries. |
| 14012 | build_old_libs=$enable_static |
| 14013 | |
| 14014 | # Whether or not to add -lc for building shared libraries. |
| 14015 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 14016 | |
| 14017 | # Whether or not to disallow shared libs when runtime libs are static |
| 14018 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 14019 | |
| 14020 | # Whether or not to optimize for fast installation. |
| 14021 | fast_install=$enable_fast_install |
| 14022 | |
| 14023 | # The host system. |
| 14024 | host_alias=$host_alias |
| 14025 | host=$host |
| 14026 | |
| 14027 | # An echo program that does not interpret backslashes. |
| 14028 | echo=$lt_echo |
| 14029 | |
| 14030 | # The archiver. |
| 14031 | AR=$lt_AR |
| 14032 | AR_FLAGS=$lt_AR_FLAGS |
| 14033 | |
| 14034 | # A C compiler. |
| 14035 | LTCC=$lt_LTCC |
| 14036 | |
| 14037 | # A language-specific compiler. |
| 14038 | CC=$lt_compiler_CXX |
| 14039 | |
| 14040 | # Is the compiler the GNU C compiler? |
| 14041 | with_gcc=$GCC_CXX |
| 14042 | |
| 14043 | # An ERE matcher. |
| 14044 | EGREP=$lt_EGREP |
| 14045 | |
| 14046 | # The linker used to build libraries. |
| 14047 | LD=$lt_LD_CXX |
| 14048 | |
| 14049 | # Whether we need hard or soft links. |
| 14050 | LN_S=$lt_LN_S |
| 14051 | |
| 14052 | # A BSD-compatible nm program. |
| 14053 | NM=$lt_NM |
| 14054 | |
| 14055 | # A symbol stripping program |
| 14056 | STRIP=$lt_STRIP |
| 14057 | |
| 14058 | # Used to examine libraries when file_magic_cmd begins "file" |
| 14059 | MAGIC_CMD=$MAGIC_CMD |
| 14060 | |
| 14061 | # Used on cygwin: DLL creation program. |
| 14062 | DLLTOOL="$DLLTOOL" |
| 14063 | |
| 14064 | # Used on cygwin: object dumper. |
| 14065 | OBJDUMP="$OBJDUMP" |
| 14066 | |
| 14067 | # Used on cygwin: assembler. |
| 14068 | AS="$AS" |
| 14069 | |
| 14070 | # The name of the directory that contains temporary libtool files. |
| 14071 | objdir=$objdir |
| 14072 | |
| 14073 | # How to create reloadable object files. |
| 14074 | reload_flag=$lt_reload_flag |
| 14075 | reload_cmds=$lt_reload_cmds |
| 14076 | |
| 14077 | # How to pass a linker flag through the compiler. |
| 14078 | wl=$lt_lt_prog_compiler_wl_CXX |
| 14079 | |
| 14080 | # Object file suffix (normally "o"). |
| 14081 | objext="$ac_objext" |
| 14082 | |
| 14083 | # Old archive suffix (normally "a"). |
| 14084 | libext="$libext" |
| 14085 | |
| 14086 | # Shared library suffix (normally ".so"). |
| 14087 | shrext_cmds='$shrext_cmds' |
| 14088 | |
| 14089 | # Executable file suffix (normally ""). |
| 14090 | exeext="$exeext" |
| 14091 | |
| 14092 | # Additional compiler flags for building library objects. |
| 14093 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 14094 | pic_mode=$pic_mode |
| 14095 | |
| 14096 | # What is the maximum length of a command? |
| 14097 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 14098 | |
| 14099 | # Does compiler simultaneously support -c and -o options? |
| 14100 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 14101 | |
| 14102 | # Must we lock files when doing compilation ? |
| 14103 | need_locks=$lt_need_locks |
| 14104 | |
| 14105 | # Do we need the lib prefix for modules? |
| 14106 | need_lib_prefix=$need_lib_prefix |
| 14107 | |
| 14108 | # Do we need a version for libraries? |
| 14109 | need_version=$need_version |
| 14110 | |
| 14111 | # Whether dlopen is supported. |
| 14112 | dlopen_support=$enable_dlopen |
| 14113 | |
| 14114 | # Whether dlopen of programs is supported. |
| 14115 | dlopen_self=$enable_dlopen_self |
| 14116 | |
| 14117 | # Whether dlopen of statically linked programs is supported. |
| 14118 | dlopen_self_static=$enable_dlopen_self_static |
| 14119 | |
| 14120 | # Compiler flag to prevent dynamic linking. |
| 14121 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 14122 | |
| 14123 | # Compiler flag to turn off builtin functions. |
| 14124 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 14125 | |
| 14126 | # Compiler flag to allow reflexive dlopens. |
| 14127 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 14128 | |
| 14129 | # Compiler flag to generate shared objects directly from archives. |
| 14130 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 14131 | |
| 14132 | # Compiler flag to generate thread-safe objects. |
| 14133 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
| 14134 | |
| 14135 | # Library versioning type. |
| 14136 | version_type=$version_type |
| 14137 | |
| 14138 | # Format of library name prefix. |
| 14139 | libname_spec=$lt_libname_spec |
| 14140 | |
| 14141 | # List of archive names. First name is the real one, the rest are links. |
| 14142 | # The last name is the one that the linker finds with -lNAME. |
| 14143 | library_names_spec=$lt_library_names_spec |
| 14144 | |
| 14145 | # The coded name of the library, if different from the real name. |
| 14146 | soname_spec=$lt_soname_spec |
| 14147 | |
| 14148 | # Commands used to build and install an old-style archive. |
| 14149 | RANLIB=$lt_RANLIB |
| 14150 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 14151 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 14152 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 14153 | |
| 14154 | # Create an old-style archive from a shared archive. |
| 14155 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 14156 | |
| 14157 | # Create a temporary old-style archive to link instead of a shared archive. |
| 14158 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 14159 | |
| 14160 | # Commands used to build and install a shared archive. |
| 14161 | archive_cmds=$lt_archive_cmds_CXX |
| 14162 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 14163 | postinstall_cmds=$lt_postinstall_cmds |
| 14164 | postuninstall_cmds=$lt_postuninstall_cmds |
| 14165 | |
| 14166 | # Commands used to build a loadable module (assumed same as above if empty) |
| 14167 | module_cmds=$lt_module_cmds_CXX |
| 14168 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 14169 | |
| 14170 | # Commands to strip libraries. |
| 14171 | old_striplib=$lt_old_striplib |
| 14172 | striplib=$lt_striplib |
| 14173 | |
| 14174 | # Dependencies to place before the objects being linked to create a |
| 14175 | # shared library. |
| 14176 | predep_objects=$lt_predep_objects_CXX |
| 14177 | |
| 14178 | # Dependencies to place after the objects being linked to create a |
| 14179 | # shared library. |
| 14180 | postdep_objects=$lt_postdep_objects_CXX |
| 14181 | |
| 14182 | # Dependencies to place before the objects being linked to create a |
| 14183 | # shared library. |
| 14184 | predeps=$lt_predeps_CXX |
| 14185 | |
| 14186 | # Dependencies to place after the objects being linked to create a |
| 14187 | # shared library. |
| 14188 | postdeps=$lt_postdeps_CXX |
| 14189 | |
| 14190 | # The library search path used internally by the compiler when linking |
| 14191 | # a shared library. |
| 14192 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 14193 | |
| 14194 | # Method to check whether dependent libraries are shared objects. |
| 14195 | deplibs_check_method=$lt_deplibs_check_method |
| 14196 | |
| 14197 | # Command to use when deplibs_check_method == file_magic. |
| 14198 | file_magic_cmd=$lt_file_magic_cmd |
| 14199 | |
| 14200 | # Flag that allows shared libraries with undefined symbols to be built. |
| 14201 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 14202 | |
| 14203 | # Flag that forces no undefined symbols. |
| 14204 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 14205 | |
| 14206 | # Commands used to finish a libtool library installation in a directory. |
| 14207 | finish_cmds=$lt_finish_cmds |
| 14208 | |
| 14209 | # Same as above, but a single script fragment to be evaled but not shown. |
| 14210 | finish_eval=$lt_finish_eval |
| 14211 | |
| 14212 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 14213 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 14214 | |
| 14215 | # Transform the output of nm in a proper C declaration |
| 14216 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 14217 | |
| 14218 | # Transform the output of nm in a C name address pair |
| 14219 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 14220 | |
| 14221 | # This is the shared library runtime path variable. |
| 14222 | runpath_var=$runpath_var |
| 14223 | |
| 14224 | # This is the shared library path variable. |
| 14225 | shlibpath_var=$shlibpath_var |
| 14226 | |
| 14227 | # Is shlibpath searched before the hard-coded library search path? |
| 14228 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 14229 | |
| 14230 | # How to hardcode a shared library path into an executable. |
| 14231 | hardcode_action=$hardcode_action_CXX |
| 14232 | |
| 14233 | # Whether we should hardcode library paths into libraries. |
| 14234 | hardcode_into_libs=$hardcode_into_libs |
| 14235 | |
| 14236 | # Flag to hardcode \$libdir into a binary during linking. |
| 14237 | # This must work even if \$libdir does not exist. |
| 14238 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 14239 | |
| 14240 | # If ld is used when linking, flag to hardcode \$libdir into |
| 14241 | # a binary during linking. This must work even if \$libdir does |
| 14242 | # not exist. |
| 14243 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 14244 | |
| 14245 | # Whether we need a single -rpath flag with a separated argument. |
| 14246 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 14247 | |
| 14248 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 14249 | # resulting binary. |
| 14250 | hardcode_direct=$hardcode_direct_CXX |
| 14251 | |
| 14252 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 14253 | # resulting binary. |
| 14254 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 14255 | |
| 14256 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 14257 | # the resulting binary. |
| 14258 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 14259 | |
| 14260 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 14261 | # and all subsequent libraries and executables linked against it. |
| 14262 | hardcode_automatic=$hardcode_automatic_CXX |
| 14263 | |
| 14264 | # Variables whose values should be saved in libtool wrapper scripts and |
| 14265 | # restored at relink time. |
| 14266 | variables_saved_for_relink="$variables_saved_for_relink" |
| 14267 | |
| 14268 | # Whether libtool must link a program against all its dependency libraries. |
| 14269 | link_all_deplibs=$link_all_deplibs_CXX |
| 14270 | |
| 14271 | # Compile-time system search path for libraries |
| 14272 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 14273 | |
| 14274 | # Run-time system search path for libraries |
| 14275 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 14276 | |
| 14277 | # Fix the shell variable \$srcfile for the compiler. |
| 14278 | fix_srcfile_path="$fix_srcfile_path_CXX" |
| 14279 | |
| 14280 | # Set to yes if exported symbols are required. |
| 14281 | always_export_symbols=$always_export_symbols_CXX |
| 14282 | |
| 14283 | # The commands to list exported symbols. |
| 14284 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 14285 | |
| 14286 | # The commands to extract the exported symbol list from a shared archive. |
| 14287 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 14288 | |
| 14289 | # Symbols that should not be listed in the preloaded symbols. |
| 14290 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 14291 | |
| 14292 | # Symbols that must always be exported. |
| 14293 | include_expsyms=$lt_include_expsyms_CXX |
| 14294 | |
| 14295 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 14296 | |
| 14297 | __EOF__ |
| 14298 | |
| 14299 | |
| 14300 | else |
| 14301 | # If there is no Makefile yet, we rely on a make rule to execute |
| 14302 | # `config.status --recheck' to rerun these tests and create the |
| 14303 | # libtool script then. |
| 14304 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 14305 | if test -f "$ltmain_in"; then |
| 14306 | test -f Makefile && make "$ltmain" |
| 14307 | fi |
| 14308 | fi |
| 14309 | |
| 14310 | |
| 14311 | ac_ext=c |
| 14312 | ac_cpp='$CPP $CPPFLAGS' |
| 14313 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14314 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14315 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14316 | |
| 14317 | CC=$lt_save_CC |
| 14318 | LDCXX=$LD |
| 14319 | LD=$lt_save_LD |
| 14320 | GCC=$lt_save_GCC |
| 14321 | with_gnu_ldcxx=$with_gnu_ld |
| 14322 | with_gnu_ld=$lt_save_with_gnu_ld |
| 14323 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 14324 | lt_cv_path_LD=$lt_save_path_LD |
| 14325 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 14326 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 14327 | |
| 14328 | else |
| 14329 | tagname="" |
| 14330 | fi |
| 14331 | ;; |
| 14332 | |
| 14333 | F77) |
| 14334 | if test -n "$F77" && test "X$F77" != "Xno"; then |
| 14335 | |
| 14336 | ac_ext=f |
| 14337 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 14338 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14339 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 14340 | |
| 14341 | |
| 14342 | archive_cmds_need_lc_F77=no |
| 14343 | allow_undefined_flag_F77= |
| 14344 | always_export_symbols_F77=no |
| 14345 | archive_expsym_cmds_F77= |
| 14346 | export_dynamic_flag_spec_F77= |
| 14347 | hardcode_direct_F77=no |
| 14348 | hardcode_libdir_flag_spec_F77= |
| 14349 | hardcode_libdir_flag_spec_ld_F77= |
| 14350 | hardcode_libdir_separator_F77= |
| 14351 | hardcode_minus_L_F77=no |
| 14352 | hardcode_automatic_F77=no |
| 14353 | module_cmds_F77= |
| 14354 | module_expsym_cmds_F77= |
| 14355 | link_all_deplibs_F77=unknown |
| 14356 | old_archive_cmds_F77=$old_archive_cmds |
| 14357 | no_undefined_flag_F77= |
| 14358 | whole_archive_flag_spec_F77= |
| 14359 | enable_shared_with_static_runtimes_F77=no |
| 14360 | |
| 14361 | # Source file extension for f77 test sources. |
| 14362 | ac_ext=f |
| 14363 | |
| 14364 | # Object file extension for compiled f77 test sources. |
| 14365 | objext=o |
| 14366 | objext_F77=$objext |
| 14367 | |
| 14368 | # Code to be used in simple compile tests |
| 14369 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
| 14370 | |
| 14371 | # Code to be used in simple link tests |
| 14372 | lt_simple_link_test_code=" program t\n end\n" |
| 14373 | |
| 14374 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 14375 | |
| 14376 | # If no C compiler was specified, use CC. |
| 14377 | LTCC=${LTCC-"$CC"} |
| 14378 | |
| 14379 | # Allow CC to be a program name with arguments. |
| 14380 | compiler=$CC |
| 14381 | |
| 14382 | |
| 14383 | # Allow CC to be a program name with arguments. |
| 14384 | lt_save_CC="$CC" |
| 14385 | CC=${F77-"f77"} |
| 14386 | compiler=$CC |
| 14387 | compiler_F77=$CC |
| 14388 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
| 14389 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14390 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 14391 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
| 14392 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 14393 | echo "${ECHO_T}$can_build_shared" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14394 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14395 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 14396 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14397 | test "$can_build_shared" = "no" && enable_shared=no |
| 14398 | |
| 14399 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 14400 | # are all built from PIC. |
| 14401 | case "$host_os" in |
| 14402 | aix3*) |
| 14403 | test "$enable_shared" = yes && enable_static=no |
| 14404 | if test -n "$RANLIB"; then |
| 14405 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 14406 | postinstall_cmds='$RANLIB $lib' |
| 14407 | fi |
| 14408 | ;; |
| 14409 | aix4* | aix5*) |
| 14410 | test "$enable_shared" = yes && enable_static=no |
| 14411 | ;; |
| 14412 | esac |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14413 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 14414 | echo "${ECHO_T}$enable_shared" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14415 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14416 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 14417 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14418 | # Make sure either enable_shared or enable_static is yes. |
| 14419 | test "$enable_shared" = yes || enable_static=yes |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14420 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 14421 | echo "${ECHO_T}$enable_static" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14422 | |
| 14423 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 14424 | |
| 14425 | GCC_F77="$G77" |
| 14426 | LD_F77="$LD" |
| 14427 | |
| 14428 | lt_prog_compiler_wl_F77= |
| 14429 | lt_prog_compiler_pic_F77= |
| 14430 | lt_prog_compiler_static_F77= |
| 14431 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14432 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 14433 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14434 | |
| 14435 | if test "$GCC" = yes; then |
| 14436 | lt_prog_compiler_wl_F77='-Wl,' |
| 14437 | lt_prog_compiler_static_F77='-static' |
| 14438 | |
| 14439 | case $host_os in |
| 14440 | aix*) |
| 14441 | # All AIX code is PIC. |
| 14442 | if test "$host_cpu" = ia64; then |
| 14443 | # AIX 5 now supports IA64 processor |
| 14444 | lt_prog_compiler_static_F77='-Bstatic' |
| 14445 | fi |
| 14446 | ;; |
| 14447 | |
| 14448 | amigaos*) |
| 14449 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 14450 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 14451 | # like `-m68040'. |
| 14452 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
| 14453 | ;; |
| 14454 | |
| 14455 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 14456 | # PIC is the default for these OSes. |
| 14457 | ;; |
| 14458 | |
| 14459 | mingw* | pw32* | os2*) |
| 14460 | # This hack is so that the source file can tell whether it is being |
| 14461 | # built for inclusion in a dll (and should export symbols for example). |
| 14462 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 14463 | ;; |
| 14464 | |
| 14465 | darwin* | rhapsody*) |
| 14466 | # PIC is the default on this platform |
| 14467 | # Common symbols not allowed in MH_DYLIB files |
| 14468 | lt_prog_compiler_pic_F77='-fno-common' |
| 14469 | ;; |
| 14470 | |
| 14471 | msdosdjgpp*) |
| 14472 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 14473 | # on systems that don't support them. |
| 14474 | lt_prog_compiler_can_build_shared_F77=no |
| 14475 | enable_shared=no |
| 14476 | ;; |
| 14477 | |
| 14478 | sysv4*MP*) |
| 14479 | if test -d /usr/nec; then |
| 14480 | lt_prog_compiler_pic_F77=-Kconform_pic |
| 14481 | fi |
| 14482 | ;; |
| 14483 | |
| 14484 | hpux*) |
| 14485 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14486 | # not for PA HP-UX. |
| 14487 | case "$host_cpu" in |
| 14488 | hppa*64*|ia64*) |
| 14489 | # +Z the default |
| 14490 | ;; |
| 14491 | *) |
| 14492 | lt_prog_compiler_pic_F77='-fPIC' |
| 14493 | ;; |
| 14494 | esac |
| 14495 | ;; |
| 14496 | |
| 14497 | *) |
| 14498 | lt_prog_compiler_pic_F77='-fPIC' |
| 14499 | ;; |
| 14500 | esac |
| 14501 | else |
| 14502 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 14503 | case $host_os in |
| 14504 | aix*) |
| 14505 | lt_prog_compiler_wl_F77='-Wl,' |
| 14506 | if test "$host_cpu" = ia64; then |
| 14507 | # AIX 5 now supports IA64 processor |
| 14508 | lt_prog_compiler_static_F77='-Bstatic' |
| 14509 | else |
| 14510 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
| 14511 | fi |
| 14512 | ;; |
| 14513 | |
| 14514 | mingw* | pw32* | os2*) |
| 14515 | # This hack is so that the source file can tell whether it is being |
| 14516 | # built for inclusion in a dll (and should export symbols for example). |
| 14517 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 14518 | ;; |
| 14519 | |
| 14520 | hpux9* | hpux10* | hpux11*) |
| 14521 | lt_prog_compiler_wl_F77='-Wl,' |
| 14522 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14523 | # not for PA HP-UX. |
| 14524 | case "$host_cpu" in |
| 14525 | hppa*64*|ia64*) |
| 14526 | # +Z the default |
| 14527 | ;; |
| 14528 | *) |
| 14529 | lt_prog_compiler_pic_F77='+Z' |
| 14530 | ;; |
| 14531 | esac |
| 14532 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 14533 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
| 14534 | ;; |
| 14535 | |
| 14536 | irix5* | irix6* | nonstopux*) |
| 14537 | lt_prog_compiler_wl_F77='-Wl,' |
| 14538 | # PIC (with -KPIC) is the default. |
| 14539 | lt_prog_compiler_static_F77='-non_shared' |
| 14540 | ;; |
| 14541 | |
| 14542 | newsos6) |
| 14543 | lt_prog_compiler_pic_F77='-KPIC' |
| 14544 | lt_prog_compiler_static_F77='-Bstatic' |
| 14545 | ;; |
| 14546 | |
| 14547 | linux*) |
| 14548 | case $CC in |
| 14549 | icc* | ecc*) |
| 14550 | lt_prog_compiler_wl_F77='-Wl,' |
| 14551 | lt_prog_compiler_pic_F77='-KPIC' |
| 14552 | lt_prog_compiler_static_F77='-static' |
| 14553 | ;; |
| 14554 | ccc*) |
| 14555 | lt_prog_compiler_wl_F77='-Wl,' |
| 14556 | # All Alpha code is PIC. |
| 14557 | lt_prog_compiler_static_F77='-non_shared' |
| 14558 | ;; |
| 14559 | esac |
| 14560 | ;; |
| 14561 | |
| 14562 | osf3* | osf4* | osf5*) |
| 14563 | lt_prog_compiler_wl_F77='-Wl,' |
| 14564 | # All OSF/1 code is PIC. |
| 14565 | lt_prog_compiler_static_F77='-non_shared' |
| 14566 | ;; |
| 14567 | |
| 14568 | sco3.2v5*) |
| 14569 | lt_prog_compiler_pic_F77='-Kpic' |
| 14570 | lt_prog_compiler_static_F77='-dn' |
| 14571 | ;; |
| 14572 | |
| 14573 | solaris*) |
| 14574 | lt_prog_compiler_wl_F77='-Wl,' |
| 14575 | lt_prog_compiler_pic_F77='-KPIC' |
| 14576 | lt_prog_compiler_static_F77='-Bstatic' |
| 14577 | ;; |
| 14578 | |
| 14579 | sunos4*) |
| 14580 | lt_prog_compiler_wl_F77='-Qoption ld ' |
| 14581 | lt_prog_compiler_pic_F77='-PIC' |
| 14582 | lt_prog_compiler_static_F77='-Bstatic' |
| 14583 | ;; |
| 14584 | |
| 14585 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 14586 | lt_prog_compiler_wl_F77='-Wl,' |
| 14587 | lt_prog_compiler_pic_F77='-KPIC' |
| 14588 | lt_prog_compiler_static_F77='-Bstatic' |
| 14589 | ;; |
| 14590 | |
| 14591 | sysv4*MP*) |
| 14592 | if test -d /usr/nec ;then |
| 14593 | lt_prog_compiler_pic_F77='-Kconform_pic' |
| 14594 | lt_prog_compiler_static_F77='-Bstatic' |
| 14595 | fi |
| 14596 | ;; |
| 14597 | |
| 14598 | uts4*) |
| 14599 | lt_prog_compiler_pic_F77='-pic' |
| 14600 | lt_prog_compiler_static_F77='-Bstatic' |
| 14601 | ;; |
| 14602 | |
| 14603 | *) |
| 14604 | lt_prog_compiler_can_build_shared_F77=no |
| 14605 | ;; |
| 14606 | esac |
| 14607 | fi |
| 14608 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14609 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
| 14610 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14611 | |
| 14612 | # |
| 14613 | # Check to make sure the PIC flag actually works. |
| 14614 | # |
| 14615 | if test -n "$lt_prog_compiler_pic_F77"; then |
| 14616 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14617 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
| 14618 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14619 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
| 14620 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14621 | else |
| 14622 | lt_prog_compiler_pic_works_F77=no |
| 14623 | ac_outfile=conftest.$ac_objext |
| 14624 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14625 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
| 14626 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14627 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14628 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14629 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14630 | # The option is referenced via a variable to avoid confusing sed. |
| 14631 | lt_compile=`echo "$ac_compile" | $SED \ |
| 14632 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 14633 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14634 | -e 's:$: $lt_compiler_flag:'` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14635 | (eval echo "\"\$as_me:14635: $lt_compile\"" >&5) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14636 | (eval "$lt_compile" 2>conftest.err) |
| 14637 | ac_status=$? |
| 14638 | cat conftest.err >&5 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14639 | echo "$as_me:14639: \$? = $ac_status" >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14640 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14641 | # The compiler can only warn and ignore the option if not recognized |
| 14642 | # So say no if there are warnings |
| 14643 | if test ! -s conftest.err; then |
| 14644 | lt_prog_compiler_pic_works_F77=yes |
| 14645 | fi |
| 14646 | fi |
| 14647 | $rm conftest* |
| 14648 | |
| 14649 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14650 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
| 14651 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14652 | |
| 14653 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
| 14654 | case $lt_prog_compiler_pic_F77 in |
| 14655 | "" | " "*) ;; |
| 14656 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
| 14657 | esac |
| 14658 | else |
| 14659 | lt_prog_compiler_pic_F77= |
| 14660 | lt_prog_compiler_can_build_shared_F77=no |
| 14661 | fi |
| 14662 | |
| 14663 | fi |
| 14664 | case "$host_os" in |
| 14665 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 14666 | *djgpp*) |
| 14667 | lt_prog_compiler_pic_F77= |
| 14668 | ;; |
| 14669 | *) |
| 14670 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
| 14671 | ;; |
| 14672 | esac |
| 14673 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14674 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 14675 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14676 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
| 14677 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14678 | else |
| 14679 | lt_cv_prog_compiler_c_o_F77=no |
| 14680 | $rm -r conftest 2>/dev/null |
| 14681 | mkdir conftest |
| 14682 | cd conftest |
| 14683 | mkdir out |
| 14684 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14685 | |
| 14686 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 14687 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14688 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14689 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14690 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14691 | lt_compile=`echo "$ac_compile" | $SED \ |
| 14692 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 14693 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14694 | -e 's:$: $lt_compiler_flag:'` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14695 | (eval echo "\"\$as_me:14695: $lt_compile\"" >&5) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14696 | (eval "$lt_compile" 2>out/conftest.err) |
| 14697 | ac_status=$? |
| 14698 | cat out/conftest.err >&5 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14699 | echo "$as_me:14699: \$? = $ac_status" >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14700 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 14701 | then |
| 14702 | # The compiler can only warn and ignore the option if not recognized |
| 14703 | # So say no if there are warnings |
| 14704 | if test ! -s out/conftest.err; then |
| 14705 | lt_cv_prog_compiler_c_o_F77=yes |
| 14706 | fi |
| 14707 | fi |
| 14708 | chmod u+w . |
| 14709 | $rm conftest* |
| 14710 | # SGI C++ compiler will create directory out/ii_files/ for |
| 14711 | # template instantiation |
| 14712 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 14713 | $rm out/* && rmdir out |
| 14714 | cd .. |
| 14715 | rmdir conftest |
| 14716 | $rm conftest* |
| 14717 | |
| 14718 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14719 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
| 14720 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14721 | |
| 14722 | |
| 14723 | hard_links="nottested" |
| 14724 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
| 14725 | # do not overwrite the value of need_locks provided by the user |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14726 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 14727 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14728 | hard_links=yes |
| 14729 | $rm conftest* |
| 14730 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 14731 | touch conftest.a |
| 14732 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 14733 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14734 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 14735 | echo "${ECHO_T}$hard_links" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14736 | if test "$hard_links" = no; then |
| 14737 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 14738 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 14739 | need_locks=warn |
| 14740 | fi |
| 14741 | else |
| 14742 | need_locks=no |
| 14743 | fi |
| 14744 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14745 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 14746 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14747 | |
| 14748 | runpath_var= |
| 14749 | allow_undefined_flag_F77= |
| 14750 | enable_shared_with_static_runtimes_F77=no |
| 14751 | archive_cmds_F77= |
| 14752 | archive_expsym_cmds_F77= |
| 14753 | old_archive_From_new_cmds_F77= |
| 14754 | old_archive_from_expsyms_cmds_F77= |
| 14755 | export_dynamic_flag_spec_F77= |
| 14756 | whole_archive_flag_spec_F77= |
| 14757 | thread_safe_flag_spec_F77= |
| 14758 | hardcode_libdir_flag_spec_F77= |
| 14759 | hardcode_libdir_flag_spec_ld_F77= |
| 14760 | hardcode_libdir_separator_F77= |
| 14761 | hardcode_direct_F77=no |
| 14762 | hardcode_minus_L_F77=no |
| 14763 | hardcode_shlibpath_var_F77=unsupported |
| 14764 | link_all_deplibs_F77=unknown |
| 14765 | hardcode_automatic_F77=no |
| 14766 | module_cmds_F77= |
| 14767 | module_expsym_cmds_F77= |
| 14768 | always_export_symbols_F77=no |
| 14769 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 14770 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 14771 | # included in the symbol list |
| 14772 | include_expsyms_F77= |
| 14773 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 14774 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 14775 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 14776 | # as well as any symbol that contains `d'. |
| 14777 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
| 14778 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 14779 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 14780 | # the symbol is explicitly referenced. Since portable code cannot |
| 14781 | # rely on this symbol name, it's probably fine to never include it in |
| 14782 | # preloaded symbol tables. |
| 14783 | extract_expsyms_cmds= |
| 14784 | |
| 14785 | case $host_os in |
| 14786 | cygwin* | mingw* | pw32*) |
| 14787 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 14788 | # When not using gcc, we currently assume that we are using |
| 14789 | # Microsoft Visual C++. |
| 14790 | if test "$GCC" != yes; then |
| 14791 | with_gnu_ld=no |
| 14792 | fi |
| 14793 | ;; |
| 14794 | openbsd*) |
| 14795 | with_gnu_ld=no |
| 14796 | ;; |
| 14797 | esac |
| 14798 | |
| 14799 | ld_shlibs_F77=yes |
| 14800 | if test "$with_gnu_ld" = yes; then |
| 14801 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 14802 | wlarc='${wl}' |
| 14803 | |
| 14804 | # See if GNU ld supports shared libraries. |
| 14805 | case $host_os in |
| 14806 | aix3* | aix4* | aix5*) |
| 14807 | # On AIX/PPC, the GNU linker is very broken |
| 14808 | if test "$host_cpu" != ia64; then |
| 14809 | ld_shlibs_F77=no |
| 14810 | cat <<EOF 1>&2 |
| 14811 | |
| 14812 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 14813 | *** to be unable to reliably create shared libraries on AIX. |
| 14814 | *** Therefore, libtool is disabling shared libraries support. If you |
| 14815 | *** really care for shared libraries, you may want to modify your PATH |
| 14816 | *** so that a non-GNU linker is found, and then restart. |
| 14817 | |
| 14818 | EOF |
| 14819 | fi |
| 14820 | ;; |
| 14821 | |
| 14822 | amigaos*) |
| 14823 | 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)' |
| 14824 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14825 | hardcode_minus_L_F77=yes |
| 14826 | |
| 14827 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 14828 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 14829 | # to version 4, is to share data among multiple programs linked |
| 14830 | # with the same dynamic library. Since this doesn't match the |
| 14831 | # behavior of shared libraries on other platforms, we can't use |
| 14832 | # them. |
| 14833 | ld_shlibs_F77=no |
| 14834 | ;; |
| 14835 | |
| 14836 | beos*) |
| 14837 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14838 | allow_undefined_flag_F77=unsupported |
| 14839 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 14840 | # support --undefined. This deserves some investigation. FIXME |
| 14841 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14842 | else |
| 14843 | ld_shlibs_F77=no |
| 14844 | fi |
| 14845 | ;; |
| 14846 | |
| 14847 | cygwin* | mingw* | pw32*) |
| 14848 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
| 14849 | # as there is no search path for DLLs. |
| 14850 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14851 | allow_undefined_flag_F77=unsupported |
| 14852 | always_export_symbols_F77=no |
| 14853 | enable_shared_with_static_runtimes_F77=yes |
| 14854 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 14855 | |
| 14856 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 14857 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 14858 | # If the export-symbols file already is a .def file (1st line |
| 14859 | # is EXPORTS), use it as is; otherwise, prepend... |
| 14860 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 14861 | cp $export_symbols $output_objdir/$soname.def; |
| 14862 | else |
| 14863 | echo EXPORTS > $output_objdir/$soname.def; |
| 14864 | cat $export_symbols >> $output_objdir/$soname.def; |
| 14865 | fi~ |
| 14866 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 14867 | else |
| 14868 | ld_shlibs=no |
| 14869 | fi |
| 14870 | ;; |
| 14871 | |
| 14872 | netbsd*) |
| 14873 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 14874 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 14875 | wlarc= |
| 14876 | else |
| 14877 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14878 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 14879 | fi |
| 14880 | ;; |
| 14881 | |
| 14882 | solaris* | sysv5*) |
| 14883 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 14884 | ld_shlibs_F77=no |
| 14885 | cat <<EOF 1>&2 |
| 14886 | |
| 14887 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 14888 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 14889 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 14890 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 14891 | *** your PATH or compiler configuration so that the native linker is |
| 14892 | *** used, and then restart. |
| 14893 | |
| 14894 | EOF |
| 14895 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14896 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14897 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 14898 | else |
| 14899 | ld_shlibs_F77=no |
| 14900 | fi |
| 14901 | ;; |
| 14902 | |
| 14903 | sunos4*) |
| 14904 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 14905 | wlarc= |
| 14906 | hardcode_direct_F77=yes |
| 14907 | hardcode_shlibpath_var_F77=no |
| 14908 | ;; |
| 14909 | |
| 14910 | linux*) |
| 14911 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14912 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14913 | archive_cmds_F77="$tmp_archive_cmds" |
| 14914 | supports_anon_versioning=no |
| 14915 | case `$LD -v 2>/dev/null` in |
| 14916 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 14917 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 14918 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 14919 | *\ 2.11.*) ;; # other 2.11 versions |
| 14920 | *) supports_anon_versioning=yes ;; |
| 14921 | esac |
| 14922 | if test $supports_anon_versioning = yes; then |
| 14923 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 14924 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 14925 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 14926 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 14927 | else |
| 14928 | archive_expsym_cmds_F77="$tmp_archive_cmds" |
| 14929 | fi |
| 14930 | else |
| 14931 | ld_shlibs_F77=no |
| 14932 | fi |
| 14933 | ;; |
| 14934 | |
| 14935 | *) |
| 14936 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14937 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14938 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 14939 | else |
| 14940 | ld_shlibs_F77=no |
| 14941 | fi |
| 14942 | ;; |
| 14943 | esac |
| 14944 | |
| 14945 | if test "$ld_shlibs_F77" = yes; then |
| 14946 | runpath_var=LD_RUN_PATH |
| 14947 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
| 14948 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
| 14949 | # ancient GNU ld didn't support --whole-archive et. al. |
| 14950 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 14951 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 14952 | else |
| 14953 | whole_archive_flag_spec_F77= |
| 14954 | fi |
| 14955 | fi |
| 14956 | else |
| 14957 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 14958 | case $host_os in |
| 14959 | aix3*) |
| 14960 | allow_undefined_flag_F77=unsupported |
| 14961 | always_export_symbols_F77=yes |
| 14962 | 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' |
| 14963 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 14964 | # are no directories specified by -L. |
| 14965 | hardcode_minus_L_F77=yes |
| 14966 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 14967 | # Neither direct hardcoding nor static linking is supported with a |
| 14968 | # broken collect2. |
| 14969 | hardcode_direct_F77=unsupported |
| 14970 | fi |
| 14971 | ;; |
| 14972 | |
| 14973 | aix4* | aix5*) |
| 14974 | if test "$host_cpu" = ia64; then |
| 14975 | # On IA64, the linker does run time linking by default, so we don't |
| 14976 | # have to do anything special. |
| 14977 | aix_use_runtimelinking=no |
| 14978 | exp_sym_flag='-Bexport' |
| 14979 | no_entry_flag="" |
| 14980 | else |
| 14981 | # If we're using GNU nm, then we don't want the "-C" option. |
| 14982 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 14983 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 14984 | 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' |
| 14985 | else |
| 14986 | 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' |
| 14987 | fi |
| 14988 | aix_use_runtimelinking=no |
| 14989 | |
| 14990 | # Test if we are trying to use run time linking or normal |
| 14991 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 14992 | # need to do runtime linking. |
| 14993 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 14994 | for ld_flag in $LDFLAGS; do |
| 14995 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 14996 | aix_use_runtimelinking=yes |
| 14997 | break |
| 14998 | fi |
| 14999 | done |
| 15000 | esac |
| 15001 | |
| 15002 | exp_sym_flag='-bexport' |
| 15003 | no_entry_flag='-bnoentry' |
| 15004 | fi |
| 15005 | |
| 15006 | # When large executables or shared objects are built, AIX ld can |
| 15007 | # have problems creating the table of contents. If linking a library |
| 15008 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 15009 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 15010 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 15011 | |
| 15012 | archive_cmds_F77='' |
| 15013 | hardcode_direct_F77=yes |
| 15014 | hardcode_libdir_separator_F77=':' |
| 15015 | link_all_deplibs_F77=yes |
| 15016 | |
| 15017 | if test "$GCC" = yes; then |
| 15018 | case $host_os in aix4.012|aix4.012.*) |
| 15019 | # We only want to do this on AIX 4.2 and lower, the check |
| 15020 | # below for broken collect2 doesn't work under 4.3+ |
| 15021 | collect2name=`${CC} -print-prog-name=collect2` |
| 15022 | if test -f "$collect2name" && \ |
| 15023 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 15024 | then |
| 15025 | # We have reworked collect2 |
| 15026 | hardcode_direct_F77=yes |
| 15027 | else |
| 15028 | # We have old collect2 |
| 15029 | hardcode_direct_F77=unsupported |
| 15030 | # It fails to find uninstalled libraries when the uninstalled |
| 15031 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 15032 | # to unsupported forces relinking |
| 15033 | hardcode_minus_L_F77=yes |
| 15034 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 15035 | hardcode_libdir_separator_F77= |
| 15036 | fi |
| 15037 | esac |
| 15038 | shared_flag='-shared' |
| 15039 | else |
| 15040 | # not using gcc |
| 15041 | if test "$host_cpu" = ia64; then |
| 15042 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 15043 | # chokes on -Wl,-G. The following line is correct: |
| 15044 | shared_flag='-G' |
| 15045 | else |
| 15046 | if test "$aix_use_runtimelinking" = yes; then |
| 15047 | shared_flag='${wl}-G' |
| 15048 | else |
| 15049 | shared_flag='${wl}-bM:SRE' |
| 15050 | fi |
| 15051 | fi |
| 15052 | fi |
| 15053 | |
| 15054 | # It seems that -bexpall does not export symbols beginning with |
| 15055 | # underscore (_), so it is better to generate a list of symbols to export. |
| 15056 | always_export_symbols_F77=yes |
| 15057 | if test "$aix_use_runtimelinking" = yes; then |
| 15058 | # Warning - without using the other runtime loading flags (-brtl), |
| 15059 | # -berok will link without error, but may produce a broken library. |
| 15060 | allow_undefined_flag_F77='-berok' |
| 15061 | # Determine the default libpath from the value encoded in an empty executable. |
| 15062 | cat >conftest.$ac_ext <<_ACEOF |
| 15063 | program main |
| 15064 | |
| 15065 | end |
| 15066 | _ACEOF |
| 15067 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15068 | if { (ac_try="$ac_link" |
| 15069 | case "(($ac_try" in |
| 15070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15071 | *) ac_try_echo=$ac_try;; |
| 15072 | esac |
| 15073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15074 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15075 | ac_status=$? |
| 15076 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15077 | rm -f conftest.er1 |
| 15078 | cat conftest.err >&5 |
| 15079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15080 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15081 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 15082 | { (case "(($ac_try" in |
| 15083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15084 | *) ac_try_echo=$ac_try;; |
| 15085 | esac |
| 15086 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15087 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15088 | ac_status=$? |
| 15089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15090 | (exit $ac_status); }; } && |
| 15091 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15092 | { (case "(($ac_try" in |
| 15093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15094 | *) ac_try_echo=$ac_try;; |
| 15095 | esac |
| 15096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15097 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15098 | ac_status=$? |
| 15099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15100 | (exit $ac_status); }; }; then |
| 15101 | |
| 15102 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15103 | }'` |
| 15104 | # Check for a 64-bit object if we didn't find anything. |
| 15105 | 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; } |
| 15106 | }'`; fi |
| 15107 | else |
| 15108 | echo "$as_me: failed program was:" >&5 |
| 15109 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15110 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15111 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15112 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15113 | |
| 15114 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15115 | conftest$ac_exeext conftest.$ac_ext |
| 15116 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 15117 | |
| 15118 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 15119 | archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 15120 | else |
| 15121 | if test "$host_cpu" = ia64; then |
| 15122 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
| 15123 | allow_undefined_flag_F77="-z nodefs" |
| 15124 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
| 15125 | else |
| 15126 | # Determine the default libpath from the value encoded in an empty executable. |
| 15127 | cat >conftest.$ac_ext <<_ACEOF |
| 15128 | program main |
| 15129 | |
| 15130 | end |
| 15131 | _ACEOF |
| 15132 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15133 | if { (ac_try="$ac_link" |
| 15134 | case "(($ac_try" in |
| 15135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15136 | *) ac_try_echo=$ac_try;; |
| 15137 | esac |
| 15138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15139 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15140 | ac_status=$? |
| 15141 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15142 | rm -f conftest.er1 |
| 15143 | cat conftest.err >&5 |
| 15144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15145 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15146 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 15147 | { (case "(($ac_try" in |
| 15148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15149 | *) ac_try_echo=$ac_try;; |
| 15150 | esac |
| 15151 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15152 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15153 | ac_status=$? |
| 15154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15155 | (exit $ac_status); }; } && |
| 15156 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15157 | { (case "(($ac_try" in |
| 15158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15159 | *) ac_try_echo=$ac_try;; |
| 15160 | esac |
| 15161 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15162 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15163 | ac_status=$? |
| 15164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15165 | (exit $ac_status); }; }; then |
| 15166 | |
| 15167 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15168 | }'` |
| 15169 | # Check for a 64-bit object if we didn't find anything. |
| 15170 | 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; } |
| 15171 | }'`; fi |
| 15172 | else |
| 15173 | echo "$as_me: failed program was:" >&5 |
| 15174 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15175 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15176 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15177 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15178 | |
| 15179 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15180 | conftest$ac_exeext conftest.$ac_ext |
| 15181 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 15182 | |
| 15183 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 15184 | # Warning - without using the other run time loading flags, |
| 15185 | # -berok will link without error, but may produce a broken library. |
| 15186 | no_undefined_flag_F77=' ${wl}-bernotok' |
| 15187 | allow_undefined_flag_F77=' ${wl}-berok' |
| 15188 | # -bexpall does not export symbols beginning with underscore (_) |
| 15189 | always_export_symbols_F77=yes |
| 15190 | # Exported symbols can be pulled into shared objects from archives |
| 15191 | whole_archive_flag_spec_F77=' ' |
| 15192 | archive_cmds_need_lc_F77=yes |
| 15193 | # This is similar to how AIX traditionally builds it's shared libraries. |
| 15194 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 15195 | fi |
| 15196 | fi |
| 15197 | ;; |
| 15198 | |
| 15199 | amigaos*) |
| 15200 | 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)' |
| 15201 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 15202 | hardcode_minus_L_F77=yes |
| 15203 | # see comment about different semantics on the GNU ld section |
| 15204 | ld_shlibs_F77=no |
| 15205 | ;; |
| 15206 | |
| 15207 | bsdi4*) |
| 15208 | export_dynamic_flag_spec_F77=-rdynamic |
| 15209 | ;; |
| 15210 | |
| 15211 | cygwin* | mingw* | pw32*) |
| 15212 | # When not using gcc, we currently assume that we are using |
| 15213 | # Microsoft Visual C++. |
| 15214 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 15215 | # no search path for DLLs. |
| 15216 | hardcode_libdir_flag_spec_F77=' ' |
| 15217 | allow_undefined_flag_F77=unsupported |
| 15218 | # Tell ltmain to make .lib files, not .a files. |
| 15219 | libext=lib |
| 15220 | # Tell ltmain to make .dll files, not .so files. |
| 15221 | shrext_cmds=".dll" |
| 15222 | # FIXME: Setting linknames here is a bad hack. |
| 15223 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 15224 | # The linker will automatically build a .lib file if we build a DLL. |
| 15225 | old_archive_From_new_cmds_F77='true' |
| 15226 | # FIXME: Should let the user specify the lib program. |
| 15227 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 15228 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 15229 | enable_shared_with_static_runtimes_F77=yes |
| 15230 | ;; |
| 15231 | |
| 15232 | darwin* | rhapsody*) |
| 15233 | if test "$GXX" = yes ; then |
| 15234 | archive_cmds_need_lc_F77=no |
| 15235 | case "$host_os" in |
| 15236 | rhapsody* | darwin1.[012]) |
| 15237 | allow_undefined_flag_F77='-undefined suppress' |
| 15238 | ;; |
| 15239 | *) # Darwin 1.3 on |
| 15240 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 15241 | allow_undefined_flag_F77='-flat_namespace -undefined suppress' |
| 15242 | else |
| 15243 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 15244 | 10.[012]) |
| 15245 | allow_undefined_flag_F77='-flat_namespace -undefined suppress' |
| 15246 | ;; |
| 15247 | 10.*) |
| 15248 | allow_undefined_flag_F77='-undefined dynamic_lookup' |
| 15249 | ;; |
| 15250 | esac |
| 15251 | fi |
| 15252 | ;; |
| 15253 | esac |
| 15254 | lt_int_apple_cc_single_mod=no |
| 15255 | output_verbose_link_cmd='echo' |
| 15256 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
| 15257 | lt_int_apple_cc_single_mod=yes |
| 15258 | fi |
| 15259 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 15260 | archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 15261 | else |
| 15262 | archive_cmds_F77='$CC -r ${wl}-bind_at_load -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' |
| 15263 | fi |
| 15264 | module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 15265 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 15266 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 15267 | archive_expsym_cmds_F77='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}' |
| 15268 | else |
| 15269 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' |
| 15270 | fi |
| 15271 | 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}' |
| 15272 | hardcode_direct_F77=no |
| 15273 | hardcode_automatic_F77=yes |
| 15274 | hardcode_shlibpath_var_F77=unsupported |
| 15275 | whole_archive_flag_spec_F77='-all_load $convenience' |
| 15276 | link_all_deplibs_F77=yes |
| 15277 | else |
| 15278 | ld_shlibs_F77=no |
| 15279 | fi |
| 15280 | ;; |
| 15281 | |
| 15282 | dgux*) |
| 15283 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15284 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 15285 | hardcode_shlibpath_var_F77=no |
| 15286 | ;; |
| 15287 | |
| 15288 | freebsd1*) |
| 15289 | ld_shlibs_F77=no |
| 15290 | ;; |
| 15291 | |
| 15292 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 15293 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 15294 | # does not break anything, and helps significantly (at the cost of a little |
| 15295 | # extra space). |
| 15296 | freebsd2.2*) |
| 15297 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 15298 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 15299 | hardcode_direct_F77=yes |
| 15300 | hardcode_shlibpath_var_F77=no |
| 15301 | ;; |
| 15302 | |
| 15303 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 15304 | freebsd2*) |
| 15305 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15306 | hardcode_direct_F77=yes |
| 15307 | hardcode_minus_L_F77=yes |
| 15308 | hardcode_shlibpath_var_F77=no |
| 15309 | ;; |
| 15310 | |
| 15311 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 15312 | freebsd* | kfreebsd*-gnu) |
| 15313 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 15314 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 15315 | hardcode_direct_F77=yes |
| 15316 | hardcode_shlibpath_var_F77=no |
| 15317 | ;; |
| 15318 | |
| 15319 | hpux9*) |
| 15320 | if test "$GCC" = yes; then |
| 15321 | 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' |
| 15322 | else |
| 15323 | 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' |
| 15324 | fi |
| 15325 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 15326 | hardcode_libdir_separator_F77=: |
| 15327 | hardcode_direct_F77=yes |
| 15328 | |
| 15329 | # hardcode_minus_L: Not really in the search PATH, |
| 15330 | # but as the default location of the library. |
| 15331 | hardcode_minus_L_F77=yes |
| 15332 | export_dynamic_flag_spec_F77='${wl}-E' |
| 15333 | ;; |
| 15334 | |
| 15335 | hpux10* | hpux11*) |
| 15336 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 15337 | case "$host_cpu" in |
| 15338 | hppa*64*|ia64*) |
| 15339 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15340 | ;; |
| 15341 | *) |
| 15342 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 15343 | ;; |
| 15344 | esac |
| 15345 | else |
| 15346 | case "$host_cpu" in |
| 15347 | hppa*64*|ia64*) |
| 15348 | archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15349 | ;; |
| 15350 | *) |
| 15351 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 15352 | ;; |
| 15353 | esac |
| 15354 | fi |
| 15355 | if test "$with_gnu_ld" = no; then |
| 15356 | case "$host_cpu" in |
| 15357 | hppa*64*) |
| 15358 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 15359 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
| 15360 | hardcode_libdir_separator_F77=: |
| 15361 | hardcode_direct_F77=no |
| 15362 | hardcode_shlibpath_var_F77=no |
| 15363 | ;; |
| 15364 | ia64*) |
| 15365 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 15366 | hardcode_direct_F77=no |
| 15367 | hardcode_shlibpath_var_F77=no |
| 15368 | |
| 15369 | # hardcode_minus_L: Not really in the search PATH, |
| 15370 | # but as the default location of the library. |
| 15371 | hardcode_minus_L_F77=yes |
| 15372 | ;; |
| 15373 | *) |
| 15374 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 15375 | hardcode_libdir_separator_F77=: |
| 15376 | hardcode_direct_F77=yes |
| 15377 | export_dynamic_flag_spec_F77='${wl}-E' |
| 15378 | |
| 15379 | # hardcode_minus_L: Not really in the search PATH, |
| 15380 | # but as the default location of the library. |
| 15381 | hardcode_minus_L_F77=yes |
| 15382 | ;; |
| 15383 | esac |
| 15384 | fi |
| 15385 | ;; |
| 15386 | |
| 15387 | irix5* | irix6* | nonstopux*) |
| 15388 | if test "$GCC" = yes; then |
| 15389 | 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' |
| 15390 | else |
| 15391 | 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' |
| 15392 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
| 15393 | fi |
| 15394 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 15395 | hardcode_libdir_separator_F77=: |
| 15396 | link_all_deplibs_F77=yes |
| 15397 | ;; |
| 15398 | |
| 15399 | netbsd*) |
| 15400 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 15401 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 15402 | else |
| 15403 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 15404 | fi |
| 15405 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 15406 | hardcode_direct_F77=yes |
| 15407 | hardcode_shlibpath_var_F77=no |
| 15408 | ;; |
| 15409 | |
| 15410 | newsos6) |
| 15411 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15412 | hardcode_direct_F77=yes |
| 15413 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 15414 | hardcode_libdir_separator_F77=: |
| 15415 | hardcode_shlibpath_var_F77=no |
| 15416 | ;; |
| 15417 | |
| 15418 | openbsd*) |
| 15419 | hardcode_direct_F77=yes |
| 15420 | hardcode_shlibpath_var_F77=no |
| 15421 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 15422 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 15423 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 15424 | export_dynamic_flag_spec_F77='${wl}-E' |
| 15425 | else |
| 15426 | case $host_os in |
| 15427 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 15428 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15429 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 15430 | ;; |
| 15431 | *) |
| 15432 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 15433 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 15434 | ;; |
| 15435 | esac |
| 15436 | fi |
| 15437 | ;; |
| 15438 | |
| 15439 | os2*) |
| 15440 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 15441 | hardcode_minus_L_F77=yes |
| 15442 | allow_undefined_flag_F77=unsupported |
| 15443 | 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' |
| 15444 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 15445 | ;; |
| 15446 | |
| 15447 | osf3*) |
| 15448 | if test "$GCC" = yes; then |
| 15449 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 15450 | 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' |
| 15451 | else |
| 15452 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 15453 | 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' |
| 15454 | fi |
| 15455 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 15456 | hardcode_libdir_separator_F77=: |
| 15457 | ;; |
| 15458 | |
| 15459 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 15460 | if test "$GCC" = yes; then |
| 15461 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 15462 | 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' |
| 15463 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 15464 | else |
| 15465 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 15466 | 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' |
| 15467 | 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~ |
| 15468 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' |
| 15469 | |
| 15470 | # Both c and cxx compiler support -rpath directly |
| 15471 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
| 15472 | fi |
| 15473 | hardcode_libdir_separator_F77=: |
| 15474 | ;; |
| 15475 | |
| 15476 | sco3.2v5*) |
| 15477 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15478 | hardcode_shlibpath_var_F77=no |
| 15479 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
| 15480 | runpath_var=LD_RUN_PATH |
| 15481 | hardcode_runpath_var=yes |
| 15482 | ;; |
| 15483 | |
| 15484 | solaris*) |
| 15485 | no_undefined_flag_F77=' -z text' |
| 15486 | if test "$GCC" = yes; then |
| 15487 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15488 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 15489 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 15490 | else |
| 15491 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15492 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 15493 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 15494 | fi |
| 15495 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 15496 | hardcode_shlibpath_var_F77=no |
| 15497 | case $host_os in |
| 15498 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 15499 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 15500 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
| 15501 | esac |
| 15502 | link_all_deplibs_F77=yes |
| 15503 | ;; |
| 15504 | |
| 15505 | sunos4*) |
| 15506 | if test "x$host_vendor" = xsequent; then |
| 15507 | # Use $CC to link under sequent, because it throws in some extra .o |
| 15508 | # files that make .init and .fini sections work. |
| 15509 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15510 | else |
| 15511 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 15512 | fi |
| 15513 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 15514 | hardcode_direct_F77=yes |
| 15515 | hardcode_minus_L_F77=yes |
| 15516 | hardcode_shlibpath_var_F77=no |
| 15517 | ;; |
| 15518 | |
| 15519 | sysv4) |
| 15520 | case $host_vendor in |
| 15521 | sni) |
| 15522 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15523 | hardcode_direct_F77=yes # is this really true??? |
| 15524 | ;; |
| 15525 | siemens) |
| 15526 | ## LD is ld it makes a PLAMLIB |
| 15527 | ## CC just makes a GrossModule. |
| 15528 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 15529 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
| 15530 | hardcode_direct_F77=no |
| 15531 | ;; |
| 15532 | motorola) |
| 15533 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15534 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
| 15535 | ;; |
| 15536 | esac |
| 15537 | runpath_var='LD_RUN_PATH' |
| 15538 | hardcode_shlibpath_var_F77=no |
| 15539 | ;; |
| 15540 | |
| 15541 | sysv4.3*) |
| 15542 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15543 | hardcode_shlibpath_var_F77=no |
| 15544 | export_dynamic_flag_spec_F77='-Bexport' |
| 15545 | ;; |
| 15546 | |
| 15547 | sysv4*MP*) |
| 15548 | if test -d /usr/nec; then |
| 15549 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15550 | hardcode_shlibpath_var_F77=no |
| 15551 | runpath_var=LD_RUN_PATH |
| 15552 | hardcode_runpath_var=yes |
| 15553 | ld_shlibs_F77=yes |
| 15554 | fi |
| 15555 | ;; |
| 15556 | |
| 15557 | sysv4.2uw2*) |
| 15558 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 15559 | hardcode_direct_F77=yes |
| 15560 | hardcode_minus_L_F77=no |
| 15561 | hardcode_shlibpath_var_F77=no |
| 15562 | hardcode_runpath_var=yes |
| 15563 | runpath_var=LD_RUN_PATH |
| 15564 | ;; |
| 15565 | |
| 15566 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 15567 | no_undefined_flag_F77='${wl}-z ${wl}text' |
| 15568 | if test "$GCC" = yes; then |
| 15569 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15570 | else |
| 15571 | archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15572 | fi |
| 15573 | runpath_var='LD_RUN_PATH' |
| 15574 | hardcode_shlibpath_var_F77=no |
| 15575 | ;; |
| 15576 | |
| 15577 | sysv5*) |
| 15578 | no_undefined_flag_F77=' -z text' |
| 15579 | # $CC -shared without GNU ld will not create a library from C++ |
| 15580 | # object files and a static libstdc++, better avoid it by now |
| 15581 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15582 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 15583 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 15584 | hardcode_libdir_flag_spec_F77= |
| 15585 | hardcode_shlibpath_var_F77=no |
| 15586 | runpath_var='LD_RUN_PATH' |
| 15587 | ;; |
| 15588 | |
| 15589 | uts4*) |
| 15590 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15591 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 15592 | hardcode_shlibpath_var_F77=no |
| 15593 | ;; |
| 15594 | |
| 15595 | *) |
| 15596 | ld_shlibs_F77=no |
| 15597 | ;; |
| 15598 | esac |
| 15599 | fi |
| 15600 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15601 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
| 15602 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15603 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 15604 | |
| 15605 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 15606 | if test "$GCC" = yes; then |
| 15607 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 15608 | fi |
| 15609 | |
| 15610 | # |
| 15611 | # Do we need to explicitly link libc? |
| 15612 | # |
| 15613 | case "x$archive_cmds_need_lc_F77" in |
| 15614 | x|xyes) |
| 15615 | # Assume -lc should be added |
| 15616 | archive_cmds_need_lc_F77=yes |
| 15617 | |
| 15618 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 15619 | case $archive_cmds_F77 in |
| 15620 | *'~'*) |
| 15621 | # FIXME: we may have to deal with multi-command sequences. |
| 15622 | ;; |
| 15623 | '$CC '*) |
| 15624 | # Test whether the compiler implicitly links with -lc since on some |
| 15625 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 15626 | # to ld, don't add -lc before -lgcc. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15627 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 15628 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15629 | $rm conftest* |
| 15630 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15631 | |
| 15632 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15633 | (eval $ac_compile) 2>&5 |
| 15634 | ac_status=$? |
| 15635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15636 | (exit $ac_status); } 2>conftest.err; then |
| 15637 | soname=conftest |
| 15638 | lib=conftest |
| 15639 | libobjs=conftest.$ac_objext |
| 15640 | deplibs= |
| 15641 | wl=$lt_prog_compiler_wl_F77 |
| 15642 | compiler_flags=-v |
| 15643 | linker_flags=-v |
| 15644 | verstring= |
| 15645 | output_objdir=. |
| 15646 | libname=conftest |
| 15647 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
| 15648 | allow_undefined_flag_F77= |
| 15649 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 15650 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 15651 | ac_status=$? |
| 15652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15653 | (exit $ac_status); } |
| 15654 | then |
| 15655 | archive_cmds_need_lc_F77=no |
| 15656 | else |
| 15657 | archive_cmds_need_lc_F77=yes |
| 15658 | fi |
| 15659 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
| 15660 | else |
| 15661 | cat conftest.err 1>&5 |
| 15662 | fi |
| 15663 | $rm conftest* |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15664 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
| 15665 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15666 | ;; |
| 15667 | esac |
| 15668 | fi |
| 15669 | ;; |
| 15670 | esac |
| 15671 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15672 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 15673 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15674 | library_names_spec= |
| 15675 | libname_spec='lib$name' |
| 15676 | soname_spec= |
| 15677 | shrext_cmds=".so" |
| 15678 | postinstall_cmds= |
| 15679 | postuninstall_cmds= |
| 15680 | finish_cmds= |
| 15681 | finish_eval= |
| 15682 | shlibpath_var= |
| 15683 | shlibpath_overrides_runpath=unknown |
| 15684 | version_type=none |
| 15685 | dynamic_linker="$host_os ld.so" |
| 15686 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 15687 | if test "$GCC" = yes; then |
| 15688 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 15689 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 15690 | # if the path contains ";" then we assume it to be the separator |
| 15691 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 15692 | # assumed that no part of a normal pathname contains ";" but that should |
| 15693 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 15694 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 15695 | else |
| 15696 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 15697 | fi |
| 15698 | else |
| 15699 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 15700 | fi |
| 15701 | need_lib_prefix=unknown |
| 15702 | hardcode_into_libs=no |
| 15703 | |
| 15704 | # when you set need_version to no, make sure it does not cause -set_version |
| 15705 | # flags to be left without arguments |
| 15706 | need_version=unknown |
| 15707 | |
| 15708 | case $host_os in |
| 15709 | aix3*) |
| 15710 | version_type=linux |
| 15711 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 15712 | shlibpath_var=LIBPATH |
| 15713 | |
| 15714 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 15715 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15716 | ;; |
| 15717 | |
| 15718 | aix4* | aix5*) |
| 15719 | version_type=linux |
| 15720 | need_lib_prefix=no |
| 15721 | need_version=no |
| 15722 | hardcode_into_libs=yes |
| 15723 | if test "$host_cpu" = ia64; then |
| 15724 | # AIX 5 supports IA64 |
| 15725 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 15726 | shlibpath_var=LD_LIBRARY_PATH |
| 15727 | else |
| 15728 | # With GCC up to 2.95.x, collect2 would create an import file |
| 15729 | # for dependence libraries. The import file would start with |
| 15730 | # the line `#! .'. This would cause the generated library to |
| 15731 | # depend on `.', always an invalid library. This was fixed in |
| 15732 | # development snapshots of GCC prior to 3.0. |
| 15733 | case $host_os in |
| 15734 | aix4 | aix4.[01] | aix4.[01].*) |
| 15735 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 15736 | echo ' yes ' |
| 15737 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 15738 | : |
| 15739 | else |
| 15740 | can_build_shared=no |
| 15741 | fi |
| 15742 | ;; |
| 15743 | esac |
| 15744 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 15745 | # soname into executable. Probably we can add versioning support to |
| 15746 | # collect2, so additional links can be useful in future. |
| 15747 | if test "$aix_use_runtimelinking" = yes; then |
| 15748 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 15749 | # instead of lib<name>.a to let people know that these are not |
| 15750 | # typical AIX shared libraries. |
| 15751 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15752 | else |
| 15753 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 15754 | # and later when we are not doing run time linking. |
| 15755 | library_names_spec='${libname}${release}.a $libname.a' |
| 15756 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15757 | fi |
| 15758 | shlibpath_var=LIBPATH |
| 15759 | fi |
| 15760 | ;; |
| 15761 | |
| 15762 | amigaos*) |
| 15763 | library_names_spec='$libname.ixlibrary $libname.a' |
| 15764 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 15765 | 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' |
| 15766 | ;; |
| 15767 | |
| 15768 | beos*) |
| 15769 | library_names_spec='${libname}${shared_ext}' |
| 15770 | dynamic_linker="$host_os ld.so" |
| 15771 | shlibpath_var=LIBRARY_PATH |
| 15772 | ;; |
| 15773 | |
| 15774 | bsdi4*) |
| 15775 | version_type=linux |
| 15776 | need_version=no |
| 15777 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15778 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15779 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 15780 | shlibpath_var=LD_LIBRARY_PATH |
| 15781 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 15782 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 15783 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 15784 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 15785 | # libtool to hard-code these into programs |
| 15786 | ;; |
| 15787 | |
| 15788 | cygwin* | mingw* | pw32*) |
| 15789 | version_type=windows |
| 15790 | shrext_cmds=".dll" |
| 15791 | need_version=no |
| 15792 | need_lib_prefix=no |
| 15793 | |
| 15794 | case $GCC,$host_os in |
| 15795 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 15796 | library_names_spec='$libname.dll.a' |
| 15797 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 15798 | postinstall_cmds='base_file=`basename \${file}`~ |
| 15799 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 15800 | dldir=$destdir/`dirname \$dlpath`~ |
| 15801 | test -d \$dldir || mkdir -p \$dldir~ |
| 15802 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 15803 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 15804 | dlpath=$dir/\$dldll~ |
| 15805 | $rm \$dlpath' |
| 15806 | shlibpath_overrides_runpath=yes |
| 15807 | |
| 15808 | case $host_os in |
| 15809 | cygwin*) |
| 15810 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 15811 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 15812 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 15813 | ;; |
| 15814 | mingw*) |
| 15815 | # MinGW DLLs use traditional 'lib' prefix |
| 15816 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 15817 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 15818 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 15819 | # It is most probably a Windows format PATH printed by |
| 15820 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 15821 | # path with ; separators, and with drive letters. We can handle the |
| 15822 | # drive letters (cygwin fileutils understands them), so leave them, |
| 15823 | # especially as we might pass files found there to a mingw objdump, |
| 15824 | # which wouldn't understand a cygwinified path. Ahh. |
| 15825 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 15826 | else |
| 15827 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 15828 | fi |
| 15829 | ;; |
| 15830 | pw32*) |
| 15831 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 15832 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 15833 | ;; |
| 15834 | esac |
| 15835 | ;; |
| 15836 | |
| 15837 | *) |
| 15838 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 15839 | ;; |
| 15840 | esac |
| 15841 | dynamic_linker='Win32 ld.exe' |
| 15842 | # FIXME: first we should search . and the directory the executable is in |
| 15843 | shlibpath_var=PATH |
| 15844 | ;; |
| 15845 | |
| 15846 | darwin* | rhapsody*) |
| 15847 | dynamic_linker="$host_os dyld" |
| 15848 | version_type=darwin |
| 15849 | need_lib_prefix=no |
| 15850 | need_version=no |
| 15851 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 15852 | soname_spec='${libname}${release}${major}$shared_ext' |
| 15853 | shlibpath_overrides_runpath=yes |
| 15854 | shlibpath_var=DYLD_LIBRARY_PATH |
| 15855 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
| 15856 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 15857 | if test "$GCC" = yes; then |
| 15858 | 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"` |
| 15859 | else |
| 15860 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 15861 | fi |
| 15862 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 15863 | ;; |
| 15864 | |
| 15865 | dgux*) |
| 15866 | version_type=linux |
| 15867 | need_lib_prefix=no |
| 15868 | need_version=no |
| 15869 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 15870 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15871 | shlibpath_var=LD_LIBRARY_PATH |
| 15872 | ;; |
| 15873 | |
| 15874 | freebsd1*) |
| 15875 | dynamic_linker=no |
| 15876 | ;; |
| 15877 | |
| 15878 | kfreebsd*-gnu) |
| 15879 | version_type=linux |
| 15880 | need_lib_prefix=no |
| 15881 | need_version=no |
| 15882 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15883 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15884 | shlibpath_var=LD_LIBRARY_PATH |
| 15885 | shlibpath_overrides_runpath=no |
| 15886 | hardcode_into_libs=yes |
| 15887 | dynamic_linker='GNU ld.so' |
| 15888 | ;; |
| 15889 | |
| 15890 | freebsd*) |
| 15891 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 15892 | version_type=freebsd-$objformat |
| 15893 | case $version_type in |
| 15894 | freebsd-elf*) |
| 15895 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 15896 | need_version=no |
| 15897 | need_lib_prefix=no |
| 15898 | ;; |
| 15899 | freebsd-*) |
| 15900 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 15901 | need_version=yes |
| 15902 | ;; |
| 15903 | esac |
| 15904 | shlibpath_var=LD_LIBRARY_PATH |
| 15905 | case $host_os in |
| 15906 | freebsd2*) |
| 15907 | shlibpath_overrides_runpath=yes |
| 15908 | ;; |
| 15909 | freebsd3.01* | freebsdelf3.01*) |
| 15910 | shlibpath_overrides_runpath=yes |
| 15911 | hardcode_into_libs=yes |
| 15912 | ;; |
| 15913 | *) # from 3.2 on |
| 15914 | shlibpath_overrides_runpath=no |
| 15915 | hardcode_into_libs=yes |
| 15916 | ;; |
| 15917 | esac |
| 15918 | ;; |
| 15919 | |
| 15920 | gnu*) |
| 15921 | version_type=linux |
| 15922 | need_lib_prefix=no |
| 15923 | need_version=no |
| 15924 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 15925 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15926 | shlibpath_var=LD_LIBRARY_PATH |
| 15927 | hardcode_into_libs=yes |
| 15928 | ;; |
| 15929 | |
| 15930 | hpux9* | hpux10* | hpux11*) |
| 15931 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 15932 | # link against other versions. |
| 15933 | version_type=sunos |
| 15934 | need_lib_prefix=no |
| 15935 | need_version=no |
| 15936 | case "$host_cpu" in |
| 15937 | ia64*) |
| 15938 | shrext_cmds='.so' |
| 15939 | hardcode_into_libs=yes |
| 15940 | dynamic_linker="$host_os dld.so" |
| 15941 | shlibpath_var=LD_LIBRARY_PATH |
| 15942 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 15943 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15944 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15945 | if test "X$HPUX_IA64_MODE" = X32; then |
| 15946 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 15947 | else |
| 15948 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 15949 | fi |
| 15950 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 15951 | ;; |
| 15952 | hppa*64*) |
| 15953 | shrext_cmds='.sl' |
| 15954 | hardcode_into_libs=yes |
| 15955 | dynamic_linker="$host_os dld.sl" |
| 15956 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 15957 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 15958 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15959 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15960 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 15961 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 15962 | ;; |
| 15963 | *) |
| 15964 | shrext_cmds='.sl' |
| 15965 | dynamic_linker="$host_os dld.sl" |
| 15966 | shlibpath_var=SHLIB_PATH |
| 15967 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 15968 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15969 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15970 | ;; |
| 15971 | esac |
| 15972 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 15973 | postinstall_cmds='chmod 555 $lib' |
| 15974 | ;; |
| 15975 | |
| 15976 | irix5* | irix6* | nonstopux*) |
| 15977 | case $host_os in |
| 15978 | nonstopux*) version_type=nonstopux ;; |
| 15979 | *) |
| 15980 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 15981 | version_type=linux |
| 15982 | else |
| 15983 | version_type=irix |
| 15984 | fi ;; |
| 15985 | esac |
| 15986 | need_lib_prefix=no |
| 15987 | need_version=no |
| 15988 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15989 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 15990 | case $host_os in |
| 15991 | irix5* | nonstopux*) |
| 15992 | libsuff= shlibsuff= |
| 15993 | ;; |
| 15994 | *) |
| 15995 | case $LD in # libtool.m4 will add one of these switches to LD |
| 15996 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 15997 | libsuff= shlibsuff= libmagic=32-bit;; |
| 15998 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 15999 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 16000 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 16001 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 16002 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 16003 | esac |
| 16004 | ;; |
| 16005 | esac |
| 16006 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 16007 | shlibpath_overrides_runpath=no |
| 16008 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 16009 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 16010 | hardcode_into_libs=yes |
| 16011 | ;; |
| 16012 | |
| 16013 | # No shared lib support for Linux oldld, aout, or coff. |
| 16014 | linux*oldld* | linux*aout* | linux*coff*) |
| 16015 | dynamic_linker=no |
| 16016 | ;; |
| 16017 | |
| 16018 | # This must be Linux ELF. |
| 16019 | linux*) |
| 16020 | version_type=linux |
| 16021 | need_lib_prefix=no |
| 16022 | need_version=no |
| 16023 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16024 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16025 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 16026 | shlibpath_var=LD_LIBRARY_PATH |
| 16027 | shlibpath_overrides_runpath=no |
| 16028 | # This implies no fast_install, which is unacceptable. |
| 16029 | # Some rework will be needed to allow for fast_install |
| 16030 | # before this can be enabled. |
| 16031 | hardcode_into_libs=yes |
| 16032 | |
| 16033 | # Append ld.so.conf contents to the search path |
| 16034 | if test -f /etc/ld.so.conf; then |
| 16035 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
| 16036 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 16037 | fi |
| 16038 | |
| 16039 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 16040 | # powerpc, because MkLinux only supported shared libraries with the |
| 16041 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 16042 | # most powerpc-linux boxes support dynamic linking these days and |
| 16043 | # people can always --disable-shared, the test was removed, and we |
| 16044 | # assume the GNU/Linux dynamic linker is in use. |
| 16045 | dynamic_linker='GNU/Linux ld.so' |
| 16046 | ;; |
| 16047 | |
| 16048 | knetbsd*-gnu) |
| 16049 | version_type=linux |
| 16050 | need_lib_prefix=no |
| 16051 | need_version=no |
| 16052 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16053 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16054 | shlibpath_var=LD_LIBRARY_PATH |
| 16055 | shlibpath_overrides_runpath=no |
| 16056 | hardcode_into_libs=yes |
| 16057 | dynamic_linker='GNU ld.so' |
| 16058 | ;; |
| 16059 | |
| 16060 | netbsd*) |
| 16061 | version_type=sunos |
| 16062 | need_lib_prefix=no |
| 16063 | need_version=no |
| 16064 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 16065 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16066 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16067 | dynamic_linker='NetBSD (a.out) ld.so' |
| 16068 | else |
| 16069 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16070 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16071 | dynamic_linker='NetBSD ld.elf_so' |
| 16072 | fi |
| 16073 | shlibpath_var=LD_LIBRARY_PATH |
| 16074 | shlibpath_overrides_runpath=yes |
| 16075 | hardcode_into_libs=yes |
| 16076 | ;; |
| 16077 | |
| 16078 | newsos6) |
| 16079 | version_type=linux |
| 16080 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16081 | shlibpath_var=LD_LIBRARY_PATH |
| 16082 | shlibpath_overrides_runpath=yes |
| 16083 | ;; |
| 16084 | |
| 16085 | nto-qnx*) |
| 16086 | version_type=linux |
| 16087 | need_lib_prefix=no |
| 16088 | need_version=no |
| 16089 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16090 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16091 | shlibpath_var=LD_LIBRARY_PATH |
| 16092 | shlibpath_overrides_runpath=yes |
| 16093 | ;; |
| 16094 | |
| 16095 | openbsd*) |
| 16096 | version_type=sunos |
| 16097 | need_lib_prefix=no |
| 16098 | need_version=yes |
| 16099 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16100 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16101 | shlibpath_var=LD_LIBRARY_PATH |
| 16102 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 16103 | case $host_os in |
| 16104 | openbsd2.[89] | openbsd2.[89].*) |
| 16105 | shlibpath_overrides_runpath=no |
| 16106 | ;; |
| 16107 | *) |
| 16108 | shlibpath_overrides_runpath=yes |
| 16109 | ;; |
| 16110 | esac |
| 16111 | else |
| 16112 | shlibpath_overrides_runpath=yes |
| 16113 | fi |
| 16114 | ;; |
| 16115 | |
| 16116 | os2*) |
| 16117 | libname_spec='$name' |
| 16118 | shrext_cmds=".dll" |
| 16119 | need_lib_prefix=no |
| 16120 | library_names_spec='$libname${shared_ext} $libname.a' |
| 16121 | dynamic_linker='OS/2 ld.exe' |
| 16122 | shlibpath_var=LIBPATH |
| 16123 | ;; |
| 16124 | |
| 16125 | osf3* | osf4* | osf5*) |
| 16126 | version_type=osf |
| 16127 | need_lib_prefix=no |
| 16128 | need_version=no |
| 16129 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16130 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16131 | shlibpath_var=LD_LIBRARY_PATH |
| 16132 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 16133 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 16134 | ;; |
| 16135 | |
| 16136 | sco3.2v5*) |
| 16137 | version_type=osf |
| 16138 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16139 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16140 | shlibpath_var=LD_LIBRARY_PATH |
| 16141 | ;; |
| 16142 | |
| 16143 | solaris*) |
| 16144 | version_type=linux |
| 16145 | need_lib_prefix=no |
| 16146 | need_version=no |
| 16147 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16148 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16149 | shlibpath_var=LD_LIBRARY_PATH |
| 16150 | shlibpath_overrides_runpath=yes |
| 16151 | hardcode_into_libs=yes |
| 16152 | # ldd complains unless libraries are executable |
| 16153 | postinstall_cmds='chmod +x $lib' |
| 16154 | ;; |
| 16155 | |
| 16156 | sunos4*) |
| 16157 | version_type=sunos |
| 16158 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16159 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 16160 | shlibpath_var=LD_LIBRARY_PATH |
| 16161 | shlibpath_overrides_runpath=yes |
| 16162 | if test "$with_gnu_ld" = yes; then |
| 16163 | need_lib_prefix=no |
| 16164 | fi |
| 16165 | need_version=yes |
| 16166 | ;; |
| 16167 | |
| 16168 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 16169 | version_type=linux |
| 16170 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16171 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16172 | shlibpath_var=LD_LIBRARY_PATH |
| 16173 | case $host_vendor in |
| 16174 | sni) |
| 16175 | shlibpath_overrides_runpath=no |
| 16176 | need_lib_prefix=no |
| 16177 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 16178 | runpath_var=LD_RUN_PATH |
| 16179 | ;; |
| 16180 | siemens) |
| 16181 | need_lib_prefix=no |
| 16182 | ;; |
| 16183 | motorola) |
| 16184 | need_lib_prefix=no |
| 16185 | need_version=no |
| 16186 | shlibpath_overrides_runpath=no |
| 16187 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 16188 | ;; |
| 16189 | esac |
| 16190 | ;; |
| 16191 | |
| 16192 | sysv4*MP*) |
| 16193 | if test -d /usr/nec ;then |
| 16194 | version_type=linux |
| 16195 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 16196 | soname_spec='$libname${shared_ext}.$major' |
| 16197 | shlibpath_var=LD_LIBRARY_PATH |
| 16198 | fi |
| 16199 | ;; |
| 16200 | |
| 16201 | uts4*) |
| 16202 | version_type=linux |
| 16203 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16204 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16205 | shlibpath_var=LD_LIBRARY_PATH |
| 16206 | ;; |
| 16207 | |
| 16208 | *) |
| 16209 | dynamic_linker=no |
| 16210 | ;; |
| 16211 | esac |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16212 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 16213 | echo "${ECHO_T}$dynamic_linker" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16214 | test "$dynamic_linker" = no && can_build_shared=no |
| 16215 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16216 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 16217 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16218 | hardcode_action_F77= |
| 16219 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
| 16220 | test -n "$runpath_var F77" || \ |
| 16221 | test "X$hardcode_automatic_F77"="Xyes" ; then |
| 16222 | |
| 16223 | # We can hardcode non-existant directories. |
| 16224 | if test "$hardcode_direct_F77" != no && |
| 16225 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 16226 | # have to relink, otherwise we might link with an installed library |
| 16227 | # when we should be linking with a yet-to-be-installed one |
| 16228 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
| 16229 | test "$hardcode_minus_L_F77" != no; then |
| 16230 | # Linking always hardcodes the temporary library directory. |
| 16231 | hardcode_action_F77=relink |
| 16232 | else |
| 16233 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 16234 | hardcode_action_F77=immediate |
| 16235 | fi |
| 16236 | else |
| 16237 | # We cannot hardcode anything, or else we can only hardcode existing |
| 16238 | # directories. |
| 16239 | hardcode_action_F77=unsupported |
| 16240 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16241 | { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
| 16242 | echo "${ECHO_T}$hardcode_action_F77" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16243 | |
| 16244 | if test "$hardcode_action_F77" = relink; then |
| 16245 | # Fast installation is not supported |
| 16246 | enable_fast_install=no |
| 16247 | elif test "$shlibpath_overrides_runpath" = yes || |
| 16248 | test "$enable_shared" = no; then |
| 16249 | # Fast installation is not necessary |
| 16250 | enable_fast_install=needless |
| 16251 | fi |
| 16252 | |
| 16253 | striplib= |
| 16254 | old_striplib= |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16255 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 16256 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16257 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 16258 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 16259 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16260 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16261 | echo "${ECHO_T}yes" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16262 | else |
| 16263 | # FIXME - insert some real tests, host_os isn't really good enough |
| 16264 | case $host_os in |
| 16265 | darwin*) |
| 16266 | if test -n "$STRIP" ; then |
| 16267 | striplib="$STRIP -x" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16268 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16269 | echo "${ECHO_T}yes" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16270 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16271 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16272 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16273 | fi |
| 16274 | ;; |
| 16275 | *) |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16276 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16277 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16278 | ;; |
| 16279 | esac |
| 16280 | fi |
| 16281 | |
| 16282 | |
| 16283 | |
| 16284 | # The else clause should only fire when bootstrapping the |
| 16285 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 16286 | # with your package, and you will get complaints that there are |
| 16287 | # no rules to generate ltmain.sh. |
| 16288 | if test -f "$ltmain"; then |
| 16289 | # See if we are running on zsh, and set the options which allow our commands through |
| 16290 | # without removal of \ escapes. |
| 16291 | if test -n "${ZSH_VERSION+set}" ; then |
| 16292 | setopt NO_GLOB_SUBST |
| 16293 | fi |
| 16294 | # Now quote all the things that may contain metacharacters while being |
| 16295 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 16296 | # variables and quote the copies for generation of the libtool script. |
| 16297 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 16298 | SED SHELL STRIP \ |
| 16299 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 16300 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 16301 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 16302 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 16303 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 16304 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 16305 | old_postinstall_cmds old_postuninstall_cmds \ |
| 16306 | compiler_F77 \ |
| 16307 | CC_F77 \ |
| 16308 | LD_F77 \ |
| 16309 | lt_prog_compiler_wl_F77 \ |
| 16310 | lt_prog_compiler_pic_F77 \ |
| 16311 | lt_prog_compiler_static_F77 \ |
| 16312 | lt_prog_compiler_no_builtin_flag_F77 \ |
| 16313 | export_dynamic_flag_spec_F77 \ |
| 16314 | thread_safe_flag_spec_F77 \ |
| 16315 | whole_archive_flag_spec_F77 \ |
| 16316 | enable_shared_with_static_runtimes_F77 \ |
| 16317 | old_archive_cmds_F77 \ |
| 16318 | old_archive_from_new_cmds_F77 \ |
| 16319 | predep_objects_F77 \ |
| 16320 | postdep_objects_F77 \ |
| 16321 | predeps_F77 \ |
| 16322 | postdeps_F77 \ |
| 16323 | compiler_lib_search_path_F77 \ |
| 16324 | archive_cmds_F77 \ |
| 16325 | archive_expsym_cmds_F77 \ |
| 16326 | postinstall_cmds_F77 \ |
| 16327 | postuninstall_cmds_F77 \ |
| 16328 | old_archive_from_expsyms_cmds_F77 \ |
| 16329 | allow_undefined_flag_F77 \ |
| 16330 | no_undefined_flag_F77 \ |
| 16331 | export_symbols_cmds_F77 \ |
| 16332 | hardcode_libdir_flag_spec_F77 \ |
| 16333 | hardcode_libdir_flag_spec_ld_F77 \ |
| 16334 | hardcode_libdir_separator_F77 \ |
| 16335 | hardcode_automatic_F77 \ |
| 16336 | module_cmds_F77 \ |
| 16337 | module_expsym_cmds_F77 \ |
| 16338 | lt_cv_prog_compiler_c_o_F77 \ |
| 16339 | exclude_expsyms_F77 \ |
| 16340 | include_expsyms_F77; do |
| 16341 | |
| 16342 | case $var in |
| 16343 | old_archive_cmds_F77 | \ |
| 16344 | old_archive_from_new_cmds_F77 | \ |
| 16345 | archive_cmds_F77 | \ |
| 16346 | archive_expsym_cmds_F77 | \ |
| 16347 | module_cmds_F77 | \ |
| 16348 | module_expsym_cmds_F77 | \ |
| 16349 | old_archive_from_expsyms_cmds_F77 | \ |
| 16350 | export_symbols_cmds_F77 | \ |
| 16351 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 16352 | postinstall_cmds | postuninstall_cmds | \ |
| 16353 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 16354 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 16355 | # Double-quote double-evaled strings. |
| 16356 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 16357 | ;; |
| 16358 | *) |
| 16359 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 16360 | ;; |
| 16361 | esac |
| 16362 | done |
| 16363 | |
| 16364 | case $lt_echo in |
| 16365 | *'\$0 --fallback-echo"') |
| 16366 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 16367 | ;; |
| 16368 | esac |
| 16369 | |
| 16370 | cfgfile="$ofile" |
| 16371 | |
| 16372 | cat <<__EOF__ >> "$cfgfile" |
| 16373 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 16374 | |
| 16375 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 16376 | |
| 16377 | # Shell to use when invoking shell scripts. |
| 16378 | SHELL=$lt_SHELL |
| 16379 | |
| 16380 | # Whether or not to build shared libraries. |
| 16381 | build_libtool_libs=$enable_shared |
| 16382 | |
| 16383 | # Whether or not to build static libraries. |
| 16384 | build_old_libs=$enable_static |
| 16385 | |
| 16386 | # Whether or not to add -lc for building shared libraries. |
| 16387 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
| 16388 | |
| 16389 | # Whether or not to disallow shared libs when runtime libs are static |
| 16390 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
| 16391 | |
| 16392 | # Whether or not to optimize for fast installation. |
| 16393 | fast_install=$enable_fast_install |
| 16394 | |
| 16395 | # The host system. |
| 16396 | host_alias=$host_alias |
| 16397 | host=$host |
| 16398 | |
| 16399 | # An echo program that does not interpret backslashes. |
| 16400 | echo=$lt_echo |
| 16401 | |
| 16402 | # The archiver. |
| 16403 | AR=$lt_AR |
| 16404 | AR_FLAGS=$lt_AR_FLAGS |
| 16405 | |
| 16406 | # A C compiler. |
| 16407 | LTCC=$lt_LTCC |
| 16408 | |
| 16409 | # A language-specific compiler. |
| 16410 | CC=$lt_compiler_F77 |
| 16411 | |
| 16412 | # Is the compiler the GNU C compiler? |
| 16413 | with_gcc=$GCC_F77 |
| 16414 | |
| 16415 | # An ERE matcher. |
| 16416 | EGREP=$lt_EGREP |
| 16417 | |
| 16418 | # The linker used to build libraries. |
| 16419 | LD=$lt_LD_F77 |
| 16420 | |
| 16421 | # Whether we need hard or soft links. |
| 16422 | LN_S=$lt_LN_S |
| 16423 | |
| 16424 | # A BSD-compatible nm program. |
| 16425 | NM=$lt_NM |
| 16426 | |
| 16427 | # A symbol stripping program |
| 16428 | STRIP=$lt_STRIP |
| 16429 | |
| 16430 | # Used to examine libraries when file_magic_cmd begins "file" |
| 16431 | MAGIC_CMD=$MAGIC_CMD |
| 16432 | |
| 16433 | # Used on cygwin: DLL creation program. |
| 16434 | DLLTOOL="$DLLTOOL" |
| 16435 | |
| 16436 | # Used on cygwin: object dumper. |
| 16437 | OBJDUMP="$OBJDUMP" |
| 16438 | |
| 16439 | # Used on cygwin: assembler. |
| 16440 | AS="$AS" |
| 16441 | |
| 16442 | # The name of the directory that contains temporary libtool files. |
| 16443 | objdir=$objdir |
| 16444 | |
| 16445 | # How to create reloadable object files. |
| 16446 | reload_flag=$lt_reload_flag |
| 16447 | reload_cmds=$lt_reload_cmds |
| 16448 | |
| 16449 | # How to pass a linker flag through the compiler. |
| 16450 | wl=$lt_lt_prog_compiler_wl_F77 |
| 16451 | |
| 16452 | # Object file suffix (normally "o"). |
| 16453 | objext="$ac_objext" |
| 16454 | |
| 16455 | # Old archive suffix (normally "a"). |
| 16456 | libext="$libext" |
| 16457 | |
| 16458 | # Shared library suffix (normally ".so"). |
| 16459 | shrext_cmds='$shrext_cmds' |
| 16460 | |
| 16461 | # Executable file suffix (normally ""). |
| 16462 | exeext="$exeext" |
| 16463 | |
| 16464 | # Additional compiler flags for building library objects. |
| 16465 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
| 16466 | pic_mode=$pic_mode |
| 16467 | |
| 16468 | # What is the maximum length of a command? |
| 16469 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 16470 | |
| 16471 | # Does compiler simultaneously support -c and -o options? |
| 16472 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
| 16473 | |
| 16474 | # Must we lock files when doing compilation ? |
| 16475 | need_locks=$lt_need_locks |
| 16476 | |
| 16477 | # Do we need the lib prefix for modules? |
| 16478 | need_lib_prefix=$need_lib_prefix |
| 16479 | |
| 16480 | # Do we need a version for libraries? |
| 16481 | need_version=$need_version |
| 16482 | |
| 16483 | # Whether dlopen is supported. |
| 16484 | dlopen_support=$enable_dlopen |
| 16485 | |
| 16486 | # Whether dlopen of programs is supported. |
| 16487 | dlopen_self=$enable_dlopen_self |
| 16488 | |
| 16489 | # Whether dlopen of statically linked programs is supported. |
| 16490 | dlopen_self_static=$enable_dlopen_self_static |
| 16491 | |
| 16492 | # Compiler flag to prevent dynamic linking. |
| 16493 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
| 16494 | |
| 16495 | # Compiler flag to turn off builtin functions. |
| 16496 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
| 16497 | |
| 16498 | # Compiler flag to allow reflexive dlopens. |
| 16499 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
| 16500 | |
| 16501 | # Compiler flag to generate shared objects directly from archives. |
| 16502 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
| 16503 | |
| 16504 | # Compiler flag to generate thread-safe objects. |
| 16505 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
| 16506 | |
| 16507 | # Library versioning type. |
| 16508 | version_type=$version_type |
| 16509 | |
| 16510 | # Format of library name prefix. |
| 16511 | libname_spec=$lt_libname_spec |
| 16512 | |
| 16513 | # List of archive names. First name is the real one, the rest are links. |
| 16514 | # The last name is the one that the linker finds with -lNAME. |
| 16515 | library_names_spec=$lt_library_names_spec |
| 16516 | |
| 16517 | # The coded name of the library, if different from the real name. |
| 16518 | soname_spec=$lt_soname_spec |
| 16519 | |
| 16520 | # Commands used to build and install an old-style archive. |
| 16521 | RANLIB=$lt_RANLIB |
| 16522 | old_archive_cmds=$lt_old_archive_cmds_F77 |
| 16523 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 16524 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 16525 | |
| 16526 | # Create an old-style archive from a shared archive. |
| 16527 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
| 16528 | |
| 16529 | # Create a temporary old-style archive to link instead of a shared archive. |
| 16530 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
| 16531 | |
| 16532 | # Commands used to build and install a shared archive. |
| 16533 | archive_cmds=$lt_archive_cmds_F77 |
| 16534 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
| 16535 | postinstall_cmds=$lt_postinstall_cmds |
| 16536 | postuninstall_cmds=$lt_postuninstall_cmds |
| 16537 | |
| 16538 | # Commands used to build a loadable module (assumed same as above if empty) |
| 16539 | module_cmds=$lt_module_cmds_F77 |
| 16540 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
| 16541 | |
| 16542 | # Commands to strip libraries. |
| 16543 | old_striplib=$lt_old_striplib |
| 16544 | striplib=$lt_striplib |
| 16545 | |
| 16546 | # Dependencies to place before the objects being linked to create a |
| 16547 | # shared library. |
| 16548 | predep_objects=$lt_predep_objects_F77 |
| 16549 | |
| 16550 | # Dependencies to place after the objects being linked to create a |
| 16551 | # shared library. |
| 16552 | postdep_objects=$lt_postdep_objects_F77 |
| 16553 | |
| 16554 | # Dependencies to place before the objects being linked to create a |
| 16555 | # shared library. |
| 16556 | predeps=$lt_predeps_F77 |
| 16557 | |
| 16558 | # Dependencies to place after the objects being linked to create a |
| 16559 | # shared library. |
| 16560 | postdeps=$lt_postdeps_F77 |
| 16561 | |
| 16562 | # The library search path used internally by the compiler when linking |
| 16563 | # a shared library. |
| 16564 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
| 16565 | |
| 16566 | # Method to check whether dependent libraries are shared objects. |
| 16567 | deplibs_check_method=$lt_deplibs_check_method |
| 16568 | |
| 16569 | # Command to use when deplibs_check_method == file_magic. |
| 16570 | file_magic_cmd=$lt_file_magic_cmd |
| 16571 | |
| 16572 | # Flag that allows shared libraries with undefined symbols to be built. |
| 16573 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
| 16574 | |
| 16575 | # Flag that forces no undefined symbols. |
| 16576 | no_undefined_flag=$lt_no_undefined_flag_F77 |
| 16577 | |
| 16578 | # Commands used to finish a libtool library installation in a directory. |
| 16579 | finish_cmds=$lt_finish_cmds |
| 16580 | |
| 16581 | # Same as above, but a single script fragment to be evaled but not shown. |
| 16582 | finish_eval=$lt_finish_eval |
| 16583 | |
| 16584 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 16585 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 16586 | |
| 16587 | # Transform the output of nm in a proper C declaration |
| 16588 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 16589 | |
| 16590 | # Transform the output of nm in a C name address pair |
| 16591 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 16592 | |
| 16593 | # This is the shared library runtime path variable. |
| 16594 | runpath_var=$runpath_var |
| 16595 | |
| 16596 | # This is the shared library path variable. |
| 16597 | shlibpath_var=$shlibpath_var |
| 16598 | |
| 16599 | # Is shlibpath searched before the hard-coded library search path? |
| 16600 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 16601 | |
| 16602 | # How to hardcode a shared library path into an executable. |
| 16603 | hardcode_action=$hardcode_action_F77 |
| 16604 | |
| 16605 | # Whether we should hardcode library paths into libraries. |
| 16606 | hardcode_into_libs=$hardcode_into_libs |
| 16607 | |
| 16608 | # Flag to hardcode \$libdir into a binary during linking. |
| 16609 | # This must work even if \$libdir does not exist. |
| 16610 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
| 16611 | |
| 16612 | # If ld is used when linking, flag to hardcode \$libdir into |
| 16613 | # a binary during linking. This must work even if \$libdir does |
| 16614 | # not exist. |
| 16615 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
| 16616 | |
| 16617 | # Whether we need a single -rpath flag with a separated argument. |
| 16618 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
| 16619 | |
| 16620 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 16621 | # resulting binary. |
| 16622 | hardcode_direct=$hardcode_direct_F77 |
| 16623 | |
| 16624 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 16625 | # resulting binary. |
| 16626 | hardcode_minus_L=$hardcode_minus_L_F77 |
| 16627 | |
| 16628 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 16629 | # the resulting binary. |
| 16630 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
| 16631 | |
| 16632 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 16633 | # and all subsequent libraries and executables linked against it. |
| 16634 | hardcode_automatic=$hardcode_automatic_F77 |
| 16635 | |
| 16636 | # Variables whose values should be saved in libtool wrapper scripts and |
| 16637 | # restored at relink time. |
| 16638 | variables_saved_for_relink="$variables_saved_for_relink" |
| 16639 | |
| 16640 | # Whether libtool must link a program against all its dependency libraries. |
| 16641 | link_all_deplibs=$link_all_deplibs_F77 |
| 16642 | |
| 16643 | # Compile-time system search path for libraries |
| 16644 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 16645 | |
| 16646 | # Run-time system search path for libraries |
| 16647 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 16648 | |
| 16649 | # Fix the shell variable \$srcfile for the compiler. |
| 16650 | fix_srcfile_path="$fix_srcfile_path_F77" |
| 16651 | |
| 16652 | # Set to yes if exported symbols are required. |
| 16653 | always_export_symbols=$always_export_symbols_F77 |
| 16654 | |
| 16655 | # The commands to list exported symbols. |
| 16656 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
| 16657 | |
| 16658 | # The commands to extract the exported symbol list from a shared archive. |
| 16659 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 16660 | |
| 16661 | # Symbols that should not be listed in the preloaded symbols. |
| 16662 | exclude_expsyms=$lt_exclude_expsyms_F77 |
| 16663 | |
| 16664 | # Symbols that must always be exported. |
| 16665 | include_expsyms=$lt_include_expsyms_F77 |
| 16666 | |
| 16667 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 16668 | |
| 16669 | __EOF__ |
| 16670 | |
| 16671 | |
| 16672 | else |
| 16673 | # If there is no Makefile yet, we rely on a make rule to execute |
| 16674 | # `config.status --recheck' to rerun these tests and create the |
| 16675 | # libtool script then. |
| 16676 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 16677 | if test -f "$ltmain_in"; then |
| 16678 | test -f Makefile && make "$ltmain" |
| 16679 | fi |
| 16680 | fi |
| 16681 | |
| 16682 | |
| 16683 | ac_ext=c |
| 16684 | ac_cpp='$CPP $CPPFLAGS' |
| 16685 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16686 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16687 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 16688 | |
| 16689 | CC="$lt_save_CC" |
| 16690 | |
| 16691 | else |
| 16692 | tagname="" |
| 16693 | fi |
| 16694 | ;; |
| 16695 | |
| 16696 | GCJ) |
| 16697 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
| 16698 | |
| 16699 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16700 | # Source file extension for Java test sources. |
| 16701 | ac_ext=java |
| 16702 | |
| 16703 | # Object file extension for compiled Java test sources. |
| 16704 | objext=o |
| 16705 | objext_GCJ=$objext |
| 16706 | |
| 16707 | # Code to be used in simple compile tests |
| 16708 | lt_simple_compile_test_code="class foo {}\n" |
| 16709 | |
| 16710 | # Code to be used in simple link tests |
| 16711 | lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' |
| 16712 | |
| 16713 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 16714 | |
| 16715 | # If no C compiler was specified, use CC. |
| 16716 | LTCC=${LTCC-"$CC"} |
| 16717 | |
| 16718 | # Allow CC to be a program name with arguments. |
| 16719 | compiler=$CC |
| 16720 | |
| 16721 | |
| 16722 | # Allow CC to be a program name with arguments. |
| 16723 | lt_save_CC="$CC" |
| 16724 | CC=${GCJ-"gcj"} |
| 16725 | compiler=$CC |
| 16726 | compiler_GCJ=$CC |
| 16727 | |
| 16728 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
| 16729 | archive_cmds_need_lc_GCJ=no |
| 16730 | |
| 16731 | |
| 16732 | lt_prog_compiler_no_builtin_flag_GCJ= |
| 16733 | |
| 16734 | if test "$GCC" = yes; then |
| 16735 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
| 16736 | |
| 16737 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16738 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 16739 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16740 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 16741 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16742 | else |
| 16743 | lt_cv_prog_compiler_rtti_exceptions=no |
| 16744 | ac_outfile=conftest.$ac_objext |
| 16745 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16746 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 16747 | # Insert the option either (1) after the last *FLAGS variable, or |
| 16748 | # (2) before a word containing "conftest.", or (3) at the end. |
| 16749 | # Note that $ac_compile itself does not contain backslashes and begins |
| 16750 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 16751 | # The option is referenced via a variable to avoid confusing sed. |
| 16752 | lt_compile=`echo "$ac_compile" | $SED \ |
| 16753 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 16754 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 16755 | -e 's:$: $lt_compiler_flag:'` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16756 | (eval echo "\"\$as_me:16756: $lt_compile\"" >&5) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16757 | (eval "$lt_compile" 2>conftest.err) |
| 16758 | ac_status=$? |
| 16759 | cat conftest.err >&5 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16760 | echo "$as_me:16760: \$? = $ac_status" >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16761 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 16762 | # The compiler can only warn and ignore the option if not recognized |
| 16763 | # So say no if there are warnings |
| 16764 | if test ! -s conftest.err; then |
| 16765 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 16766 | fi |
| 16767 | fi |
| 16768 | $rm conftest* |
| 16769 | |
| 16770 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16771 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 16772 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16773 | |
| 16774 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 16775 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
| 16776 | else |
| 16777 | : |
| 16778 | fi |
| 16779 | |
| 16780 | fi |
| 16781 | |
| 16782 | lt_prog_compiler_wl_GCJ= |
| 16783 | lt_prog_compiler_pic_GCJ= |
| 16784 | lt_prog_compiler_static_GCJ= |
| 16785 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16786 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 16787 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16788 | |
| 16789 | if test "$GCC" = yes; then |
| 16790 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16791 | lt_prog_compiler_static_GCJ='-static' |
| 16792 | |
| 16793 | case $host_os in |
| 16794 | aix*) |
| 16795 | # All AIX code is PIC. |
| 16796 | if test "$host_cpu" = ia64; then |
| 16797 | # AIX 5 now supports IA64 processor |
| 16798 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16799 | fi |
| 16800 | ;; |
| 16801 | |
| 16802 | amigaos*) |
| 16803 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 16804 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 16805 | # like `-m68040'. |
| 16806 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
| 16807 | ;; |
| 16808 | |
| 16809 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 16810 | # PIC is the default for these OSes. |
| 16811 | ;; |
| 16812 | |
| 16813 | mingw* | pw32* | os2*) |
| 16814 | # This hack is so that the source file can tell whether it is being |
| 16815 | # built for inclusion in a dll (and should export symbols for example). |
| 16816 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 16817 | ;; |
| 16818 | |
| 16819 | darwin* | rhapsody*) |
| 16820 | # PIC is the default on this platform |
| 16821 | # Common symbols not allowed in MH_DYLIB files |
| 16822 | lt_prog_compiler_pic_GCJ='-fno-common' |
| 16823 | ;; |
| 16824 | |
| 16825 | msdosdjgpp*) |
| 16826 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 16827 | # on systems that don't support them. |
| 16828 | lt_prog_compiler_can_build_shared_GCJ=no |
| 16829 | enable_shared=no |
| 16830 | ;; |
| 16831 | |
| 16832 | sysv4*MP*) |
| 16833 | if test -d /usr/nec; then |
| 16834 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
| 16835 | fi |
| 16836 | ;; |
| 16837 | |
| 16838 | hpux*) |
| 16839 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 16840 | # not for PA HP-UX. |
| 16841 | case "$host_cpu" in |
| 16842 | hppa*64*|ia64*) |
| 16843 | # +Z the default |
| 16844 | ;; |
| 16845 | *) |
| 16846 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 16847 | ;; |
| 16848 | esac |
| 16849 | ;; |
| 16850 | |
| 16851 | *) |
| 16852 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 16853 | ;; |
| 16854 | esac |
| 16855 | else |
| 16856 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 16857 | case $host_os in |
| 16858 | aix*) |
| 16859 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16860 | if test "$host_cpu" = ia64; then |
| 16861 | # AIX 5 now supports IA64 processor |
| 16862 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16863 | else |
| 16864 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
| 16865 | fi |
| 16866 | ;; |
| 16867 | |
| 16868 | mingw* | pw32* | os2*) |
| 16869 | # This hack is so that the source file can tell whether it is being |
| 16870 | # built for inclusion in a dll (and should export symbols for example). |
| 16871 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 16872 | ;; |
| 16873 | |
| 16874 | hpux9* | hpux10* | hpux11*) |
| 16875 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16876 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 16877 | # not for PA HP-UX. |
| 16878 | case "$host_cpu" in |
| 16879 | hppa*64*|ia64*) |
| 16880 | # +Z the default |
| 16881 | ;; |
| 16882 | *) |
| 16883 | lt_prog_compiler_pic_GCJ='+Z' |
| 16884 | ;; |
| 16885 | esac |
| 16886 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 16887 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
| 16888 | ;; |
| 16889 | |
| 16890 | irix5* | irix6* | nonstopux*) |
| 16891 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16892 | # PIC (with -KPIC) is the default. |
| 16893 | lt_prog_compiler_static_GCJ='-non_shared' |
| 16894 | ;; |
| 16895 | |
| 16896 | newsos6) |
| 16897 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 16898 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16899 | ;; |
| 16900 | |
| 16901 | linux*) |
| 16902 | case $CC in |
| 16903 | icc* | ecc*) |
| 16904 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16905 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 16906 | lt_prog_compiler_static_GCJ='-static' |
| 16907 | ;; |
| 16908 | ccc*) |
| 16909 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16910 | # All Alpha code is PIC. |
| 16911 | lt_prog_compiler_static_GCJ='-non_shared' |
| 16912 | ;; |
| 16913 | esac |
| 16914 | ;; |
| 16915 | |
| 16916 | osf3* | osf4* | osf5*) |
| 16917 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16918 | # All OSF/1 code is PIC. |
| 16919 | lt_prog_compiler_static_GCJ='-non_shared' |
| 16920 | ;; |
| 16921 | |
| 16922 | sco3.2v5*) |
| 16923 | lt_prog_compiler_pic_GCJ='-Kpic' |
| 16924 | lt_prog_compiler_static_GCJ='-dn' |
| 16925 | ;; |
| 16926 | |
| 16927 | solaris*) |
| 16928 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16929 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 16930 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16931 | ;; |
| 16932 | |
| 16933 | sunos4*) |
| 16934 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
| 16935 | lt_prog_compiler_pic_GCJ='-PIC' |
| 16936 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16937 | ;; |
| 16938 | |
| 16939 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 16940 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16941 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 16942 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16943 | ;; |
| 16944 | |
| 16945 | sysv4*MP*) |
| 16946 | if test -d /usr/nec ;then |
| 16947 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
| 16948 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16949 | fi |
| 16950 | ;; |
| 16951 | |
| 16952 | uts4*) |
| 16953 | lt_prog_compiler_pic_GCJ='-pic' |
| 16954 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16955 | ;; |
| 16956 | |
| 16957 | *) |
| 16958 | lt_prog_compiler_can_build_shared_GCJ=no |
| 16959 | ;; |
| 16960 | esac |
| 16961 | fi |
| 16962 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16963 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
| 16964 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16965 | |
| 16966 | # |
| 16967 | # Check to make sure the PIC flag actually works. |
| 16968 | # |
| 16969 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
| 16970 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16971 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
| 16972 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16973 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
| 16974 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16975 | else |
| 16976 | lt_prog_compiler_pic_works_GCJ=no |
| 16977 | ac_outfile=conftest.$ac_objext |
| 16978 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16979 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
| 16980 | # Insert the option either (1) after the last *FLAGS variable, or |
| 16981 | # (2) before a word containing "conftest.", or (3) at the end. |
| 16982 | # Note that $ac_compile itself does not contain backslashes and begins |
| 16983 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 16984 | # The option is referenced via a variable to avoid confusing sed. |
| 16985 | lt_compile=`echo "$ac_compile" | $SED \ |
| 16986 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 16987 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 16988 | -e 's:$: $lt_compiler_flag:'` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16989 | (eval echo "\"\$as_me:16989: $lt_compile\"" >&5) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16990 | (eval "$lt_compile" 2>conftest.err) |
| 16991 | ac_status=$? |
| 16992 | cat conftest.err >&5 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16993 | echo "$as_me:16993: \$? = $ac_status" >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16994 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 16995 | # The compiler can only warn and ignore the option if not recognized |
| 16996 | # So say no if there are warnings |
| 16997 | if test ! -s conftest.err; then |
| 16998 | lt_prog_compiler_pic_works_GCJ=yes |
| 16999 | fi |
| 17000 | fi |
| 17001 | $rm conftest* |
| 17002 | |
| 17003 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 17004 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
| 17005 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17006 | |
| 17007 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
| 17008 | case $lt_prog_compiler_pic_GCJ in |
| 17009 | "" | " "*) ;; |
| 17010 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
| 17011 | esac |
| 17012 | else |
| 17013 | lt_prog_compiler_pic_GCJ= |
| 17014 | lt_prog_compiler_can_build_shared_GCJ=no |
| 17015 | fi |
| 17016 | |
| 17017 | fi |
| 17018 | case "$host_os" in |
| 17019 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 17020 | *djgpp*) |
| 17021 | lt_prog_compiler_pic_GCJ= |
| 17022 | ;; |
| 17023 | *) |
| 17024 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
| 17025 | ;; |
| 17026 | esac |
| 17027 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 17028 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 17029 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17030 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
| 17031 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17032 | else |
| 17033 | lt_cv_prog_compiler_c_o_GCJ=no |
| 17034 | $rm -r conftest 2>/dev/null |
| 17035 | mkdir conftest |
| 17036 | cd conftest |
| 17037 | mkdir out |
| 17038 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 17039 | |
| 17040 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 17041 | # Insert the option either (1) after the last *FLAGS variable, or |
| 17042 | # (2) before a word containing "conftest.", or (3) at the end. |
| 17043 | # Note that $ac_compile itself does not contain backslashes and begins |
| 17044 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 17045 | lt_compile=`echo "$ac_compile" | $SED \ |
| 17046 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 17047 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 17048 | -e 's:$: $lt_compiler_flag:'` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 17049 | (eval echo "\"\$as_me:17049: $lt_compile\"" >&5) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17050 | (eval "$lt_compile" 2>out/conftest.err) |
| 17051 | ac_status=$? |
| 17052 | cat out/conftest.err >&5 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 17053 | echo "$as_me:17053: \$? = $ac_status" >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17054 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 17055 | then |
| 17056 | # The compiler can only warn and ignore the option if not recognized |
| 17057 | # So say no if there are warnings |
| 17058 | if test ! -s out/conftest.err; then |
| 17059 | lt_cv_prog_compiler_c_o_GCJ=yes |
| 17060 | fi |
| 17061 | fi |
| 17062 | chmod u+w . |
| 17063 | $rm conftest* |
| 17064 | # SGI C++ compiler will create directory out/ii_files/ for |
| 17065 | # template instantiation |
| 17066 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 17067 | $rm out/* && rmdir out |
| 17068 | cd .. |
| 17069 | rmdir conftest |
| 17070 | $rm conftest* |
| 17071 | |
| 17072 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 17073 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
| 17074 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17075 | |
| 17076 | |
| 17077 | hard_links="nottested" |
| 17078 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
| 17079 | # do not overwrite the value of need_locks provided by the user |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 17080 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 17081 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17082 | hard_links=yes |
| 17083 | $rm conftest* |
| 17084 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 17085 | touch conftest.a |
| 17086 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 17087 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 17088 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 17089 | echo "${ECHO_T}$hard_links" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17090 | if test "$hard_links" = no; then |
| 17091 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 17092 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 17093 | need_locks=warn |
| 17094 | fi |
| 17095 | else |
| 17096 | need_locks=no |
| 17097 | fi |
| 17098 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 17099 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 17100 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17101 | |
| 17102 | runpath_var= |
| 17103 | allow_undefined_flag_GCJ= |
| 17104 | enable_shared_with_static_runtimes_GCJ=no |
| 17105 | archive_cmds_GCJ= |
| 17106 | archive_expsym_cmds_GCJ= |
| 17107 | old_archive_From_new_cmds_GCJ= |
| 17108 | old_archive_from_expsyms_cmds_GCJ= |
| 17109 | export_dynamic_flag_spec_GCJ= |
| 17110 | whole_archive_flag_spec_GCJ= |
| 17111 | thread_safe_flag_spec_GCJ= |
| 17112 | hardcode_libdir_flag_spec_GCJ= |
| 17113 | hardcode_libdir_flag_spec_ld_GCJ= |
| 17114 | hardcode_libdir_separator_GCJ= |
| 17115 | hardcode_direct_GCJ=no |
| 17116 | hardcode_minus_L_GCJ=no |
| 17117 | hardcode_shlibpath_var_GCJ=unsupported |
| 17118 | link_all_deplibs_GCJ=unknown |
| 17119 | hardcode_automatic_GCJ=no |
| 17120 | module_cmds_GCJ= |
| 17121 | module_expsym_cmds_GCJ= |
| 17122 | always_export_symbols_GCJ=no |
| 17123 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 17124 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 17125 | # included in the symbol list |
| 17126 | include_expsyms_GCJ= |
| 17127 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 17128 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 17129 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 17130 | # as well as any symbol that contains `d'. |
| 17131 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
| 17132 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 17133 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 17134 | # the symbol is explicitly referenced. Since portable code cannot |
| 17135 | # rely on this symbol name, it's probably fine to never include it in |
| 17136 | # preloaded symbol tables. |
| 17137 | extract_expsyms_cmds= |
| 17138 | |
| 17139 | case $host_os in |
| 17140 | cygwin* | mingw* | pw32*) |
| 17141 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 17142 | # When not using gcc, we currently assume that we are using |
| 17143 | # Microsoft Visual C++. |
| 17144 | if test "$GCC" != yes; then |
| 17145 | with_gnu_ld=no |
| 17146 | fi |
| 17147 | ;; |
| 17148 | openbsd*) |
| 17149 | with_gnu_ld=no |
| 17150 | ;; |
| 17151 | esac |
| 17152 | |
| 17153 | ld_shlibs_GCJ=yes |
| 17154 | if test "$with_gnu_ld" = yes; then |
| 17155 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 17156 | wlarc='${wl}' |
| 17157 | |
| 17158 | # See if GNU ld supports shared libraries. |
| 17159 | case $host_os in |
| 17160 | aix3* | aix4* | aix5*) |
| 17161 | # On AIX/PPC, the GNU linker is very broken |
| 17162 | if test "$host_cpu" != ia64; then |
| 17163 | ld_shlibs_GCJ=no |
| 17164 | cat <<EOF 1>&2 |
| 17165 | |
| 17166 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 17167 | *** to be unable to reliably create shared libraries on AIX. |
| 17168 | *** Therefore, libtool is disabling shared libraries support. If you |
| 17169 | *** really care for shared libraries, you may want to modify your PATH |
| 17170 | *** so that a non-GNU linker is found, and then restart. |
| 17171 | |
| 17172 | EOF |
| 17173 | fi |
| 17174 | ;; |
| 17175 | |
| 17176 | amigaos*) |
| 17177 | 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)' |
| 17178 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17179 | hardcode_minus_L_GCJ=yes |
| 17180 | |
| 17181 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 17182 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 17183 | # to version 4, is to share data among multiple programs linked |
| 17184 | # with the same dynamic library. Since this doesn't match the |
| 17185 | # behavior of shared libraries on other platforms, we can't use |
| 17186 | # them. |
| 17187 | ld_shlibs_GCJ=no |
| 17188 | ;; |
| 17189 | |
| 17190 | beos*) |
| 17191 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 17192 | allow_undefined_flag_GCJ=unsupported |
| 17193 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 17194 | # support --undefined. This deserves some investigation. FIXME |
| 17195 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17196 | else |
| 17197 | ld_shlibs_GCJ=no |
| 17198 | fi |
| 17199 | ;; |
| 17200 | |
| 17201 | cygwin* | mingw* | pw32*) |
| 17202 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
| 17203 | # as there is no search path for DLLs. |
| 17204 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17205 | allow_undefined_flag_GCJ=unsupported |
| 17206 | always_export_symbols_GCJ=no |
| 17207 | enable_shared_with_static_runtimes_GCJ=yes |
| 17208 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 17209 | |
| 17210 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 17211 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 17212 | # If the export-symbols file already is a .def file (1st line |
| 17213 | # is EXPORTS), use it as is; otherwise, prepend... |
| 17214 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 17215 | cp $export_symbols $output_objdir/$soname.def; |
| 17216 | else |
| 17217 | echo EXPORTS > $output_objdir/$soname.def; |
| 17218 | cat $export_symbols >> $output_objdir/$soname.def; |
| 17219 | fi~ |
| 17220 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 17221 | else |
| 17222 | ld_shlibs=no |
| 17223 | fi |
| 17224 | ;; |
| 17225 | |
| 17226 | netbsd*) |
| 17227 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 17228 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 17229 | wlarc= |
| 17230 | else |
| 17231 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17232 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 17233 | fi |
| 17234 | ;; |
| 17235 | |
| 17236 | solaris* | sysv5*) |
| 17237 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 17238 | ld_shlibs_GCJ=no |
| 17239 | cat <<EOF 1>&2 |
| 17240 | |
| 17241 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 17242 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 17243 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 17244 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 17245 | *** your PATH or compiler configuration so that the native linker is |
| 17246 | *** used, and then restart. |
| 17247 | |
| 17248 | EOF |
| 17249 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 17250 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17251 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 17252 | else |
| 17253 | ld_shlibs_GCJ=no |
| 17254 | fi |
| 17255 | ;; |
| 17256 | |
| 17257 | sunos4*) |
| 17258 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 17259 | wlarc= |
| 17260 | hardcode_direct_GCJ=yes |
| 17261 | hardcode_shlibpath_var_GCJ=no |
| 17262 | ;; |
| 17263 | |
| 17264 | linux*) |
| 17265 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 17266 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17267 | archive_cmds_GCJ="$tmp_archive_cmds" |
| 17268 | supports_anon_versioning=no |
| 17269 | case `$LD -v 2>/dev/null` in |
| 17270 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 17271 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 17272 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 17273 | *\ 2.11.*) ;; # other 2.11 versions |
| 17274 | *) supports_anon_versioning=yes ;; |
| 17275 | esac |
| 17276 | if test $supports_anon_versioning = yes; then |
| 17277 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 17278 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 17279 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 17280 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 17281 | else |
| 17282 | archive_expsym_cmds_GCJ="$tmp_archive_cmds" |
| 17283 | fi |
| 17284 | else |
| 17285 | ld_shlibs_GCJ=no |
| 17286 | fi |
| 17287 | ;; |
| 17288 | |
| 17289 | *) |
| 17290 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 17291 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17292 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 17293 | else |
| 17294 | ld_shlibs_GCJ=no |
| 17295 | fi |
| 17296 | ;; |
| 17297 | esac |
| 17298 | |
| 17299 | if test "$ld_shlibs_GCJ" = yes; then |
| 17300 | runpath_var=LD_RUN_PATH |
| 17301 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
| 17302 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
| 17303 | # ancient GNU ld didn't support --whole-archive et. al. |
| 17304 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 17305 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 17306 | else |
| 17307 | whole_archive_flag_spec_GCJ= |
| 17308 | fi |
| 17309 | fi |
| 17310 | else |
| 17311 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 17312 | case $host_os in |
| 17313 | aix3*) |
| 17314 | allow_undefined_flag_GCJ=unsupported |
| 17315 | always_export_symbols_GCJ=yes |
| 17316 | 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' |
| 17317 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 17318 | # are no directories specified by -L. |
| 17319 | hardcode_minus_L_GCJ=yes |
| 17320 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 17321 | # Neither direct hardcoding nor static linking is supported with a |
| 17322 | # broken collect2. |
| 17323 | hardcode_direct_GCJ=unsupported |
| 17324 | fi |
| 17325 | ;; |
| 17326 | |
| 17327 | aix4* | aix5*) |
| 17328 | if test "$host_cpu" = ia64; then |
| 17329 | # On IA64, the linker does run time linking by default, so we don't |
| 17330 | # have to do anything special. |
| 17331 | aix_use_runtimelinking=no |
| 17332 | exp_sym_flag='-Bexport' |
| 17333 | no_entry_flag="" |
| 17334 | else |
| 17335 | # If we're using GNU nm, then we don't want the "-C" option. |
| 17336 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 17337 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 17338 | 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' |
| 17339 | else |
| 17340 | 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' |
| 17341 | fi |
| 17342 | aix_use_runtimelinking=no |
| 17343 | |
| 17344 | # Test if we are trying to use run time linking or normal |
| 17345 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 17346 | # need to do runtime linking. |
| 17347 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 17348 | for ld_flag in $LDFLAGS; do |
| 17349 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 17350 | aix_use_runtimelinking=yes |
| 17351 | break |
| 17352 | fi |
| 17353 | done |
| 17354 | esac |
| 17355 | |
| 17356 | exp_sym_flag='-bexport' |
| 17357 | no_entry_flag='-bnoentry' |
| 17358 | fi |
| 17359 | |
| 17360 | # When large executables or shared objects are built, AIX ld can |
| 17361 | # have problems creating the table of contents. If linking a library |
| 17362 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 17363 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 17364 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 17365 | |
| 17366 | archive_cmds_GCJ='' |
| 17367 | hardcode_direct_GCJ=yes |
| 17368 | hardcode_libdir_separator_GCJ=':' |
| 17369 | link_all_deplibs_GCJ=yes |
| 17370 | |
| 17371 | if test "$GCC" = yes; then |
| 17372 | case $host_os in aix4.012|aix4.012.*) |
| 17373 | # We only want to do this on AIX 4.2 and lower, the check |
| 17374 | # below for broken collect2 doesn't work under 4.3+ |
| 17375 | collect2name=`${CC} -print-prog-name=collect2` |
| 17376 | if test -f "$collect2name" && \ |
| 17377 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 17378 | then |
| 17379 | # We have reworked collect2 |
| 17380 | hardcode_direct_GCJ=yes |
| 17381 | else |
| 17382 | # We have old collect2 |
| 17383 | hardcode_direct_GCJ=unsupported |
| 17384 | # It fails to find uninstalled libraries when the uninstalled |
| 17385 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 17386 | # to unsupported forces relinking |
| 17387 | hardcode_minus_L_GCJ=yes |
| 17388 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17389 | hardcode_libdir_separator_GCJ= |
| 17390 | fi |
| 17391 | esac |
| 17392 | shared_flag='-shared' |
| 17393 | else |
| 17394 | # not using gcc |
| 17395 | if test "$host_cpu" = ia64; then |
| 17396 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 17397 | # chokes on -Wl,-G. The following line is correct: |
| 17398 | shared_flag='-G' |
| 17399 | else |
| 17400 | if test "$aix_use_runtimelinking" = yes; then |
| 17401 | shared_flag='${wl}-G' |
| 17402 | else |
| 17403 | shared_flag='${wl}-bM:SRE' |
| 17404 | fi |
| 17405 | fi |
| 17406 | fi |
| 17407 | |
| 17408 | # It seems that -bexpall does not export symbols beginning with |
| 17409 | # underscore (_), so it is better to generate a list of symbols to export. |
| 17410 | always_export_symbols_GCJ=yes |
| 17411 | if test "$aix_use_runtimelinking" = yes; then |
| 17412 | # Warning - without using the other runtime loading flags (-brtl), |
| 17413 | # -berok will link without error, but may produce a broken library. |
| 17414 | allow_undefined_flag_GCJ='-berok' |
| 17415 | # Determine the default libpath from the value encoded in an empty executable. |
| 17416 | cat >conftest.$ac_ext <<_ACEOF |
| 17417 | /* confdefs.h. */ |
| 17418 | _ACEOF |
| 17419 | cat confdefs.h >>conftest.$ac_ext |
| 17420 | cat >>conftest.$ac_ext <<_ACEOF |
| 17421 | /* end confdefs.h. */ |
| 17422 | |
| 17423 | int |
| 17424 | main () |
| 17425 | { |
| 17426 | |
| 17427 | ; |
| 17428 | return 0; |
| 17429 | } |
| 17430 | _ACEOF |
| 17431 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 17432 | if { (ac_try="$ac_link" |
| 17433 | case "(($ac_try" in |
| 17434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17435 | *) ac_try_echo=$ac_try;; |
| 17436 | esac |
| 17437 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17438 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17439 | ac_status=$? |
| 17440 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17441 | rm -f conftest.er1 |
| 17442 | cat conftest.err >&5 |
| 17443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17444 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 17445 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17446 | { (case "(($ac_try" in |
| 17447 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17448 | *) ac_try_echo=$ac_try;; |
| 17449 | esac |
| 17450 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17451 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17452 | ac_status=$? |
| 17453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17454 | (exit $ac_status); }; } && |
| 17455 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 17456 | { (case "(($ac_try" in |
| 17457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17458 | *) ac_try_echo=$ac_try;; |
| 17459 | esac |
| 17460 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17461 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17462 | ac_status=$? |
| 17463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17464 | (exit $ac_status); }; }; then |
| 17465 | |
| 17466 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 17467 | }'` |
| 17468 | # Check for a 64-bit object if we didn't find anything. |
| 17469 | 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; } |
| 17470 | }'`; fi |
| 17471 | else |
| 17472 | echo "$as_me: failed program was:" >&5 |
| 17473 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17474 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 17475 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17476 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 17477 | |
| 17478 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17479 | conftest$ac_exeext conftest.$ac_ext |
| 17480 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 17481 | |
| 17482 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 17483 | archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 17484 | else |
| 17485 | if test "$host_cpu" = ia64; then |
| 17486 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
| 17487 | allow_undefined_flag_GCJ="-z nodefs" |
| 17488 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
| 17489 | else |
| 17490 | # Determine the default libpath from the value encoded in an empty executable. |
| 17491 | cat >conftest.$ac_ext <<_ACEOF |
| 17492 | /* confdefs.h. */ |
| 17493 | _ACEOF |
| 17494 | cat confdefs.h >>conftest.$ac_ext |
| 17495 | cat >>conftest.$ac_ext <<_ACEOF |
| 17496 | /* end confdefs.h. */ |
| 17497 | |
| 17498 | int |
| 17499 | main () |
| 17500 | { |
| 17501 | |
| 17502 | ; |
| 17503 | return 0; |
| 17504 | } |
| 17505 | _ACEOF |
| 17506 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 17507 | if { (ac_try="$ac_link" |
| 17508 | case "(($ac_try" in |
| 17509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17510 | *) ac_try_echo=$ac_try;; |
| 17511 | esac |
| 17512 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17513 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17514 | ac_status=$? |
| 17515 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17516 | rm -f conftest.er1 |
| 17517 | cat conftest.err >&5 |
| 17518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17519 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 17520 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17521 | { (case "(($ac_try" in |
| 17522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17523 | *) ac_try_echo=$ac_try;; |
| 17524 | esac |
| 17525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17526 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17527 | ac_status=$? |
| 17528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17529 | (exit $ac_status); }; } && |
| 17530 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 17531 | { (case "(($ac_try" in |
| 17532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17533 | *) ac_try_echo=$ac_try;; |
| 17534 | esac |
| 17535 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17536 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17537 | ac_status=$? |
| 17538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17539 | (exit $ac_status); }; }; then |
| 17540 | |
| 17541 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 17542 | }'` |
| 17543 | # Check for a 64-bit object if we didn't find anything. |
| 17544 | 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; } |
| 17545 | }'`; fi |
| 17546 | else |
| 17547 | echo "$as_me: failed program was:" >&5 |
| 17548 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17549 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 17550 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17551 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 17552 | |
| 17553 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17554 | conftest$ac_exeext conftest.$ac_ext |
| 17555 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 17556 | |
| 17557 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 17558 | # Warning - without using the other run time loading flags, |
| 17559 | # -berok will link without error, but may produce a broken library. |
| 17560 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
| 17561 | allow_undefined_flag_GCJ=' ${wl}-berok' |
| 17562 | # -bexpall does not export symbols beginning with underscore (_) |
| 17563 | always_export_symbols_GCJ=yes |
| 17564 | # Exported symbols can be pulled into shared objects from archives |
| 17565 | whole_archive_flag_spec_GCJ=' ' |
| 17566 | archive_cmds_need_lc_GCJ=yes |
| 17567 | # This is similar to how AIX traditionally builds it's shared libraries. |
| 17568 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 17569 | fi |
| 17570 | fi |
| 17571 | ;; |
| 17572 | |
| 17573 | amigaos*) |
| 17574 | 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)' |
| 17575 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17576 | hardcode_minus_L_GCJ=yes |
| 17577 | # see comment about different semantics on the GNU ld section |
| 17578 | ld_shlibs_GCJ=no |
| 17579 | ;; |
| 17580 | |
| 17581 | bsdi4*) |
| 17582 | export_dynamic_flag_spec_GCJ=-rdynamic |
| 17583 | ;; |
| 17584 | |
| 17585 | cygwin* | mingw* | pw32*) |
| 17586 | # When not using gcc, we currently assume that we are using |
| 17587 | # Microsoft Visual C++. |
| 17588 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 17589 | # no search path for DLLs. |
| 17590 | hardcode_libdir_flag_spec_GCJ=' ' |
| 17591 | allow_undefined_flag_GCJ=unsupported |
| 17592 | # Tell ltmain to make .lib files, not .a files. |
| 17593 | libext=lib |
| 17594 | # Tell ltmain to make .dll files, not .so files. |
| 17595 | shrext_cmds=".dll" |
| 17596 | # FIXME: Setting linknames here is a bad hack. |
| 17597 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 17598 | # The linker will automatically build a .lib file if we build a DLL. |
| 17599 | old_archive_From_new_cmds_GCJ='true' |
| 17600 | # FIXME: Should let the user specify the lib program. |
| 17601 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 17602 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 17603 | enable_shared_with_static_runtimes_GCJ=yes |
| 17604 | ;; |
| 17605 | |
| 17606 | darwin* | rhapsody*) |
| 17607 | if test "$GXX" = yes ; then |
| 17608 | archive_cmds_need_lc_GCJ=no |
| 17609 | case "$host_os" in |
| 17610 | rhapsody* | darwin1.[012]) |
| 17611 | allow_undefined_flag_GCJ='-undefined suppress' |
| 17612 | ;; |
| 17613 | *) # Darwin 1.3 on |
| 17614 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 17615 | allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' |
| 17616 | else |
| 17617 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 17618 | 10.[012]) |
| 17619 | allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' |
| 17620 | ;; |
| 17621 | 10.*) |
| 17622 | allow_undefined_flag_GCJ='-undefined dynamic_lookup' |
| 17623 | ;; |
| 17624 | esac |
| 17625 | fi |
| 17626 | ;; |
| 17627 | esac |
| 17628 | lt_int_apple_cc_single_mod=no |
| 17629 | output_verbose_link_cmd='echo' |
| 17630 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
| 17631 | lt_int_apple_cc_single_mod=yes |
| 17632 | fi |
| 17633 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 17634 | archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 17635 | else |
| 17636 | archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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' |
| 17637 | fi |
| 17638 | module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 17639 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 17640 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 17641 | archive_expsym_cmds_GCJ='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}' |
| 17642 | else |
| 17643 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' |
| 17644 | fi |
| 17645 | 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}' |
| 17646 | hardcode_direct_GCJ=no |
| 17647 | hardcode_automatic_GCJ=yes |
| 17648 | hardcode_shlibpath_var_GCJ=unsupported |
| 17649 | whole_archive_flag_spec_GCJ='-all_load $convenience' |
| 17650 | link_all_deplibs_GCJ=yes |
| 17651 | else |
| 17652 | ld_shlibs_GCJ=no |
| 17653 | fi |
| 17654 | ;; |
| 17655 | |
| 17656 | dgux*) |
| 17657 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17658 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17659 | hardcode_shlibpath_var_GCJ=no |
| 17660 | ;; |
| 17661 | |
| 17662 | freebsd1*) |
| 17663 | ld_shlibs_GCJ=no |
| 17664 | ;; |
| 17665 | |
| 17666 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 17667 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 17668 | # does not break anything, and helps significantly (at the cost of a little |
| 17669 | # extra space). |
| 17670 | freebsd2.2*) |
| 17671 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 17672 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 17673 | hardcode_direct_GCJ=yes |
| 17674 | hardcode_shlibpath_var_GCJ=no |
| 17675 | ;; |
| 17676 | |
| 17677 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 17678 | freebsd2*) |
| 17679 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 17680 | hardcode_direct_GCJ=yes |
| 17681 | hardcode_minus_L_GCJ=yes |
| 17682 | hardcode_shlibpath_var_GCJ=no |
| 17683 | ;; |
| 17684 | |
| 17685 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 17686 | freebsd* | kfreebsd*-gnu) |
| 17687 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 17688 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 17689 | hardcode_direct_GCJ=yes |
| 17690 | hardcode_shlibpath_var_GCJ=no |
| 17691 | ;; |
| 17692 | |
| 17693 | hpux9*) |
| 17694 | if test "$GCC" = yes; then |
| 17695 | 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' |
| 17696 | else |
| 17697 | 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' |
| 17698 | fi |
| 17699 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 17700 | hardcode_libdir_separator_GCJ=: |
| 17701 | hardcode_direct_GCJ=yes |
| 17702 | |
| 17703 | # hardcode_minus_L: Not really in the search PATH, |
| 17704 | # but as the default location of the library. |
| 17705 | hardcode_minus_L_GCJ=yes |
| 17706 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 17707 | ;; |
| 17708 | |
| 17709 | hpux10* | hpux11*) |
| 17710 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 17711 | case "$host_cpu" in |
| 17712 | hppa*64*|ia64*) |
| 17713 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17714 | ;; |
| 17715 | *) |
| 17716 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 17717 | ;; |
| 17718 | esac |
| 17719 | else |
| 17720 | case "$host_cpu" in |
| 17721 | hppa*64*|ia64*) |
| 17722 | archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17723 | ;; |
| 17724 | *) |
| 17725 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 17726 | ;; |
| 17727 | esac |
| 17728 | fi |
| 17729 | if test "$with_gnu_ld" = no; then |
| 17730 | case "$host_cpu" in |
| 17731 | hppa*64*) |
| 17732 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 17733 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
| 17734 | hardcode_libdir_separator_GCJ=: |
| 17735 | hardcode_direct_GCJ=no |
| 17736 | hardcode_shlibpath_var_GCJ=no |
| 17737 | ;; |
| 17738 | ia64*) |
| 17739 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17740 | hardcode_direct_GCJ=no |
| 17741 | hardcode_shlibpath_var_GCJ=no |
| 17742 | |
| 17743 | # hardcode_minus_L: Not really in the search PATH, |
| 17744 | # but as the default location of the library. |
| 17745 | hardcode_minus_L_GCJ=yes |
| 17746 | ;; |
| 17747 | *) |
| 17748 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 17749 | hardcode_libdir_separator_GCJ=: |
| 17750 | hardcode_direct_GCJ=yes |
| 17751 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 17752 | |
| 17753 | # hardcode_minus_L: Not really in the search PATH, |
| 17754 | # but as the default location of the library. |
| 17755 | hardcode_minus_L_GCJ=yes |
| 17756 | ;; |
| 17757 | esac |
| 17758 | fi |
| 17759 | ;; |
| 17760 | |
| 17761 | irix5* | irix6* | nonstopux*) |
| 17762 | if test "$GCC" = yes; then |
| 17763 | 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' |
| 17764 | else |
| 17765 | 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' |
| 17766 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
| 17767 | fi |
| 17768 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 17769 | hardcode_libdir_separator_GCJ=: |
| 17770 | link_all_deplibs_GCJ=yes |
| 17771 | ;; |
| 17772 | |
| 17773 | netbsd*) |
| 17774 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 17775 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 17776 | else |
| 17777 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 17778 | fi |
| 17779 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 17780 | hardcode_direct_GCJ=yes |
| 17781 | hardcode_shlibpath_var_GCJ=no |
| 17782 | ;; |
| 17783 | |
| 17784 | newsos6) |
| 17785 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17786 | hardcode_direct_GCJ=yes |
| 17787 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 17788 | hardcode_libdir_separator_GCJ=: |
| 17789 | hardcode_shlibpath_var_GCJ=no |
| 17790 | ;; |
| 17791 | |
| 17792 | openbsd*) |
| 17793 | hardcode_direct_GCJ=yes |
| 17794 | hardcode_shlibpath_var_GCJ=no |
| 17795 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 17796 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 17797 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 17798 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 17799 | else |
| 17800 | case $host_os in |
| 17801 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 17802 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 17803 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 17804 | ;; |
| 17805 | *) |
| 17806 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 17807 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 17808 | ;; |
| 17809 | esac |
| 17810 | fi |
| 17811 | ;; |
| 17812 | |
| 17813 | os2*) |
| 17814 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17815 | hardcode_minus_L_GCJ=yes |
| 17816 | allow_undefined_flag_GCJ=unsupported |
| 17817 | 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' |
| 17818 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 17819 | ;; |
| 17820 | |
| 17821 | osf3*) |
| 17822 | if test "$GCC" = yes; then |
| 17823 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 17824 | 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' |
| 17825 | else |
| 17826 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 17827 | 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' |
| 17828 | fi |
| 17829 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 17830 | hardcode_libdir_separator_GCJ=: |
| 17831 | ;; |
| 17832 | |
| 17833 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 17834 | if test "$GCC" = yes; then |
| 17835 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 17836 | 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' |
| 17837 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 17838 | else |
| 17839 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 17840 | 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' |
| 17841 | 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~ |
| 17842 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' |
| 17843 | |
| 17844 | # Both c and cxx compiler support -rpath directly |
| 17845 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
| 17846 | fi |
| 17847 | hardcode_libdir_separator_GCJ=: |
| 17848 | ;; |
| 17849 | |
| 17850 | sco3.2v5*) |
| 17851 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17852 | hardcode_shlibpath_var_GCJ=no |
| 17853 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
| 17854 | runpath_var=LD_RUN_PATH |
| 17855 | hardcode_runpath_var=yes |
| 17856 | ;; |
| 17857 | |
| 17858 | solaris*) |
| 17859 | no_undefined_flag_GCJ=' -z text' |
| 17860 | if test "$GCC" = yes; then |
| 17861 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17862 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 17863 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 17864 | else |
| 17865 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17866 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 17867 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 17868 | fi |
| 17869 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 17870 | hardcode_shlibpath_var_GCJ=no |
| 17871 | case $host_os in |
| 17872 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 17873 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 17874 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
| 17875 | esac |
| 17876 | link_all_deplibs_GCJ=yes |
| 17877 | ;; |
| 17878 | |
| 17879 | sunos4*) |
| 17880 | if test "x$host_vendor" = xsequent; then |
| 17881 | # Use $CC to link under sequent, because it throws in some extra .o |
| 17882 | # files that make .init and .fini sections work. |
| 17883 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17884 | else |
| 17885 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 17886 | fi |
| 17887 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17888 | hardcode_direct_GCJ=yes |
| 17889 | hardcode_minus_L_GCJ=yes |
| 17890 | hardcode_shlibpath_var_GCJ=no |
| 17891 | ;; |
| 17892 | |
| 17893 | sysv4) |
| 17894 | case $host_vendor in |
| 17895 | sni) |
| 17896 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17897 | hardcode_direct_GCJ=yes # is this really true??? |
| 17898 | ;; |
| 17899 | siemens) |
| 17900 | ## LD is ld it makes a PLAMLIB |
| 17901 | ## CC just makes a GrossModule. |
| 17902 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 17903 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
| 17904 | hardcode_direct_GCJ=no |
| 17905 | ;; |
| 17906 | motorola) |
| 17907 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17908 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
| 17909 | ;; |
| 17910 | esac |
| 17911 | runpath_var='LD_RUN_PATH' |
| 17912 | hardcode_shlibpath_var_GCJ=no |
| 17913 | ;; |
| 17914 | |
| 17915 | sysv4.3*) |
| 17916 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17917 | hardcode_shlibpath_var_GCJ=no |
| 17918 | export_dynamic_flag_spec_GCJ='-Bexport' |
| 17919 | ;; |
| 17920 | |
| 17921 | sysv4*MP*) |
| 17922 | if test -d /usr/nec; then |
| 17923 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17924 | hardcode_shlibpath_var_GCJ=no |
| 17925 | runpath_var=LD_RUN_PATH |
| 17926 | hardcode_runpath_var=yes |
| 17927 | ld_shlibs_GCJ=yes |
| 17928 | fi |
| 17929 | ;; |
| 17930 | |
| 17931 | sysv4.2uw2*) |
| 17932 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 17933 | hardcode_direct_GCJ=yes |
| 17934 | hardcode_minus_L_GCJ=no |
| 17935 | hardcode_shlibpath_var_GCJ=no |
| 17936 | hardcode_runpath_var=yes |
| 17937 | runpath_var=LD_RUN_PATH |
| 17938 | ;; |
| 17939 | |
| 17940 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 17941 | no_undefined_flag_GCJ='${wl}-z ${wl}text' |
| 17942 | if test "$GCC" = yes; then |
| 17943 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17944 | else |
| 17945 | archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17946 | fi |
| 17947 | runpath_var='LD_RUN_PATH' |
| 17948 | hardcode_shlibpath_var_GCJ=no |
| 17949 | ;; |
| 17950 | |
| 17951 | sysv5*) |
| 17952 | no_undefined_flag_GCJ=' -z text' |
| 17953 | # $CC -shared without GNU ld will not create a library from C++ |
| 17954 | # object files and a static libstdc++, better avoid it by now |
| 17955 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17956 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 17957 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 17958 | hardcode_libdir_flag_spec_GCJ= |
| 17959 | hardcode_shlibpath_var_GCJ=no |
| 17960 | runpath_var='LD_RUN_PATH' |
| 17961 | ;; |
| 17962 | |
| 17963 | uts4*) |
| 17964 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17965 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17966 | hardcode_shlibpath_var_GCJ=no |
| 17967 | ;; |
| 17968 | |
| 17969 | *) |
| 17970 | ld_shlibs_GCJ=no |
| 17971 | ;; |
| 17972 | esac |
| 17973 | fi |
| 17974 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 17975 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
| 17976 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17977 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
| 17978 | |
| 17979 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 17980 | if test "$GCC" = yes; then |
| 17981 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 17982 | fi |
| 17983 | |
| 17984 | # |
| 17985 | # Do we need to explicitly link libc? |
| 17986 | # |
| 17987 | case "x$archive_cmds_need_lc_GCJ" in |
| 17988 | x|xyes) |
| 17989 | # Assume -lc should be added |
| 17990 | archive_cmds_need_lc_GCJ=yes |
| 17991 | |
| 17992 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 17993 | case $archive_cmds_GCJ in |
| 17994 | *'~'*) |
| 17995 | # FIXME: we may have to deal with multi-command sequences. |
| 17996 | ;; |
| 17997 | '$CC '*) |
| 17998 | # Test whether the compiler implicitly links with -lc since on some |
| 17999 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 18000 | # to ld, don't add -lc before -lgcc. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18001 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 18002 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18003 | $rm conftest* |
| 18004 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 18005 | |
| 18006 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18007 | (eval $ac_compile) 2>&5 |
| 18008 | ac_status=$? |
| 18009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18010 | (exit $ac_status); } 2>conftest.err; then |
| 18011 | soname=conftest |
| 18012 | lib=conftest |
| 18013 | libobjs=conftest.$ac_objext |
| 18014 | deplibs= |
| 18015 | wl=$lt_prog_compiler_wl_GCJ |
| 18016 | compiler_flags=-v |
| 18017 | linker_flags=-v |
| 18018 | verstring= |
| 18019 | output_objdir=. |
| 18020 | libname=conftest |
| 18021 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
| 18022 | allow_undefined_flag_GCJ= |
| 18023 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 18024 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 18025 | ac_status=$? |
| 18026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18027 | (exit $ac_status); } |
| 18028 | then |
| 18029 | archive_cmds_need_lc_GCJ=no |
| 18030 | else |
| 18031 | archive_cmds_need_lc_GCJ=yes |
| 18032 | fi |
| 18033 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
| 18034 | else |
| 18035 | cat conftest.err 1>&5 |
| 18036 | fi |
| 18037 | $rm conftest* |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18038 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
| 18039 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18040 | ;; |
| 18041 | esac |
| 18042 | fi |
| 18043 | ;; |
| 18044 | esac |
| 18045 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18046 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 18047 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18048 | library_names_spec= |
| 18049 | libname_spec='lib$name' |
| 18050 | soname_spec= |
| 18051 | shrext_cmds=".so" |
| 18052 | postinstall_cmds= |
| 18053 | postuninstall_cmds= |
| 18054 | finish_cmds= |
| 18055 | finish_eval= |
| 18056 | shlibpath_var= |
| 18057 | shlibpath_overrides_runpath=unknown |
| 18058 | version_type=none |
| 18059 | dynamic_linker="$host_os ld.so" |
| 18060 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 18061 | if test "$GCC" = yes; then |
| 18062 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 18063 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 18064 | # if the path contains ";" then we assume it to be the separator |
| 18065 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 18066 | # assumed that no part of a normal pathname contains ";" but that should |
| 18067 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 18068 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 18069 | else |
| 18070 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 18071 | fi |
| 18072 | else |
| 18073 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 18074 | fi |
| 18075 | need_lib_prefix=unknown |
| 18076 | hardcode_into_libs=no |
| 18077 | |
| 18078 | # when you set need_version to no, make sure it does not cause -set_version |
| 18079 | # flags to be left without arguments |
| 18080 | need_version=unknown |
| 18081 | |
| 18082 | case $host_os in |
| 18083 | aix3*) |
| 18084 | version_type=linux |
| 18085 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 18086 | shlibpath_var=LIBPATH |
| 18087 | |
| 18088 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 18089 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18090 | ;; |
| 18091 | |
| 18092 | aix4* | aix5*) |
| 18093 | version_type=linux |
| 18094 | need_lib_prefix=no |
| 18095 | need_version=no |
| 18096 | hardcode_into_libs=yes |
| 18097 | if test "$host_cpu" = ia64; then |
| 18098 | # AIX 5 supports IA64 |
| 18099 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 18100 | shlibpath_var=LD_LIBRARY_PATH |
| 18101 | else |
| 18102 | # With GCC up to 2.95.x, collect2 would create an import file |
| 18103 | # for dependence libraries. The import file would start with |
| 18104 | # the line `#! .'. This would cause the generated library to |
| 18105 | # depend on `.', always an invalid library. This was fixed in |
| 18106 | # development snapshots of GCC prior to 3.0. |
| 18107 | case $host_os in |
| 18108 | aix4 | aix4.[01] | aix4.[01].*) |
| 18109 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 18110 | echo ' yes ' |
| 18111 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 18112 | : |
| 18113 | else |
| 18114 | can_build_shared=no |
| 18115 | fi |
| 18116 | ;; |
| 18117 | esac |
| 18118 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 18119 | # soname into executable. Probably we can add versioning support to |
| 18120 | # collect2, so additional links can be useful in future. |
| 18121 | if test "$aix_use_runtimelinking" = yes; then |
| 18122 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 18123 | # instead of lib<name>.a to let people know that these are not |
| 18124 | # typical AIX shared libraries. |
| 18125 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18126 | else |
| 18127 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 18128 | # and later when we are not doing run time linking. |
| 18129 | library_names_spec='${libname}${release}.a $libname.a' |
| 18130 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18131 | fi |
| 18132 | shlibpath_var=LIBPATH |
| 18133 | fi |
| 18134 | ;; |
| 18135 | |
| 18136 | amigaos*) |
| 18137 | library_names_spec='$libname.ixlibrary $libname.a' |
| 18138 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 18139 | 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' |
| 18140 | ;; |
| 18141 | |
| 18142 | beos*) |
| 18143 | library_names_spec='${libname}${shared_ext}' |
| 18144 | dynamic_linker="$host_os ld.so" |
| 18145 | shlibpath_var=LIBRARY_PATH |
| 18146 | ;; |
| 18147 | |
| 18148 | bsdi4*) |
| 18149 | version_type=linux |
| 18150 | need_version=no |
| 18151 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18152 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18153 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 18154 | shlibpath_var=LD_LIBRARY_PATH |
| 18155 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 18156 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 18157 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 18158 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 18159 | # libtool to hard-code these into programs |
| 18160 | ;; |
| 18161 | |
| 18162 | cygwin* | mingw* | pw32*) |
| 18163 | version_type=windows |
| 18164 | shrext_cmds=".dll" |
| 18165 | need_version=no |
| 18166 | need_lib_prefix=no |
| 18167 | |
| 18168 | case $GCC,$host_os in |
| 18169 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 18170 | library_names_spec='$libname.dll.a' |
| 18171 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 18172 | postinstall_cmds='base_file=`basename \${file}`~ |
| 18173 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 18174 | dldir=$destdir/`dirname \$dlpath`~ |
| 18175 | test -d \$dldir || mkdir -p \$dldir~ |
| 18176 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 18177 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 18178 | dlpath=$dir/\$dldll~ |
| 18179 | $rm \$dlpath' |
| 18180 | shlibpath_overrides_runpath=yes |
| 18181 | |
| 18182 | case $host_os in |
| 18183 | cygwin*) |
| 18184 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 18185 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 18186 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 18187 | ;; |
| 18188 | mingw*) |
| 18189 | # MinGW DLLs use traditional 'lib' prefix |
| 18190 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 18191 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 18192 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 18193 | # It is most probably a Windows format PATH printed by |
| 18194 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 18195 | # path with ; separators, and with drive letters. We can handle the |
| 18196 | # drive letters (cygwin fileutils understands them), so leave them, |
| 18197 | # especially as we might pass files found there to a mingw objdump, |
| 18198 | # which wouldn't understand a cygwinified path. Ahh. |
| 18199 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 18200 | else |
| 18201 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 18202 | fi |
| 18203 | ;; |
| 18204 | pw32*) |
| 18205 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 18206 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 18207 | ;; |
| 18208 | esac |
| 18209 | ;; |
| 18210 | |
| 18211 | *) |
| 18212 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 18213 | ;; |
| 18214 | esac |
| 18215 | dynamic_linker='Win32 ld.exe' |
| 18216 | # FIXME: first we should search . and the directory the executable is in |
| 18217 | shlibpath_var=PATH |
| 18218 | ;; |
| 18219 | |
| 18220 | darwin* | rhapsody*) |
| 18221 | dynamic_linker="$host_os dyld" |
| 18222 | version_type=darwin |
| 18223 | need_lib_prefix=no |
| 18224 | need_version=no |
| 18225 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 18226 | soname_spec='${libname}${release}${major}$shared_ext' |
| 18227 | shlibpath_overrides_runpath=yes |
| 18228 | shlibpath_var=DYLD_LIBRARY_PATH |
| 18229 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
| 18230 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 18231 | if test "$GCC" = yes; then |
| 18232 | 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"` |
| 18233 | else |
| 18234 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 18235 | fi |
| 18236 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 18237 | ;; |
| 18238 | |
| 18239 | dgux*) |
| 18240 | version_type=linux |
| 18241 | need_lib_prefix=no |
| 18242 | need_version=no |
| 18243 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 18244 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18245 | shlibpath_var=LD_LIBRARY_PATH |
| 18246 | ;; |
| 18247 | |
| 18248 | freebsd1*) |
| 18249 | dynamic_linker=no |
| 18250 | ;; |
| 18251 | |
| 18252 | kfreebsd*-gnu) |
| 18253 | version_type=linux |
| 18254 | need_lib_prefix=no |
| 18255 | need_version=no |
| 18256 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 18257 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18258 | shlibpath_var=LD_LIBRARY_PATH |
| 18259 | shlibpath_overrides_runpath=no |
| 18260 | hardcode_into_libs=yes |
| 18261 | dynamic_linker='GNU ld.so' |
| 18262 | ;; |
| 18263 | |
| 18264 | freebsd*) |
| 18265 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 18266 | version_type=freebsd-$objformat |
| 18267 | case $version_type in |
| 18268 | freebsd-elf*) |
| 18269 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 18270 | need_version=no |
| 18271 | need_lib_prefix=no |
| 18272 | ;; |
| 18273 | freebsd-*) |
| 18274 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 18275 | need_version=yes |
| 18276 | ;; |
| 18277 | esac |
| 18278 | shlibpath_var=LD_LIBRARY_PATH |
| 18279 | case $host_os in |
| 18280 | freebsd2*) |
| 18281 | shlibpath_overrides_runpath=yes |
| 18282 | ;; |
| 18283 | freebsd3.01* | freebsdelf3.01*) |
| 18284 | shlibpath_overrides_runpath=yes |
| 18285 | hardcode_into_libs=yes |
| 18286 | ;; |
| 18287 | *) # from 3.2 on |
| 18288 | shlibpath_overrides_runpath=no |
| 18289 | hardcode_into_libs=yes |
| 18290 | ;; |
| 18291 | esac |
| 18292 | ;; |
| 18293 | |
| 18294 | gnu*) |
| 18295 | version_type=linux |
| 18296 | need_lib_prefix=no |
| 18297 | need_version=no |
| 18298 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 18299 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18300 | shlibpath_var=LD_LIBRARY_PATH |
| 18301 | hardcode_into_libs=yes |
| 18302 | ;; |
| 18303 | |
| 18304 | hpux9* | hpux10* | hpux11*) |
| 18305 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 18306 | # link against other versions. |
| 18307 | version_type=sunos |
| 18308 | need_lib_prefix=no |
| 18309 | need_version=no |
| 18310 | case "$host_cpu" in |
| 18311 | ia64*) |
| 18312 | shrext_cmds='.so' |
| 18313 | hardcode_into_libs=yes |
| 18314 | dynamic_linker="$host_os dld.so" |
| 18315 | shlibpath_var=LD_LIBRARY_PATH |
| 18316 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 18317 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18318 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18319 | if test "X$HPUX_IA64_MODE" = X32; then |
| 18320 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 18321 | else |
| 18322 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 18323 | fi |
| 18324 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 18325 | ;; |
| 18326 | hppa*64*) |
| 18327 | shrext_cmds='.sl' |
| 18328 | hardcode_into_libs=yes |
| 18329 | dynamic_linker="$host_os dld.sl" |
| 18330 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 18331 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 18332 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18333 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18334 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 18335 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 18336 | ;; |
| 18337 | *) |
| 18338 | shrext_cmds='.sl' |
| 18339 | dynamic_linker="$host_os dld.sl" |
| 18340 | shlibpath_var=SHLIB_PATH |
| 18341 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 18342 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18343 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18344 | ;; |
| 18345 | esac |
| 18346 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 18347 | postinstall_cmds='chmod 555 $lib' |
| 18348 | ;; |
| 18349 | |
| 18350 | irix5* | irix6* | nonstopux*) |
| 18351 | case $host_os in |
| 18352 | nonstopux*) version_type=nonstopux ;; |
| 18353 | *) |
| 18354 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 18355 | version_type=linux |
| 18356 | else |
| 18357 | version_type=irix |
| 18358 | fi ;; |
| 18359 | esac |
| 18360 | need_lib_prefix=no |
| 18361 | need_version=no |
| 18362 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18363 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 18364 | case $host_os in |
| 18365 | irix5* | nonstopux*) |
| 18366 | libsuff= shlibsuff= |
| 18367 | ;; |
| 18368 | *) |
| 18369 | case $LD in # libtool.m4 will add one of these switches to LD |
| 18370 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 18371 | libsuff= shlibsuff= libmagic=32-bit;; |
| 18372 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 18373 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 18374 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 18375 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 18376 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 18377 | esac |
| 18378 | ;; |
| 18379 | esac |
| 18380 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 18381 | shlibpath_overrides_runpath=no |
| 18382 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 18383 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 18384 | hardcode_into_libs=yes |
| 18385 | ;; |
| 18386 | |
| 18387 | # No shared lib support for Linux oldld, aout, or coff. |
| 18388 | linux*oldld* | linux*aout* | linux*coff*) |
| 18389 | dynamic_linker=no |
| 18390 | ;; |
| 18391 | |
| 18392 | # This must be Linux ELF. |
| 18393 | linux*) |
| 18394 | version_type=linux |
| 18395 | need_lib_prefix=no |
| 18396 | need_version=no |
| 18397 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18398 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18399 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 18400 | shlibpath_var=LD_LIBRARY_PATH |
| 18401 | shlibpath_overrides_runpath=no |
| 18402 | # This implies no fast_install, which is unacceptable. |
| 18403 | # Some rework will be needed to allow for fast_install |
| 18404 | # before this can be enabled. |
| 18405 | hardcode_into_libs=yes |
| 18406 | |
| 18407 | # Append ld.so.conf contents to the search path |
| 18408 | if test -f /etc/ld.so.conf; then |
| 18409 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
| 18410 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 18411 | fi |
| 18412 | |
| 18413 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 18414 | # powerpc, because MkLinux only supported shared libraries with the |
| 18415 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 18416 | # most powerpc-linux boxes support dynamic linking these days and |
| 18417 | # people can always --disable-shared, the test was removed, and we |
| 18418 | # assume the GNU/Linux dynamic linker is in use. |
| 18419 | dynamic_linker='GNU/Linux ld.so' |
| 18420 | ;; |
| 18421 | |
| 18422 | knetbsd*-gnu) |
| 18423 | version_type=linux |
| 18424 | need_lib_prefix=no |
| 18425 | need_version=no |
| 18426 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 18427 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18428 | shlibpath_var=LD_LIBRARY_PATH |
| 18429 | shlibpath_overrides_runpath=no |
| 18430 | hardcode_into_libs=yes |
| 18431 | dynamic_linker='GNU ld.so' |
| 18432 | ;; |
| 18433 | |
| 18434 | netbsd*) |
| 18435 | version_type=sunos |
| 18436 | need_lib_prefix=no |
| 18437 | need_version=no |
| 18438 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 18439 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 18440 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 18441 | dynamic_linker='NetBSD (a.out) ld.so' |
| 18442 | else |
| 18443 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 18444 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18445 | dynamic_linker='NetBSD ld.elf_so' |
| 18446 | fi |
| 18447 | shlibpath_var=LD_LIBRARY_PATH |
| 18448 | shlibpath_overrides_runpath=yes |
| 18449 | hardcode_into_libs=yes |
| 18450 | ;; |
| 18451 | |
| 18452 | newsos6) |
| 18453 | version_type=linux |
| 18454 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18455 | shlibpath_var=LD_LIBRARY_PATH |
| 18456 | shlibpath_overrides_runpath=yes |
| 18457 | ;; |
| 18458 | |
| 18459 | nto-qnx*) |
| 18460 | version_type=linux |
| 18461 | need_lib_prefix=no |
| 18462 | need_version=no |
| 18463 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18464 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18465 | shlibpath_var=LD_LIBRARY_PATH |
| 18466 | shlibpath_overrides_runpath=yes |
| 18467 | ;; |
| 18468 | |
| 18469 | openbsd*) |
| 18470 | version_type=sunos |
| 18471 | need_lib_prefix=no |
| 18472 | need_version=yes |
| 18473 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 18474 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 18475 | shlibpath_var=LD_LIBRARY_PATH |
| 18476 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 18477 | case $host_os in |
| 18478 | openbsd2.[89] | openbsd2.[89].*) |
| 18479 | shlibpath_overrides_runpath=no |
| 18480 | ;; |
| 18481 | *) |
| 18482 | shlibpath_overrides_runpath=yes |
| 18483 | ;; |
| 18484 | esac |
| 18485 | else |
| 18486 | shlibpath_overrides_runpath=yes |
| 18487 | fi |
| 18488 | ;; |
| 18489 | |
| 18490 | os2*) |
| 18491 | libname_spec='$name' |
| 18492 | shrext_cmds=".dll" |
| 18493 | need_lib_prefix=no |
| 18494 | library_names_spec='$libname${shared_ext} $libname.a' |
| 18495 | dynamic_linker='OS/2 ld.exe' |
| 18496 | shlibpath_var=LIBPATH |
| 18497 | ;; |
| 18498 | |
| 18499 | osf3* | osf4* | osf5*) |
| 18500 | version_type=osf |
| 18501 | need_lib_prefix=no |
| 18502 | need_version=no |
| 18503 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18504 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18505 | shlibpath_var=LD_LIBRARY_PATH |
| 18506 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 18507 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 18508 | ;; |
| 18509 | |
| 18510 | sco3.2v5*) |
| 18511 | version_type=osf |
| 18512 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18513 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18514 | shlibpath_var=LD_LIBRARY_PATH |
| 18515 | ;; |
| 18516 | |
| 18517 | solaris*) |
| 18518 | version_type=linux |
| 18519 | need_lib_prefix=no |
| 18520 | need_version=no |
| 18521 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18522 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18523 | shlibpath_var=LD_LIBRARY_PATH |
| 18524 | shlibpath_overrides_runpath=yes |
| 18525 | hardcode_into_libs=yes |
| 18526 | # ldd complains unless libraries are executable |
| 18527 | postinstall_cmds='chmod +x $lib' |
| 18528 | ;; |
| 18529 | |
| 18530 | sunos4*) |
| 18531 | version_type=sunos |
| 18532 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 18533 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 18534 | shlibpath_var=LD_LIBRARY_PATH |
| 18535 | shlibpath_overrides_runpath=yes |
| 18536 | if test "$with_gnu_ld" = yes; then |
| 18537 | need_lib_prefix=no |
| 18538 | fi |
| 18539 | need_version=yes |
| 18540 | ;; |
| 18541 | |
| 18542 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 18543 | version_type=linux |
| 18544 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18545 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18546 | shlibpath_var=LD_LIBRARY_PATH |
| 18547 | case $host_vendor in |
| 18548 | sni) |
| 18549 | shlibpath_overrides_runpath=no |
| 18550 | need_lib_prefix=no |
| 18551 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 18552 | runpath_var=LD_RUN_PATH |
| 18553 | ;; |
| 18554 | siemens) |
| 18555 | need_lib_prefix=no |
| 18556 | ;; |
| 18557 | motorola) |
| 18558 | need_lib_prefix=no |
| 18559 | need_version=no |
| 18560 | shlibpath_overrides_runpath=no |
| 18561 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 18562 | ;; |
| 18563 | esac |
| 18564 | ;; |
| 18565 | |
| 18566 | sysv4*MP*) |
| 18567 | if test -d /usr/nec ;then |
| 18568 | version_type=linux |
| 18569 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 18570 | soname_spec='$libname${shared_ext}.$major' |
| 18571 | shlibpath_var=LD_LIBRARY_PATH |
| 18572 | fi |
| 18573 | ;; |
| 18574 | |
| 18575 | uts4*) |
| 18576 | version_type=linux |
| 18577 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18578 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18579 | shlibpath_var=LD_LIBRARY_PATH |
| 18580 | ;; |
| 18581 | |
| 18582 | *) |
| 18583 | dynamic_linker=no |
| 18584 | ;; |
| 18585 | esac |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18586 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 18587 | echo "${ECHO_T}$dynamic_linker" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18588 | test "$dynamic_linker" = no && can_build_shared=no |
| 18589 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18590 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 18591 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18592 | hardcode_action_GCJ= |
| 18593 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
| 18594 | test -n "$runpath_var GCJ" || \ |
| 18595 | test "X$hardcode_automatic_GCJ"="Xyes" ; then |
| 18596 | |
| 18597 | # We can hardcode non-existant directories. |
| 18598 | if test "$hardcode_direct_GCJ" != no && |
| 18599 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 18600 | # have to relink, otherwise we might link with an installed library |
| 18601 | # when we should be linking with a yet-to-be-installed one |
| 18602 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
| 18603 | test "$hardcode_minus_L_GCJ" != no; then |
| 18604 | # Linking always hardcodes the temporary library directory. |
| 18605 | hardcode_action_GCJ=relink |
| 18606 | else |
| 18607 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 18608 | hardcode_action_GCJ=immediate |
| 18609 | fi |
| 18610 | else |
| 18611 | # We cannot hardcode anything, or else we can only hardcode existing |
| 18612 | # directories. |
| 18613 | hardcode_action_GCJ=unsupported |
| 18614 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18615 | { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
| 18616 | echo "${ECHO_T}$hardcode_action_GCJ" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18617 | |
| 18618 | if test "$hardcode_action_GCJ" = relink; then |
| 18619 | # Fast installation is not supported |
| 18620 | enable_fast_install=no |
| 18621 | elif test "$shlibpath_overrides_runpath" = yes || |
| 18622 | test "$enable_shared" = no; then |
| 18623 | # Fast installation is not necessary |
| 18624 | enable_fast_install=needless |
| 18625 | fi |
| 18626 | |
| 18627 | striplib= |
| 18628 | old_striplib= |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18629 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 18630 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18631 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 18632 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 18633 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18634 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18635 | echo "${ECHO_T}yes" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18636 | else |
| 18637 | # FIXME - insert some real tests, host_os isn't really good enough |
| 18638 | case $host_os in |
| 18639 | darwin*) |
| 18640 | if test -n "$STRIP" ; then |
| 18641 | striplib="$STRIP -x" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18642 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 18643 | echo "${ECHO_T}yes" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18644 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18645 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18646 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18647 | fi |
| 18648 | ;; |
| 18649 | *) |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18650 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18651 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18652 | ;; |
| 18653 | esac |
| 18654 | fi |
| 18655 | |
| 18656 | if test "x$enable_dlopen" != xyes; then |
| 18657 | enable_dlopen=unknown |
| 18658 | enable_dlopen_self=unknown |
| 18659 | enable_dlopen_self_static=unknown |
| 18660 | else |
| 18661 | lt_cv_dlopen=no |
| 18662 | lt_cv_dlopen_libs= |
| 18663 | |
| 18664 | case $host_os in |
| 18665 | beos*) |
| 18666 | lt_cv_dlopen="load_add_on" |
| 18667 | lt_cv_dlopen_libs= |
| 18668 | lt_cv_dlopen_self=yes |
| 18669 | ;; |
| 18670 | |
| 18671 | mingw* | pw32*) |
| 18672 | lt_cv_dlopen="LoadLibrary" |
| 18673 | lt_cv_dlopen_libs= |
| 18674 | ;; |
| 18675 | |
| 18676 | cygwin*) |
| 18677 | lt_cv_dlopen="dlopen" |
| 18678 | lt_cv_dlopen_libs= |
| 18679 | ;; |
| 18680 | |
| 18681 | darwin*) |
| 18682 | # if libdl is installed we need to link against it |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18683 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 18684 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18685 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 18686 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18687 | else |
| 18688 | ac_check_lib_save_LIBS=$LIBS |
| 18689 | LIBS="-ldl $LIBS" |
| 18690 | cat >conftest.$ac_ext <<_ACEOF |
| 18691 | /* confdefs.h. */ |
| 18692 | _ACEOF |
| 18693 | cat confdefs.h >>conftest.$ac_ext |
| 18694 | cat >>conftest.$ac_ext <<_ACEOF |
| 18695 | /* end confdefs.h. */ |
| 18696 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18697 | /* Override any GCC internal prototype to avoid an error. |
| 18698 | Use char because int might match the return type of a GCC |
| 18699 | builtin and then its argument prototype would still apply. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18700 | #ifdef __cplusplus |
| 18701 | extern "C" |
| 18702 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18703 | char dlopen (); |
| 18704 | int |
| 18705 | main () |
| 18706 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18707 | return dlopen (); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18708 | ; |
| 18709 | return 0; |
| 18710 | } |
| 18711 | _ACEOF |
| 18712 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18713 | if { (ac_try="$ac_link" |
| 18714 | case "(($ac_try" in |
| 18715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18716 | *) ac_try_echo=$ac_try;; |
| 18717 | esac |
| 18718 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18719 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18720 | ac_status=$? |
| 18721 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18722 | rm -f conftest.er1 |
| 18723 | cat conftest.err >&5 |
| 18724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18725 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18726 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18727 | { (case "(($ac_try" in |
| 18728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18729 | *) ac_try_echo=$ac_try;; |
| 18730 | esac |
| 18731 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18732 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18733 | ac_status=$? |
| 18734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18735 | (exit $ac_status); }; } && |
| 18736 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18737 | { (case "(($ac_try" in |
| 18738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18739 | *) ac_try_echo=$ac_try;; |
| 18740 | esac |
| 18741 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18742 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18743 | ac_status=$? |
| 18744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18745 | (exit $ac_status); }; }; then |
| 18746 | ac_cv_lib_dl_dlopen=yes |
| 18747 | else |
| 18748 | echo "$as_me: failed program was:" >&5 |
| 18749 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18750 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18751 | ac_cv_lib_dl_dlopen=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18752 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18753 | |
| 18754 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18755 | conftest$ac_exeext conftest.$ac_ext |
| 18756 | LIBS=$ac_check_lib_save_LIBS |
| 18757 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18758 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 18759 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18760 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 18761 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 18762 | else |
| 18763 | |
| 18764 | lt_cv_dlopen="dyld" |
| 18765 | lt_cv_dlopen_libs= |
| 18766 | lt_cv_dlopen_self=yes |
| 18767 | |
| 18768 | fi |
| 18769 | |
| 18770 | ;; |
| 18771 | |
| 18772 | *) |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18773 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 18774 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18775 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 18776 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18777 | else |
| 18778 | cat >conftest.$ac_ext <<_ACEOF |
| 18779 | /* confdefs.h. */ |
| 18780 | _ACEOF |
| 18781 | cat confdefs.h >>conftest.$ac_ext |
| 18782 | cat >>conftest.$ac_ext <<_ACEOF |
| 18783 | /* end confdefs.h. */ |
| 18784 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 18785 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18786 | #define shl_load innocuous_shl_load |
| 18787 | |
| 18788 | /* System header to define __stub macros and hopefully few prototypes, |
| 18789 | which can conflict with char shl_load (); below. |
| 18790 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18791 | <limits.h> exists even on freestanding compilers. */ |
| 18792 | |
| 18793 | #ifdef __STDC__ |
| 18794 | # include <limits.h> |
| 18795 | #else |
| 18796 | # include <assert.h> |
| 18797 | #endif |
| 18798 | |
| 18799 | #undef shl_load |
| 18800 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18801 | /* Override any GCC internal prototype to avoid an error. |
| 18802 | Use char because int might match the return type of a GCC |
| 18803 | builtin and then its argument prototype would still apply. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18804 | #ifdef __cplusplus |
| 18805 | extern "C" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18806 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18807 | char shl_load (); |
| 18808 | /* The GNU C library defines this for functions which it implements |
| 18809 | to always fail with ENOSYS. Some functions are actually named |
| 18810 | something starting with __ and the normal name is an alias. */ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18811 | #if defined __stub_shl_load || defined __stub___shl_load |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18812 | choke me |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18813 | #endif |
| 18814 | |
| 18815 | int |
| 18816 | main () |
| 18817 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18818 | return shl_load (); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18819 | ; |
| 18820 | return 0; |
| 18821 | } |
| 18822 | _ACEOF |
| 18823 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18824 | if { (ac_try="$ac_link" |
| 18825 | case "(($ac_try" in |
| 18826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18827 | *) ac_try_echo=$ac_try;; |
| 18828 | esac |
| 18829 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18830 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18831 | ac_status=$? |
| 18832 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18833 | rm -f conftest.er1 |
| 18834 | cat conftest.err >&5 |
| 18835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18836 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18837 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18838 | { (case "(($ac_try" in |
| 18839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18840 | *) ac_try_echo=$ac_try;; |
| 18841 | esac |
| 18842 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18843 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18844 | ac_status=$? |
| 18845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18846 | (exit $ac_status); }; } && |
| 18847 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18848 | { (case "(($ac_try" in |
| 18849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18850 | *) ac_try_echo=$ac_try;; |
| 18851 | esac |
| 18852 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18853 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18854 | ac_status=$? |
| 18855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18856 | (exit $ac_status); }; }; then |
| 18857 | ac_cv_func_shl_load=yes |
| 18858 | else |
| 18859 | echo "$as_me: failed program was:" >&5 |
| 18860 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18861 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18862 | ac_cv_func_shl_load=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18863 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18864 | |
| 18865 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18866 | conftest$ac_exeext conftest.$ac_ext |
| 18867 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18868 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 18869 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18870 | if test $ac_cv_func_shl_load = yes; then |
| 18871 | lt_cv_dlopen="shl_load" |
| 18872 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18873 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 18874 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18875 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 18876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18877 | else |
| 18878 | ac_check_lib_save_LIBS=$LIBS |
| 18879 | LIBS="-ldld $LIBS" |
| 18880 | cat >conftest.$ac_ext <<_ACEOF |
| 18881 | /* confdefs.h. */ |
| 18882 | _ACEOF |
| 18883 | cat confdefs.h >>conftest.$ac_ext |
| 18884 | cat >>conftest.$ac_ext <<_ACEOF |
| 18885 | /* end confdefs.h. */ |
| 18886 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18887 | /* Override any GCC internal prototype to avoid an error. |
| 18888 | Use char because int might match the return type of a GCC |
| 18889 | builtin and then its argument prototype would still apply. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18890 | #ifdef __cplusplus |
| 18891 | extern "C" |
| 18892 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18893 | char shl_load (); |
| 18894 | int |
| 18895 | main () |
| 18896 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18897 | return shl_load (); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18898 | ; |
| 18899 | return 0; |
| 18900 | } |
| 18901 | _ACEOF |
| 18902 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18903 | if { (ac_try="$ac_link" |
| 18904 | case "(($ac_try" in |
| 18905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18906 | *) ac_try_echo=$ac_try;; |
| 18907 | esac |
| 18908 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18909 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18910 | ac_status=$? |
| 18911 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18912 | rm -f conftest.er1 |
| 18913 | cat conftest.err >&5 |
| 18914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18915 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18916 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18917 | { (case "(($ac_try" in |
| 18918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18919 | *) ac_try_echo=$ac_try;; |
| 18920 | esac |
| 18921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18922 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18923 | ac_status=$? |
| 18924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18925 | (exit $ac_status); }; } && |
| 18926 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18927 | { (case "(($ac_try" in |
| 18928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18929 | *) ac_try_echo=$ac_try;; |
| 18930 | esac |
| 18931 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18932 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18933 | ac_status=$? |
| 18934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18935 | (exit $ac_status); }; }; then |
| 18936 | ac_cv_lib_dld_shl_load=yes |
| 18937 | else |
| 18938 | echo "$as_me: failed program was:" >&5 |
| 18939 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18940 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18941 | ac_cv_lib_dld_shl_load=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18942 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18943 | |
| 18944 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18945 | conftest$ac_exeext conftest.$ac_ext |
| 18946 | LIBS=$ac_check_lib_save_LIBS |
| 18947 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18948 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 18949 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18950 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 18951 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 18952 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18953 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 18954 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18955 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 18956 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18957 | else |
| 18958 | cat >conftest.$ac_ext <<_ACEOF |
| 18959 | /* confdefs.h. */ |
| 18960 | _ACEOF |
| 18961 | cat confdefs.h >>conftest.$ac_ext |
| 18962 | cat >>conftest.$ac_ext <<_ACEOF |
| 18963 | /* end confdefs.h. */ |
| 18964 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 18965 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18966 | #define dlopen innocuous_dlopen |
| 18967 | |
| 18968 | /* System header to define __stub macros and hopefully few prototypes, |
| 18969 | which can conflict with char dlopen (); below. |
| 18970 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18971 | <limits.h> exists even on freestanding compilers. */ |
| 18972 | |
| 18973 | #ifdef __STDC__ |
| 18974 | # include <limits.h> |
| 18975 | #else |
| 18976 | # include <assert.h> |
| 18977 | #endif |
| 18978 | |
| 18979 | #undef dlopen |
| 18980 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18981 | /* Override any GCC internal prototype to avoid an error. |
| 18982 | Use char because int might match the return type of a GCC |
| 18983 | builtin and then its argument prototype would still apply. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18984 | #ifdef __cplusplus |
| 18985 | extern "C" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18986 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18987 | char dlopen (); |
| 18988 | /* The GNU C library defines this for functions which it implements |
| 18989 | to always fail with ENOSYS. Some functions are actually named |
| 18990 | something starting with __ and the normal name is an alias. */ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18991 | #if defined __stub_dlopen || defined __stub___dlopen |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18992 | choke me |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18993 | #endif |
| 18994 | |
| 18995 | int |
| 18996 | main () |
| 18997 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18998 | return dlopen (); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18999 | ; |
| 19000 | return 0; |
| 19001 | } |
| 19002 | _ACEOF |
| 19003 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19004 | if { (ac_try="$ac_link" |
| 19005 | case "(($ac_try" in |
| 19006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19007 | *) ac_try_echo=$ac_try;; |
| 19008 | esac |
| 19009 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19010 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19011 | ac_status=$? |
| 19012 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19013 | rm -f conftest.er1 |
| 19014 | cat conftest.err >&5 |
| 19015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19016 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19017 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19018 | { (case "(($ac_try" in |
| 19019 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19020 | *) ac_try_echo=$ac_try;; |
| 19021 | esac |
| 19022 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19023 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19024 | ac_status=$? |
| 19025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19026 | (exit $ac_status); }; } && |
| 19027 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19028 | { (case "(($ac_try" in |
| 19029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19030 | *) ac_try_echo=$ac_try;; |
| 19031 | esac |
| 19032 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19033 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19034 | ac_status=$? |
| 19035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19036 | (exit $ac_status); }; }; then |
| 19037 | ac_cv_func_dlopen=yes |
| 19038 | else |
| 19039 | echo "$as_me: failed program was:" >&5 |
| 19040 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19041 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19042 | ac_cv_func_dlopen=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19043 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19044 | |
| 19045 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19046 | conftest$ac_exeext conftest.$ac_ext |
| 19047 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19048 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 19049 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19050 | if test $ac_cv_func_dlopen = yes; then |
| 19051 | lt_cv_dlopen="dlopen" |
| 19052 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19053 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 19054 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19055 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 19056 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19057 | else |
| 19058 | ac_check_lib_save_LIBS=$LIBS |
| 19059 | LIBS="-ldl $LIBS" |
| 19060 | cat >conftest.$ac_ext <<_ACEOF |
| 19061 | /* confdefs.h. */ |
| 19062 | _ACEOF |
| 19063 | cat confdefs.h >>conftest.$ac_ext |
| 19064 | cat >>conftest.$ac_ext <<_ACEOF |
| 19065 | /* end confdefs.h. */ |
| 19066 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19067 | /* Override any GCC internal prototype to avoid an error. |
| 19068 | Use char because int might match the return type of a GCC |
| 19069 | builtin and then its argument prototype would still apply. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19070 | #ifdef __cplusplus |
| 19071 | extern "C" |
| 19072 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19073 | char dlopen (); |
| 19074 | int |
| 19075 | main () |
| 19076 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19077 | return dlopen (); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19078 | ; |
| 19079 | return 0; |
| 19080 | } |
| 19081 | _ACEOF |
| 19082 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19083 | if { (ac_try="$ac_link" |
| 19084 | case "(($ac_try" in |
| 19085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19086 | *) ac_try_echo=$ac_try;; |
| 19087 | esac |
| 19088 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19089 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19090 | ac_status=$? |
| 19091 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19092 | rm -f conftest.er1 |
| 19093 | cat conftest.err >&5 |
| 19094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19095 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19096 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19097 | { (case "(($ac_try" in |
| 19098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19099 | *) ac_try_echo=$ac_try;; |
| 19100 | esac |
| 19101 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19102 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19103 | ac_status=$? |
| 19104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19105 | (exit $ac_status); }; } && |
| 19106 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19107 | { (case "(($ac_try" in |
| 19108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19109 | *) ac_try_echo=$ac_try;; |
| 19110 | esac |
| 19111 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19112 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19113 | ac_status=$? |
| 19114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19115 | (exit $ac_status); }; }; then |
| 19116 | ac_cv_lib_dl_dlopen=yes |
| 19117 | else |
| 19118 | echo "$as_me: failed program was:" >&5 |
| 19119 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19120 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19121 | ac_cv_lib_dl_dlopen=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19122 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19123 | |
| 19124 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19125 | conftest$ac_exeext conftest.$ac_ext |
| 19126 | LIBS=$ac_check_lib_save_LIBS |
| 19127 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19128 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 19129 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19130 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 19131 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 19132 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19133 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 19134 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19135 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 19136 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19137 | else |
| 19138 | ac_check_lib_save_LIBS=$LIBS |
| 19139 | LIBS="-lsvld $LIBS" |
| 19140 | cat >conftest.$ac_ext <<_ACEOF |
| 19141 | /* confdefs.h. */ |
| 19142 | _ACEOF |
| 19143 | cat confdefs.h >>conftest.$ac_ext |
| 19144 | cat >>conftest.$ac_ext <<_ACEOF |
| 19145 | /* end confdefs.h. */ |
| 19146 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19147 | /* Override any GCC internal prototype to avoid an error. |
| 19148 | Use char because int might match the return type of a GCC |
| 19149 | builtin and then its argument prototype would still apply. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19150 | #ifdef __cplusplus |
| 19151 | extern "C" |
| 19152 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19153 | char dlopen (); |
| 19154 | int |
| 19155 | main () |
| 19156 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19157 | return dlopen (); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19158 | ; |
| 19159 | return 0; |
| 19160 | } |
| 19161 | _ACEOF |
| 19162 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19163 | if { (ac_try="$ac_link" |
| 19164 | case "(($ac_try" in |
| 19165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19166 | *) ac_try_echo=$ac_try;; |
| 19167 | esac |
| 19168 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19169 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19170 | ac_status=$? |
| 19171 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19172 | rm -f conftest.er1 |
| 19173 | cat conftest.err >&5 |
| 19174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19175 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19176 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19177 | { (case "(($ac_try" in |
| 19178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19179 | *) ac_try_echo=$ac_try;; |
| 19180 | esac |
| 19181 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19182 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19183 | ac_status=$? |
| 19184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19185 | (exit $ac_status); }; } && |
| 19186 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19187 | { (case "(($ac_try" in |
| 19188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19189 | *) ac_try_echo=$ac_try;; |
| 19190 | esac |
| 19191 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19192 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19193 | ac_status=$? |
| 19194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19195 | (exit $ac_status); }; }; then |
| 19196 | ac_cv_lib_svld_dlopen=yes |
| 19197 | else |
| 19198 | echo "$as_me: failed program was:" >&5 |
| 19199 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19200 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19201 | ac_cv_lib_svld_dlopen=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19202 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19203 | |
| 19204 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19205 | conftest$ac_exeext conftest.$ac_ext |
| 19206 | LIBS=$ac_check_lib_save_LIBS |
| 19207 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19208 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 19209 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19210 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 19211 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 19212 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19213 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 19214 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19215 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 19216 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19217 | else |
| 19218 | ac_check_lib_save_LIBS=$LIBS |
| 19219 | LIBS="-ldld $LIBS" |
| 19220 | cat >conftest.$ac_ext <<_ACEOF |
| 19221 | /* confdefs.h. */ |
| 19222 | _ACEOF |
| 19223 | cat confdefs.h >>conftest.$ac_ext |
| 19224 | cat >>conftest.$ac_ext <<_ACEOF |
| 19225 | /* end confdefs.h. */ |
| 19226 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19227 | /* Override any GCC internal prototype to avoid an error. |
| 19228 | Use char because int might match the return type of a GCC |
| 19229 | builtin and then its argument prototype would still apply. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19230 | #ifdef __cplusplus |
| 19231 | extern "C" |
| 19232 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19233 | char dld_link (); |
| 19234 | int |
| 19235 | main () |
| 19236 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19237 | return dld_link (); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19238 | ; |
| 19239 | return 0; |
| 19240 | } |
| 19241 | _ACEOF |
| 19242 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19243 | if { (ac_try="$ac_link" |
| 19244 | case "(($ac_try" in |
| 19245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19246 | *) ac_try_echo=$ac_try;; |
| 19247 | esac |
| 19248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19249 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19250 | ac_status=$? |
| 19251 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19252 | rm -f conftest.er1 |
| 19253 | cat conftest.err >&5 |
| 19254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19255 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19256 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19257 | { (case "(($ac_try" in |
| 19258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19259 | *) ac_try_echo=$ac_try;; |
| 19260 | esac |
| 19261 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19262 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19263 | ac_status=$? |
| 19264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19265 | (exit $ac_status); }; } && |
| 19266 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19267 | { (case "(($ac_try" in |
| 19268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19269 | *) ac_try_echo=$ac_try;; |
| 19270 | esac |
| 19271 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19272 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19273 | ac_status=$? |
| 19274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19275 | (exit $ac_status); }; }; then |
| 19276 | ac_cv_lib_dld_dld_link=yes |
| 19277 | else |
| 19278 | echo "$as_me: failed program was:" >&5 |
| 19279 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19280 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19281 | ac_cv_lib_dld_dld_link=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19282 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19283 | |
| 19284 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19285 | conftest$ac_exeext conftest.$ac_ext |
| 19286 | LIBS=$ac_check_lib_save_LIBS |
| 19287 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19288 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 19289 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19290 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 19291 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 19292 | fi |
| 19293 | |
| 19294 | |
| 19295 | fi |
| 19296 | |
| 19297 | |
| 19298 | fi |
| 19299 | |
| 19300 | |
| 19301 | fi |
| 19302 | |
| 19303 | |
| 19304 | fi |
| 19305 | |
| 19306 | |
| 19307 | fi |
| 19308 | |
| 19309 | ;; |
| 19310 | esac |
| 19311 | |
| 19312 | if test "x$lt_cv_dlopen" != xno; then |
| 19313 | enable_dlopen=yes |
| 19314 | else |
| 19315 | enable_dlopen=no |
| 19316 | fi |
| 19317 | |
| 19318 | case $lt_cv_dlopen in |
| 19319 | dlopen) |
| 19320 | save_CPPFLAGS="$CPPFLAGS" |
| 19321 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 19322 | |
| 19323 | save_LDFLAGS="$LDFLAGS" |
| 19324 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 19325 | |
| 19326 | save_LIBS="$LIBS" |
| 19327 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 19328 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19329 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 19330 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19331 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 19332 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19333 | else |
| 19334 | if test "$cross_compiling" = yes; then : |
| 19335 | lt_cv_dlopen_self=cross |
| 19336 | else |
| 19337 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 19338 | lt_status=$lt_dlunknown |
| 19339 | cat > conftest.$ac_ext <<EOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19340 | #line 19340 "configure" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19341 | #include "confdefs.h" |
| 19342 | |
| 19343 | #if HAVE_DLFCN_H |
| 19344 | #include <dlfcn.h> |
| 19345 | #endif |
| 19346 | |
| 19347 | #include <stdio.h> |
| 19348 | |
| 19349 | #ifdef RTLD_GLOBAL |
| 19350 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 19351 | #else |
| 19352 | # ifdef DL_GLOBAL |
| 19353 | # define LT_DLGLOBAL DL_GLOBAL |
| 19354 | # else |
| 19355 | # define LT_DLGLOBAL 0 |
| 19356 | # endif |
| 19357 | #endif |
| 19358 | |
| 19359 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 19360 | find out it does not work in some platform. */ |
| 19361 | #ifndef LT_DLLAZY_OR_NOW |
| 19362 | # ifdef RTLD_LAZY |
| 19363 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 19364 | # else |
| 19365 | # ifdef DL_LAZY |
| 19366 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 19367 | # else |
| 19368 | # ifdef RTLD_NOW |
| 19369 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 19370 | # else |
| 19371 | # ifdef DL_NOW |
| 19372 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 19373 | # else |
| 19374 | # define LT_DLLAZY_OR_NOW 0 |
| 19375 | # endif |
| 19376 | # endif |
| 19377 | # endif |
| 19378 | # endif |
| 19379 | #endif |
| 19380 | |
| 19381 | #ifdef __cplusplus |
| 19382 | extern "C" void exit (int); |
| 19383 | #endif |
| 19384 | |
| 19385 | void fnord() { int i=42;} |
| 19386 | int main () |
| 19387 | { |
| 19388 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 19389 | int status = $lt_dlunknown; |
| 19390 | |
| 19391 | if (self) |
| 19392 | { |
| 19393 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 19394 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 19395 | /* dlclose (self); */ |
| 19396 | } |
| 19397 | |
| 19398 | exit (status); |
| 19399 | } |
| 19400 | EOF |
| 19401 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19402 | (eval $ac_link) 2>&5 |
| 19403 | ac_status=$? |
| 19404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19405 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 19406 | (./conftest; exit; ) 2>/dev/null |
| 19407 | lt_status=$? |
| 19408 | case x$lt_status in |
| 19409 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 19410 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 19411 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 19412 | esac |
| 19413 | else : |
| 19414 | # compilation failed |
| 19415 | lt_cv_dlopen_self=no |
| 19416 | fi |
| 19417 | fi |
| 19418 | rm -fr conftest* |
| 19419 | |
| 19420 | |
| 19421 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19422 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 19423 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19424 | |
| 19425 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 19426 | LDFLAGS="$LDFLAGS $link_static_flag" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19427 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 19428 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19429 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 19430 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19431 | else |
| 19432 | if test "$cross_compiling" = yes; then : |
| 19433 | lt_cv_dlopen_self_static=cross |
| 19434 | else |
| 19435 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 19436 | lt_status=$lt_dlunknown |
| 19437 | cat > conftest.$ac_ext <<EOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19438 | #line 19438 "configure" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19439 | #include "confdefs.h" |
| 19440 | |
| 19441 | #if HAVE_DLFCN_H |
| 19442 | #include <dlfcn.h> |
| 19443 | #endif |
| 19444 | |
| 19445 | #include <stdio.h> |
| 19446 | |
| 19447 | #ifdef RTLD_GLOBAL |
| 19448 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 19449 | #else |
| 19450 | # ifdef DL_GLOBAL |
| 19451 | # define LT_DLGLOBAL DL_GLOBAL |
| 19452 | # else |
| 19453 | # define LT_DLGLOBAL 0 |
| 19454 | # endif |
| 19455 | #endif |
| 19456 | |
| 19457 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 19458 | find out it does not work in some platform. */ |
| 19459 | #ifndef LT_DLLAZY_OR_NOW |
| 19460 | # ifdef RTLD_LAZY |
| 19461 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 19462 | # else |
| 19463 | # ifdef DL_LAZY |
| 19464 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 19465 | # else |
| 19466 | # ifdef RTLD_NOW |
| 19467 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 19468 | # else |
| 19469 | # ifdef DL_NOW |
| 19470 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 19471 | # else |
| 19472 | # define LT_DLLAZY_OR_NOW 0 |
| 19473 | # endif |
| 19474 | # endif |
| 19475 | # endif |
| 19476 | # endif |
| 19477 | #endif |
| 19478 | |
| 19479 | #ifdef __cplusplus |
| 19480 | extern "C" void exit (int); |
| 19481 | #endif |
| 19482 | |
| 19483 | void fnord() { int i=42;} |
| 19484 | int main () |
| 19485 | { |
| 19486 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 19487 | int status = $lt_dlunknown; |
| 19488 | |
| 19489 | if (self) |
| 19490 | { |
| 19491 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 19492 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 19493 | /* dlclose (self); */ |
| 19494 | } |
| 19495 | |
| 19496 | exit (status); |
| 19497 | } |
| 19498 | EOF |
| 19499 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19500 | (eval $ac_link) 2>&5 |
| 19501 | ac_status=$? |
| 19502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19503 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 19504 | (./conftest; exit; ) 2>/dev/null |
| 19505 | lt_status=$? |
| 19506 | case x$lt_status in |
| 19507 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 19508 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 19509 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 19510 | esac |
| 19511 | else : |
| 19512 | # compilation failed |
| 19513 | lt_cv_dlopen_self_static=no |
| 19514 | fi |
| 19515 | fi |
| 19516 | rm -fr conftest* |
| 19517 | |
| 19518 | |
| 19519 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19520 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 19521 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19522 | fi |
| 19523 | |
| 19524 | CPPFLAGS="$save_CPPFLAGS" |
| 19525 | LDFLAGS="$save_LDFLAGS" |
| 19526 | LIBS="$save_LIBS" |
| 19527 | ;; |
| 19528 | esac |
| 19529 | |
| 19530 | case $lt_cv_dlopen_self in |
| 19531 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 19532 | *) enable_dlopen_self=unknown ;; |
| 19533 | esac |
| 19534 | |
| 19535 | case $lt_cv_dlopen_self_static in |
| 19536 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 19537 | *) enable_dlopen_self_static=unknown ;; |
| 19538 | esac |
| 19539 | fi |
| 19540 | |
| 19541 | |
| 19542 | # The else clause should only fire when bootstrapping the |
| 19543 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 19544 | # with your package, and you will get complaints that there are |
| 19545 | # no rules to generate ltmain.sh. |
| 19546 | if test -f "$ltmain"; then |
| 19547 | # See if we are running on zsh, and set the options which allow our commands through |
| 19548 | # without removal of \ escapes. |
| 19549 | if test -n "${ZSH_VERSION+set}" ; then |
| 19550 | setopt NO_GLOB_SUBST |
| 19551 | fi |
| 19552 | # Now quote all the things that may contain metacharacters while being |
| 19553 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 19554 | # variables and quote the copies for generation of the libtool script. |
| 19555 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 19556 | SED SHELL STRIP \ |
| 19557 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 19558 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 19559 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 19560 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 19561 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 19562 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 19563 | old_postinstall_cmds old_postuninstall_cmds \ |
| 19564 | compiler_GCJ \ |
| 19565 | CC_GCJ \ |
| 19566 | LD_GCJ \ |
| 19567 | lt_prog_compiler_wl_GCJ \ |
| 19568 | lt_prog_compiler_pic_GCJ \ |
| 19569 | lt_prog_compiler_static_GCJ \ |
| 19570 | lt_prog_compiler_no_builtin_flag_GCJ \ |
| 19571 | export_dynamic_flag_spec_GCJ \ |
| 19572 | thread_safe_flag_spec_GCJ \ |
| 19573 | whole_archive_flag_spec_GCJ \ |
| 19574 | enable_shared_with_static_runtimes_GCJ \ |
| 19575 | old_archive_cmds_GCJ \ |
| 19576 | old_archive_from_new_cmds_GCJ \ |
| 19577 | predep_objects_GCJ \ |
| 19578 | postdep_objects_GCJ \ |
| 19579 | predeps_GCJ \ |
| 19580 | postdeps_GCJ \ |
| 19581 | compiler_lib_search_path_GCJ \ |
| 19582 | archive_cmds_GCJ \ |
| 19583 | archive_expsym_cmds_GCJ \ |
| 19584 | postinstall_cmds_GCJ \ |
| 19585 | postuninstall_cmds_GCJ \ |
| 19586 | old_archive_from_expsyms_cmds_GCJ \ |
| 19587 | allow_undefined_flag_GCJ \ |
| 19588 | no_undefined_flag_GCJ \ |
| 19589 | export_symbols_cmds_GCJ \ |
| 19590 | hardcode_libdir_flag_spec_GCJ \ |
| 19591 | hardcode_libdir_flag_spec_ld_GCJ \ |
| 19592 | hardcode_libdir_separator_GCJ \ |
| 19593 | hardcode_automatic_GCJ \ |
| 19594 | module_cmds_GCJ \ |
| 19595 | module_expsym_cmds_GCJ \ |
| 19596 | lt_cv_prog_compiler_c_o_GCJ \ |
| 19597 | exclude_expsyms_GCJ \ |
| 19598 | include_expsyms_GCJ; do |
| 19599 | |
| 19600 | case $var in |
| 19601 | old_archive_cmds_GCJ | \ |
| 19602 | old_archive_from_new_cmds_GCJ | \ |
| 19603 | archive_cmds_GCJ | \ |
| 19604 | archive_expsym_cmds_GCJ | \ |
| 19605 | module_cmds_GCJ | \ |
| 19606 | module_expsym_cmds_GCJ | \ |
| 19607 | old_archive_from_expsyms_cmds_GCJ | \ |
| 19608 | export_symbols_cmds_GCJ | \ |
| 19609 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 19610 | postinstall_cmds | postuninstall_cmds | \ |
| 19611 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 19612 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 19613 | # Double-quote double-evaled strings. |
| 19614 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 19615 | ;; |
| 19616 | *) |
| 19617 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 19618 | ;; |
| 19619 | esac |
| 19620 | done |
| 19621 | |
| 19622 | case $lt_echo in |
| 19623 | *'\$0 --fallback-echo"') |
| 19624 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 19625 | ;; |
| 19626 | esac |
| 19627 | |
| 19628 | cfgfile="$ofile" |
| 19629 | |
| 19630 | cat <<__EOF__ >> "$cfgfile" |
| 19631 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 19632 | |
| 19633 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 19634 | |
| 19635 | # Shell to use when invoking shell scripts. |
| 19636 | SHELL=$lt_SHELL |
| 19637 | |
| 19638 | # Whether or not to build shared libraries. |
| 19639 | build_libtool_libs=$enable_shared |
| 19640 | |
| 19641 | # Whether or not to build static libraries. |
| 19642 | build_old_libs=$enable_static |
| 19643 | |
| 19644 | # Whether or not to add -lc for building shared libraries. |
| 19645 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
| 19646 | |
| 19647 | # Whether or not to disallow shared libs when runtime libs are static |
| 19648 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
| 19649 | |
| 19650 | # Whether or not to optimize for fast installation. |
| 19651 | fast_install=$enable_fast_install |
| 19652 | |
| 19653 | # The host system. |
| 19654 | host_alias=$host_alias |
| 19655 | host=$host |
| 19656 | |
| 19657 | # An echo program that does not interpret backslashes. |
| 19658 | echo=$lt_echo |
| 19659 | |
| 19660 | # The archiver. |
| 19661 | AR=$lt_AR |
| 19662 | AR_FLAGS=$lt_AR_FLAGS |
| 19663 | |
| 19664 | # A C compiler. |
| 19665 | LTCC=$lt_LTCC |
| 19666 | |
| 19667 | # A language-specific compiler. |
| 19668 | CC=$lt_compiler_GCJ |
| 19669 | |
| 19670 | # Is the compiler the GNU C compiler? |
| 19671 | with_gcc=$GCC_GCJ |
| 19672 | |
| 19673 | # An ERE matcher. |
| 19674 | EGREP=$lt_EGREP |
| 19675 | |
| 19676 | # The linker used to build libraries. |
| 19677 | LD=$lt_LD_GCJ |
| 19678 | |
| 19679 | # Whether we need hard or soft links. |
| 19680 | LN_S=$lt_LN_S |
| 19681 | |
| 19682 | # A BSD-compatible nm program. |
| 19683 | NM=$lt_NM |
| 19684 | |
| 19685 | # A symbol stripping program |
| 19686 | STRIP=$lt_STRIP |
| 19687 | |
| 19688 | # Used to examine libraries when file_magic_cmd begins "file" |
| 19689 | MAGIC_CMD=$MAGIC_CMD |
| 19690 | |
| 19691 | # Used on cygwin: DLL creation program. |
| 19692 | DLLTOOL="$DLLTOOL" |
| 19693 | |
| 19694 | # Used on cygwin: object dumper. |
| 19695 | OBJDUMP="$OBJDUMP" |
| 19696 | |
| 19697 | # Used on cygwin: assembler. |
| 19698 | AS="$AS" |
| 19699 | |
| 19700 | # The name of the directory that contains temporary libtool files. |
| 19701 | objdir=$objdir |
| 19702 | |
| 19703 | # How to create reloadable object files. |
| 19704 | reload_flag=$lt_reload_flag |
| 19705 | reload_cmds=$lt_reload_cmds |
| 19706 | |
| 19707 | # How to pass a linker flag through the compiler. |
| 19708 | wl=$lt_lt_prog_compiler_wl_GCJ |
| 19709 | |
| 19710 | # Object file suffix (normally "o"). |
| 19711 | objext="$ac_objext" |
| 19712 | |
| 19713 | # Old archive suffix (normally "a"). |
| 19714 | libext="$libext" |
| 19715 | |
| 19716 | # Shared library suffix (normally ".so"). |
| 19717 | shrext_cmds='$shrext_cmds' |
| 19718 | |
| 19719 | # Executable file suffix (normally ""). |
| 19720 | exeext="$exeext" |
| 19721 | |
| 19722 | # Additional compiler flags for building library objects. |
| 19723 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
| 19724 | pic_mode=$pic_mode |
| 19725 | |
| 19726 | # What is the maximum length of a command? |
| 19727 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 19728 | |
| 19729 | # Does compiler simultaneously support -c and -o options? |
| 19730 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
| 19731 | |
| 19732 | # Must we lock files when doing compilation ? |
| 19733 | need_locks=$lt_need_locks |
| 19734 | |
| 19735 | # Do we need the lib prefix for modules? |
| 19736 | need_lib_prefix=$need_lib_prefix |
| 19737 | |
| 19738 | # Do we need a version for libraries? |
| 19739 | need_version=$need_version |
| 19740 | |
| 19741 | # Whether dlopen is supported. |
| 19742 | dlopen_support=$enable_dlopen |
| 19743 | |
| 19744 | # Whether dlopen of programs is supported. |
| 19745 | dlopen_self=$enable_dlopen_self |
| 19746 | |
| 19747 | # Whether dlopen of statically linked programs is supported. |
| 19748 | dlopen_self_static=$enable_dlopen_self_static |
| 19749 | |
| 19750 | # Compiler flag to prevent dynamic linking. |
| 19751 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
| 19752 | |
| 19753 | # Compiler flag to turn off builtin functions. |
| 19754 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
| 19755 | |
| 19756 | # Compiler flag to allow reflexive dlopens. |
| 19757 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
| 19758 | |
| 19759 | # Compiler flag to generate shared objects directly from archives. |
| 19760 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
| 19761 | |
| 19762 | # Compiler flag to generate thread-safe objects. |
| 19763 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
| 19764 | |
| 19765 | # Library versioning type. |
| 19766 | version_type=$version_type |
| 19767 | |
| 19768 | # Format of library name prefix. |
| 19769 | libname_spec=$lt_libname_spec |
| 19770 | |
| 19771 | # List of archive names. First name is the real one, the rest are links. |
| 19772 | # The last name is the one that the linker finds with -lNAME. |
| 19773 | library_names_spec=$lt_library_names_spec |
| 19774 | |
| 19775 | # The coded name of the library, if different from the real name. |
| 19776 | soname_spec=$lt_soname_spec |
| 19777 | |
| 19778 | # Commands used to build and install an old-style archive. |
| 19779 | RANLIB=$lt_RANLIB |
| 19780 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
| 19781 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 19782 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 19783 | |
| 19784 | # Create an old-style archive from a shared archive. |
| 19785 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
| 19786 | |
| 19787 | # Create a temporary old-style archive to link instead of a shared archive. |
| 19788 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
| 19789 | |
| 19790 | # Commands used to build and install a shared archive. |
| 19791 | archive_cmds=$lt_archive_cmds_GCJ |
| 19792 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
| 19793 | postinstall_cmds=$lt_postinstall_cmds |
| 19794 | postuninstall_cmds=$lt_postuninstall_cmds |
| 19795 | |
| 19796 | # Commands used to build a loadable module (assumed same as above if empty) |
| 19797 | module_cmds=$lt_module_cmds_GCJ |
| 19798 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
| 19799 | |
| 19800 | # Commands to strip libraries. |
| 19801 | old_striplib=$lt_old_striplib |
| 19802 | striplib=$lt_striplib |
| 19803 | |
| 19804 | # Dependencies to place before the objects being linked to create a |
| 19805 | # shared library. |
| 19806 | predep_objects=$lt_predep_objects_GCJ |
| 19807 | |
| 19808 | # Dependencies to place after the objects being linked to create a |
| 19809 | # shared library. |
| 19810 | postdep_objects=$lt_postdep_objects_GCJ |
| 19811 | |
| 19812 | # Dependencies to place before the objects being linked to create a |
| 19813 | # shared library. |
| 19814 | predeps=$lt_predeps_GCJ |
| 19815 | |
| 19816 | # Dependencies to place after the objects being linked to create a |
| 19817 | # shared library. |
| 19818 | postdeps=$lt_postdeps_GCJ |
| 19819 | |
| 19820 | # The library search path used internally by the compiler when linking |
| 19821 | # a shared library. |
| 19822 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
| 19823 | |
| 19824 | # Method to check whether dependent libraries are shared objects. |
| 19825 | deplibs_check_method=$lt_deplibs_check_method |
| 19826 | |
| 19827 | # Command to use when deplibs_check_method == file_magic. |
| 19828 | file_magic_cmd=$lt_file_magic_cmd |
| 19829 | |
| 19830 | # Flag that allows shared libraries with undefined symbols to be built. |
| 19831 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
| 19832 | |
| 19833 | # Flag that forces no undefined symbols. |
| 19834 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
| 19835 | |
| 19836 | # Commands used to finish a libtool library installation in a directory. |
| 19837 | finish_cmds=$lt_finish_cmds |
| 19838 | |
| 19839 | # Same as above, but a single script fragment to be evaled but not shown. |
| 19840 | finish_eval=$lt_finish_eval |
| 19841 | |
| 19842 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 19843 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 19844 | |
| 19845 | # Transform the output of nm in a proper C declaration |
| 19846 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 19847 | |
| 19848 | # Transform the output of nm in a C name address pair |
| 19849 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 19850 | |
| 19851 | # This is the shared library runtime path variable. |
| 19852 | runpath_var=$runpath_var |
| 19853 | |
| 19854 | # This is the shared library path variable. |
| 19855 | shlibpath_var=$shlibpath_var |
| 19856 | |
| 19857 | # Is shlibpath searched before the hard-coded library search path? |
| 19858 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 19859 | |
| 19860 | # How to hardcode a shared library path into an executable. |
| 19861 | hardcode_action=$hardcode_action_GCJ |
| 19862 | |
| 19863 | # Whether we should hardcode library paths into libraries. |
| 19864 | hardcode_into_libs=$hardcode_into_libs |
| 19865 | |
| 19866 | # Flag to hardcode \$libdir into a binary during linking. |
| 19867 | # This must work even if \$libdir does not exist. |
| 19868 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
| 19869 | |
| 19870 | # If ld is used when linking, flag to hardcode \$libdir into |
| 19871 | # a binary during linking. This must work even if \$libdir does |
| 19872 | # not exist. |
| 19873 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
| 19874 | |
| 19875 | # Whether we need a single -rpath flag with a separated argument. |
| 19876 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
| 19877 | |
| 19878 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 19879 | # resulting binary. |
| 19880 | hardcode_direct=$hardcode_direct_GCJ |
| 19881 | |
| 19882 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 19883 | # resulting binary. |
| 19884 | hardcode_minus_L=$hardcode_minus_L_GCJ |
| 19885 | |
| 19886 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 19887 | # the resulting binary. |
| 19888 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
| 19889 | |
| 19890 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 19891 | # and all subsequent libraries and executables linked against it. |
| 19892 | hardcode_automatic=$hardcode_automatic_GCJ |
| 19893 | |
| 19894 | # Variables whose values should be saved in libtool wrapper scripts and |
| 19895 | # restored at relink time. |
| 19896 | variables_saved_for_relink="$variables_saved_for_relink" |
| 19897 | |
| 19898 | # Whether libtool must link a program against all its dependency libraries. |
| 19899 | link_all_deplibs=$link_all_deplibs_GCJ |
| 19900 | |
| 19901 | # Compile-time system search path for libraries |
| 19902 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 19903 | |
| 19904 | # Run-time system search path for libraries |
| 19905 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 19906 | |
| 19907 | # Fix the shell variable \$srcfile for the compiler. |
| 19908 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
| 19909 | |
| 19910 | # Set to yes if exported symbols are required. |
| 19911 | always_export_symbols=$always_export_symbols_GCJ |
| 19912 | |
| 19913 | # The commands to list exported symbols. |
| 19914 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
| 19915 | |
| 19916 | # The commands to extract the exported symbol list from a shared archive. |
| 19917 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 19918 | |
| 19919 | # Symbols that should not be listed in the preloaded symbols. |
| 19920 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
| 19921 | |
| 19922 | # Symbols that must always be exported. |
| 19923 | include_expsyms=$lt_include_expsyms_GCJ |
| 19924 | |
| 19925 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 19926 | |
| 19927 | __EOF__ |
| 19928 | |
| 19929 | |
| 19930 | else |
| 19931 | # If there is no Makefile yet, we rely on a make rule to execute |
| 19932 | # `config.status --recheck' to rerun these tests and create the |
| 19933 | # libtool script then. |
| 19934 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 19935 | if test -f "$ltmain_in"; then |
| 19936 | test -f Makefile && make "$ltmain" |
| 19937 | fi |
| 19938 | fi |
| 19939 | |
| 19940 | |
| 19941 | ac_ext=c |
| 19942 | ac_cpp='$CPP $CPPFLAGS' |
| 19943 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19944 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19945 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19946 | |
| 19947 | CC="$lt_save_CC" |
| 19948 | |
| 19949 | else |
| 19950 | tagname="" |
| 19951 | fi |
| 19952 | ;; |
| 19953 | |
| 19954 | RC) |
| 19955 | |
| 19956 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19957 | # Source file extension for RC test sources. |
| 19958 | ac_ext=rc |
| 19959 | |
| 19960 | # Object file extension for compiled RC test sources. |
| 19961 | objext=o |
| 19962 | objext_RC=$objext |
| 19963 | |
| 19964 | # Code to be used in simple compile tests |
| 19965 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
| 19966 | |
| 19967 | # Code to be used in simple link tests |
| 19968 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
| 19969 | |
| 19970 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 19971 | |
| 19972 | # If no C compiler was specified, use CC. |
| 19973 | LTCC=${LTCC-"$CC"} |
| 19974 | |
| 19975 | # Allow CC to be a program name with arguments. |
| 19976 | compiler=$CC |
| 19977 | |
| 19978 | |
| 19979 | # Allow CC to be a program name with arguments. |
| 19980 | lt_save_CC="$CC" |
| 19981 | CC=${RC-"windres"} |
| 19982 | compiler=$CC |
| 19983 | compiler_RC=$CC |
| 19984 | lt_cv_prog_compiler_c_o_RC=yes |
| 19985 | |
| 19986 | # The else clause should only fire when bootstrapping the |
| 19987 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 19988 | # with your package, and you will get complaints that there are |
| 19989 | # no rules to generate ltmain.sh. |
| 19990 | if test -f "$ltmain"; then |
| 19991 | # See if we are running on zsh, and set the options which allow our commands through |
| 19992 | # without removal of \ escapes. |
| 19993 | if test -n "${ZSH_VERSION+set}" ; then |
| 19994 | setopt NO_GLOB_SUBST |
| 19995 | fi |
| 19996 | # Now quote all the things that may contain metacharacters while being |
| 19997 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 19998 | # variables and quote the copies for generation of the libtool script. |
| 19999 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 20000 | SED SHELL STRIP \ |
| 20001 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 20002 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 20003 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 20004 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 20005 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 20006 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 20007 | old_postinstall_cmds old_postuninstall_cmds \ |
| 20008 | compiler_RC \ |
| 20009 | CC_RC \ |
| 20010 | LD_RC \ |
| 20011 | lt_prog_compiler_wl_RC \ |
| 20012 | lt_prog_compiler_pic_RC \ |
| 20013 | lt_prog_compiler_static_RC \ |
| 20014 | lt_prog_compiler_no_builtin_flag_RC \ |
| 20015 | export_dynamic_flag_spec_RC \ |
| 20016 | thread_safe_flag_spec_RC \ |
| 20017 | whole_archive_flag_spec_RC \ |
| 20018 | enable_shared_with_static_runtimes_RC \ |
| 20019 | old_archive_cmds_RC \ |
| 20020 | old_archive_from_new_cmds_RC \ |
| 20021 | predep_objects_RC \ |
| 20022 | postdep_objects_RC \ |
| 20023 | predeps_RC \ |
| 20024 | postdeps_RC \ |
| 20025 | compiler_lib_search_path_RC \ |
| 20026 | archive_cmds_RC \ |
| 20027 | archive_expsym_cmds_RC \ |
| 20028 | postinstall_cmds_RC \ |
| 20029 | postuninstall_cmds_RC \ |
| 20030 | old_archive_from_expsyms_cmds_RC \ |
| 20031 | allow_undefined_flag_RC \ |
| 20032 | no_undefined_flag_RC \ |
| 20033 | export_symbols_cmds_RC \ |
| 20034 | hardcode_libdir_flag_spec_RC \ |
| 20035 | hardcode_libdir_flag_spec_ld_RC \ |
| 20036 | hardcode_libdir_separator_RC \ |
| 20037 | hardcode_automatic_RC \ |
| 20038 | module_cmds_RC \ |
| 20039 | module_expsym_cmds_RC \ |
| 20040 | lt_cv_prog_compiler_c_o_RC \ |
| 20041 | exclude_expsyms_RC \ |
| 20042 | include_expsyms_RC; do |
| 20043 | |
| 20044 | case $var in |
| 20045 | old_archive_cmds_RC | \ |
| 20046 | old_archive_from_new_cmds_RC | \ |
| 20047 | archive_cmds_RC | \ |
| 20048 | archive_expsym_cmds_RC | \ |
| 20049 | module_cmds_RC | \ |
| 20050 | module_expsym_cmds_RC | \ |
| 20051 | old_archive_from_expsyms_cmds_RC | \ |
| 20052 | export_symbols_cmds_RC | \ |
| 20053 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 20054 | postinstall_cmds | postuninstall_cmds | \ |
| 20055 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 20056 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 20057 | # Double-quote double-evaled strings. |
| 20058 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 20059 | ;; |
| 20060 | *) |
| 20061 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 20062 | ;; |
| 20063 | esac |
| 20064 | done |
| 20065 | |
| 20066 | case $lt_echo in |
| 20067 | *'\$0 --fallback-echo"') |
| 20068 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 20069 | ;; |
| 20070 | esac |
| 20071 | |
| 20072 | cfgfile="$ofile" |
| 20073 | |
| 20074 | cat <<__EOF__ >> "$cfgfile" |
| 20075 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 20076 | |
| 20077 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 20078 | |
| 20079 | # Shell to use when invoking shell scripts. |
| 20080 | SHELL=$lt_SHELL |
| 20081 | |
| 20082 | # Whether or not to build shared libraries. |
| 20083 | build_libtool_libs=$enable_shared |
| 20084 | |
| 20085 | # Whether or not to build static libraries. |
| 20086 | build_old_libs=$enable_static |
| 20087 | |
| 20088 | # Whether or not to add -lc for building shared libraries. |
| 20089 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
| 20090 | |
| 20091 | # Whether or not to disallow shared libs when runtime libs are static |
| 20092 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
| 20093 | |
| 20094 | # Whether or not to optimize for fast installation. |
| 20095 | fast_install=$enable_fast_install |
| 20096 | |
| 20097 | # The host system. |
| 20098 | host_alias=$host_alias |
| 20099 | host=$host |
| 20100 | |
| 20101 | # An echo program that does not interpret backslashes. |
| 20102 | echo=$lt_echo |
| 20103 | |
| 20104 | # The archiver. |
| 20105 | AR=$lt_AR |
| 20106 | AR_FLAGS=$lt_AR_FLAGS |
| 20107 | |
| 20108 | # A C compiler. |
| 20109 | LTCC=$lt_LTCC |
| 20110 | |
| 20111 | # A language-specific compiler. |
| 20112 | CC=$lt_compiler_RC |
| 20113 | |
| 20114 | # Is the compiler the GNU C compiler? |
| 20115 | with_gcc=$GCC_RC |
| 20116 | |
| 20117 | # An ERE matcher. |
| 20118 | EGREP=$lt_EGREP |
| 20119 | |
| 20120 | # The linker used to build libraries. |
| 20121 | LD=$lt_LD_RC |
| 20122 | |
| 20123 | # Whether we need hard or soft links. |
| 20124 | LN_S=$lt_LN_S |
| 20125 | |
| 20126 | # A BSD-compatible nm program. |
| 20127 | NM=$lt_NM |
| 20128 | |
| 20129 | # A symbol stripping program |
| 20130 | STRIP=$lt_STRIP |
| 20131 | |
| 20132 | # Used to examine libraries when file_magic_cmd begins "file" |
| 20133 | MAGIC_CMD=$MAGIC_CMD |
| 20134 | |
| 20135 | # Used on cygwin: DLL creation program. |
| 20136 | DLLTOOL="$DLLTOOL" |
| 20137 | |
| 20138 | # Used on cygwin: object dumper. |
| 20139 | OBJDUMP="$OBJDUMP" |
| 20140 | |
| 20141 | # Used on cygwin: assembler. |
| 20142 | AS="$AS" |
| 20143 | |
| 20144 | # The name of the directory that contains temporary libtool files. |
| 20145 | objdir=$objdir |
| 20146 | |
| 20147 | # How to create reloadable object files. |
| 20148 | reload_flag=$lt_reload_flag |
| 20149 | reload_cmds=$lt_reload_cmds |
| 20150 | |
| 20151 | # How to pass a linker flag through the compiler. |
| 20152 | wl=$lt_lt_prog_compiler_wl_RC |
| 20153 | |
| 20154 | # Object file suffix (normally "o"). |
| 20155 | objext="$ac_objext" |
| 20156 | |
| 20157 | # Old archive suffix (normally "a"). |
| 20158 | libext="$libext" |
| 20159 | |
| 20160 | # Shared library suffix (normally ".so"). |
| 20161 | shrext_cmds='$shrext_cmds' |
| 20162 | |
| 20163 | # Executable file suffix (normally ""). |
| 20164 | exeext="$exeext" |
| 20165 | |
| 20166 | # Additional compiler flags for building library objects. |
| 20167 | pic_flag=$lt_lt_prog_compiler_pic_RC |
| 20168 | pic_mode=$pic_mode |
| 20169 | |
| 20170 | # What is the maximum length of a command? |
| 20171 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 20172 | |
| 20173 | # Does compiler simultaneously support -c and -o options? |
| 20174 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
| 20175 | |
| 20176 | # Must we lock files when doing compilation ? |
| 20177 | need_locks=$lt_need_locks |
| 20178 | |
| 20179 | # Do we need the lib prefix for modules? |
| 20180 | need_lib_prefix=$need_lib_prefix |
| 20181 | |
| 20182 | # Do we need a version for libraries? |
| 20183 | need_version=$need_version |
| 20184 | |
| 20185 | # Whether dlopen is supported. |
| 20186 | dlopen_support=$enable_dlopen |
| 20187 | |
| 20188 | # Whether dlopen of programs is supported. |
| 20189 | dlopen_self=$enable_dlopen_self |
| 20190 | |
| 20191 | # Whether dlopen of statically linked programs is supported. |
| 20192 | dlopen_self_static=$enable_dlopen_self_static |
| 20193 | |
| 20194 | # Compiler flag to prevent dynamic linking. |
| 20195 | link_static_flag=$lt_lt_prog_compiler_static_RC |
| 20196 | |
| 20197 | # Compiler flag to turn off builtin functions. |
| 20198 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
| 20199 | |
| 20200 | # Compiler flag to allow reflexive dlopens. |
| 20201 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
| 20202 | |
| 20203 | # Compiler flag to generate shared objects directly from archives. |
| 20204 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
| 20205 | |
| 20206 | # Compiler flag to generate thread-safe objects. |
| 20207 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
| 20208 | |
| 20209 | # Library versioning type. |
| 20210 | version_type=$version_type |
| 20211 | |
| 20212 | # Format of library name prefix. |
| 20213 | libname_spec=$lt_libname_spec |
| 20214 | |
| 20215 | # List of archive names. First name is the real one, the rest are links. |
| 20216 | # The last name is the one that the linker finds with -lNAME. |
| 20217 | library_names_spec=$lt_library_names_spec |
| 20218 | |
| 20219 | # The coded name of the library, if different from the real name. |
| 20220 | soname_spec=$lt_soname_spec |
| 20221 | |
| 20222 | # Commands used to build and install an old-style archive. |
| 20223 | RANLIB=$lt_RANLIB |
| 20224 | old_archive_cmds=$lt_old_archive_cmds_RC |
| 20225 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 20226 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 20227 | |
| 20228 | # Create an old-style archive from a shared archive. |
| 20229 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
| 20230 | |
| 20231 | # Create a temporary old-style archive to link instead of a shared archive. |
| 20232 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
| 20233 | |
| 20234 | # Commands used to build and install a shared archive. |
| 20235 | archive_cmds=$lt_archive_cmds_RC |
| 20236 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
| 20237 | postinstall_cmds=$lt_postinstall_cmds |
| 20238 | postuninstall_cmds=$lt_postuninstall_cmds |
| 20239 | |
| 20240 | # Commands used to build a loadable module (assumed same as above if empty) |
| 20241 | module_cmds=$lt_module_cmds_RC |
| 20242 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
| 20243 | |
| 20244 | # Commands to strip libraries. |
| 20245 | old_striplib=$lt_old_striplib |
| 20246 | striplib=$lt_striplib |
| 20247 | |
| 20248 | # Dependencies to place before the objects being linked to create a |
| 20249 | # shared library. |
| 20250 | predep_objects=$lt_predep_objects_RC |
| 20251 | |
| 20252 | # Dependencies to place after the objects being linked to create a |
| 20253 | # shared library. |
| 20254 | postdep_objects=$lt_postdep_objects_RC |
| 20255 | |
| 20256 | # Dependencies to place before the objects being linked to create a |
| 20257 | # shared library. |
| 20258 | predeps=$lt_predeps_RC |
| 20259 | |
| 20260 | # Dependencies to place after the objects being linked to create a |
| 20261 | # shared library. |
| 20262 | postdeps=$lt_postdeps_RC |
| 20263 | |
| 20264 | # The library search path used internally by the compiler when linking |
| 20265 | # a shared library. |
| 20266 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
| 20267 | |
| 20268 | # Method to check whether dependent libraries are shared objects. |
| 20269 | deplibs_check_method=$lt_deplibs_check_method |
| 20270 | |
| 20271 | # Command to use when deplibs_check_method == file_magic. |
| 20272 | file_magic_cmd=$lt_file_magic_cmd |
| 20273 | |
| 20274 | # Flag that allows shared libraries with undefined symbols to be built. |
| 20275 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
| 20276 | |
| 20277 | # Flag that forces no undefined symbols. |
| 20278 | no_undefined_flag=$lt_no_undefined_flag_RC |
| 20279 | |
| 20280 | # Commands used to finish a libtool library installation in a directory. |
| 20281 | finish_cmds=$lt_finish_cmds |
| 20282 | |
| 20283 | # Same as above, but a single script fragment to be evaled but not shown. |
| 20284 | finish_eval=$lt_finish_eval |
| 20285 | |
| 20286 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 20287 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 20288 | |
| 20289 | # Transform the output of nm in a proper C declaration |
| 20290 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 20291 | |
| 20292 | # Transform the output of nm in a C name address pair |
| 20293 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 20294 | |
| 20295 | # This is the shared library runtime path variable. |
| 20296 | runpath_var=$runpath_var |
| 20297 | |
| 20298 | # This is the shared library path variable. |
| 20299 | shlibpath_var=$shlibpath_var |
| 20300 | |
| 20301 | # Is shlibpath searched before the hard-coded library search path? |
| 20302 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 20303 | |
| 20304 | # How to hardcode a shared library path into an executable. |
| 20305 | hardcode_action=$hardcode_action_RC |
| 20306 | |
| 20307 | # Whether we should hardcode library paths into libraries. |
| 20308 | hardcode_into_libs=$hardcode_into_libs |
| 20309 | |
| 20310 | # Flag to hardcode \$libdir into a binary during linking. |
| 20311 | # This must work even if \$libdir does not exist. |
| 20312 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
| 20313 | |
| 20314 | # If ld is used when linking, flag to hardcode \$libdir into |
| 20315 | # a binary during linking. This must work even if \$libdir does |
| 20316 | # not exist. |
| 20317 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
| 20318 | |
| 20319 | # Whether we need a single -rpath flag with a separated argument. |
| 20320 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
| 20321 | |
| 20322 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 20323 | # resulting binary. |
| 20324 | hardcode_direct=$hardcode_direct_RC |
| 20325 | |
| 20326 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 20327 | # resulting binary. |
| 20328 | hardcode_minus_L=$hardcode_minus_L_RC |
| 20329 | |
| 20330 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 20331 | # the resulting binary. |
| 20332 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
| 20333 | |
| 20334 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 20335 | # and all subsequent libraries and executables linked against it. |
| 20336 | hardcode_automatic=$hardcode_automatic_RC |
| 20337 | |
| 20338 | # Variables whose values should be saved in libtool wrapper scripts and |
| 20339 | # restored at relink time. |
| 20340 | variables_saved_for_relink="$variables_saved_for_relink" |
| 20341 | |
| 20342 | # Whether libtool must link a program against all its dependency libraries. |
| 20343 | link_all_deplibs=$link_all_deplibs_RC |
| 20344 | |
| 20345 | # Compile-time system search path for libraries |
| 20346 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 20347 | |
| 20348 | # Run-time system search path for libraries |
| 20349 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 20350 | |
| 20351 | # Fix the shell variable \$srcfile for the compiler. |
| 20352 | fix_srcfile_path="$fix_srcfile_path_RC" |
| 20353 | |
| 20354 | # Set to yes if exported symbols are required. |
| 20355 | always_export_symbols=$always_export_symbols_RC |
| 20356 | |
| 20357 | # The commands to list exported symbols. |
| 20358 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
| 20359 | |
| 20360 | # The commands to extract the exported symbol list from a shared archive. |
| 20361 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 20362 | |
| 20363 | # Symbols that should not be listed in the preloaded symbols. |
| 20364 | exclude_expsyms=$lt_exclude_expsyms_RC |
| 20365 | |
| 20366 | # Symbols that must always be exported. |
| 20367 | include_expsyms=$lt_include_expsyms_RC |
| 20368 | |
| 20369 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 20370 | |
| 20371 | __EOF__ |
| 20372 | |
| 20373 | |
| 20374 | else |
| 20375 | # If there is no Makefile yet, we rely on a make rule to execute |
| 20376 | # `config.status --recheck' to rerun these tests and create the |
| 20377 | # libtool script then. |
| 20378 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 20379 | if test -f "$ltmain_in"; then |
| 20380 | test -f Makefile && make "$ltmain" |
| 20381 | fi |
| 20382 | fi |
| 20383 | |
| 20384 | |
| 20385 | ac_ext=c |
| 20386 | ac_cpp='$CPP $CPPFLAGS' |
| 20387 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20388 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20389 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20390 | |
| 20391 | CC="$lt_save_CC" |
| 20392 | |
| 20393 | ;; |
| 20394 | |
| 20395 | *) |
| 20396 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
| 20397 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
| 20398 | { (exit 1); exit 1; }; } |
| 20399 | ;; |
| 20400 | esac |
| 20401 | |
| 20402 | # Append the new tag name to the list of available tags. |
| 20403 | if test -n "$tagname" ; then |
| 20404 | available_tags="$available_tags $tagname" |
| 20405 | fi |
| 20406 | fi |
| 20407 | done |
| 20408 | IFS="$lt_save_ifs" |
| 20409 | |
| 20410 | # Now substitute the updated list of available tags. |
| 20411 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
| 20412 | mv "${ofile}T" "$ofile" |
| 20413 | chmod +x "$ofile" |
| 20414 | else |
| 20415 | rm -f "${ofile}T" |
| 20416 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
| 20417 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
| 20418 | { (exit 1); exit 1; }; } |
| 20419 | fi |
| 20420 | fi |
| 20421 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20422 | |
| 20423 | |
| 20424 | # This can be used to rebuild libtool when needed |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 20425 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20426 | |
| 20427 | # Always use our own libtool. |
| 20428 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 20429 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 20430 | # Prevent multiple expansion |
| 20431 | |
| 20432 | |
| 20433 | |
| 20434 | |
| 20435 | |
| 20436 | |
| 20437 | |
| 20438 | |
| 20439 | |
| 20440 | |
| 20441 | |
| 20442 | |
| 20443 | |
| 20444 | |
| 20445 | |
| 20446 | |
| 20447 | |
| 20448 | |
| 20449 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20450 | |
| 20451 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20452 | # Check whether --enable-autoconf was given. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20453 | if test "${enable_autoconf+set}" = set; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20454 | enableval=$enable_autoconf; enable_autoconf=$enableval |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20455 | else |
| 20456 | enable_autoconf=yes |
| 20457 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20458 | fi |
| 20459 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20460 | # Extract the first word of "autoconf", so it can be a program name with args. |
| 20461 | set dummy autoconf; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20462 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 20463 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20464 | if test "${ac_cv_path_AUTOCONF+set}" = set; then |
| 20465 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20466 | else |
| 20467 | case $AUTOCONF in |
| 20468 | [\\/]* | ?:[\\/]*) |
| 20469 | ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path. |
| 20470 | ;; |
| 20471 | *) |
| 20472 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20473 | for as_dir in $PATH |
| 20474 | do |
| 20475 | IFS=$as_save_IFS |
| 20476 | test -z "$as_dir" && as_dir=. |
| 20477 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20478 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20479 | ac_cv_path_AUTOCONF="$as_dir/$ac_word$ac_exec_ext" |
| 20480 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 20481 | break 2 |
| 20482 | fi |
| 20483 | done |
| 20484 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20485 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20486 | |
| 20487 | test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="@echo autoconf not available" |
| 20488 | ;; |
| 20489 | esac |
| 20490 | fi |
| 20491 | AUTOCONF=$ac_cv_path_AUTOCONF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20492 | if test -n "$AUTOCONF"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20493 | { echo "$as_me:$LINENO: result: $AUTOCONF" >&5 |
| 20494 | echo "${ECHO_T}$AUTOCONF" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20495 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20496 | { echo "$as_me:$LINENO: result: no" >&5 |
| 20497 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20498 | fi |
| 20499 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20500 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20501 | # Extract the first word of "autoheader", so it can be a program name with args. |
| 20502 | set dummy autoheader; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20503 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 20504 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20505 | if test "${ac_cv_path_AUTOHEADER+set}" = set; then |
| 20506 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20507 | else |
| 20508 | case $AUTOHEADER in |
| 20509 | [\\/]* | ?:[\\/]*) |
| 20510 | ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path. |
| 20511 | ;; |
| 20512 | *) |
| 20513 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20514 | for as_dir in $PATH |
| 20515 | do |
| 20516 | IFS=$as_save_IFS |
| 20517 | test -z "$as_dir" && as_dir=. |
| 20518 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20519 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20520 | ac_cv_path_AUTOHEADER="$as_dir/$ac_word$ac_exec_ext" |
| 20521 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 20522 | break 2 |
| 20523 | fi |
| 20524 | done |
| 20525 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20526 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20527 | |
| 20528 | test -z "$ac_cv_path_AUTOHEADER" && ac_cv_path_AUTOHEADER="@echo autoheader not available" |
| 20529 | ;; |
| 20530 | esac |
| 20531 | fi |
| 20532 | AUTOHEADER=$ac_cv_path_AUTOHEADER |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20533 | if test -n "$AUTOHEADER"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20534 | { echo "$as_me:$LINENO: result: $AUTOHEADER" >&5 |
| 20535 | echo "${ECHO_T}$AUTOHEADER" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20536 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20537 | { echo "$as_me:$LINENO: result: no" >&5 |
| 20538 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20539 | fi |
| 20540 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20541 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20542 | if test -z "$AUTOCONF"; then enable_autoconf=no ; fi |
| 20543 | if test -z "$AUTOHEADER"; then enable_autoconf=no ; fi |
| 20544 | if test x$enable_autoconf = xyes; then |
| 20545 | CONFIGURE_DEPENDS="configure.in aclocal.m4" |
| 20546 | fi |
| 20547 | |
| 20548 | |
| 20549 | ac_ext=c |
| 20550 | ac_cpp='$CPP $CPPFLAGS' |
| 20551 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20552 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20553 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20554 | if test -n "$ac_tool_prefix"; then |
| 20555 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 20556 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20557 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 20558 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20559 | if test "${ac_cv_prog_CC+set}" = set; then |
| 20560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20561 | else |
| 20562 | if test -n "$CC"; then |
| 20563 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 20564 | else |
| 20565 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20566 | for as_dir in $PATH |
| 20567 | do |
| 20568 | IFS=$as_save_IFS |
| 20569 | test -z "$as_dir" && as_dir=. |
| 20570 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20571 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20572 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 20573 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 20574 | break 2 |
| 20575 | fi |
| 20576 | done |
| 20577 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20578 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20579 | |
| 20580 | fi |
| 20581 | fi |
| 20582 | CC=$ac_cv_prog_CC |
| 20583 | if test -n "$CC"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20584 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 20585 | echo "${ECHO_T}$CC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20586 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20587 | { echo "$as_me:$LINENO: result: no" >&5 |
| 20588 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20589 | fi |
| 20590 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20591 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20592 | fi |
| 20593 | if test -z "$ac_cv_prog_CC"; then |
| 20594 | ac_ct_CC=$CC |
| 20595 | # Extract the first word of "gcc", so it can be a program name with args. |
| 20596 | set dummy gcc; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20597 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 20598 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20599 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 20600 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20601 | else |
| 20602 | if test -n "$ac_ct_CC"; then |
| 20603 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 20604 | else |
| 20605 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20606 | for as_dir in $PATH |
| 20607 | do |
| 20608 | IFS=$as_save_IFS |
| 20609 | test -z "$as_dir" && as_dir=. |
| 20610 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20611 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20612 | ac_cv_prog_ac_ct_CC="gcc" |
| 20613 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 20614 | break 2 |
| 20615 | fi |
| 20616 | done |
| 20617 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20618 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20619 | |
| 20620 | fi |
| 20621 | fi |
| 20622 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 20623 | if test -n "$ac_ct_CC"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20624 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 20625 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20626 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20627 | { echo "$as_me:$LINENO: result: no" >&5 |
| 20628 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20629 | fi |
| 20630 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20631 | if test "x$ac_ct_CC" = x; then |
| 20632 | CC="" |
| 20633 | else |
| 20634 | case $cross_compiling:$ac_tool_warned in |
| 20635 | yes:) |
| 20636 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 20637 | whose name does not start with the host triplet. If you think this |
| 20638 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 20639 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 20640 | whose name does not start with the host triplet. If you think this |
| 20641 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 20642 | ac_tool_warned=yes ;; |
| 20643 | esac |
| 20644 | CC=$ac_ct_CC |
| 20645 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20646 | else |
| 20647 | CC="$ac_cv_prog_CC" |
| 20648 | fi |
| 20649 | |
| 20650 | if test -z "$CC"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20651 | if test -n "$ac_tool_prefix"; then |
| 20652 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20653 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20654 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 20655 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20656 | if test "${ac_cv_prog_CC+set}" = set; then |
| 20657 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20658 | else |
| 20659 | if test -n "$CC"; then |
| 20660 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 20661 | else |
| 20662 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20663 | for as_dir in $PATH |
| 20664 | do |
| 20665 | IFS=$as_save_IFS |
| 20666 | test -z "$as_dir" && as_dir=. |
| 20667 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20668 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20669 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 20670 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 20671 | break 2 |
| 20672 | fi |
| 20673 | done |
| 20674 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20675 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20676 | |
| 20677 | fi |
| 20678 | fi |
| 20679 | CC=$ac_cv_prog_CC |
| 20680 | if test -n "$CC"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20681 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 20682 | echo "${ECHO_T}$CC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20683 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20684 | { echo "$as_me:$LINENO: result: no" >&5 |
| 20685 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20686 | fi |
| 20687 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20688 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20689 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20690 | fi |
| 20691 | if test -z "$CC"; then |
| 20692 | # Extract the first word of "cc", so it can be a program name with args. |
| 20693 | set dummy cc; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20694 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 20695 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20696 | if test "${ac_cv_prog_CC+set}" = set; then |
| 20697 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20698 | else |
| 20699 | if test -n "$CC"; then |
| 20700 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 20701 | else |
| 20702 | ac_prog_rejected=no |
| 20703 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20704 | for as_dir in $PATH |
| 20705 | do |
| 20706 | IFS=$as_save_IFS |
| 20707 | test -z "$as_dir" && as_dir=. |
| 20708 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20709 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20710 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 20711 | ac_prog_rejected=yes |
| 20712 | continue |
| 20713 | fi |
| 20714 | ac_cv_prog_CC="cc" |
| 20715 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 20716 | break 2 |
| 20717 | fi |
| 20718 | done |
| 20719 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20720 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20721 | |
| 20722 | if test $ac_prog_rejected = yes; then |
| 20723 | # We found a bogon in the path, so make sure we never use it. |
| 20724 | set dummy $ac_cv_prog_CC |
| 20725 | shift |
| 20726 | if test $# != 0; then |
| 20727 | # We chose a different compiler from the bogus one. |
| 20728 | # However, it has the same basename, so the bogon will be chosen |
| 20729 | # first if we set CC to just the basename; use the full file name. |
| 20730 | shift |
| 20731 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 20732 | fi |
| 20733 | fi |
| 20734 | fi |
| 20735 | fi |
| 20736 | CC=$ac_cv_prog_CC |
| 20737 | if test -n "$CC"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20738 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 20739 | echo "${ECHO_T}$CC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20740 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20741 | { echo "$as_me:$LINENO: result: no" >&5 |
| 20742 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20743 | fi |
| 20744 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20745 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20746 | fi |
| 20747 | if test -z "$CC"; then |
| 20748 | if test -n "$ac_tool_prefix"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20749 | for ac_prog in cl.exe |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20750 | do |
| 20751 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 20752 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20753 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 20754 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20755 | if test "${ac_cv_prog_CC+set}" = set; then |
| 20756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20757 | else |
| 20758 | if test -n "$CC"; then |
| 20759 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 20760 | else |
| 20761 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20762 | for as_dir in $PATH |
| 20763 | do |
| 20764 | IFS=$as_save_IFS |
| 20765 | test -z "$as_dir" && as_dir=. |
| 20766 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20767 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20768 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 20769 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 20770 | break 2 |
| 20771 | fi |
| 20772 | done |
| 20773 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20774 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20775 | |
| 20776 | fi |
| 20777 | fi |
| 20778 | CC=$ac_cv_prog_CC |
| 20779 | if test -n "$CC"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20780 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 20781 | echo "${ECHO_T}$CC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20782 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20783 | { echo "$as_me:$LINENO: result: no" >&5 |
| 20784 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20785 | fi |
| 20786 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20787 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20788 | test -n "$CC" && break |
| 20789 | done |
| 20790 | fi |
| 20791 | if test -z "$CC"; then |
| 20792 | ac_ct_CC=$CC |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20793 | for ac_prog in cl.exe |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20794 | do |
| 20795 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 20796 | set dummy $ac_prog; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20797 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 20798 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20799 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 20800 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20801 | else |
| 20802 | if test -n "$ac_ct_CC"; then |
| 20803 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 20804 | else |
| 20805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20806 | for as_dir in $PATH |
| 20807 | do |
| 20808 | IFS=$as_save_IFS |
| 20809 | test -z "$as_dir" && as_dir=. |
| 20810 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20811 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20812 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 20813 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 20814 | break 2 |
| 20815 | fi |
| 20816 | done |
| 20817 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20818 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20819 | |
| 20820 | fi |
| 20821 | fi |
| 20822 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 20823 | if test -n "$ac_ct_CC"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20824 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 20825 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20826 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20827 | { echo "$as_me:$LINENO: result: no" >&5 |
| 20828 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20829 | fi |
| 20830 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20831 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20832 | test -n "$ac_ct_CC" && break |
| 20833 | done |
| 20834 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20835 | if test "x$ac_ct_CC" = x; then |
| 20836 | CC="" |
| 20837 | else |
| 20838 | case $cross_compiling:$ac_tool_warned in |
| 20839 | yes:) |
| 20840 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 20841 | whose name does not start with the host triplet. If you think this |
| 20842 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 20843 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 20844 | whose name does not start with the host triplet. If you think this |
| 20845 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 20846 | ac_tool_warned=yes ;; |
| 20847 | esac |
| 20848 | CC=$ac_ct_CC |
| 20849 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20850 | fi |
| 20851 | |
| 20852 | fi |
| 20853 | |
| 20854 | |
| 20855 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 20856 | See \`config.log' for more details." >&5 |
| 20857 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 20858 | See \`config.log' for more details." >&2;} |
| 20859 | { (exit 1); exit 1; }; } |
| 20860 | |
| 20861 | # Provide some information about the compiler. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20862 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20863 | ac_compiler=`set X $ac_compile; echo $2` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20864 | { (ac_try="$ac_compiler --version >&5" |
| 20865 | case "(($ac_try" in |
| 20866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20867 | *) ac_try_echo=$ac_try;; |
| 20868 | esac |
| 20869 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20870 | (eval "$ac_compiler --version >&5") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20871 | ac_status=$? |
| 20872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20873 | (exit $ac_status); } |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20874 | { (ac_try="$ac_compiler -v >&5" |
| 20875 | case "(($ac_try" in |
| 20876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20877 | *) ac_try_echo=$ac_try;; |
| 20878 | esac |
| 20879 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20880 | (eval "$ac_compiler -v >&5") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20881 | ac_status=$? |
| 20882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20883 | (exit $ac_status); } |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20884 | { (ac_try="$ac_compiler -V >&5" |
| 20885 | case "(($ac_try" in |
| 20886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20887 | *) ac_try_echo=$ac_try;; |
| 20888 | esac |
| 20889 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20890 | (eval "$ac_compiler -V >&5") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20891 | ac_status=$? |
| 20892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20893 | (exit $ac_status); } |
| 20894 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20895 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 20896 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20897 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 20898 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20899 | else |
| 20900 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20901 | /* confdefs.h. */ |
| 20902 | _ACEOF |
| 20903 | cat confdefs.h >>conftest.$ac_ext |
| 20904 | cat >>conftest.$ac_ext <<_ACEOF |
| 20905 | /* end confdefs.h. */ |
| 20906 | |
| 20907 | int |
| 20908 | main () |
| 20909 | { |
| 20910 | #ifndef __GNUC__ |
| 20911 | choke me |
| 20912 | #endif |
| 20913 | |
| 20914 | ; |
| 20915 | return 0; |
| 20916 | } |
| 20917 | _ACEOF |
| 20918 | rm -f conftest.$ac_objext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20919 | if { (ac_try="$ac_compile" |
| 20920 | case "(($ac_try" in |
| 20921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20922 | *) ac_try_echo=$ac_try;; |
| 20923 | esac |
| 20924 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20925 | (eval "$ac_compile") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20926 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 20927 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20928 | rm -f conftest.er1 |
| 20929 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20931 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20932 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20933 | { (case "(($ac_try" in |
| 20934 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20935 | *) ac_try_echo=$ac_try;; |
| 20936 | esac |
| 20937 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20938 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 20939 | ac_status=$? |
| 20940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20941 | (exit $ac_status); }; } && |
| 20942 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20943 | { (case "(($ac_try" in |
| 20944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20945 | *) ac_try_echo=$ac_try;; |
| 20946 | esac |
| 20947 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20948 | (eval "$ac_try") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20949 | ac_status=$? |
| 20950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20951 | (exit $ac_status); }; }; then |
| 20952 | ac_compiler_gnu=yes |
| 20953 | else |
| 20954 | echo "$as_me: failed program was:" >&5 |
| 20955 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20956 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20957 | ac_compiler_gnu=no |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20958 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20959 | |
| 20960 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20961 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 20962 | |
| 20963 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20964 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 20965 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20966 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 20967 | ac_test_CFLAGS=${CFLAGS+set} |
| 20968 | ac_save_CFLAGS=$CFLAGS |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20969 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 20970 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20971 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 20972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20973 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20974 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 20975 | ac_c_werror_flag=yes |
| 20976 | ac_cv_prog_cc_g=no |
| 20977 | CFLAGS="-g" |
| 20978 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20979 | /* confdefs.h. */ |
| 20980 | _ACEOF |
| 20981 | cat confdefs.h >>conftest.$ac_ext |
| 20982 | cat >>conftest.$ac_ext <<_ACEOF |
| 20983 | /* end confdefs.h. */ |
| 20984 | |
| 20985 | int |
| 20986 | main () |
| 20987 | { |
| 20988 | |
| 20989 | ; |
| 20990 | return 0; |
| 20991 | } |
| 20992 | _ACEOF |
| 20993 | rm -f conftest.$ac_objext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20994 | if { (ac_try="$ac_compile" |
| 20995 | case "(($ac_try" in |
| 20996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20997 | *) ac_try_echo=$ac_try;; |
| 20998 | esac |
| 20999 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21000 | (eval "$ac_compile") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21001 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21002 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21003 | rm -f conftest.er1 |
| 21004 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21006 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21007 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21008 | { (case "(($ac_try" in |
| 21009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21010 | *) ac_try_echo=$ac_try;; |
| 21011 | esac |
| 21012 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21013 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21014 | ac_status=$? |
| 21015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21016 | (exit $ac_status); }; } && |
| 21017 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21018 | { (case "(($ac_try" in |
| 21019 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21020 | *) ac_try_echo=$ac_try;; |
| 21021 | esac |
| 21022 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21023 | (eval "$ac_try") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21024 | ac_status=$? |
| 21025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21026 | (exit $ac_status); }; }; then |
| 21027 | ac_cv_prog_cc_g=yes |
| 21028 | else |
| 21029 | echo "$as_me: failed program was:" >&5 |
| 21030 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21031 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21032 | CFLAGS="" |
| 21033 | cat >conftest.$ac_ext <<_ACEOF |
| 21034 | /* confdefs.h. */ |
| 21035 | _ACEOF |
| 21036 | cat confdefs.h >>conftest.$ac_ext |
| 21037 | cat >>conftest.$ac_ext <<_ACEOF |
| 21038 | /* end confdefs.h. */ |
| 21039 | |
| 21040 | int |
| 21041 | main () |
| 21042 | { |
| 21043 | |
| 21044 | ; |
| 21045 | return 0; |
| 21046 | } |
| 21047 | _ACEOF |
| 21048 | rm -f conftest.$ac_objext |
| 21049 | if { (ac_try="$ac_compile" |
| 21050 | case "(($ac_try" in |
| 21051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21052 | *) ac_try_echo=$ac_try;; |
| 21053 | esac |
| 21054 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21055 | (eval "$ac_compile") 2>conftest.er1 |
| 21056 | ac_status=$? |
| 21057 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21058 | rm -f conftest.er1 |
| 21059 | cat conftest.err >&5 |
| 21060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21061 | (exit $ac_status); } && |
| 21062 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21063 | { (case "(($ac_try" in |
| 21064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21065 | *) ac_try_echo=$ac_try;; |
| 21066 | esac |
| 21067 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21068 | (eval "$ac_try") 2>&5 |
| 21069 | ac_status=$? |
| 21070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21071 | (exit $ac_status); }; } && |
| 21072 | { ac_try='test -s conftest.$ac_objext' |
| 21073 | { (case "(($ac_try" in |
| 21074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21075 | *) ac_try_echo=$ac_try;; |
| 21076 | esac |
| 21077 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21078 | (eval "$ac_try") 2>&5 |
| 21079 | ac_status=$? |
| 21080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21081 | (exit $ac_status); }; }; then |
| 21082 | : |
| 21083 | else |
| 21084 | echo "$as_me: failed program was:" >&5 |
| 21085 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21086 | |
| 21087 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 21088 | CFLAGS="-g" |
| 21089 | cat >conftest.$ac_ext <<_ACEOF |
| 21090 | /* confdefs.h. */ |
| 21091 | _ACEOF |
| 21092 | cat confdefs.h >>conftest.$ac_ext |
| 21093 | cat >>conftest.$ac_ext <<_ACEOF |
| 21094 | /* end confdefs.h. */ |
| 21095 | |
| 21096 | int |
| 21097 | main () |
| 21098 | { |
| 21099 | |
| 21100 | ; |
| 21101 | return 0; |
| 21102 | } |
| 21103 | _ACEOF |
| 21104 | rm -f conftest.$ac_objext |
| 21105 | if { (ac_try="$ac_compile" |
| 21106 | case "(($ac_try" in |
| 21107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21108 | *) ac_try_echo=$ac_try;; |
| 21109 | esac |
| 21110 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21111 | (eval "$ac_compile") 2>conftest.er1 |
| 21112 | ac_status=$? |
| 21113 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21114 | rm -f conftest.er1 |
| 21115 | cat conftest.err >&5 |
| 21116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21117 | (exit $ac_status); } && |
| 21118 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21119 | { (case "(($ac_try" in |
| 21120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21121 | *) ac_try_echo=$ac_try;; |
| 21122 | esac |
| 21123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21124 | (eval "$ac_try") 2>&5 |
| 21125 | ac_status=$? |
| 21126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21127 | (exit $ac_status); }; } && |
| 21128 | { ac_try='test -s conftest.$ac_objext' |
| 21129 | { (case "(($ac_try" in |
| 21130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21131 | *) ac_try_echo=$ac_try;; |
| 21132 | esac |
| 21133 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21134 | (eval "$ac_try") 2>&5 |
| 21135 | ac_status=$? |
| 21136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21137 | (exit $ac_status); }; }; then |
| 21138 | ac_cv_prog_cc_g=yes |
| 21139 | else |
| 21140 | echo "$as_me: failed program was:" >&5 |
| 21141 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21142 | |
| 21143 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21144 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21145 | |
| 21146 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21147 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21148 | |
| 21149 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21150 | fi |
| 21151 | |
| 21152 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21153 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 21154 | fi |
| 21155 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 21156 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21157 | if test "$ac_test_CFLAGS" = set; then |
| 21158 | CFLAGS=$ac_save_CFLAGS |
| 21159 | elif test $ac_cv_prog_cc_g = yes; then |
| 21160 | if test "$GCC" = yes; then |
| 21161 | CFLAGS="-g -O2" |
| 21162 | else |
| 21163 | CFLAGS="-g" |
| 21164 | fi |
| 21165 | else |
| 21166 | if test "$GCC" = yes; then |
| 21167 | CFLAGS="-O2" |
| 21168 | else |
| 21169 | CFLAGS= |
| 21170 | fi |
| 21171 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21172 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 21173 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 21174 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21175 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21176 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21177 | ac_cv_prog_cc_c89=no |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21178 | ac_save_CC=$CC |
| 21179 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21180 | /* confdefs.h. */ |
| 21181 | _ACEOF |
| 21182 | cat confdefs.h >>conftest.$ac_ext |
| 21183 | cat >>conftest.$ac_ext <<_ACEOF |
| 21184 | /* end confdefs.h. */ |
| 21185 | #include <stdarg.h> |
| 21186 | #include <stdio.h> |
| 21187 | #include <sys/types.h> |
| 21188 | #include <sys/stat.h> |
| 21189 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 21190 | struct buf { int x; }; |
| 21191 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 21192 | static char *e (p, i) |
| 21193 | char **p; |
| 21194 | int i; |
| 21195 | { |
| 21196 | return p[i]; |
| 21197 | } |
| 21198 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 21199 | { |
| 21200 | char *s; |
| 21201 | va_list v; |
| 21202 | va_start (v,p); |
| 21203 | s = g (p, va_arg (v,int)); |
| 21204 | va_end (v); |
| 21205 | return s; |
| 21206 | } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21207 | |
| 21208 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 21209 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 21210 | These don't provoke an error unfortunately, instead are silently treated |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21211 | as 'x'. The following induces an error, until -std is added to get |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21212 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 21213 | array size at least. It's necessary to write '\x00'==0 to get something |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21214 | that's true only with -std. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21215 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 21216 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21217 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 21218 | inside strings and character constants. */ |
| 21219 | #define FOO(x) 'x' |
| 21220 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 21221 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21222 | int test (int i, double x); |
| 21223 | struct s1 {int (*f) (int a);}; |
| 21224 | struct s2 {int (*f) (double a);}; |
| 21225 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 21226 | int argc; |
| 21227 | char **argv; |
| 21228 | int |
| 21229 | main () |
| 21230 | { |
| 21231 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 21232 | ; |
| 21233 | return 0; |
| 21234 | } |
| 21235 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21236 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 21237 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21238 | do |
| 21239 | CC="$ac_save_CC $ac_arg" |
| 21240 | rm -f conftest.$ac_objext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21241 | if { (ac_try="$ac_compile" |
| 21242 | case "(($ac_try" in |
| 21243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21244 | *) ac_try_echo=$ac_try;; |
| 21245 | esac |
| 21246 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21247 | (eval "$ac_compile") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21248 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21249 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21250 | rm -f conftest.er1 |
| 21251 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21253 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21254 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21255 | { (case "(($ac_try" in |
| 21256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21257 | *) ac_try_echo=$ac_try;; |
| 21258 | esac |
| 21259 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21260 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21261 | ac_status=$? |
| 21262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21263 | (exit $ac_status); }; } && |
| 21264 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21265 | { (case "(($ac_try" in |
| 21266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21267 | *) ac_try_echo=$ac_try;; |
| 21268 | esac |
| 21269 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21270 | (eval "$ac_try") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21271 | ac_status=$? |
| 21272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21273 | (exit $ac_status); }; }; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21274 | ac_cv_prog_cc_c89=$ac_arg |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21275 | else |
| 21276 | echo "$as_me: failed program was:" >&5 |
| 21277 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21278 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21279 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21280 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21281 | |
| 21282 | rm -f core conftest.err conftest.$ac_objext |
| 21283 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21284 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21285 | rm -f conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21286 | CC=$ac_save_CC |
| 21287 | |
| 21288 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21289 | # AC_CACHE_VAL |
| 21290 | case "x$ac_cv_prog_cc_c89" in |
| 21291 | x) |
| 21292 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 21293 | echo "${ECHO_T}none needed" >&6; } ;; |
| 21294 | xno) |
| 21295 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 21296 | echo "${ECHO_T}unsupported" >&6; } ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21297 | *) |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21298 | CC="$CC $ac_cv_prog_cc_c89" |
| 21299 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 21300 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21301 | esac |
| 21302 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21303 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21304 | ac_ext=c |
| 21305 | ac_cpp='$CPP $CPPFLAGS' |
| 21306 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21307 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21308 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21309 | |
| 21310 | depcc="$CC" am_compiler_list= |
| 21311 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21312 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 21313 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21314 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
| 21315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21316 | else |
| 21317 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 21318 | # We make a subdir and do the tests there. Otherwise we can end up |
| 21319 | # making bogus files that we don't know about and never remove. For |
| 21320 | # instance it was reported that on HP-UX the gcc test will end up |
| 21321 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 21322 | # in D'. |
| 21323 | mkdir conftest.dir |
| 21324 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 21325 | # using a relative directory. |
| 21326 | cp "$am_depcomp" conftest.dir |
| 21327 | cd conftest.dir |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21328 | # We will build objects and dependencies in a subdirectory because |
| 21329 | # it helps to detect inapplicable dependency modes. For instance |
| 21330 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 21331 | # side effect of compilation, but ICC will put the dependencies in |
| 21332 | # the current directory while Tru64 will put them in the object |
| 21333 | # directory. |
| 21334 | mkdir sub |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21335 | |
| 21336 | am_cv_CC_dependencies_compiler_type=none |
| 21337 | if test "$am_compiler_list" = ""; then |
| 21338 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 21339 | fi |
| 21340 | for depmode in $am_compiler_list; do |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21341 | # Setup a source with many dependencies, because some compilers |
| 21342 | # like to wrap large dependency lists on column 80 (with \), and |
| 21343 | # we should not choose a depcomp mode which is confused by this. |
| 21344 | # |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21345 | # We need to recreate these files for each test, as the compiler may |
| 21346 | # overwrite some of them when testing with obscure command lines. |
| 21347 | # This happens at least with the AIX C compiler. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21348 | : > sub/conftest.c |
| 21349 | for i in 1 2 3 4 5 6; do |
| 21350 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 21351 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 21352 | # Solaris 8's {/usr,}/bin/sh. |
| 21353 | touch sub/conftst$i.h |
| 21354 | done |
| 21355 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21356 | |
| 21357 | case $depmode in |
| 21358 | nosideeffect) |
| 21359 | # after this tag, mechanisms are not by side-effect, so they'll |
| 21360 | # only be used when explicitly requested |
| 21361 | if test "x$enable_dependency_tracking" = xyes; then |
| 21362 | continue |
| 21363 | else |
| 21364 | break |
| 21365 | fi |
| 21366 | ;; |
| 21367 | none) break ;; |
| 21368 | esac |
| 21369 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 21370 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 21371 | # handle `-M -o', and we need to detect this. |
| 21372 | if depmode=$depmode \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21373 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| 21374 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 21375 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| 21376 | >/dev/null 2>conftest.err && |
| 21377 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 21378 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21379 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21380 | # icc doesn't choke on unknown options, it will just issue warnings |
| 21381 | # or remarks (even with -Werror). So we grep stderr for any message |
| 21382 | # that says an option was ignored or not supported. |
| 21383 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 21384 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 21385 | # The diagnosis changed in icc 8.0: |
| 21386 | # icc: Command line remark: option '-MP' not supported |
| 21387 | if (grep 'ignoring option' conftest.err || |
| 21388 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 21389 | am_cv_CC_dependencies_compiler_type=$depmode |
| 21390 | break |
| 21391 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21392 | fi |
| 21393 | done |
| 21394 | |
| 21395 | cd .. |
| 21396 | rm -rf conftest.dir |
| 21397 | else |
| 21398 | am_cv_CC_dependencies_compiler_type=none |
| 21399 | fi |
| 21400 | |
| 21401 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21402 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 21403 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21404 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 21405 | |
| 21406 | |
| 21407 | |
| 21408 | if |
| 21409 | test "x$enable_dependency_tracking" != xno \ |
| 21410 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 21411 | am__fastdepCC_TRUE= |
| 21412 | am__fastdepCC_FALSE='#' |
| 21413 | else |
| 21414 | am__fastdepCC_TRUE='#' |
| 21415 | am__fastdepCC_FALSE= |
| 21416 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21417 | |
| 21418 | |
| 21419 | ac_ext=c |
| 21420 | ac_cpp='$CPP $CPPFLAGS' |
| 21421 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21422 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21423 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21424 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 21425 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21426 | # On Suns, sometimes $CPP names a directory. |
| 21427 | if test -n "$CPP" && test -d "$CPP"; then |
| 21428 | CPP= |
| 21429 | fi |
| 21430 | if test -z "$CPP"; then |
| 21431 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 21432 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21433 | else |
| 21434 | # Double quotes because CPP needs to be expanded |
| 21435 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 21436 | do |
| 21437 | ac_preproc_ok=false |
| 21438 | for ac_c_preproc_warn_flag in '' yes |
| 21439 | do |
| 21440 | # Use a header file that comes with gcc, so configuring glibc |
| 21441 | # with a fresh cross-compiler works. |
| 21442 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 21443 | # <limits.h> exists even on freestanding compilers. |
| 21444 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 21445 | # not just through cpp. "Syntax error" is here to catch this case. |
| 21446 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21447 | /* confdefs.h. */ |
| 21448 | _ACEOF |
| 21449 | cat confdefs.h >>conftest.$ac_ext |
| 21450 | cat >>conftest.$ac_ext <<_ACEOF |
| 21451 | /* end confdefs.h. */ |
| 21452 | #ifdef __STDC__ |
| 21453 | # include <limits.h> |
| 21454 | #else |
| 21455 | # include <assert.h> |
| 21456 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21457 | Syntax error |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21458 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21459 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 21460 | case "(($ac_try" in |
| 21461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21462 | *) ac_try_echo=$ac_try;; |
| 21463 | esac |
| 21464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21465 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21466 | ac_status=$? |
| 21467 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21468 | rm -f conftest.er1 |
| 21469 | cat conftest.err >&5 |
| 21470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21471 | (exit $ac_status); } >/dev/null; then |
| 21472 | if test -s conftest.err; then |
| 21473 | ac_cpp_err=$ac_c_preproc_warn_flag |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21474 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21475 | else |
| 21476 | ac_cpp_err= |
| 21477 | fi |
| 21478 | else |
| 21479 | ac_cpp_err=yes |
| 21480 | fi |
| 21481 | if test -z "$ac_cpp_err"; then |
| 21482 | : |
| 21483 | else |
| 21484 | echo "$as_me: failed program was:" >&5 |
| 21485 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21486 | |
| 21487 | # Broken: fails on valid input. |
| 21488 | continue |
| 21489 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21490 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21491 | rm -f conftest.err conftest.$ac_ext |
| 21492 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21493 | # OK, works on sane cases. Now check whether nonexistent headers |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21494 | # can be detected and how. |
| 21495 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21496 | /* confdefs.h. */ |
| 21497 | _ACEOF |
| 21498 | cat confdefs.h >>conftest.$ac_ext |
| 21499 | cat >>conftest.$ac_ext <<_ACEOF |
| 21500 | /* end confdefs.h. */ |
| 21501 | #include <ac_nonexistent.h> |
| 21502 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21503 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 21504 | case "(($ac_try" in |
| 21505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21506 | *) ac_try_echo=$ac_try;; |
| 21507 | esac |
| 21508 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21509 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21510 | ac_status=$? |
| 21511 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21512 | rm -f conftest.er1 |
| 21513 | cat conftest.err >&5 |
| 21514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21515 | (exit $ac_status); } >/dev/null; then |
| 21516 | if test -s conftest.err; then |
| 21517 | ac_cpp_err=$ac_c_preproc_warn_flag |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21518 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21519 | else |
| 21520 | ac_cpp_err= |
| 21521 | fi |
| 21522 | else |
| 21523 | ac_cpp_err=yes |
| 21524 | fi |
| 21525 | if test -z "$ac_cpp_err"; then |
| 21526 | # Broken: success on invalid input. |
| 21527 | continue |
| 21528 | else |
| 21529 | echo "$as_me: failed program was:" >&5 |
| 21530 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21531 | |
| 21532 | # Passes both tests. |
| 21533 | ac_preproc_ok=: |
| 21534 | break |
| 21535 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21536 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21537 | rm -f conftest.err conftest.$ac_ext |
| 21538 | |
| 21539 | done |
| 21540 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 21541 | rm -f conftest.err conftest.$ac_ext |
| 21542 | if $ac_preproc_ok; then |
| 21543 | break |
| 21544 | fi |
| 21545 | |
| 21546 | done |
| 21547 | ac_cv_prog_CPP=$CPP |
| 21548 | |
| 21549 | fi |
| 21550 | CPP=$ac_cv_prog_CPP |
| 21551 | else |
| 21552 | ac_cv_prog_CPP=$CPP |
| 21553 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21554 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 21555 | echo "${ECHO_T}$CPP" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21556 | ac_preproc_ok=false |
| 21557 | for ac_c_preproc_warn_flag in '' yes |
| 21558 | do |
| 21559 | # Use a header file that comes with gcc, so configuring glibc |
| 21560 | # with a fresh cross-compiler works. |
| 21561 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 21562 | # <limits.h> exists even on freestanding compilers. |
| 21563 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 21564 | # not just through cpp. "Syntax error" is here to catch this case. |
| 21565 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21566 | /* confdefs.h. */ |
| 21567 | _ACEOF |
| 21568 | cat confdefs.h >>conftest.$ac_ext |
| 21569 | cat >>conftest.$ac_ext <<_ACEOF |
| 21570 | /* end confdefs.h. */ |
| 21571 | #ifdef __STDC__ |
| 21572 | # include <limits.h> |
| 21573 | #else |
| 21574 | # include <assert.h> |
| 21575 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21576 | Syntax error |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21577 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21578 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 21579 | case "(($ac_try" in |
| 21580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21581 | *) ac_try_echo=$ac_try;; |
| 21582 | esac |
| 21583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21584 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21585 | ac_status=$? |
| 21586 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21587 | rm -f conftest.er1 |
| 21588 | cat conftest.err >&5 |
| 21589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21590 | (exit $ac_status); } >/dev/null; then |
| 21591 | if test -s conftest.err; then |
| 21592 | ac_cpp_err=$ac_c_preproc_warn_flag |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21593 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21594 | else |
| 21595 | ac_cpp_err= |
| 21596 | fi |
| 21597 | else |
| 21598 | ac_cpp_err=yes |
| 21599 | fi |
| 21600 | if test -z "$ac_cpp_err"; then |
| 21601 | : |
| 21602 | else |
| 21603 | echo "$as_me: failed program was:" >&5 |
| 21604 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21605 | |
| 21606 | # Broken: fails on valid input. |
| 21607 | continue |
| 21608 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21609 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21610 | rm -f conftest.err conftest.$ac_ext |
| 21611 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21612 | # OK, works on sane cases. Now check whether nonexistent headers |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21613 | # can be detected and how. |
| 21614 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21615 | /* confdefs.h. */ |
| 21616 | _ACEOF |
| 21617 | cat confdefs.h >>conftest.$ac_ext |
| 21618 | cat >>conftest.$ac_ext <<_ACEOF |
| 21619 | /* end confdefs.h. */ |
| 21620 | #include <ac_nonexistent.h> |
| 21621 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21622 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 21623 | case "(($ac_try" in |
| 21624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21625 | *) ac_try_echo=$ac_try;; |
| 21626 | esac |
| 21627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21628 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21629 | ac_status=$? |
| 21630 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21631 | rm -f conftest.er1 |
| 21632 | cat conftest.err >&5 |
| 21633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21634 | (exit $ac_status); } >/dev/null; then |
| 21635 | if test -s conftest.err; then |
| 21636 | ac_cpp_err=$ac_c_preproc_warn_flag |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21637 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21638 | else |
| 21639 | ac_cpp_err= |
| 21640 | fi |
| 21641 | else |
| 21642 | ac_cpp_err=yes |
| 21643 | fi |
| 21644 | if test -z "$ac_cpp_err"; then |
| 21645 | # Broken: success on invalid input. |
| 21646 | continue |
| 21647 | else |
| 21648 | echo "$as_me: failed program was:" >&5 |
| 21649 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21650 | |
| 21651 | # Passes both tests. |
| 21652 | ac_preproc_ok=: |
| 21653 | break |
| 21654 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21655 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21656 | rm -f conftest.err conftest.$ac_ext |
| 21657 | |
| 21658 | done |
| 21659 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 21660 | rm -f conftest.err conftest.$ac_ext |
| 21661 | if $ac_preproc_ok; then |
| 21662 | : |
| 21663 | else |
| 21664 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 21665 | See \`config.log' for more details." >&5 |
| 21666 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 21667 | See \`config.log' for more details." >&2;} |
| 21668 | { (exit 1); exit 1; }; } |
| 21669 | fi |
| 21670 | |
| 21671 | ac_ext=c |
| 21672 | ac_cpp='$CPP $CPPFLAGS' |
| 21673 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21674 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21675 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 21676 | |
| 21677 | # Find a good install program. We prefer a C program (faster), |
| 21678 | # so one script is as good as another. But avoid the broken or |
| 21679 | # incompatible versions: |
| 21680 | # SysV /etc/install, /usr/sbin/install |
| 21681 | # SunOS /usr/etc/install |
| 21682 | # IRIX /sbin/install |
| 21683 | # AIX /bin/install |
| 21684 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 21685 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 21686 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 21687 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21688 | # OS/2's system install, which has a completely different semantic |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21689 | # ./install, which can be erroneously created by make from ./install.sh. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21690 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 21691 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21692 | if test -z "$INSTALL"; then |
| 21693 | if test "${ac_cv_path_install+set}" = set; then |
| 21694 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21695 | else |
| 21696 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 21697 | for as_dir in $PATH |
| 21698 | do |
| 21699 | IFS=$as_save_IFS |
| 21700 | test -z "$as_dir" && as_dir=. |
| 21701 | # Account for people who put trailing slashes in PATH elements. |
| 21702 | case $as_dir/ in |
| 21703 | ./ | .// | /cC/* | \ |
| 21704 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21705 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21706 | /usr/ucb/* ) ;; |
| 21707 | *) |
| 21708 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 21709 | # Don't use installbsd from OSF since it installs stuff as root |
| 21710 | # by default. |
| 21711 | for ac_prog in ginstall scoinst install; do |
| 21712 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21713 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21714 | if test $ac_prog = install && |
| 21715 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 21716 | # AIX install. It has an incompatible calling convention. |
| 21717 | : |
| 21718 | elif test $ac_prog = install && |
| 21719 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 21720 | # program-specific install script used by HP pwplus--don't use. |
| 21721 | : |
| 21722 | else |
| 21723 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 21724 | break 3 |
| 21725 | fi |
| 21726 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21727 | done |
| 21728 | done |
| 21729 | ;; |
| 21730 | esac |
| 21731 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21732 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21733 | |
| 21734 | |
| 21735 | fi |
| 21736 | if test "${ac_cv_path_install+set}" = set; then |
| 21737 | INSTALL=$ac_cv_path_install |
| 21738 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21739 | # As a last resort, use the slow shell script. Don't cache a |
| 21740 | # value for INSTALL within a source directory, because that will |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21741 | # break other packages using the cache if that directory is |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21742 | # removed, or if the value is a relative name. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21743 | INSTALL=$ac_install_sh |
| 21744 | fi |
| 21745 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21746 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 21747 | echo "${ECHO_T}$INSTALL" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21748 | |
| 21749 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 21750 | # It thinks the first close brace ends the variable substitution. |
| 21751 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 21752 | |
| 21753 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 21754 | |
| 21755 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 21756 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21757 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 21758 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21759 | LN_S=$as_ln_s |
| 21760 | if test "$LN_S" = "ln -s"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21761 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 21762 | echo "${ECHO_T}yes" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21763 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21764 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 21765 | echo "${ECHO_T}no, using $LN_S" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21766 | fi |
| 21767 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21768 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 21769 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
| 21770 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 21771 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21773 | else |
| 21774 | cat >conftest.make <<\_ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21775 | SHELL = /bin/sh |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21776 | all: |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21777 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21778 | _ACEOF |
| 21779 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21780 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 21781 | *@@@%%%=?*=@@@%%%*) |
| 21782 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 21783 | *) |
| 21784 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 21785 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21786 | rm -f conftest.make |
| 21787 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21788 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 21789 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 21790 | echo "${ECHO_T}yes" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21791 | SET_MAKE= |
| 21792 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21793 | { echo "$as_me:$LINENO: result: no" >&5 |
| 21794 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21795 | SET_MAKE="MAKE=${MAKE-make}" |
| 21796 | fi |
| 21797 | |
| 21798 | for ac_prog in 'bison -y' byacc |
| 21799 | do |
| 21800 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 21801 | set dummy $ac_prog; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21802 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 21803 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21804 | if test "${ac_cv_prog_YACC+set}" = set; then |
| 21805 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21806 | else |
| 21807 | if test -n "$YACC"; then |
| 21808 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 21809 | else |
| 21810 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 21811 | for as_dir in $PATH |
| 21812 | do |
| 21813 | IFS=$as_save_IFS |
| 21814 | test -z "$as_dir" && as_dir=. |
| 21815 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21816 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21817 | ac_cv_prog_YACC="$ac_prog" |
| 21818 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 21819 | break 2 |
| 21820 | fi |
| 21821 | done |
| 21822 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21823 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21824 | |
| 21825 | fi |
| 21826 | fi |
| 21827 | YACC=$ac_cv_prog_YACC |
| 21828 | if test -n "$YACC"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21829 | { echo "$as_me:$LINENO: result: $YACC" >&5 |
| 21830 | echo "${ECHO_T}$YACC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21831 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21832 | { echo "$as_me:$LINENO: result: no" >&5 |
| 21833 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21834 | fi |
| 21835 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21836 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21837 | test -n "$YACC" && break |
| 21838 | done |
| 21839 | test -n "$YACC" || YACC="yacc" |
| 21840 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21841 | for ac_prog in flex lex |
| 21842 | do |
| 21843 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 21844 | set dummy $ac_prog; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21845 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 21846 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21847 | if test "${ac_cv_prog_LEX+set}" = set; then |
| 21848 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21849 | else |
| 21850 | if test -n "$LEX"; then |
| 21851 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 21852 | else |
| 21853 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 21854 | for as_dir in $PATH |
| 21855 | do |
| 21856 | IFS=$as_save_IFS |
| 21857 | test -z "$as_dir" && as_dir=. |
| 21858 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21859 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21860 | ac_cv_prog_LEX="$ac_prog" |
| 21861 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 21862 | break 2 |
| 21863 | fi |
| 21864 | done |
| 21865 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21866 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21867 | |
| 21868 | fi |
| 21869 | fi |
| 21870 | LEX=$ac_cv_prog_LEX |
| 21871 | if test -n "$LEX"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21872 | { echo "$as_me:$LINENO: result: $LEX" >&5 |
| 21873 | echo "${ECHO_T}$LEX" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21874 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21875 | { echo "$as_me:$LINENO: result: no" >&5 |
| 21876 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21877 | fi |
| 21878 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21879 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21880 | test -n "$LEX" && break |
| 21881 | done |
| 21882 | test -n "$LEX" || LEX=":" |
| 21883 | |
| 21884 | if test -z "$LEXLIB" |
| 21885 | then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21886 | { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
| 21887 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21888 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then |
| 21889 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21890 | else |
| 21891 | ac_check_lib_save_LIBS=$LIBS |
| 21892 | LIBS="-lfl $LIBS" |
| 21893 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21894 | /* confdefs.h. */ |
| 21895 | _ACEOF |
| 21896 | cat confdefs.h >>conftest.$ac_ext |
| 21897 | cat >>conftest.$ac_ext <<_ACEOF |
| 21898 | /* end confdefs.h. */ |
| 21899 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21900 | /* Override any GCC internal prototype to avoid an error. |
| 21901 | Use char because int might match the return type of a GCC |
| 21902 | builtin and then its argument prototype would still apply. */ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21903 | #ifdef __cplusplus |
| 21904 | extern "C" |
| 21905 | #endif |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21906 | char yywrap (); |
| 21907 | int |
| 21908 | main () |
| 21909 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21910 | return yywrap (); |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21911 | ; |
| 21912 | return 0; |
| 21913 | } |
| 21914 | _ACEOF |
| 21915 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21916 | if { (ac_try="$ac_link" |
| 21917 | case "(($ac_try" in |
| 21918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21919 | *) ac_try_echo=$ac_try;; |
| 21920 | esac |
| 21921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21922 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21923 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21924 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21925 | rm -f conftest.er1 |
| 21926 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21928 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21929 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21930 | { (case "(($ac_try" in |
| 21931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21932 | *) ac_try_echo=$ac_try;; |
| 21933 | esac |
| 21934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21935 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21936 | ac_status=$? |
| 21937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21938 | (exit $ac_status); }; } && |
| 21939 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21940 | { (case "(($ac_try" in |
| 21941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21942 | *) ac_try_echo=$ac_try;; |
| 21943 | esac |
| 21944 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21945 | (eval "$ac_try") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21946 | ac_status=$? |
| 21947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21948 | (exit $ac_status); }; }; then |
| 21949 | ac_cv_lib_fl_yywrap=yes |
| 21950 | else |
| 21951 | echo "$as_me: failed program was:" >&5 |
| 21952 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21953 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21954 | ac_cv_lib_fl_yywrap=no |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21955 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21956 | |
| 21957 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21958 | conftest$ac_exeext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21959 | LIBS=$ac_check_lib_save_LIBS |
| 21960 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21961 | { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
| 21962 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21963 | if test $ac_cv_lib_fl_yywrap = yes; then |
| 21964 | LEXLIB="-lfl" |
| 21965 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21966 | { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
| 21967 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21968 | if test "${ac_cv_lib_l_yywrap+set}" = set; then |
| 21969 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21970 | else |
| 21971 | ac_check_lib_save_LIBS=$LIBS |
| 21972 | LIBS="-ll $LIBS" |
| 21973 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21974 | /* confdefs.h. */ |
| 21975 | _ACEOF |
| 21976 | cat confdefs.h >>conftest.$ac_ext |
| 21977 | cat >>conftest.$ac_ext <<_ACEOF |
| 21978 | /* end confdefs.h. */ |
| 21979 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21980 | /* Override any GCC internal prototype to avoid an error. |
| 21981 | Use char because int might match the return type of a GCC |
| 21982 | builtin and then its argument prototype would still apply. */ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21983 | #ifdef __cplusplus |
| 21984 | extern "C" |
| 21985 | #endif |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21986 | char yywrap (); |
| 21987 | int |
| 21988 | main () |
| 21989 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21990 | return yywrap (); |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21991 | ; |
| 21992 | return 0; |
| 21993 | } |
| 21994 | _ACEOF |
| 21995 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21996 | if { (ac_try="$ac_link" |
| 21997 | case "(($ac_try" in |
| 21998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21999 | *) ac_try_echo=$ac_try;; |
| 22000 | esac |
| 22001 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22002 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22003 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22004 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22005 | rm -f conftest.er1 |
| 22006 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22008 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22009 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22010 | { (case "(($ac_try" in |
| 22011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22012 | *) ac_try_echo=$ac_try;; |
| 22013 | esac |
| 22014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22015 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22016 | ac_status=$? |
| 22017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22018 | (exit $ac_status); }; } && |
| 22019 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22020 | { (case "(($ac_try" in |
| 22021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22022 | *) ac_try_echo=$ac_try;; |
| 22023 | esac |
| 22024 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22025 | (eval "$ac_try") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22026 | ac_status=$? |
| 22027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22028 | (exit $ac_status); }; }; then |
| 22029 | ac_cv_lib_l_yywrap=yes |
| 22030 | else |
| 22031 | echo "$as_me: failed program was:" >&5 |
| 22032 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22033 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22034 | ac_cv_lib_l_yywrap=no |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22035 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22036 | |
| 22037 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22038 | conftest$ac_exeext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22039 | LIBS=$ac_check_lib_save_LIBS |
| 22040 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22041 | { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
| 22042 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22043 | if test $ac_cv_lib_l_yywrap = yes; then |
| 22044 | LEXLIB="-ll" |
| 22045 | fi |
| 22046 | |
| 22047 | fi |
| 22048 | |
| 22049 | fi |
| 22050 | |
| 22051 | if test "x$LEX" != "x:"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22052 | { echo "$as_me:$LINENO: checking lex output file root" >&5 |
| 22053 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22054 | if test "${ac_cv_prog_lex_root+set}" = set; then |
| 22055 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22056 | else |
| 22057 | # The minimal lex program is just a single line: %%. But some broken lexes |
| 22058 | # (Solaris, I think it was) want two %% lines, so accommodate them. |
| 22059 | cat >conftest.l <<_ACEOF |
| 22060 | %% |
| 22061 | %% |
| 22062 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22063 | { (ac_try="$LEX conftest.l" |
| 22064 | case "(($ac_try" in |
| 22065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22066 | *) ac_try_echo=$ac_try;; |
| 22067 | esac |
| 22068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22069 | (eval "$LEX conftest.l") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22070 | ac_status=$? |
| 22071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22072 | (exit $ac_status); } |
| 22073 | if test -f lex.yy.c; then |
| 22074 | ac_cv_prog_lex_root=lex.yy |
| 22075 | elif test -f lexyy.c; then |
| 22076 | ac_cv_prog_lex_root=lexyy |
| 22077 | else |
| 22078 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
| 22079 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
| 22080 | { (exit 1); exit 1; }; } |
| 22081 | fi |
| 22082 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22083 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
| 22084 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22085 | rm -f conftest.l |
| 22086 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
| 22087 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22088 | { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
| 22089 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22090 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
| 22091 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22092 | else |
| 22093 | # POSIX says lex can declare yytext either as a pointer or an array; the |
| 22094 | # default is implementation-dependent. Figure out which it is, since |
| 22095 | # not all implementations provide the %pointer and %array declarations. |
| 22096 | ac_cv_prog_lex_yytext_pointer=no |
| 22097 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
| 22098 | ac_save_LIBS=$LIBS |
| 22099 | LIBS="$LIBS $LEXLIB" |
| 22100 | cat >conftest.$ac_ext <<_ACEOF |
| 22101 | `cat $LEX_OUTPUT_ROOT.c` |
| 22102 | _ACEOF |
| 22103 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22104 | if { (ac_try="$ac_link" |
| 22105 | case "(($ac_try" in |
| 22106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22107 | *) ac_try_echo=$ac_try;; |
| 22108 | esac |
| 22109 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22110 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22111 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22112 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22113 | rm -f conftest.er1 |
| 22114 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22116 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22117 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22118 | { (case "(($ac_try" in |
| 22119 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22120 | *) ac_try_echo=$ac_try;; |
| 22121 | esac |
| 22122 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22123 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22124 | ac_status=$? |
| 22125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22126 | (exit $ac_status); }; } && |
| 22127 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22128 | { (case "(($ac_try" in |
| 22129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22130 | *) ac_try_echo=$ac_try;; |
| 22131 | esac |
| 22132 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22133 | (eval "$ac_try") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22134 | ac_status=$? |
| 22135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22136 | (exit $ac_status); }; }; then |
| 22137 | ac_cv_prog_lex_yytext_pointer=yes |
| 22138 | else |
| 22139 | echo "$as_me: failed program was:" >&5 |
| 22140 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22141 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22142 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22143 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22144 | |
| 22145 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22146 | conftest$ac_exeext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22147 | LIBS=$ac_save_LIBS |
| 22148 | rm -f "${LEX_OUTPUT_ROOT}.c" |
| 22149 | |
| 22150 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22151 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
| 22152 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22153 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
| 22154 | |
| 22155 | cat >>confdefs.h <<\_ACEOF |
| 22156 | #define YYTEXT_POINTER 1 |
| 22157 | _ACEOF |
| 22158 | |
| 22159 | fi |
| 22160 | |
| 22161 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22162 | if test "$LEX" = :; then |
| 22163 | LEX=${am_missing_run}flex |
| 22164 | fi |
Lev Walkin | c10e06c | 2005-03-30 05:14:26 +0000 | [diff] [blame] | 22165 | # Extract the first word of "ar", so it can be a program name with args. |
| 22166 | set dummy ar; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22167 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 22168 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | c10e06c | 2005-03-30 05:14:26 +0000 | [diff] [blame] | 22169 | if test "${ac_cv_path_AR+set}" = set; then |
| 22170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22171 | else |
| 22172 | case $AR in |
| 22173 | [\\/]* | ?:[\\/]*) |
| 22174 | ac_cv_path_AR="$AR" # Let the user override the test with a path. |
| 22175 | ;; |
| 22176 | *) |
| 22177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 22178 | as_dummy="$PATH:/usr/ucb:/usr/ccs/bin" |
| 22179 | for as_dir in $as_dummy |
| 22180 | do |
| 22181 | IFS=$as_save_IFS |
| 22182 | test -z "$as_dir" && as_dir=. |
| 22183 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22184 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | c10e06c | 2005-03-30 05:14:26 +0000 | [diff] [blame] | 22185 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" |
| 22186 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 22187 | break 2 |
| 22188 | fi |
| 22189 | done |
| 22190 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22191 | IFS=$as_save_IFS |
Lev Walkin | c10e06c | 2005-03-30 05:14:26 +0000 | [diff] [blame] | 22192 | |
| 22193 | test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar" |
| 22194 | ;; |
| 22195 | esac |
| 22196 | fi |
| 22197 | AR=$ac_cv_path_AR |
Lev Walkin | c10e06c | 2005-03-30 05:14:26 +0000 | [diff] [blame] | 22198 | if test -n "$AR"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22199 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 22200 | echo "${ECHO_T}$AR" >&6; } |
Lev Walkin | c10e06c | 2005-03-30 05:14:26 +0000 | [diff] [blame] | 22201 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22202 | { echo "$as_me:$LINENO: result: no" >&5 |
| 22203 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | c10e06c | 2005-03-30 05:14:26 +0000 | [diff] [blame] | 22204 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22205 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22206 | |
Lev Walkin | 5f869d0 | 2004-08-23 10:41:38 +0000 | [diff] [blame] | 22207 | case "$host_os" in |
Lev Walkin | 7943230 | 2006-03-18 06:39:49 +0000 | [diff] [blame] | 22208 | cygwin) |
Lev Walkin | 59ec6ac | 2006-03-18 06:25:40 +0000 | [diff] [blame] | 22209 | case "$target" in |
Lev Walkin | 5f869d0 | 2004-08-23 10:41:38 +0000 | [diff] [blame] | 22210 | *mingw*) |
| 22211 | CC="$CC -mno-cygwin" |
| 22212 | esac |
| 22213 | ;; |
Lev Walkin | 59ec6ac | 2006-03-18 06:25:40 +0000 | [diff] [blame] | 22214 | esac |
| 22215 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22216 | # Check whether --enable-Werror was given. |
Lev Walkin | 04c2317 | 2004-09-26 14:18:32 +0000 | [diff] [blame] | 22217 | if test "${enable_Werror+set}" = set; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22218 | enableval=$enable_Werror; enable_werror=$enableval |
Lev Walkin | 04c2317 | 2004-09-26 14:18:32 +0000 | [diff] [blame] | 22219 | else |
| 22220 | enable_werror=no |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22221 | fi |
| 22222 | |
Lev Walkin | 04c2317 | 2004-09-26 14:18:32 +0000 | [diff] [blame] | 22223 | if test x$enable_werror = xyes; then |
| 22224 | ADD_CFLAGS="-Werror -W -Wpointer-arith" |
| 22225 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22226 | |
| 22227 | |
| 22228 | case "$GCC" in |
| 22229 | yes) |
| 22230 | CFLAGS="$CFLAGS -Wall" |
| 22231 | CFLAGS="$CFLAGS -Wshadow" |
| 22232 | CFLAGS="$CFLAGS -Wcast-qual" |
| 22233 | CFLAGS="$CFLAGS -Wcast-align" |
Lev Walkin | 9363674 | 2004-09-26 13:16:33 +0000 | [diff] [blame] | 22234 | CFLAGS="$CFLAGS -Wchar-subscripts" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22235 | CFLAGS="$CFLAGS -Wmissing-prototypes" |
| 22236 | CFLAGS="$CFLAGS -Wmissing-declarations" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22237 | ;; |
| 22238 | esac |
| 22239 | |
| 22240 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22241 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 22242 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22243 | if test "${ac_cv_header_stdc+set}" = set; then |
| 22244 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22245 | else |
| 22246 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22247 | /* confdefs.h. */ |
| 22248 | _ACEOF |
| 22249 | cat confdefs.h >>conftest.$ac_ext |
| 22250 | cat >>conftest.$ac_ext <<_ACEOF |
| 22251 | /* end confdefs.h. */ |
| 22252 | #include <stdlib.h> |
| 22253 | #include <stdarg.h> |
| 22254 | #include <string.h> |
| 22255 | #include <float.h> |
| 22256 | |
| 22257 | int |
| 22258 | main () |
| 22259 | { |
| 22260 | |
| 22261 | ; |
| 22262 | return 0; |
| 22263 | } |
| 22264 | _ACEOF |
| 22265 | rm -f conftest.$ac_objext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22266 | if { (ac_try="$ac_compile" |
| 22267 | case "(($ac_try" in |
| 22268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22269 | *) ac_try_echo=$ac_try;; |
| 22270 | esac |
| 22271 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22272 | (eval "$ac_compile") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22273 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22274 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22275 | rm -f conftest.er1 |
| 22276 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22278 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22279 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22280 | { (case "(($ac_try" in |
| 22281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22282 | *) ac_try_echo=$ac_try;; |
| 22283 | esac |
| 22284 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22285 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22286 | ac_status=$? |
| 22287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22288 | (exit $ac_status); }; } && |
| 22289 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22290 | { (case "(($ac_try" in |
| 22291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22292 | *) ac_try_echo=$ac_try;; |
| 22293 | esac |
| 22294 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22295 | (eval "$ac_try") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22296 | ac_status=$? |
| 22297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22298 | (exit $ac_status); }; }; then |
| 22299 | ac_cv_header_stdc=yes |
| 22300 | else |
| 22301 | echo "$as_me: failed program was:" >&5 |
| 22302 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22303 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22304 | ac_cv_header_stdc=no |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22305 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22306 | |
| 22307 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22308 | |
| 22309 | if test $ac_cv_header_stdc = yes; then |
| 22310 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 22311 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22312 | /* confdefs.h. */ |
| 22313 | _ACEOF |
| 22314 | cat confdefs.h >>conftest.$ac_ext |
| 22315 | cat >>conftest.$ac_ext <<_ACEOF |
| 22316 | /* end confdefs.h. */ |
| 22317 | #include <string.h> |
| 22318 | |
| 22319 | _ACEOF |
| 22320 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 22321 | $EGREP "memchr" >/dev/null 2>&1; then |
| 22322 | : |
| 22323 | else |
| 22324 | ac_cv_header_stdc=no |
| 22325 | fi |
| 22326 | rm -f conftest* |
| 22327 | |
| 22328 | fi |
| 22329 | |
| 22330 | if test $ac_cv_header_stdc = yes; then |
| 22331 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 22332 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22333 | /* confdefs.h. */ |
| 22334 | _ACEOF |
| 22335 | cat confdefs.h >>conftest.$ac_ext |
| 22336 | cat >>conftest.$ac_ext <<_ACEOF |
| 22337 | /* end confdefs.h. */ |
| 22338 | #include <stdlib.h> |
| 22339 | |
| 22340 | _ACEOF |
| 22341 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 22342 | $EGREP "free" >/dev/null 2>&1; then |
| 22343 | : |
| 22344 | else |
| 22345 | ac_cv_header_stdc=no |
| 22346 | fi |
| 22347 | rm -f conftest* |
| 22348 | |
| 22349 | fi |
| 22350 | |
| 22351 | if test $ac_cv_header_stdc = yes; then |
| 22352 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 22353 | if test "$cross_compiling" = yes; then |
| 22354 | : |
| 22355 | else |
| 22356 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22357 | /* confdefs.h. */ |
| 22358 | _ACEOF |
| 22359 | cat confdefs.h >>conftest.$ac_ext |
| 22360 | cat >>conftest.$ac_ext <<_ACEOF |
| 22361 | /* end confdefs.h. */ |
| 22362 | #include <ctype.h> |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22363 | #include <stdlib.h> |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22364 | #if ((' ' & 0x0FF) == 0x020) |
| 22365 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 22366 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 22367 | #else |
| 22368 | # define ISLOWER(c) \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22369 | (('a' <= (c) && (c) <= 'i') \ |
| 22370 | || ('j' <= (c) && (c) <= 'r') \ |
| 22371 | || ('s' <= (c) && (c) <= 'z')) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22372 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 22373 | #endif |
| 22374 | |
| 22375 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 22376 | int |
| 22377 | main () |
| 22378 | { |
| 22379 | int i; |
| 22380 | for (i = 0; i < 256; i++) |
| 22381 | if (XOR (islower (i), ISLOWER (i)) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22382 | || toupper (i) != TOUPPER (i)) |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22383 | return 2; |
| 22384 | return 0; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22385 | } |
| 22386 | _ACEOF |
| 22387 | rm -f conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22388 | if { (ac_try="$ac_link" |
| 22389 | case "(($ac_try" in |
| 22390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22391 | *) ac_try_echo=$ac_try;; |
| 22392 | esac |
| 22393 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22394 | (eval "$ac_link") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22395 | ac_status=$? |
| 22396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22397 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22398 | { (case "(($ac_try" in |
| 22399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22400 | *) ac_try_echo=$ac_try;; |
| 22401 | esac |
| 22402 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22403 | (eval "$ac_try") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22404 | ac_status=$? |
| 22405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22406 | (exit $ac_status); }; }; then |
| 22407 | : |
| 22408 | else |
| 22409 | echo "$as_me: program exited with status $ac_status" >&5 |
| 22410 | echo "$as_me: failed program was:" >&5 |
| 22411 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22412 | |
| 22413 | ( exit $ac_status ) |
| 22414 | ac_cv_header_stdc=no |
| 22415 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22416 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 22417 | fi |
| 22418 | |
| 22419 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22420 | fi |
| 22421 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22422 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 22423 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22424 | if test $ac_cv_header_stdc = yes; then |
| 22425 | |
| 22426 | cat >>confdefs.h <<\_ACEOF |
| 22427 | #define STDC_HEADERS 1 |
| 22428 | _ACEOF |
| 22429 | |
| 22430 | fi |
| 22431 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22432 | |
Lev Walkin | 79f5495 | 2004-08-13 16:58:19 +0000 | [diff] [blame] | 22433 | for ac_header in sys/param.h |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22434 | do |
| 22435 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22436 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 22437 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 22438 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 22439 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22441 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22442 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 22443 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 22444 | echo "${ECHO_T}$ac_res" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22445 | else |
| 22446 | # Is the header compilable? |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22447 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 22448 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22449 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22450 | /* confdefs.h. */ |
| 22451 | _ACEOF |
| 22452 | cat confdefs.h >>conftest.$ac_ext |
| 22453 | cat >>conftest.$ac_ext <<_ACEOF |
| 22454 | /* end confdefs.h. */ |
| 22455 | $ac_includes_default |
| 22456 | #include <$ac_header> |
| 22457 | _ACEOF |
| 22458 | rm -f conftest.$ac_objext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22459 | if { (ac_try="$ac_compile" |
| 22460 | case "(($ac_try" in |
| 22461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22462 | *) ac_try_echo=$ac_try;; |
| 22463 | esac |
| 22464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22465 | (eval "$ac_compile") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22466 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22467 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22468 | rm -f conftest.er1 |
| 22469 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22471 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22472 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22473 | { (case "(($ac_try" in |
| 22474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22475 | *) ac_try_echo=$ac_try;; |
| 22476 | esac |
| 22477 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22478 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22479 | ac_status=$? |
| 22480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22481 | (exit $ac_status); }; } && |
| 22482 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22483 | { (case "(($ac_try" in |
| 22484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22485 | *) ac_try_echo=$ac_try;; |
| 22486 | esac |
| 22487 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22488 | (eval "$ac_try") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22489 | ac_status=$? |
| 22490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22491 | (exit $ac_status); }; }; then |
| 22492 | ac_header_compiler=yes |
| 22493 | else |
| 22494 | echo "$as_me: failed program was:" >&5 |
| 22495 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22496 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22497 | ac_header_compiler=no |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22498 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22499 | |
| 22500 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22501 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 22502 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22503 | |
| 22504 | # Is the header present? |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22505 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 22506 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22507 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22508 | /* confdefs.h. */ |
| 22509 | _ACEOF |
| 22510 | cat confdefs.h >>conftest.$ac_ext |
| 22511 | cat >>conftest.$ac_ext <<_ACEOF |
| 22512 | /* end confdefs.h. */ |
| 22513 | #include <$ac_header> |
| 22514 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22515 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 22516 | case "(($ac_try" in |
| 22517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22518 | *) ac_try_echo=$ac_try;; |
| 22519 | esac |
| 22520 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22521 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22522 | ac_status=$? |
| 22523 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22524 | rm -f conftest.er1 |
| 22525 | cat conftest.err >&5 |
| 22526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22527 | (exit $ac_status); } >/dev/null; then |
| 22528 | if test -s conftest.err; then |
| 22529 | ac_cpp_err=$ac_c_preproc_warn_flag |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22530 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22531 | else |
| 22532 | ac_cpp_err= |
| 22533 | fi |
| 22534 | else |
| 22535 | ac_cpp_err=yes |
| 22536 | fi |
| 22537 | if test -z "$ac_cpp_err"; then |
| 22538 | ac_header_preproc=yes |
| 22539 | else |
| 22540 | echo "$as_me: failed program was:" >&5 |
| 22541 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22542 | |
| 22543 | ac_header_preproc=no |
| 22544 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22545 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22546 | rm -f conftest.err conftest.$ac_ext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22547 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 22548 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22549 | |
| 22550 | # So? What about this header? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22551 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 22552 | yes:no: ) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22553 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 22554 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22555 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 22556 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 22557 | ac_header_preproc=yes |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22558 | ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22559 | no:yes:* ) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22560 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 22561 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22562 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 22563 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 22564 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 22565 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 22566 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 22567 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22568 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 22569 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22570 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 22571 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22572 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22573 | ;; |
| 22574 | esac |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22575 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 22576 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 22577 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22578 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22579 | else |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22580 | eval "$as_ac_Header=\$ac_header_preproc" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22581 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22582 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 22583 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 22584 | echo "${ECHO_T}$ac_res" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22585 | |
| 22586 | fi |
| 22587 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 22588 | cat >>confdefs.h <<_ACEOF |
| 22589 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 22590 | _ACEOF |
| 22591 | |
| 22592 | fi |
| 22593 | |
| 22594 | done |
| 22595 | |
| 22596 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22597 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 22598 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22599 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 22600 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22601 | else |
| 22602 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 22603 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22604 | /* confdefs.h. */ |
| 22605 | _ACEOF |
| 22606 | cat confdefs.h >>conftest.$ac_ext |
| 22607 | cat >>conftest.$ac_ext <<_ACEOF |
| 22608 | /* end confdefs.h. */ |
| 22609 | #include <sys/types.h> |
| 22610 | #include <sys/param.h> |
| 22611 | |
| 22612 | int |
| 22613 | main () |
| 22614 | { |
| 22615 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 22616 | bogus endian macros |
| 22617 | #endif |
| 22618 | |
| 22619 | ; |
| 22620 | return 0; |
| 22621 | } |
| 22622 | _ACEOF |
| 22623 | rm -f conftest.$ac_objext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22624 | if { (ac_try="$ac_compile" |
| 22625 | case "(($ac_try" in |
| 22626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22627 | *) ac_try_echo=$ac_try;; |
| 22628 | esac |
| 22629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22630 | (eval "$ac_compile") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22631 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22632 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22633 | rm -f conftest.er1 |
| 22634 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22636 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22637 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22638 | { (case "(($ac_try" in |
| 22639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22640 | *) ac_try_echo=$ac_try;; |
| 22641 | esac |
| 22642 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22643 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22644 | ac_status=$? |
| 22645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22646 | (exit $ac_status); }; } && |
| 22647 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22648 | { (case "(($ac_try" in |
| 22649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22650 | *) ac_try_echo=$ac_try;; |
| 22651 | esac |
| 22652 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22653 | (eval "$ac_try") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22654 | ac_status=$? |
| 22655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22656 | (exit $ac_status); }; }; then |
| 22657 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 22658 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22659 | /* confdefs.h. */ |
| 22660 | _ACEOF |
| 22661 | cat confdefs.h >>conftest.$ac_ext |
| 22662 | cat >>conftest.$ac_ext <<_ACEOF |
| 22663 | /* end confdefs.h. */ |
| 22664 | #include <sys/types.h> |
| 22665 | #include <sys/param.h> |
| 22666 | |
| 22667 | int |
| 22668 | main () |
| 22669 | { |
| 22670 | #if BYTE_ORDER != BIG_ENDIAN |
| 22671 | not big endian |
| 22672 | #endif |
| 22673 | |
| 22674 | ; |
| 22675 | return 0; |
| 22676 | } |
| 22677 | _ACEOF |
| 22678 | rm -f conftest.$ac_objext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22679 | if { (ac_try="$ac_compile" |
| 22680 | case "(($ac_try" in |
| 22681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22682 | *) ac_try_echo=$ac_try;; |
| 22683 | esac |
| 22684 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22685 | (eval "$ac_compile") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22686 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22687 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22688 | rm -f conftest.er1 |
| 22689 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22691 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22692 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22693 | { (case "(($ac_try" in |
| 22694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22695 | *) ac_try_echo=$ac_try;; |
| 22696 | esac |
| 22697 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22698 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22699 | ac_status=$? |
| 22700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22701 | (exit $ac_status); }; } && |
| 22702 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22703 | { (case "(($ac_try" in |
| 22704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22705 | *) ac_try_echo=$ac_try;; |
| 22706 | esac |
| 22707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22708 | (eval "$ac_try") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22709 | ac_status=$? |
| 22710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22711 | (exit $ac_status); }; }; then |
| 22712 | ac_cv_c_bigendian=yes |
| 22713 | else |
| 22714 | echo "$as_me: failed program was:" >&5 |
| 22715 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22716 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22717 | ac_cv_c_bigendian=no |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22718 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22719 | |
| 22720 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22721 | else |
| 22722 | echo "$as_me: failed program was:" >&5 |
| 22723 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22724 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22725 | # It does not; compile a test program. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22726 | if test "$cross_compiling" = yes; then |
| 22727 | # try to guess the endianness by grepping values into an object file |
| 22728 | ac_cv_c_bigendian=unknown |
| 22729 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22730 | /* confdefs.h. */ |
| 22731 | _ACEOF |
| 22732 | cat confdefs.h >>conftest.$ac_ext |
| 22733 | cat >>conftest.$ac_ext <<_ACEOF |
| 22734 | /* end confdefs.h. */ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22735 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 22736 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22737 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22738 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 22739 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22740 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 22741 | int |
| 22742 | main () |
| 22743 | { |
| 22744 | _ascii (); _ebcdic (); |
| 22745 | ; |
| 22746 | return 0; |
| 22747 | } |
| 22748 | _ACEOF |
| 22749 | rm -f conftest.$ac_objext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22750 | if { (ac_try="$ac_compile" |
| 22751 | case "(($ac_try" in |
| 22752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22753 | *) ac_try_echo=$ac_try;; |
| 22754 | esac |
| 22755 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22756 | (eval "$ac_compile") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22757 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22758 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22759 | rm -f conftest.er1 |
| 22760 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22762 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22763 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22764 | { (case "(($ac_try" in |
| 22765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22766 | *) ac_try_echo=$ac_try;; |
| 22767 | esac |
| 22768 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22769 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22770 | ac_status=$? |
| 22771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22772 | (exit $ac_status); }; } && |
| 22773 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22774 | { (case "(($ac_try" in |
| 22775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22776 | *) ac_try_echo=$ac_try;; |
| 22777 | esac |
| 22778 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22779 | (eval "$ac_try") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22780 | ac_status=$? |
| 22781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22782 | (exit $ac_status); }; }; then |
| 22783 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 22784 | ac_cv_c_bigendian=yes |
| 22785 | fi |
| 22786 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 22787 | if test "$ac_cv_c_bigendian" = unknown; then |
| 22788 | ac_cv_c_bigendian=no |
| 22789 | else |
| 22790 | # finding both strings is unlikely to happen, but who knows? |
| 22791 | ac_cv_c_bigendian=unknown |
| 22792 | fi |
| 22793 | fi |
| 22794 | else |
| 22795 | echo "$as_me: failed program was:" >&5 |
| 22796 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22797 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22798 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22799 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22800 | |
| 22801 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22802 | else |
| 22803 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22804 | /* confdefs.h. */ |
| 22805 | _ACEOF |
| 22806 | cat confdefs.h >>conftest.$ac_ext |
| 22807 | cat >>conftest.$ac_ext <<_ACEOF |
| 22808 | /* end confdefs.h. */ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22809 | $ac_includes_default |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22810 | int |
| 22811 | main () |
| 22812 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22813 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22814 | /* Are we little or big endian? From Harbison&Steele. */ |
| 22815 | union |
| 22816 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22817 | long int l; |
| 22818 | char c[sizeof (long int)]; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22819 | } u; |
| 22820 | u.l = 1; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22821 | return u.c[sizeof (long int) - 1] == 1; |
| 22822 | |
| 22823 | ; |
| 22824 | return 0; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22825 | } |
| 22826 | _ACEOF |
| 22827 | rm -f conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22828 | if { (ac_try="$ac_link" |
| 22829 | case "(($ac_try" in |
| 22830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22831 | *) ac_try_echo=$ac_try;; |
| 22832 | esac |
| 22833 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22834 | (eval "$ac_link") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22835 | ac_status=$? |
| 22836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22837 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22838 | { (case "(($ac_try" in |
| 22839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22840 | *) ac_try_echo=$ac_try;; |
| 22841 | esac |
| 22842 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22843 | (eval "$ac_try") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22844 | ac_status=$? |
| 22845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22846 | (exit $ac_status); }; }; then |
| 22847 | ac_cv_c_bigendian=no |
| 22848 | else |
| 22849 | echo "$as_me: program exited with status $ac_status" >&5 |
| 22850 | echo "$as_me: failed program was:" >&5 |
| 22851 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22852 | |
| 22853 | ( exit $ac_status ) |
| 22854 | ac_cv_c_bigendian=yes |
| 22855 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22856 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22857 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22858 | |
| 22859 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22860 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22861 | |
| 22862 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22863 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22864 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 22865 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22866 | case $ac_cv_c_bigendian in |
| 22867 | yes) |
| 22868 | |
| 22869 | cat >>confdefs.h <<\_ACEOF |
| 22870 | #define WORDS_BIGENDIAN 1 |
| 22871 | _ACEOF |
| 22872 | ;; |
| 22873 | no) |
| 22874 | ;; |
| 22875 | *) |
| 22876 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 22877 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 22878 | echo "$as_me: error: unknown endianness |
| 22879 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 22880 | { (exit 1); exit 1; }; } ;; |
| 22881 | esac |
| 22882 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22883 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
| 22884 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22885 | if test "${ac_cv_type_off_t+set}" = set; then |
| 22886 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22887 | else |
| 22888 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22889 | /* confdefs.h. */ |
| 22890 | _ACEOF |
| 22891 | cat confdefs.h >>conftest.$ac_ext |
| 22892 | cat >>conftest.$ac_ext <<_ACEOF |
| 22893 | /* end confdefs.h. */ |
| 22894 | $ac_includes_default |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22895 | typedef off_t ac__type_new_; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22896 | int |
| 22897 | main () |
| 22898 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22899 | if ((ac__type_new_ *) 0) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22900 | return 0; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22901 | if (sizeof (ac__type_new_)) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22902 | return 0; |
| 22903 | ; |
| 22904 | return 0; |
| 22905 | } |
| 22906 | _ACEOF |
| 22907 | rm -f conftest.$ac_objext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22908 | if { (ac_try="$ac_compile" |
| 22909 | case "(($ac_try" in |
| 22910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22911 | *) ac_try_echo=$ac_try;; |
| 22912 | esac |
| 22913 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22914 | (eval "$ac_compile") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22915 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22916 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22917 | rm -f conftest.er1 |
| 22918 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22920 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22921 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22922 | { (case "(($ac_try" in |
| 22923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22924 | *) ac_try_echo=$ac_try;; |
| 22925 | esac |
| 22926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22927 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22928 | ac_status=$? |
| 22929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22930 | (exit $ac_status); }; } && |
| 22931 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22932 | { (case "(($ac_try" in |
| 22933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22934 | *) ac_try_echo=$ac_try;; |
| 22935 | esac |
| 22936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22937 | (eval "$ac_try") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22938 | ac_status=$? |
| 22939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22940 | (exit $ac_status); }; }; then |
| 22941 | ac_cv_type_off_t=yes |
| 22942 | else |
| 22943 | echo "$as_me: failed program was:" >&5 |
| 22944 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22945 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22946 | ac_cv_type_off_t=no |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22947 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22948 | |
| 22949 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22950 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22951 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 22952 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22953 | if test $ac_cv_type_off_t = yes; then |
| 22954 | : |
| 22955 | else |
| 22956 | |
| 22957 | cat >>confdefs.h <<_ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22958 | #define off_t long int |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22959 | _ACEOF |
| 22960 | |
| 22961 | fi |
| 22962 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22963 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 22964 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22965 | if test "${ac_cv_type_size_t+set}" = set; then |
| 22966 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22967 | else |
| 22968 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22969 | /* confdefs.h. */ |
| 22970 | _ACEOF |
| 22971 | cat confdefs.h >>conftest.$ac_ext |
| 22972 | cat >>conftest.$ac_ext <<_ACEOF |
| 22973 | /* end confdefs.h. */ |
| 22974 | $ac_includes_default |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22975 | typedef size_t ac__type_new_; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22976 | int |
| 22977 | main () |
| 22978 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22979 | if ((ac__type_new_ *) 0) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22980 | return 0; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22981 | if (sizeof (ac__type_new_)) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22982 | return 0; |
| 22983 | ; |
| 22984 | return 0; |
| 22985 | } |
| 22986 | _ACEOF |
| 22987 | rm -f conftest.$ac_objext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22988 | if { (ac_try="$ac_compile" |
| 22989 | case "(($ac_try" in |
| 22990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22991 | *) ac_try_echo=$ac_try;; |
| 22992 | esac |
| 22993 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22994 | (eval "$ac_compile") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22995 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22996 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22997 | rm -f conftest.er1 |
| 22998 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23000 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23001 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 23002 | { (case "(($ac_try" in |
| 23003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23004 | *) ac_try_echo=$ac_try;; |
| 23005 | esac |
| 23006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23007 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23008 | ac_status=$? |
| 23009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23010 | (exit $ac_status); }; } && |
| 23011 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23012 | { (case "(($ac_try" in |
| 23013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23014 | *) ac_try_echo=$ac_try;; |
| 23015 | esac |
| 23016 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23017 | (eval "$ac_try") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23018 | ac_status=$? |
| 23019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23020 | (exit $ac_status); }; }; then |
| 23021 | ac_cv_type_size_t=yes |
| 23022 | else |
| 23023 | echo "$as_me: failed program was:" >&5 |
| 23024 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23025 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23026 | ac_cv_type_size_t=no |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23027 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23028 | |
| 23029 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23030 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23031 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 23032 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23033 | if test $ac_cv_type_size_t = yes; then |
| 23034 | : |
| 23035 | else |
| 23036 | |
| 23037 | cat >>confdefs.h <<_ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23038 | #define size_t unsigned int |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23039 | _ACEOF |
| 23040 | |
| 23041 | fi |
| 23042 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23043 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 23044 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23045 | if test "${ac_cv_struct_tm+set}" = set; then |
| 23046 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23047 | else |
| 23048 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23049 | /* confdefs.h. */ |
| 23050 | _ACEOF |
| 23051 | cat confdefs.h >>conftest.$ac_ext |
| 23052 | cat >>conftest.$ac_ext <<_ACEOF |
| 23053 | /* end confdefs.h. */ |
| 23054 | #include <sys/types.h> |
| 23055 | #include <time.h> |
| 23056 | |
| 23057 | int |
| 23058 | main () |
| 23059 | { |
| 23060 | struct tm *tp; tp->tm_sec; |
| 23061 | ; |
| 23062 | return 0; |
| 23063 | } |
| 23064 | _ACEOF |
| 23065 | rm -f conftest.$ac_objext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23066 | if { (ac_try="$ac_compile" |
| 23067 | case "(($ac_try" in |
| 23068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23069 | *) ac_try_echo=$ac_try;; |
| 23070 | esac |
| 23071 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23072 | (eval "$ac_compile") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23073 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23074 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23075 | rm -f conftest.er1 |
| 23076 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23078 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23079 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 23080 | { (case "(($ac_try" in |
| 23081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23082 | *) ac_try_echo=$ac_try;; |
| 23083 | esac |
| 23084 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23085 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23086 | ac_status=$? |
| 23087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23088 | (exit $ac_status); }; } && |
| 23089 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23090 | { (case "(($ac_try" in |
| 23091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23092 | *) ac_try_echo=$ac_try;; |
| 23093 | esac |
| 23094 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23095 | (eval "$ac_try") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23096 | ac_status=$? |
| 23097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23098 | (exit $ac_status); }; }; then |
| 23099 | ac_cv_struct_tm=time.h |
| 23100 | else |
| 23101 | echo "$as_me: failed program was:" >&5 |
| 23102 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23103 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23104 | ac_cv_struct_tm=sys/time.h |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23105 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23106 | |
| 23107 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23108 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23109 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 23110 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23111 | if test $ac_cv_struct_tm = sys/time.h; then |
| 23112 | |
| 23113 | cat >>confdefs.h <<\_ACEOF |
| 23114 | #define TM_IN_SYS_TIME 1 |
| 23115 | _ACEOF |
| 23116 | |
| 23117 | fi |
| 23118 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23119 | { echo "$as_me:$LINENO: checking for intmax_t" >&5 |
| 23120 | echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23121 | if test "${ac_cv_type_intmax_t+set}" = set; then |
| 23122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23123 | else |
| 23124 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23125 | /* confdefs.h. */ |
| 23126 | _ACEOF |
| 23127 | cat confdefs.h >>conftest.$ac_ext |
| 23128 | cat >>conftest.$ac_ext <<_ACEOF |
| 23129 | /* end confdefs.h. */ |
| 23130 | $ac_includes_default |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23131 | typedef intmax_t ac__type_new_; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23132 | int |
| 23133 | main () |
| 23134 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23135 | if ((ac__type_new_ *) 0) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23136 | return 0; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23137 | if (sizeof (ac__type_new_)) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23138 | return 0; |
| 23139 | ; |
| 23140 | return 0; |
| 23141 | } |
| 23142 | _ACEOF |
| 23143 | rm -f conftest.$ac_objext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23144 | if { (ac_try="$ac_compile" |
| 23145 | case "(($ac_try" in |
| 23146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23147 | *) ac_try_echo=$ac_try;; |
| 23148 | esac |
| 23149 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23150 | (eval "$ac_compile") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23151 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23152 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23153 | rm -f conftest.er1 |
| 23154 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23156 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23157 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 23158 | { (case "(($ac_try" in |
| 23159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23160 | *) ac_try_echo=$ac_try;; |
| 23161 | esac |
| 23162 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23163 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23164 | ac_status=$? |
| 23165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23166 | (exit $ac_status); }; } && |
| 23167 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23168 | { (case "(($ac_try" in |
| 23169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23170 | *) ac_try_echo=$ac_try;; |
| 23171 | esac |
| 23172 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23173 | (eval "$ac_try") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23174 | ac_status=$? |
| 23175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23176 | (exit $ac_status); }; }; then |
| 23177 | ac_cv_type_intmax_t=yes |
| 23178 | else |
| 23179 | echo "$as_me: failed program was:" >&5 |
| 23180 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23181 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23182 | ac_cv_type_intmax_t=no |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23183 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23184 | |
| 23185 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23186 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23187 | { echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5 |
| 23188 | echo "${ECHO_T}$ac_cv_type_intmax_t" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23189 | if test $ac_cv_type_intmax_t = yes; then |
| 23190 | : |
| 23191 | else |
| 23192 | |
| 23193 | cat >>confdefs.h <<_ACEOF |
| 23194 | #define intmax_t int64_t |
| 23195 | _ACEOF |
| 23196 | |
| 23197 | fi |
| 23198 | |
| 23199 | |
| 23200 | |
| 23201 | |
| 23202 | for ac_func in strtoimax strtoll |
| 23203 | do |
| 23204 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23205 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 23206 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 23207 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23209 | else |
| 23210 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23211 | /* confdefs.h. */ |
| 23212 | _ACEOF |
| 23213 | cat confdefs.h >>conftest.$ac_ext |
| 23214 | cat >>conftest.$ac_ext <<_ACEOF |
| 23215 | /* end confdefs.h. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23216 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 23217 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23218 | #define $ac_func innocuous_$ac_func |
| 23219 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23220 | /* System header to define __stub macros and hopefully few prototypes, |
| 23221 | which can conflict with char $ac_func (); below. |
| 23222 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 23223 | <limits.h> exists even on freestanding compilers. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23224 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23225 | #ifdef __STDC__ |
| 23226 | # include <limits.h> |
| 23227 | #else |
| 23228 | # include <assert.h> |
| 23229 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23230 | |
| 23231 | #undef $ac_func |
| 23232 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23233 | /* Override any GCC internal prototype to avoid an error. |
| 23234 | Use char because int might match the return type of a GCC |
| 23235 | builtin and then its argument prototype would still apply. */ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23236 | #ifdef __cplusplus |
| 23237 | extern "C" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23238 | #endif |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23239 | char $ac_func (); |
| 23240 | /* The GNU C library defines this for functions which it implements |
| 23241 | to always fail with ENOSYS. Some functions are actually named |
| 23242 | something starting with __ and the normal name is an alias. */ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23243 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23244 | choke me |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23245 | #endif |
| 23246 | |
| 23247 | int |
| 23248 | main () |
| 23249 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23250 | return $ac_func (); |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23251 | ; |
| 23252 | return 0; |
| 23253 | } |
| 23254 | _ACEOF |
| 23255 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23256 | if { (ac_try="$ac_link" |
| 23257 | case "(($ac_try" in |
| 23258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23259 | *) ac_try_echo=$ac_try;; |
| 23260 | esac |
| 23261 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23262 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23263 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23264 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23265 | rm -f conftest.er1 |
| 23266 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23268 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23269 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 23270 | { (case "(($ac_try" in |
| 23271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23272 | *) ac_try_echo=$ac_try;; |
| 23273 | esac |
| 23274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23275 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23276 | ac_status=$? |
| 23277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23278 | (exit $ac_status); }; } && |
| 23279 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23280 | { (case "(($ac_try" in |
| 23281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23282 | *) ac_try_echo=$ac_try;; |
| 23283 | esac |
| 23284 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23285 | (eval "$ac_try") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23286 | ac_status=$? |
| 23287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23288 | (exit $ac_status); }; }; then |
| 23289 | eval "$as_ac_var=yes" |
| 23290 | else |
| 23291 | echo "$as_me: failed program was:" >&5 |
| 23292 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23293 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23294 | eval "$as_ac_var=no" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23295 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23296 | |
| 23297 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23298 | conftest$ac_exeext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23299 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23300 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 23301 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 23302 | echo "${ECHO_T}$ac_res" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23303 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 23304 | cat >>confdefs.h <<_ACEOF |
| 23305 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 23306 | _ACEOF |
| 23307 | |
| 23308 | fi |
| 23309 | done |
| 23310 | |
| 23311 | |
Lev Walkin | 49b0a3e | 2004-06-28 21:22:35 +0000 | [diff] [blame] | 23312 | for ac_func in mergesort |
| 23313 | do |
| 23314 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23315 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 23316 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 23317 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Lev Walkin | 49b0a3e | 2004-06-28 21:22:35 +0000 | [diff] [blame] | 23318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23319 | else |
| 23320 | cat >conftest.$ac_ext <<_ACEOF |
| 23321 | /* confdefs.h. */ |
| 23322 | _ACEOF |
| 23323 | cat confdefs.h >>conftest.$ac_ext |
| 23324 | cat >>conftest.$ac_ext <<_ACEOF |
| 23325 | /* end confdefs.h. */ |
| 23326 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 23327 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23328 | #define $ac_func innocuous_$ac_func |
| 23329 | |
| 23330 | /* System header to define __stub macros and hopefully few prototypes, |
| 23331 | which can conflict with char $ac_func (); below. |
| 23332 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 23333 | <limits.h> exists even on freestanding compilers. */ |
| 23334 | |
| 23335 | #ifdef __STDC__ |
| 23336 | # include <limits.h> |
| 23337 | #else |
| 23338 | # include <assert.h> |
| 23339 | #endif |
| 23340 | |
| 23341 | #undef $ac_func |
| 23342 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23343 | /* Override any GCC internal prototype to avoid an error. |
| 23344 | Use char because int might match the return type of a GCC |
| 23345 | builtin and then its argument prototype would still apply. */ |
Lev Walkin | 49b0a3e | 2004-06-28 21:22:35 +0000 | [diff] [blame] | 23346 | #ifdef __cplusplus |
| 23347 | extern "C" |
Lev Walkin | 49b0a3e | 2004-06-28 21:22:35 +0000 | [diff] [blame] | 23348 | #endif |
Lev Walkin | 49b0a3e | 2004-06-28 21:22:35 +0000 | [diff] [blame] | 23349 | char $ac_func (); |
| 23350 | /* The GNU C library defines this for functions which it implements |
| 23351 | to always fail with ENOSYS. Some functions are actually named |
| 23352 | something starting with __ and the normal name is an alias. */ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23353 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Lev Walkin | 49b0a3e | 2004-06-28 21:22:35 +0000 | [diff] [blame] | 23354 | choke me |
Lev Walkin | 49b0a3e | 2004-06-28 21:22:35 +0000 | [diff] [blame] | 23355 | #endif |
| 23356 | |
| 23357 | int |
| 23358 | main () |
| 23359 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23360 | return $ac_func (); |
Lev Walkin | 49b0a3e | 2004-06-28 21:22:35 +0000 | [diff] [blame] | 23361 | ; |
| 23362 | return 0; |
| 23363 | } |
| 23364 | _ACEOF |
| 23365 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23366 | if { (ac_try="$ac_link" |
| 23367 | case "(($ac_try" in |
| 23368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23369 | *) ac_try_echo=$ac_try;; |
| 23370 | esac |
| 23371 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23372 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | 49b0a3e | 2004-06-28 21:22:35 +0000 | [diff] [blame] | 23373 | ac_status=$? |
| 23374 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23375 | rm -f conftest.er1 |
| 23376 | cat conftest.err >&5 |
| 23377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23378 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23379 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 23380 | { (case "(($ac_try" in |
| 23381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23382 | *) ac_try_echo=$ac_try;; |
| 23383 | esac |
| 23384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23385 | (eval "$ac_try") 2>&5 |
Lev Walkin | 49b0a3e | 2004-06-28 21:22:35 +0000 | [diff] [blame] | 23386 | ac_status=$? |
| 23387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23388 | (exit $ac_status); }; } && |
| 23389 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23390 | { (case "(($ac_try" in |
| 23391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23392 | *) ac_try_echo=$ac_try;; |
| 23393 | esac |
| 23394 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23395 | (eval "$ac_try") 2>&5 |
Lev Walkin | 49b0a3e | 2004-06-28 21:22:35 +0000 | [diff] [blame] | 23396 | ac_status=$? |
| 23397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23398 | (exit $ac_status); }; }; then |
| 23399 | eval "$as_ac_var=yes" |
| 23400 | else |
| 23401 | echo "$as_me: failed program was:" >&5 |
| 23402 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23403 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23404 | eval "$as_ac_var=no" |
Lev Walkin | 49b0a3e | 2004-06-28 21:22:35 +0000 | [diff] [blame] | 23405 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23406 | |
| 23407 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 49b0a3e | 2004-06-28 21:22:35 +0000 | [diff] [blame] | 23408 | conftest$ac_exeext conftest.$ac_ext |
| 23409 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23410 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 23411 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 23412 | echo "${ECHO_T}$ac_res" >&6; } |
Lev Walkin | 49b0a3e | 2004-06-28 21:22:35 +0000 | [diff] [blame] | 23413 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 23414 | cat >>confdefs.h <<_ACEOF |
| 23415 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 23416 | _ACEOF |
| 23417 | |
| 23418 | fi |
| 23419 | done |
| 23420 | |
| 23421 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23422 | for ac_func in mkstemps |
| 23423 | do |
| 23424 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 23425 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 23426 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 23427 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 23428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23429 | else |
| 23430 | cat >conftest.$ac_ext <<_ACEOF |
| 23431 | /* confdefs.h. */ |
| 23432 | _ACEOF |
| 23433 | cat confdefs.h >>conftest.$ac_ext |
| 23434 | cat >>conftest.$ac_ext <<_ACEOF |
| 23435 | /* end confdefs.h. */ |
| 23436 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 23437 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 23438 | #define $ac_func innocuous_$ac_func |
| 23439 | |
| 23440 | /* System header to define __stub macros and hopefully few prototypes, |
| 23441 | which can conflict with char $ac_func (); below. |
| 23442 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 23443 | <limits.h> exists even on freestanding compilers. */ |
| 23444 | |
| 23445 | #ifdef __STDC__ |
| 23446 | # include <limits.h> |
| 23447 | #else |
| 23448 | # include <assert.h> |
| 23449 | #endif |
| 23450 | |
| 23451 | #undef $ac_func |
| 23452 | |
| 23453 | /* Override any GCC internal prototype to avoid an error. |
| 23454 | Use char because int might match the return type of a GCC |
| 23455 | builtin and then its argument prototype would still apply. */ |
| 23456 | #ifdef __cplusplus |
| 23457 | extern "C" |
| 23458 | #endif |
| 23459 | char $ac_func (); |
| 23460 | /* The GNU C library defines this for functions which it implements |
| 23461 | to always fail with ENOSYS. Some functions are actually named |
| 23462 | something starting with __ and the normal name is an alias. */ |
| 23463 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 23464 | choke me |
| 23465 | #endif |
| 23466 | |
| 23467 | int |
| 23468 | main () |
| 23469 | { |
| 23470 | return $ac_func (); |
| 23471 | ; |
| 23472 | return 0; |
| 23473 | } |
| 23474 | _ACEOF |
| 23475 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23476 | if { (ac_try="$ac_link" |
| 23477 | case "(($ac_try" in |
| 23478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23479 | *) ac_try_echo=$ac_try;; |
| 23480 | esac |
| 23481 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23482 | (eval "$ac_link") 2>conftest.er1 |
| 23483 | ac_status=$? |
| 23484 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23485 | rm -f conftest.er1 |
| 23486 | cat conftest.err >&5 |
| 23487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23488 | (exit $ac_status); } && |
| 23489 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 23490 | { (case "(($ac_try" in |
| 23491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23492 | *) ac_try_echo=$ac_try;; |
| 23493 | esac |
| 23494 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23495 | (eval "$ac_try") 2>&5 |
| 23496 | ac_status=$? |
| 23497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23498 | (exit $ac_status); }; } && |
| 23499 | { ac_try='test -s conftest$ac_exeext' |
| 23500 | { (case "(($ac_try" in |
| 23501 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23502 | *) ac_try_echo=$ac_try;; |
| 23503 | esac |
| 23504 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23505 | (eval "$ac_try") 2>&5 |
| 23506 | ac_status=$? |
| 23507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23508 | (exit $ac_status); }; }; then |
| 23509 | eval "$as_ac_var=yes" |
| 23510 | else |
| 23511 | echo "$as_me: failed program was:" >&5 |
| 23512 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23513 | |
| 23514 | eval "$as_ac_var=no" |
| 23515 | fi |
| 23516 | |
| 23517 | rm -f core conftest.err conftest.$ac_objext \ |
| 23518 | conftest$ac_exeext conftest.$ac_ext |
| 23519 | fi |
| 23520 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 23521 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 23522 | echo "${ECHO_T}$ac_res" >&6; } |
| 23523 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 23524 | cat >>confdefs.h <<_ACEOF |
| 23525 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 23526 | _ACEOF |
| 23527 | |
| 23528 | fi |
| 23529 | done |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23530 | |
| 23531 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23532 | |
| 23533 | { echo "$as_me:$LINENO: checking for getopt in -liberty" >&5 |
| 23534 | echo $ECHO_N "checking for getopt in -liberty... $ECHO_C" >&6; } |
| 23535 | if test "${ac_cv_lib_iberty_getopt+set}" = set; then |
| 23536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23537 | else |
| 23538 | ac_check_lib_save_LIBS=$LIBS |
| 23539 | LIBS="-liberty $LIBS" |
| 23540 | cat >conftest.$ac_ext <<_ACEOF |
| 23541 | /* confdefs.h. */ |
| 23542 | _ACEOF |
| 23543 | cat confdefs.h >>conftest.$ac_ext |
| 23544 | cat >>conftest.$ac_ext <<_ACEOF |
| 23545 | /* end confdefs.h. */ |
| 23546 | |
| 23547 | /* Override any GCC internal prototype to avoid an error. |
| 23548 | Use char because int might match the return type of a GCC |
| 23549 | builtin and then its argument prototype would still apply. */ |
| 23550 | #ifdef __cplusplus |
| 23551 | extern "C" |
| 23552 | #endif |
| 23553 | char getopt (); |
| 23554 | int |
| 23555 | main () |
| 23556 | { |
| 23557 | return getopt (); |
| 23558 | ; |
| 23559 | return 0; |
| 23560 | } |
| 23561 | _ACEOF |
| 23562 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 23563 | if { (ac_try="$ac_link" |
| 23564 | case "(($ac_try" in |
| 23565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23566 | *) ac_try_echo=$ac_try;; |
| 23567 | esac |
| 23568 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23569 | (eval "$ac_link") 2>conftest.er1 |
| 23570 | ac_status=$? |
| 23571 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23572 | rm -f conftest.er1 |
| 23573 | cat conftest.err >&5 |
| 23574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23575 | (exit $ac_status); } && |
| 23576 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 23577 | { (case "(($ac_try" in |
| 23578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23579 | *) ac_try_echo=$ac_try;; |
| 23580 | esac |
| 23581 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23582 | (eval "$ac_try") 2>&5 |
| 23583 | ac_status=$? |
| 23584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23585 | (exit $ac_status); }; } && |
| 23586 | { ac_try='test -s conftest$ac_exeext' |
| 23587 | { (case "(($ac_try" in |
| 23588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23589 | *) ac_try_echo=$ac_try;; |
| 23590 | esac |
| 23591 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23592 | (eval "$ac_try") 2>&5 |
| 23593 | ac_status=$? |
| 23594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23595 | (exit $ac_status); }; }; then |
| 23596 | ac_cv_lib_iberty_getopt=yes |
| 23597 | else |
| 23598 | echo "$as_me: failed program was:" >&5 |
| 23599 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23600 | |
| 23601 | ac_cv_lib_iberty_getopt=no |
| 23602 | fi |
| 23603 | |
| 23604 | rm -f core conftest.err conftest.$ac_objext \ |
| 23605 | conftest$ac_exeext conftest.$ac_ext |
| 23606 | LIBS=$ac_check_lib_save_LIBS |
| 23607 | fi |
| 23608 | { echo "$as_me:$LINENO: result: $ac_cv_lib_iberty_getopt" >&5 |
| 23609 | echo "${ECHO_T}$ac_cv_lib_iberty_getopt" >&6; } |
| 23610 | if test $ac_cv_lib_iberty_getopt = yes; then |
| 23611 | cat >>confdefs.h <<_ACEOF |
| 23612 | #define HAVE_LIBIBERTY 1 |
| 23613 | _ACEOF |
| 23614 | |
| 23615 | LIBS="-liberty $LIBS" |
| 23616 | |
| 23617 | fi |
| 23618 | |
| 23619 | |
| 23620 | ac_config_headers="$ac_config_headers config.h" |
| 23621 | |
| 23622 | |
| 23623 | ac_config_files="$ac_config_files skeletons/standard-modules/Makefile skeletons/tests/Makefile libasn1compiler/Makefile libasn1parser/Makefile libasn1print/Makefile asn1c/webcgi/Makefile asn1c/tests/Makefile libasn1fix/Makefile skeletons/Makefile examples/Makefile tests/Makefile asn1c/Makefile doc/Makefile asn1c.spec Makefile" |
| 23624 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23625 | cat >confcache <<\_ACEOF |
| 23626 | # This file is a shell script that caches the results of configure |
| 23627 | # tests run on this system so they can be shared between configure |
| 23628 | # scripts and configure runs, see configure's option --config-cache. |
| 23629 | # It is not useful on other systems. If it contains results you don't |
| 23630 | # want to keep, you may remove or edit it. |
| 23631 | # |
| 23632 | # config.status only pays attention to the cache file if you give it |
| 23633 | # the --recheck option to rerun configure. |
| 23634 | # |
| 23635 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 23636 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 23637 | # following values. |
| 23638 | |
| 23639 | _ACEOF |
| 23640 | |
| 23641 | # The following way of writing the cache mishandles newlines in values, |
| 23642 | # but we know of no workaround that is simple, portable, and efficient. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23643 | # So, we kill variables containing newlines. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23644 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 23645 | # and sets the high bit in the cache file unless we assign to the vars. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23646 | ( |
| 23647 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 23648 | eval ac_val=\$$ac_var |
| 23649 | case $ac_val in #( |
| 23650 | *${as_nl}*) |
| 23651 | case $ac_var in #( |
| 23652 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 23653 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 23654 | esac |
| 23655 | case $ac_var in #( |
| 23656 | _ | IFS | as_nl) ;; #( |
| 23657 | *) $as_unset $ac_var ;; |
| 23658 | esac ;; |
| 23659 | esac |
| 23660 | done |
| 23661 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23662 | (set) 2>&1 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23663 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 23664 | *${as_nl}ac_space=\ *) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23665 | # `set' does not quote correctly, so add quotes (double-quote |
| 23666 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 23667 | sed -n \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23668 | "s/'/'\\\\''/g; |
| 23669 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23670 | ;; #( |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23671 | *) |
| 23672 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23673 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23674 | ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23675 | esac | |
| 23676 | sort |
| 23677 | ) | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23678 | sed ' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23679 | /^ac_cv_env_/b end |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23680 | t clear |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23681 | :clear |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23682 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 23683 | t end |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23684 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 23685 | :end' >>confcache |
| 23686 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 23687 | if test -w "$cache_file"; then |
| 23688 | test "x$cache_file" != "x/dev/null" && |
| 23689 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 23690 | echo "$as_me: updating cache $cache_file" >&6;} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23691 | cat confcache >$cache_file |
| 23692 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23693 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 23694 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23695 | fi |
| 23696 | fi |
| 23697 | rm -f confcache |
| 23698 | |
| 23699 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 23700 | # Let make expand exec_prefix. |
| 23701 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 23702 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23703 | DEFS=-DHAVE_CONFIG_H |
| 23704 | |
| 23705 | ac_libobjs= |
| 23706 | ac_ltlibobjs= |
| 23707 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 23708 | # 1. Remove the extension, and $U if already installed. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23709 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 23710 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 23711 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 23712 | # will be set to the directory where LIBOBJS objects are built. |
| 23713 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 23714 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23715 | done |
| 23716 | LIBOBJS=$ac_libobjs |
| 23717 | |
| 23718 | LTLIBOBJS=$ac_ltlibobjs |
| 23719 | |
| 23720 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23721 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
| 23722 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. |
| 23723 | Usually this means the macro was only invoked conditionally." >&5 |
| 23724 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. |
| 23725 | Usually this means the macro was only invoked conditionally." >&2;} |
| 23726 | { (exit 1); exit 1; }; } |
| 23727 | fi |
| 23728 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 23729 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
| 23730 | Usually this means the macro was only invoked conditionally." >&5 |
| 23731 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
| 23732 | Usually this means the macro was only invoked conditionally." >&2;} |
| 23733 | { (exit 1); exit 1; }; } |
| 23734 | fi |
| 23735 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 23736 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
| 23737 | Usually this means the macro was only invoked conditionally." >&5 |
| 23738 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
| 23739 | Usually this means the macro was only invoked conditionally." >&2;} |
| 23740 | { (exit 1); exit 1; }; } |
| 23741 | fi |
| 23742 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
| 23743 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
| 23744 | Usually this means the macro was only invoked conditionally." >&5 |
| 23745 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
| 23746 | Usually this means the macro was only invoked conditionally." >&2;} |
| 23747 | { (exit 1); exit 1; }; } |
| 23748 | fi |
| 23749 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 23750 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
| 23751 | Usually this means the macro was only invoked conditionally." >&5 |
| 23752 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
| 23753 | Usually this means the macro was only invoked conditionally." >&2;} |
| 23754 | { (exit 1); exit 1; }; } |
| 23755 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23756 | |
| 23757 | : ${CONFIG_STATUS=./config.status} |
| 23758 | ac_clean_files_save=$ac_clean_files |
| 23759 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 23760 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 23761 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 23762 | cat >$CONFIG_STATUS <<_ACEOF |
| 23763 | #! $SHELL |
| 23764 | # Generated by $as_me. |
| 23765 | # Run this file to recreate the current configuration. |
| 23766 | # Compiler output produced by configure, useful for debugging |
| 23767 | # configure, is in config.log if it exists. |
| 23768 | |
| 23769 | debug=false |
| 23770 | ac_cs_recheck=false |
| 23771 | ac_cs_silent=false |
| 23772 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 23773 | _ACEOF |
| 23774 | |
| 23775 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23776 | ## --------------------- ## |
| 23777 | ## M4sh Initialization. ## |
| 23778 | ## --------------------- ## |
| 23779 | |
| 23780 | # Be Bourne compatible |
| 23781 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 23782 | emulate sh |
| 23783 | NULLCMD=: |
| 23784 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 23785 | # is contrary to our usage. Disable this feature. |
| 23786 | alias -g '${1+"$@"}'='"$@"' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23787 | setopt NO_GLOB_SUBST |
| 23788 | else |
| 23789 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23790 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23791 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23792 | DUALCASE=1; export DUALCASE # for MKS sh |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23793 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23794 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23795 | # PATH needs CR |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23796 | # Avoid depending upon Character Ranges. |
| 23797 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 23798 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 23799 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 23800 | as_cr_digits='0123456789' |
| 23801 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 23802 | |
| 23803 | # The user is always right. |
| 23804 | if test "${PATH_SEPARATOR+set}" != set; then |
| 23805 | echo "#! /bin/sh" >conf$$.sh |
| 23806 | echo "exit 0" >>conf$$.sh |
| 23807 | chmod +x conf$$.sh |
| 23808 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 23809 | PATH_SEPARATOR=';' |
| 23810 | else |
| 23811 | PATH_SEPARATOR=: |
| 23812 | fi |
| 23813 | rm -f conf$$.sh |
| 23814 | fi |
| 23815 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23816 | # Support unset when possible. |
| 23817 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 23818 | as_unset=unset |
| 23819 | else |
| 23820 | as_unset=false |
| 23821 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23822 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23823 | |
| 23824 | # IFS |
| 23825 | # We need space, tab and new line, in precisely that order. Quoting is |
| 23826 | # there to prevent editors from complaining about space-tab. |
| 23827 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 23828 | # splitting by setting IFS to empty value.) |
| 23829 | as_nl=' |
| 23830 | ' |
| 23831 | IFS=" "" $as_nl" |
| 23832 | |
| 23833 | # Find who we are. Look in the path if we contain no directory separator. |
| 23834 | case $0 in |
| 23835 | *[\\/]* ) as_myself=$0 ;; |
| 23836 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23837 | for as_dir in $PATH |
| 23838 | do |
| 23839 | IFS=$as_save_IFS |
| 23840 | test -z "$as_dir" && as_dir=. |
| 23841 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 23842 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23843 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23844 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23845 | ;; |
| 23846 | esac |
| 23847 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 23848 | # in which case we are not to be found in the path. |
| 23849 | if test "x$as_myself" = x; then |
| 23850 | as_myself=$0 |
| 23851 | fi |
| 23852 | if test ! -f "$as_myself"; then |
| 23853 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 23854 | { (exit 1); exit 1; } |
| 23855 | fi |
| 23856 | |
| 23857 | # Work around bugs in pre-3.0 UWIN ksh. |
| 23858 | for as_var in ENV MAIL MAILPATH |
| 23859 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 23860 | done |
| 23861 | PS1='$ ' |
| 23862 | PS2='> ' |
| 23863 | PS4='+ ' |
| 23864 | |
| 23865 | # NLS nuisances. |
| 23866 | for as_var in \ |
| 23867 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 23868 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 23869 | LC_TELEPHONE LC_TIME |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23870 | do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23871 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 23872 | eval $as_var=C; export $as_var |
| 23873 | else |
| 23874 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 23875 | fi |
| 23876 | done |
| 23877 | |
| 23878 | # Required to use basename. |
| 23879 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 23880 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 23881 | as_expr=expr |
| 23882 | else |
| 23883 | as_expr=false |
| 23884 | fi |
| 23885 | |
| 23886 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 23887 | as_basename=basename |
| 23888 | else |
| 23889 | as_basename=false |
| 23890 | fi |
| 23891 | |
| 23892 | |
| 23893 | # Name of the executable. |
| 23894 | as_me=`$as_basename -- "$0" || |
| 23895 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 23896 | X"$0" : 'X\(//\)$' \| \ |
| 23897 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 23898 | echo X/"$0" | |
| 23899 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 23900 | s//\1/ |
| 23901 | q |
| 23902 | } |
| 23903 | /^X\/\(\/\/\)$/{ |
| 23904 | s//\1/ |
| 23905 | q |
| 23906 | } |
| 23907 | /^X\/\(\/\).*/{ |
| 23908 | s//\1/ |
| 23909 | q |
| 23910 | } |
| 23911 | s/.*/./; q'` |
| 23912 | |
| 23913 | # CDPATH. |
| 23914 | $as_unset CDPATH |
| 23915 | |
| 23916 | |
| 23917 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23918 | as_lineno_1=$LINENO |
| 23919 | as_lineno_2=$LINENO |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23920 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23921 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23922 | |
| 23923 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 23924 | # uniformly replaced by the line number. The first 'sed' inserts a |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23925 | # line-number line after each line using $LINENO; the second 'sed' |
| 23926 | # does the real work. The second script uses 'N' to pair each |
| 23927 | # line-number line with the line containing $LINENO, and appends |
| 23928 | # trailing '-' during substitution so that $LINENO is not a special |
| 23929 | # case at line end. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23930 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23931 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 23932 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 23933 | sed -n ' |
| 23934 | p |
| 23935 | /[$]LINENO/= |
| 23936 | ' <$as_myself | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23937 | sed ' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23938 | s/[$]LINENO.*/&-/ |
| 23939 | t lineno |
| 23940 | b |
| 23941 | :lineno |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23942 | N |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23943 | :loop |
| 23944 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23945 | t loop |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23946 | s/-\n.*// |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23947 | ' >$as_me.lineno && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23948 | chmod +x "$as_me.lineno" || |
| 23949 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23950 | { (exit 1); exit 1; }; } |
| 23951 | |
| 23952 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 23953 | # (the dirname of $[0] is not the place where we might find the |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23954 | # original and so on. Autoconf is especially sensitive to this). |
| 23955 | . "./$as_me.lineno" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23956 | # Exit status is that of the last command. |
| 23957 | exit |
| 23958 | } |
| 23959 | |
| 23960 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23961 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 23962 | as_dirname=dirname |
| 23963 | else |
| 23964 | as_dirname=false |
| 23965 | fi |
| 23966 | |
| 23967 | ECHO_C= ECHO_N= ECHO_T= |
| 23968 | case `echo -n x` in |
| 23969 | -n*) |
| 23970 | case `echo 'x\c'` in |
| 23971 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 23972 | *) ECHO_C='\c';; |
| 23973 | esac;; |
| 23974 | *) |
| 23975 | ECHO_N='-n';; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23976 | esac |
| 23977 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23978 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 23979 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23980 | as_expr=expr |
| 23981 | else |
| 23982 | as_expr=false |
| 23983 | fi |
| 23984 | |
| 23985 | rm -f conf$$ conf$$.exe conf$$.file |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23986 | if test -d conf$$.dir; then |
| 23987 | rm -f conf$$.dir/conf$$.file |
| 23988 | else |
| 23989 | rm -f conf$$.dir |
| 23990 | mkdir conf$$.dir |
| 23991 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23992 | echo >conf$$.file |
| 23993 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23994 | as_ln_s='ln -s' |
| 23995 | # ... but there are two gotchas: |
| 23996 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 23997 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 23998 | # In both cases, we have to default to `cp -p'. |
| 23999 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24000 | as_ln_s='cp -p' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24001 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 24002 | as_ln_s=ln |
| 24003 | else |
| 24004 | as_ln_s='cp -p' |
| 24005 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24006 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 24007 | rmdir conf$$.dir 2>/dev/null |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24008 | |
| 24009 | if mkdir -p . 2>/dev/null; then |
| 24010 | as_mkdir_p=: |
| 24011 | else |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 24012 | test -d ./-p && rmdir ./-p |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24013 | as_mkdir_p=false |
| 24014 | fi |
| 24015 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24016 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 24017 | # systems may use methods other than mode bits to determine executability. |
| 24018 | cat >conf$$.file <<_ASEOF |
| 24019 | #! /bin/sh |
| 24020 | exit 0 |
| 24021 | _ASEOF |
| 24022 | chmod +x conf$$.file |
| 24023 | if test -x conf$$.file >/dev/null 2>&1; then |
| 24024 | as_executable_p="test -x" |
| 24025 | else |
| 24026 | as_executable_p=: |
| 24027 | fi |
| 24028 | rm -f conf$$.file |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24029 | |
| 24030 | # Sed expression to map a string onto a valid CPP name. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 24031 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24032 | |
| 24033 | # Sed expression to map a string onto a valid variable name. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 24034 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24035 | |
| 24036 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24037 | exec 6>&1 |
| 24038 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24039 | # Save the log message, to keep $[0] and so on meaningful, and to |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24040 | # report actual input values of CONFIG_FILES etc. instead of their |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24041 | # values after options handling. |
| 24042 | ac_log=" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24043 | This file was extended by $as_me, which was |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24044 | generated by GNU Autoconf 2.60. Invocation command line was |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24045 | |
| 24046 | CONFIG_FILES = $CONFIG_FILES |
| 24047 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 24048 | CONFIG_LINKS = $CONFIG_LINKS |
| 24049 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 24050 | $ $0 $@ |
| 24051 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24052 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 24053 | " |
| 24054 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24055 | _ACEOF |
| 24056 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24057 | cat >>$CONFIG_STATUS <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24058 | # Files that config.status was made for. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24059 | config_files="$ac_config_files" |
| 24060 | config_headers="$ac_config_headers" |
| 24061 | config_commands="$ac_config_commands" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24062 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24063 | _ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24064 | |
| 24065 | cat >>$CONFIG_STATUS <<\_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24066 | ac_cs_usage="\ |
| 24067 | \`$as_me' instantiates files from templates according to the |
| 24068 | current configuration. |
| 24069 | |
| 24070 | Usage: $0 [OPTIONS] [FILE]... |
| 24071 | |
| 24072 | -h, --help print this help, then exit |
| 24073 | -V, --version print version number, then exit |
| 24074 | -q, --quiet do not print progress messages |
| 24075 | -d, --debug don't remove temporary files |
| 24076 | --recheck update $as_me by reconfiguring in the same conditions |
| 24077 | --file=FILE[:TEMPLATE] |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 24078 | instantiate the configuration file FILE |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24079 | --header=FILE[:TEMPLATE] |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 24080 | instantiate the configuration header FILE |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24081 | |
| 24082 | Configuration files: |
| 24083 | $config_files |
| 24084 | |
| 24085 | Configuration headers: |
| 24086 | $config_headers |
| 24087 | |
| 24088 | Configuration commands: |
| 24089 | $config_commands |
| 24090 | |
| 24091 | Report bugs to <bug-autoconf@gnu.org>." |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24092 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24093 | _ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24094 | cat >>$CONFIG_STATUS <<_ACEOF |
| 24095 | ac_cs_version="\\ |
| 24096 | config.status |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24097 | configured by $0, generated by GNU Autoconf 2.60, |
| 24098 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24099 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24100 | Copyright (C) 2006 Free Software Foundation, Inc. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24101 | This config.status script is free software; the Free Software Foundation |
| 24102 | gives unlimited permission to copy, distribute and modify it." |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24103 | |
| 24104 | ac_pwd='$ac_pwd' |
| 24105 | srcdir='$srcdir' |
| 24106 | INSTALL='$INSTALL' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24107 | _ACEOF |
| 24108 | |
| 24109 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 24110 | # If no file are specified by the user, then we need to provide default |
| 24111 | # value. By we need to know if files were specified by the user. |
| 24112 | ac_need_defaults=: |
| 24113 | while test $# != 0 |
| 24114 | do |
| 24115 | case $1 in |
| 24116 | --*=*) |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24117 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 24118 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24119 | ac_shift=: |
| 24120 | ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24121 | *) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24122 | ac_option=$1 |
| 24123 | ac_optarg=$2 |
| 24124 | ac_shift=shift |
| 24125 | ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24126 | esac |
| 24127 | |
| 24128 | case $ac_option in |
| 24129 | # Handling of the options. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24130 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 24131 | ac_cs_recheck=: ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24132 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 24133 | echo "$ac_cs_version"; exit ;; |
| 24134 | --debug | --debu | --deb | --de | --d | -d ) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24135 | debug=: ;; |
| 24136 | --file | --fil | --fi | --f ) |
| 24137 | $ac_shift |
| 24138 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 24139 | ac_need_defaults=false;; |
| 24140 | --header | --heade | --head | --hea ) |
| 24141 | $ac_shift |
| 24142 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
| 24143 | ac_need_defaults=false;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24144 | --he | --h) |
| 24145 | # Conflict between --help and --header |
| 24146 | { echo "$as_me: error: ambiguous option: $1 |
| 24147 | Try \`$0 --help' for more information." >&2 |
| 24148 | { (exit 1); exit 1; }; };; |
| 24149 | --help | --hel | -h ) |
| 24150 | echo "$ac_cs_usage"; exit ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24151 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 24152 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 24153 | ac_cs_silent=: ;; |
| 24154 | |
| 24155 | # This is an error. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24156 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 24157 | Try \`$0 --help' for more information." >&2 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24158 | { (exit 1); exit 1; }; } ;; |
| 24159 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24160 | *) ac_config_targets="$ac_config_targets $1" |
| 24161 | ac_need_defaults=false ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24162 | |
| 24163 | esac |
| 24164 | shift |
| 24165 | done |
| 24166 | |
| 24167 | ac_configure_extra_args= |
| 24168 | |
| 24169 | if $ac_cs_silent; then |
| 24170 | exec 6>/dev/null |
| 24171 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 24172 | fi |
| 24173 | |
| 24174 | _ACEOF |
| 24175 | cat >>$CONFIG_STATUS <<_ACEOF |
| 24176 | if \$ac_cs_recheck; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24177 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 24178 | CONFIG_SHELL=$SHELL |
| 24179 | export CONFIG_SHELL |
| 24180 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24181 | fi |
| 24182 | |
| 24183 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24184 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 24185 | exec 5>>config.log |
| 24186 | { |
| 24187 | echo |
| 24188 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 24189 | ## Running $as_me. ## |
| 24190 | _ASBOX |
| 24191 | echo "$ac_log" |
| 24192 | } >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24193 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24194 | _ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24195 | cat >>$CONFIG_STATUS <<_ACEOF |
| 24196 | # |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24197 | # INIT-COMMANDS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24198 | # |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 24199 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24200 | |
| 24201 | _ACEOF |
| 24202 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24203 | cat >>$CONFIG_STATUS <<\_ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24204 | |
| 24205 | # Handling of arguments. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24206 | for ac_config_target in $ac_config_targets |
| 24207 | do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24208 | case $ac_config_target in |
| 24209 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 24210 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
| 24211 | "skeletons/standard-modules/Makefile") CONFIG_FILES="$CONFIG_FILES skeletons/standard-modules/Makefile" ;; |
| 24212 | "skeletons/tests/Makefile") CONFIG_FILES="$CONFIG_FILES skeletons/tests/Makefile" ;; |
| 24213 | "libasn1compiler/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1compiler/Makefile" ;; |
| 24214 | "libasn1parser/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1parser/Makefile" ;; |
| 24215 | "libasn1print/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1print/Makefile" ;; |
| 24216 | "asn1c/webcgi/Makefile") CONFIG_FILES="$CONFIG_FILES asn1c/webcgi/Makefile" ;; |
| 24217 | "asn1c/tests/Makefile") CONFIG_FILES="$CONFIG_FILES asn1c/tests/Makefile" ;; |
| 24218 | "libasn1fix/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1fix/Makefile" ;; |
| 24219 | "skeletons/Makefile") CONFIG_FILES="$CONFIG_FILES skeletons/Makefile" ;; |
| 24220 | "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; |
| 24221 | "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; |
| 24222 | "asn1c/Makefile") CONFIG_FILES="$CONFIG_FILES asn1c/Makefile" ;; |
| 24223 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
| 24224 | "asn1c.spec") CONFIG_FILES="$CONFIG_FILES asn1c.spec" ;; |
| 24225 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 24226 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24227 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 24228 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 24229 | { (exit 1); exit 1; }; };; |
| 24230 | esac |
| 24231 | done |
| 24232 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24233 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24234 | # If the user did not use the arguments to specify the items to instantiate, |
| 24235 | # then the envvar interface is used. Set only those that are not. |
| 24236 | # We use the long form for the default assignment because of an extremely |
| 24237 | # bizarre bug on SunOS 4.1.3. |
| 24238 | if $ac_need_defaults; then |
| 24239 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 24240 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 24241 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 24242 | fi |
| 24243 | |
| 24244 | # Have a temporary directory for convenience. Make it in the build tree |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24245 | # simply because there is no reason against having it here, and in addition, |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24246 | # creating and moving files from /tmp can sometimes cause problems. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24247 | # Hook for its removal unless debugging. |
| 24248 | # Note that there is a small window in which the directory will not be cleaned: |
| 24249 | # after its creation but before its name has been assigned to `$tmp'. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24250 | $debug || |
| 24251 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24252 | tmp= |
| 24253 | trap 'exit_status=$? |
| 24254 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 24255 | ' 0 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24256 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 24257 | } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24258 | # Create a (secure) tmp directory for tmp files. |
| 24259 | |
| 24260 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24261 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24262 | test -n "$tmp" && test -d "$tmp" |
| 24263 | } || |
| 24264 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24265 | tmp=./conf$$-$RANDOM |
| 24266 | (umask 077 && mkdir "$tmp") |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24267 | } || |
| 24268 | { |
| 24269 | echo "$me: cannot create a temporary directory in ." >&2 |
| 24270 | { (exit 1); exit 1; } |
| 24271 | } |
| 24272 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24273 | # |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24274 | # Set up the sed scripts for CONFIG_FILES section. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24275 | # |
| 24276 | |
| 24277 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 24278 | # This happens for instance when ./config.status config.h |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24279 | if test -n "$CONFIG_FILES"; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24280 | |
| 24281 | _ACEOF |
| 24282 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24283 | |
| 24284 | |
| 24285 | ac_delim='%!_!# ' |
| 24286 | for ac_last_try in false false false false false :; do |
| 24287 | cat >conf$$subs.sed <<_ACEOF |
| 24288 | SHELL!$SHELL$ac_delim |
| 24289 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 24290 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 24291 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 24292 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 24293 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 24294 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 24295 | exec_prefix!$exec_prefix$ac_delim |
| 24296 | prefix!$prefix$ac_delim |
| 24297 | program_transform_name!$program_transform_name$ac_delim |
| 24298 | bindir!$bindir$ac_delim |
| 24299 | sbindir!$sbindir$ac_delim |
| 24300 | libexecdir!$libexecdir$ac_delim |
| 24301 | datarootdir!$datarootdir$ac_delim |
| 24302 | datadir!$datadir$ac_delim |
| 24303 | sysconfdir!$sysconfdir$ac_delim |
| 24304 | sharedstatedir!$sharedstatedir$ac_delim |
| 24305 | localstatedir!$localstatedir$ac_delim |
| 24306 | includedir!$includedir$ac_delim |
| 24307 | oldincludedir!$oldincludedir$ac_delim |
| 24308 | docdir!$docdir$ac_delim |
| 24309 | infodir!$infodir$ac_delim |
| 24310 | htmldir!$htmldir$ac_delim |
| 24311 | dvidir!$dvidir$ac_delim |
| 24312 | pdfdir!$pdfdir$ac_delim |
| 24313 | psdir!$psdir$ac_delim |
| 24314 | libdir!$libdir$ac_delim |
| 24315 | localedir!$localedir$ac_delim |
| 24316 | mandir!$mandir$ac_delim |
| 24317 | DEFS!$DEFS$ac_delim |
| 24318 | ECHO_C!$ECHO_C$ac_delim |
| 24319 | ECHO_N!$ECHO_N$ac_delim |
| 24320 | ECHO_T!$ECHO_T$ac_delim |
| 24321 | LIBS!$LIBS$ac_delim |
| 24322 | build_alias!$build_alias$ac_delim |
| 24323 | host_alias!$host_alias$ac_delim |
| 24324 | target_alias!$target_alias$ac_delim |
| 24325 | build!$build$ac_delim |
| 24326 | build_cpu!$build_cpu$ac_delim |
| 24327 | build_vendor!$build_vendor$ac_delim |
| 24328 | build_os!$build_os$ac_delim |
| 24329 | host!$host$ac_delim |
| 24330 | host_cpu!$host_cpu$ac_delim |
| 24331 | host_vendor!$host_vendor$ac_delim |
| 24332 | host_os!$host_os$ac_delim |
| 24333 | target!$target$ac_delim |
| 24334 | target_cpu!$target_cpu$ac_delim |
| 24335 | target_vendor!$target_vendor$ac_delim |
| 24336 | target_os!$target_os$ac_delim |
| 24337 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 24338 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 24339 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 24340 | CYGPATH_W!$CYGPATH_W$ac_delim |
| 24341 | PACKAGE!$PACKAGE$ac_delim |
| 24342 | VERSION!$VERSION$ac_delim |
| 24343 | ACLOCAL!$ACLOCAL$ac_delim |
| 24344 | AUTOCONF!$AUTOCONF$ac_delim |
| 24345 | AUTOMAKE!$AUTOMAKE$ac_delim |
| 24346 | AUTOHEADER!$AUTOHEADER$ac_delim |
| 24347 | MAKEINFO!$MAKEINFO$ac_delim |
| 24348 | install_sh!$install_sh$ac_delim |
| 24349 | STRIP!$STRIP$ac_delim |
| 24350 | INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim |
| 24351 | mkdir_p!$mkdir_p$ac_delim |
| 24352 | AWK!$AWK$ac_delim |
| 24353 | SET_MAKE!$SET_MAKE$ac_delim |
| 24354 | am__leading_dot!$am__leading_dot$ac_delim |
| 24355 | AMTAR!$AMTAR$ac_delim |
| 24356 | am__tar!$am__tar$ac_delim |
| 24357 | am__untar!$am__untar$ac_delim |
| 24358 | MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim |
| 24359 | MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim |
| 24360 | MAINT!$MAINT$ac_delim |
| 24361 | CC!$CC$ac_delim |
| 24362 | CFLAGS!$CFLAGS$ac_delim |
| 24363 | LDFLAGS!$LDFLAGS$ac_delim |
| 24364 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 24365 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 24366 | EXEEXT!$EXEEXT$ac_delim |
| 24367 | OBJEXT!$OBJEXT$ac_delim |
| 24368 | DEPDIR!$DEPDIR$ac_delim |
| 24369 | am__include!$am__include$ac_delim |
| 24370 | am__quote!$am__quote$ac_delim |
| 24371 | AMDEP_TRUE!$AMDEP_TRUE$ac_delim |
| 24372 | AMDEP_FALSE!$AMDEP_FALSE$ac_delim |
| 24373 | AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim |
| 24374 | CCDEPMODE!$CCDEPMODE$ac_delim |
| 24375 | am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim |
| 24376 | am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim |
| 24377 | GREP!$GREP$ac_delim |
| 24378 | EGREP!$EGREP$ac_delim |
| 24379 | LN_S!$LN_S$ac_delim |
| 24380 | ECHO!$ECHO$ac_delim |
| 24381 | AR!$AR$ac_delim |
| 24382 | RANLIB!$RANLIB$ac_delim |
| 24383 | CPP!$CPP$ac_delim |
| 24384 | CXX!$CXX$ac_delim |
| 24385 | _ACEOF |
| 24386 | |
| 24387 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
| 24388 | break |
| 24389 | elif $ac_last_try; then |
| 24390 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 24391 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 24392 | { (exit 1); exit 1; }; } |
| 24393 | else |
| 24394 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24395 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24396 | done |
| 24397 | |
| 24398 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 24399 | if test -n "$ac_eof"; then |
| 24400 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 24401 | ac_eof=`expr $ac_eof + 1` |
| 24402 | fi |
| 24403 | |
| 24404 | cat >>$CONFIG_STATUS <<_ACEOF |
| 24405 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 24406 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 24407 | _ACEOF |
| 24408 | sed ' |
| 24409 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 24410 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 24411 | :n |
| 24412 | t n |
| 24413 | s/'"$ac_delim"'$/,g/; t |
| 24414 | s/$/\\/; p |
| 24415 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 24416 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 24417 | rm -f conf$$subs.sed |
| 24418 | cat >>$CONFIG_STATUS <<_ACEOF |
| 24419 | CEOF$ac_eof |
| 24420 | _ACEOF |
| 24421 | |
| 24422 | |
| 24423 | ac_delim='%!_!# ' |
| 24424 | for ac_last_try in false false false false false :; do |
| 24425 | cat >conf$$subs.sed <<_ACEOF |
| 24426 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 24427 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 24428 | CXXDEPMODE!$CXXDEPMODE$ac_delim |
| 24429 | am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim |
| 24430 | am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim |
| 24431 | CXXCPP!$CXXCPP$ac_delim |
| 24432 | F77!$F77$ac_delim |
| 24433 | FFLAGS!$FFLAGS$ac_delim |
| 24434 | ac_ct_F77!$ac_ct_F77$ac_delim |
| 24435 | LIBTOOL!$LIBTOOL$ac_delim |
| 24436 | CONFIGURE_DEPENDS!$CONFIGURE_DEPENDS$ac_delim |
| 24437 | YACC!$YACC$ac_delim |
| 24438 | YFLAGS!$YFLAGS$ac_delim |
| 24439 | LEX!$LEX$ac_delim |
| 24440 | LEXLIB!$LEXLIB$ac_delim |
| 24441 | LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim |
| 24442 | ADD_CFLAGS!$ADD_CFLAGS$ac_delim |
| 24443 | LIBOBJS!$LIBOBJS$ac_delim |
| 24444 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 24445 | _ACEOF |
| 24446 | |
| 24447 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then |
| 24448 | break |
| 24449 | elif $ac_last_try; then |
| 24450 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 24451 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 24452 | { (exit 1); exit 1; }; } |
| 24453 | else |
| 24454 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 24455 | fi |
| 24456 | done |
| 24457 | |
| 24458 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 24459 | if test -n "$ac_eof"; then |
| 24460 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 24461 | ac_eof=`expr $ac_eof + 1` |
| 24462 | fi |
| 24463 | |
| 24464 | cat >>$CONFIG_STATUS <<_ACEOF |
| 24465 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 24466 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 24467 | _ACEOF |
| 24468 | sed ' |
| 24469 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 24470 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 24471 | :n |
| 24472 | t n |
| 24473 | s/'"$ac_delim"'$/,g/; t |
| 24474 | s/$/\\/; p |
| 24475 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 24476 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 24477 | rm -f conf$$subs.sed |
| 24478 | cat >>$CONFIG_STATUS <<_ACEOF |
| 24479 | :end |
| 24480 | s/|#_!!_#|//g |
| 24481 | CEOF$ac_eof |
| 24482 | _ACEOF |
| 24483 | |
| 24484 | |
| 24485 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 24486 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 24487 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 24488 | # (actually we leave an empty line to preserve line numbers). |
| 24489 | if test "x$srcdir" = x.; then |
| 24490 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 24491 | s/:*\$(srcdir):*/:/ |
| 24492 | s/:*\${srcdir}:*/:/ |
| 24493 | s/:*@srcdir@:*/:/ |
| 24494 | s/^\([^=]*=[ ]*\):*/\1/ |
| 24495 | s/:*$// |
| 24496 | s/^[^=]*=[ ]*$// |
| 24497 | }' |
| 24498 | fi |
| 24499 | |
| 24500 | cat >>$CONFIG_STATUS <<\_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24501 | fi # test -n "$CONFIG_FILES" |
| 24502 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24503 | |
| 24504 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
| 24505 | do |
| 24506 | case $ac_tag in |
| 24507 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 24508 | esac |
| 24509 | case $ac_mode$ac_tag in |
| 24510 | :[FHL]*:*);; |
| 24511 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 24512 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 24513 | { (exit 1); exit 1; }; };; |
| 24514 | :[FH]-) ac_tag=-:-;; |
| 24515 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 24516 | esac |
| 24517 | ac_save_IFS=$IFS |
| 24518 | IFS=: |
| 24519 | set x $ac_tag |
| 24520 | IFS=$ac_save_IFS |
| 24521 | shift |
| 24522 | ac_file=$1 |
| 24523 | shift |
| 24524 | |
| 24525 | case $ac_mode in |
| 24526 | :L) ac_source=$1;; |
| 24527 | :[FH]) |
| 24528 | ac_file_inputs= |
| 24529 | for ac_f |
| 24530 | do |
| 24531 | case $ac_f in |
| 24532 | -) ac_f="$tmp/stdin";; |
| 24533 | *) # Look for the file first in the build tree, then in the source tree |
| 24534 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 24535 | # because $ac_f cannot contain `:'. |
| 24536 | test -f "$ac_f" || |
| 24537 | case $ac_f in |
| 24538 | [\\/$]*) false;; |
| 24539 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 24540 | esac || |
| 24541 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 24542 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 24543 | { (exit 1); exit 1; }; };; |
| 24544 | esac |
| 24545 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 24546 | done |
| 24547 | |
| 24548 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 24549 | # use $as_me), people would be surprised to read: |
| 24550 | # /* config.h. Generated by config.status. */ |
| 24551 | configure_input="Generated from "`IFS=: |
| 24552 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 24553 | if test x"$ac_file" != x-; then |
| 24554 | configure_input="$ac_file. $configure_input" |
| 24555 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 24556 | echo "$as_me: creating $ac_file" >&6;} |
| 24557 | fi |
| 24558 | |
| 24559 | case $ac_tag in |
| 24560 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 24561 | esac |
| 24562 | ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24563 | esac |
| 24564 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24565 | ac_dir=`$as_dirname -- "$ac_file" || |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24566 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 24567 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 24568 | X"$ac_file" : 'X\(//\)$' \| \ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24569 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24570 | echo X"$ac_file" | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24571 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 24572 | s//\1/ |
| 24573 | q |
| 24574 | } |
| 24575 | /^X\(\/\/\)[^/].*/{ |
| 24576 | s//\1/ |
| 24577 | q |
| 24578 | } |
| 24579 | /^X\(\/\/\)$/{ |
| 24580 | s//\1/ |
| 24581 | q |
| 24582 | } |
| 24583 | /^X\(\/\).*/{ |
| 24584 | s//\1/ |
| 24585 | q |
| 24586 | } |
| 24587 | s/.*/./; q'` |
| 24588 | { as_dir="$ac_dir" |
| 24589 | case $as_dir in #( |
| 24590 | -*) as_dir=./$as_dir;; |
| 24591 | esac |
| 24592 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24593 | as_dirs= |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24594 | while :; do |
| 24595 | case $as_dir in #( |
| 24596 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 24597 | *) as_qdir=$as_dir;; |
| 24598 | esac |
| 24599 | as_dirs="'$as_qdir' $as_dirs" |
| 24600 | as_dir=`$as_dirname -- "$as_dir" || |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24601 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 24602 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 24603 | X"$as_dir" : 'X\(//\)$' \| \ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24604 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24605 | echo X"$as_dir" | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24606 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 24607 | s//\1/ |
| 24608 | q |
| 24609 | } |
| 24610 | /^X\(\/\/\)[^/].*/{ |
| 24611 | s//\1/ |
| 24612 | q |
| 24613 | } |
| 24614 | /^X\(\/\/\)$/{ |
| 24615 | s//\1/ |
| 24616 | q |
| 24617 | } |
| 24618 | /^X\(\/\).*/{ |
| 24619 | s//\1/ |
| 24620 | q |
| 24621 | } |
| 24622 | s/.*/./; q'` |
| 24623 | test -d "$as_dir" && break |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24624 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24625 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 24626 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 24627 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24628 | { (exit 1); exit 1; }; }; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24629 | ac_builddir=. |
| 24630 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24631 | case "$ac_dir" in |
| 24632 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 24633 | *) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24634 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24635 | # A ".." for each directory in $ac_dir_suffix. |
| 24636 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 24637 | case $ac_top_builddir_sub in |
| 24638 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 24639 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 24640 | esac ;; |
| 24641 | esac |
| 24642 | ac_abs_top_builddir=$ac_pwd |
| 24643 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 24644 | # for backward compatibility: |
| 24645 | ac_top_builddir=$ac_top_build_prefix |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24646 | |
| 24647 | case $srcdir in |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24648 | .) # We are building in place. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24649 | ac_srcdir=. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24650 | ac_top_srcdir=$ac_top_builddir_sub |
| 24651 | ac_abs_top_srcdir=$ac_pwd ;; |
| 24652 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24653 | ac_srcdir=$srcdir$ac_dir_suffix; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24654 | ac_top_srcdir=$srcdir |
| 24655 | ac_abs_top_srcdir=$srcdir ;; |
| 24656 | *) # Relative name. |
| 24657 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 24658 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 24659 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24660 | esac |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24661 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 24662 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24663 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24664 | case $ac_mode in |
| 24665 | :F) |
| 24666 | # |
| 24667 | # CONFIG_FILE |
| 24668 | # |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24669 | |
| 24670 | case $INSTALL in |
| 24671 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24672 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24673 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24674 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24675 | |
| 24676 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 24677 | # If the template does not know about datarootdir, expand it. |
| 24678 | # FIXME: This hack should be removed a few years after 2.60. |
| 24679 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 24680 | |
| 24681 | case `sed -n '/datarootdir/ { |
| 24682 | p |
| 24683 | q |
| 24684 | } |
| 24685 | /@datadir@/p |
| 24686 | /@docdir@/p |
| 24687 | /@infodir@/p |
| 24688 | /@localedir@/p |
| 24689 | /@mandir@/p |
| 24690 | ' $ac_file_inputs` in |
| 24691 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 24692 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 24693 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 24694 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 24695 | _ACEOF |
| 24696 | cat >>$CONFIG_STATUS <<_ACEOF |
| 24697 | ac_datarootdir_hack=' |
| 24698 | s&@datadir@&$datadir&g |
| 24699 | s&@docdir@&$docdir&g |
| 24700 | s&@infodir@&$infodir&g |
| 24701 | s&@localedir@&$localedir&g |
| 24702 | s&@mandir@&$mandir&g |
| 24703 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 24704 | esac |
| 24705 | _ACEOF |
| 24706 | |
| 24707 | # Neutralize VPATH when `$srcdir' = `.'. |
| 24708 | # Shell code in configure.ac might set extrasub. |
| 24709 | # FIXME: do we really want to maintain this feature? |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24710 | cat >>$CONFIG_STATUS <<_ACEOF |
| 24711 | sed "$ac_vpsub |
| 24712 | $extrasub |
| 24713 | _ACEOF |
| 24714 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 24715 | :t |
| 24716 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24717 | s&@configure_input@&$configure_input&;t t |
| 24718 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 24719 | s&@srcdir@&$ac_srcdir&;t t |
| 24720 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 24721 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 24722 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 24723 | s&@builddir@&$ac_builddir&;t t |
| 24724 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 24725 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 24726 | s&@INSTALL@&$ac_INSTALL&;t t |
| 24727 | $ac_datarootdir_hack |
| 24728 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24729 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24730 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 24731 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 24732 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 24733 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 24734 | which seems to be undefined. Please make sure it is defined." >&5 |
| 24735 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 24736 | which seems to be undefined. Please make sure it is defined." >&2;} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24737 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24738 | rm -f "$tmp/stdin" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24739 | case $ac_file in |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24740 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 24741 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24742 | esac |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24743 | ;; |
| 24744 | :H) |
| 24745 | # |
| 24746 | # CONFIG_HEADER |
| 24747 | # |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24748 | _ACEOF |
| 24749 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24750 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 24751 | # substitutes the proper values into config.h.in to produce config.h. |
| 24752 | rm -f conftest.defines conftest.tail |
| 24753 | # First, append a space to every undef/define line, to ease matching. |
| 24754 | echo 's/$/ /' >conftest.defines |
| 24755 | # Then, protect against being on the right side of a sed subst, or in |
| 24756 | # an unquoted here document, in config.status. If some macros were |
| 24757 | # called several times there might be several #defines for the same |
| 24758 | # symbol, which is useless. But do not sort them, since the last |
| 24759 | # AC_DEFINE must be honored. |
| 24760 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 24761 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 24762 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 24763 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 24764 | # just an empty string. |
| 24765 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 24766 | ac_dB='\\)[ (].*,\\1define\\2' |
| 24767 | ac_dC=' ' |
| 24768 | ac_dD=' ,' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24769 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24770 | uniq confdefs.h | |
| 24771 | sed -n ' |
| 24772 | t rset |
| 24773 | :rset |
| 24774 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 24775 | t ok |
| 24776 | d |
| 24777 | :ok |
| 24778 | s/[\\&,]/\\&/g |
| 24779 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 24780 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 24781 | ' >>conftest.defines |
| 24782 | |
| 24783 | # Remove the space that was appended to ease matching. |
| 24784 | # Then replace #undef with comments. This is necessary, for |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24785 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 24786 | # on some systems where configure will not decide to define it. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24787 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 24788 | echo 's/ $// |
| 24789 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24790 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24791 | # Break up conftest.defines: |
| 24792 | ac_max_sed_lines=50 |
| 24793 | |
| 24794 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 24795 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 24796 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 24797 | # et cetera. |
| 24798 | ac_in='$ac_file_inputs' |
| 24799 | ac_out='"$tmp/out1"' |
| 24800 | ac_nxt='"$tmp/out2"' |
| 24801 | |
| 24802 | while : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24803 | do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24804 | # Write a here document: |
| 24805 | cat >>$CONFIG_STATUS <<_ACEOF |
| 24806 | # First, check the format of the line: |
| 24807 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 24808 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 24809 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 24810 | b |
| 24811 | :def |
| 24812 | _ACEOF |
| 24813 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24814 | echo 'CEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24815 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 24816 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 24817 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 24818 | grep . conftest.tail >/dev/null || break |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24819 | rm -f conftest.defines |
| 24820 | mv conftest.tail conftest.defines |
| 24821 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24822 | rm -f conftest.defines conftest.tail |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24823 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24824 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24825 | cat >>$CONFIG_STATUS <<\_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24826 | if test x"$ac_file" != x-; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24827 | echo "/* $configure_input */" >"$tmp/config.h" |
| 24828 | cat "$ac_result" >>"$tmp/config.h" |
| 24829 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24830 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 24831 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 24832 | else |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24833 | rm -f $ac_file |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24834 | mv "$tmp/config.h" $ac_file |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24835 | fi |
| 24836 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24837 | echo "/* $configure_input */" |
| 24838 | cat "$ac_result" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24839 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24840 | rm -f "$tmp/out12" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 24841 | # Compute $ac_file's index in $config_headers. |
| 24842 | _am_stamp_count=1 |
| 24843 | for _am_header in $config_headers :; do |
| 24844 | case $_am_header in |
| 24845 | $ac_file | $ac_file:* ) |
| 24846 | break ;; |
| 24847 | * ) |
| 24848 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24849 | esac |
| 24850 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24851 | echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 24852 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 24853 | X$ac_file : 'X\(//\)[^/]' \| \ |
| 24854 | X$ac_file : 'X\(//\)$' \| \ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24855 | X$ac_file : 'X\(/\)' \| . 2>/dev/null || |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 24856 | echo X$ac_file | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24857 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 24858 | s//\1/ |
| 24859 | q |
| 24860 | } |
| 24861 | /^X\(\/\/\)[^/].*/{ |
| 24862 | s//\1/ |
| 24863 | q |
| 24864 | } |
| 24865 | /^X\(\/\/\)$/{ |
| 24866 | s//\1/ |
| 24867 | q |
| 24868 | } |
| 24869 | /^X\(\/\).*/{ |
| 24870 | s//\1/ |
| 24871 | q |
| 24872 | } |
| 24873 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 24874 | ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24875 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24876 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 24877 | echo "$as_me: executing $ac_file commands" >&6;} |
| 24878 | ;; |
| 24879 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24880 | |
| 24881 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24882 | case $ac_file$ac_mode in |
| 24883 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 24884 | # Strip MF so we end up with the name of the file. |
| 24885 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 24886 | # Check whether this is an Automake generated Makefile or not. |
| 24887 | # We used to match only the files named `Makefile.in', but |
| 24888 | # some people rename them; so instead we look at the file content. |
| 24889 | # Grep'ing the first line is not enough: some people post-process |
| 24890 | # each Makefile.in and add a new line on top of each file to say so. |
| 24891 | # So let's grep whole file. |
| 24892 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24893 | dirpart=`$as_dirname -- "$mf" || |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 24894 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 24895 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 24896 | X"$mf" : 'X\(//\)$' \| \ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24897 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 24898 | echo X"$mf" | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24899 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 24900 | s//\1/ |
| 24901 | q |
| 24902 | } |
| 24903 | /^X\(\/\/\)[^/].*/{ |
| 24904 | s//\1/ |
| 24905 | q |
| 24906 | } |
| 24907 | /^X\(\/\/\)$/{ |
| 24908 | s//\1/ |
| 24909 | q |
| 24910 | } |
| 24911 | /^X\(\/\).*/{ |
| 24912 | s//\1/ |
| 24913 | q |
| 24914 | } |
| 24915 | s/.*/./; q'` |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 24916 | else |
| 24917 | continue |
| 24918 | fi |
Lev Walkin | c46b7cb | 2006-08-18 02:27:55 +0000 | [diff] [blame] | 24919 | # Extract the definition of DEPDIR, am__include, and am__quote |
| 24920 | # from the Makefile without running `make'. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 24921 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24922 | test -z "$DEPDIR" && continue |
Lev Walkin | c46b7cb | 2006-08-18 02:27:55 +0000 | [diff] [blame] | 24923 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 24924 | test -z "am__include" && continue |
| 24925 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24926 | # When using ansi2knr, U may be empty or an underscore; expand it |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 24927 | U=`sed -n 's/^U = //p' < "$mf"` |
Lev Walkin | c46b7cb | 2006-08-18 02:27:55 +0000 | [diff] [blame] | 24928 | # Find all dependency output files, they are included files with |
| 24929 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 24930 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 24931 | # expansion. |
| 24932 | for file in `sed -n " |
| 24933 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24934 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 24935 | # Make sure the directory exists. |
| 24936 | test -f "$dirpart/$file" && continue |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24937 | fdir=`$as_dirname -- "$file" || |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 24938 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 24939 | X"$file" : 'X\(//\)[^/]' \| \ |
| 24940 | X"$file" : 'X\(//\)$' \| \ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24941 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 24942 | echo X"$file" | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24943 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 24944 | s//\1/ |
| 24945 | q |
| 24946 | } |
| 24947 | /^X\(\/\/\)[^/].*/{ |
| 24948 | s//\1/ |
| 24949 | q |
| 24950 | } |
| 24951 | /^X\(\/\/\)$/{ |
| 24952 | s//\1/ |
| 24953 | q |
| 24954 | } |
| 24955 | /^X\(\/\).*/{ |
| 24956 | s//\1/ |
| 24957 | q |
| 24958 | } |
| 24959 | s/.*/./; q'` |
| 24960 | { as_dir=$dirpart/$fdir |
| 24961 | case $as_dir in #( |
| 24962 | -*) as_dir=./$as_dir;; |
| 24963 | esac |
| 24964 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 24965 | as_dirs= |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24966 | while :; do |
| 24967 | case $as_dir in #( |
| 24968 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 24969 | *) as_qdir=$as_dir;; |
| 24970 | esac |
| 24971 | as_dirs="'$as_qdir' $as_dirs" |
| 24972 | as_dir=`$as_dirname -- "$as_dir" || |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 24973 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 24974 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 24975 | X"$as_dir" : 'X\(//\)$' \| \ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24976 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 24977 | echo X"$as_dir" | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24978 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 24979 | s//\1/ |
| 24980 | q |
| 24981 | } |
| 24982 | /^X\(\/\/\)[^/].*/{ |
| 24983 | s//\1/ |
| 24984 | q |
| 24985 | } |
| 24986 | /^X\(\/\/\)$/{ |
| 24987 | s//\1/ |
| 24988 | q |
| 24989 | } |
| 24990 | /^X\(\/\).*/{ |
| 24991 | s//\1/ |
| 24992 | q |
| 24993 | } |
| 24994 | s/.*/./; q'` |
| 24995 | test -d "$as_dir" && break |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 24996 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24997 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 24998 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 24999 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 25000 | { (exit 1); exit 1; }; }; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 25001 | # echo "creating $dirpart/$file" |
| 25002 | echo '# dummy' > "$dirpart/$file" |
| 25003 | done |
| 25004 | done |
| 25005 | ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 25006 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 25007 | esac |
| 25008 | done # for ac_tag |
| 25009 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 25010 | |
| 25011 | { (exit 0); exit 0; } |
| 25012 | _ACEOF |
| 25013 | chmod +x $CONFIG_STATUS |
| 25014 | ac_clean_files=$ac_clean_files_save |
| 25015 | |
| 25016 | |
| 25017 | # configure is writing to config.log, and then calls config.status. |
| 25018 | # config.status does its own redirection, appending to config.log. |
| 25019 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 25020 | # by configure, so config.status won't be able to write to it; its |
| 25021 | # output is simply discarded. So we exec the FD to /dev/null, |
| 25022 | # effectively closing config.log, so it can be properly (re)opened and |
| 25023 | # appended to by config.status. When coming back to configure, we |
| 25024 | # need to make the FD available again. |
| 25025 | if test "$no_create" != yes; then |
| 25026 | ac_cs_success=: |
| 25027 | ac_config_status_args= |
| 25028 | test "$silent" = yes && |
| 25029 | ac_config_status_args="$ac_config_status_args --quiet" |
| 25030 | exec 5>/dev/null |
| 25031 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 25032 | exec 5>>config.log |
| 25033 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 25034 | # would make configure fail if this is the last instruction. |
| 25035 | $ac_cs_success || { (exit 1); exit 1; } |
| 25036 | fi |
| 25037 | |
| 25038 | |