vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.60. |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4 | # |
vlm | 83b901d | 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. |
vlm | fa67ddc | 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+"$@"}'='"$@"' |
vlm | 83b901d | 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 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 25 | DUALCASE=1; export DUALCASE # for MKS sh |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 26 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 27 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 28 | # PATH needs CR |
vlm | fa67ddc | 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 | |
vlm | 83b901d | 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 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 55 | |
vlm | 83b901d | 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 |
vlm | fa67ddc | 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 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 76 | IFS=$as_save_IFS |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 77 | |
vlm | 83b901d | 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 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 108 | fi |
vlm | 83b901d | 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= |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
vlm | 83b901d | 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 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 219 | do |
| 220 | IFS=$as_save_IFS |
| 221 | test -z "$as_dir" && as_dir=. |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 222 | case $as_dir in |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 223 | /*) |
vlm | 83b901d | 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 | ( |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 322 | as_lineno_1=$LINENO |
| 323 | as_lineno_2=$LINENO |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 324 | test "x$as_lineno_1" != "x$as_lineno_2" && |
vlm | 83b901d | 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" || { |
vlm | fa67ddc | 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 |
vlm | 83b901d | 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. |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 429 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
vlm | 83b901d | 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 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 436 | sed ' |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 437 | s/[$]LINENO.*/&-/ |
| 438 | t lineno |
| 439 | b |
| 440 | :lineno |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 441 | N |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 442 | :loop |
| 443 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 444 | t loop |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 445 | s/-\n.*// |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 446 | ' >$as_me.lineno && |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 447 | chmod +x "$as_me.lineno" || |
vlm | fa67ddc | 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 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 453 | # original and so on. Autoconf is especially sensitive to this). |
| 454 | . "./$as_me.lineno" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 455 | # Exit status is that of the last command. |
| 456 | exit |
| 457 | } |
| 458 | |
| 459 | |
vlm | 83b901d | 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';; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 475 | esac |
| 476 | |
vlm | 83b901d | 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 |
vlm | fa67ddc | 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 |
vlm | 83b901d | 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 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 491 | echo >conf$$.file |
| 492 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
vlm | 83b901d | 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 || |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 499 | as_ln_s='cp -p' |
vlm | fa67ddc | 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 |
vlm | 83b901d | 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 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 507 | |
| 508 | if mkdir -p . 2>/dev/null; then |
| 509 | as_mkdir_p=: |
| 510 | else |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 511 | test -d ./-p && rmdir ./-p |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 512 | as_mkdir_p=false |
| 513 | fi |
| 514 | |
vlm | 83b901d | 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 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 528 | |
| 529 | # Sed expression to map a string onto a valid CPP name. |
vlm | 8f3eb99 | 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'" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 531 | |
| 532 | # Sed expression to map a string onto a valid variable name. |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 533 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 534 | |
| 535 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 536 | |
vlm | 8f3eb99 | 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. |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 574 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 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, ... |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 581 | if (echo_test_string=`eval $cmd`) 2>/dev/null && |
| 582 | echo_test_string=`eval $cmd` && |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 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 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 691 | exec 7<&0 </dev/null 6>&1 |
| 692 | |
vlm | fa67ddc | 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 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 698 | # |
| 699 | # Initializations. |
| 700 | # |
| 701 | ac_default_prefix=/usr/local |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 702 | ac_clean_files= |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 703 | ac_config_libobj_dir=. |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 704 | LIBOBJS= |
vlm | fa67ddc | 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 | |
vlm | fa67ddc | 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> |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 747 | #endif |
| 748 | #if HAVE_STDINT_H |
| 749 | # include <stdint.h> |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 750 | #endif |
| 751 | #if HAVE_UNISTD_H |
| 752 | # include <unistd.h> |
| 753 | #endif" |
| 754 | |
vlm | 83b901d | 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' |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 871 | ac_subst_files='' |
vlm | 83b901d | 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 | |
vlm | fa67ddc | 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. |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 915 | # (The list follows the same order as the GNU Coding Standards.) |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 916 | bindir='${exec_prefix}/bin' |
| 917 | sbindir='${exec_prefix}/sbin' |
| 918 | libexecdir='${exec_prefix}/libexec' |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 919 | datarootdir='${prefix}/share' |
| 920 | datadir='${datarootdir}' |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 921 | sysconfdir='${prefix}/etc' |
| 922 | sharedstatedir='${prefix}/com' |
| 923 | localstatedir='${prefix}/var' |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 924 | includedir='${prefix}/include' |
| 925 | oldincludedir='/usr/include' |
vlm | 83b901d | 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' |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 935 | |
| 936 | ac_prev= |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 937 | ac_dashdash= |
vlm | fa67ddc | 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 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 942 | eval $ac_prev=\$ac_option |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 943 | ac_prev= |
| 944 | continue |
| 945 | fi |
| 946 | |
vlm | 83b901d | 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 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 951 | |
| 952 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 953 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 954 | case $ac_dashdash$ac_option in |
| 955 | --) |
| 956 | ac_dashdash=yes ;; |
vlm | fa67ddc | 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 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 978 | -datadir | --datadir | --datadi | --datad) |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 979 | ac_prev=datadir ;; |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 980 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 981 | datadir=$ac_optarg ;; |
| 982 | |
vlm | 83b901d | 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 | |
vlm | fa67ddc | 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'` |
vlm | 83b901d | 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 ;; |
vlm | fa67ddc | 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'` |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1016 | eval enable_$ac_feature=\$ac_optarg ;; |
vlm | fa67ddc | 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 | |
vlm | 83b901d | 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 | |
vlm | fa67ddc | 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 | |
vlm | 83b901d | 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 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1078 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1079 | | --localstate | --localstat | --localsta | --localst | --locals) |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1080 | ac_prev=localstatedir ;; |
| 1081 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1082 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
vlm | fa67ddc | 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 | |
vlm | 83b901d | 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 | |
vlm | fa67ddc | 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'` |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1213 | eval with_$ac_package=\$ac_optarg ;; |
vlm | fa67ddc | 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'` |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1222 | eval with_$ac_package=no ;; |
vlm | fa67ddc | 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; }; } |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1253 | eval $ac_envvar=\$ac_optarg |
vlm | fa67ddc | 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 | |
vlm | 83b901d | 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 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1278 | do |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1279 | eval ac_val=\$$ac_var |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1280 | case $ac_val in |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1281 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1282 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1283 | esac |
vlm | 83b901d | 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; }; } |
vlm | fa67ddc | 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 | |
vlm | 83b901d | 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 | |
vlm | fa67ddc | 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 |
vlm | 83b901d | 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" || |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1327 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1328 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1329 | X"$0" : 'X\(//\)$' \| \ |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1330 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1331 | echo X"$0" | |
vlm | 83b901d | 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'` |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1349 | srcdir=$ac_confdir |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1350 | if test ! -r "$srcdir/$ac_unique_file"; then |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1351 | srcdir=.. |
| 1352 | fi |
| 1353 | else |
| 1354 | ac_srcdir_defaulted=no |
| 1355 | fi |
vlm | 83b901d | 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 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1359 | { (exit 1); exit 1; }; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1360 | fi |
vlm | 83b901d | 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 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1364 | { (exit 1); exit 1; }; } |
vlm | 83b901d | 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 |
vlm | fa67ddc | 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 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1410 | Installation directories: |
| 1411 | --prefix=PREFIX install architecture-independent files in PREFIX |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1412 | [$ac_default_prefix] |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1413 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1414 | [PREFIX] |
vlm | fa67ddc | 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] |
vlm | fa67ddc | 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] |
vlm | 83b901d | 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] |
vlm | fa67ddc | 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] |
vlm | 8f3eb99 | 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 |
vlm | 83b901d | 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] |
vlm | 8f3eb99 | 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 |
vlm | fa67ddc | 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) |
vlm | 8f3eb99 | 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] |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1484 | --with-tags[=TAGS] include additional configurations [automatic] |
vlm | fa67ddc | 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> |
vlm | 83b901d | 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> |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1493 | CPP C preprocessor |
vlm | 8f3eb99 | 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 |
vlm | 83b901d | 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. |
vlm | fa67ddc | 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 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1509 | ac_status=$? |
vlm | fa67ddc | 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. |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1514 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1515 | test -d "$ac_dir" || continue |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1516 | ac_builddir=. |
| 1517 | |
vlm | 83b901d | 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 | *) |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1521 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
vlm | 83b901d | 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 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1533 | |
| 1534 | case $srcdir in |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1535 | .) # We are building in place. |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1536 | ac_srcdir=. |
vlm | 83b901d | 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. |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1540 | ac_srcdir=$srcdir$ac_dir_suffix; |
vlm | 83b901d | 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 ;; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1547 | esac |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1548 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1549 | |
vlm | 83b901d | 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 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1558 | else |
| 1559 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1560 | fi || ac_status=$? |
| 1561 | cd "$ac_pwd" || { ac_status=$?; break; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1562 | done |
| 1563 | fi |
| 1564 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1565 | test -n "$ac_init_help" && exit $ac_status |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1566 | if $ac_init_version; then |
| 1567 | cat <<\_ACEOF |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1568 | configure |
| 1569 | generated by GNU Autoconf 2.60 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1570 | |
vlm | 83b901d | 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. |
vlm | fa67ddc | 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 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1576 | exit |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1577 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1578 | cat >config.log <<_ACEOF |
vlm | fa67ddc | 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 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1583 | generated by GNU Autoconf 2.60. Invocation command line was |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1584 | |
| 1585 | $ $0 $@ |
| 1586 | |
| 1587 | _ACEOF |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1588 | exec 5>>config.log |
vlm | fa67ddc | 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` |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1607 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
vlm | fa67ddc | 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 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1621 | IFS=$as_save_IFS |
vlm | fa67ddc | 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= |
vlm | fa67ddc | 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 ;; |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1653 | *\'*) |
vlm | fa67ddc | 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 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1661 | ac_must_keep_next=false # Got value, back to normal. |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1662 | else |
vlm | 8f3eb99 | 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 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1674 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1675 | ac_configure_args="$ac_configure_args '$ac_arg'" |
vlm | fa67ddc | 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. |
vlm | 83b901d | 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. |
vlm | fa67ddc | 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, |
vlm | 83b901d | 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 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1715 | (set) 2>&1 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1716 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1717 | *${as_nl}ac_space=\ *) |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1718 | sed -n \ |
vlm | 83b901d | 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 | ;; #( |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1722 | *) |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1723 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1724 | ;; |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1725 | esac | |
| 1726 | sort |
| 1727 | ) |
vlm | fa67ddc | 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 |
vlm | 83b901d | 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'\''" |
vlm | fa67ddc | 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 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1748 | ## ------------------- ## |
| 1749 | ## File substitutions. ## |
| 1750 | ## ------------------- ## |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1751 | _ASBOX |
| 1752 | echo |
| 1753 | for ac_var in $ac_subst_files |
| 1754 | do |
vlm | 83b901d | 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'\''" |
vlm | fa67ddc | 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 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1771 | cat confdefs.h |
vlm | fa67ddc | 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 |
vlm | 83b901d | 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 && |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1780 | exit $exit_status |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1781 | ' 0 |
vlm | fa67ddc | 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. |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1788 | rm -f -r conftest* confdefs.h |
vlm | fa67ddc | 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. |
vlm | 83b901d | 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" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1826 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1827 | shift |
| 1828 | for ac_site_file |
| 1829 | do |
vlm | fa67ddc | 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 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1845 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1846 | *) . "./$cache_file";; |
vlm | fa67ddc | 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 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1858 | for ac_var in $ac_precious_vars; do |
vlm | fa67ddc | 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 |
vlm | 83b901d | 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 |
vlm | fa67ddc | 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 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1875 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1876 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1877 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1878 | echo "$as_me: former value: $ac_old_val" >&2;} |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1879 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1880 | echo "$as_me: current value: $ac_new_val" >&2;} |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1881 | ac_cache_corrupted=: |
vlm | fa67ddc | 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 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1887 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
vlm | fa67ddc | 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 | |
vlm | 83b901d | 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 | |
vlm | fa67ddc | 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 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1927 | ac_aux_dir= |
vlm | 83b901d | 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 |
vlm | fa67ddc | 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 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1933 | elif test -f "$ac_dir/install.sh"; then |
vlm | fa67ddc | 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 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1937 | elif test -f "$ac_dir/shtool"; then |
vlm | fa67ddc | 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 |
vlm | 83b901d | 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;} |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1946 | { (exit 1); exit 1; }; } |
| 1947 | fi |
vlm | 83b901d | 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 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1957 | |
| 1958 | # Make sure we can run config.sub. |
vlm | 83b901d | 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;} |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1962 | { (exit 1); exit 1; }; } |
| 1963 | |
vlm | 83b901d | 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; } |
vlm | fa67ddc | 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 |
vlm | 83b901d | 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 && |
vlm | fa67ddc | 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; }; } |
vlm | 83b901d | 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;} |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1979 | { (exit 1); exit 1; }; } |
| 1980 | |
| 1981 | fi |
vlm | 83b901d | 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 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1990 | build=$ac_cv_build |
vlm | 83b901d | 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 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2002 | |
| 2003 | |
vlm | 83b901d | 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; } |
vlm | fa67ddc | 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 |
vlm | 83b901d | 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;} |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2015 | { (exit 1); exit 1; }; } |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2016 | fi |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2017 | |
| 2018 | fi |
vlm | 83b901d | 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 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2027 | host=$ac_cv_host |
vlm | 83b901d | 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 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2039 | |
| 2040 | |
vlm | 83b901d | 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; } |
vlm | fa67ddc | 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 |
vlm | 83b901d | 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;} |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2052 | { (exit 1); exit 1; }; } |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2053 | fi |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2054 | |
| 2055 | fi |
vlm | 83b901d | 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 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2064 | target=$ac_cv_target |
vlm | 83b901d | 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 |
vlm | fa67ddc | 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 | |
vlm | 1fcf759 | 2006-08-18 02:27:55 +0000 | [diff] [blame] | 2085 | am__api_version="1.9" |
vlm | fa67ddc | 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" |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2097 | # OS/2's system install, which has a completely different semantic |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2098 | # ./install, which can be erroneously created by make from ./install.sh. |
vlm | 83b901d | 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; } |
vlm | fa67ddc | 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/* | \ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2114 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
vlm | fa67ddc | 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 |
vlm | 83b901d | 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 |
vlm | 8f3eb99 | 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 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2136 | done |
| 2137 | done |
| 2138 | ;; |
| 2139 | esac |
| 2140 | done |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2141 | IFS=$as_save_IFS |
vlm | fa67ddc | 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 |
vlm | 83b901d | 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 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2150 | # break other packages using the cache if that directory is |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2151 | # removed, or if the value is a relative name. |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2152 | INSTALL=$ac_install_sh |
| 2153 | fi |
| 2154 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2155 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 2156 | echo "${ECHO_T}$INSTALL" >&6; } |
vlm | fa67ddc | 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 | |
vlm | 83b901d | 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; } |
vlm | fa67ddc | 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 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2209 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2210 | echo "${ECHO_T}yes" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2211 | test "$program_prefix" != NONE && |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2212 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2213 | # Use a double $ so make ignores it. |
| 2214 | test "$program_suffix" != NONE && |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2215 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
vlm | fa67ddc | 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` |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2222 | rm -f conftest.sed |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2223 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2224 | # expand $ac_aux_dir to an absolute path |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2225 | am_aux_dir=`cd $ac_aux_dir && pwd` |
vlm | fa67ddc | 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= |
vlm | 8f3eb99 | 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 |
vlm | 1fcf759 | 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 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2240 | # $(mkdir_p) $(somedir) |
vlm | 1fcf759 | 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 --' |
vlm | 8f3eb99 | 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 |
vlm | fa67ddc | 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 |
vlm | 83b901d | 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; } |
vlm | fa67ddc | 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 |
vlm | 83b901d | 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 |
vlm | fa67ddc | 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 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2295 | IFS=$as_save_IFS |
vlm | fa67ddc | 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 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2301 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
| 2302 | echo "${ECHO_T}$AWK" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2303 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2304 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2305 | echo "${ECHO_T}no" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2306 | fi |
| 2307 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2308 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2309 | test -n "$AWK" && break |
| 2310 | done |
| 2311 | |
vlm | 83b901d | 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 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2316 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2317 | else |
| 2318 | cat >conftest.make <<\_ACEOF |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2319 | SHELL = /bin/sh |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2320 | all: |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2321 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2322 | _ACEOF |
| 2323 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
vlm | 83b901d | 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 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2330 | rm -f conftest.make |
| 2331 | fi |
vlm | 83b901d | 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; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2335 | SET_MAKE= |
| 2336 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2337 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2338 | echo "${ECHO_T}no" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2339 | SET_MAKE="MAKE=${MAKE-make}" |
| 2340 | fi |
| 2341 | |
vlm | 8f3eb99 | 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=. |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2346 | else |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2347 | am__leading_dot=_ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2348 | fi |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2349 | rmdir .tst 2>/dev/null |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2350 | |
| 2351 | # test to see if srcdir already configured |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2352 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
vlm | fa67ddc | 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 | |
vlm | 8f3eb99 | 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 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2369 | # Define the identity of the package. |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2370 | PACKAGE=asn1c |
vlm | e81928a | 2006-10-09 12:29:34 +0000 | [diff] [blame] | 2371 | VERSION=0.9.22 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2372 | |
vlm | fa67ddc | 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 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2383 | # Some tools Automake needs. |
| 2384 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2385 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2386 | |
| 2387 | |
| 2388 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 2389 | |
| 2390 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2391 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
vlm | fa67ddc | 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 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2399 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
| 2400 | |
vlm | 8f3eb99 | 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 |
vlm | 83b901d | 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; } |
vlm | 8f3eb99 | 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 |
vlm | 83b901d | 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 |
vlm | 8f3eb99 | 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 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2430 | IFS=$as_save_IFS |
vlm | 8f3eb99 | 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 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2436 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 2437 | echo "${ECHO_T}$STRIP" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2438 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2439 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2440 | echo "${ECHO_T}no" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2441 | fi |
| 2442 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2443 | |
vlm | 8f3eb99 | 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 |
vlm | 83b901d | 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; } |
vlm | 8f3eb99 | 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 |
vlm | 83b901d | 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 |
vlm | 8f3eb99 | 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 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2470 | IFS=$as_save_IFS |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2471 | |
vlm | 8f3eb99 | 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 |
vlm | 83b901d | 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; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2478 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2479 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2480 | echo "${ECHO_T}no" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2481 | fi |
| 2482 | |
vlm | 83b901d | 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 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2498 | else |
| 2499 | STRIP="$ac_cv_prog_STRIP" |
| 2500 | fi |
| 2501 | |
| 2502 | fi |
vlm | fa67ddc | 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. |
vlm | 1fcf759 | 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 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2514 | |
| 2515 | |
| 2516 | |
| 2517 | |
vlm | 83b901d | 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. |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2521 | if test "${enable_maintainer_mode+set}" = set; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2522 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2523 | else |
| 2524 | USE_MAINTAINER_MODE=no |
vlm | 83b901d | 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; } |
vlm | fa67ddc | 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 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2538 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2539 | MAINT=$MAINTAINER_MODE_TRUE |
| 2540 | |
| 2541 | |
| 2542 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2543 | # Check whether --enable-shared was given. |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2544 | if test "${enable_shared+set}" = set; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2545 | enableval=$enable_shared; p=${PACKAGE-default} |
vlm | 8f3eb99 | 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 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2562 | else |
| 2563 | enable_shared=yes |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2564 | fi |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2565 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2566 | |
| 2567 | # Check whether --enable-static was given. |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2568 | if test "${enable_static+set}" = set; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2569 | enableval=$enable_static; p=${PACKAGE-default} |
vlm | 8f3eb99 | 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 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2586 | else |
| 2587 | enable_static=yes |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2588 | fi |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2589 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2590 | |
| 2591 | # Check whether --enable-fast-install was given. |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2592 | if test "${enable_fast_install+set}" = set; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2593 | enableval=$enable_fast_install; p=${PACKAGE-default} |
vlm | 8f3eb99 | 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 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2610 | else |
| 2611 | enable_fast_install=yes |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2612 | fi |
| 2613 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2614 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2615 | DEPDIR="${am__leading_dot}deps" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2616 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2617 | ac_config_commands="$ac_config_commands depfiles" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2618 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2619 | |
| 2620 | am_make=${MAKE-make} |
| 2621 | cat > confinc << 'END' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2622 | am__doit: |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2623 | @echo done |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2624 | .PHONY: am__doit |
vlm | fa67ddc | 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. |
vlm | 83b901d | 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; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2629 | am__include="#" |
vlm | fa67ddc | 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'. |
vlm | 8f3eb99 | 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 |
vlm | fa67ddc | 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 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2649 | am__quote="\"" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2650 | _am_result=BSD |
| 2651 | fi |
| 2652 | fi |
| 2653 | |
| 2654 | |
vlm | 83b901d | 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; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2657 | rm -f confinc confmf |
| 2658 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2659 | # Check whether --enable-dependency-tracking was given. |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2660 | if test "${enable_dependency_tracking+set}" = set; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2661 | enableval=$enable_dependency_tracking; |
| 2662 | fi |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2663 | |
vlm | 8f3eb99 | 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 | |
vlm | fa67ddc | 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 |
vlm | 83b901d | 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; } |
vlm | fa67ddc | 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 |
vlm | 83b901d | 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 |
vlm | fa67ddc | 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 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2709 | IFS=$as_save_IFS |
vlm | fa67ddc | 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 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2715 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2716 | echo "${ECHO_T}$CC" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2717 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2718 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2719 | echo "${ECHO_T}no" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2720 | fi |
| 2721 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2722 | |
vlm | fa67ddc | 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 |
vlm | 83b901d | 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; } |
vlm | fa67ddc | 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 |
vlm | 83b901d | 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 |
vlm | fa67ddc | 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 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2749 | IFS=$as_save_IFS |
vlm | fa67ddc | 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 |
vlm | 83b901d | 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; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2757 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2758 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2759 | echo "${ECHO_T}no" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2760 | fi |
| 2761 | |
vlm | 83b901d | 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 |
vlm | fa67ddc | 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 |
vlm | 83b901d | 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. |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2784 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
vlm | 83b901d | 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; } |
vlm | fa67ddc | 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 |
vlm | 83b901d | 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 |
vlm | fa67ddc | 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 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2806 | IFS=$as_save_IFS |
vlm | fa67ddc | 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 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2812 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2813 | echo "${ECHO_T}$CC" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2814 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2815 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2816 | echo "${ECHO_T}no" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2817 | fi |
| 2818 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2819 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2820 | fi |
vlm | fa67ddc | 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 |
vlm | 83b901d | 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; } |
vlm | fa67ddc | 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 |
vlm | 83b901d | 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 |
vlm | fa67ddc | 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 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2851 | IFS=$as_save_IFS |
vlm | fa67ddc | 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 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2869 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2870 | echo "${ECHO_T}$CC" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2871 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2872 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2873 | echo "${ECHO_T}no" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2874 | fi |
| 2875 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2876 | |
vlm | fa67ddc | 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 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2880 | for ac_prog in cl.exe |
vlm | fa67ddc | 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 |
vlm | 83b901d | 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; } |
vlm | fa67ddc | 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 |
vlm | 83b901d | 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 |
vlm | fa67ddc | 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 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2905 | IFS=$as_save_IFS |
vlm | fa67ddc | 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 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2911 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2912 | echo "${ECHO_T}$CC" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2913 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2914 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2915 | echo "${ECHO_T}no" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2916 | fi |
| 2917 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2918 | |
vlm | fa67ddc | 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 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2924 | for ac_prog in cl.exe |
vlm | fa67ddc | 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 |
vlm | 83b901d | 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; } |
vlm | fa67ddc | 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 |
vlm | 83b901d | 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 |
vlm | fa67ddc | 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 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2949 | IFS=$as_save_IFS |
vlm | fa67ddc | 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 |
vlm | 83b901d | 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; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2957 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2958 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2959 | echo "${ECHO_T}no" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2960 | fi |
| 2961 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2962 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2963 | test -n "$ac_ct_CC" && break |
| 2964 | done |
| 2965 | |
vlm | 83b901d | 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 |
vlm | fa67ddc | 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. |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2993 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2994 | ac_compiler=`set X $ac_compile; echo $2` |
vlm | 83b901d | 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 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3002 | ac_status=$? |
| 3003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3004 | (exit $ac_status); } |
vlm | 83b901d | 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 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3012 | ac_status=$? |
| 3013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3014 | (exit $ac_status); } |
vlm | 83b901d | 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 |
vlm | fa67ddc | 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 |
vlm | fa67ddc | 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. |
vlm | 83b901d | 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; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3048 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
vlm | 83b901d | 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 |
vlm | fa67ddc | 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 |
vlm | 83b901d | 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 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3084 | do |
| 3085 | test -f "$ac_file" || continue |
| 3086 | case $ac_file in |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3087 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3088 | ;; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3089 | [ab].out ) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3090 | # We found the default executable, but exeext='' is most |
| 3091 | # certainly right. |
| 3092 | break;; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3093 | *.* ) |
vlm | 83b901d | 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. |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3103 | break;; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3104 | * ) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3105 | break;; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3106 | esac |
| 3107 | done |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3108 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3109 | |
vlm | fa67ddc | 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 |
vlm | 83b901d | 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; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3124 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3125 | # Check that the compiler produces executables we can run. If not, either |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3126 | # the compiler is broken, or we cross compile. |
vlm | 83b901d | 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; } |
vlm | fa67ddc | 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' |
vlm | 83b901d | 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 |
vlm | fa67ddc | 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 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3157 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 3158 | echo "${ECHO_T}yes" >&6; } |
vlm | fa67ddc | 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 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3162 | # Check that the compiler produces executables we can run. If not, either |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3163 | # the compiler is broken, or we cross compile. |
vlm | 83b901d | 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; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3168 | |
vlm | 83b901d | 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 |
vlm | fa67ddc | 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 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3188 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3189 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3190 | break;; |
vlm | fa67ddc | 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 |
vlm | 83b901d | 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; } |
vlm | fa67ddc | 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 |
vlm | 83b901d | 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; } |
vlm | fa67ddc | 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 |
vlm | fa67ddc | 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 |
vlm | 83b901d | 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 |
vlm | fa67ddc | 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 |
vlm | 83b901d | 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; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3242 | case $ac_file in |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3243 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
vlm | fa67ddc | 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 |
vlm | 83b901d | 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; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3263 | OBJEXT=$ac_cv_objext |
| 3264 | ac_objext=$OBJEXT |
vlm | 83b901d | 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; } |
vlm | fa67ddc | 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 |
vlm | fa67ddc | 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 |
vlm | 83b901d | 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 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3296 | ac_status=$? |
vlm | 8f3eb99 | 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 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3301 | (exit $ac_status); } && |
vlm | 83b901d | 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 |
vlm | 8f3eb99 | 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' |
vlm | 83b901d | 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 |
vlm | fa67ddc | 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 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3327 | ac_compiler_gnu=no |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3328 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3329 | |
| 3330 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3331 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3332 | |
| 3333 | fi |
vlm | 83b901d | 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; } |
vlm | fa67ddc | 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 |
vlm | 83b901d | 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; } |
vlm | fa67ddc | 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 |
vlm | 83b901d | 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 |
vlm | fa67ddc | 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 |
vlm | 83b901d | 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 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3371 | ac_status=$? |
vlm | 8f3eb99 | 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 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3376 | (exit $ac_status); } && |
vlm | 83b901d | 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 |
vlm | 8f3eb99 | 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' |
vlm | 83b901d | 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 |
vlm | fa67ddc | 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 | |
vlm | 83b901d | 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 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3514 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3515 | |
| 3516 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3517 | fi |
vlm | 83b901d | 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; } |
vlm | fa67ddc | 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 |
vlm | 83b901d | 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 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3545 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3546 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3547 | ac_cv_prog_cc_c89=no |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3548 | ac_save_CC=$CC |
| 3549 | cat >conftest.$ac_ext <<_ACEOF |
vlm | fa67ddc | 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 | } |
vlm | 8f3eb99 | 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 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3581 | as 'x'. The following induces an error, until -std is added to get |
vlm | 8f3eb99 | 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 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3584 | that's true only with -std. */ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3585 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3586 | |
vlm | 83b901d | 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 | |
vlm | fa67ddc | 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 |
vlm | 83b901d | 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__" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3608 | do |
| 3609 | CC="$ac_save_CC $ac_arg" |
| 3610 | rm -f conftest.$ac_objext |
vlm | 83b901d | 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 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3618 | ac_status=$? |
vlm | 8f3eb99 | 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 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3623 | (exit $ac_status); } && |
vlm | 83b901d | 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 |
vlm | 8f3eb99 | 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' |
vlm | 83b901d | 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 |
vlm | fa67ddc | 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 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3644 | ac_cv_prog_cc_c89=$ac_arg |
vlm | fa67ddc | 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 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3649 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3650 | fi |
vlm | 83b901d | 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 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3654 | done |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3655 | rm -f conftest.$ac_ext |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3656 | CC=$ac_save_CC |
| 3657 | |
| 3658 | fi |
vlm | 83b901d | 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; } ;; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3667 | *) |
vlm | 83b901d | 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; } ;; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3671 | esac |
| 3672 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3673 | |
vlm | fa67ddc | 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 | |
vlm | 83b901d | 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; } |
vlm | fa67ddc | 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 |
vlm | 8f3eb99 | 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 |
vlm | fa67ddc | 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 |
vlm | 8f3eb99 | 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 | # |
vlm | fa67ddc | 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. |
vlm | 8f3eb99 | 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 |
vlm | fa67ddc | 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 \ |
vlm | 8f3eb99 | 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 && |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3749 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
vlm | 8f3eb99 | 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 |
vlm | fa67ddc | 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 |
vlm | 83b901d | 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; } |
vlm | 8f3eb99 | 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 | |
vlm | 83b901d | 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; } |
vlm | 8f3eb99 | 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 |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 3814 | test ! -f $lt_ac_sed && continue |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 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 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3839 | |
| 3840 | fi |
| 3841 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 3842 | SED=$lt_cv_path_SED |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3843 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 3844 | echo "${ECHO_T}$SED" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3845 | |
vlm | 83b901d | 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 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3849 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3850 | else |
vlm | 83b901d | 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 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3889 | fi |
vlm | 83b901d | 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 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3905 | fi |
vlm | 83b901d | 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" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4006 | |
| 4007 | |
| 4008 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4009 | # Check whether --with-gnu-ld was given. |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4010 | if test "${with_gnu_ld+set}" = set; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4011 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4012 | else |
| 4013 | with_gnu_ld=no |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4014 | fi |
| 4015 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4016 | ac_prog=ld |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4017 | if test "$GCC" = yes; then |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4018 | # Check if gcc -print-prog-name=ld gives a path. |
vlm | 83b901d | 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; } |
vlm | 8f3eb99 | 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 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4029 | # Accept absolute paths. |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4030 | [\\/]* | ?:[\\/]*) |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4031 | re_direlt='/[^/][^/]*/\.\./' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4032 | # Canonicalize the pathname of ld |
| 4033 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4034 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4035 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
vlm | fa67ddc | 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 |
vlm | 83b901d | 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; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4051 | else |
vlm | 83b901d | 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; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4054 | fi |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4055 | if test "${lt_cv_path_LD+set}" = set; then |
vlm | fa67ddc | 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 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4059 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4060 | for ac_dir in $PATH; do |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4061 | IFS="$lt_save_ifs" |
vlm | fa67ddc | 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 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4064 | lt_cv_path_LD="$ac_dir/$ac_prog" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4065 | # Check to see if the program is GNU ld. I'd rather use --version, |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 4066 | # but apparently some variants of GNU ld only accept -v. |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4067 | # Break only if it was the GNU/non-GNU ld that we prefer. |
vlm | 8f3eb99 | 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'*) |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4070 | test "$with_gnu_ld" != no && break |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4071 | ;; |
| 4072 | *) |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4073 | test "$with_gnu_ld" != yes && break |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4074 | ;; |
| 4075 | esac |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4076 | fi |
| 4077 | done |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4078 | IFS="$lt_save_ifs" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4079 | else |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4080 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4081 | fi |
| 4082 | fi |
| 4083 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4084 | LD="$lt_cv_path_LD" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4085 | if test -n "$LD"; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4086 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 4087 | echo "${ECHO_T}$LD" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4088 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4089 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4090 | echo "${ECHO_T}no" >&6; } |
vlm | fa67ddc | 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; }; } |
vlm | 83b901d | 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; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4097 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4098 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4099 | else |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 4100 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
vlm | 8f3eb99 | 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 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4109 | fi |
vlm | 83b901d | 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; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4112 | with_gnu_ld=$lt_cv_prog_gnu_ld |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4113 | |
| 4114 | |
vlm | 83b901d | 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; } |
vlm | 8f3eb99 | 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 |
vlm | 83b901d | 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; } |
vlm | 8f3eb99 | 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' |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 4130 | case $host_os in |
| 4131 | darwin*) |
| 4132 | if test "$GCC" = yes; then |
| 4133 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 4134 | else |
| 4135 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 4136 | fi |
| 4137 | ;; |
| 4138 | esac |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4139 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4140 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 4141 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4142 | if test "${lt_cv_path_NM+set}" = set; then |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4144 | else |
| 4145 | if test -n "$NM"; then |
| 4146 | # Let the user override the test. |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4147 | lt_cv_path_NM="$NM" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4148 | else |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 4149 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 4150 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 4151 | lt_nm_to_check="$lt_nm_to_check nm" |
| 4152 | fi |
| 4153 | for lt_tmp_nm in $lt_nm_to_check; do |
| 4154 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 4155 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 4156 | IFS="$lt_save_ifs" |
| 4157 | test -z "$ac_dir" && ac_dir=. |
| 4158 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 4159 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 4160 | # Check to see if the nm accepts a BSD-compat flag. |
| 4161 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 4162 | # nm: unknown option "B" ignored |
| 4163 | # Tru64's nm complains that /dev/null is an invalid object file |
| 4164 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 4165 | */dev/null* | *'Invalid file or object type'*) |
| 4166 | lt_cv_path_NM="$tmp_nm -B" |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4167 | break |
| 4168 | ;; |
| 4169 | *) |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 4170 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 4171 | */dev/null*) |
| 4172 | lt_cv_path_NM="$tmp_nm -p" |
| 4173 | break |
| 4174 | ;; |
| 4175 | *) |
| 4176 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 4177 | continue # so that we can try to find one that supports BSD flags |
| 4178 | ;; |
| 4179 | esac |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4180 | ;; |
| 4181 | esac |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 4182 | fi |
| 4183 | done |
| 4184 | IFS="$lt_save_ifs" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4185 | done |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4186 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4187 | fi |
| 4188 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4189 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 4190 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4191 | NM="$lt_cv_path_NM" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4192 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4193 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 4194 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4195 | LN_S=$as_ln_s |
| 4196 | if test "$LN_S" = "ln -s"; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4197 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4198 | echo "${ECHO_T}yes" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4199 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4200 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 4201 | echo "${ECHO_T}no, using $LN_S" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4202 | fi |
| 4203 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4204 | { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 4205 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4206 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 4207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4208 | else |
| 4209 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 4210 | lt_cv_file_magic_test_file= |
| 4211 | lt_cv_deplibs_check_method='unknown' |
| 4212 | # Need to set the preceding variable on all platforms that support |
| 4213 | # interlibrary dependencies. |
| 4214 | # 'none' -- dependencies not supported. |
| 4215 | # `unknown' -- same as none, but documents that we really don't know. |
| 4216 | # 'pass_all' -- all dependencies passed with no checks. |
| 4217 | # 'test_compile' -- check by making test program. |
| 4218 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 4219 | # which responds to the $file_magic_cmd with a given extended regex. |
| 4220 | # If you have `file' or equivalent on your system and you're not sure |
| 4221 | # whether `pass_all' will *always* work, you probably want this one. |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4222 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4223 | case $host_os in |
| 4224 | aix4* | aix5*) |
| 4225 | lt_cv_deplibs_check_method=pass_all |
| 4226 | ;; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4227 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4228 | beos*) |
| 4229 | lt_cv_deplibs_check_method=pass_all |
| 4230 | ;; |
| 4231 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 4232 | bsdi[45]*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4233 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 4234 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 4235 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 4236 | ;; |
| 4237 | |
| 4238 | cygwin*) |
| 4239 | # func_win32_libid is a shell function defined in ltmain.sh |
| 4240 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 4241 | lt_cv_file_magic_cmd='func_win32_libid' |
| 4242 | ;; |
| 4243 | |
| 4244 | mingw* | pw32*) |
| 4245 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 4246 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
| 4247 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 4248 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 4249 | ;; |
| 4250 | |
| 4251 | darwin* | rhapsody*) |
| 4252 | lt_cv_deplibs_check_method=pass_all |
| 4253 | ;; |
| 4254 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 4255 | freebsd* | kfreebsd*-gnu | dragonfly*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4256 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 4257 | case $host_cpu in |
| 4258 | i*86 ) |
| 4259 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 4260 | # Let's accept both of them until this is cleared up. |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 4261 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4262 | lt_cv_file_magic_cmd=/usr/bin/file |
| 4263 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 4264 | ;; |
| 4265 | esac |
| 4266 | else |
| 4267 | lt_cv_deplibs_check_method=pass_all |
| 4268 | fi |
| 4269 | ;; |
| 4270 | |
| 4271 | gnu*) |
| 4272 | lt_cv_deplibs_check_method=pass_all |
| 4273 | ;; |
| 4274 | |
| 4275 | hpux10.20* | hpux11*) |
| 4276 | lt_cv_file_magic_cmd=/usr/bin/file |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 4277 | case $host_cpu in |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4278 | ia64*) |
| 4279 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 4280 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 4281 | ;; |
| 4282 | hppa*64*) |
| 4283 | 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]' |
| 4284 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 4285 | ;; |
| 4286 | *) |
| 4287 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 4288 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 4289 | ;; |
| 4290 | esac |
| 4291 | ;; |
| 4292 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 4293 | interix3*) |
| 4294 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 4295 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 4296 | ;; |
| 4297 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4298 | irix5* | irix6* | nonstopux*) |
| 4299 | case $LD in |
| 4300 | *-32|*"-32 ") libmagic=32-bit;; |
| 4301 | *-n32|*"-n32 ") libmagic=N32;; |
| 4302 | *-64|*"-64 ") libmagic=64-bit;; |
| 4303 | *) libmagic=never-match;; |
| 4304 | esac |
| 4305 | lt_cv_deplibs_check_method=pass_all |
| 4306 | ;; |
| 4307 | |
| 4308 | # This must be Linux ELF. |
| 4309 | linux*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4310 | lt_cv_deplibs_check_method=pass_all |
| 4311 | ;; |
| 4312 | |
| 4313 | netbsd*) |
| 4314 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 4315 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 4316 | else |
| 4317 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 4318 | fi |
| 4319 | ;; |
| 4320 | |
| 4321 | newos6*) |
| 4322 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 4323 | lt_cv_file_magic_cmd=/usr/bin/file |
| 4324 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 4325 | ;; |
| 4326 | |
| 4327 | nto-qnx*) |
| 4328 | lt_cv_deplibs_check_method=unknown |
| 4329 | ;; |
| 4330 | |
| 4331 | openbsd*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4332 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 4333 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4334 | else |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 4335 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4336 | fi |
| 4337 | ;; |
| 4338 | |
| 4339 | osf3* | osf4* | osf5*) |
| 4340 | lt_cv_deplibs_check_method=pass_all |
| 4341 | ;; |
| 4342 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4343 | solaris*) |
| 4344 | lt_cv_deplibs_check_method=pass_all |
| 4345 | ;; |
| 4346 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 4347 | sysv4 | sysv4.3*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4348 | case $host_vendor in |
| 4349 | motorola) |
| 4350 | 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]' |
| 4351 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 4352 | ;; |
| 4353 | ncr) |
| 4354 | lt_cv_deplibs_check_method=pass_all |
| 4355 | ;; |
| 4356 | sequent) |
| 4357 | lt_cv_file_magic_cmd='/bin/file' |
| 4358 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 4359 | ;; |
| 4360 | sni) |
| 4361 | lt_cv_file_magic_cmd='/bin/file' |
| 4362 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 4363 | lt_cv_file_magic_test_file=/lib/libc.so |
| 4364 | ;; |
| 4365 | siemens) |
| 4366 | lt_cv_deplibs_check_method=pass_all |
| 4367 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 4368 | pc) |
| 4369 | lt_cv_deplibs_check_method=pass_all |
| 4370 | ;; |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4371 | esac |
| 4372 | ;; |
| 4373 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 4374 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4375 | lt_cv_deplibs_check_method=pass_all |
| 4376 | ;; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4377 | esac |
| 4378 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4379 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4380 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 4381 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4382 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 4383 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 4384 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 4385 | |
| 4386 | |
| 4387 | |
| 4388 | |
| 4389 | # If no C compiler was specified, use CC. |
| 4390 | LTCC=${LTCC-"$CC"} |
| 4391 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 4392 | # If no C compiler flags were specified, use CFLAGS. |
| 4393 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 4394 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4395 | # Allow CC to be a program name with arguments. |
| 4396 | compiler=$CC |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4397 | |
| 4398 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4399 | # Check whether --enable-libtool-lock was given. |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4400 | if test "${enable_libtool_lock+set}" = set; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4401 | enableval=$enable_libtool_lock; |
| 4402 | fi |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4403 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4404 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4405 | |
| 4406 | # Some flags need to be propagated to the compiler or linker for good |
| 4407 | # libtool support. |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4408 | case $host in |
| 4409 | ia64-*-hpux*) |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4410 | # Find out which ABI we are using. |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4411 | echo 'int i;' > conftest.$ac_ext |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4412 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4413 | (eval $ac_compile) 2>&5 |
| 4414 | ac_status=$? |
| 4415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4416 | (exit $ac_status); }; then |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4417 | case `/usr/bin/file conftest.$ac_objext` in |
| 4418 | *ELF-32*) |
| 4419 | HPUX_IA64_MODE="32" |
| 4420 | ;; |
| 4421 | *ELF-64*) |
| 4422 | HPUX_IA64_MODE="64" |
| 4423 | ;; |
| 4424 | esac |
| 4425 | fi |
| 4426 | rm -rf conftest* |
| 4427 | ;; |
| 4428 | *-*-irix6*) |
| 4429 | # Find out which ABI we are using. |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 4430 | echo '#line 4430 "configure"' > conftest.$ac_ext |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4431 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4432 | (eval $ac_compile) 2>&5 |
| 4433 | ac_status=$? |
| 4434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4435 | (exit $ac_status); }; then |
| 4436 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 4437 | case `/usr/bin/file conftest.$ac_objext` in |
| 4438 | *32-bit*) |
| 4439 | LD="${LD-ld} -melf32bsmip" |
| 4440 | ;; |
| 4441 | *N32*) |
| 4442 | LD="${LD-ld} -melf32bmipn32" |
| 4443 | ;; |
| 4444 | *64-bit*) |
| 4445 | LD="${LD-ld} -melf64bmip" |
| 4446 | ;; |
| 4447 | esac |
| 4448 | else |
| 4449 | case `/usr/bin/file conftest.$ac_objext` in |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4450 | *32-bit*) |
| 4451 | LD="${LD-ld} -32" |
| 4452 | ;; |
| 4453 | *N32*) |
| 4454 | LD="${LD-ld} -n32" |
| 4455 | ;; |
| 4456 | *64-bit*) |
| 4457 | LD="${LD-ld} -64" |
| 4458 | ;; |
| 4459 | esac |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4460 | fi |
| 4461 | fi |
| 4462 | rm -rf conftest* |
| 4463 | ;; |
| 4464 | |
| 4465 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| 4466 | # Find out which ABI we are using. |
| 4467 | echo 'int i;' > conftest.$ac_ext |
| 4468 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4469 | (eval $ac_compile) 2>&5 |
| 4470 | ac_status=$? |
| 4471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4472 | (exit $ac_status); }; then |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 4473 | case `/usr/bin/file conftest.o` in |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4474 | *32-bit*) |
| 4475 | case $host in |
| 4476 | x86_64-*linux*) |
| 4477 | LD="${LD-ld} -m elf_i386" |
| 4478 | ;; |
| 4479 | ppc64-*linux*|powerpc64-*linux*) |
| 4480 | LD="${LD-ld} -m elf32ppclinux" |
| 4481 | ;; |
| 4482 | s390x-*linux*) |
| 4483 | LD="${LD-ld} -m elf_s390" |
| 4484 | ;; |
| 4485 | sparc64-*linux*) |
| 4486 | LD="${LD-ld} -m elf32_sparc" |
| 4487 | ;; |
| 4488 | esac |
| 4489 | ;; |
| 4490 | *64-bit*) |
| 4491 | case $host in |
| 4492 | x86_64-*linux*) |
| 4493 | LD="${LD-ld} -m elf_x86_64" |
| 4494 | ;; |
| 4495 | ppc*-*linux*|powerpc*-*linux*) |
| 4496 | LD="${LD-ld} -m elf64ppc" |
| 4497 | ;; |
| 4498 | s390*-*linux*) |
| 4499 | LD="${LD-ld} -m elf64_s390" |
| 4500 | ;; |
| 4501 | sparc*-*linux*) |
| 4502 | LD="${LD-ld} -m elf64_sparc" |
| 4503 | ;; |
| 4504 | esac |
| 4505 | ;; |
| 4506 | esac |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4507 | fi |
| 4508 | rm -rf conftest* |
| 4509 | ;; |
| 4510 | |
| 4511 | *-*-sco3.2v5*) |
| 4512 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 4513 | SAVE_CFLAGS="$CFLAGS" |
| 4514 | CFLAGS="$CFLAGS -belf" |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4515 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 4516 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4517 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 4518 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4519 | else |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4520 | ac_ext=c |
| 4521 | ac_cpp='$CPP $CPPFLAGS' |
| 4522 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4523 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4524 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4525 | |
| 4526 | cat >conftest.$ac_ext <<_ACEOF |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4527 | /* confdefs.h. */ |
| 4528 | _ACEOF |
| 4529 | cat confdefs.h >>conftest.$ac_ext |
| 4530 | cat >>conftest.$ac_ext <<_ACEOF |
| 4531 | /* end confdefs.h. */ |
| 4532 | |
| 4533 | int |
| 4534 | main () |
| 4535 | { |
| 4536 | |
| 4537 | ; |
| 4538 | return 0; |
| 4539 | } |
| 4540 | _ACEOF |
| 4541 | rm -f conftest.$ac_objext conftest$ac_exeext |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4542 | if { (ac_try="$ac_link" |
| 4543 | case "(($ac_try" in |
| 4544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4545 | *) ac_try_echo=$ac_try;; |
| 4546 | esac |
| 4547 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4548 | (eval "$ac_link") 2>conftest.er1 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4549 | ac_status=$? |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4550 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4551 | rm -f conftest.er1 |
| 4552 | cat conftest.err >&5 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4554 | (exit $ac_status); } && |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4555 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4556 | { (case "(($ac_try" in |
| 4557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4558 | *) ac_try_echo=$ac_try;; |
| 4559 | esac |
| 4560 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4561 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4562 | ac_status=$? |
| 4563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4564 | (exit $ac_status); }; } && |
| 4565 | { ac_try='test -s conftest$ac_exeext' |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4566 | { (case "(($ac_try" in |
| 4567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4568 | *) ac_try_echo=$ac_try;; |
| 4569 | esac |
| 4570 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4571 | (eval "$ac_try") 2>&5 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4572 | ac_status=$? |
| 4573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4574 | (exit $ac_status); }; }; then |
| 4575 | lt_cv_cc_needs_belf=yes |
| 4576 | else |
| 4577 | echo "$as_me: failed program was:" >&5 |
| 4578 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4579 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4580 | lt_cv_cc_needs_belf=no |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4581 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4582 | |
| 4583 | rm -f core conftest.err conftest.$ac_objext \ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4584 | conftest$ac_exeext conftest.$ac_ext |
| 4585 | ac_ext=c |
| 4586 | ac_cpp='$CPP $CPPFLAGS' |
| 4587 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4588 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4589 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4590 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4591 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4592 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 4593 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4594 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 4595 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 4596 | CFLAGS="$SAVE_CFLAGS" |
| 4597 | fi |
| 4598 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 4599 | sparc*-*solaris*) |
| 4600 | # Find out which ABI we are using. |
| 4601 | echo 'int i;' > conftest.$ac_ext |
| 4602 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4603 | (eval $ac_compile) 2>&5 |
| 4604 | ac_status=$? |
| 4605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4606 | (exit $ac_status); }; then |
| 4607 | case `/usr/bin/file conftest.o` in |
| 4608 | *64-bit*) |
| 4609 | case $lt_cv_prog_gnu_ld in |
| 4610 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 4611 | *) LD="${LD-ld} -64" ;; |
| 4612 | esac |
| 4613 | ;; |
| 4614 | esac |
| 4615 | fi |
| 4616 | rm -rf conftest* |
| 4617 | ;; |
| 4618 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4619 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4620 | esac |
| 4621 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4622 | need_locks="$enable_libtool_lock" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4623 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4624 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4625 | ac_ext=c |
| 4626 | ac_cpp='$CPP $CPPFLAGS' |
| 4627 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4628 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4629 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4630 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 4631 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4632 | # On Suns, sometimes $CPP names a directory. |
| 4633 | if test -n "$CPP" && test -d "$CPP"; then |
| 4634 | CPP= |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4635 | fi |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4636 | if test -z "$CPP"; then |
| 4637 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 4638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4639 | else |
| 4640 | # Double quotes because CPP needs to be expanded |
| 4641 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4642 | do |
| 4643 | ac_preproc_ok=false |
| 4644 | for ac_c_preproc_warn_flag in '' yes |
| 4645 | do |
| 4646 | # Use a header file that comes with gcc, so configuring glibc |
| 4647 | # with a fresh cross-compiler works. |
| 4648 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4649 | # <limits.h> exists even on freestanding compilers. |
| 4650 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4651 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4652 | cat >conftest.$ac_ext <<_ACEOF |
| 4653 | /* confdefs.h. */ |
| 4654 | _ACEOF |
| 4655 | cat confdefs.h >>conftest.$ac_ext |
| 4656 | cat >>conftest.$ac_ext <<_ACEOF |
| 4657 | /* end confdefs.h. */ |
| 4658 | #ifdef __STDC__ |
| 4659 | # include <limits.h> |
| 4660 | #else |
| 4661 | # include <assert.h> |
| 4662 | #endif |
| 4663 | Syntax error |
| 4664 | _ACEOF |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4665 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4666 | case "(($ac_try" in |
| 4667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4668 | *) ac_try_echo=$ac_try;; |
| 4669 | esac |
| 4670 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4671 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4672 | ac_status=$? |
| 4673 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4674 | rm -f conftest.er1 |
| 4675 | cat conftest.err >&5 |
| 4676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4677 | (exit $ac_status); } >/dev/null; then |
| 4678 | if test -s conftest.err; then |
| 4679 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4680 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4681 | else |
| 4682 | ac_cpp_err= |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4683 | fi |
| 4684 | else |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4685 | ac_cpp_err=yes |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4686 | fi |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4687 | if test -z "$ac_cpp_err"; then |
| 4688 | : |
| 4689 | else |
| 4690 | echo "$as_me: failed program was:" >&5 |
| 4691 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4692 | |
| 4693 | # Broken: fails on valid input. |
| 4694 | continue |
| 4695 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4696 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4697 | rm -f conftest.err conftest.$ac_ext |
| 4698 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4699 | # OK, works on sane cases. Now check whether nonexistent headers |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4700 | # can be detected and how. |
| 4701 | cat >conftest.$ac_ext <<_ACEOF |
| 4702 | /* confdefs.h. */ |
| 4703 | _ACEOF |
| 4704 | cat confdefs.h >>conftest.$ac_ext |
| 4705 | cat >>conftest.$ac_ext <<_ACEOF |
| 4706 | /* end confdefs.h. */ |
| 4707 | #include <ac_nonexistent.h> |
| 4708 | _ACEOF |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4709 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4710 | case "(($ac_try" in |
| 4711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4712 | *) ac_try_echo=$ac_try;; |
| 4713 | esac |
| 4714 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4715 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4716 | ac_status=$? |
| 4717 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4718 | rm -f conftest.er1 |
| 4719 | cat conftest.err >&5 |
| 4720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4721 | (exit $ac_status); } >/dev/null; then |
| 4722 | if test -s conftest.err; then |
| 4723 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4724 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4725 | else |
| 4726 | ac_cpp_err= |
| 4727 | fi |
| 4728 | else |
| 4729 | ac_cpp_err=yes |
| 4730 | fi |
| 4731 | if test -z "$ac_cpp_err"; then |
| 4732 | # Broken: success on invalid input. |
| 4733 | continue |
| 4734 | else |
| 4735 | echo "$as_me: failed program was:" >&5 |
| 4736 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4737 | |
| 4738 | # Passes both tests. |
| 4739 | ac_preproc_ok=: |
| 4740 | break |
| 4741 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4742 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4743 | rm -f conftest.err conftest.$ac_ext |
| 4744 | |
| 4745 | done |
| 4746 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4747 | rm -f conftest.err conftest.$ac_ext |
| 4748 | if $ac_preproc_ok; then |
| 4749 | break |
| 4750 | fi |
| 4751 | |
| 4752 | done |
| 4753 | ac_cv_prog_CPP=$CPP |
| 4754 | |
| 4755 | fi |
| 4756 | CPP=$ac_cv_prog_CPP |
| 4757 | else |
| 4758 | ac_cv_prog_CPP=$CPP |
| 4759 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4760 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 4761 | echo "${ECHO_T}$CPP" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4762 | ac_preproc_ok=false |
| 4763 | for ac_c_preproc_warn_flag in '' yes |
| 4764 | do |
| 4765 | # Use a header file that comes with gcc, so configuring glibc |
| 4766 | # with a fresh cross-compiler works. |
| 4767 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4768 | # <limits.h> exists even on freestanding compilers. |
| 4769 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4770 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4771 | cat >conftest.$ac_ext <<_ACEOF |
| 4772 | /* confdefs.h. */ |
| 4773 | _ACEOF |
| 4774 | cat confdefs.h >>conftest.$ac_ext |
| 4775 | cat >>conftest.$ac_ext <<_ACEOF |
| 4776 | /* end confdefs.h. */ |
| 4777 | #ifdef __STDC__ |
| 4778 | # include <limits.h> |
| 4779 | #else |
| 4780 | # include <assert.h> |
| 4781 | #endif |
| 4782 | Syntax error |
| 4783 | _ACEOF |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4784 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4785 | case "(($ac_try" in |
| 4786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4787 | *) ac_try_echo=$ac_try;; |
| 4788 | esac |
| 4789 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4790 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4791 | ac_status=$? |
| 4792 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4793 | rm -f conftest.er1 |
| 4794 | cat conftest.err >&5 |
| 4795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4796 | (exit $ac_status); } >/dev/null; then |
| 4797 | if test -s conftest.err; then |
| 4798 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4799 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4800 | else |
| 4801 | ac_cpp_err= |
| 4802 | fi |
| 4803 | else |
| 4804 | ac_cpp_err=yes |
| 4805 | fi |
| 4806 | if test -z "$ac_cpp_err"; then |
| 4807 | : |
| 4808 | else |
| 4809 | echo "$as_me: failed program was:" >&5 |
| 4810 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4811 | |
| 4812 | # Broken: fails on valid input. |
| 4813 | continue |
| 4814 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4815 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4816 | rm -f conftest.err conftest.$ac_ext |
| 4817 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4818 | # OK, works on sane cases. Now check whether nonexistent headers |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4819 | # can be detected and how. |
| 4820 | cat >conftest.$ac_ext <<_ACEOF |
| 4821 | /* confdefs.h. */ |
| 4822 | _ACEOF |
| 4823 | cat confdefs.h >>conftest.$ac_ext |
| 4824 | cat >>conftest.$ac_ext <<_ACEOF |
| 4825 | /* end confdefs.h. */ |
| 4826 | #include <ac_nonexistent.h> |
| 4827 | _ACEOF |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4828 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4829 | case "(($ac_try" in |
| 4830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4831 | *) ac_try_echo=$ac_try;; |
| 4832 | esac |
| 4833 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4834 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4835 | ac_status=$? |
| 4836 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4837 | rm -f conftest.er1 |
| 4838 | cat conftest.err >&5 |
| 4839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4840 | (exit $ac_status); } >/dev/null; then |
| 4841 | if test -s conftest.err; then |
| 4842 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4843 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4844 | else |
| 4845 | ac_cpp_err= |
| 4846 | fi |
| 4847 | else |
| 4848 | ac_cpp_err=yes |
| 4849 | fi |
| 4850 | if test -z "$ac_cpp_err"; then |
| 4851 | # Broken: success on invalid input. |
| 4852 | continue |
| 4853 | else |
| 4854 | echo "$as_me: failed program was:" >&5 |
| 4855 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4856 | |
| 4857 | # Passes both tests. |
| 4858 | ac_preproc_ok=: |
| 4859 | break |
| 4860 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4861 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4862 | rm -f conftest.err conftest.$ac_ext |
| 4863 | |
| 4864 | done |
| 4865 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4866 | rm -f conftest.err conftest.$ac_ext |
| 4867 | if $ac_preproc_ok; then |
| 4868 | : |
| 4869 | else |
| 4870 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 4871 | See \`config.log' for more details." >&5 |
| 4872 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 4873 | See \`config.log' for more details." >&2;} |
| 4874 | { (exit 1); exit 1; }; } |
| 4875 | fi |
| 4876 | |
| 4877 | ac_ext=c |
| 4878 | ac_cpp='$CPP $CPPFLAGS' |
| 4879 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4880 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4881 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4882 | |
| 4883 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4884 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4885 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4886 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4887 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4888 | else |
| 4889 | cat >conftest.$ac_ext <<_ACEOF |
| 4890 | /* confdefs.h. */ |
| 4891 | _ACEOF |
| 4892 | cat confdefs.h >>conftest.$ac_ext |
| 4893 | cat >>conftest.$ac_ext <<_ACEOF |
| 4894 | /* end confdefs.h. */ |
| 4895 | #include <stdlib.h> |
| 4896 | #include <stdarg.h> |
| 4897 | #include <string.h> |
| 4898 | #include <float.h> |
| 4899 | |
| 4900 | int |
| 4901 | main () |
| 4902 | { |
| 4903 | |
| 4904 | ; |
| 4905 | return 0; |
| 4906 | } |
| 4907 | _ACEOF |
| 4908 | rm -f conftest.$ac_objext |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4909 | if { (ac_try="$ac_compile" |
| 4910 | case "(($ac_try" in |
| 4911 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4912 | *) ac_try_echo=$ac_try;; |
| 4913 | esac |
| 4914 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4915 | (eval "$ac_compile") 2>conftest.er1 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4916 | ac_status=$? |
| 4917 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4918 | rm -f conftest.er1 |
| 4919 | cat conftest.err >&5 |
| 4920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4921 | (exit $ac_status); } && |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4922 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4923 | { (case "(($ac_try" in |
| 4924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4925 | *) ac_try_echo=$ac_try;; |
| 4926 | esac |
| 4927 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4928 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4929 | ac_status=$? |
| 4930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4931 | (exit $ac_status); }; } && |
| 4932 | { ac_try='test -s conftest.$ac_objext' |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4933 | { (case "(($ac_try" in |
| 4934 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4935 | *) ac_try_echo=$ac_try;; |
| 4936 | esac |
| 4937 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4938 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4939 | ac_status=$? |
| 4940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4941 | (exit $ac_status); }; }; then |
| 4942 | ac_cv_header_stdc=yes |
| 4943 | else |
| 4944 | echo "$as_me: failed program was:" >&5 |
| 4945 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4946 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4947 | ac_cv_header_stdc=no |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4948 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4949 | |
| 4950 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4951 | |
| 4952 | if test $ac_cv_header_stdc = yes; then |
| 4953 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4954 | cat >conftest.$ac_ext <<_ACEOF |
| 4955 | /* confdefs.h. */ |
| 4956 | _ACEOF |
| 4957 | cat confdefs.h >>conftest.$ac_ext |
| 4958 | cat >>conftest.$ac_ext <<_ACEOF |
| 4959 | /* end confdefs.h. */ |
| 4960 | #include <string.h> |
| 4961 | |
| 4962 | _ACEOF |
| 4963 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4964 | $EGREP "memchr" >/dev/null 2>&1; then |
| 4965 | : |
| 4966 | else |
| 4967 | ac_cv_header_stdc=no |
| 4968 | fi |
| 4969 | rm -f conftest* |
| 4970 | |
| 4971 | fi |
| 4972 | |
| 4973 | if test $ac_cv_header_stdc = yes; then |
| 4974 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4975 | cat >conftest.$ac_ext <<_ACEOF |
| 4976 | /* confdefs.h. */ |
| 4977 | _ACEOF |
| 4978 | cat confdefs.h >>conftest.$ac_ext |
| 4979 | cat >>conftest.$ac_ext <<_ACEOF |
| 4980 | /* end confdefs.h. */ |
| 4981 | #include <stdlib.h> |
| 4982 | |
| 4983 | _ACEOF |
| 4984 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4985 | $EGREP "free" >/dev/null 2>&1; then |
| 4986 | : |
| 4987 | else |
| 4988 | ac_cv_header_stdc=no |
| 4989 | fi |
| 4990 | rm -f conftest* |
| 4991 | |
| 4992 | fi |
| 4993 | |
| 4994 | if test $ac_cv_header_stdc = yes; then |
| 4995 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4996 | if test "$cross_compiling" = yes; then |
| 4997 | : |
| 4998 | else |
| 4999 | cat >conftest.$ac_ext <<_ACEOF |
| 5000 | /* confdefs.h. */ |
| 5001 | _ACEOF |
| 5002 | cat confdefs.h >>conftest.$ac_ext |
| 5003 | cat >>conftest.$ac_ext <<_ACEOF |
| 5004 | /* end confdefs.h. */ |
| 5005 | #include <ctype.h> |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5006 | #include <stdlib.h> |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5007 | #if ((' ' & 0x0FF) == 0x020) |
| 5008 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5009 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5010 | #else |
| 5011 | # define ISLOWER(c) \ |
| 5012 | (('a' <= (c) && (c) <= 'i') \ |
| 5013 | || ('j' <= (c) && (c) <= 'r') \ |
| 5014 | || ('s' <= (c) && (c) <= 'z')) |
| 5015 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5016 | #endif |
| 5017 | |
| 5018 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5019 | int |
| 5020 | main () |
| 5021 | { |
| 5022 | int i; |
| 5023 | for (i = 0; i < 256; i++) |
| 5024 | if (XOR (islower (i), ISLOWER (i)) |
| 5025 | || toupper (i) != TOUPPER (i)) |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5026 | return 2; |
| 5027 | return 0; |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5028 | } |
| 5029 | _ACEOF |
| 5030 | rm -f conftest$ac_exeext |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5031 | if { (ac_try="$ac_link" |
| 5032 | case "(($ac_try" in |
| 5033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5034 | *) ac_try_echo=$ac_try;; |
| 5035 | esac |
| 5036 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5037 | (eval "$ac_link") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5038 | ac_status=$? |
| 5039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5040 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5041 | { (case "(($ac_try" in |
| 5042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5043 | *) ac_try_echo=$ac_try;; |
| 5044 | esac |
| 5045 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5046 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5047 | ac_status=$? |
| 5048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5049 | (exit $ac_status); }; }; then |
| 5050 | : |
| 5051 | else |
| 5052 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5053 | echo "$as_me: failed program was:" >&5 |
| 5054 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5055 | |
| 5056 | ( exit $ac_status ) |
| 5057 | ac_cv_header_stdc=no |
| 5058 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5059 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5060 | fi |
| 5061 | |
| 5062 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5063 | fi |
| 5064 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5065 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 5066 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5067 | if test $ac_cv_header_stdc = yes; then |
| 5068 | |
| 5069 | cat >>confdefs.h <<\_ACEOF |
| 5070 | #define STDC_HEADERS 1 |
| 5071 | _ACEOF |
| 5072 | |
| 5073 | fi |
| 5074 | |
| 5075 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 5076 | |
| 5077 | |
| 5078 | |
| 5079 | |
| 5080 | |
| 5081 | |
| 5082 | |
| 5083 | |
| 5084 | |
| 5085 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 5086 | inttypes.h stdint.h unistd.h |
| 5087 | do |
| 5088 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5089 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5090 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5091 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5092 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5093 | else |
| 5094 | cat >conftest.$ac_ext <<_ACEOF |
| 5095 | /* confdefs.h. */ |
| 5096 | _ACEOF |
| 5097 | cat confdefs.h >>conftest.$ac_ext |
| 5098 | cat >>conftest.$ac_ext <<_ACEOF |
| 5099 | /* end confdefs.h. */ |
| 5100 | $ac_includes_default |
| 5101 | |
| 5102 | #include <$ac_header> |
| 5103 | _ACEOF |
| 5104 | rm -f conftest.$ac_objext |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5105 | if { (ac_try="$ac_compile" |
| 5106 | case "(($ac_try" in |
| 5107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5108 | *) ac_try_echo=$ac_try;; |
| 5109 | esac |
| 5110 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5111 | (eval "$ac_compile") 2>conftest.er1 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5112 | ac_status=$? |
| 5113 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5114 | rm -f conftest.er1 |
| 5115 | cat conftest.err >&5 |
| 5116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5117 | (exit $ac_status); } && |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5118 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5119 | { (case "(($ac_try" in |
| 5120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5121 | *) ac_try_echo=$ac_try;; |
| 5122 | esac |
| 5123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5124 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5125 | ac_status=$? |
| 5126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5127 | (exit $ac_status); }; } && |
| 5128 | { ac_try='test -s conftest.$ac_objext' |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5129 | { (case "(($ac_try" in |
| 5130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5131 | *) ac_try_echo=$ac_try;; |
| 5132 | esac |
| 5133 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5134 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5135 | ac_status=$? |
| 5136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5137 | (exit $ac_status); }; }; then |
| 5138 | eval "$as_ac_Header=yes" |
| 5139 | else |
| 5140 | echo "$as_me: failed program was:" >&5 |
| 5141 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5142 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5143 | eval "$as_ac_Header=no" |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5144 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5145 | |
| 5146 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5147 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5148 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5149 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5150 | echo "${ECHO_T}$ac_res" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5151 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5152 | cat >>confdefs.h <<_ACEOF |
| 5153 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5154 | _ACEOF |
| 5155 | |
| 5156 | fi |
| 5157 | |
| 5158 | done |
| 5159 | |
| 5160 | |
| 5161 | |
| 5162 | for ac_header in dlfcn.h |
| 5163 | do |
| 5164 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5165 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 5166 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5167 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5168 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5169 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5170 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5171 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5172 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5173 | echo "${ECHO_T}$ac_res" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5174 | else |
| 5175 | # Is the header compilable? |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5176 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 5177 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5178 | cat >conftest.$ac_ext <<_ACEOF |
| 5179 | /* confdefs.h. */ |
| 5180 | _ACEOF |
| 5181 | cat confdefs.h >>conftest.$ac_ext |
| 5182 | cat >>conftest.$ac_ext <<_ACEOF |
| 5183 | /* end confdefs.h. */ |
| 5184 | $ac_includes_default |
| 5185 | #include <$ac_header> |
| 5186 | _ACEOF |
| 5187 | rm -f conftest.$ac_objext |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5188 | if { (ac_try="$ac_compile" |
| 5189 | case "(($ac_try" in |
| 5190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5191 | *) ac_try_echo=$ac_try;; |
| 5192 | esac |
| 5193 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5194 | (eval "$ac_compile") 2>conftest.er1 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5195 | ac_status=$? |
| 5196 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5197 | rm -f conftest.er1 |
| 5198 | cat conftest.err >&5 |
| 5199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5200 | (exit $ac_status); } && |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5201 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5202 | { (case "(($ac_try" in |
| 5203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5204 | *) ac_try_echo=$ac_try;; |
| 5205 | esac |
| 5206 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5207 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5208 | ac_status=$? |
| 5209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5210 | (exit $ac_status); }; } && |
| 5211 | { ac_try='test -s conftest.$ac_objext' |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5212 | { (case "(($ac_try" in |
| 5213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5214 | *) ac_try_echo=$ac_try;; |
| 5215 | esac |
| 5216 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5217 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5218 | ac_status=$? |
| 5219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5220 | (exit $ac_status); }; }; then |
| 5221 | ac_header_compiler=yes |
| 5222 | else |
| 5223 | echo "$as_me: failed program was:" >&5 |
| 5224 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5225 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5226 | ac_header_compiler=no |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5227 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5228 | |
| 5229 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5230 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5231 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5232 | |
| 5233 | # Is the header present? |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5234 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 5235 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5236 | cat >conftest.$ac_ext <<_ACEOF |
| 5237 | /* confdefs.h. */ |
| 5238 | _ACEOF |
| 5239 | cat confdefs.h >>conftest.$ac_ext |
| 5240 | cat >>conftest.$ac_ext <<_ACEOF |
| 5241 | /* end confdefs.h. */ |
| 5242 | #include <$ac_header> |
| 5243 | _ACEOF |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5244 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5245 | case "(($ac_try" in |
| 5246 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5247 | *) ac_try_echo=$ac_try;; |
| 5248 | esac |
| 5249 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5250 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5251 | ac_status=$? |
| 5252 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5253 | rm -f conftest.er1 |
| 5254 | cat conftest.err >&5 |
| 5255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5256 | (exit $ac_status); } >/dev/null; then |
| 5257 | if test -s conftest.err; then |
| 5258 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5259 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5260 | else |
| 5261 | ac_cpp_err= |
| 5262 | fi |
| 5263 | else |
| 5264 | ac_cpp_err=yes |
| 5265 | fi |
| 5266 | if test -z "$ac_cpp_err"; then |
| 5267 | ac_header_preproc=yes |
| 5268 | else |
| 5269 | echo "$as_me: failed program was:" >&5 |
| 5270 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5271 | |
| 5272 | ac_header_preproc=no |
| 5273 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5274 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5275 | rm -f conftest.err conftest.$ac_ext |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5276 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5277 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5278 | |
| 5279 | # So? What about this header? |
| 5280 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5281 | yes:no: ) |
| 5282 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5283 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5284 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 5285 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 5286 | ac_header_preproc=yes |
| 5287 | ;; |
| 5288 | no:yes:* ) |
| 5289 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 5290 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 5291 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 5292 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 5293 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 5294 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 5295 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 5296 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5297 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5298 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 5299 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 5300 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5301 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5302 | ;; |
| 5303 | esac |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5304 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5305 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5306 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5307 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5308 | else |
| 5309 | eval "$as_ac_Header=\$ac_header_preproc" |
| 5310 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5311 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5312 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5313 | echo "${ECHO_T}$ac_res" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5314 | |
| 5315 | fi |
| 5316 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5317 | cat >>confdefs.h <<_ACEOF |
| 5318 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5319 | _ACEOF |
| 5320 | |
| 5321 | fi |
| 5322 | |
| 5323 | done |
| 5324 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5325 | ac_ext=cpp |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5326 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5327 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5328 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5329 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5330 | if test -z "$CXX"; then |
| 5331 | if test -n "$CCC"; then |
| 5332 | CXX=$CCC |
| 5333 | else |
| 5334 | if test -n "$ac_tool_prefix"; then |
| 5335 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5336 | do |
| 5337 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5338 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5339 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5340 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5341 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 5342 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5343 | else |
| 5344 | if test -n "$CXX"; then |
| 5345 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 5346 | else |
| 5347 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5348 | for as_dir in $PATH |
| 5349 | do |
| 5350 | IFS=$as_save_IFS |
| 5351 | test -z "$as_dir" && as_dir=. |
| 5352 | for ac_exec_ext in '' $ac_executable_extensions; do |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5353 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5354 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 5355 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5356 | break 2 |
| 5357 | fi |
| 5358 | done |
| 5359 | done |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5360 | IFS=$as_save_IFS |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5361 | |
| 5362 | fi |
| 5363 | fi |
| 5364 | CXX=$ac_cv_prog_CXX |
| 5365 | if test -n "$CXX"; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5366 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 5367 | echo "${ECHO_T}$CXX" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5368 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5369 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5370 | echo "${ECHO_T}no" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5371 | fi |
| 5372 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5373 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5374 | test -n "$CXX" && break |
| 5375 | done |
| 5376 | fi |
| 5377 | if test -z "$CXX"; then |
| 5378 | ac_ct_CXX=$CXX |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5379 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5380 | do |
| 5381 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5382 | set dummy $ac_prog; ac_word=$2 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5383 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5384 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5385 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 5386 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5387 | else |
| 5388 | if test -n "$ac_ct_CXX"; then |
| 5389 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 5390 | else |
| 5391 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5392 | for as_dir in $PATH |
| 5393 | do |
| 5394 | IFS=$as_save_IFS |
| 5395 | test -z "$as_dir" && as_dir=. |
| 5396 | for ac_exec_ext in '' $ac_executable_extensions; do |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5397 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5398 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 5399 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5400 | break 2 |
| 5401 | fi |
| 5402 | done |
| 5403 | done |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5404 | IFS=$as_save_IFS |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5405 | |
| 5406 | fi |
| 5407 | fi |
| 5408 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 5409 | if test -n "$ac_ct_CXX"; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5410 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 5411 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5412 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5413 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5414 | echo "${ECHO_T}no" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5415 | fi |
| 5416 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5417 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5418 | test -n "$ac_ct_CXX" && break |
| 5419 | done |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5420 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5421 | if test "x$ac_ct_CXX" = x; then |
| 5422 | CXX="g++" |
| 5423 | else |
| 5424 | case $cross_compiling:$ac_tool_warned in |
| 5425 | yes:) |
| 5426 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5427 | whose name does not start with the host triplet. If you think this |
| 5428 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5429 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5430 | whose name does not start with the host triplet. If you think this |
| 5431 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5432 | ac_tool_warned=yes ;; |
| 5433 | esac |
| 5434 | CXX=$ac_ct_CXX |
| 5435 | fi |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5436 | fi |
| 5437 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5438 | fi |
| 5439 | fi |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5440 | # Provide some information about the compiler. |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5441 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5442 | ac_compiler=`set X $ac_compile; echo $2` |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5443 | { (ac_try="$ac_compiler --version >&5" |
| 5444 | case "(($ac_try" in |
| 5445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5446 | *) ac_try_echo=$ac_try;; |
| 5447 | esac |
| 5448 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5449 | (eval "$ac_compiler --version >&5") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5450 | ac_status=$? |
| 5451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5452 | (exit $ac_status); } |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5453 | { (ac_try="$ac_compiler -v >&5" |
| 5454 | case "(($ac_try" in |
| 5455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5456 | *) ac_try_echo=$ac_try;; |
| 5457 | esac |
| 5458 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5459 | (eval "$ac_compiler -v >&5") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5460 | ac_status=$? |
| 5461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5462 | (exit $ac_status); } |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5463 | { (ac_try="$ac_compiler -V >&5" |
| 5464 | case "(($ac_try" in |
| 5465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5466 | *) ac_try_echo=$ac_try;; |
| 5467 | esac |
| 5468 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5469 | (eval "$ac_compiler -V >&5") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5470 | ac_status=$? |
| 5471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5472 | (exit $ac_status); } |
| 5473 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5474 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 5475 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5476 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 5477 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5478 | else |
| 5479 | cat >conftest.$ac_ext <<_ACEOF |
| 5480 | /* confdefs.h. */ |
| 5481 | _ACEOF |
| 5482 | cat confdefs.h >>conftest.$ac_ext |
| 5483 | cat >>conftest.$ac_ext <<_ACEOF |
| 5484 | /* end confdefs.h. */ |
| 5485 | |
| 5486 | int |
| 5487 | main () |
| 5488 | { |
| 5489 | #ifndef __GNUC__ |
| 5490 | choke me |
| 5491 | #endif |
| 5492 | |
| 5493 | ; |
| 5494 | return 0; |
| 5495 | } |
| 5496 | _ACEOF |
| 5497 | rm -f conftest.$ac_objext |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5498 | if { (ac_try="$ac_compile" |
| 5499 | case "(($ac_try" in |
| 5500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5501 | *) ac_try_echo=$ac_try;; |
| 5502 | esac |
| 5503 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5504 | (eval "$ac_compile") 2>conftest.er1 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5505 | ac_status=$? |
| 5506 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5507 | rm -f conftest.er1 |
| 5508 | cat conftest.err >&5 |
| 5509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5510 | (exit $ac_status); } && |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5511 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 5512 | { (case "(($ac_try" in |
| 5513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5514 | *) ac_try_echo=$ac_try;; |
| 5515 | esac |
| 5516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5517 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5518 | ac_status=$? |
| 5519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5520 | (exit $ac_status); }; } && |
| 5521 | { ac_try='test -s conftest.$ac_objext' |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5522 | { (case "(($ac_try" in |
| 5523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5524 | *) ac_try_echo=$ac_try;; |
| 5525 | esac |
| 5526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5527 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5528 | ac_status=$? |
| 5529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5530 | (exit $ac_status); }; }; then |
| 5531 | ac_compiler_gnu=yes |
| 5532 | else |
| 5533 | echo "$as_me: failed program was:" >&5 |
| 5534 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5535 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5536 | ac_compiler_gnu=no |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5537 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5538 | |
| 5539 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5540 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 5541 | |
| 5542 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5543 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 5544 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5545 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 5546 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 5547 | ac_save_CXXFLAGS=$CXXFLAGS |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5548 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 5549 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5550 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 5551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5552 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5553 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 5554 | ac_cxx_werror_flag=yes |
| 5555 | ac_cv_prog_cxx_g=no |
| 5556 | CXXFLAGS="-g" |
| 5557 | cat >conftest.$ac_ext <<_ACEOF |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5558 | /* confdefs.h. */ |
| 5559 | _ACEOF |
| 5560 | cat confdefs.h >>conftest.$ac_ext |
| 5561 | cat >>conftest.$ac_ext <<_ACEOF |
| 5562 | /* end confdefs.h. */ |
| 5563 | |
| 5564 | int |
| 5565 | main () |
| 5566 | { |
| 5567 | |
| 5568 | ; |
| 5569 | return 0; |
| 5570 | } |
| 5571 | _ACEOF |
| 5572 | rm -f conftest.$ac_objext |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5573 | if { (ac_try="$ac_compile" |
| 5574 | case "(($ac_try" in |
| 5575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5576 | *) ac_try_echo=$ac_try;; |
| 5577 | esac |
| 5578 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5579 | (eval "$ac_compile") 2>conftest.er1 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5580 | ac_status=$? |
| 5581 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5582 | rm -f conftest.er1 |
| 5583 | cat conftest.err >&5 |
| 5584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5585 | (exit $ac_status); } && |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5586 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 5587 | { (case "(($ac_try" in |
| 5588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5589 | *) ac_try_echo=$ac_try;; |
| 5590 | esac |
| 5591 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5592 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5593 | ac_status=$? |
| 5594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5595 | (exit $ac_status); }; } && |
| 5596 | { ac_try='test -s conftest.$ac_objext' |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 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_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5603 | ac_status=$? |
| 5604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5605 | (exit $ac_status); }; }; then |
| 5606 | ac_cv_prog_cxx_g=yes |
| 5607 | else |
| 5608 | echo "$as_me: failed program was:" >&5 |
| 5609 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5610 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5611 | CXXFLAGS="" |
| 5612 | cat >conftest.$ac_ext <<_ACEOF |
| 5613 | /* confdefs.h. */ |
| 5614 | _ACEOF |
| 5615 | cat confdefs.h >>conftest.$ac_ext |
| 5616 | cat >>conftest.$ac_ext <<_ACEOF |
| 5617 | /* end confdefs.h. */ |
| 5618 | |
| 5619 | int |
| 5620 | main () |
| 5621 | { |
| 5622 | |
| 5623 | ; |
| 5624 | return 0; |
| 5625 | } |
| 5626 | _ACEOF |
| 5627 | rm -f conftest.$ac_objext |
| 5628 | if { (ac_try="$ac_compile" |
| 5629 | case "(($ac_try" in |
| 5630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5631 | *) ac_try_echo=$ac_try;; |
| 5632 | esac |
| 5633 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5634 | (eval "$ac_compile") 2>conftest.er1 |
| 5635 | ac_status=$? |
| 5636 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5637 | rm -f conftest.er1 |
| 5638 | cat conftest.err >&5 |
| 5639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5640 | (exit $ac_status); } && |
| 5641 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 5642 | { (case "(($ac_try" in |
| 5643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5644 | *) ac_try_echo=$ac_try;; |
| 5645 | esac |
| 5646 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5647 | (eval "$ac_try") 2>&5 |
| 5648 | ac_status=$? |
| 5649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5650 | (exit $ac_status); }; } && |
| 5651 | { ac_try='test -s conftest.$ac_objext' |
| 5652 | { (case "(($ac_try" in |
| 5653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5654 | *) ac_try_echo=$ac_try;; |
| 5655 | esac |
| 5656 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5657 | (eval "$ac_try") 2>&5 |
| 5658 | ac_status=$? |
| 5659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5660 | (exit $ac_status); }; }; then |
| 5661 | : |
| 5662 | else |
| 5663 | echo "$as_me: failed program was:" >&5 |
| 5664 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5665 | |
| 5666 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 5667 | CXXFLAGS="-g" |
| 5668 | cat >conftest.$ac_ext <<_ACEOF |
| 5669 | /* confdefs.h. */ |
| 5670 | _ACEOF |
| 5671 | cat confdefs.h >>conftest.$ac_ext |
| 5672 | cat >>conftest.$ac_ext <<_ACEOF |
| 5673 | /* end confdefs.h. */ |
| 5674 | |
| 5675 | int |
| 5676 | main () |
| 5677 | { |
| 5678 | |
| 5679 | ; |
| 5680 | return 0; |
| 5681 | } |
| 5682 | _ACEOF |
| 5683 | rm -f conftest.$ac_objext |
| 5684 | if { (ac_try="$ac_compile" |
| 5685 | case "(($ac_try" in |
| 5686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5687 | *) ac_try_echo=$ac_try;; |
| 5688 | esac |
| 5689 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5690 | (eval "$ac_compile") 2>conftest.er1 |
| 5691 | ac_status=$? |
| 5692 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5693 | rm -f conftest.er1 |
| 5694 | cat conftest.err >&5 |
| 5695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5696 | (exit $ac_status); } && |
| 5697 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 5698 | { (case "(($ac_try" in |
| 5699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5700 | *) ac_try_echo=$ac_try;; |
| 5701 | esac |
| 5702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5703 | (eval "$ac_try") 2>&5 |
| 5704 | ac_status=$? |
| 5705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5706 | (exit $ac_status); }; } && |
| 5707 | { ac_try='test -s conftest.$ac_objext' |
| 5708 | { (case "(($ac_try" in |
| 5709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5710 | *) ac_try_echo=$ac_try;; |
| 5711 | esac |
| 5712 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5713 | (eval "$ac_try") 2>&5 |
| 5714 | ac_status=$? |
| 5715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5716 | (exit $ac_status); }; }; then |
| 5717 | ac_cv_prog_cxx_g=yes |
| 5718 | else |
| 5719 | echo "$as_me: failed program was:" >&5 |
| 5720 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5721 | |
| 5722 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5723 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5724 | |
| 5725 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5726 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5727 | |
| 5728 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5729 | fi |
| 5730 | |
| 5731 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5732 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 5733 | fi |
| 5734 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 5735 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5736 | if test "$ac_test_CXXFLAGS" = set; then |
| 5737 | CXXFLAGS=$ac_save_CXXFLAGS |
| 5738 | elif test $ac_cv_prog_cxx_g = yes; then |
| 5739 | if test "$GXX" = yes; then |
| 5740 | CXXFLAGS="-g -O2" |
| 5741 | else |
| 5742 | CXXFLAGS="-g" |
| 5743 | fi |
| 5744 | else |
| 5745 | if test "$GXX" = yes; then |
| 5746 | CXXFLAGS="-O2" |
| 5747 | else |
| 5748 | CXXFLAGS= |
| 5749 | fi |
| 5750 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5751 | ac_ext=cpp |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5752 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5753 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5754 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5755 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5756 | |
| 5757 | depcc="$CXX" am_compiler_list= |
| 5758 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5759 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 5760 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5761 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
| 5762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5763 | else |
| 5764 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 5765 | # We make a subdir and do the tests there. Otherwise we can end up |
| 5766 | # making bogus files that we don't know about and never remove. For |
| 5767 | # instance it was reported that on HP-UX the gcc test will end up |
| 5768 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 5769 | # in D'. |
| 5770 | mkdir conftest.dir |
| 5771 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 5772 | # using a relative directory. |
| 5773 | cp "$am_depcomp" conftest.dir |
| 5774 | cd conftest.dir |
| 5775 | # We will build objects and dependencies in a subdirectory because |
| 5776 | # it helps to detect inapplicable dependency modes. For instance |
| 5777 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 5778 | # side effect of compilation, but ICC will put the dependencies in |
| 5779 | # the current directory while Tru64 will put them in the object |
| 5780 | # directory. |
| 5781 | mkdir sub |
| 5782 | |
| 5783 | am_cv_CXX_dependencies_compiler_type=none |
| 5784 | if test "$am_compiler_list" = ""; then |
| 5785 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 5786 | fi |
| 5787 | for depmode in $am_compiler_list; do |
| 5788 | # Setup a source with many dependencies, because some compilers |
| 5789 | # like to wrap large dependency lists on column 80 (with \), and |
| 5790 | # we should not choose a depcomp mode which is confused by this. |
| 5791 | # |
| 5792 | # We need to recreate these files for each test, as the compiler may |
| 5793 | # overwrite some of them when testing with obscure command lines. |
| 5794 | # This happens at least with the AIX C compiler. |
| 5795 | : > sub/conftest.c |
| 5796 | for i in 1 2 3 4 5 6; do |
| 5797 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 5798 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 5799 | # Solaris 8's {/usr,}/bin/sh. |
| 5800 | touch sub/conftst$i.h |
| 5801 | done |
| 5802 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 5803 | |
| 5804 | case $depmode in |
| 5805 | nosideeffect) |
| 5806 | # after this tag, mechanisms are not by side-effect, so they'll |
| 5807 | # only be used when explicitly requested |
| 5808 | if test "x$enable_dependency_tracking" = xyes; then |
| 5809 | continue |
| 5810 | else |
| 5811 | break |
| 5812 | fi |
| 5813 | ;; |
| 5814 | none) break ;; |
| 5815 | esac |
| 5816 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 5817 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 5818 | # handle `-M -o', and we need to detect this. |
| 5819 | if depmode=$depmode \ |
| 5820 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| 5821 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 5822 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| 5823 | >/dev/null 2>conftest.err && |
| 5824 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 5825 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
| 5826 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 5827 | # icc doesn't choke on unknown options, it will just issue warnings |
| 5828 | # or remarks (even with -Werror). So we grep stderr for any message |
| 5829 | # that says an option was ignored or not supported. |
| 5830 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 5831 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 5832 | # The diagnosis changed in icc 8.0: |
| 5833 | # icc: Command line remark: option '-MP' not supported |
| 5834 | if (grep 'ignoring option' conftest.err || |
| 5835 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 5836 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 5837 | break |
| 5838 | fi |
| 5839 | fi |
| 5840 | done |
| 5841 | |
| 5842 | cd .. |
| 5843 | rm -rf conftest.dir |
| 5844 | else |
| 5845 | am_cv_CXX_dependencies_compiler_type=none |
| 5846 | fi |
| 5847 | |
| 5848 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5849 | { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 5850 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5851 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 5852 | |
| 5853 | |
| 5854 | |
| 5855 | if |
| 5856 | test "x$enable_dependency_tracking" != xno \ |
| 5857 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 5858 | am__fastdepCXX_TRUE= |
| 5859 | am__fastdepCXX_FALSE='#' |
| 5860 | else |
| 5861 | am__fastdepCXX_TRUE='#' |
| 5862 | am__fastdepCXX_FALSE= |
| 5863 | fi |
| 5864 | |
| 5865 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 5866 | |
| 5867 | |
| 5868 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 5869 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 5870 | (test "X$CXX" != "Xg++"))) ; then |
| 5871 | ac_ext=cpp |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5872 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5873 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5874 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5875 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5876 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 5877 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5878 | if test -z "$CXXCPP"; then |
| 5879 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
| 5880 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5881 | else |
| 5882 | # Double quotes because CXXCPP needs to be expanded |
| 5883 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 5884 | do |
| 5885 | ac_preproc_ok=false |
| 5886 | for ac_cxx_preproc_warn_flag in '' yes |
| 5887 | do |
| 5888 | # Use a header file that comes with gcc, so configuring glibc |
| 5889 | # with a fresh cross-compiler works. |
| 5890 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5891 | # <limits.h> exists even on freestanding compilers. |
| 5892 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5893 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5894 | cat >conftest.$ac_ext <<_ACEOF |
| 5895 | /* confdefs.h. */ |
| 5896 | _ACEOF |
| 5897 | cat confdefs.h >>conftest.$ac_ext |
| 5898 | cat >>conftest.$ac_ext <<_ACEOF |
| 5899 | /* end confdefs.h. */ |
| 5900 | #ifdef __STDC__ |
| 5901 | # include <limits.h> |
| 5902 | #else |
| 5903 | # include <assert.h> |
| 5904 | #endif |
| 5905 | Syntax error |
| 5906 | _ACEOF |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5907 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5908 | case "(($ac_try" in |
| 5909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5910 | *) ac_try_echo=$ac_try;; |
| 5911 | esac |
| 5912 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5913 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5914 | ac_status=$? |
| 5915 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5916 | rm -f conftest.er1 |
| 5917 | cat conftest.err >&5 |
| 5918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5919 | (exit $ac_status); } >/dev/null; then |
| 5920 | if test -s conftest.err; then |
| 5921 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 5922 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 5923 | else |
| 5924 | ac_cpp_err= |
| 5925 | fi |
| 5926 | else |
| 5927 | ac_cpp_err=yes |
| 5928 | fi |
| 5929 | if test -z "$ac_cpp_err"; then |
| 5930 | : |
| 5931 | else |
| 5932 | echo "$as_me: failed program was:" >&5 |
| 5933 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5934 | |
| 5935 | # Broken: fails on valid input. |
| 5936 | continue |
| 5937 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5938 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5939 | rm -f conftest.err conftest.$ac_ext |
| 5940 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5941 | # OK, works on sane cases. Now check whether nonexistent headers |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5942 | # can be detected and how. |
| 5943 | cat >conftest.$ac_ext <<_ACEOF |
| 5944 | /* confdefs.h. */ |
| 5945 | _ACEOF |
| 5946 | cat confdefs.h >>conftest.$ac_ext |
| 5947 | cat >>conftest.$ac_ext <<_ACEOF |
| 5948 | /* end confdefs.h. */ |
| 5949 | #include <ac_nonexistent.h> |
| 5950 | _ACEOF |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5951 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5952 | case "(($ac_try" in |
| 5953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5954 | *) ac_try_echo=$ac_try;; |
| 5955 | esac |
| 5956 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5957 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5958 | ac_status=$? |
| 5959 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5960 | rm -f conftest.er1 |
| 5961 | cat conftest.err >&5 |
| 5962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5963 | (exit $ac_status); } >/dev/null; then |
| 5964 | if test -s conftest.err; then |
| 5965 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 5966 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 5967 | else |
| 5968 | ac_cpp_err= |
| 5969 | fi |
| 5970 | else |
| 5971 | ac_cpp_err=yes |
| 5972 | fi |
| 5973 | if test -z "$ac_cpp_err"; then |
| 5974 | # Broken: success on invalid input. |
| 5975 | continue |
| 5976 | else |
| 5977 | echo "$as_me: failed program was:" >&5 |
| 5978 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5979 | |
| 5980 | # Passes both tests. |
| 5981 | ac_preproc_ok=: |
| 5982 | break |
| 5983 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5984 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5985 | rm -f conftest.err conftest.$ac_ext |
| 5986 | |
| 5987 | done |
| 5988 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5989 | rm -f conftest.err conftest.$ac_ext |
| 5990 | if $ac_preproc_ok; then |
| 5991 | break |
| 5992 | fi |
| 5993 | |
| 5994 | done |
| 5995 | ac_cv_prog_CXXCPP=$CXXCPP |
| 5996 | |
| 5997 | fi |
| 5998 | CXXCPP=$ac_cv_prog_CXXCPP |
| 5999 | else |
| 6000 | ac_cv_prog_CXXCPP=$CXXCPP |
| 6001 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6002 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 6003 | echo "${ECHO_T}$CXXCPP" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6004 | ac_preproc_ok=false |
| 6005 | for ac_cxx_preproc_warn_flag in '' yes |
| 6006 | do |
| 6007 | # Use a header file that comes with gcc, so configuring glibc |
| 6008 | # with a fresh cross-compiler works. |
| 6009 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6010 | # <limits.h> exists even on freestanding compilers. |
| 6011 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 6012 | # not just through cpp. "Syntax error" is here to catch this case. |
| 6013 | cat >conftest.$ac_ext <<_ACEOF |
| 6014 | /* confdefs.h. */ |
| 6015 | _ACEOF |
| 6016 | cat confdefs.h >>conftest.$ac_ext |
| 6017 | cat >>conftest.$ac_ext <<_ACEOF |
| 6018 | /* end confdefs.h. */ |
| 6019 | #ifdef __STDC__ |
| 6020 | # include <limits.h> |
| 6021 | #else |
| 6022 | # include <assert.h> |
| 6023 | #endif |
| 6024 | Syntax error |
| 6025 | _ACEOF |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6026 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6027 | case "(($ac_try" in |
| 6028 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6029 | *) ac_try_echo=$ac_try;; |
| 6030 | esac |
| 6031 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6032 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6033 | ac_status=$? |
| 6034 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6035 | rm -f conftest.er1 |
| 6036 | cat conftest.err >&5 |
| 6037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6038 | (exit $ac_status); } >/dev/null; then |
| 6039 | if test -s conftest.err; then |
| 6040 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 6041 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 6042 | else |
| 6043 | ac_cpp_err= |
| 6044 | fi |
| 6045 | else |
| 6046 | ac_cpp_err=yes |
| 6047 | fi |
| 6048 | if test -z "$ac_cpp_err"; then |
| 6049 | : |
| 6050 | else |
| 6051 | echo "$as_me: failed program was:" >&5 |
| 6052 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6053 | |
| 6054 | # Broken: fails on valid input. |
| 6055 | continue |
| 6056 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6057 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6058 | rm -f conftest.err conftest.$ac_ext |
| 6059 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6060 | # OK, works on sane cases. Now check whether nonexistent headers |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6061 | # can be detected and how. |
| 6062 | cat >conftest.$ac_ext <<_ACEOF |
| 6063 | /* confdefs.h. */ |
| 6064 | _ACEOF |
| 6065 | cat confdefs.h >>conftest.$ac_ext |
| 6066 | cat >>conftest.$ac_ext <<_ACEOF |
| 6067 | /* end confdefs.h. */ |
| 6068 | #include <ac_nonexistent.h> |
| 6069 | _ACEOF |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6070 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6071 | case "(($ac_try" in |
| 6072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6073 | *) ac_try_echo=$ac_try;; |
| 6074 | esac |
| 6075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6076 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6077 | ac_status=$? |
| 6078 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6079 | rm -f conftest.er1 |
| 6080 | cat conftest.err >&5 |
| 6081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6082 | (exit $ac_status); } >/dev/null; then |
| 6083 | if test -s conftest.err; then |
| 6084 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 6085 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 6086 | else |
| 6087 | ac_cpp_err= |
| 6088 | fi |
| 6089 | else |
| 6090 | ac_cpp_err=yes |
| 6091 | fi |
| 6092 | if test -z "$ac_cpp_err"; then |
| 6093 | # Broken: success on invalid input. |
| 6094 | continue |
| 6095 | else |
| 6096 | echo "$as_me: failed program was:" >&5 |
| 6097 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6098 | |
| 6099 | # Passes both tests. |
| 6100 | ac_preproc_ok=: |
| 6101 | break |
| 6102 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6103 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6104 | rm -f conftest.err conftest.$ac_ext |
| 6105 | |
| 6106 | done |
| 6107 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 6108 | rm -f conftest.err conftest.$ac_ext |
| 6109 | if $ac_preproc_ok; then |
| 6110 | : |
| 6111 | else |
| 6112 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 6113 | See \`config.log' for more details." >&5 |
| 6114 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 6115 | See \`config.log' for more details." >&2;} |
| 6116 | { (exit 1); exit 1; }; } |
| 6117 | fi |
| 6118 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6119 | ac_ext=cpp |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6120 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 6121 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6122 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6123 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 6124 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 6125 | fi |
| 6126 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6127 | |
| 6128 | ac_ext=f |
| 6129 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 6130 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6131 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 6132 | if test -n "$ac_tool_prefix"; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6133 | 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 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6134 | do |
| 6135 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6136 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6137 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6138 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6139 | if test "${ac_cv_prog_F77+set}" = set; then |
| 6140 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6141 | else |
| 6142 | if test -n "$F77"; then |
| 6143 | ac_cv_prog_F77="$F77" # Let the user override the test. |
| 6144 | else |
| 6145 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6146 | for as_dir in $PATH |
| 6147 | do |
| 6148 | IFS=$as_save_IFS |
| 6149 | test -z "$as_dir" && as_dir=. |
| 6150 | for ac_exec_ext in '' $ac_executable_extensions; do |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6151 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6152 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
| 6153 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6154 | break 2 |
| 6155 | fi |
| 6156 | done |
| 6157 | done |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6158 | IFS=$as_save_IFS |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6159 | |
| 6160 | fi |
| 6161 | fi |
| 6162 | F77=$ac_cv_prog_F77 |
| 6163 | if test -n "$F77"; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6164 | { echo "$as_me:$LINENO: result: $F77" >&5 |
| 6165 | echo "${ECHO_T}$F77" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6166 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6167 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6168 | echo "${ECHO_T}no" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6169 | fi |
| 6170 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6171 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6172 | test -n "$F77" && break |
| 6173 | done |
| 6174 | fi |
| 6175 | if test -z "$F77"; then |
| 6176 | ac_ct_F77=$F77 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6177 | 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 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6178 | do |
| 6179 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6180 | set dummy $ac_prog; ac_word=$2 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6181 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6182 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6183 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
| 6184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6185 | else |
| 6186 | if test -n "$ac_ct_F77"; then |
| 6187 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
| 6188 | else |
| 6189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6190 | for as_dir in $PATH |
| 6191 | do |
| 6192 | IFS=$as_save_IFS |
| 6193 | test -z "$as_dir" && as_dir=. |
| 6194 | for ac_exec_ext in '' $ac_executable_extensions; do |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6195 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6196 | ac_cv_prog_ac_ct_F77="$ac_prog" |
| 6197 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6198 | break 2 |
| 6199 | fi |
| 6200 | done |
| 6201 | done |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6202 | IFS=$as_save_IFS |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6203 | |
| 6204 | fi |
| 6205 | fi |
| 6206 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
| 6207 | if test -n "$ac_ct_F77"; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6208 | { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
| 6209 | echo "${ECHO_T}$ac_ct_F77" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6210 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6211 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6212 | echo "${ECHO_T}no" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6213 | fi |
| 6214 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6215 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6216 | test -n "$ac_ct_F77" && break |
| 6217 | done |
| 6218 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6219 | if test "x$ac_ct_F77" = x; then |
| 6220 | F77="" |
| 6221 | else |
| 6222 | case $cross_compiling:$ac_tool_warned in |
| 6223 | yes:) |
| 6224 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6225 | whose name does not start with the host triplet. If you think this |
| 6226 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6227 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6228 | whose name does not start with the host triplet. If you think this |
| 6229 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6230 | ac_tool_warned=yes ;; |
| 6231 | esac |
| 6232 | F77=$ac_ct_F77 |
| 6233 | fi |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6234 | fi |
| 6235 | |
| 6236 | |
| 6237 | # Provide some information about the compiler. |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6238 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6239 | ac_compiler=`set X $ac_compile; echo $2` |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6240 | { (ac_try="$ac_compiler --version >&5" |
| 6241 | case "(($ac_try" in |
| 6242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6243 | *) ac_try_echo=$ac_try;; |
| 6244 | esac |
| 6245 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6246 | (eval "$ac_compiler --version >&5") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6247 | ac_status=$? |
| 6248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6249 | (exit $ac_status); } |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6250 | { (ac_try="$ac_compiler -v >&5" |
| 6251 | case "(($ac_try" in |
| 6252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6253 | *) ac_try_echo=$ac_try;; |
| 6254 | esac |
| 6255 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6256 | (eval "$ac_compiler -v >&5") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6257 | ac_status=$? |
| 6258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6259 | (exit $ac_status); } |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6260 | { (ac_try="$ac_compiler -V >&5" |
| 6261 | case "(($ac_try" in |
| 6262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6263 | *) ac_try_echo=$ac_try;; |
| 6264 | esac |
| 6265 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6266 | (eval "$ac_compiler -V >&5") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6267 | ac_status=$? |
| 6268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6269 | (exit $ac_status); } |
| 6270 | rm -f a.out |
| 6271 | |
| 6272 | # If we don't use `.F' as extension, the preprocessor is not run on the |
| 6273 | # input file. (Note that this only needs to work for GNU compilers.) |
| 6274 | ac_save_ext=$ac_ext |
| 6275 | ac_ext=F |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6276 | { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
| 6277 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6278 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
| 6279 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6280 | else |
| 6281 | cat >conftest.$ac_ext <<_ACEOF |
| 6282 | program main |
| 6283 | #ifndef __GNUC__ |
| 6284 | choke me |
| 6285 | #endif |
| 6286 | |
| 6287 | end |
| 6288 | _ACEOF |
| 6289 | rm -f conftest.$ac_objext |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6290 | if { (ac_try="$ac_compile" |
| 6291 | case "(($ac_try" in |
| 6292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6293 | *) ac_try_echo=$ac_try;; |
| 6294 | esac |
| 6295 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6296 | (eval "$ac_compile") 2>conftest.er1 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6297 | ac_status=$? |
| 6298 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6299 | rm -f conftest.er1 |
| 6300 | cat conftest.err >&5 |
| 6301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6302 | (exit $ac_status); } && |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6303 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 6304 | { (case "(($ac_try" in |
| 6305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6306 | *) ac_try_echo=$ac_try;; |
| 6307 | esac |
| 6308 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6309 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6310 | ac_status=$? |
| 6311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6312 | (exit $ac_status); }; } && |
| 6313 | { ac_try='test -s conftest.$ac_objext' |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6314 | { (case "(($ac_try" in |
| 6315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6316 | *) ac_try_echo=$ac_try;; |
| 6317 | esac |
| 6318 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6319 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6320 | ac_status=$? |
| 6321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6322 | (exit $ac_status); }; }; then |
| 6323 | ac_compiler_gnu=yes |
| 6324 | else |
| 6325 | echo "$as_me: failed program was:" >&5 |
| 6326 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6327 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6328 | ac_compiler_gnu=no |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6329 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6330 | |
| 6331 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6332 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
| 6333 | |
| 6334 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6335 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
| 6336 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6337 | ac_ext=$ac_save_ext |
| 6338 | ac_test_FFLAGS=${FFLAGS+set} |
| 6339 | ac_save_FFLAGS=$FFLAGS |
| 6340 | FFLAGS= |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6341 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
| 6342 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6343 | if test "${ac_cv_prog_f77_g+set}" = set; then |
| 6344 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6345 | else |
| 6346 | FFLAGS=-g |
| 6347 | cat >conftest.$ac_ext <<_ACEOF |
| 6348 | program main |
| 6349 | |
| 6350 | end |
| 6351 | _ACEOF |
| 6352 | rm -f conftest.$ac_objext |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6353 | if { (ac_try="$ac_compile" |
| 6354 | case "(($ac_try" in |
| 6355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6356 | *) ac_try_echo=$ac_try;; |
| 6357 | esac |
| 6358 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6359 | (eval "$ac_compile") 2>conftest.er1 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6360 | ac_status=$? |
| 6361 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6362 | rm -f conftest.er1 |
| 6363 | cat conftest.err >&5 |
| 6364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6365 | (exit $ac_status); } && |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6366 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 6367 | { (case "(($ac_try" in |
| 6368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6369 | *) ac_try_echo=$ac_try;; |
| 6370 | esac |
| 6371 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6372 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6373 | ac_status=$? |
| 6374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6375 | (exit $ac_status); }; } && |
| 6376 | { ac_try='test -s conftest.$ac_objext' |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6377 | { (case "(($ac_try" in |
| 6378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6379 | *) ac_try_echo=$ac_try;; |
| 6380 | esac |
| 6381 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6382 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6383 | ac_status=$? |
| 6384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6385 | (exit $ac_status); }; }; then |
| 6386 | ac_cv_prog_f77_g=yes |
| 6387 | else |
| 6388 | echo "$as_me: failed program was:" >&5 |
| 6389 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6390 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6391 | ac_cv_prog_f77_g=no |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6392 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6393 | |
| 6394 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6395 | |
| 6396 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6397 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
| 6398 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6399 | if test "$ac_test_FFLAGS" = set; then |
| 6400 | FFLAGS=$ac_save_FFLAGS |
| 6401 | elif test $ac_cv_prog_f77_g = yes; then |
| 6402 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
| 6403 | FFLAGS="-g -O2" |
| 6404 | else |
| 6405 | FFLAGS="-g" |
| 6406 | fi |
| 6407 | else |
| 6408 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
| 6409 | FFLAGS="-O2" |
| 6410 | else |
| 6411 | FFLAGS= |
| 6412 | fi |
| 6413 | fi |
| 6414 | |
| 6415 | G77=`test $ac_compiler_gnu = yes && echo yes` |
| 6416 | ac_ext=c |
| 6417 | ac_cpp='$CPP $CPPFLAGS' |
| 6418 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6419 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6420 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6421 | |
| 6422 | |
| 6423 | |
| 6424 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| 6425 | |
| 6426 | # find the maximum length of command line arguments |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6427 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 6428 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6429 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| 6430 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6431 | else |
| 6432 | i=0 |
| 6433 | teststring="ABCD" |
| 6434 | |
| 6435 | case $build_os in |
| 6436 | msdosdjgpp*) |
| 6437 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 6438 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 6439 | # during glob expansion). Even if it were fixed, the result of this |
| 6440 | # check would be larger than it should be. |
| 6441 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 6442 | ;; |
| 6443 | |
| 6444 | gnu*) |
| 6445 | # Under GNU Hurd, this test is not required because there is |
| 6446 | # no limit to the length of command line arguments. |
| 6447 | # Libtool will interpret -1 as no limit whatsoever |
| 6448 | lt_cv_sys_max_cmd_len=-1; |
| 6449 | ;; |
| 6450 | |
| 6451 | cygwin* | mingw*) |
| 6452 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 6453 | # about 5 minutes as the teststring grows exponentially. |
| 6454 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 6455 | # you end up with a "frozen" computer, even though with patience |
| 6456 | # the test eventually succeeds (with a max line length of 256k). |
| 6457 | # Instead, let's just punt: use the minimum linelength reported by |
| 6458 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 6459 | lt_cv_sys_max_cmd_len=8192; |
| 6460 | ;; |
| 6461 | |
| 6462 | amigaos*) |
| 6463 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 6464 | # So we just punt and use a minimum line length of 8192. |
| 6465 | lt_cv_sys_max_cmd_len=8192; |
| 6466 | ;; |
| 6467 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 6468 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 6469 | # This has been around since 386BSD, at least. Likely further. |
| 6470 | if test -x /sbin/sysctl; then |
| 6471 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 6472 | elif test -x /usr/sbin/sysctl; then |
| 6473 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 6474 | else |
| 6475 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 6476 | fi |
| 6477 | # And add a safety zone |
| 6478 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 6479 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 6480 | ;; |
| 6481 | |
| 6482 | interix*) |
| 6483 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 6484 | lt_cv_sys_max_cmd_len=196608 |
| 6485 | ;; |
| 6486 | |
| 6487 | osf*) |
| 6488 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 6489 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 6490 | # nice to cause kernel panics so lets avoid the loop below. |
| 6491 | # First set a reasonable default. |
| 6492 | lt_cv_sys_max_cmd_len=16384 |
| 6493 | # |
| 6494 | if test -x /sbin/sysconfig; then |
| 6495 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 6496 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 6497 | esac |
| 6498 | fi |
| 6499 | ;; |
| 6500 | sco3.2v5*) |
| 6501 | lt_cv_sys_max_cmd_len=102400 |
| 6502 | ;; |
| 6503 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 6504 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 6505 | if test -n "$kargmax"; then |
| 6506 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 6507 | else |
| 6508 | lt_cv_sys_max_cmd_len=32768 |
| 6509 | fi |
| 6510 | ;; |
| 6511 | *) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6512 | # If test is not a shell built-in, we'll probably end up computing a |
| 6513 | # maximum length that is only half of the actual maximum length, but |
| 6514 | # we can't tell. |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 6515 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 6516 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6517 | = "XX$teststring") >/dev/null 2>&1 && |
| 6518 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
| 6519 | lt_cv_sys_max_cmd_len=$new_result && |
| 6520 | test $i != 17 # 1/2 MB should be enough |
| 6521 | do |
| 6522 | i=`expr $i + 1` |
| 6523 | teststring=$teststring$teststring |
| 6524 | done |
| 6525 | teststring= |
| 6526 | # Add a significant safety factor because C++ compilers can tack on massive |
| 6527 | # amounts of additional arguments before passing them to the linker. |
| 6528 | # It appears as though 1/2 is a usable value. |
| 6529 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 6530 | ;; |
| 6531 | esac |
| 6532 | |
| 6533 | fi |
| 6534 | |
| 6535 | if test -n $lt_cv_sys_max_cmd_len ; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6536 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 6537 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6538 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6539 | { echo "$as_me:$LINENO: result: none" >&5 |
| 6540 | echo "${ECHO_T}none" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6541 | fi |
| 6542 | |
| 6543 | |
| 6544 | |
| 6545 | |
| 6546 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6547 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 6548 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6549 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 6550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6551 | else |
| 6552 | |
| 6553 | # These are sane defaults that work on at least a few old systems. |
| 6554 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 6555 | |
| 6556 | # Character class describing NM global symbol codes. |
| 6557 | symcode='[BCDEGRST]' |
| 6558 | |
| 6559 | # Regexp to match symbols that can be accessed directly from C. |
| 6560 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 6561 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6562 | # Transform an extracted symbol line into a proper C declaration |
| 6563 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 6564 | |
| 6565 | # Transform an extracted symbol line into symbol name and symbol address |
| 6566 | 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'" |
| 6567 | |
| 6568 | # Define system-specific variables. |
| 6569 | case $host_os in |
| 6570 | aix*) |
| 6571 | symcode='[BCDT]' |
| 6572 | ;; |
| 6573 | cygwin* | mingw* | pw32*) |
| 6574 | symcode='[ABCDGISTW]' |
| 6575 | ;; |
| 6576 | hpux*) # Its linker distinguishes data from code symbols |
| 6577 | if test "$host_cpu" = ia64; then |
| 6578 | symcode='[ABCDEGRST]' |
| 6579 | fi |
| 6580 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 6581 | 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'" |
| 6582 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 6583 | linux*) |
| 6584 | if test "$host_cpu" = ia64; then |
| 6585 | symcode='[ABCDGIRSTW]' |
| 6586 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 6587 | 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'" |
| 6588 | fi |
| 6589 | ;; |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6590 | irix* | nonstopux*) |
| 6591 | symcode='[BCDEGRST]' |
| 6592 | ;; |
| 6593 | osf*) |
| 6594 | symcode='[BCDEGQRST]' |
| 6595 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 6596 | solaris*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6597 | symcode='[BDRT]' |
| 6598 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 6599 | sco3.2v5*) |
| 6600 | symcode='[DT]' |
| 6601 | ;; |
| 6602 | sysv4.2uw2*) |
| 6603 | symcode='[DT]' |
| 6604 | ;; |
| 6605 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 6606 | symcode='[ABDT]' |
| 6607 | ;; |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6608 | sysv4) |
| 6609 | symcode='[DFNSTU]' |
| 6610 | ;; |
| 6611 | esac |
| 6612 | |
| 6613 | # Handle CRLF in mingw tool chain |
| 6614 | opt_cr= |
| 6615 | case $build_os in |
| 6616 | mingw*) |
| 6617 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 6618 | ;; |
| 6619 | esac |
| 6620 | |
| 6621 | # If we're using GNU nm, then use its standard symbol codes. |
| 6622 | case `$NM -V 2>&1` in |
| 6623 | *GNU* | *'with BFD'*) |
| 6624 | symcode='[ABCDGIRSTW]' ;; |
| 6625 | esac |
| 6626 | |
| 6627 | # Try without a prefix undercore, then with it. |
| 6628 | for ac_symprfx in "" "_"; do |
| 6629 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 6630 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 6631 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 6632 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6633 | # Write the raw and C identifiers. |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 6634 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6635 | |
| 6636 | # Check to see that the pipe works correctly. |
| 6637 | pipe_works=no |
| 6638 | |
| 6639 | rm -f conftest* |
| 6640 | cat > conftest.$ac_ext <<EOF |
| 6641 | #ifdef __cplusplus |
| 6642 | extern "C" { |
| 6643 | #endif |
| 6644 | char nm_test_var; |
| 6645 | void nm_test_func(){} |
| 6646 | #ifdef __cplusplus |
| 6647 | } |
| 6648 | #endif |
| 6649 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 6650 | EOF |
| 6651 | |
| 6652 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6653 | (eval $ac_compile) 2>&5 |
| 6654 | ac_status=$? |
| 6655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6656 | (exit $ac_status); }; then |
| 6657 | # Now try to grab the symbols. |
| 6658 | nlist=conftest.nm |
| 6659 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 6660 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 6661 | ac_status=$? |
| 6662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6663 | (exit $ac_status); } && test -s "$nlist"; then |
| 6664 | # Try sorting and uniquifying the output. |
| 6665 | if sort "$nlist" | uniq > "$nlist"T; then |
| 6666 | mv -f "$nlist"T "$nlist" |
| 6667 | else |
| 6668 | rm -f "$nlist"T |
| 6669 | fi |
| 6670 | |
| 6671 | # Make sure that we snagged all the symbols we need. |
| 6672 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 6673 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 6674 | cat <<EOF > conftest.$ac_ext |
| 6675 | #ifdef __cplusplus |
| 6676 | extern "C" { |
| 6677 | #endif |
| 6678 | |
| 6679 | EOF |
| 6680 | # Now generate the symbol file. |
| 6681 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 6682 | |
| 6683 | cat <<EOF >> conftest.$ac_ext |
| 6684 | #if defined (__STDC__) && __STDC__ |
| 6685 | # define lt_ptr_t void * |
| 6686 | #else |
| 6687 | # define lt_ptr_t char * |
| 6688 | # define const |
| 6689 | #endif |
| 6690 | |
| 6691 | /* The mapping between symbol names and symbols. */ |
| 6692 | const struct { |
| 6693 | const char *name; |
| 6694 | lt_ptr_t address; |
| 6695 | } |
| 6696 | lt_preloaded_symbols[] = |
| 6697 | { |
| 6698 | EOF |
| 6699 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 6700 | cat <<\EOF >> conftest.$ac_ext |
| 6701 | {0, (lt_ptr_t) 0} |
| 6702 | }; |
| 6703 | |
| 6704 | #ifdef __cplusplus |
| 6705 | } |
| 6706 | #endif |
| 6707 | EOF |
| 6708 | # Now try linking the two files. |
| 6709 | mv conftest.$ac_objext conftstm.$ac_objext |
| 6710 | lt_save_LIBS="$LIBS" |
| 6711 | lt_save_CFLAGS="$CFLAGS" |
| 6712 | LIBS="conftstm.$ac_objext" |
| 6713 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 6714 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6715 | (eval $ac_link) 2>&5 |
| 6716 | ac_status=$? |
| 6717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6718 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 6719 | pipe_works=yes |
| 6720 | fi |
| 6721 | LIBS="$lt_save_LIBS" |
| 6722 | CFLAGS="$lt_save_CFLAGS" |
| 6723 | else |
| 6724 | echo "cannot find nm_test_func in $nlist" >&5 |
| 6725 | fi |
| 6726 | else |
| 6727 | echo "cannot find nm_test_var in $nlist" >&5 |
| 6728 | fi |
| 6729 | else |
| 6730 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 6731 | fi |
| 6732 | else |
| 6733 | echo "$progname: failed program was:" >&5 |
| 6734 | cat conftest.$ac_ext >&5 |
| 6735 | fi |
| 6736 | rm -f conftest* conftst* |
| 6737 | |
| 6738 | # Do not use the global_symbol_pipe unless it works. |
| 6739 | if test "$pipe_works" = yes; then |
| 6740 | break |
| 6741 | else |
| 6742 | lt_cv_sys_global_symbol_pipe= |
| 6743 | fi |
| 6744 | done |
| 6745 | |
| 6746 | fi |
| 6747 | |
| 6748 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 6749 | lt_cv_sys_global_symbol_to_cdecl= |
| 6750 | fi |
| 6751 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6752 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 6753 | echo "${ECHO_T}failed" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6754 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6755 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 6756 | echo "${ECHO_T}ok" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6757 | fi |
| 6758 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6759 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 6760 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6761 | if test "${lt_cv_objdir+set}" = set; then |
| 6762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6763 | else |
| 6764 | rm -f .libs 2>/dev/null |
| 6765 | mkdir .libs 2>/dev/null |
| 6766 | if test -d .libs; then |
| 6767 | lt_cv_objdir=.libs |
| 6768 | else |
| 6769 | # MS-DOS does not allow filenames that begin with a dot. |
| 6770 | lt_cv_objdir=_libs |
| 6771 | fi |
| 6772 | rmdir .libs 2>/dev/null |
| 6773 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6774 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
| 6775 | echo "${ECHO_T}$lt_cv_objdir" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6776 | objdir=$lt_cv_objdir |
| 6777 | |
| 6778 | |
| 6779 | |
| 6780 | |
| 6781 | |
| 6782 | case $host_os in |
| 6783 | aix3*) |
| 6784 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 6785 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 6786 | # vanish in a puff of smoke. |
| 6787 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 6788 | COLLECT_NAMES= |
| 6789 | export COLLECT_NAMES |
| 6790 | fi |
| 6791 | ;; |
| 6792 | esac |
| 6793 | |
| 6794 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 6795 | # metacharacters that are still active within double-quoted strings. |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 6796 | Xsed='sed -e 1s/^X//' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6797 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 6798 | |
| 6799 | # Same as above, but do not quote variable references. |
| 6800 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 6801 | |
| 6802 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 6803 | # double_quote_subst'ed string. |
| 6804 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 6805 | |
| 6806 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 6807 | no_glob_subst='s/\*/\\\*/g' |
| 6808 | |
| 6809 | # Constants: |
| 6810 | rm="rm -f" |
| 6811 | |
| 6812 | # Global variables: |
| 6813 | default_ofile=libtool |
| 6814 | can_build_shared=yes |
| 6815 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 6816 | # All known linkers require a `.a' archive for static linking (except MSVC, |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6817 | # which needs '.lib'). |
| 6818 | libext=a |
| 6819 | ltmain="$ac_aux_dir/ltmain.sh" |
| 6820 | ofile="$default_ofile" |
| 6821 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 6822 | |
| 6823 | if test -n "$ac_tool_prefix"; then |
| 6824 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 6825 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6826 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6827 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6828 | if test "${ac_cv_prog_AR+set}" = set; then |
| 6829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6830 | else |
| 6831 | if test -n "$AR"; then |
| 6832 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 6833 | else |
| 6834 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6835 | for as_dir in $PATH |
| 6836 | do |
| 6837 | IFS=$as_save_IFS |
| 6838 | test -z "$as_dir" && as_dir=. |
| 6839 | for ac_exec_ext in '' $ac_executable_extensions; do |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6840 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6841 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 6842 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6843 | break 2 |
| 6844 | fi |
| 6845 | done |
| 6846 | done |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6847 | IFS=$as_save_IFS |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6848 | |
| 6849 | fi |
| 6850 | fi |
| 6851 | AR=$ac_cv_prog_AR |
| 6852 | if test -n "$AR"; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6853 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 6854 | echo "${ECHO_T}$AR" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6855 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6856 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6857 | echo "${ECHO_T}no" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6858 | fi |
| 6859 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6860 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6861 | fi |
| 6862 | if test -z "$ac_cv_prog_AR"; then |
| 6863 | ac_ct_AR=$AR |
| 6864 | # Extract the first word of "ar", so it can be a program name with args. |
| 6865 | set dummy ar; ac_word=$2 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6866 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6867 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6868 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 6869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6870 | else |
| 6871 | if test -n "$ac_ct_AR"; then |
| 6872 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 6873 | else |
| 6874 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6875 | for as_dir in $PATH |
| 6876 | do |
| 6877 | IFS=$as_save_IFS |
| 6878 | test -z "$as_dir" && as_dir=. |
| 6879 | for ac_exec_ext in '' $ac_executable_extensions; do |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6880 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6881 | ac_cv_prog_ac_ct_AR="ar" |
| 6882 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6883 | break 2 |
| 6884 | fi |
| 6885 | done |
| 6886 | done |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6887 | IFS=$as_save_IFS |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6888 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6889 | fi |
| 6890 | fi |
| 6891 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 6892 | if test -n "$ac_ct_AR"; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6893 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 6894 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6895 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6896 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6897 | echo "${ECHO_T}no" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6898 | fi |
| 6899 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6900 | if test "x$ac_ct_AR" = x; then |
| 6901 | AR="false" |
| 6902 | else |
| 6903 | case $cross_compiling:$ac_tool_warned in |
| 6904 | yes:) |
| 6905 | { echo "$as_me:$LINENO: 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." >&5 |
| 6908 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6909 | whose name does not start with the host triplet. If you think this |
| 6910 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6911 | ac_tool_warned=yes ;; |
| 6912 | esac |
| 6913 | AR=$ac_ct_AR |
| 6914 | fi |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6915 | else |
| 6916 | AR="$ac_cv_prog_AR" |
| 6917 | fi |
| 6918 | |
| 6919 | if test -n "$ac_tool_prefix"; then |
| 6920 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6921 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6922 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6923 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6924 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 6925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6926 | else |
| 6927 | if test -n "$RANLIB"; then |
| 6928 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6929 | else |
| 6930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6931 | for as_dir in $PATH |
| 6932 | do |
| 6933 | IFS=$as_save_IFS |
| 6934 | test -z "$as_dir" && as_dir=. |
| 6935 | for ac_exec_ext in '' $ac_executable_extensions; do |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6936 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6937 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 6938 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6939 | break 2 |
| 6940 | fi |
| 6941 | done |
| 6942 | done |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6943 | IFS=$as_save_IFS |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6944 | |
| 6945 | fi |
| 6946 | fi |
| 6947 | RANLIB=$ac_cv_prog_RANLIB |
| 6948 | if test -n "$RANLIB"; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6949 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 6950 | echo "${ECHO_T}$RANLIB" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6951 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6952 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6953 | echo "${ECHO_T}no" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6954 | fi |
| 6955 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6956 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6957 | fi |
| 6958 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6959 | ac_ct_RANLIB=$RANLIB |
| 6960 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6961 | set dummy ranlib; ac_word=$2 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6962 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6963 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6964 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 6965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6966 | else |
| 6967 | if test -n "$ac_ct_RANLIB"; then |
| 6968 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6969 | else |
| 6970 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6971 | for as_dir in $PATH |
| 6972 | do |
| 6973 | IFS=$as_save_IFS |
| 6974 | test -z "$as_dir" && as_dir=. |
| 6975 | for ac_exec_ext in '' $ac_executable_extensions; do |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6976 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6977 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 6978 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6979 | break 2 |
| 6980 | fi |
| 6981 | done |
| 6982 | done |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6983 | IFS=$as_save_IFS |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6984 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6985 | fi |
| 6986 | fi |
| 6987 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6988 | if test -n "$ac_ct_RANLIB"; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6989 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 6990 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6991 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6992 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6993 | echo "${ECHO_T}no" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6994 | fi |
| 6995 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6996 | if test "x$ac_ct_RANLIB" = x; then |
| 6997 | RANLIB=":" |
| 6998 | else |
| 6999 | case $cross_compiling:$ac_tool_warned in |
| 7000 | yes:) |
| 7001 | { echo "$as_me:$LINENO: 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." >&5 |
| 7004 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 7005 | whose name does not start with the host triplet. If you think this |
| 7006 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 7007 | ac_tool_warned=yes ;; |
| 7008 | esac |
| 7009 | RANLIB=$ac_ct_RANLIB |
| 7010 | fi |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7011 | else |
| 7012 | RANLIB="$ac_cv_prog_RANLIB" |
| 7013 | fi |
| 7014 | |
| 7015 | if test -n "$ac_tool_prefix"; then |
| 7016 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 7017 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7018 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7019 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7020 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 7021 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7022 | else |
| 7023 | if test -n "$STRIP"; then |
| 7024 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 7025 | else |
| 7026 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7027 | for as_dir in $PATH |
| 7028 | do |
| 7029 | IFS=$as_save_IFS |
| 7030 | test -z "$as_dir" && as_dir=. |
| 7031 | for ac_exec_ext in '' $ac_executable_extensions; do |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7032 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7033 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 7034 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7035 | break 2 |
| 7036 | fi |
| 7037 | done |
| 7038 | done |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7039 | IFS=$as_save_IFS |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7040 | |
| 7041 | fi |
| 7042 | fi |
| 7043 | STRIP=$ac_cv_prog_STRIP |
| 7044 | if test -n "$STRIP"; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7045 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 7046 | echo "${ECHO_T}$STRIP" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7047 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7048 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7049 | echo "${ECHO_T}no" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7050 | fi |
| 7051 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7052 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7053 | fi |
| 7054 | if test -z "$ac_cv_prog_STRIP"; then |
| 7055 | ac_ct_STRIP=$STRIP |
| 7056 | # Extract the first word of "strip", so it can be a program name with args. |
| 7057 | set dummy strip; ac_word=$2 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7058 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7059 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7060 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 7061 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7062 | else |
| 7063 | if test -n "$ac_ct_STRIP"; then |
| 7064 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 7065 | else |
| 7066 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7067 | for as_dir in $PATH |
| 7068 | do |
| 7069 | IFS=$as_save_IFS |
| 7070 | test -z "$as_dir" && as_dir=. |
| 7071 | for ac_exec_ext in '' $ac_executable_extensions; do |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7072 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7073 | ac_cv_prog_ac_ct_STRIP="strip" |
| 7074 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7075 | break 2 |
| 7076 | fi |
| 7077 | done |
| 7078 | done |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7079 | IFS=$as_save_IFS |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7080 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7081 | fi |
| 7082 | fi |
| 7083 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 7084 | if test -n "$ac_ct_STRIP"; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7085 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 7086 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7087 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7088 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7089 | echo "${ECHO_T}no" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7090 | fi |
| 7091 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7092 | if test "x$ac_ct_STRIP" = x; then |
| 7093 | STRIP=":" |
| 7094 | else |
| 7095 | case $cross_compiling:$ac_tool_warned in |
| 7096 | yes:) |
| 7097 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 7098 | whose name does not start with the host triplet. If you think this |
| 7099 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 7100 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 7101 | whose name does not start with the host triplet. If you think this |
| 7102 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 7103 | ac_tool_warned=yes ;; |
| 7104 | esac |
| 7105 | STRIP=$ac_ct_STRIP |
| 7106 | fi |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7107 | else |
| 7108 | STRIP="$ac_cv_prog_STRIP" |
| 7109 | fi |
| 7110 | |
| 7111 | |
| 7112 | old_CC="$CC" |
| 7113 | old_CFLAGS="$CFLAGS" |
| 7114 | |
| 7115 | # Set sane defaults for various variables |
| 7116 | test -z "$AR" && AR=ar |
| 7117 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 7118 | test -z "$AS" && AS=as |
| 7119 | test -z "$CC" && CC=cc |
| 7120 | test -z "$LTCC" && LTCC=$CC |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 7121 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7122 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 7123 | test -z "$LD" && LD=ld |
| 7124 | test -z "$LN_S" && LN_S="ln -s" |
| 7125 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 7126 | test -z "$NM" && NM=nm |
| 7127 | test -z "$SED" && SED=sed |
| 7128 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 7129 | test -z "$RANLIB" && RANLIB=: |
| 7130 | test -z "$STRIP" && STRIP=: |
| 7131 | test -z "$ac_objext" && ac_objext=o |
| 7132 | |
| 7133 | # Determine commands to create old-style static archives. |
| 7134 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 7135 | old_postinstall_cmds='chmod 644 $oldlib' |
| 7136 | old_postuninstall_cmds= |
| 7137 | |
| 7138 | if test -n "$RANLIB"; then |
| 7139 | case $host_os in |
| 7140 | openbsd*) |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 7141 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7142 | ;; |
| 7143 | *) |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 7144 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7145 | ;; |
| 7146 | esac |
| 7147 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 7148 | fi |
| 7149 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 7150 | for cc_temp in $compiler""; do |
| 7151 | case $cc_temp in |
| 7152 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 7153 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 7154 | \-*) ;; |
| 7155 | *) break;; |
| 7156 | esac |
| 7157 | done |
| 7158 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 7159 | |
| 7160 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7161 | # Only perform the check for file, if the check method requires it |
| 7162 | case $deplibs_check_method in |
| 7163 | file_magic*) |
| 7164 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7165 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 7166 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7167 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 7168 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7169 | else |
| 7170 | case $MAGIC_CMD in |
| 7171 | [\\/*] | ?:[\\/]*) |
| 7172 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 7173 | ;; |
| 7174 | *) |
| 7175 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 7176 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 7177 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 7178 | for ac_dir in $ac_dummy; do |
| 7179 | IFS="$lt_save_ifs" |
| 7180 | test -z "$ac_dir" && ac_dir=. |
| 7181 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 7182 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 7183 | if test -n "$file_magic_test_file"; then |
| 7184 | case $deplibs_check_method in |
| 7185 | "file_magic "*) |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 7186 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7187 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7188 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 7189 | $EGREP "$file_magic_regex" > /dev/null; then |
| 7190 | : |
| 7191 | else |
| 7192 | cat <<EOF 1>&2 |
| 7193 | |
| 7194 | *** Warning: the command libtool uses to detect shared libraries, |
| 7195 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 7196 | *** The result is that libtool may fail to recognize shared libraries |
| 7197 | *** as such. This will affect the creation of libtool libraries that |
| 7198 | *** depend on shared libraries, but programs linked with such libtool |
| 7199 | *** libraries will work regardless of this problem. Nevertheless, you |
| 7200 | *** may want to report the problem to your system manager and/or to |
| 7201 | *** bug-libtool@gnu.org |
| 7202 | |
| 7203 | EOF |
| 7204 | fi ;; |
| 7205 | esac |
| 7206 | fi |
| 7207 | break |
| 7208 | fi |
| 7209 | done |
| 7210 | IFS="$lt_save_ifs" |
| 7211 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 7212 | ;; |
| 7213 | esac |
| 7214 | fi |
| 7215 | |
| 7216 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7217 | if test -n "$MAGIC_CMD"; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7218 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 7219 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7220 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7221 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7222 | echo "${ECHO_T}no" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7223 | fi |
| 7224 | |
| 7225 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 7226 | if test -n "$ac_tool_prefix"; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7227 | { echo "$as_me:$LINENO: checking for file" >&5 |
| 7228 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7229 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 7230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7231 | else |
| 7232 | case $MAGIC_CMD in |
| 7233 | [\\/*] | ?:[\\/]*) |
| 7234 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 7235 | ;; |
| 7236 | *) |
| 7237 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 7238 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 7239 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 7240 | for ac_dir in $ac_dummy; do |
| 7241 | IFS="$lt_save_ifs" |
| 7242 | test -z "$ac_dir" && ac_dir=. |
| 7243 | if test -f $ac_dir/file; then |
| 7244 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 7245 | if test -n "$file_magic_test_file"; then |
| 7246 | case $deplibs_check_method in |
| 7247 | "file_magic "*) |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 7248 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7249 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7250 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 7251 | $EGREP "$file_magic_regex" > /dev/null; then |
| 7252 | : |
| 7253 | else |
| 7254 | cat <<EOF 1>&2 |
| 7255 | |
| 7256 | *** Warning: the command libtool uses to detect shared libraries, |
| 7257 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 7258 | *** The result is that libtool may fail to recognize shared libraries |
| 7259 | *** as such. This will affect the creation of libtool libraries that |
| 7260 | *** depend on shared libraries, but programs linked with such libtool |
| 7261 | *** libraries will work regardless of this problem. Nevertheless, you |
| 7262 | *** may want to report the problem to your system manager and/or to |
| 7263 | *** bug-libtool@gnu.org |
| 7264 | |
| 7265 | EOF |
| 7266 | fi ;; |
| 7267 | esac |
| 7268 | fi |
| 7269 | break |
| 7270 | fi |
| 7271 | done |
| 7272 | IFS="$lt_save_ifs" |
| 7273 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 7274 | ;; |
| 7275 | esac |
| 7276 | fi |
| 7277 | |
| 7278 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7279 | if test -n "$MAGIC_CMD"; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7280 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 7281 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7282 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7283 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7284 | echo "${ECHO_T}no" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7285 | fi |
| 7286 | |
| 7287 | else |
| 7288 | MAGIC_CMD=: |
| 7289 | fi |
| 7290 | fi |
| 7291 | |
| 7292 | fi |
| 7293 | ;; |
| 7294 | esac |
| 7295 | |
| 7296 | enable_dlopen=no |
| 7297 | enable_win32_dll=no |
| 7298 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7299 | # Check whether --enable-libtool-lock was given. |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7300 | if test "${enable_libtool_lock+set}" = set; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7301 | enableval=$enable_libtool_lock; |
| 7302 | fi |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7303 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7304 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 7305 | |
| 7306 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7307 | # Check whether --with-pic was given. |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7308 | if test "${with_pic+set}" = set; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7309 | withval=$with_pic; pic_mode="$withval" |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7310 | else |
| 7311 | pic_mode=default |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7312 | fi |
| 7313 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7314 | test -z "$pic_mode" && pic_mode=default |
| 7315 | |
| 7316 | # Use C for the default configuration in the libtool script |
| 7317 | tagname= |
| 7318 | lt_save_CC="$CC" |
| 7319 | ac_ext=c |
| 7320 | ac_cpp='$CPP $CPPFLAGS' |
| 7321 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7322 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7323 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7324 | |
| 7325 | |
| 7326 | # Source file extension for C test sources. |
| 7327 | ac_ext=c |
| 7328 | |
| 7329 | # Object file extension for compiled C test sources. |
| 7330 | objext=o |
| 7331 | objext=$objext |
| 7332 | |
| 7333 | # Code to be used in simple compile tests |
| 7334 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 7335 | |
| 7336 | # Code to be used in simple link tests |
| 7337 | lt_simple_link_test_code='int main(){return(0);}\n' |
| 7338 | |
| 7339 | |
| 7340 | # If no C compiler was specified, use CC. |
| 7341 | LTCC=${LTCC-"$CC"} |
| 7342 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 7343 | # If no C compiler flags were specified, use CFLAGS. |
| 7344 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 7345 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7346 | # Allow CC to be a program name with arguments. |
| 7347 | compiler=$CC |
| 7348 | |
| 7349 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 7350 | # save warnings/boilerplate of simple test code |
| 7351 | ac_outfile=conftest.$ac_objext |
| 7352 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 7353 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 7354 | _lt_compiler_boilerplate=`cat conftest.err` |
| 7355 | $rm conftest* |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7356 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 7357 | ac_outfile=conftest.$ac_objext |
| 7358 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 7359 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 7360 | _lt_linker_boilerplate=`cat conftest.err` |
| 7361 | $rm conftest* |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7362 | |
| 7363 | |
| 7364 | |
| 7365 | lt_prog_compiler_no_builtin_flag= |
| 7366 | |
| 7367 | if test "$GCC" = yes; then |
| 7368 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 7369 | |
| 7370 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7371 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 7372 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7373 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 7374 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7375 | else |
| 7376 | lt_cv_prog_compiler_rtti_exceptions=no |
| 7377 | ac_outfile=conftest.$ac_objext |
| 7378 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 7379 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 7380 | # Insert the option either (1) after the last *FLAGS variable, or |
| 7381 | # (2) before a word containing "conftest.", or (3) at the end. |
| 7382 | # Note that $ac_compile itself does not contain backslashes and begins |
| 7383 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 7384 | # The option is referenced via a variable to avoid confusing sed. |
| 7385 | lt_compile=`echo "$ac_compile" | $SED \ |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 7386 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7387 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 7388 | -e 's:$: $lt_compiler_flag:'` |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 7389 | (eval echo "\"\$as_me:7389: $lt_compile\"" >&5) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7390 | (eval "$lt_compile" 2>conftest.err) |
| 7391 | ac_status=$? |
| 7392 | cat conftest.err >&5 |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 7393 | echo "$as_me:7393: \$? = $ac_status" >&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7394 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 7395 | # The compiler can only warn and ignore the option if not recognized |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 7396 | # So say no if there are warnings other than the usual output. |
| 7397 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 7398 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 7399 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7400 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 7401 | fi |
| 7402 | fi |
| 7403 | $rm conftest* |
| 7404 | |
| 7405 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7406 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 7407 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7408 | |
| 7409 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 7410 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 7411 | else |
| 7412 | : |
| 7413 | fi |
| 7414 | |
| 7415 | fi |
| 7416 | |
| 7417 | lt_prog_compiler_wl= |
| 7418 | lt_prog_compiler_pic= |
| 7419 | lt_prog_compiler_static= |
| 7420 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7421 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 7422 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7423 | |
| 7424 | if test "$GCC" = yes; then |
| 7425 | lt_prog_compiler_wl='-Wl,' |
| 7426 | lt_prog_compiler_static='-static' |
| 7427 | |
| 7428 | case $host_os in |
| 7429 | aix*) |
| 7430 | # All AIX code is PIC. |
| 7431 | if test "$host_cpu" = ia64; then |
| 7432 | # AIX 5 now supports IA64 processor |
| 7433 | lt_prog_compiler_static='-Bstatic' |
| 7434 | fi |
| 7435 | ;; |
| 7436 | |
| 7437 | amigaos*) |
| 7438 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 7439 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 7440 | # like `-m68040'. |
| 7441 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 7442 | ;; |
| 7443 | |
| 7444 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 7445 | # PIC is the default for these OSes. |
| 7446 | ;; |
| 7447 | |
| 7448 | mingw* | pw32* | os2*) |
| 7449 | # This hack is so that the source file can tell whether it is being |
| 7450 | # built for inclusion in a dll (and should export symbols for example). |
| 7451 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 7452 | ;; |
| 7453 | |
| 7454 | darwin* | rhapsody*) |
| 7455 | # PIC is the default on this platform |
| 7456 | # Common symbols not allowed in MH_DYLIB files |
| 7457 | lt_prog_compiler_pic='-fno-common' |
| 7458 | ;; |
| 7459 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 7460 | interix3*) |
| 7461 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 7462 | # Instead, we relocate shared libraries at runtime. |
| 7463 | ;; |
| 7464 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7465 | msdosdjgpp*) |
| 7466 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 7467 | # on systems that don't support them. |
| 7468 | lt_prog_compiler_can_build_shared=no |
| 7469 | enable_shared=no |
| 7470 | ;; |
| 7471 | |
| 7472 | sysv4*MP*) |
| 7473 | if test -d /usr/nec; then |
| 7474 | lt_prog_compiler_pic=-Kconform_pic |
| 7475 | fi |
| 7476 | ;; |
| 7477 | |
| 7478 | hpux*) |
| 7479 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 7480 | # not for PA HP-UX. |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 7481 | case $host_cpu in |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7482 | hppa*64*|ia64*) |
| 7483 | # +Z the default |
| 7484 | ;; |
| 7485 | *) |
| 7486 | lt_prog_compiler_pic='-fPIC' |
| 7487 | ;; |
| 7488 | esac |
| 7489 | ;; |
| 7490 | |
| 7491 | *) |
| 7492 | lt_prog_compiler_pic='-fPIC' |
| 7493 | ;; |
| 7494 | esac |
| 7495 | else |
| 7496 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 7497 | case $host_os in |
| 7498 | aix*) |
| 7499 | lt_prog_compiler_wl='-Wl,' |
| 7500 | if test "$host_cpu" = ia64; then |
| 7501 | # AIX 5 now supports IA64 processor |
| 7502 | lt_prog_compiler_static='-Bstatic' |
| 7503 | else |
| 7504 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 7505 | fi |
| 7506 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 7507 | darwin*) |
| 7508 | # PIC is the default on this platform |
| 7509 | # Common symbols not allowed in MH_DYLIB files |
| 7510 | case $cc_basename in |
| 7511 | xlc*) |
| 7512 | lt_prog_compiler_pic='-qnocommon' |
| 7513 | lt_prog_compiler_wl='-Wl,' |
| 7514 | ;; |
| 7515 | esac |
| 7516 | ;; |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7517 | |
| 7518 | mingw* | pw32* | os2*) |
| 7519 | # This hack is so that the source file can tell whether it is being |
| 7520 | # built for inclusion in a dll (and should export symbols for example). |
| 7521 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 7522 | ;; |
| 7523 | |
| 7524 | hpux9* | hpux10* | hpux11*) |
| 7525 | lt_prog_compiler_wl='-Wl,' |
| 7526 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 7527 | # not for PA HP-UX. |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 7528 | case $host_cpu in |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7529 | hppa*64*|ia64*) |
| 7530 | # +Z the default |
| 7531 | ;; |
| 7532 | *) |
| 7533 | lt_prog_compiler_pic='+Z' |
| 7534 | ;; |
| 7535 | esac |
| 7536 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 7537 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
| 7538 | ;; |
| 7539 | |
| 7540 | irix5* | irix6* | nonstopux*) |
| 7541 | lt_prog_compiler_wl='-Wl,' |
| 7542 | # PIC (with -KPIC) is the default. |
| 7543 | lt_prog_compiler_static='-non_shared' |
| 7544 | ;; |
| 7545 | |
| 7546 | newsos6) |
| 7547 | lt_prog_compiler_pic='-KPIC' |
| 7548 | lt_prog_compiler_static='-Bstatic' |
| 7549 | ;; |
| 7550 | |
| 7551 | linux*) |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 7552 | case $cc_basename in |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7553 | icc* | ecc*) |
| 7554 | lt_prog_compiler_wl='-Wl,' |
| 7555 | lt_prog_compiler_pic='-KPIC' |
| 7556 | lt_prog_compiler_static='-static' |
| 7557 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 7558 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 7559 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 7560 | # which looks to be a dead project) |
| 7561 | lt_prog_compiler_wl='-Wl,' |
| 7562 | lt_prog_compiler_pic='-fpic' |
| 7563 | lt_prog_compiler_static='-Bstatic' |
| 7564 | ;; |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7565 | ccc*) |
| 7566 | lt_prog_compiler_wl='-Wl,' |
| 7567 | # All Alpha code is PIC. |
| 7568 | lt_prog_compiler_static='-non_shared' |
| 7569 | ;; |
| 7570 | esac |
| 7571 | ;; |
| 7572 | |
| 7573 | osf3* | osf4* | osf5*) |
| 7574 | lt_prog_compiler_wl='-Wl,' |
| 7575 | # All OSF/1 code is PIC. |
| 7576 | lt_prog_compiler_static='-non_shared' |
| 7577 | ;; |
| 7578 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7579 | solaris*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7580 | lt_prog_compiler_pic='-KPIC' |
| 7581 | lt_prog_compiler_static='-Bstatic' |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 7582 | case $cc_basename in |
| 7583 | f77* | f90* | f95*) |
| 7584 | lt_prog_compiler_wl='-Qoption ld ';; |
| 7585 | *) |
| 7586 | lt_prog_compiler_wl='-Wl,';; |
| 7587 | esac |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7588 | ;; |
| 7589 | |
| 7590 | sunos4*) |
| 7591 | lt_prog_compiler_wl='-Qoption ld ' |
| 7592 | lt_prog_compiler_pic='-PIC' |
| 7593 | lt_prog_compiler_static='-Bstatic' |
| 7594 | ;; |
| 7595 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 7596 | sysv4 | sysv4.2uw2* | sysv4.3*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7597 | lt_prog_compiler_wl='-Wl,' |
| 7598 | lt_prog_compiler_pic='-KPIC' |
| 7599 | lt_prog_compiler_static='-Bstatic' |
| 7600 | ;; |
| 7601 | |
| 7602 | sysv4*MP*) |
| 7603 | if test -d /usr/nec ;then |
| 7604 | lt_prog_compiler_pic='-Kconform_pic' |
| 7605 | lt_prog_compiler_static='-Bstatic' |
| 7606 | fi |
| 7607 | ;; |
| 7608 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 7609 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 7610 | lt_prog_compiler_wl='-Wl,' |
| 7611 | lt_prog_compiler_pic='-KPIC' |
| 7612 | lt_prog_compiler_static='-Bstatic' |
| 7613 | ;; |
| 7614 | |
| 7615 | unicos*) |
| 7616 | lt_prog_compiler_wl='-Wl,' |
| 7617 | lt_prog_compiler_can_build_shared=no |
| 7618 | ;; |
| 7619 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7620 | uts4*) |
| 7621 | lt_prog_compiler_pic='-pic' |
| 7622 | lt_prog_compiler_static='-Bstatic' |
| 7623 | ;; |
| 7624 | |
| 7625 | *) |
| 7626 | lt_prog_compiler_can_build_shared=no |
| 7627 | ;; |
| 7628 | esac |
| 7629 | fi |
| 7630 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7631 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
| 7632 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7633 | |
| 7634 | # |
| 7635 | # Check to make sure the PIC flag actually works. |
| 7636 | # |
| 7637 | if test -n "$lt_prog_compiler_pic"; then |
| 7638 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7639 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 7640 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7641 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
| 7642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7643 | else |
| 7644 | lt_prog_compiler_pic_works=no |
| 7645 | ac_outfile=conftest.$ac_objext |
| 7646 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 7647 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 7648 | # Insert the option either (1) after the last *FLAGS variable, or |
| 7649 | # (2) before a word containing "conftest.", or (3) at the end. |
| 7650 | # Note that $ac_compile itself does not contain backslashes and begins |
| 7651 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 7652 | # The option is referenced via a variable to avoid confusing sed. |
| 7653 | lt_compile=`echo "$ac_compile" | $SED \ |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 7654 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7655 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 7656 | -e 's:$: $lt_compiler_flag:'` |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 7657 | (eval echo "\"\$as_me:7657: $lt_compile\"" >&5) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7658 | (eval "$lt_compile" 2>conftest.err) |
| 7659 | ac_status=$? |
| 7660 | cat conftest.err >&5 |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 7661 | echo "$as_me:7661: \$? = $ac_status" >&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7662 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 7663 | # The compiler can only warn and ignore the option if not recognized |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 7664 | # So say no if there are warnings other than the usual output. |
| 7665 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 7666 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 7667 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7668 | lt_prog_compiler_pic_works=yes |
| 7669 | fi |
| 7670 | fi |
| 7671 | $rm conftest* |
| 7672 | |
| 7673 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7674 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
| 7675 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7676 | |
| 7677 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
| 7678 | case $lt_prog_compiler_pic in |
| 7679 | "" | " "*) ;; |
| 7680 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 7681 | esac |
| 7682 | else |
| 7683 | lt_prog_compiler_pic= |
| 7684 | lt_prog_compiler_can_build_shared=no |
| 7685 | fi |
| 7686 | |
| 7687 | fi |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 7688 | case $host_os in |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7689 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 7690 | *djgpp*) |
| 7691 | lt_prog_compiler_pic= |
| 7692 | ;; |
| 7693 | *) |
| 7694 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 7695 | ;; |
| 7696 | esac |
| 7697 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 7698 | # |
| 7699 | # Check to make sure the static flag actually works. |
| 7700 | # |
| 7701 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 7702 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 7703 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 7704 | if test "${lt_prog_compiler_static_works+set}" = set; then |
| 7705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7706 | else |
| 7707 | lt_prog_compiler_static_works=no |
| 7708 | save_LDFLAGS="$LDFLAGS" |
| 7709 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 7710 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 7711 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 7712 | # The linker can only warn and ignore the option if not recognized |
| 7713 | # So say no if there are warnings |
| 7714 | if test -s conftest.err; then |
| 7715 | # Append any errors to the config.log. |
| 7716 | cat conftest.err 1>&5 |
| 7717 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 7718 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 7719 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 7720 | lt_prog_compiler_static_works=yes |
| 7721 | fi |
| 7722 | else |
| 7723 | lt_prog_compiler_static_works=yes |
| 7724 | fi |
| 7725 | fi |
| 7726 | $rm conftest* |
| 7727 | LDFLAGS="$save_LDFLAGS" |
| 7728 | |
| 7729 | fi |
| 7730 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
| 7731 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } |
| 7732 | |
| 7733 | if test x"$lt_prog_compiler_static_works" = xyes; then |
| 7734 | : |
| 7735 | else |
| 7736 | lt_prog_compiler_static= |
| 7737 | fi |
| 7738 | |
| 7739 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7740 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 7741 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7742 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
| 7743 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7744 | else |
| 7745 | lt_cv_prog_compiler_c_o=no |
| 7746 | $rm -r conftest 2>/dev/null |
| 7747 | mkdir conftest |
| 7748 | cd conftest |
| 7749 | mkdir out |
| 7750 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 7751 | |
| 7752 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 7753 | # Insert the option either (1) after the last *FLAGS variable, or |
| 7754 | # (2) before a word containing "conftest.", or (3) at the end. |
| 7755 | # Note that $ac_compile itself does not contain backslashes and begins |
| 7756 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 7757 | lt_compile=`echo "$ac_compile" | $SED \ |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 7758 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7759 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 7760 | -e 's:$: $lt_compiler_flag:'` |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 7761 | (eval echo "\"\$as_me:7761: $lt_compile\"" >&5) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7762 | (eval "$lt_compile" 2>out/conftest.err) |
| 7763 | ac_status=$? |
| 7764 | cat out/conftest.err >&5 |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 7765 | echo "$as_me:7765: \$? = $ac_status" >&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7766 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 7767 | then |
| 7768 | # The compiler can only warn and ignore the option if not recognized |
| 7769 | # So say no if there are warnings |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 7770 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 7771 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 7772 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7773 | lt_cv_prog_compiler_c_o=yes |
| 7774 | fi |
| 7775 | fi |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 7776 | chmod u+w . 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7777 | $rm conftest* |
| 7778 | # SGI C++ compiler will create directory out/ii_files/ for |
| 7779 | # template instantiation |
| 7780 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 7781 | $rm out/* && rmdir out |
| 7782 | cd .. |
| 7783 | rmdir conftest |
| 7784 | $rm conftest* |
| 7785 | |
| 7786 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7787 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 7788 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7789 | |
| 7790 | |
| 7791 | hard_links="nottested" |
| 7792 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
| 7793 | # do not overwrite the value of need_locks provided by the user |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7794 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 7795 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7796 | hard_links=yes |
| 7797 | $rm conftest* |
| 7798 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 7799 | touch conftest.a |
| 7800 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 7801 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7802 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 7803 | echo "${ECHO_T}$hard_links" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7804 | if test "$hard_links" = no; then |
| 7805 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 7806 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 7807 | need_locks=warn |
| 7808 | fi |
| 7809 | else |
| 7810 | need_locks=no |
| 7811 | fi |
| 7812 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7813 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 7814 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7815 | |
| 7816 | runpath_var= |
| 7817 | allow_undefined_flag= |
| 7818 | enable_shared_with_static_runtimes=no |
| 7819 | archive_cmds= |
| 7820 | archive_expsym_cmds= |
| 7821 | old_archive_From_new_cmds= |
| 7822 | old_archive_from_expsyms_cmds= |
| 7823 | export_dynamic_flag_spec= |
| 7824 | whole_archive_flag_spec= |
| 7825 | thread_safe_flag_spec= |
| 7826 | hardcode_libdir_flag_spec= |
| 7827 | hardcode_libdir_flag_spec_ld= |
| 7828 | hardcode_libdir_separator= |
| 7829 | hardcode_direct=no |
| 7830 | hardcode_minus_L=no |
| 7831 | hardcode_shlibpath_var=unsupported |
| 7832 | link_all_deplibs=unknown |
| 7833 | hardcode_automatic=no |
| 7834 | module_cmds= |
| 7835 | module_expsym_cmds= |
| 7836 | always_export_symbols=no |
| 7837 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 7838 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 7839 | # included in the symbol list |
| 7840 | include_expsyms= |
| 7841 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 7842 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 7843 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 7844 | # as well as any symbol that contains `d'. |
| 7845 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 7846 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 7847 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 7848 | # the symbol is explicitly referenced. Since portable code cannot |
| 7849 | # rely on this symbol name, it's probably fine to never include it in |
| 7850 | # preloaded symbol tables. |
| 7851 | extract_expsyms_cmds= |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 7852 | # Just being paranoid about ensuring that cc_basename is set. |
| 7853 | for cc_temp in $compiler""; do |
| 7854 | case $cc_temp in |
| 7855 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 7856 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 7857 | \-*) ;; |
| 7858 | *) break;; |
| 7859 | esac |
| 7860 | done |
| 7861 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7862 | |
| 7863 | case $host_os in |
| 7864 | cygwin* | mingw* | pw32*) |
| 7865 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 7866 | # When not using gcc, we currently assume that we are using |
| 7867 | # Microsoft Visual C++. |
| 7868 | if test "$GCC" != yes; then |
| 7869 | with_gnu_ld=no |
| 7870 | fi |
| 7871 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 7872 | interix*) |
| 7873 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 7874 | with_gnu_ld=yes |
| 7875 | ;; |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7876 | openbsd*) |
| 7877 | with_gnu_ld=no |
| 7878 | ;; |
| 7879 | esac |
| 7880 | |
| 7881 | ld_shlibs=yes |
| 7882 | if test "$with_gnu_ld" = yes; then |
| 7883 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 7884 | wlarc='${wl}' |
| 7885 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 7886 | # Set some defaults for GNU ld with shared library support. These |
| 7887 | # are reset later if shared libraries are not supported. Putting them |
| 7888 | # here allows them to be overridden if necessary. |
| 7889 | runpath_var=LD_RUN_PATH |
| 7890 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 7891 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 7892 | # ancient GNU ld didn't support --whole-archive et. al. |
| 7893 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 7894 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 7895 | else |
| 7896 | whole_archive_flag_spec= |
| 7897 | fi |
| 7898 | supports_anon_versioning=no |
| 7899 | case `$LD -v 2>/dev/null` in |
| 7900 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 7901 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 7902 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 7903 | *\ 2.11.*) ;; # other 2.11 versions |
| 7904 | *) supports_anon_versioning=yes ;; |
| 7905 | esac |
| 7906 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7907 | # See if GNU ld supports shared libraries. |
| 7908 | case $host_os in |
| 7909 | aix3* | aix4* | aix5*) |
| 7910 | # On AIX/PPC, the GNU linker is very broken |
| 7911 | if test "$host_cpu" != ia64; then |
| 7912 | ld_shlibs=no |
| 7913 | cat <<EOF 1>&2 |
| 7914 | |
| 7915 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 7916 | *** to be unable to reliably create shared libraries on AIX. |
| 7917 | *** Therefore, libtool is disabling shared libraries support. If you |
| 7918 | *** really care for shared libraries, you may want to modify your PATH |
| 7919 | *** so that a non-GNU linker is found, and then restart. |
| 7920 | |
| 7921 | EOF |
| 7922 | fi |
| 7923 | ;; |
| 7924 | |
| 7925 | amigaos*) |
| 7926 | 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)' |
| 7927 | hardcode_libdir_flag_spec='-L$libdir' |
| 7928 | hardcode_minus_L=yes |
| 7929 | |
| 7930 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 7931 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 7932 | # to version 4, is to share data among multiple programs linked |
| 7933 | # with the same dynamic library. Since this doesn't match the |
| 7934 | # behavior of shared libraries on other platforms, we can't use |
| 7935 | # them. |
| 7936 | ld_shlibs=no |
| 7937 | ;; |
| 7938 | |
| 7939 | beos*) |
| 7940 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 7941 | allow_undefined_flag=unsupported |
| 7942 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 7943 | # support --undefined. This deserves some investigation. FIXME |
| 7944 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7945 | else |
| 7946 | ld_shlibs=no |
| 7947 | fi |
| 7948 | ;; |
| 7949 | |
| 7950 | cygwin* | mingw* | pw32*) |
| 7951 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 7952 | # as there is no search path for DLLs. |
| 7953 | hardcode_libdir_flag_spec='-L$libdir' |
| 7954 | allow_undefined_flag=unsupported |
| 7955 | always_export_symbols=no |
| 7956 | enable_shared_with_static_runtimes=yes |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 7957 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7958 | |
| 7959 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 7960 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7961 | # If the export-symbols file already is a .def file (1st line |
| 7962 | # is EXPORTS), use it as is; otherwise, prepend... |
| 7963 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 7964 | cp $export_symbols $output_objdir/$soname.def; |
| 7965 | else |
| 7966 | echo EXPORTS > $output_objdir/$soname.def; |
| 7967 | cat $export_symbols >> $output_objdir/$soname.def; |
| 7968 | fi~ |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 7969 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 7970 | else |
| 7971 | ld_shlibs=no |
| 7972 | fi |
| 7973 | ;; |
| 7974 | |
| 7975 | interix3*) |
| 7976 | hardcode_direct=no |
| 7977 | hardcode_shlibpath_var=no |
| 7978 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 7979 | export_dynamic_flag_spec='${wl}-E' |
| 7980 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 7981 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 7982 | # default) and relocated if they conflict, which is a slow very memory |
| 7983 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 7984 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 7985 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 7986 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 7987 | archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 7988 | ;; |
| 7989 | |
| 7990 | linux*) |
| 7991 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 7992 | tmp_addflag= |
| 7993 | case $cc_basename,$host_cpu in |
| 7994 | pgcc*) # Portland Group C compiler |
| 7995 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
| 7996 | tmp_addflag=' $pic_flag' |
| 7997 | ;; |
| 7998 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 7999 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
| 8000 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 8001 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 8002 | tmp_addflag=' -i_dynamic' ;; |
| 8003 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 8004 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 8005 | ifc* | ifort*) # Intel Fortran compiler |
| 8006 | tmp_addflag=' -nofor_main' ;; |
| 8007 | esac |
| 8008 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8009 | |
| 8010 | if test $supports_anon_versioning = yes; then |
| 8011 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 8012 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 8013 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 8014 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 8015 | fi |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8016 | else |
| 8017 | ld_shlibs=no |
| 8018 | fi |
| 8019 | ;; |
| 8020 | |
| 8021 | netbsd*) |
| 8022 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 8023 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 8024 | wlarc= |
| 8025 | else |
| 8026 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8027 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 8028 | fi |
| 8029 | ;; |
| 8030 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 8031 | solaris*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8032 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 8033 | ld_shlibs=no |
| 8034 | cat <<EOF 1>&2 |
| 8035 | |
| 8036 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 8037 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 8038 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 8039 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 8040 | *** your PATH or compiler configuration so that the native linker is |
| 8041 | *** used, and then restart. |
| 8042 | |
| 8043 | EOF |
| 8044 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 8045 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8046 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 8047 | else |
| 8048 | ld_shlibs=no |
| 8049 | fi |
| 8050 | ;; |
| 8051 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 8052 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 8053 | case `$LD -v 2>&1` in |
| 8054 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 8055 | ld_shlibs=no |
| 8056 | cat <<_LT_EOF 1>&2 |
| 8057 | |
| 8058 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 8059 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 8060 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 8061 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 8062 | *** your PATH or compiler configuration so that the native linker is |
| 8063 | *** used, and then restart. |
| 8064 | |
| 8065 | _LT_EOF |
| 8066 | ;; |
| 8067 | *) |
| 8068 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 8069 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 8070 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 8071 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 8072 | else |
| 8073 | ld_shlibs=no |
| 8074 | fi |
| 8075 | ;; |
| 8076 | esac |
| 8077 | ;; |
| 8078 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8079 | sunos4*) |
| 8080 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 8081 | wlarc= |
| 8082 | hardcode_direct=yes |
| 8083 | hardcode_shlibpath_var=no |
| 8084 | ;; |
| 8085 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8086 | *) |
| 8087 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 8088 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8089 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 8090 | else |
| 8091 | ld_shlibs=no |
| 8092 | fi |
| 8093 | ;; |
| 8094 | esac |
| 8095 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 8096 | if test "$ld_shlibs" = no; then |
| 8097 | runpath_var= |
| 8098 | hardcode_libdir_flag_spec= |
| 8099 | export_dynamic_flag_spec= |
| 8100 | whole_archive_flag_spec= |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8101 | fi |
| 8102 | else |
| 8103 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 8104 | case $host_os in |
| 8105 | aix3*) |
| 8106 | allow_undefined_flag=unsupported |
| 8107 | always_export_symbols=yes |
| 8108 | 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' |
| 8109 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 8110 | # are no directories specified by -L. |
| 8111 | hardcode_minus_L=yes |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 8112 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8113 | # Neither direct hardcoding nor static linking is supported with a |
| 8114 | # broken collect2. |
| 8115 | hardcode_direct=unsupported |
| 8116 | fi |
| 8117 | ;; |
| 8118 | |
| 8119 | aix4* | aix5*) |
| 8120 | if test "$host_cpu" = ia64; then |
| 8121 | # On IA64, the linker does run time linking by default, so we don't |
| 8122 | # have to do anything special. |
| 8123 | aix_use_runtimelinking=no |
| 8124 | exp_sym_flag='-Bexport' |
| 8125 | no_entry_flag="" |
| 8126 | else |
| 8127 | # If we're using GNU nm, then we don't want the "-C" option. |
| 8128 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 8129 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 8130 | 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' |
| 8131 | else |
| 8132 | 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' |
| 8133 | fi |
| 8134 | aix_use_runtimelinking=no |
| 8135 | |
| 8136 | # Test if we are trying to use run time linking or normal |
| 8137 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 8138 | # need to do runtime linking. |
| 8139 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 8140 | for ld_flag in $LDFLAGS; do |
| 8141 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 8142 | aix_use_runtimelinking=yes |
| 8143 | break |
| 8144 | fi |
| 8145 | done |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 8146 | ;; |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8147 | esac |
| 8148 | |
| 8149 | exp_sym_flag='-bexport' |
| 8150 | no_entry_flag='-bnoentry' |
| 8151 | fi |
| 8152 | |
| 8153 | # When large executables or shared objects are built, AIX ld can |
| 8154 | # have problems creating the table of contents. If linking a library |
| 8155 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 8156 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 8157 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 8158 | |
| 8159 | archive_cmds='' |
| 8160 | hardcode_direct=yes |
| 8161 | hardcode_libdir_separator=':' |
| 8162 | link_all_deplibs=yes |
| 8163 | |
| 8164 | if test "$GCC" = yes; then |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 8165 | case $host_os in aix4.[012]|aix4.[012].*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8166 | # We only want to do this on AIX 4.2 and lower, the check |
| 8167 | # below for broken collect2 doesn't work under 4.3+ |
| 8168 | collect2name=`${CC} -print-prog-name=collect2` |
| 8169 | if test -f "$collect2name" && \ |
| 8170 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 8171 | then |
| 8172 | # We have reworked collect2 |
| 8173 | hardcode_direct=yes |
| 8174 | else |
| 8175 | # We have old collect2 |
| 8176 | hardcode_direct=unsupported |
| 8177 | # It fails to find uninstalled libraries when the uninstalled |
| 8178 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 8179 | # to unsupported forces relinking |
| 8180 | hardcode_minus_L=yes |
| 8181 | hardcode_libdir_flag_spec='-L$libdir' |
| 8182 | hardcode_libdir_separator= |
| 8183 | fi |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 8184 | ;; |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8185 | esac |
| 8186 | shared_flag='-shared' |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 8187 | if test "$aix_use_runtimelinking" = yes; then |
| 8188 | shared_flag="$shared_flag "'${wl}-G' |
| 8189 | fi |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8190 | else |
| 8191 | # not using gcc |
| 8192 | if test "$host_cpu" = ia64; then |
| 8193 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 8194 | # chokes on -Wl,-G. The following line is correct: |
| 8195 | shared_flag='-G' |
| 8196 | else |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 8197 | if test "$aix_use_runtimelinking" = yes; then |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8198 | shared_flag='${wl}-G' |
| 8199 | else |
| 8200 | shared_flag='${wl}-bM:SRE' |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 8201 | fi |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8202 | fi |
| 8203 | fi |
| 8204 | |
| 8205 | # It seems that -bexpall does not export symbols beginning with |
| 8206 | # underscore (_), so it is better to generate a list of symbols to export. |
| 8207 | always_export_symbols=yes |
| 8208 | if test "$aix_use_runtimelinking" = yes; then |
| 8209 | # Warning - without using the other runtime loading flags (-brtl), |
| 8210 | # -berok will link without error, but may produce a broken library. |
| 8211 | allow_undefined_flag='-berok' |
| 8212 | # Determine the default libpath from the value encoded in an empty executable. |
| 8213 | cat >conftest.$ac_ext <<_ACEOF |
| 8214 | /* confdefs.h. */ |
| 8215 | _ACEOF |
| 8216 | cat confdefs.h >>conftest.$ac_ext |
| 8217 | cat >>conftest.$ac_ext <<_ACEOF |
| 8218 | /* end confdefs.h. */ |
| 8219 | |
| 8220 | int |
| 8221 | main () |
| 8222 | { |
| 8223 | |
| 8224 | ; |
| 8225 | return 0; |
| 8226 | } |
| 8227 | _ACEOF |
| 8228 | rm -f conftest.$ac_objext conftest$ac_exeext |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 8229 | if { (ac_try="$ac_link" |
| 8230 | case "(($ac_try" in |
| 8231 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8232 | *) ac_try_echo=$ac_try;; |
| 8233 | esac |
| 8234 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8235 | (eval "$ac_link") 2>conftest.er1 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8236 | ac_status=$? |
| 8237 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8238 | rm -f conftest.er1 |
| 8239 | cat conftest.err >&5 |
| 8240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8241 | (exit $ac_status); } && |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 8242 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8243 | { (case "(($ac_try" in |
| 8244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8245 | *) ac_try_echo=$ac_try;; |
| 8246 | esac |
| 8247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8248 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8249 | ac_status=$? |
| 8250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8251 | (exit $ac_status); }; } && |
| 8252 | { ac_try='test -s conftest$ac_exeext' |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 8253 | { (case "(($ac_try" in |
| 8254 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8255 | *) ac_try_echo=$ac_try;; |
| 8256 | esac |
| 8257 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8258 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8259 | ac_status=$? |
| 8260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8261 | (exit $ac_status); }; }; then |
| 8262 | |
| 8263 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 8264 | }'` |
| 8265 | # Check for a 64-bit object if we didn't find anything. |
| 8266 | 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; } |
| 8267 | }'`; fi |
| 8268 | else |
| 8269 | echo "$as_me: failed program was:" >&5 |
| 8270 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8271 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 8272 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8273 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 8274 | |
| 8275 | rm -f core conftest.err conftest.$ac_objext \ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8276 | conftest$ac_exeext conftest.$ac_ext |
| 8277 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 8278 | |
| 8279 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 8280 | archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8281 | else |
| 8282 | if test "$host_cpu" = ia64; then |
| 8283 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 8284 | allow_undefined_flag="-z nodefs" |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 8285 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8286 | else |
| 8287 | # Determine the default libpath from the value encoded in an empty executable. |
| 8288 | cat >conftest.$ac_ext <<_ACEOF |
| 8289 | /* confdefs.h. */ |
| 8290 | _ACEOF |
| 8291 | cat confdefs.h >>conftest.$ac_ext |
| 8292 | cat >>conftest.$ac_ext <<_ACEOF |
| 8293 | /* end confdefs.h. */ |
| 8294 | |
| 8295 | int |
| 8296 | main () |
| 8297 | { |
| 8298 | |
| 8299 | ; |
| 8300 | return 0; |
| 8301 | } |
| 8302 | _ACEOF |
| 8303 | rm -f conftest.$ac_objext conftest$ac_exeext |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 8304 | if { (ac_try="$ac_link" |
| 8305 | case "(($ac_try" in |
| 8306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8307 | *) ac_try_echo=$ac_try;; |
| 8308 | esac |
| 8309 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8310 | (eval "$ac_link") 2>conftest.er1 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8311 | ac_status=$? |
| 8312 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8313 | rm -f conftest.er1 |
| 8314 | cat conftest.err >&5 |
| 8315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8316 | (exit $ac_status); } && |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 8317 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8318 | { (case "(($ac_try" in |
| 8319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8320 | *) ac_try_echo=$ac_try;; |
| 8321 | esac |
| 8322 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8323 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8324 | ac_status=$? |
| 8325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8326 | (exit $ac_status); }; } && |
| 8327 | { ac_try='test -s conftest$ac_exeext' |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 8328 | { (case "(($ac_try" in |
| 8329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8330 | *) ac_try_echo=$ac_try;; |
| 8331 | esac |
| 8332 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8333 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8334 | ac_status=$? |
| 8335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8336 | (exit $ac_status); }; }; then |
| 8337 | |
| 8338 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 8339 | }'` |
| 8340 | # Check for a 64-bit object if we didn't find anything. |
| 8341 | 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; } |
| 8342 | }'`; fi |
| 8343 | else |
| 8344 | echo "$as_me: failed program was:" >&5 |
| 8345 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8346 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 8347 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8348 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 8349 | |
| 8350 | rm -f core conftest.err conftest.$ac_objext \ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8351 | conftest$ac_exeext conftest.$ac_ext |
| 8352 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 8353 | |
| 8354 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 8355 | # Warning - without using the other run time loading flags, |
| 8356 | # -berok will link without error, but may produce a broken library. |
| 8357 | no_undefined_flag=' ${wl}-bernotok' |
| 8358 | allow_undefined_flag=' ${wl}-berok' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8359 | # Exported symbols can be pulled into shared objects from archives |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 8360 | whole_archive_flag_spec='$convenience' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8361 | archive_cmds_need_lc=yes |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 8362 | # This is similar to how AIX traditionally builds its shared libraries. |
| 8363 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8364 | fi |
| 8365 | fi |
| 8366 | ;; |
| 8367 | |
| 8368 | amigaos*) |
| 8369 | 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)' |
| 8370 | hardcode_libdir_flag_spec='-L$libdir' |
| 8371 | hardcode_minus_L=yes |
| 8372 | # see comment about different semantics on the GNU ld section |
| 8373 | ld_shlibs=no |
| 8374 | ;; |
| 8375 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 8376 | bsdi[45]*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8377 | export_dynamic_flag_spec=-rdynamic |
| 8378 | ;; |
| 8379 | |
| 8380 | cygwin* | mingw* | pw32*) |
| 8381 | # When not using gcc, we currently assume that we are using |
| 8382 | # Microsoft Visual C++. |
| 8383 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 8384 | # no search path for DLLs. |
| 8385 | hardcode_libdir_flag_spec=' ' |
| 8386 | allow_undefined_flag=unsupported |
| 8387 | # Tell ltmain to make .lib files, not .a files. |
| 8388 | libext=lib |
| 8389 | # Tell ltmain to make .dll files, not .so files. |
| 8390 | shrext_cmds=".dll" |
| 8391 | # FIXME: Setting linknames here is a bad hack. |
| 8392 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 8393 | # The linker will automatically build a .lib file if we build a DLL. |
| 8394 | old_archive_From_new_cmds='true' |
| 8395 | # FIXME: Should let the user specify the lib program. |
| 8396 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 8397 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 8398 | enable_shared_with_static_runtimes=yes |
| 8399 | ;; |
| 8400 | |
| 8401 | darwin* | rhapsody*) |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 8402 | case $host_os in |
| 8403 | rhapsody* | darwin1.[012]) |
| 8404 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
| 8405 | ;; |
| 8406 | *) # Darwin 1.3 on |
| 8407 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 8408 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 8409 | else |
| 8410 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 8411 | 10.[012]) |
| 8412 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 8413 | ;; |
| 8414 | 10.*) |
| 8415 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
| 8416 | ;; |
| 8417 | esac |
| 8418 | fi |
| 8419 | ;; |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8420 | esac |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 8421 | archive_cmds_need_lc=no |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8422 | hardcode_direct=no |
| 8423 | hardcode_automatic=yes |
| 8424 | hardcode_shlibpath_var=unsupported |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 8425 | whole_archive_flag_spec='' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8426 | link_all_deplibs=yes |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 8427 | if test "$GCC" = yes ; then |
| 8428 | output_verbose_link_cmd='echo' |
| 8429 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 8430 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 8431 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 8432 | 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}' |
| 8433 | 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}' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8434 | else |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 8435 | case $cc_basename in |
| 8436 | xlc*) |
| 8437 | output_verbose_link_cmd='echo' |
| 8438 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 8439 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 8440 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 8441 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 8442 | 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}' |
| 8443 | ;; |
| 8444 | *) |
| 8445 | ld_shlibs=no |
| 8446 | ;; |
| 8447 | esac |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8448 | fi |
| 8449 | ;; |
| 8450 | |
| 8451 | dgux*) |
| 8452 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8453 | hardcode_libdir_flag_spec='-L$libdir' |
| 8454 | hardcode_shlibpath_var=no |
| 8455 | ;; |
| 8456 | |
| 8457 | freebsd1*) |
| 8458 | ld_shlibs=no |
| 8459 | ;; |
| 8460 | |
| 8461 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 8462 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 8463 | # does not break anything, and helps significantly (at the cost of a little |
| 8464 | # extra space). |
| 8465 | freebsd2.2*) |
| 8466 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 8467 | hardcode_libdir_flag_spec='-R$libdir' |
| 8468 | hardcode_direct=yes |
| 8469 | hardcode_shlibpath_var=no |
| 8470 | ;; |
| 8471 | |
| 8472 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 8473 | freebsd2*) |
| 8474 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 8475 | hardcode_direct=yes |
| 8476 | hardcode_minus_L=yes |
| 8477 | hardcode_shlibpath_var=no |
| 8478 | ;; |
| 8479 | |
| 8480 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 8481 | freebsd* | kfreebsd*-gnu | dragonfly*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8482 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 8483 | hardcode_libdir_flag_spec='-R$libdir' |
| 8484 | hardcode_direct=yes |
| 8485 | hardcode_shlibpath_var=no |
| 8486 | ;; |
| 8487 | |
| 8488 | hpux9*) |
| 8489 | if test "$GCC" = yes; then |
| 8490 | 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' |
| 8491 | else |
| 8492 | 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' |
| 8493 | fi |
| 8494 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 8495 | hardcode_libdir_separator=: |
| 8496 | hardcode_direct=yes |
| 8497 | |
| 8498 | # hardcode_minus_L: Not really in the search PATH, |
| 8499 | # but as the default location of the library. |
| 8500 | hardcode_minus_L=yes |
| 8501 | export_dynamic_flag_spec='${wl}-E' |
| 8502 | ;; |
| 8503 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 8504 | hpux10*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8505 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 8506 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 8507 | else |
| 8508 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 8509 | fi |
| 8510 | if test "$with_gnu_ld" = no; then |
| 8511 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 8512 | hardcode_libdir_separator=: |
| 8513 | |
| 8514 | hardcode_direct=yes |
| 8515 | export_dynamic_flag_spec='${wl}-E' |
| 8516 | |
| 8517 | # hardcode_minus_L: Not really in the search PATH, |
| 8518 | # but as the default location of the library. |
| 8519 | hardcode_minus_L=yes |
| 8520 | fi |
| 8521 | ;; |
| 8522 | |
| 8523 | hpux11*) |
| 8524 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 8525 | case $host_cpu in |
| 8526 | hppa*64*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8527 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8528 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 8529 | ia64*) |
| 8530 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 8531 | ;; |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8532 | *) |
| 8533 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 8534 | ;; |
| 8535 | esac |
| 8536 | else |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 8537 | case $host_cpu in |
| 8538 | hppa*64*) |
| 8539 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8540 | ;; |
| 8541 | ia64*) |
| 8542 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8543 | ;; |
| 8544 | *) |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 8545 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8546 | ;; |
| 8547 | esac |
| 8548 | fi |
| 8549 | if test "$with_gnu_ld" = no; then |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 8550 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 8551 | hardcode_libdir_separator=: |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8552 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 8553 | case $host_cpu in |
| 8554 | hppa*64*|ia64*) |
| 8555 | hardcode_libdir_flag_spec_ld='+b $libdir' |
| 8556 | hardcode_direct=no |
| 8557 | hardcode_shlibpath_var=no |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8558 | ;; |
| 8559 | *) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8560 | hardcode_direct=yes |
| 8561 | export_dynamic_flag_spec='${wl}-E' |
| 8562 | |
| 8563 | # hardcode_minus_L: Not really in the search PATH, |
| 8564 | # but as the default location of the library. |
| 8565 | hardcode_minus_L=yes |
| 8566 | ;; |
| 8567 | esac |
| 8568 | fi |
| 8569 | ;; |
| 8570 | |
| 8571 | irix5* | irix6* | nonstopux*) |
| 8572 | if test "$GCC" = yes; then |
| 8573 | 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' |
| 8574 | else |
| 8575 | 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' |
| 8576 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 8577 | fi |
| 8578 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8579 | hardcode_libdir_separator=: |
| 8580 | link_all_deplibs=yes |
| 8581 | ;; |
| 8582 | |
| 8583 | netbsd*) |
| 8584 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 8585 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 8586 | else |
| 8587 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 8588 | fi |
| 8589 | hardcode_libdir_flag_spec='-R$libdir' |
| 8590 | hardcode_direct=yes |
| 8591 | hardcode_shlibpath_var=no |
| 8592 | ;; |
| 8593 | |
| 8594 | newsos6) |
| 8595 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8596 | hardcode_direct=yes |
| 8597 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8598 | hardcode_libdir_separator=: |
| 8599 | hardcode_shlibpath_var=no |
| 8600 | ;; |
| 8601 | |
| 8602 | openbsd*) |
| 8603 | hardcode_direct=yes |
| 8604 | hardcode_shlibpath_var=no |
| 8605 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 8606 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 8607 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8608 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 8609 | export_dynamic_flag_spec='${wl}-E' |
| 8610 | else |
| 8611 | case $host_os in |
| 8612 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 8613 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 8614 | hardcode_libdir_flag_spec='-R$libdir' |
| 8615 | ;; |
| 8616 | *) |
| 8617 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 8618 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 8619 | ;; |
| 8620 | esac |
| 8621 | fi |
| 8622 | ;; |
| 8623 | |
| 8624 | os2*) |
| 8625 | hardcode_libdir_flag_spec='-L$libdir' |
| 8626 | hardcode_minus_L=yes |
| 8627 | allow_undefined_flag=unsupported |
| 8628 | 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' |
| 8629 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 8630 | ;; |
| 8631 | |
| 8632 | osf3*) |
| 8633 | if test "$GCC" = yes; then |
| 8634 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 8635 | 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' |
| 8636 | else |
| 8637 | allow_undefined_flag=' -expect_unresolved \*' |
| 8638 | 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' |
| 8639 | fi |
| 8640 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8641 | hardcode_libdir_separator=: |
| 8642 | ;; |
| 8643 | |
| 8644 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 8645 | if test "$GCC" = yes; then |
| 8646 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 8647 | 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' |
| 8648 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8649 | else |
| 8650 | allow_undefined_flag=' -expect_unresolved \*' |
| 8651 | 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' |
| 8652 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 8653 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8654 | |
| 8655 | # Both c and cxx compiler support -rpath directly |
| 8656 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 8657 | fi |
| 8658 | hardcode_libdir_separator=: |
| 8659 | ;; |
| 8660 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8661 | solaris*) |
| 8662 | no_undefined_flag=' -z text' |
| 8663 | if test "$GCC" = yes; then |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 8664 | wlarc='${wl}' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8665 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8666 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 8667 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 8668 | else |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 8669 | wlarc='' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8670 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8671 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 8672 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 8673 | fi |
| 8674 | hardcode_libdir_flag_spec='-R$libdir' |
| 8675 | hardcode_shlibpath_var=no |
| 8676 | case $host_os in |
| 8677 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 8678 | *) |
| 8679 | # The compiler driver will combine linker options so we |
| 8680 | # cannot just pass the convience library names through |
| 8681 | # without $wl, iff we do not link with $LD. |
| 8682 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 8683 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 8684 | case $wlarc in |
| 8685 | '') |
| 8686 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 8687 | *) |
| 8688 | whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
| 8689 | esac ;; |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8690 | esac |
| 8691 | link_all_deplibs=yes |
| 8692 | ;; |
| 8693 | |
| 8694 | sunos4*) |
| 8695 | if test "x$host_vendor" = xsequent; then |
| 8696 | # Use $CC to link under sequent, because it throws in some extra .o |
| 8697 | # files that make .init and .fini sections work. |
| 8698 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8699 | else |
| 8700 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 8701 | fi |
| 8702 | hardcode_libdir_flag_spec='-L$libdir' |
| 8703 | hardcode_direct=yes |
| 8704 | hardcode_minus_L=yes |
| 8705 | hardcode_shlibpath_var=no |
| 8706 | ;; |
| 8707 | |
| 8708 | sysv4) |
| 8709 | case $host_vendor in |
| 8710 | sni) |
| 8711 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8712 | hardcode_direct=yes # is this really true??? |
| 8713 | ;; |
| 8714 | siemens) |
| 8715 | ## LD is ld it makes a PLAMLIB |
| 8716 | ## CC just makes a GrossModule. |
| 8717 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 8718 | reload_cmds='$CC -r -o $output$reload_objs' |
| 8719 | hardcode_direct=no |
| 8720 | ;; |
| 8721 | motorola) |
| 8722 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8723 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 8724 | ;; |
| 8725 | esac |
| 8726 | runpath_var='LD_RUN_PATH' |
| 8727 | hardcode_shlibpath_var=no |
| 8728 | ;; |
| 8729 | |
| 8730 | sysv4.3*) |
| 8731 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8732 | hardcode_shlibpath_var=no |
| 8733 | export_dynamic_flag_spec='-Bexport' |
| 8734 | ;; |
| 8735 | |
| 8736 | sysv4*MP*) |
| 8737 | if test -d /usr/nec; then |
| 8738 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8739 | hardcode_shlibpath_var=no |
| 8740 | runpath_var=LD_RUN_PATH |
| 8741 | hardcode_runpath_var=yes |
| 8742 | ld_shlibs=yes |
| 8743 | fi |
| 8744 | ;; |
| 8745 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 8746 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 8747 | no_undefined_flag='${wl}-z,text' |
| 8748 | archive_cmds_need_lc=no |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8749 | hardcode_shlibpath_var=no |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 8750 | runpath_var='LD_RUN_PATH' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8751 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8752 | if test "$GCC" = yes; then |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 8753 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8754 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8755 | else |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 8756 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8757 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8758 | fi |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8759 | ;; |
| 8760 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 8761 | sysv5* | sco3.2v5* | sco5v6*) |
| 8762 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 8763 | # link with -lc, and that would cause any symbols used from libc to |
| 8764 | # always be unresolved, which means just about no library would |
| 8765 | # ever link correctly. If we're not using GNU ld we use -z text |
| 8766 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 8767 | # as -z defs. |
| 8768 | no_undefined_flag='${wl}-z,text' |
| 8769 | allow_undefined_flag='${wl}-z,nodefs' |
| 8770 | archive_cmds_need_lc=no |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8771 | hardcode_shlibpath_var=no |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 8772 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 8773 | hardcode_libdir_separator=':' |
| 8774 | link_all_deplibs=yes |
| 8775 | export_dynamic_flag_spec='${wl}-Bexport' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8776 | runpath_var='LD_RUN_PATH' |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 8777 | |
| 8778 | if test "$GCC" = yes; then |
| 8779 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8780 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8781 | else |
| 8782 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8783 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8784 | fi |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8785 | ;; |
| 8786 | |
| 8787 | uts4*) |
| 8788 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8789 | hardcode_libdir_flag_spec='-L$libdir' |
| 8790 | hardcode_shlibpath_var=no |
| 8791 | ;; |
| 8792 | |
| 8793 | *) |
| 8794 | ld_shlibs=no |
| 8795 | ;; |
| 8796 | esac |
| 8797 | fi |
| 8798 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 8799 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 8800 | echo "${ECHO_T}$ld_shlibs" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8801 | test "$ld_shlibs" = no && can_build_shared=no |
| 8802 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8803 | # |
| 8804 | # Do we need to explicitly link libc? |
| 8805 | # |
| 8806 | case "x$archive_cmds_need_lc" in |
| 8807 | x|xyes) |
| 8808 | # Assume -lc should be added |
| 8809 | archive_cmds_need_lc=yes |
| 8810 | |
| 8811 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 8812 | case $archive_cmds in |
| 8813 | *'~'*) |
| 8814 | # FIXME: we may have to deal with multi-command sequences. |
| 8815 | ;; |
| 8816 | '$CC '*) |
| 8817 | # Test whether the compiler implicitly links with -lc since on some |
| 8818 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 8819 | # to ld, don't add -lc before -lgcc. |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 8820 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 8821 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8822 | $rm conftest* |
| 8823 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8824 | |
| 8825 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8826 | (eval $ac_compile) 2>&5 |
| 8827 | ac_status=$? |
| 8828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8829 | (exit $ac_status); } 2>conftest.err; then |
| 8830 | soname=conftest |
| 8831 | lib=conftest |
| 8832 | libobjs=conftest.$ac_objext |
| 8833 | deplibs= |
| 8834 | wl=$lt_prog_compiler_wl |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 8835 | pic_flag=$lt_prog_compiler_pic |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8836 | compiler_flags=-v |
| 8837 | linker_flags=-v |
| 8838 | verstring= |
| 8839 | output_objdir=. |
| 8840 | libname=conftest |
| 8841 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 8842 | allow_undefined_flag= |
| 8843 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 8844 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 8845 | ac_status=$? |
| 8846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8847 | (exit $ac_status); } |
| 8848 | then |
| 8849 | archive_cmds_need_lc=no |
| 8850 | else |
| 8851 | archive_cmds_need_lc=yes |
| 8852 | fi |
| 8853 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 8854 | else |
| 8855 | cat conftest.err 1>&5 |
| 8856 | fi |
| 8857 | $rm conftest* |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 8858 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
| 8859 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8860 | ;; |
| 8861 | esac |
| 8862 | fi |
| 8863 | ;; |
| 8864 | esac |
| 8865 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 8866 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 8867 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8868 | library_names_spec= |
| 8869 | libname_spec='lib$name' |
| 8870 | soname_spec= |
| 8871 | shrext_cmds=".so" |
| 8872 | postinstall_cmds= |
| 8873 | postuninstall_cmds= |
| 8874 | finish_cmds= |
| 8875 | finish_eval= |
| 8876 | shlibpath_var= |
| 8877 | shlibpath_overrides_runpath=unknown |
| 8878 | version_type=none |
| 8879 | dynamic_linker="$host_os ld.so" |
| 8880 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 8881 | if test "$GCC" = yes; then |
| 8882 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8883 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 8884 | # if the path contains ";" then we assume it to be the separator |
| 8885 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 8886 | # assumed that no part of a normal pathname contains ";" but that should |
| 8887 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 8888 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8889 | else |
| 8890 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8891 | fi |
| 8892 | else |
| 8893 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 8894 | fi |
| 8895 | need_lib_prefix=unknown |
| 8896 | hardcode_into_libs=no |
| 8897 | |
| 8898 | # when you set need_version to no, make sure it does not cause -set_version |
| 8899 | # flags to be left without arguments |
| 8900 | need_version=unknown |
| 8901 | |
| 8902 | case $host_os in |
| 8903 | aix3*) |
| 8904 | version_type=linux |
| 8905 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 8906 | shlibpath_var=LIBPATH |
| 8907 | |
| 8908 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 8909 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8910 | ;; |
| 8911 | |
| 8912 | aix4* | aix5*) |
| 8913 | version_type=linux |
| 8914 | need_lib_prefix=no |
| 8915 | need_version=no |
| 8916 | hardcode_into_libs=yes |
| 8917 | if test "$host_cpu" = ia64; then |
| 8918 | # AIX 5 supports IA64 |
| 8919 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 8920 | shlibpath_var=LD_LIBRARY_PATH |
| 8921 | else |
| 8922 | # With GCC up to 2.95.x, collect2 would create an import file |
| 8923 | # for dependence libraries. The import file would start with |
| 8924 | # the line `#! .'. This would cause the generated library to |
| 8925 | # depend on `.', always an invalid library. This was fixed in |
| 8926 | # development snapshots of GCC prior to 3.0. |
| 8927 | case $host_os in |
| 8928 | aix4 | aix4.[01] | aix4.[01].*) |
| 8929 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 8930 | echo ' yes ' |
| 8931 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 8932 | : |
| 8933 | else |
| 8934 | can_build_shared=no |
| 8935 | fi |
| 8936 | ;; |
| 8937 | esac |
| 8938 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 8939 | # soname into executable. Probably we can add versioning support to |
| 8940 | # collect2, so additional links can be useful in future. |
| 8941 | if test "$aix_use_runtimelinking" = yes; then |
| 8942 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 8943 | # instead of lib<name>.a to let people know that these are not |
| 8944 | # typical AIX shared libraries. |
| 8945 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8946 | else |
| 8947 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 8948 | # and later when we are not doing run time linking. |
| 8949 | library_names_spec='${libname}${release}.a $libname.a' |
| 8950 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8951 | fi |
| 8952 | shlibpath_var=LIBPATH |
| 8953 | fi |
| 8954 | ;; |
| 8955 | |
| 8956 | amigaos*) |
| 8957 | library_names_spec='$libname.ixlibrary $libname.a' |
| 8958 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 8959 | 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' |
| 8960 | ;; |
| 8961 | |
| 8962 | beos*) |
| 8963 | library_names_spec='${libname}${shared_ext}' |
| 8964 | dynamic_linker="$host_os ld.so" |
| 8965 | shlibpath_var=LIBRARY_PATH |
| 8966 | ;; |
| 8967 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 8968 | bsdi[45]*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8969 | version_type=linux |
| 8970 | need_version=no |
| 8971 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8972 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8973 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 8974 | shlibpath_var=LD_LIBRARY_PATH |
| 8975 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 8976 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 8977 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 8978 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 8979 | # libtool to hard-code these into programs |
| 8980 | ;; |
| 8981 | |
| 8982 | cygwin* | mingw* | pw32*) |
| 8983 | version_type=windows |
| 8984 | shrext_cmds=".dll" |
| 8985 | need_version=no |
| 8986 | need_lib_prefix=no |
| 8987 | |
| 8988 | case $GCC,$host_os in |
| 8989 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 8990 | library_names_spec='$libname.dll.a' |
| 8991 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 8992 | postinstall_cmds='base_file=`basename \${file}`~ |
| 8993 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 8994 | dldir=$destdir/`dirname \$dlpath`~ |
| 8995 | test -d \$dldir || mkdir -p \$dldir~ |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 8996 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 8997 | chmod a+x \$dldir/$dlname' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8998 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 8999 | dlpath=$dir/\$dldll~ |
| 9000 | $rm \$dlpath' |
| 9001 | shlibpath_overrides_runpath=yes |
| 9002 | |
| 9003 | case $host_os in |
| 9004 | cygwin*) |
| 9005 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 9006 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9007 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 9008 | ;; |
| 9009 | mingw*) |
| 9010 | # MinGW DLLs use traditional 'lib' prefix |
| 9011 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9012 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9013 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 9014 | # It is most probably a Windows format PATH printed by |
| 9015 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 9016 | # path with ; separators, and with drive letters. We can handle the |
| 9017 | # drive letters (cygwin fileutils understands them), so leave them, |
| 9018 | # especially as we might pass files found there to a mingw objdump, |
| 9019 | # which wouldn't understand a cygwinified path. Ahh. |
| 9020 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9021 | else |
| 9022 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9023 | fi |
| 9024 | ;; |
| 9025 | pw32*) |
| 9026 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 9027 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9028 | ;; |
| 9029 | esac |
| 9030 | ;; |
| 9031 | |
| 9032 | *) |
| 9033 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 9034 | ;; |
| 9035 | esac |
| 9036 | dynamic_linker='Win32 ld.exe' |
| 9037 | # FIXME: first we should search . and the directory the executable is in |
| 9038 | shlibpath_var=PATH |
| 9039 | ;; |
| 9040 | |
| 9041 | darwin* | rhapsody*) |
| 9042 | dynamic_linker="$host_os dyld" |
| 9043 | version_type=darwin |
| 9044 | need_lib_prefix=no |
| 9045 | need_version=no |
| 9046 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 9047 | soname_spec='${libname}${release}${major}$shared_ext' |
| 9048 | shlibpath_overrides_runpath=yes |
| 9049 | shlibpath_var=DYLD_LIBRARY_PATH |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 9050 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9051 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 9052 | if test "$GCC" = yes; then |
| 9053 | 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"` |
| 9054 | else |
| 9055 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 9056 | fi |
| 9057 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 9058 | ;; |
| 9059 | |
| 9060 | dgux*) |
| 9061 | version_type=linux |
| 9062 | need_lib_prefix=no |
| 9063 | need_version=no |
| 9064 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 9065 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9066 | shlibpath_var=LD_LIBRARY_PATH |
| 9067 | ;; |
| 9068 | |
| 9069 | freebsd1*) |
| 9070 | dynamic_linker=no |
| 9071 | ;; |
| 9072 | |
| 9073 | kfreebsd*-gnu) |
| 9074 | version_type=linux |
| 9075 | need_lib_prefix=no |
| 9076 | need_version=no |
| 9077 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9078 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9079 | shlibpath_var=LD_LIBRARY_PATH |
| 9080 | shlibpath_overrides_runpath=no |
| 9081 | hardcode_into_libs=yes |
| 9082 | dynamic_linker='GNU ld.so' |
| 9083 | ;; |
| 9084 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 9085 | freebsd* | dragonfly*) |
| 9086 | # DragonFly does not have aout. When/if they implement a new |
| 9087 | # versioning mechanism, adjust this. |
| 9088 | if test -x /usr/bin/objformat; then |
| 9089 | objformat=`/usr/bin/objformat` |
| 9090 | else |
| 9091 | case $host_os in |
| 9092 | freebsd[123]*) objformat=aout ;; |
| 9093 | *) objformat=elf ;; |
| 9094 | esac |
| 9095 | fi |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9096 | version_type=freebsd-$objformat |
| 9097 | case $version_type in |
| 9098 | freebsd-elf*) |
| 9099 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9100 | need_version=no |
| 9101 | need_lib_prefix=no |
| 9102 | ;; |
| 9103 | freebsd-*) |
| 9104 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 9105 | need_version=yes |
| 9106 | ;; |
| 9107 | esac |
| 9108 | shlibpath_var=LD_LIBRARY_PATH |
| 9109 | case $host_os in |
| 9110 | freebsd2*) |
| 9111 | shlibpath_overrides_runpath=yes |
| 9112 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 9113 | freebsd3.[01]* | freebsdelf3.[01]*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9114 | shlibpath_overrides_runpath=yes |
| 9115 | hardcode_into_libs=yes |
| 9116 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 9117 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 9118 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9119 | shlibpath_overrides_runpath=no |
| 9120 | hardcode_into_libs=yes |
| 9121 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 9122 | freebsd*) # from 4.6 on |
| 9123 | shlibpath_overrides_runpath=yes |
| 9124 | hardcode_into_libs=yes |
| 9125 | ;; |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9126 | esac |
| 9127 | ;; |
| 9128 | |
| 9129 | gnu*) |
| 9130 | version_type=linux |
| 9131 | need_lib_prefix=no |
| 9132 | need_version=no |
| 9133 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 9134 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9135 | shlibpath_var=LD_LIBRARY_PATH |
| 9136 | hardcode_into_libs=yes |
| 9137 | ;; |
| 9138 | |
| 9139 | hpux9* | hpux10* | hpux11*) |
| 9140 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 9141 | # link against other versions. |
| 9142 | version_type=sunos |
| 9143 | need_lib_prefix=no |
| 9144 | need_version=no |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 9145 | case $host_cpu in |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9146 | ia64*) |
| 9147 | shrext_cmds='.so' |
| 9148 | hardcode_into_libs=yes |
| 9149 | dynamic_linker="$host_os dld.so" |
| 9150 | shlibpath_var=LD_LIBRARY_PATH |
| 9151 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9152 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9153 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9154 | if test "X$HPUX_IA64_MODE" = X32; then |
| 9155 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 9156 | else |
| 9157 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 9158 | fi |
| 9159 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9160 | ;; |
| 9161 | hppa*64*) |
| 9162 | shrext_cmds='.sl' |
| 9163 | hardcode_into_libs=yes |
| 9164 | dynamic_linker="$host_os dld.sl" |
| 9165 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 9166 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9167 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9168 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9169 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 9170 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9171 | ;; |
| 9172 | *) |
| 9173 | shrext_cmds='.sl' |
| 9174 | dynamic_linker="$host_os dld.sl" |
| 9175 | shlibpath_var=SHLIB_PATH |
| 9176 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 9177 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9178 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9179 | ;; |
| 9180 | esac |
| 9181 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 9182 | postinstall_cmds='chmod 555 $lib' |
| 9183 | ;; |
| 9184 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 9185 | interix3*) |
| 9186 | version_type=linux |
| 9187 | need_lib_prefix=no |
| 9188 | need_version=no |
| 9189 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9190 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9191 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 9192 | shlibpath_var=LD_LIBRARY_PATH |
| 9193 | shlibpath_overrides_runpath=no |
| 9194 | hardcode_into_libs=yes |
| 9195 | ;; |
| 9196 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9197 | irix5* | irix6* | nonstopux*) |
| 9198 | case $host_os in |
| 9199 | nonstopux*) version_type=nonstopux ;; |
| 9200 | *) |
| 9201 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 9202 | version_type=linux |
| 9203 | else |
| 9204 | version_type=irix |
| 9205 | fi ;; |
| 9206 | esac |
| 9207 | need_lib_prefix=no |
| 9208 | need_version=no |
| 9209 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9210 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9211 | case $host_os in |
| 9212 | irix5* | nonstopux*) |
| 9213 | libsuff= shlibsuff= |
| 9214 | ;; |
| 9215 | *) |
| 9216 | case $LD in # libtool.m4 will add one of these switches to LD |
| 9217 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 9218 | libsuff= shlibsuff= libmagic=32-bit;; |
| 9219 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 9220 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 9221 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 9222 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 9223 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 9224 | esac |
| 9225 | ;; |
| 9226 | esac |
| 9227 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 9228 | shlibpath_overrides_runpath=no |
| 9229 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 9230 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 9231 | hardcode_into_libs=yes |
| 9232 | ;; |
| 9233 | |
| 9234 | # No shared lib support for Linux oldld, aout, or coff. |
| 9235 | linux*oldld* | linux*aout* | linux*coff*) |
| 9236 | dynamic_linker=no |
| 9237 | ;; |
| 9238 | |
| 9239 | # This must be Linux ELF. |
| 9240 | linux*) |
| 9241 | version_type=linux |
| 9242 | need_lib_prefix=no |
| 9243 | need_version=no |
| 9244 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9245 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9246 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 9247 | shlibpath_var=LD_LIBRARY_PATH |
| 9248 | shlibpath_overrides_runpath=no |
| 9249 | # This implies no fast_install, which is unacceptable. |
| 9250 | # Some rework will be needed to allow for fast_install |
| 9251 | # before this can be enabled. |
| 9252 | hardcode_into_libs=yes |
| 9253 | |
| 9254 | # Append ld.so.conf contents to the search path |
| 9255 | if test -f /etc/ld.so.conf; then |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 9256 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9257 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 9258 | fi |
| 9259 | |
| 9260 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 9261 | # powerpc, because MkLinux only supported shared libraries with the |
| 9262 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 9263 | # most powerpc-linux boxes support dynamic linking these days and |
| 9264 | # people can always --disable-shared, the test was removed, and we |
| 9265 | # assume the GNU/Linux dynamic linker is in use. |
| 9266 | dynamic_linker='GNU/Linux ld.so' |
| 9267 | ;; |
| 9268 | |
| 9269 | knetbsd*-gnu) |
| 9270 | version_type=linux |
| 9271 | need_lib_prefix=no |
| 9272 | need_version=no |
| 9273 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9274 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9275 | shlibpath_var=LD_LIBRARY_PATH |
| 9276 | shlibpath_overrides_runpath=no |
| 9277 | hardcode_into_libs=yes |
| 9278 | dynamic_linker='GNU ld.so' |
| 9279 | ;; |
| 9280 | |
| 9281 | netbsd*) |
| 9282 | version_type=sunos |
| 9283 | need_lib_prefix=no |
| 9284 | need_version=no |
| 9285 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 9286 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9287 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9288 | dynamic_linker='NetBSD (a.out) ld.so' |
| 9289 | else |
| 9290 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9291 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9292 | dynamic_linker='NetBSD ld.elf_so' |
| 9293 | fi |
| 9294 | shlibpath_var=LD_LIBRARY_PATH |
| 9295 | shlibpath_overrides_runpath=yes |
| 9296 | hardcode_into_libs=yes |
| 9297 | ;; |
| 9298 | |
| 9299 | newsos6) |
| 9300 | version_type=linux |
| 9301 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9302 | shlibpath_var=LD_LIBRARY_PATH |
| 9303 | shlibpath_overrides_runpath=yes |
| 9304 | ;; |
| 9305 | |
| 9306 | nto-qnx*) |
| 9307 | version_type=linux |
| 9308 | need_lib_prefix=no |
| 9309 | need_version=no |
| 9310 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9311 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9312 | shlibpath_var=LD_LIBRARY_PATH |
| 9313 | shlibpath_overrides_runpath=yes |
| 9314 | ;; |
| 9315 | |
| 9316 | openbsd*) |
| 9317 | version_type=sunos |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 9318 | sys_lib_dlsearch_path_spec="/usr/lib" |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9319 | need_lib_prefix=no |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 9320 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 9321 | case $host_os in |
| 9322 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 9323 | *) need_version=no ;; |
| 9324 | esac |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9325 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9326 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9327 | shlibpath_var=LD_LIBRARY_PATH |
| 9328 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 9329 | case $host_os in |
| 9330 | openbsd2.[89] | openbsd2.[89].*) |
| 9331 | shlibpath_overrides_runpath=no |
| 9332 | ;; |
| 9333 | *) |
| 9334 | shlibpath_overrides_runpath=yes |
| 9335 | ;; |
| 9336 | esac |
| 9337 | else |
| 9338 | shlibpath_overrides_runpath=yes |
| 9339 | fi |
| 9340 | ;; |
| 9341 | |
| 9342 | os2*) |
| 9343 | libname_spec='$name' |
| 9344 | shrext_cmds=".dll" |
| 9345 | need_lib_prefix=no |
| 9346 | library_names_spec='$libname${shared_ext} $libname.a' |
| 9347 | dynamic_linker='OS/2 ld.exe' |
| 9348 | shlibpath_var=LIBPATH |
| 9349 | ;; |
| 9350 | |
| 9351 | osf3* | osf4* | osf5*) |
| 9352 | version_type=osf |
| 9353 | need_lib_prefix=no |
| 9354 | need_version=no |
| 9355 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9356 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9357 | shlibpath_var=LD_LIBRARY_PATH |
| 9358 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 9359 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 9360 | ;; |
| 9361 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9362 | solaris*) |
| 9363 | version_type=linux |
| 9364 | need_lib_prefix=no |
| 9365 | need_version=no |
| 9366 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9367 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9368 | shlibpath_var=LD_LIBRARY_PATH |
| 9369 | shlibpath_overrides_runpath=yes |
| 9370 | hardcode_into_libs=yes |
| 9371 | # ldd complains unless libraries are executable |
| 9372 | postinstall_cmds='chmod +x $lib' |
| 9373 | ;; |
| 9374 | |
| 9375 | sunos4*) |
| 9376 | version_type=sunos |
| 9377 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9378 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 9379 | shlibpath_var=LD_LIBRARY_PATH |
| 9380 | shlibpath_overrides_runpath=yes |
| 9381 | if test "$with_gnu_ld" = yes; then |
| 9382 | need_lib_prefix=no |
| 9383 | fi |
| 9384 | need_version=yes |
| 9385 | ;; |
| 9386 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 9387 | sysv4 | sysv4.3*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9388 | version_type=linux |
| 9389 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9390 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9391 | shlibpath_var=LD_LIBRARY_PATH |
| 9392 | case $host_vendor in |
| 9393 | sni) |
| 9394 | shlibpath_overrides_runpath=no |
| 9395 | need_lib_prefix=no |
| 9396 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 9397 | runpath_var=LD_RUN_PATH |
| 9398 | ;; |
| 9399 | siemens) |
| 9400 | need_lib_prefix=no |
| 9401 | ;; |
| 9402 | motorola) |
| 9403 | need_lib_prefix=no |
| 9404 | need_version=no |
| 9405 | shlibpath_overrides_runpath=no |
| 9406 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 9407 | ;; |
| 9408 | esac |
| 9409 | ;; |
| 9410 | |
| 9411 | sysv4*MP*) |
| 9412 | if test -d /usr/nec ;then |
| 9413 | version_type=linux |
| 9414 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 9415 | soname_spec='$libname${shared_ext}.$major' |
| 9416 | shlibpath_var=LD_LIBRARY_PATH |
| 9417 | fi |
| 9418 | ;; |
| 9419 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 9420 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 9421 | version_type=freebsd-elf |
| 9422 | need_lib_prefix=no |
| 9423 | need_version=no |
| 9424 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9425 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9426 | shlibpath_var=LD_LIBRARY_PATH |
| 9427 | hardcode_into_libs=yes |
| 9428 | if test "$with_gnu_ld" = yes; then |
| 9429 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 9430 | shlibpath_overrides_runpath=no |
| 9431 | else |
| 9432 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 9433 | shlibpath_overrides_runpath=yes |
| 9434 | case $host_os in |
| 9435 | sco3.2v5*) |
| 9436 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 9437 | ;; |
| 9438 | esac |
| 9439 | fi |
| 9440 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 9441 | ;; |
| 9442 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9443 | uts4*) |
| 9444 | version_type=linux |
| 9445 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9446 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9447 | shlibpath_var=LD_LIBRARY_PATH |
| 9448 | ;; |
| 9449 | |
| 9450 | *) |
| 9451 | dynamic_linker=no |
| 9452 | ;; |
| 9453 | esac |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9454 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 9455 | echo "${ECHO_T}$dynamic_linker" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9456 | test "$dynamic_linker" = no && can_build_shared=no |
| 9457 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 9458 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 9459 | if test "$GCC" = yes; then |
| 9460 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 9461 | fi |
| 9462 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9463 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 9464 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9465 | hardcode_action= |
| 9466 | if test -n "$hardcode_libdir_flag_spec" || \ |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 9467 | test -n "$runpath_var" || \ |
| 9468 | test "X$hardcode_automatic" = "Xyes" ; then |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9469 | |
| 9470 | # We can hardcode non-existant directories. |
| 9471 | if test "$hardcode_direct" != no && |
| 9472 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 9473 | # have to relink, otherwise we might link with an installed library |
| 9474 | # when we should be linking with a yet-to-be-installed one |
| 9475 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 9476 | test "$hardcode_minus_L" != no; then |
| 9477 | # Linking always hardcodes the temporary library directory. |
| 9478 | hardcode_action=relink |
| 9479 | else |
| 9480 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 9481 | hardcode_action=immediate |
| 9482 | fi |
| 9483 | else |
| 9484 | # We cannot hardcode anything, or else we can only hardcode existing |
| 9485 | # directories. |
| 9486 | hardcode_action=unsupported |
| 9487 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9488 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 9489 | echo "${ECHO_T}$hardcode_action" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9490 | |
| 9491 | if test "$hardcode_action" = relink; then |
| 9492 | # Fast installation is not supported |
| 9493 | enable_fast_install=no |
| 9494 | elif test "$shlibpath_overrides_runpath" = yes || |
| 9495 | test "$enable_shared" = no; then |
| 9496 | # Fast installation is not necessary |
| 9497 | enable_fast_install=needless |
| 9498 | fi |
| 9499 | |
| 9500 | striplib= |
| 9501 | old_striplib= |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9502 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 9503 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9504 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 9505 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 9506 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9507 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9508 | echo "${ECHO_T}yes" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9509 | else |
| 9510 | # FIXME - insert some real tests, host_os isn't really good enough |
| 9511 | case $host_os in |
| 9512 | darwin*) |
| 9513 | if test -n "$STRIP" ; then |
| 9514 | striplib="$STRIP -x" |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9515 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9516 | echo "${ECHO_T}yes" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9517 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9518 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9519 | echo "${ECHO_T}no" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9520 | fi |
| 9521 | ;; |
| 9522 | *) |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9523 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9524 | echo "${ECHO_T}no" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9525 | ;; |
| 9526 | esac |
| 9527 | fi |
| 9528 | |
| 9529 | if test "x$enable_dlopen" != xyes; then |
| 9530 | enable_dlopen=unknown |
| 9531 | enable_dlopen_self=unknown |
| 9532 | enable_dlopen_self_static=unknown |
| 9533 | else |
| 9534 | lt_cv_dlopen=no |
| 9535 | lt_cv_dlopen_libs= |
| 9536 | |
| 9537 | case $host_os in |
| 9538 | beos*) |
| 9539 | lt_cv_dlopen="load_add_on" |
| 9540 | lt_cv_dlopen_libs= |
| 9541 | lt_cv_dlopen_self=yes |
| 9542 | ;; |
| 9543 | |
| 9544 | mingw* | pw32*) |
| 9545 | lt_cv_dlopen="LoadLibrary" |
| 9546 | lt_cv_dlopen_libs= |
| 9547 | ;; |
| 9548 | |
| 9549 | cygwin*) |
| 9550 | lt_cv_dlopen="dlopen" |
| 9551 | lt_cv_dlopen_libs= |
| 9552 | ;; |
| 9553 | |
| 9554 | darwin*) |
| 9555 | # if libdl is installed we need to link against it |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9556 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 9557 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9558 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 9559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9560 | else |
| 9561 | ac_check_lib_save_LIBS=$LIBS |
| 9562 | LIBS="-ldl $LIBS" |
| 9563 | cat >conftest.$ac_ext <<_ACEOF |
| 9564 | /* confdefs.h. */ |
| 9565 | _ACEOF |
| 9566 | cat confdefs.h >>conftest.$ac_ext |
| 9567 | cat >>conftest.$ac_ext <<_ACEOF |
| 9568 | /* end confdefs.h. */ |
| 9569 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9570 | /* Override any GCC internal prototype to avoid an error. |
| 9571 | Use char because int might match the return type of a GCC |
| 9572 | builtin and then its argument prototype would still apply. */ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9573 | #ifdef __cplusplus |
| 9574 | extern "C" |
| 9575 | #endif |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9576 | char dlopen (); |
| 9577 | int |
| 9578 | main () |
| 9579 | { |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9580 | return dlopen (); |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9581 | ; |
| 9582 | return 0; |
| 9583 | } |
| 9584 | _ACEOF |
| 9585 | rm -f conftest.$ac_objext conftest$ac_exeext |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9586 | if { (ac_try="$ac_link" |
| 9587 | case "(($ac_try" in |
| 9588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9589 | *) ac_try_echo=$ac_try;; |
| 9590 | esac |
| 9591 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9592 | (eval "$ac_link") 2>conftest.er1 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9593 | ac_status=$? |
| 9594 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9595 | rm -f conftest.er1 |
| 9596 | cat conftest.err >&5 |
| 9597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9598 | (exit $ac_status); } && |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9599 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9600 | { (case "(($ac_try" in |
| 9601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9602 | *) ac_try_echo=$ac_try;; |
| 9603 | esac |
| 9604 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9605 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9606 | ac_status=$? |
| 9607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9608 | (exit $ac_status); }; } && |
| 9609 | { ac_try='test -s conftest$ac_exeext' |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9610 | { (case "(($ac_try" in |
| 9611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9612 | *) ac_try_echo=$ac_try;; |
| 9613 | esac |
| 9614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9615 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9616 | ac_status=$? |
| 9617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9618 | (exit $ac_status); }; }; then |
| 9619 | ac_cv_lib_dl_dlopen=yes |
| 9620 | else |
| 9621 | echo "$as_me: failed program was:" >&5 |
| 9622 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9623 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9624 | ac_cv_lib_dl_dlopen=no |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9625 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9626 | |
| 9627 | rm -f core conftest.err conftest.$ac_objext \ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9628 | conftest$ac_exeext conftest.$ac_ext |
| 9629 | LIBS=$ac_check_lib_save_LIBS |
| 9630 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9631 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9632 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9633 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 9634 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 9635 | else |
| 9636 | |
| 9637 | lt_cv_dlopen="dyld" |
| 9638 | lt_cv_dlopen_libs= |
| 9639 | lt_cv_dlopen_self=yes |
| 9640 | |
| 9641 | fi |
| 9642 | |
| 9643 | ;; |
| 9644 | |
| 9645 | *) |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9646 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 9647 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9648 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 9649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9650 | else |
| 9651 | cat >conftest.$ac_ext <<_ACEOF |
| 9652 | /* confdefs.h. */ |
| 9653 | _ACEOF |
| 9654 | cat confdefs.h >>conftest.$ac_ext |
| 9655 | cat >>conftest.$ac_ext <<_ACEOF |
| 9656 | /* end confdefs.h. */ |
| 9657 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 9658 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9659 | #define shl_load innocuous_shl_load |
| 9660 | |
| 9661 | /* System header to define __stub macros and hopefully few prototypes, |
| 9662 | which can conflict with char shl_load (); below. |
| 9663 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9664 | <limits.h> exists even on freestanding compilers. */ |
| 9665 | |
| 9666 | #ifdef __STDC__ |
| 9667 | # include <limits.h> |
| 9668 | #else |
| 9669 | # include <assert.h> |
| 9670 | #endif |
| 9671 | |
| 9672 | #undef shl_load |
| 9673 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9674 | /* Override any GCC internal prototype to avoid an error. |
| 9675 | Use char because int might match the return type of a GCC |
| 9676 | builtin and then its argument prototype would still apply. */ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9677 | #ifdef __cplusplus |
| 9678 | extern "C" |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9679 | #endif |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9680 | char shl_load (); |
| 9681 | /* The GNU C library defines this for functions which it implements |
| 9682 | to always fail with ENOSYS. Some functions are actually named |
| 9683 | something starting with __ and the normal name is an alias. */ |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9684 | #if defined __stub_shl_load || defined __stub___shl_load |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9685 | choke me |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9686 | #endif |
| 9687 | |
| 9688 | int |
| 9689 | main () |
| 9690 | { |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9691 | return shl_load (); |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9692 | ; |
| 9693 | return 0; |
| 9694 | } |
| 9695 | _ACEOF |
| 9696 | rm -f conftest.$ac_objext conftest$ac_exeext |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9697 | if { (ac_try="$ac_link" |
| 9698 | case "(($ac_try" in |
| 9699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9700 | *) ac_try_echo=$ac_try;; |
| 9701 | esac |
| 9702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9703 | (eval "$ac_link") 2>conftest.er1 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9704 | ac_status=$? |
| 9705 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9706 | rm -f conftest.er1 |
| 9707 | cat conftest.err >&5 |
| 9708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9709 | (exit $ac_status); } && |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9710 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9711 | { (case "(($ac_try" in |
| 9712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9713 | *) ac_try_echo=$ac_try;; |
| 9714 | esac |
| 9715 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9716 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9717 | ac_status=$? |
| 9718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9719 | (exit $ac_status); }; } && |
| 9720 | { ac_try='test -s conftest$ac_exeext' |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9721 | { (case "(($ac_try" in |
| 9722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9723 | *) ac_try_echo=$ac_try;; |
| 9724 | esac |
| 9725 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9726 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9727 | ac_status=$? |
| 9728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9729 | (exit $ac_status); }; }; then |
| 9730 | ac_cv_func_shl_load=yes |
| 9731 | else |
| 9732 | echo "$as_me: failed program was:" >&5 |
| 9733 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9734 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9735 | ac_cv_func_shl_load=no |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9736 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9737 | |
| 9738 | rm -f core conftest.err conftest.$ac_objext \ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9739 | conftest$ac_exeext conftest.$ac_ext |
| 9740 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9741 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 9742 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9743 | if test $ac_cv_func_shl_load = yes; then |
| 9744 | lt_cv_dlopen="shl_load" |
| 9745 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9746 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 9747 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9748 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 9749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9750 | else |
| 9751 | ac_check_lib_save_LIBS=$LIBS |
| 9752 | LIBS="-ldld $LIBS" |
| 9753 | cat >conftest.$ac_ext <<_ACEOF |
| 9754 | /* confdefs.h. */ |
| 9755 | _ACEOF |
| 9756 | cat confdefs.h >>conftest.$ac_ext |
| 9757 | cat >>conftest.$ac_ext <<_ACEOF |
| 9758 | /* end confdefs.h. */ |
| 9759 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9760 | /* Override any GCC internal prototype to avoid an error. |
| 9761 | Use char because int might match the return type of a GCC |
| 9762 | builtin and then its argument prototype would still apply. */ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9763 | #ifdef __cplusplus |
| 9764 | extern "C" |
| 9765 | #endif |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9766 | char shl_load (); |
| 9767 | int |
| 9768 | main () |
| 9769 | { |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9770 | return shl_load (); |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9771 | ; |
| 9772 | return 0; |
| 9773 | } |
| 9774 | _ACEOF |
| 9775 | rm -f conftest.$ac_objext conftest$ac_exeext |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9776 | if { (ac_try="$ac_link" |
| 9777 | case "(($ac_try" in |
| 9778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9779 | *) ac_try_echo=$ac_try;; |
| 9780 | esac |
| 9781 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9782 | (eval "$ac_link") 2>conftest.er1 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9783 | ac_status=$? |
| 9784 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9785 | rm -f conftest.er1 |
| 9786 | cat conftest.err >&5 |
| 9787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9788 | (exit $ac_status); } && |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9789 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9790 | { (case "(($ac_try" in |
| 9791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9792 | *) ac_try_echo=$ac_try;; |
| 9793 | esac |
| 9794 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9795 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9796 | ac_status=$? |
| 9797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9798 | (exit $ac_status); }; } && |
| 9799 | { ac_try='test -s conftest$ac_exeext' |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9800 | { (case "(($ac_try" in |
| 9801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9802 | *) ac_try_echo=$ac_try;; |
| 9803 | esac |
| 9804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9805 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9806 | ac_status=$? |
| 9807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9808 | (exit $ac_status); }; }; then |
| 9809 | ac_cv_lib_dld_shl_load=yes |
| 9810 | else |
| 9811 | echo "$as_me: failed program was:" >&5 |
| 9812 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9813 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9814 | ac_cv_lib_dld_shl_load=no |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9815 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9816 | |
| 9817 | rm -f core conftest.err conftest.$ac_objext \ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9818 | conftest$ac_exeext conftest.$ac_ext |
| 9819 | LIBS=$ac_check_lib_save_LIBS |
| 9820 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9821 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9822 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9823 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 9824 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 9825 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9826 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 9827 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9828 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 9829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9830 | else |
| 9831 | cat >conftest.$ac_ext <<_ACEOF |
| 9832 | /* confdefs.h. */ |
| 9833 | _ACEOF |
| 9834 | cat confdefs.h >>conftest.$ac_ext |
| 9835 | cat >>conftest.$ac_ext <<_ACEOF |
| 9836 | /* end confdefs.h. */ |
| 9837 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 9838 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9839 | #define dlopen innocuous_dlopen |
| 9840 | |
| 9841 | /* System header to define __stub macros and hopefully few prototypes, |
| 9842 | which can conflict with char dlopen (); below. |
| 9843 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9844 | <limits.h> exists even on freestanding compilers. */ |
| 9845 | |
| 9846 | #ifdef __STDC__ |
| 9847 | # include <limits.h> |
| 9848 | #else |
| 9849 | # include <assert.h> |
| 9850 | #endif |
| 9851 | |
| 9852 | #undef dlopen |
| 9853 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9854 | /* Override any GCC internal prototype to avoid an error. |
| 9855 | Use char because int might match the return type of a GCC |
| 9856 | builtin and then its argument prototype would still apply. */ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9857 | #ifdef __cplusplus |
| 9858 | extern "C" |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9859 | #endif |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9860 | char dlopen (); |
| 9861 | /* The GNU C library defines this for functions which it implements |
| 9862 | to always fail with ENOSYS. Some functions are actually named |
| 9863 | something starting with __ and the normal name is an alias. */ |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9864 | #if defined __stub_dlopen || defined __stub___dlopen |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9865 | choke me |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9866 | #endif |
| 9867 | |
| 9868 | int |
| 9869 | main () |
| 9870 | { |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9871 | return dlopen (); |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9872 | ; |
| 9873 | return 0; |
| 9874 | } |
| 9875 | _ACEOF |
| 9876 | rm -f conftest.$ac_objext conftest$ac_exeext |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9877 | if { (ac_try="$ac_link" |
| 9878 | case "(($ac_try" in |
| 9879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9880 | *) ac_try_echo=$ac_try;; |
| 9881 | esac |
| 9882 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9883 | (eval "$ac_link") 2>conftest.er1 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9884 | ac_status=$? |
| 9885 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9886 | rm -f conftest.er1 |
| 9887 | cat conftest.err >&5 |
| 9888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9889 | (exit $ac_status); } && |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9890 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9891 | { (case "(($ac_try" in |
| 9892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9893 | *) ac_try_echo=$ac_try;; |
| 9894 | esac |
| 9895 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9896 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9897 | ac_status=$? |
| 9898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9899 | (exit $ac_status); }; } && |
| 9900 | { ac_try='test -s conftest$ac_exeext' |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9901 | { (case "(($ac_try" in |
| 9902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9903 | *) ac_try_echo=$ac_try;; |
| 9904 | esac |
| 9905 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9906 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9907 | ac_status=$? |
| 9908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9909 | (exit $ac_status); }; }; then |
| 9910 | ac_cv_func_dlopen=yes |
| 9911 | else |
| 9912 | echo "$as_me: failed program was:" >&5 |
| 9913 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9914 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9915 | ac_cv_func_dlopen=no |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9916 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9917 | |
| 9918 | rm -f core conftest.err conftest.$ac_objext \ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9919 | conftest$ac_exeext conftest.$ac_ext |
| 9920 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9921 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 9922 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9923 | if test $ac_cv_func_dlopen = yes; then |
| 9924 | lt_cv_dlopen="dlopen" |
| 9925 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9926 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 9927 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9928 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 9929 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9930 | else |
| 9931 | ac_check_lib_save_LIBS=$LIBS |
| 9932 | LIBS="-ldl $LIBS" |
| 9933 | cat >conftest.$ac_ext <<_ACEOF |
| 9934 | /* confdefs.h. */ |
| 9935 | _ACEOF |
| 9936 | cat confdefs.h >>conftest.$ac_ext |
| 9937 | cat >>conftest.$ac_ext <<_ACEOF |
| 9938 | /* end confdefs.h. */ |
| 9939 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9940 | /* Override any GCC internal prototype to avoid an error. |
| 9941 | Use char because int might match the return type of a GCC |
| 9942 | builtin and then its argument prototype would still apply. */ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9943 | #ifdef __cplusplus |
| 9944 | extern "C" |
| 9945 | #endif |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9946 | char dlopen (); |
| 9947 | int |
| 9948 | main () |
| 9949 | { |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9950 | return dlopen (); |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9951 | ; |
| 9952 | return 0; |
| 9953 | } |
| 9954 | _ACEOF |
| 9955 | rm -f conftest.$ac_objext conftest$ac_exeext |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9956 | if { (ac_try="$ac_link" |
| 9957 | case "(($ac_try" in |
| 9958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9959 | *) ac_try_echo=$ac_try;; |
| 9960 | esac |
| 9961 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9962 | (eval "$ac_link") 2>conftest.er1 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9963 | ac_status=$? |
| 9964 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9965 | rm -f conftest.er1 |
| 9966 | cat conftest.err >&5 |
| 9967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9968 | (exit $ac_status); } && |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9969 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9970 | { (case "(($ac_try" in |
| 9971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9972 | *) ac_try_echo=$ac_try;; |
| 9973 | esac |
| 9974 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9975 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9976 | ac_status=$? |
| 9977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9978 | (exit $ac_status); }; } && |
| 9979 | { ac_try='test -s conftest$ac_exeext' |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9980 | { (case "(($ac_try" in |
| 9981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9982 | *) ac_try_echo=$ac_try;; |
| 9983 | esac |
| 9984 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9985 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9986 | ac_status=$? |
| 9987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9988 | (exit $ac_status); }; }; then |
| 9989 | ac_cv_lib_dl_dlopen=yes |
| 9990 | else |
| 9991 | echo "$as_me: failed program was:" >&5 |
| 9992 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9993 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9994 | ac_cv_lib_dl_dlopen=no |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9995 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9996 | |
| 9997 | rm -f core conftest.err conftest.$ac_objext \ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9998 | conftest$ac_exeext conftest.$ac_ext |
| 9999 | LIBS=$ac_check_lib_save_LIBS |
| 10000 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10001 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10002 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10003 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 10004 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 10005 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10006 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 10007 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10008 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 10009 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10010 | else |
| 10011 | ac_check_lib_save_LIBS=$LIBS |
| 10012 | LIBS="-lsvld $LIBS" |
| 10013 | cat >conftest.$ac_ext <<_ACEOF |
| 10014 | /* confdefs.h. */ |
| 10015 | _ACEOF |
| 10016 | cat confdefs.h >>conftest.$ac_ext |
| 10017 | cat >>conftest.$ac_ext <<_ACEOF |
| 10018 | /* end confdefs.h. */ |
| 10019 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10020 | /* Override any GCC internal prototype to avoid an error. |
| 10021 | Use char because int might match the return type of a GCC |
| 10022 | builtin and then its argument prototype would still apply. */ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10023 | #ifdef __cplusplus |
| 10024 | extern "C" |
| 10025 | #endif |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10026 | char dlopen (); |
| 10027 | int |
| 10028 | main () |
| 10029 | { |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10030 | return dlopen (); |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10031 | ; |
| 10032 | return 0; |
| 10033 | } |
| 10034 | _ACEOF |
| 10035 | rm -f conftest.$ac_objext conftest$ac_exeext |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10036 | if { (ac_try="$ac_link" |
| 10037 | case "(($ac_try" in |
| 10038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10039 | *) ac_try_echo=$ac_try;; |
| 10040 | esac |
| 10041 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10042 | (eval "$ac_link") 2>conftest.er1 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10043 | ac_status=$? |
| 10044 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10045 | rm -f conftest.er1 |
| 10046 | cat conftest.err >&5 |
| 10047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10048 | (exit $ac_status); } && |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10049 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10050 | { (case "(($ac_try" in |
| 10051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10052 | *) ac_try_echo=$ac_try;; |
| 10053 | esac |
| 10054 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10055 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10056 | ac_status=$? |
| 10057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10058 | (exit $ac_status); }; } && |
| 10059 | { ac_try='test -s conftest$ac_exeext' |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10060 | { (case "(($ac_try" in |
| 10061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10062 | *) ac_try_echo=$ac_try;; |
| 10063 | esac |
| 10064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10065 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10066 | ac_status=$? |
| 10067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10068 | (exit $ac_status); }; }; then |
| 10069 | ac_cv_lib_svld_dlopen=yes |
| 10070 | else |
| 10071 | echo "$as_me: failed program was:" >&5 |
| 10072 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10073 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10074 | ac_cv_lib_svld_dlopen=no |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10075 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10076 | |
| 10077 | rm -f core conftest.err conftest.$ac_objext \ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10078 | conftest$ac_exeext conftest.$ac_ext |
| 10079 | LIBS=$ac_check_lib_save_LIBS |
| 10080 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10081 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 10082 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10083 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 10084 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 10085 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10086 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 10087 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10088 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 10089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10090 | else |
| 10091 | ac_check_lib_save_LIBS=$LIBS |
| 10092 | LIBS="-ldld $LIBS" |
| 10093 | cat >conftest.$ac_ext <<_ACEOF |
| 10094 | /* confdefs.h. */ |
| 10095 | _ACEOF |
| 10096 | cat confdefs.h >>conftest.$ac_ext |
| 10097 | cat >>conftest.$ac_ext <<_ACEOF |
| 10098 | /* end confdefs.h. */ |
| 10099 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10100 | /* Override any GCC internal prototype to avoid an error. |
| 10101 | Use char because int might match the return type of a GCC |
| 10102 | builtin and then its argument prototype would still apply. */ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10103 | #ifdef __cplusplus |
| 10104 | extern "C" |
| 10105 | #endif |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10106 | char dld_link (); |
| 10107 | int |
| 10108 | main () |
| 10109 | { |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10110 | return dld_link (); |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10111 | ; |
| 10112 | return 0; |
| 10113 | } |
| 10114 | _ACEOF |
| 10115 | rm -f conftest.$ac_objext conftest$ac_exeext |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10116 | if { (ac_try="$ac_link" |
| 10117 | case "(($ac_try" in |
| 10118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10119 | *) ac_try_echo=$ac_try;; |
| 10120 | esac |
| 10121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10122 | (eval "$ac_link") 2>conftest.er1 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10123 | ac_status=$? |
| 10124 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10125 | rm -f conftest.er1 |
| 10126 | cat conftest.err >&5 |
| 10127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10128 | (exit $ac_status); } && |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10129 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10130 | { (case "(($ac_try" in |
| 10131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10132 | *) ac_try_echo=$ac_try;; |
| 10133 | esac |
| 10134 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10135 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10136 | ac_status=$? |
| 10137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10138 | (exit $ac_status); }; } && |
| 10139 | { ac_try='test -s conftest$ac_exeext' |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10140 | { (case "(($ac_try" in |
| 10141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10142 | *) ac_try_echo=$ac_try;; |
| 10143 | esac |
| 10144 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10145 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10146 | ac_status=$? |
| 10147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10148 | (exit $ac_status); }; }; then |
| 10149 | ac_cv_lib_dld_dld_link=yes |
| 10150 | else |
| 10151 | echo "$as_me: failed program was:" >&5 |
| 10152 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10153 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10154 | ac_cv_lib_dld_dld_link=no |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10155 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10156 | |
| 10157 | rm -f core conftest.err conftest.$ac_objext \ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10158 | conftest$ac_exeext conftest.$ac_ext |
| 10159 | LIBS=$ac_check_lib_save_LIBS |
| 10160 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10161 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 10162 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10163 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 10164 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 10165 | fi |
| 10166 | |
| 10167 | |
| 10168 | fi |
| 10169 | |
| 10170 | |
| 10171 | fi |
| 10172 | |
| 10173 | |
| 10174 | fi |
| 10175 | |
| 10176 | |
| 10177 | fi |
| 10178 | |
| 10179 | |
| 10180 | fi |
| 10181 | |
| 10182 | ;; |
| 10183 | esac |
| 10184 | |
| 10185 | if test "x$lt_cv_dlopen" != xno; then |
| 10186 | enable_dlopen=yes |
| 10187 | else |
| 10188 | enable_dlopen=no |
| 10189 | fi |
| 10190 | |
| 10191 | case $lt_cv_dlopen in |
| 10192 | dlopen) |
| 10193 | save_CPPFLAGS="$CPPFLAGS" |
| 10194 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 10195 | |
| 10196 | save_LDFLAGS="$LDFLAGS" |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 10197 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10198 | |
| 10199 | save_LIBS="$LIBS" |
| 10200 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 10201 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10202 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 10203 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10204 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 10205 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10206 | else |
| 10207 | if test "$cross_compiling" = yes; then : |
| 10208 | lt_cv_dlopen_self=cross |
| 10209 | else |
| 10210 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 10211 | lt_status=$lt_dlunknown |
| 10212 | cat > conftest.$ac_ext <<EOF |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 10213 | #line 10213 "configure" |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10214 | #include "confdefs.h" |
| 10215 | |
| 10216 | #if HAVE_DLFCN_H |
| 10217 | #include <dlfcn.h> |
| 10218 | #endif |
| 10219 | |
| 10220 | #include <stdio.h> |
| 10221 | |
| 10222 | #ifdef RTLD_GLOBAL |
| 10223 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 10224 | #else |
| 10225 | # ifdef DL_GLOBAL |
| 10226 | # define LT_DLGLOBAL DL_GLOBAL |
| 10227 | # else |
| 10228 | # define LT_DLGLOBAL 0 |
| 10229 | # endif |
| 10230 | #endif |
| 10231 | |
| 10232 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 10233 | find out it does not work in some platform. */ |
| 10234 | #ifndef LT_DLLAZY_OR_NOW |
| 10235 | # ifdef RTLD_LAZY |
| 10236 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 10237 | # else |
| 10238 | # ifdef DL_LAZY |
| 10239 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 10240 | # else |
| 10241 | # ifdef RTLD_NOW |
| 10242 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 10243 | # else |
| 10244 | # ifdef DL_NOW |
| 10245 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 10246 | # else |
| 10247 | # define LT_DLLAZY_OR_NOW 0 |
| 10248 | # endif |
| 10249 | # endif |
| 10250 | # endif |
| 10251 | # endif |
| 10252 | #endif |
| 10253 | |
| 10254 | #ifdef __cplusplus |
| 10255 | extern "C" void exit (int); |
| 10256 | #endif |
| 10257 | |
| 10258 | void fnord() { int i=42;} |
| 10259 | int main () |
| 10260 | { |
| 10261 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 10262 | int status = $lt_dlunknown; |
| 10263 | |
| 10264 | if (self) |
| 10265 | { |
| 10266 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 10267 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 10268 | /* dlclose (self); */ |
| 10269 | } |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 10270 | else |
| 10271 | puts (dlerror ()); |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10272 | |
| 10273 | exit (status); |
| 10274 | } |
| 10275 | EOF |
| 10276 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10277 | (eval $ac_link) 2>&5 |
| 10278 | ac_status=$? |
| 10279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10280 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 10281 | (./conftest; exit; ) >&5 2>/dev/null |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10282 | lt_status=$? |
| 10283 | case x$lt_status in |
| 10284 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 10285 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 10286 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10287 | esac |
| 10288 | else : |
| 10289 | # compilation failed |
| 10290 | lt_cv_dlopen_self=no |
| 10291 | fi |
| 10292 | fi |
| 10293 | rm -fr conftest* |
| 10294 | |
| 10295 | |
| 10296 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10297 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 10298 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10299 | |
| 10300 | if test "x$lt_cv_dlopen_self" = xyes; then |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 10301 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10302 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 10303 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10304 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 10305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10306 | else |
| 10307 | if test "$cross_compiling" = yes; then : |
| 10308 | lt_cv_dlopen_self_static=cross |
| 10309 | else |
| 10310 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 10311 | lt_status=$lt_dlunknown |
| 10312 | cat > conftest.$ac_ext <<EOF |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 10313 | #line 10313 "configure" |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10314 | #include "confdefs.h" |
| 10315 | |
| 10316 | #if HAVE_DLFCN_H |
| 10317 | #include <dlfcn.h> |
| 10318 | #endif |
| 10319 | |
| 10320 | #include <stdio.h> |
| 10321 | |
| 10322 | #ifdef RTLD_GLOBAL |
| 10323 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 10324 | #else |
| 10325 | # ifdef DL_GLOBAL |
| 10326 | # define LT_DLGLOBAL DL_GLOBAL |
| 10327 | # else |
| 10328 | # define LT_DLGLOBAL 0 |
| 10329 | # endif |
| 10330 | #endif |
| 10331 | |
| 10332 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 10333 | find out it does not work in some platform. */ |
| 10334 | #ifndef LT_DLLAZY_OR_NOW |
| 10335 | # ifdef RTLD_LAZY |
| 10336 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 10337 | # else |
| 10338 | # ifdef DL_LAZY |
| 10339 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 10340 | # else |
| 10341 | # ifdef RTLD_NOW |
| 10342 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 10343 | # else |
| 10344 | # ifdef DL_NOW |
| 10345 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 10346 | # else |
| 10347 | # define LT_DLLAZY_OR_NOW 0 |
| 10348 | # endif |
| 10349 | # endif |
| 10350 | # endif |
| 10351 | # endif |
| 10352 | #endif |
| 10353 | |
| 10354 | #ifdef __cplusplus |
| 10355 | extern "C" void exit (int); |
| 10356 | #endif |
| 10357 | |
| 10358 | void fnord() { int i=42;} |
| 10359 | int main () |
| 10360 | { |
| 10361 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 10362 | int status = $lt_dlunknown; |
| 10363 | |
| 10364 | if (self) |
| 10365 | { |
| 10366 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 10367 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 10368 | /* dlclose (self); */ |
| 10369 | } |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 10370 | else |
| 10371 | puts (dlerror ()); |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10372 | |
| 10373 | exit (status); |
| 10374 | } |
| 10375 | EOF |
| 10376 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10377 | (eval $ac_link) 2>&5 |
| 10378 | ac_status=$? |
| 10379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10380 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 10381 | (./conftest; exit; ) >&5 2>/dev/null |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10382 | lt_status=$? |
| 10383 | case x$lt_status in |
| 10384 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 10385 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 10386 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10387 | esac |
| 10388 | else : |
| 10389 | # compilation failed |
| 10390 | lt_cv_dlopen_self_static=no |
| 10391 | fi |
| 10392 | fi |
| 10393 | rm -fr conftest* |
| 10394 | |
| 10395 | |
| 10396 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10397 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 10398 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10399 | fi |
| 10400 | |
| 10401 | CPPFLAGS="$save_CPPFLAGS" |
| 10402 | LDFLAGS="$save_LDFLAGS" |
| 10403 | LIBS="$save_LIBS" |
| 10404 | ;; |
| 10405 | esac |
| 10406 | |
| 10407 | case $lt_cv_dlopen_self in |
| 10408 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 10409 | *) enable_dlopen_self=unknown ;; |
| 10410 | esac |
| 10411 | |
| 10412 | case $lt_cv_dlopen_self_static in |
| 10413 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 10414 | *) enable_dlopen_self_static=unknown ;; |
| 10415 | esac |
| 10416 | fi |
| 10417 | |
| 10418 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 10419 | # Report which library types will actually be built |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10420 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 10421 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
| 10422 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 10423 | echo "${ECHO_T}$can_build_shared" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10424 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10425 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 10426 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10427 | test "$can_build_shared" = "no" && enable_shared=no |
| 10428 | |
| 10429 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 10430 | # are all built from PIC. |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 10431 | case $host_os in |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10432 | aix3*) |
| 10433 | test "$enable_shared" = yes && enable_static=no |
| 10434 | if test -n "$RANLIB"; then |
| 10435 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 10436 | postinstall_cmds='$RANLIB $lib' |
| 10437 | fi |
| 10438 | ;; |
| 10439 | |
| 10440 | aix4* | aix5*) |
| 10441 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 10442 | test "$enable_shared" = yes && enable_static=no |
| 10443 | fi |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10444 | ;; |
| 10445 | esac |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10446 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 10447 | echo "${ECHO_T}$enable_shared" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10448 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10449 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 10450 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10451 | # Make sure either enable_shared or enable_static is yes. |
| 10452 | test "$enable_shared" = yes || enable_static=yes |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10453 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 10454 | echo "${ECHO_T}$enable_static" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10455 | |
| 10456 | # The else clause should only fire when bootstrapping the |
| 10457 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 10458 | # with your package, and you will get complaints that there are |
| 10459 | # no rules to generate ltmain.sh. |
| 10460 | if test -f "$ltmain"; then |
| 10461 | # See if we are running on zsh, and set the options which allow our commands through |
| 10462 | # without removal of \ escapes. |
| 10463 | if test -n "${ZSH_VERSION+set}" ; then |
| 10464 | setopt NO_GLOB_SUBST |
| 10465 | fi |
| 10466 | # Now quote all the things that may contain metacharacters while being |
| 10467 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 10468 | # variables and quote the copies for generation of the libtool script. |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 10469 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10470 | SED SHELL STRIP \ |
| 10471 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 10472 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 10473 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 10474 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 10475 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 10476 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 10477 | old_postinstall_cmds old_postuninstall_cmds \ |
| 10478 | compiler \ |
| 10479 | CC \ |
| 10480 | LD \ |
| 10481 | lt_prog_compiler_wl \ |
| 10482 | lt_prog_compiler_pic \ |
| 10483 | lt_prog_compiler_static \ |
| 10484 | lt_prog_compiler_no_builtin_flag \ |
| 10485 | export_dynamic_flag_spec \ |
| 10486 | thread_safe_flag_spec \ |
| 10487 | whole_archive_flag_spec \ |
| 10488 | enable_shared_with_static_runtimes \ |
| 10489 | old_archive_cmds \ |
| 10490 | old_archive_from_new_cmds \ |
| 10491 | predep_objects \ |
| 10492 | postdep_objects \ |
| 10493 | predeps \ |
| 10494 | postdeps \ |
| 10495 | compiler_lib_search_path \ |
| 10496 | archive_cmds \ |
| 10497 | archive_expsym_cmds \ |
| 10498 | postinstall_cmds \ |
| 10499 | postuninstall_cmds \ |
| 10500 | old_archive_from_expsyms_cmds \ |
| 10501 | allow_undefined_flag \ |
| 10502 | no_undefined_flag \ |
| 10503 | export_symbols_cmds \ |
| 10504 | hardcode_libdir_flag_spec \ |
| 10505 | hardcode_libdir_flag_spec_ld \ |
| 10506 | hardcode_libdir_separator \ |
| 10507 | hardcode_automatic \ |
| 10508 | module_cmds \ |
| 10509 | module_expsym_cmds \ |
| 10510 | lt_cv_prog_compiler_c_o \ |
| 10511 | exclude_expsyms \ |
| 10512 | include_expsyms; do |
| 10513 | |
| 10514 | case $var in |
| 10515 | old_archive_cmds | \ |
| 10516 | old_archive_from_new_cmds | \ |
| 10517 | archive_cmds | \ |
| 10518 | archive_expsym_cmds | \ |
| 10519 | module_cmds | \ |
| 10520 | module_expsym_cmds | \ |
| 10521 | old_archive_from_expsyms_cmds | \ |
| 10522 | export_symbols_cmds | \ |
| 10523 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 10524 | postinstall_cmds | postuninstall_cmds | \ |
| 10525 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 10526 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 10527 | # Double-quote double-evaled strings. |
| 10528 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 10529 | ;; |
| 10530 | *) |
| 10531 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 10532 | ;; |
| 10533 | esac |
| 10534 | done |
| 10535 | |
| 10536 | case $lt_echo in |
| 10537 | *'\$0 --fallback-echo"') |
| 10538 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 10539 | ;; |
| 10540 | esac |
| 10541 | |
| 10542 | cfgfile="${ofile}T" |
| 10543 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
| 10544 | $rm -f "$cfgfile" |
| 10545 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
| 10546 | echo "$as_me: creating $ofile" >&6;} |
| 10547 | |
| 10548 | cat <<__EOF__ >> "$cfgfile" |
| 10549 | #! $SHELL |
| 10550 | |
| 10551 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 10552 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 10553 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 10554 | # |
| 10555 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
| 10556 | # Free Software Foundation, Inc. |
| 10557 | # |
| 10558 | # This file is part of GNU Libtool: |
| 10559 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 10560 | # |
| 10561 | # This program is free software; you can redistribute it and/or modify |
| 10562 | # it under the terms of the GNU General Public License as published by |
| 10563 | # the Free Software Foundation; either version 2 of the License, or |
| 10564 | # (at your option) any later version. |
| 10565 | # |
| 10566 | # This program is distributed in the hope that it will be useful, but |
| 10567 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10568 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 10569 | # General Public License for more details. |
| 10570 | # |
| 10571 | # You should have received a copy of the GNU General Public License |
| 10572 | # along with this program; if not, write to the Free Software |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 10573 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10574 | # |
| 10575 | # As a special exception to the GNU General Public License, if you |
| 10576 | # distribute this file as part of a program that contains a |
| 10577 | # configuration script generated by Autoconf, you may include it under |
| 10578 | # the same distribution terms that you use for the rest of that program. |
| 10579 | |
| 10580 | # A sed program that does not truncate output. |
| 10581 | SED=$lt_SED |
| 10582 | |
| 10583 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 10584 | Xsed="$SED -e 1s/^X//" |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10585 | |
| 10586 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 10587 | # if CDPATH is set. |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 10588 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10589 | |
| 10590 | # The names of the tagged configurations supported by this script. |
| 10591 | available_tags= |
| 10592 | |
| 10593 | # ### BEGIN LIBTOOL CONFIG |
| 10594 | |
| 10595 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 10596 | |
| 10597 | # Shell to use when invoking shell scripts. |
| 10598 | SHELL=$lt_SHELL |
| 10599 | |
| 10600 | # Whether or not to build shared libraries. |
| 10601 | build_libtool_libs=$enable_shared |
| 10602 | |
| 10603 | # Whether or not to build static libraries. |
| 10604 | build_old_libs=$enable_static |
| 10605 | |
| 10606 | # Whether or not to add -lc for building shared libraries. |
| 10607 | build_libtool_need_lc=$archive_cmds_need_lc |
| 10608 | |
| 10609 | # Whether or not to disallow shared libs when runtime libs are static |
| 10610 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 10611 | |
| 10612 | # Whether or not to optimize for fast installation. |
| 10613 | fast_install=$enable_fast_install |
| 10614 | |
| 10615 | # The host system. |
| 10616 | host_alias=$host_alias |
| 10617 | host=$host |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 10618 | host_os=$host_os |
| 10619 | |
| 10620 | # The build system. |
| 10621 | build_alias=$build_alias |
| 10622 | build=$build |
| 10623 | build_os=$build_os |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10624 | |
| 10625 | # An echo program that does not interpret backslashes. |
| 10626 | echo=$lt_echo |
| 10627 | |
| 10628 | # The archiver. |
| 10629 | AR=$lt_AR |
| 10630 | AR_FLAGS=$lt_AR_FLAGS |
| 10631 | |
| 10632 | # A C compiler. |
| 10633 | LTCC=$lt_LTCC |
| 10634 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 10635 | # LTCC compiler flags. |
| 10636 | LTCFLAGS=$lt_LTCFLAGS |
| 10637 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10638 | # A language-specific compiler. |
| 10639 | CC=$lt_compiler |
| 10640 | |
| 10641 | # Is the compiler the GNU C compiler? |
| 10642 | with_gcc=$GCC |
| 10643 | |
| 10644 | # An ERE matcher. |
| 10645 | EGREP=$lt_EGREP |
| 10646 | |
| 10647 | # The linker used to build libraries. |
| 10648 | LD=$lt_LD |
| 10649 | |
| 10650 | # Whether we need hard or soft links. |
| 10651 | LN_S=$lt_LN_S |
| 10652 | |
| 10653 | # A BSD-compatible nm program. |
| 10654 | NM=$lt_NM |
| 10655 | |
| 10656 | # A symbol stripping program |
| 10657 | STRIP=$lt_STRIP |
| 10658 | |
| 10659 | # Used to examine libraries when file_magic_cmd begins "file" |
| 10660 | MAGIC_CMD=$MAGIC_CMD |
| 10661 | |
| 10662 | # Used on cygwin: DLL creation program. |
| 10663 | DLLTOOL="$DLLTOOL" |
| 10664 | |
| 10665 | # Used on cygwin: object dumper. |
| 10666 | OBJDUMP="$OBJDUMP" |
| 10667 | |
| 10668 | # Used on cygwin: assembler. |
| 10669 | AS="$AS" |
| 10670 | |
| 10671 | # The name of the directory that contains temporary libtool files. |
| 10672 | objdir=$objdir |
| 10673 | |
| 10674 | # How to create reloadable object files. |
| 10675 | reload_flag=$lt_reload_flag |
| 10676 | reload_cmds=$lt_reload_cmds |
| 10677 | |
| 10678 | # How to pass a linker flag through the compiler. |
| 10679 | wl=$lt_lt_prog_compiler_wl |
| 10680 | |
| 10681 | # Object file suffix (normally "o"). |
| 10682 | objext="$ac_objext" |
| 10683 | |
| 10684 | # Old archive suffix (normally "a"). |
| 10685 | libext="$libext" |
| 10686 | |
| 10687 | # Shared library suffix (normally ".so"). |
| 10688 | shrext_cmds='$shrext_cmds' |
| 10689 | |
| 10690 | # Executable file suffix (normally ""). |
| 10691 | exeext="$exeext" |
| 10692 | |
| 10693 | # Additional compiler flags for building library objects. |
| 10694 | pic_flag=$lt_lt_prog_compiler_pic |
| 10695 | pic_mode=$pic_mode |
| 10696 | |
| 10697 | # What is the maximum length of a command? |
| 10698 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 10699 | |
| 10700 | # Does compiler simultaneously support -c and -o options? |
| 10701 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 10702 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 10703 | # Must we lock files when doing compilation? |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10704 | need_locks=$lt_need_locks |
| 10705 | |
| 10706 | # Do we need the lib prefix for modules? |
| 10707 | need_lib_prefix=$need_lib_prefix |
| 10708 | |
| 10709 | # Do we need a version for libraries? |
| 10710 | need_version=$need_version |
| 10711 | |
| 10712 | # Whether dlopen is supported. |
| 10713 | dlopen_support=$enable_dlopen |
| 10714 | |
| 10715 | # Whether dlopen of programs is supported. |
| 10716 | dlopen_self=$enable_dlopen_self |
| 10717 | |
| 10718 | # Whether dlopen of statically linked programs is supported. |
| 10719 | dlopen_self_static=$enable_dlopen_self_static |
| 10720 | |
| 10721 | # Compiler flag to prevent dynamic linking. |
| 10722 | link_static_flag=$lt_lt_prog_compiler_static |
| 10723 | |
| 10724 | # Compiler flag to turn off builtin functions. |
| 10725 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 10726 | |
| 10727 | # Compiler flag to allow reflexive dlopens. |
| 10728 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 10729 | |
| 10730 | # Compiler flag to generate shared objects directly from archives. |
| 10731 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 10732 | |
| 10733 | # Compiler flag to generate thread-safe objects. |
| 10734 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 10735 | |
| 10736 | # Library versioning type. |
| 10737 | version_type=$version_type |
| 10738 | |
| 10739 | # Format of library name prefix. |
| 10740 | libname_spec=$lt_libname_spec |
| 10741 | |
| 10742 | # List of archive names. First name is the real one, the rest are links. |
| 10743 | # The last name is the one that the linker finds with -lNAME. |
| 10744 | library_names_spec=$lt_library_names_spec |
| 10745 | |
| 10746 | # The coded name of the library, if different from the real name. |
| 10747 | soname_spec=$lt_soname_spec |
| 10748 | |
| 10749 | # Commands used to build and install an old-style archive. |
| 10750 | RANLIB=$lt_RANLIB |
| 10751 | old_archive_cmds=$lt_old_archive_cmds |
| 10752 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 10753 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 10754 | |
| 10755 | # Create an old-style archive from a shared archive. |
| 10756 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 10757 | |
| 10758 | # Create a temporary old-style archive to link instead of a shared archive. |
| 10759 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 10760 | |
| 10761 | # Commands used to build and install a shared archive. |
| 10762 | archive_cmds=$lt_archive_cmds |
| 10763 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 10764 | postinstall_cmds=$lt_postinstall_cmds |
| 10765 | postuninstall_cmds=$lt_postuninstall_cmds |
| 10766 | |
| 10767 | # Commands used to build a loadable module (assumed same as above if empty) |
| 10768 | module_cmds=$lt_module_cmds |
| 10769 | module_expsym_cmds=$lt_module_expsym_cmds |
| 10770 | |
| 10771 | # Commands to strip libraries. |
| 10772 | old_striplib=$lt_old_striplib |
| 10773 | striplib=$lt_striplib |
| 10774 | |
| 10775 | # Dependencies to place before the objects being linked to create a |
| 10776 | # shared library. |
| 10777 | predep_objects=$lt_predep_objects |
| 10778 | |
| 10779 | # Dependencies to place after the objects being linked to create a |
| 10780 | # shared library. |
| 10781 | postdep_objects=$lt_postdep_objects |
| 10782 | |
| 10783 | # Dependencies to place before the objects being linked to create a |
| 10784 | # shared library. |
| 10785 | predeps=$lt_predeps |
| 10786 | |
| 10787 | # Dependencies to place after the objects being linked to create a |
| 10788 | # shared library. |
| 10789 | postdeps=$lt_postdeps |
| 10790 | |
| 10791 | # The library search path used internally by the compiler when linking |
| 10792 | # a shared library. |
| 10793 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 10794 | |
| 10795 | # Method to check whether dependent libraries are shared objects. |
| 10796 | deplibs_check_method=$lt_deplibs_check_method |
| 10797 | |
| 10798 | # Command to use when deplibs_check_method == file_magic. |
| 10799 | file_magic_cmd=$lt_file_magic_cmd |
| 10800 | |
| 10801 | # Flag that allows shared libraries with undefined symbols to be built. |
| 10802 | allow_undefined_flag=$lt_allow_undefined_flag |
| 10803 | |
| 10804 | # Flag that forces no undefined symbols. |
| 10805 | no_undefined_flag=$lt_no_undefined_flag |
| 10806 | |
| 10807 | # Commands used to finish a libtool library installation in a directory. |
| 10808 | finish_cmds=$lt_finish_cmds |
| 10809 | |
| 10810 | # Same as above, but a single script fragment to be evaled but not shown. |
| 10811 | finish_eval=$lt_finish_eval |
| 10812 | |
| 10813 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 10814 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 10815 | |
| 10816 | # Transform the output of nm in a proper C declaration |
| 10817 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 10818 | |
| 10819 | # Transform the output of nm in a C name address pair |
| 10820 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 10821 | |
| 10822 | # This is the shared library runtime path variable. |
| 10823 | runpath_var=$runpath_var |
| 10824 | |
| 10825 | # This is the shared library path variable. |
| 10826 | shlibpath_var=$shlibpath_var |
| 10827 | |
| 10828 | # Is shlibpath searched before the hard-coded library search path? |
| 10829 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 10830 | |
| 10831 | # How to hardcode a shared library path into an executable. |
| 10832 | hardcode_action=$hardcode_action |
| 10833 | |
| 10834 | # Whether we should hardcode library paths into libraries. |
| 10835 | hardcode_into_libs=$hardcode_into_libs |
| 10836 | |
| 10837 | # Flag to hardcode \$libdir into a binary during linking. |
| 10838 | # This must work even if \$libdir does not exist. |
| 10839 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 10840 | |
| 10841 | # If ld is used when linking, flag to hardcode \$libdir into |
| 10842 | # a binary during linking. This must work even if \$libdir does |
| 10843 | # not exist. |
| 10844 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 10845 | |
| 10846 | # Whether we need a single -rpath flag with a separated argument. |
| 10847 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 10848 | |
| 10849 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 10850 | # resulting binary. |
| 10851 | hardcode_direct=$hardcode_direct |
| 10852 | |
| 10853 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 10854 | # resulting binary. |
| 10855 | hardcode_minus_L=$hardcode_minus_L |
| 10856 | |
| 10857 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 10858 | # the resulting binary. |
| 10859 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 10860 | |
| 10861 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 10862 | # and all subsequent libraries and executables linked against it. |
| 10863 | hardcode_automatic=$hardcode_automatic |
| 10864 | |
| 10865 | # Variables whose values should be saved in libtool wrapper scripts and |
| 10866 | # restored at relink time. |
| 10867 | variables_saved_for_relink="$variables_saved_for_relink" |
| 10868 | |
| 10869 | # Whether libtool must link a program against all its dependency libraries. |
| 10870 | link_all_deplibs=$link_all_deplibs |
| 10871 | |
| 10872 | # Compile-time system search path for libraries |
| 10873 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 10874 | |
| 10875 | # Run-time system search path for libraries |
| 10876 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 10877 | |
| 10878 | # Fix the shell variable \$srcfile for the compiler. |
| 10879 | fix_srcfile_path="$fix_srcfile_path" |
| 10880 | |
| 10881 | # Set to yes if exported symbols are required. |
| 10882 | always_export_symbols=$always_export_symbols |
| 10883 | |
| 10884 | # The commands to list exported symbols. |
| 10885 | export_symbols_cmds=$lt_export_symbols_cmds |
| 10886 | |
| 10887 | # The commands to extract the exported symbol list from a shared archive. |
| 10888 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 10889 | |
| 10890 | # Symbols that should not be listed in the preloaded symbols. |
| 10891 | exclude_expsyms=$lt_exclude_expsyms |
| 10892 | |
| 10893 | # Symbols that must always be exported. |
| 10894 | include_expsyms=$lt_include_expsyms |
| 10895 | |
| 10896 | # ### END LIBTOOL CONFIG |
| 10897 | |
| 10898 | __EOF__ |
| 10899 | |
| 10900 | |
| 10901 | case $host_os in |
| 10902 | aix3*) |
| 10903 | cat <<\EOF >> "$cfgfile" |
| 10904 | |
| 10905 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 10906 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 10907 | # vanish in a puff of smoke. |
| 10908 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 10909 | COLLECT_NAMES= |
| 10910 | export COLLECT_NAMES |
| 10911 | fi |
| 10912 | EOF |
| 10913 | ;; |
| 10914 | esac |
| 10915 | |
| 10916 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 10917 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 10918 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 10919 | # is reportedly fixed, but why not run on old versions too? |
| 10920 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
| 10921 | |
| 10922 | mv -f "$cfgfile" "$ofile" || \ |
| 10923 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 10924 | chmod +x "$ofile" |
| 10925 | |
| 10926 | else |
| 10927 | # If there is no Makefile yet, we rely on a make rule to execute |
| 10928 | # `config.status --recheck' to rerun these tests and create the |
| 10929 | # libtool script then. |
| 10930 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 10931 | if test -f "$ltmain_in"; then |
| 10932 | test -f Makefile && make "$ltmain" |
| 10933 | fi |
| 10934 | fi |
| 10935 | |
| 10936 | |
| 10937 | ac_ext=c |
| 10938 | ac_cpp='$CPP $CPPFLAGS' |
| 10939 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10940 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10941 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10942 | |
| 10943 | CC="$lt_save_CC" |
| 10944 | |
| 10945 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10946 | # Check whether --with-tags was given. |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10947 | if test "${with_tags+set}" = set; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10948 | withval=$with_tags; tagnames="$withval" |
| 10949 | fi |
| 10950 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10951 | |
| 10952 | if test -f "$ltmain" && test -n "$tagnames"; then |
| 10953 | if test ! -f "${ofile}"; then |
| 10954 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
| 10955 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
| 10956 | fi |
| 10957 | |
| 10958 | if test -z "$LTCC"; then |
| 10959 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
| 10960 | if test -z "$LTCC"; then |
| 10961 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
| 10962 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
| 10963 | else |
| 10964 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
| 10965 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
| 10966 | fi |
| 10967 | fi |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 10968 | if test -z "$LTCFLAGS"; then |
| 10969 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
| 10970 | fi |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10971 | |
| 10972 | # Extract list of available tagged configurations in $ofile. |
| 10973 | # Note that this assumes the entire list is on one line. |
| 10974 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
| 10975 | |
| 10976 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 10977 | for tagname in $tagnames; do |
| 10978 | IFS="$lt_save_ifs" |
| 10979 | # Check whether tagname contains only valid characters |
| 10980 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
| 10981 | "") ;; |
| 10982 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
| 10983 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
| 10984 | { (exit 1); exit 1; }; } |
| 10985 | ;; |
| 10986 | esac |
| 10987 | |
| 10988 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
| 10989 | then |
| 10990 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
| 10991 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
| 10992 | { (exit 1); exit 1; }; } |
| 10993 | fi |
| 10994 | |
| 10995 | # Update the list of available tags. |
| 10996 | if test -n "$tagname"; then |
| 10997 | echo appending configuration tag \"$tagname\" to $ofile |
| 10998 | |
| 10999 | case $tagname in |
| 11000 | CXX) |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11001 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 11002 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 11003 | (test "X$CXX" != "Xg++"))) ; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11004 | ac_ext=cpp |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11005 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 11006 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11007 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11008 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 11009 | |
| 11010 | |
| 11011 | |
| 11012 | |
| 11013 | archive_cmds_need_lc_CXX=no |
| 11014 | allow_undefined_flag_CXX= |
| 11015 | always_export_symbols_CXX=no |
| 11016 | archive_expsym_cmds_CXX= |
| 11017 | export_dynamic_flag_spec_CXX= |
| 11018 | hardcode_direct_CXX=no |
| 11019 | hardcode_libdir_flag_spec_CXX= |
| 11020 | hardcode_libdir_flag_spec_ld_CXX= |
| 11021 | hardcode_libdir_separator_CXX= |
| 11022 | hardcode_minus_L_CXX=no |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11023 | hardcode_shlibpath_var_CXX=unsupported |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11024 | hardcode_automatic_CXX=no |
| 11025 | module_cmds_CXX= |
| 11026 | module_expsym_cmds_CXX= |
| 11027 | link_all_deplibs_CXX=unknown |
| 11028 | old_archive_cmds_CXX=$old_archive_cmds |
| 11029 | no_undefined_flag_CXX= |
| 11030 | whole_archive_flag_spec_CXX= |
| 11031 | enable_shared_with_static_runtimes_CXX=no |
| 11032 | |
| 11033 | # Dependencies to place before and after the object being linked: |
| 11034 | predep_objects_CXX= |
| 11035 | postdep_objects_CXX= |
| 11036 | predeps_CXX= |
| 11037 | postdeps_CXX= |
| 11038 | compiler_lib_search_path_CXX= |
| 11039 | |
| 11040 | # Source file extension for C++ test sources. |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11041 | ac_ext=cpp |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11042 | |
| 11043 | # Object file extension for compiled C++ test sources. |
| 11044 | objext=o |
| 11045 | objext_CXX=$objext |
| 11046 | |
| 11047 | # Code to be used in simple compile tests |
| 11048 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 11049 | |
| 11050 | # Code to be used in simple link tests |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11051 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11052 | |
| 11053 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 11054 | |
| 11055 | # If no C compiler was specified, use CC. |
| 11056 | LTCC=${LTCC-"$CC"} |
| 11057 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11058 | # If no C compiler flags were specified, use CFLAGS. |
| 11059 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 11060 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11061 | # Allow CC to be a program name with arguments. |
| 11062 | compiler=$CC |
| 11063 | |
| 11064 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11065 | # save warnings/boilerplate of simple test code |
| 11066 | ac_outfile=conftest.$ac_objext |
| 11067 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 11068 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 11069 | _lt_compiler_boilerplate=`cat conftest.err` |
| 11070 | $rm conftest* |
| 11071 | |
| 11072 | ac_outfile=conftest.$ac_objext |
| 11073 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 11074 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 11075 | _lt_linker_boilerplate=`cat conftest.err` |
| 11076 | $rm conftest* |
| 11077 | |
| 11078 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11079 | # Allow CC to be a program name with arguments. |
| 11080 | lt_save_CC=$CC |
| 11081 | lt_save_LD=$LD |
| 11082 | lt_save_GCC=$GCC |
| 11083 | GCC=$GXX |
| 11084 | lt_save_with_gnu_ld=$with_gnu_ld |
| 11085 | lt_save_path_LD=$lt_cv_path_LD |
| 11086 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 11087 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 11088 | else |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11089 | $as_unset lt_cv_prog_gnu_ld |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11090 | fi |
| 11091 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 11092 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 11093 | else |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11094 | $as_unset lt_cv_path_LD |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11095 | fi |
| 11096 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 11097 | CC=${CXX-"c++"} |
| 11098 | compiler=$CC |
| 11099 | compiler_CXX=$CC |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11100 | for cc_temp in $compiler""; do |
| 11101 | case $cc_temp in |
| 11102 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 11103 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 11104 | \-*) ;; |
| 11105 | *) break;; |
| 11106 | esac |
| 11107 | done |
| 11108 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 11109 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11110 | |
| 11111 | # We don't want -fno-exception wen compiling C++ code, so set the |
| 11112 | # no_builtin_flag separately |
| 11113 | if test "$GXX" = yes; then |
| 11114 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 11115 | else |
| 11116 | lt_prog_compiler_no_builtin_flag_CXX= |
| 11117 | fi |
| 11118 | |
| 11119 | if test "$GXX" = yes; then |
| 11120 | # Set up default GNU C++ configuration |
| 11121 | |
| 11122 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11123 | # Check whether --with-gnu-ld was given. |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11124 | if test "${with_gnu_ld+set}" = set; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11125 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11126 | else |
| 11127 | with_gnu_ld=no |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11128 | fi |
| 11129 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11130 | ac_prog=ld |
| 11131 | if test "$GCC" = yes; then |
| 11132 | # Check if gcc -print-prog-name=ld gives a path. |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11133 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 11134 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11135 | case $host in |
| 11136 | *-*-mingw*) |
| 11137 | # gcc leaves a trailing carriage return which upsets mingw |
| 11138 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 11139 | *) |
| 11140 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 11141 | esac |
| 11142 | case $ac_prog in |
| 11143 | # Accept absolute paths. |
| 11144 | [\\/]* | ?:[\\/]*) |
| 11145 | re_direlt='/[^/][^/]*/\.\./' |
| 11146 | # Canonicalize the pathname of ld |
| 11147 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 11148 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 11149 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 11150 | done |
| 11151 | test -z "$LD" && LD="$ac_prog" |
| 11152 | ;; |
| 11153 | "") |
| 11154 | # If it fails, then pretend we aren't using GCC. |
| 11155 | ac_prog=ld |
| 11156 | ;; |
| 11157 | *) |
| 11158 | # If it is relative, then search for the first ld in PATH. |
| 11159 | with_gnu_ld=unknown |
| 11160 | ;; |
| 11161 | esac |
| 11162 | elif test "$with_gnu_ld" = yes; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11163 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 11164 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11165 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11166 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 11167 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11168 | fi |
| 11169 | if test "${lt_cv_path_LD+set}" = set; then |
| 11170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11171 | else |
| 11172 | if test -z "$LD"; then |
| 11173 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 11174 | for ac_dir in $PATH; do |
| 11175 | IFS="$lt_save_ifs" |
| 11176 | test -z "$ac_dir" && ac_dir=. |
| 11177 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 11178 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 11179 | # Check to see if the program is GNU ld. I'd rather use --version, |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11180 | # but apparently some variants of GNU ld only accept -v. |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11181 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 11182 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 11183 | *GNU* | *'with BFD'*) |
| 11184 | test "$with_gnu_ld" != no && break |
| 11185 | ;; |
| 11186 | *) |
| 11187 | test "$with_gnu_ld" != yes && break |
| 11188 | ;; |
| 11189 | esac |
| 11190 | fi |
| 11191 | done |
| 11192 | IFS="$lt_save_ifs" |
| 11193 | else |
| 11194 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 11195 | fi |
| 11196 | fi |
| 11197 | |
| 11198 | LD="$lt_cv_path_LD" |
| 11199 | if test -n "$LD"; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11200 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 11201 | echo "${ECHO_T}$LD" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11202 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11203 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11204 | echo "${ECHO_T}no" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11205 | fi |
| 11206 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 11207 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 11208 | { (exit 1); exit 1; }; } |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11209 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 11210 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11211 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 11212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11213 | else |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11214 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11215 | case `$LD -v 2>&1 </dev/null` in |
| 11216 | *GNU* | *'with BFD'*) |
| 11217 | lt_cv_prog_gnu_ld=yes |
| 11218 | ;; |
| 11219 | *) |
| 11220 | lt_cv_prog_gnu_ld=no |
| 11221 | ;; |
| 11222 | esac |
| 11223 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11224 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 11225 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11226 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 11227 | |
| 11228 | |
| 11229 | |
| 11230 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 11231 | # archiving commands below assume that GNU ld is being used. |
| 11232 | if test "$with_gnu_ld" = yes; then |
| 11233 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11234 | 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' |
| 11235 | |
| 11236 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 11237 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 11238 | |
| 11239 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 11240 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 11241 | # investigate it a little bit more. (MM) |
| 11242 | wlarc='${wl}' |
| 11243 | |
| 11244 | # ancient GNU ld didn't support --whole-archive et. al. |
| 11245 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
| 11246 | grep 'no-whole-archive' > /dev/null; then |
| 11247 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 11248 | else |
| 11249 | whole_archive_flag_spec_CXX= |
| 11250 | fi |
| 11251 | else |
| 11252 | with_gnu_ld=no |
| 11253 | wlarc= |
| 11254 | |
| 11255 | # A generic and very simple default shared library creation |
| 11256 | # command for GNU C++ for the case where it uses the native |
| 11257 | # linker, instead of GNU ld. If possible, this setting should |
| 11258 | # overridden to take advantage of the native linker features on |
| 11259 | # the platform it is being used on. |
| 11260 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 11261 | fi |
| 11262 | |
| 11263 | # Commands to make compiler produce verbose output that lists |
| 11264 | # what "hidden" libraries, object files and flags are used when |
| 11265 | # linking a shared library. |
| 11266 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 11267 | |
| 11268 | else |
| 11269 | GXX=no |
| 11270 | with_gnu_ld=no |
| 11271 | wlarc= |
| 11272 | fi |
| 11273 | |
| 11274 | # PORTME: fill in a description of your system's C++ link characteristics |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11275 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 11276 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11277 | ld_shlibs_CXX=yes |
| 11278 | case $host_os in |
| 11279 | aix3*) |
| 11280 | # FIXME: insert proper C++ library support |
| 11281 | ld_shlibs_CXX=no |
| 11282 | ;; |
| 11283 | aix4* | aix5*) |
| 11284 | if test "$host_cpu" = ia64; then |
| 11285 | # On IA64, the linker does run time linking by default, so we don't |
| 11286 | # have to do anything special. |
| 11287 | aix_use_runtimelinking=no |
| 11288 | exp_sym_flag='-Bexport' |
| 11289 | no_entry_flag="" |
| 11290 | else |
| 11291 | aix_use_runtimelinking=no |
| 11292 | |
| 11293 | # Test if we are trying to use run time linking or normal |
| 11294 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 11295 | # need to do runtime linking. |
| 11296 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 11297 | for ld_flag in $LDFLAGS; do |
| 11298 | case $ld_flag in |
| 11299 | *-brtl*) |
| 11300 | aix_use_runtimelinking=yes |
| 11301 | break |
| 11302 | ;; |
| 11303 | esac |
| 11304 | done |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11305 | ;; |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11306 | esac |
| 11307 | |
| 11308 | exp_sym_flag='-bexport' |
| 11309 | no_entry_flag='-bnoentry' |
| 11310 | fi |
| 11311 | |
| 11312 | # When large executables or shared objects are built, AIX ld can |
| 11313 | # have problems creating the table of contents. If linking a library |
| 11314 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 11315 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 11316 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 11317 | |
| 11318 | archive_cmds_CXX='' |
| 11319 | hardcode_direct_CXX=yes |
| 11320 | hardcode_libdir_separator_CXX=':' |
| 11321 | link_all_deplibs_CXX=yes |
| 11322 | |
| 11323 | if test "$GXX" = yes; then |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11324 | case $host_os in aix4.[012]|aix4.[012].*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11325 | # We only want to do this on AIX 4.2 and lower, the check |
| 11326 | # below for broken collect2 doesn't work under 4.3+ |
| 11327 | collect2name=`${CC} -print-prog-name=collect2` |
| 11328 | if test -f "$collect2name" && \ |
| 11329 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 11330 | then |
| 11331 | # We have reworked collect2 |
| 11332 | hardcode_direct_CXX=yes |
| 11333 | else |
| 11334 | # We have old collect2 |
| 11335 | hardcode_direct_CXX=unsupported |
| 11336 | # It fails to find uninstalled libraries when the uninstalled |
| 11337 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 11338 | # to unsupported forces relinking |
| 11339 | hardcode_minus_L_CXX=yes |
| 11340 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 11341 | hardcode_libdir_separator_CXX= |
| 11342 | fi |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11343 | ;; |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11344 | esac |
| 11345 | shared_flag='-shared' |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11346 | if test "$aix_use_runtimelinking" = yes; then |
| 11347 | shared_flag="$shared_flag "'${wl}-G' |
| 11348 | fi |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11349 | else |
| 11350 | # not using gcc |
| 11351 | if test "$host_cpu" = ia64; then |
| 11352 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 11353 | # chokes on -Wl,-G. The following line is correct: |
| 11354 | shared_flag='-G' |
| 11355 | else |
| 11356 | if test "$aix_use_runtimelinking" = yes; then |
| 11357 | shared_flag='${wl}-G' |
| 11358 | else |
| 11359 | shared_flag='${wl}-bM:SRE' |
| 11360 | fi |
| 11361 | fi |
| 11362 | fi |
| 11363 | |
| 11364 | # It seems that -bexpall does not export symbols beginning with |
| 11365 | # underscore (_), so it is better to generate a list of symbols to export. |
| 11366 | always_export_symbols_CXX=yes |
| 11367 | if test "$aix_use_runtimelinking" = yes; then |
| 11368 | # Warning - without using the other runtime loading flags (-brtl), |
| 11369 | # -berok will link without error, but may produce a broken library. |
| 11370 | allow_undefined_flag_CXX='-berok' |
| 11371 | # Determine the default libpath from the value encoded in an empty executable. |
| 11372 | cat >conftest.$ac_ext <<_ACEOF |
| 11373 | /* confdefs.h. */ |
| 11374 | _ACEOF |
| 11375 | cat confdefs.h >>conftest.$ac_ext |
| 11376 | cat >>conftest.$ac_ext <<_ACEOF |
| 11377 | /* end confdefs.h. */ |
| 11378 | |
| 11379 | int |
| 11380 | main () |
| 11381 | { |
| 11382 | |
| 11383 | ; |
| 11384 | return 0; |
| 11385 | } |
| 11386 | _ACEOF |
| 11387 | rm -f conftest.$ac_objext conftest$ac_exeext |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11388 | if { (ac_try="$ac_link" |
| 11389 | case "(($ac_try" in |
| 11390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11391 | *) ac_try_echo=$ac_try;; |
| 11392 | esac |
| 11393 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11394 | (eval "$ac_link") 2>conftest.er1 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11395 | ac_status=$? |
| 11396 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11397 | rm -f conftest.er1 |
| 11398 | cat conftest.err >&5 |
| 11399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11400 | (exit $ac_status); } && |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11401 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 11402 | { (case "(($ac_try" in |
| 11403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11404 | *) ac_try_echo=$ac_try;; |
| 11405 | esac |
| 11406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11407 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11408 | ac_status=$? |
| 11409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11410 | (exit $ac_status); }; } && |
| 11411 | { ac_try='test -s conftest$ac_exeext' |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11412 | { (case "(($ac_try" in |
| 11413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11414 | *) ac_try_echo=$ac_try;; |
| 11415 | esac |
| 11416 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11417 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11418 | ac_status=$? |
| 11419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11420 | (exit $ac_status); }; }; then |
| 11421 | |
| 11422 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 11423 | }'` |
| 11424 | # Check for a 64-bit object if we didn't find anything. |
| 11425 | 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; } |
| 11426 | }'`; fi |
| 11427 | else |
| 11428 | echo "$as_me: failed program was:" >&5 |
| 11429 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11430 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11431 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11432 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11433 | |
| 11434 | rm -f core conftest.err conftest.$ac_objext \ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11435 | conftest$ac_exeext conftest.$ac_ext |
| 11436 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 11437 | |
| 11438 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 11439 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11440 | archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11441 | else |
| 11442 | if test "$host_cpu" = ia64; then |
| 11443 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 11444 | allow_undefined_flag_CXX="-z nodefs" |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11445 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11446 | else |
| 11447 | # Determine the default libpath from the value encoded in an empty executable. |
| 11448 | cat >conftest.$ac_ext <<_ACEOF |
| 11449 | /* confdefs.h. */ |
| 11450 | _ACEOF |
| 11451 | cat confdefs.h >>conftest.$ac_ext |
| 11452 | cat >>conftest.$ac_ext <<_ACEOF |
| 11453 | /* end confdefs.h. */ |
| 11454 | |
| 11455 | int |
| 11456 | main () |
| 11457 | { |
| 11458 | |
| 11459 | ; |
| 11460 | return 0; |
| 11461 | } |
| 11462 | _ACEOF |
| 11463 | rm -f conftest.$ac_objext conftest$ac_exeext |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11464 | if { (ac_try="$ac_link" |
| 11465 | case "(($ac_try" in |
| 11466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11467 | *) ac_try_echo=$ac_try;; |
| 11468 | esac |
| 11469 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11470 | (eval "$ac_link") 2>conftest.er1 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11471 | ac_status=$? |
| 11472 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11473 | rm -f conftest.er1 |
| 11474 | cat conftest.err >&5 |
| 11475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11476 | (exit $ac_status); } && |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11477 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 11478 | { (case "(($ac_try" in |
| 11479 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11480 | *) ac_try_echo=$ac_try;; |
| 11481 | esac |
| 11482 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11483 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11484 | ac_status=$? |
| 11485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11486 | (exit $ac_status); }; } && |
| 11487 | { ac_try='test -s conftest$ac_exeext' |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11488 | { (case "(($ac_try" in |
| 11489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11490 | *) ac_try_echo=$ac_try;; |
| 11491 | esac |
| 11492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11493 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11494 | ac_status=$? |
| 11495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11496 | (exit $ac_status); }; }; then |
| 11497 | |
| 11498 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 11499 | }'` |
| 11500 | # Check for a 64-bit object if we didn't find anything. |
| 11501 | 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; } |
| 11502 | }'`; fi |
| 11503 | else |
| 11504 | echo "$as_me: failed program was:" >&5 |
| 11505 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11506 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11507 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11508 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11509 | |
| 11510 | rm -f core conftest.err conftest.$ac_objext \ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11511 | conftest$ac_exeext conftest.$ac_ext |
| 11512 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 11513 | |
| 11514 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 11515 | # Warning - without using the other run time loading flags, |
| 11516 | # -berok will link without error, but may produce a broken library. |
| 11517 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 11518 | allow_undefined_flag_CXX=' ${wl}-berok' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11519 | # Exported symbols can be pulled into shared objects from archives |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11520 | whole_archive_flag_spec_CXX='$convenience' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11521 | archive_cmds_need_lc_CXX=yes |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11522 | # This is similar to how AIX traditionally builds its shared libraries. |
| 11523 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11524 | fi |
| 11525 | fi |
| 11526 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11527 | |
| 11528 | beos*) |
| 11529 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 11530 | allow_undefined_flag_CXX=unsupported |
| 11531 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 11532 | # support --undefined. This deserves some investigation. FIXME |
| 11533 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11534 | else |
| 11535 | ld_shlibs_CXX=no |
| 11536 | fi |
| 11537 | ;; |
| 11538 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11539 | chorus*) |
| 11540 | case $cc_basename in |
| 11541 | *) |
| 11542 | # FIXME: insert proper C++ library support |
| 11543 | ld_shlibs_CXX=no |
| 11544 | ;; |
| 11545 | esac |
| 11546 | ;; |
| 11547 | |
| 11548 | cygwin* | mingw* | pw32*) |
| 11549 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 11550 | # as there is no search path for DLLs. |
| 11551 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 11552 | allow_undefined_flag_CXX=unsupported |
| 11553 | always_export_symbols_CXX=no |
| 11554 | enable_shared_with_static_runtimes_CXX=yes |
| 11555 | |
| 11556 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11557 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11558 | # If the export-symbols file already is a .def file (1st line |
| 11559 | # is EXPORTS), use it as is; otherwise, prepend... |
| 11560 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 11561 | cp $export_symbols $output_objdir/$soname.def; |
| 11562 | else |
| 11563 | echo EXPORTS > $output_objdir/$soname.def; |
| 11564 | cat $export_symbols >> $output_objdir/$soname.def; |
| 11565 | fi~ |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11566 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11567 | else |
| 11568 | ld_shlibs_CXX=no |
| 11569 | fi |
| 11570 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11571 | darwin* | rhapsody*) |
| 11572 | case $host_os in |
| 11573 | rhapsody* | darwin1.[012]) |
| 11574 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
| 11575 | ;; |
| 11576 | *) # Darwin 1.3 on |
| 11577 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 11578 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 11579 | else |
| 11580 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 11581 | 10.[012]) |
| 11582 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 11583 | ;; |
| 11584 | 10.*) |
| 11585 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
| 11586 | ;; |
| 11587 | esac |
| 11588 | fi |
| 11589 | ;; |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11590 | esac |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11591 | archive_cmds_need_lc_CXX=no |
| 11592 | hardcode_direct_CXX=no |
| 11593 | hardcode_automatic_CXX=yes |
| 11594 | hardcode_shlibpath_var_CXX=unsupported |
| 11595 | whole_archive_flag_spec_CXX='' |
| 11596 | link_all_deplibs_CXX=yes |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11597 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11598 | if test "$GXX" = yes ; then |
| 11599 | lt_int_apple_cc_single_mod=no |
| 11600 | output_verbose_link_cmd='echo' |
| 11601 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
| 11602 | lt_int_apple_cc_single_mod=yes |
| 11603 | fi |
| 11604 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 11605 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 11606 | else |
| 11607 | archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 11608 | fi |
| 11609 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 11610 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 11611 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 11612 | 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}' |
| 11613 | else |
| 11614 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 11615 | fi |
| 11616 | 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}' |
| 11617 | else |
| 11618 | case $cc_basename in |
| 11619 | xlc*) |
| 11620 | output_verbose_link_cmd='echo' |
| 11621 | archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 11622 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 11623 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 11624 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 11625 | 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}' |
| 11626 | ;; |
| 11627 | *) |
| 11628 | ld_shlibs_CXX=no |
| 11629 | ;; |
| 11630 | esac |
| 11631 | fi |
| 11632 | ;; |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11633 | |
| 11634 | dgux*) |
| 11635 | case $cc_basename in |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11636 | ec++*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11637 | # FIXME: insert proper C++ library support |
| 11638 | ld_shlibs_CXX=no |
| 11639 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11640 | ghcx*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11641 | # Green Hills C++ Compiler |
| 11642 | # FIXME: insert proper C++ library support |
| 11643 | ld_shlibs_CXX=no |
| 11644 | ;; |
| 11645 | *) |
| 11646 | # FIXME: insert proper C++ library support |
| 11647 | ld_shlibs_CXX=no |
| 11648 | ;; |
| 11649 | esac |
| 11650 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11651 | freebsd[12]*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11652 | # C++ shared libraries reported to be fairly broken before switch to ELF |
| 11653 | ld_shlibs_CXX=no |
| 11654 | ;; |
| 11655 | freebsd-elf*) |
| 11656 | archive_cmds_need_lc_CXX=no |
| 11657 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11658 | freebsd* | kfreebsd*-gnu | dragonfly*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11659 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 11660 | # conventions |
| 11661 | ld_shlibs_CXX=yes |
| 11662 | ;; |
| 11663 | gnu*) |
| 11664 | ;; |
| 11665 | hpux9*) |
| 11666 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 11667 | hardcode_libdir_separator_CXX=: |
| 11668 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 11669 | hardcode_direct_CXX=yes |
| 11670 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 11671 | # but as the default |
| 11672 | # location of the library. |
| 11673 | |
| 11674 | case $cc_basename in |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11675 | CC*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11676 | # FIXME: insert proper C++ library support |
| 11677 | ld_shlibs_CXX=no |
| 11678 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11679 | aCC*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11680 | 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' |
| 11681 | # Commands to make compiler produce verbose output that lists |
| 11682 | # what "hidden" libraries, object files and flags are used when |
| 11683 | # linking a shared library. |
| 11684 | # |
| 11685 | # There doesn't appear to be a way to prevent this compiler from |
| 11686 | # explicitly linking system object files so we need to strip them |
| 11687 | # from the output so that they don't get included in the library |
| 11688 | # dependencies. |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11689 | 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' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11690 | ;; |
| 11691 | *) |
| 11692 | if test "$GXX" = yes; then |
| 11693 | 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' |
| 11694 | else |
| 11695 | # FIXME: insert proper C++ library support |
| 11696 | ld_shlibs_CXX=no |
| 11697 | fi |
| 11698 | ;; |
| 11699 | esac |
| 11700 | ;; |
| 11701 | hpux10*|hpux11*) |
| 11702 | if test $with_gnu_ld = no; then |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11703 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 11704 | hardcode_libdir_separator_CXX=: |
| 11705 | |
| 11706 | case $host_cpu in |
| 11707 | hppa*64*|ia64*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11708 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11709 | ;; |
| 11710 | *) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11711 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 11712 | ;; |
| 11713 | esac |
| 11714 | fi |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11715 | case $host_cpu in |
| 11716 | hppa*64*|ia64*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11717 | hardcode_direct_CXX=no |
| 11718 | hardcode_shlibpath_var_CXX=no |
| 11719 | ;; |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11720 | *) |
| 11721 | hardcode_direct_CXX=yes |
| 11722 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 11723 | # but as the default |
| 11724 | # location of the library. |
| 11725 | ;; |
| 11726 | esac |
| 11727 | |
| 11728 | case $cc_basename in |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11729 | CC*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11730 | # FIXME: insert proper C++ library support |
| 11731 | ld_shlibs_CXX=no |
| 11732 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11733 | aCC*) |
| 11734 | case $host_cpu in |
| 11735 | hppa*64*) |
| 11736 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 11737 | ;; |
| 11738 | ia64*) |
| 11739 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11740 | ;; |
| 11741 | *) |
| 11742 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 11743 | ;; |
| 11744 | esac |
| 11745 | # Commands to make compiler produce verbose output that lists |
| 11746 | # what "hidden" libraries, object files and flags are used when |
| 11747 | # linking a shared library. |
| 11748 | # |
| 11749 | # There doesn't appear to be a way to prevent this compiler from |
| 11750 | # explicitly linking system object files so we need to strip them |
| 11751 | # from the output so that they don't get included in the library |
| 11752 | # dependencies. |
| 11753 | 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' |
| 11754 | ;; |
| 11755 | *) |
| 11756 | if test "$GXX" = yes; then |
| 11757 | if test $with_gnu_ld = no; then |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11758 | case $host_cpu in |
| 11759 | hppa*64*) |
| 11760 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 11761 | ;; |
| 11762 | ia64*) |
| 11763 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11764 | ;; |
| 11765 | *) |
| 11766 | 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' |
| 11767 | ;; |
| 11768 | esac |
| 11769 | fi |
| 11770 | else |
| 11771 | # FIXME: insert proper C++ library support |
| 11772 | ld_shlibs_CXX=no |
| 11773 | fi |
| 11774 | ;; |
| 11775 | esac |
| 11776 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11777 | interix3*) |
| 11778 | hardcode_direct_CXX=no |
| 11779 | hardcode_shlibpath_var_CXX=no |
| 11780 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 11781 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 11782 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 11783 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 11784 | # default) and relocated if they conflict, which is a slow very memory |
| 11785 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 11786 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 11787 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 11788 | archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 11789 | archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 11790 | ;; |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11791 | irix5* | irix6*) |
| 11792 | case $cc_basename in |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11793 | CC*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11794 | # SGI C++ |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11795 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11796 | |
| 11797 | # Archives containing C++ object files must be created using |
| 11798 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 11799 | # necessary to make sure instantiated templates are included |
| 11800 | # in the archive. |
| 11801 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 11802 | ;; |
| 11803 | *) |
| 11804 | if test "$GXX" = yes; then |
| 11805 | if test "$with_gnu_ld" = no; then |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11806 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11807 | else |
| 11808 | 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' |
| 11809 | fi |
| 11810 | fi |
| 11811 | link_all_deplibs_CXX=yes |
| 11812 | ;; |
| 11813 | esac |
| 11814 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 11815 | hardcode_libdir_separator_CXX=: |
| 11816 | ;; |
| 11817 | linux*) |
| 11818 | case $cc_basename in |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11819 | KCC*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11820 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 11821 | |
| 11822 | # KCC will only create a shared library if the output file |
| 11823 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 11824 | # to its proper name (with version) after linking. |
| 11825 | 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' |
| 11826 | 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' |
| 11827 | # Commands to make compiler produce verbose output that lists |
| 11828 | # what "hidden" libraries, object files and flags are used when |
| 11829 | # linking a shared library. |
| 11830 | # |
| 11831 | # There doesn't appear to be a way to prevent this compiler from |
| 11832 | # explicitly linking system object files so we need to strip them |
| 11833 | # from the output so that they don't get included in the library |
| 11834 | # dependencies. |
| 11835 | 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' |
| 11836 | |
| 11837 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
| 11838 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 11839 | |
| 11840 | # Archives containing C++ object files must be created using |
| 11841 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 11842 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 11843 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11844 | icpc*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11845 | # Intel C++ |
| 11846 | with_gnu_ld=yes |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11847 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 11848 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 11849 | # earlier do not add the objects themselves. |
| 11850 | case `$CC -V 2>&1` in |
| 11851 | *"Version 7."*) |
| 11852 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11853 | 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' |
| 11854 | ;; |
| 11855 | *) # Version 8.0 or newer |
| 11856 | tmp_idyn= |
| 11857 | case $host_cpu in |
| 11858 | ia64*) tmp_idyn=' -i_dynamic';; |
| 11859 | esac |
| 11860 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11861 | archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 11862 | ;; |
| 11863 | esac |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11864 | archive_cmds_need_lc_CXX=no |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11865 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 11866 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 11867 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 11868 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11869 | pgCC*) |
| 11870 | # Portland Group C++ compiler |
| 11871 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 11872 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' |
| 11873 | |
| 11874 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 11875 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 11876 | whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
| 11877 | ;; |
| 11878 | cxx*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11879 | # Compaq C++ |
| 11880 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11881 | 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' |
| 11882 | |
| 11883 | runpath_var=LD_RUN_PATH |
| 11884 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 11885 | hardcode_libdir_separator_CXX=: |
| 11886 | |
| 11887 | # Commands to make compiler produce verbose output that lists |
| 11888 | # what "hidden" libraries, object files and flags are used when |
| 11889 | # linking a shared library. |
| 11890 | # |
| 11891 | # There doesn't appear to be a way to prevent this compiler from |
| 11892 | # explicitly linking system object files so we need to strip them |
| 11893 | # from the output so that they don't get included in the library |
| 11894 | # dependencies. |
| 11895 | 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' |
| 11896 | ;; |
| 11897 | esac |
| 11898 | ;; |
| 11899 | lynxos*) |
| 11900 | # FIXME: insert proper C++ library support |
| 11901 | ld_shlibs_CXX=no |
| 11902 | ;; |
| 11903 | m88k*) |
| 11904 | # FIXME: insert proper C++ library support |
| 11905 | ld_shlibs_CXX=no |
| 11906 | ;; |
| 11907 | mvs*) |
| 11908 | case $cc_basename in |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11909 | cxx*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11910 | # FIXME: insert proper C++ library support |
| 11911 | ld_shlibs_CXX=no |
| 11912 | ;; |
| 11913 | *) |
| 11914 | # FIXME: insert proper C++ library support |
| 11915 | ld_shlibs_CXX=no |
| 11916 | ;; |
| 11917 | esac |
| 11918 | ;; |
| 11919 | netbsd*) |
| 11920 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 11921 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 11922 | wlarc= |
| 11923 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 11924 | hardcode_direct_CXX=yes |
| 11925 | hardcode_shlibpath_var_CXX=no |
| 11926 | fi |
| 11927 | # Workaround some broken pre-1.5 toolchains |
| 11928 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 11929 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11930 | openbsd2*) |
| 11931 | # C++ shared libraries are fairly broken |
| 11932 | ld_shlibs_CXX=no |
| 11933 | ;; |
| 11934 | openbsd*) |
| 11935 | hardcode_direct_CXX=yes |
| 11936 | hardcode_shlibpath_var_CXX=no |
| 11937 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 11938 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 11939 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 11940 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| 11941 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 11942 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 11943 | fi |
| 11944 | output_verbose_link_cmd='echo' |
| 11945 | ;; |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11946 | osf3*) |
| 11947 | case $cc_basename in |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11948 | KCC*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11949 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 11950 | |
| 11951 | # KCC will only create a shared library if the output file |
| 11952 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 11953 | # to its proper name (with version) after linking. |
| 11954 | 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' |
| 11955 | |
| 11956 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 11957 | hardcode_libdir_separator_CXX=: |
| 11958 | |
| 11959 | # Archives containing C++ object files must be created using |
| 11960 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 11961 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 11962 | |
| 11963 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11964 | RCC*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11965 | # Rational C++ 2.4.1 |
| 11966 | # FIXME: insert proper C++ library support |
| 11967 | ld_shlibs_CXX=no |
| 11968 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11969 | cxx*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11970 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11971 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11972 | |
| 11973 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 11974 | hardcode_libdir_separator_CXX=: |
| 11975 | |
| 11976 | # Commands to make compiler produce verbose output that lists |
| 11977 | # what "hidden" libraries, object files and flags are used when |
| 11978 | # linking a shared library. |
| 11979 | # |
| 11980 | # There doesn't appear to be a way to prevent this compiler from |
| 11981 | # explicitly linking system object files so we need to strip them |
| 11982 | # from the output so that they don't get included in the library |
| 11983 | # dependencies. |
| 11984 | 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' |
| 11985 | ;; |
| 11986 | *) |
| 11987 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 11988 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 11989 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11990 | |
| 11991 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 11992 | hardcode_libdir_separator_CXX=: |
| 11993 | |
| 11994 | # Commands to make compiler produce verbose output that lists |
| 11995 | # what "hidden" libraries, object files and flags are used when |
| 11996 | # linking a shared library. |
| 11997 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 11998 | |
| 11999 | else |
| 12000 | # FIXME: insert proper C++ library support |
| 12001 | ld_shlibs_CXX=no |
| 12002 | fi |
| 12003 | ;; |
| 12004 | esac |
| 12005 | ;; |
| 12006 | osf4* | osf5*) |
| 12007 | case $cc_basename in |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12008 | KCC*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12009 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 12010 | |
| 12011 | # KCC will only create a shared library if the output file |
| 12012 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 12013 | # to its proper name (with version) after linking. |
| 12014 | 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' |
| 12015 | |
| 12016 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 12017 | hardcode_libdir_separator_CXX=: |
| 12018 | |
| 12019 | # Archives containing C++ object files must be created using |
| 12020 | # the KAI C++ compiler. |
| 12021 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
| 12022 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12023 | RCC*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12024 | # Rational C++ 2.4.1 |
| 12025 | # FIXME: insert proper C++ library support |
| 12026 | ld_shlibs_CXX=no |
| 12027 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12028 | cxx*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12029 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12030 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12031 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 12032 | echo "-hidden">> $lib.exp~ |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12033 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12034 | $rm $lib.exp' |
| 12035 | |
| 12036 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 12037 | hardcode_libdir_separator_CXX=: |
| 12038 | |
| 12039 | # Commands to make compiler produce verbose output that lists |
| 12040 | # what "hidden" libraries, object files and flags are used when |
| 12041 | # linking a shared library. |
| 12042 | # |
| 12043 | # There doesn't appear to be a way to prevent this compiler from |
| 12044 | # explicitly linking system object files so we need to strip them |
| 12045 | # from the output so that they don't get included in the library |
| 12046 | # dependencies. |
| 12047 | 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' |
| 12048 | ;; |
| 12049 | *) |
| 12050 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 12051 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12052 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12053 | |
| 12054 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 12055 | hardcode_libdir_separator_CXX=: |
| 12056 | |
| 12057 | # Commands to make compiler produce verbose output that lists |
| 12058 | # what "hidden" libraries, object files and flags are used when |
| 12059 | # linking a shared library. |
| 12060 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 12061 | |
| 12062 | else |
| 12063 | # FIXME: insert proper C++ library support |
| 12064 | ld_shlibs_CXX=no |
| 12065 | fi |
| 12066 | ;; |
| 12067 | esac |
| 12068 | ;; |
| 12069 | psos*) |
| 12070 | # FIXME: insert proper C++ library support |
| 12071 | ld_shlibs_CXX=no |
| 12072 | ;; |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12073 | sunos4*) |
| 12074 | case $cc_basename in |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12075 | CC*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12076 | # Sun C++ 4.x |
| 12077 | # FIXME: insert proper C++ library support |
| 12078 | ld_shlibs_CXX=no |
| 12079 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12080 | lcc*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12081 | # Lucid |
| 12082 | # FIXME: insert proper C++ library support |
| 12083 | ld_shlibs_CXX=no |
| 12084 | ;; |
| 12085 | *) |
| 12086 | # FIXME: insert proper C++ library support |
| 12087 | ld_shlibs_CXX=no |
| 12088 | ;; |
| 12089 | esac |
| 12090 | ;; |
| 12091 | solaris*) |
| 12092 | case $cc_basename in |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12093 | CC*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12094 | # Sun C++ 4.2, 5.x and Centerline C++ |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12095 | archive_cmds_need_lc_CXX=yes |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12096 | no_undefined_flag_CXX=' -zdefs' |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12097 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12098 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12099 | $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12100 | |
| 12101 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 12102 | hardcode_shlibpath_var_CXX=no |
| 12103 | case $host_os in |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12104 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12105 | *) |
| 12106 | # The C++ compiler is used as linker so we must use $wl |
| 12107 | # flag to pass the commands to the underlying system |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12108 | # linker. We must also pass each convience library through |
| 12109 | # to the system linker between allextract/defaultextract. |
| 12110 | # The C++ compiler will combine linker options so we |
| 12111 | # cannot just pass the convience library names through |
| 12112 | # without $wl. |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12113 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12114 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12115 | ;; |
| 12116 | esac |
| 12117 | link_all_deplibs_CXX=yes |
| 12118 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12119 | output_verbose_link_cmd='echo' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12120 | |
| 12121 | # Archives containing C++ object files must be created using |
| 12122 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 12123 | # necessary to make sure instantiated templates are included |
| 12124 | # in the archive. |
| 12125 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 12126 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12127 | gcx*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12128 | # Green Hills C++ Compiler |
| 12129 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 12130 | |
| 12131 | # The C++ compiler must be used to create the archive. |
| 12132 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 12133 | ;; |
| 12134 | *) |
| 12135 | # GNU C++ compiler with Solaris linker |
| 12136 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 12137 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 12138 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
| 12139 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 12140 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 12141 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 12142 | |
| 12143 | # Commands to make compiler produce verbose output that lists |
| 12144 | # what "hidden" libraries, object files and flags are used when |
| 12145 | # linking a shared library. |
| 12146 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 12147 | else |
| 12148 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 12149 | # platform. |
| 12150 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 12151 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 12152 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 12153 | |
| 12154 | # Commands to make compiler produce verbose output that lists |
| 12155 | # what "hidden" libraries, object files and flags are used when |
| 12156 | # linking a shared library. |
| 12157 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 12158 | fi |
| 12159 | |
| 12160 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 12161 | fi |
| 12162 | ;; |
| 12163 | esac |
| 12164 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12165 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 12166 | no_undefined_flag_CXX='${wl}-z,text' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12167 | archive_cmds_need_lc_CXX=no |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12168 | hardcode_shlibpath_var_CXX=no |
| 12169 | runpath_var='LD_RUN_PATH' |
| 12170 | |
| 12171 | case $cc_basename in |
| 12172 | CC*) |
| 12173 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12174 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12175 | ;; |
| 12176 | *) |
| 12177 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12178 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12179 | ;; |
| 12180 | esac |
| 12181 | ;; |
| 12182 | sysv5* | sco3.2v5* | sco5v6*) |
| 12183 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 12184 | # link with -lc, and that would cause any symbols used from libc to |
| 12185 | # always be unresolved, which means just about no library would |
| 12186 | # ever link correctly. If we're not using GNU ld we use -z text |
| 12187 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 12188 | # as -z defs. |
| 12189 | # For security reasons, it is highly recommended that you always |
| 12190 | # use absolute paths for naming shared libraries, and exclude the |
| 12191 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 12192 | # requires that you compile everything twice, which is a pain. |
| 12193 | # So that behaviour is only enabled if SCOABSPATH is set to a |
| 12194 | # non-empty value in the environment. Most likely only useful for |
| 12195 | # creating official distributions of packages. |
| 12196 | # This is a hack until libtool officially supports absolute path |
| 12197 | # names for shared libraries. |
| 12198 | no_undefined_flag_CXX='${wl}-z,text' |
| 12199 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
| 12200 | archive_cmds_need_lc_CXX=no |
| 12201 | hardcode_shlibpath_var_CXX=no |
| 12202 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 12203 | hardcode_libdir_separator_CXX=':' |
| 12204 | link_all_deplibs_CXX=yes |
| 12205 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
| 12206 | runpath_var='LD_RUN_PATH' |
| 12207 | |
| 12208 | case $cc_basename in |
| 12209 | CC*) |
| 12210 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12211 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12212 | ;; |
| 12213 | *) |
| 12214 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12215 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12216 | ;; |
| 12217 | esac |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12218 | ;; |
| 12219 | tandem*) |
| 12220 | case $cc_basename in |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12221 | NCC*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12222 | # NonStop-UX NCC 3.20 |
| 12223 | # FIXME: insert proper C++ library support |
| 12224 | ld_shlibs_CXX=no |
| 12225 | ;; |
| 12226 | *) |
| 12227 | # FIXME: insert proper C++ library support |
| 12228 | ld_shlibs_CXX=no |
| 12229 | ;; |
| 12230 | esac |
| 12231 | ;; |
| 12232 | vxworks*) |
| 12233 | # FIXME: insert proper C++ library support |
| 12234 | ld_shlibs_CXX=no |
| 12235 | ;; |
| 12236 | *) |
| 12237 | # FIXME: insert proper C++ library support |
| 12238 | ld_shlibs_CXX=no |
| 12239 | ;; |
| 12240 | esac |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12241 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 12242 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12243 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 12244 | |
| 12245 | GCC_CXX="$GXX" |
| 12246 | LD_CXX="$LD" |
| 12247 | |
| 12248 | |
| 12249 | cat > conftest.$ac_ext <<EOF |
| 12250 | class Foo |
| 12251 | { |
| 12252 | public: |
| 12253 | Foo (void) { a = 0; } |
| 12254 | private: |
| 12255 | int a; |
| 12256 | }; |
| 12257 | EOF |
| 12258 | |
| 12259 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12260 | (eval $ac_compile) 2>&5 |
| 12261 | ac_status=$? |
| 12262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12263 | (exit $ac_status); }; then |
| 12264 | # Parse the compiler output and extract the necessary |
| 12265 | # objects, libraries and library flags. |
| 12266 | |
| 12267 | # Sentinel used to keep track of whether or not we are before |
| 12268 | # the conftest object file. |
| 12269 | pre_test_object_deps_done=no |
| 12270 | |
| 12271 | # The `*' in the case matches for architectures that use `case' in |
| 12272 | # $output_verbose_cmd can trigger glob expansion during the loop |
| 12273 | # eval without this substitution. |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12274 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12275 | |
| 12276 | for p in `eval $output_verbose_link_cmd`; do |
| 12277 | case $p in |
| 12278 | |
| 12279 | -L* | -R* | -l*) |
| 12280 | # Some compilers place space between "-{L,R}" and the path. |
| 12281 | # Remove the space. |
| 12282 | if test $p = "-L" \ |
| 12283 | || test $p = "-R"; then |
| 12284 | prev=$p |
| 12285 | continue |
| 12286 | else |
| 12287 | prev= |
| 12288 | fi |
| 12289 | |
| 12290 | if test "$pre_test_object_deps_done" = no; then |
| 12291 | case $p in |
| 12292 | -L* | -R*) |
| 12293 | # Internal compiler library paths should come after those |
| 12294 | # provided the user. The postdeps already come after the |
| 12295 | # user supplied libs so there is no need to process them. |
| 12296 | if test -z "$compiler_lib_search_path_CXX"; then |
| 12297 | compiler_lib_search_path_CXX="${prev}${p}" |
| 12298 | else |
| 12299 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 12300 | fi |
| 12301 | ;; |
| 12302 | # The "-l" case would never come before the object being |
| 12303 | # linked, so don't bother handling this case. |
| 12304 | esac |
| 12305 | else |
| 12306 | if test -z "$postdeps_CXX"; then |
| 12307 | postdeps_CXX="${prev}${p}" |
| 12308 | else |
| 12309 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 12310 | fi |
| 12311 | fi |
| 12312 | ;; |
| 12313 | |
| 12314 | *.$objext) |
| 12315 | # This assumes that the test object file only shows up |
| 12316 | # once in the compiler output. |
| 12317 | if test "$p" = "conftest.$objext"; then |
| 12318 | pre_test_object_deps_done=yes |
| 12319 | continue |
| 12320 | fi |
| 12321 | |
| 12322 | if test "$pre_test_object_deps_done" = no; then |
| 12323 | if test -z "$predep_objects_CXX"; then |
| 12324 | predep_objects_CXX="$p" |
| 12325 | else |
| 12326 | predep_objects_CXX="$predep_objects_CXX $p" |
| 12327 | fi |
| 12328 | else |
| 12329 | if test -z "$postdep_objects_CXX"; then |
| 12330 | postdep_objects_CXX="$p" |
| 12331 | else |
| 12332 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 12333 | fi |
| 12334 | fi |
| 12335 | ;; |
| 12336 | |
| 12337 | *) ;; # Ignore the rest. |
| 12338 | |
| 12339 | esac |
| 12340 | done |
| 12341 | |
| 12342 | # Clean up. |
| 12343 | rm -f a.out a.exe |
| 12344 | else |
| 12345 | echo "libtool.m4: error: problem compiling CXX test program" |
| 12346 | fi |
| 12347 | |
| 12348 | $rm -f confest.$objext |
| 12349 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12350 | # PORTME: override above test on systems where it is broken |
| 12351 | case $host_os in |
| 12352 | interix3*) |
| 12353 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 12354 | # hack all around it, let's just trust "g++" to DTRT. |
| 12355 | predep_objects_CXX= |
| 12356 | postdep_objects_CXX= |
| 12357 | postdeps_CXX= |
| 12358 | ;; |
| 12359 | |
| 12360 | solaris*) |
| 12361 | case $cc_basename in |
| 12362 | CC*) |
| 12363 | # Adding this requires a known-good setup of shared libraries for |
| 12364 | # Sun compiler versions before 5.6, else PIC objects from an old |
| 12365 | # archive will be linked into the output, leading to subtle bugs. |
| 12366 | postdeps_CXX='-lCstd -lCrun' |
| 12367 | ;; |
| 12368 | esac |
| 12369 | ;; |
| 12370 | esac |
| 12371 | |
| 12372 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12373 | case " $postdeps_CXX " in |
| 12374 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 12375 | esac |
| 12376 | |
| 12377 | lt_prog_compiler_wl_CXX= |
| 12378 | lt_prog_compiler_pic_CXX= |
| 12379 | lt_prog_compiler_static_CXX= |
| 12380 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12381 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 12382 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12383 | |
| 12384 | # C++ specific cases for pic, static, wl, etc. |
| 12385 | if test "$GXX" = yes; then |
| 12386 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12387 | lt_prog_compiler_static_CXX='-static' |
| 12388 | |
| 12389 | case $host_os in |
| 12390 | aix*) |
| 12391 | # All AIX code is PIC. |
| 12392 | if test "$host_cpu" = ia64; then |
| 12393 | # AIX 5 now supports IA64 processor |
| 12394 | lt_prog_compiler_static_CXX='-Bstatic' |
| 12395 | fi |
| 12396 | ;; |
| 12397 | amigaos*) |
| 12398 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 12399 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 12400 | # like `-m68040'. |
| 12401 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 12402 | ;; |
| 12403 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 12404 | # PIC is the default for these OSes. |
| 12405 | ;; |
| 12406 | mingw* | os2* | pw32*) |
| 12407 | # This hack is so that the source file can tell whether it is being |
| 12408 | # built for inclusion in a dll (and should export symbols for example). |
| 12409 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 12410 | ;; |
| 12411 | darwin* | rhapsody*) |
| 12412 | # PIC is the default on this platform |
| 12413 | # Common symbols not allowed in MH_DYLIB files |
| 12414 | lt_prog_compiler_pic_CXX='-fno-common' |
| 12415 | ;; |
| 12416 | *djgpp*) |
| 12417 | # DJGPP does not support shared libraries at all |
| 12418 | lt_prog_compiler_pic_CXX= |
| 12419 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12420 | interix3*) |
| 12421 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 12422 | # Instead, we relocate shared libraries at runtime. |
| 12423 | ;; |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12424 | sysv4*MP*) |
| 12425 | if test -d /usr/nec; then |
| 12426 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 12427 | fi |
| 12428 | ;; |
| 12429 | hpux*) |
| 12430 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 12431 | # not for PA HP-UX. |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12432 | case $host_cpu in |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12433 | hppa*64*|ia64*) |
| 12434 | ;; |
| 12435 | *) |
| 12436 | lt_prog_compiler_pic_CXX='-fPIC' |
| 12437 | ;; |
| 12438 | esac |
| 12439 | ;; |
| 12440 | *) |
| 12441 | lt_prog_compiler_pic_CXX='-fPIC' |
| 12442 | ;; |
| 12443 | esac |
| 12444 | else |
| 12445 | case $host_os in |
| 12446 | aix4* | aix5*) |
| 12447 | # All AIX code is PIC. |
| 12448 | if test "$host_cpu" = ia64; then |
| 12449 | # AIX 5 now supports IA64 processor |
| 12450 | lt_prog_compiler_static_CXX='-Bstatic' |
| 12451 | else |
| 12452 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 12453 | fi |
| 12454 | ;; |
| 12455 | chorus*) |
| 12456 | case $cc_basename in |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12457 | cxch68*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12458 | # Green Hills C++ Compiler |
| 12459 | # _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" |
| 12460 | ;; |
| 12461 | esac |
| 12462 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12463 | darwin*) |
| 12464 | # PIC is the default on this platform |
| 12465 | # Common symbols not allowed in MH_DYLIB files |
| 12466 | case $cc_basename in |
| 12467 | xlc*) |
| 12468 | lt_prog_compiler_pic_CXX='-qnocommon' |
| 12469 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12470 | ;; |
| 12471 | esac |
| 12472 | ;; |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12473 | dgux*) |
| 12474 | case $cc_basename in |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12475 | ec++*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12476 | lt_prog_compiler_pic_CXX='-KPIC' |
| 12477 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12478 | ghcx*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12479 | # Green Hills C++ Compiler |
| 12480 | lt_prog_compiler_pic_CXX='-pic' |
| 12481 | ;; |
| 12482 | *) |
| 12483 | ;; |
| 12484 | esac |
| 12485 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12486 | freebsd* | kfreebsd*-gnu | dragonfly*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12487 | # FreeBSD uses GNU C++ |
| 12488 | ;; |
| 12489 | hpux9* | hpux10* | hpux11*) |
| 12490 | case $cc_basename in |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12491 | CC*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12492 | lt_prog_compiler_wl_CXX='-Wl,' |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12493 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12494 | if test "$host_cpu" != ia64; then |
| 12495 | lt_prog_compiler_pic_CXX='+Z' |
| 12496 | fi |
| 12497 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12498 | aCC*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12499 | lt_prog_compiler_wl_CXX='-Wl,' |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12500 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 12501 | case $host_cpu in |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12502 | hppa*64*|ia64*) |
| 12503 | # +Z the default |
| 12504 | ;; |
| 12505 | *) |
| 12506 | lt_prog_compiler_pic_CXX='+Z' |
| 12507 | ;; |
| 12508 | esac |
| 12509 | ;; |
| 12510 | *) |
| 12511 | ;; |
| 12512 | esac |
| 12513 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12514 | interix*) |
| 12515 | # This is c89, which is MS Visual C++ (no shared libs) |
| 12516 | # Anyone wants to do a port? |
| 12517 | ;; |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12518 | irix5* | irix6* | nonstopux*) |
| 12519 | case $cc_basename in |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12520 | CC*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12521 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12522 | lt_prog_compiler_static_CXX='-non_shared' |
| 12523 | # CC pic flag -KPIC is the default. |
| 12524 | ;; |
| 12525 | *) |
| 12526 | ;; |
| 12527 | esac |
| 12528 | ;; |
| 12529 | linux*) |
| 12530 | case $cc_basename in |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12531 | KCC*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12532 | # KAI C++ Compiler |
| 12533 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 12534 | lt_prog_compiler_pic_CXX='-fPIC' |
| 12535 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12536 | icpc* | ecpc*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12537 | # Intel C++ |
| 12538 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12539 | lt_prog_compiler_pic_CXX='-KPIC' |
| 12540 | lt_prog_compiler_static_CXX='-static' |
| 12541 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12542 | pgCC*) |
| 12543 | # Portland Group C++ compiler. |
| 12544 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12545 | lt_prog_compiler_pic_CXX='-fpic' |
| 12546 | lt_prog_compiler_static_CXX='-Bstatic' |
| 12547 | ;; |
| 12548 | cxx*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12549 | # Compaq C++ |
| 12550 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 12551 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 12552 | lt_prog_compiler_pic_CXX= |
| 12553 | lt_prog_compiler_static_CXX='-non_shared' |
| 12554 | ;; |
| 12555 | *) |
| 12556 | ;; |
| 12557 | esac |
| 12558 | ;; |
| 12559 | lynxos*) |
| 12560 | ;; |
| 12561 | m88k*) |
| 12562 | ;; |
| 12563 | mvs*) |
| 12564 | case $cc_basename in |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12565 | cxx*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12566 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 12567 | ;; |
| 12568 | *) |
| 12569 | ;; |
| 12570 | esac |
| 12571 | ;; |
| 12572 | netbsd*) |
| 12573 | ;; |
| 12574 | osf3* | osf4* | osf5*) |
| 12575 | case $cc_basename in |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12576 | KCC*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12577 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 12578 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12579 | RCC*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12580 | # Rational C++ 2.4.1 |
| 12581 | lt_prog_compiler_pic_CXX='-pic' |
| 12582 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12583 | cxx*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12584 | # Digital/Compaq C++ |
| 12585 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12586 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 12587 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 12588 | lt_prog_compiler_pic_CXX= |
| 12589 | lt_prog_compiler_static_CXX='-non_shared' |
| 12590 | ;; |
| 12591 | *) |
| 12592 | ;; |
| 12593 | esac |
| 12594 | ;; |
| 12595 | psos*) |
| 12596 | ;; |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12597 | solaris*) |
| 12598 | case $cc_basename in |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12599 | CC*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12600 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 12601 | lt_prog_compiler_pic_CXX='-KPIC' |
| 12602 | lt_prog_compiler_static_CXX='-Bstatic' |
| 12603 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 12604 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12605 | gcx*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12606 | # Green Hills C++ Compiler |
| 12607 | lt_prog_compiler_pic_CXX='-PIC' |
| 12608 | ;; |
| 12609 | *) |
| 12610 | ;; |
| 12611 | esac |
| 12612 | ;; |
| 12613 | sunos4*) |
| 12614 | case $cc_basename in |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12615 | CC*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12616 | # Sun C++ 4.x |
| 12617 | lt_prog_compiler_pic_CXX='-pic' |
| 12618 | lt_prog_compiler_static_CXX='-Bstatic' |
| 12619 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12620 | lcc*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12621 | # Lucid |
| 12622 | lt_prog_compiler_pic_CXX='-pic' |
| 12623 | ;; |
| 12624 | *) |
| 12625 | ;; |
| 12626 | esac |
| 12627 | ;; |
| 12628 | tandem*) |
| 12629 | case $cc_basename in |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12630 | NCC*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12631 | # NonStop-UX NCC 3.20 |
| 12632 | lt_prog_compiler_pic_CXX='-KPIC' |
| 12633 | ;; |
| 12634 | *) |
| 12635 | ;; |
| 12636 | esac |
| 12637 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12638 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 12639 | case $cc_basename in |
| 12640 | CC*) |
| 12641 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12642 | lt_prog_compiler_pic_CXX='-KPIC' |
| 12643 | lt_prog_compiler_static_CXX='-Bstatic' |
| 12644 | ;; |
| 12645 | esac |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12646 | ;; |
| 12647 | vxworks*) |
| 12648 | ;; |
| 12649 | *) |
| 12650 | lt_prog_compiler_can_build_shared_CXX=no |
| 12651 | ;; |
| 12652 | esac |
| 12653 | fi |
| 12654 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12655 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
| 12656 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12657 | |
| 12658 | # |
| 12659 | # Check to make sure the PIC flag actually works. |
| 12660 | # |
| 12661 | if test -n "$lt_prog_compiler_pic_CXX"; then |
| 12662 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12663 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 12664 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12665 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
| 12666 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12667 | else |
| 12668 | lt_prog_compiler_pic_works_CXX=no |
| 12669 | ac_outfile=conftest.$ac_objext |
| 12670 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12671 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 12672 | # Insert the option either (1) after the last *FLAGS variable, or |
| 12673 | # (2) before a word containing "conftest.", or (3) at the end. |
| 12674 | # Note that $ac_compile itself does not contain backslashes and begins |
| 12675 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 12676 | # The option is referenced via a variable to avoid confusing sed. |
| 12677 | lt_compile=`echo "$ac_compile" | $SED \ |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12678 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12679 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 12680 | -e 's:$: $lt_compiler_flag:'` |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12681 | (eval echo "\"\$as_me:12681: $lt_compile\"" >&5) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12682 | (eval "$lt_compile" 2>conftest.err) |
| 12683 | ac_status=$? |
| 12684 | cat conftest.err >&5 |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12685 | echo "$as_me:12685: \$? = $ac_status" >&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12686 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 12687 | # The compiler can only warn and ignore the option if not recognized |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12688 | # So say no if there are warnings other than the usual output. |
| 12689 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 12690 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 12691 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12692 | lt_prog_compiler_pic_works_CXX=yes |
| 12693 | fi |
| 12694 | fi |
| 12695 | $rm conftest* |
| 12696 | |
| 12697 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12698 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
| 12699 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12700 | |
| 12701 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
| 12702 | case $lt_prog_compiler_pic_CXX in |
| 12703 | "" | " "*) ;; |
| 12704 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 12705 | esac |
| 12706 | else |
| 12707 | lt_prog_compiler_pic_CXX= |
| 12708 | lt_prog_compiler_can_build_shared_CXX=no |
| 12709 | fi |
| 12710 | |
| 12711 | fi |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12712 | case $host_os in |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12713 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 12714 | *djgpp*) |
| 12715 | lt_prog_compiler_pic_CXX= |
| 12716 | ;; |
| 12717 | *) |
| 12718 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 12719 | ;; |
| 12720 | esac |
| 12721 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12722 | # |
| 12723 | # Check to make sure the static flag actually works. |
| 12724 | # |
| 12725 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
| 12726 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 12727 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 12728 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
| 12729 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12730 | else |
| 12731 | lt_prog_compiler_static_works_CXX=no |
| 12732 | save_LDFLAGS="$LDFLAGS" |
| 12733 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 12734 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 12735 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 12736 | # The linker can only warn and ignore the option if not recognized |
| 12737 | # So say no if there are warnings |
| 12738 | if test -s conftest.err; then |
| 12739 | # Append any errors to the config.log. |
| 12740 | cat conftest.err 1>&5 |
| 12741 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 12742 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 12743 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 12744 | lt_prog_compiler_static_works_CXX=yes |
| 12745 | fi |
| 12746 | else |
| 12747 | lt_prog_compiler_static_works_CXX=yes |
| 12748 | fi |
| 12749 | fi |
| 12750 | $rm conftest* |
| 12751 | LDFLAGS="$save_LDFLAGS" |
| 12752 | |
| 12753 | fi |
| 12754 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
| 12755 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } |
| 12756 | |
| 12757 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
| 12758 | : |
| 12759 | else |
| 12760 | lt_prog_compiler_static_CXX= |
| 12761 | fi |
| 12762 | |
| 12763 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12764 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 12765 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12766 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
| 12767 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12768 | else |
| 12769 | lt_cv_prog_compiler_c_o_CXX=no |
| 12770 | $rm -r conftest 2>/dev/null |
| 12771 | mkdir conftest |
| 12772 | cd conftest |
| 12773 | mkdir out |
| 12774 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12775 | |
| 12776 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 12777 | # Insert the option either (1) after the last *FLAGS variable, or |
| 12778 | # (2) before a word containing "conftest.", or (3) at the end. |
| 12779 | # Note that $ac_compile itself does not contain backslashes and begins |
| 12780 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 12781 | lt_compile=`echo "$ac_compile" | $SED \ |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12782 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12783 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 12784 | -e 's:$: $lt_compiler_flag:'` |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12785 | (eval echo "\"\$as_me:12785: $lt_compile\"" >&5) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12786 | (eval "$lt_compile" 2>out/conftest.err) |
| 12787 | ac_status=$? |
| 12788 | cat out/conftest.err >&5 |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12789 | echo "$as_me:12789: \$? = $ac_status" >&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12790 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 12791 | then |
| 12792 | # The compiler can only warn and ignore the option if not recognized |
| 12793 | # So say no if there are warnings |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12794 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 12795 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 12796 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12797 | lt_cv_prog_compiler_c_o_CXX=yes |
| 12798 | fi |
| 12799 | fi |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12800 | chmod u+w . 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12801 | $rm conftest* |
| 12802 | # SGI C++ compiler will create directory out/ii_files/ for |
| 12803 | # template instantiation |
| 12804 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 12805 | $rm out/* && rmdir out |
| 12806 | cd .. |
| 12807 | rmdir conftest |
| 12808 | $rm conftest* |
| 12809 | |
| 12810 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12811 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 12812 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12813 | |
| 12814 | |
| 12815 | hard_links="nottested" |
| 12816 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 12817 | # do not overwrite the value of need_locks provided by the user |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12818 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 12819 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12820 | hard_links=yes |
| 12821 | $rm conftest* |
| 12822 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 12823 | touch conftest.a |
| 12824 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 12825 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12826 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 12827 | echo "${ECHO_T}$hard_links" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12828 | if test "$hard_links" = no; then |
| 12829 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 12830 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 12831 | need_locks=warn |
| 12832 | fi |
| 12833 | else |
| 12834 | need_locks=no |
| 12835 | fi |
| 12836 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12837 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 12838 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12839 | |
| 12840 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 12841 | case $host_os in |
| 12842 | aix4* | aix5*) |
| 12843 | # If we're using GNU nm, then we don't want the "-C" option. |
| 12844 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 12845 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 12846 | 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' |
| 12847 | else |
| 12848 | 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' |
| 12849 | fi |
| 12850 | ;; |
| 12851 | pw32*) |
| 12852 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 12853 | ;; |
| 12854 | cygwin* | mingw*) |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12855 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12856 | ;; |
| 12857 | *) |
| 12858 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 12859 | ;; |
| 12860 | esac |
| 12861 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12862 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 12863 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12864 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 12865 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12866 | # |
| 12867 | # Do we need to explicitly link libc? |
| 12868 | # |
| 12869 | case "x$archive_cmds_need_lc_CXX" in |
| 12870 | x|xyes) |
| 12871 | # Assume -lc should be added |
| 12872 | archive_cmds_need_lc_CXX=yes |
| 12873 | |
| 12874 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 12875 | case $archive_cmds_CXX in |
| 12876 | *'~'*) |
| 12877 | # FIXME: we may have to deal with multi-command sequences. |
| 12878 | ;; |
| 12879 | '$CC '*) |
| 12880 | # Test whether the compiler implicitly links with -lc since on some |
| 12881 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 12882 | # to ld, don't add -lc before -lgcc. |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12883 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 12884 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12885 | $rm conftest* |
| 12886 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12887 | |
| 12888 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12889 | (eval $ac_compile) 2>&5 |
| 12890 | ac_status=$? |
| 12891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12892 | (exit $ac_status); } 2>conftest.err; then |
| 12893 | soname=conftest |
| 12894 | lib=conftest |
| 12895 | libobjs=conftest.$ac_objext |
| 12896 | deplibs= |
| 12897 | wl=$lt_prog_compiler_wl_CXX |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 12898 | pic_flag=$lt_prog_compiler_pic_CXX |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12899 | compiler_flags=-v |
| 12900 | linker_flags=-v |
| 12901 | verstring= |
| 12902 | output_objdir=. |
| 12903 | libname=conftest |
| 12904 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 12905 | allow_undefined_flag_CXX= |
| 12906 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 12907 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 12908 | ac_status=$? |
| 12909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12910 | (exit $ac_status); } |
| 12911 | then |
| 12912 | archive_cmds_need_lc_CXX=no |
| 12913 | else |
| 12914 | archive_cmds_need_lc_CXX=yes |
| 12915 | fi |
| 12916 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 12917 | else |
| 12918 | cat conftest.err 1>&5 |
| 12919 | fi |
| 12920 | $rm conftest* |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12921 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
| 12922 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12923 | ;; |
| 12924 | esac |
| 12925 | fi |
| 12926 | ;; |
| 12927 | esac |
| 12928 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12929 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 12930 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12931 | library_names_spec= |
| 12932 | libname_spec='lib$name' |
| 12933 | soname_spec= |
| 12934 | shrext_cmds=".so" |
| 12935 | postinstall_cmds= |
| 12936 | postuninstall_cmds= |
| 12937 | finish_cmds= |
| 12938 | finish_eval= |
| 12939 | shlibpath_var= |
| 12940 | shlibpath_overrides_runpath=unknown |
| 12941 | version_type=none |
| 12942 | dynamic_linker="$host_os ld.so" |
| 12943 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 12944 | if test "$GCC" = yes; then |
| 12945 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 12946 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 12947 | # if the path contains ";" then we assume it to be the separator |
| 12948 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 12949 | # assumed that no part of a normal pathname contains ";" but that should |
| 12950 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 12951 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 12952 | else |
| 12953 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 12954 | fi |
| 12955 | else |
| 12956 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 12957 | fi |
| 12958 | need_lib_prefix=unknown |
| 12959 | hardcode_into_libs=no |
| 12960 | |
| 12961 | # when you set need_version to no, make sure it does not cause -set_version |
| 12962 | # flags to be left without arguments |
| 12963 | need_version=unknown |
| 12964 | |
| 12965 | case $host_os in |
| 12966 | aix3*) |
| 12967 | version_type=linux |
| 12968 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 12969 | shlibpath_var=LIBPATH |
| 12970 | |
| 12971 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 12972 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12973 | ;; |
| 12974 | |
| 12975 | aix4* | aix5*) |
| 12976 | version_type=linux |
| 12977 | need_lib_prefix=no |
| 12978 | need_version=no |
| 12979 | hardcode_into_libs=yes |
| 12980 | if test "$host_cpu" = ia64; then |
| 12981 | # AIX 5 supports IA64 |
| 12982 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 12983 | shlibpath_var=LD_LIBRARY_PATH |
| 12984 | else |
| 12985 | # With GCC up to 2.95.x, collect2 would create an import file |
| 12986 | # for dependence libraries. The import file would start with |
| 12987 | # the line `#! .'. This would cause the generated library to |
| 12988 | # depend on `.', always an invalid library. This was fixed in |
| 12989 | # development snapshots of GCC prior to 3.0. |
| 12990 | case $host_os in |
| 12991 | aix4 | aix4.[01] | aix4.[01].*) |
| 12992 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 12993 | echo ' yes ' |
| 12994 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 12995 | : |
| 12996 | else |
| 12997 | can_build_shared=no |
| 12998 | fi |
| 12999 | ;; |
| 13000 | esac |
| 13001 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 13002 | # soname into executable. Probably we can add versioning support to |
| 13003 | # collect2, so additional links can be useful in future. |
| 13004 | if test "$aix_use_runtimelinking" = yes; then |
| 13005 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 13006 | # instead of lib<name>.a to let people know that these are not |
| 13007 | # typical AIX shared libraries. |
| 13008 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13009 | else |
| 13010 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 13011 | # and later when we are not doing run time linking. |
| 13012 | library_names_spec='${libname}${release}.a $libname.a' |
| 13013 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13014 | fi |
| 13015 | shlibpath_var=LIBPATH |
| 13016 | fi |
| 13017 | ;; |
| 13018 | |
| 13019 | amigaos*) |
| 13020 | library_names_spec='$libname.ixlibrary $libname.a' |
| 13021 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 13022 | 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' |
| 13023 | ;; |
| 13024 | |
| 13025 | beos*) |
| 13026 | library_names_spec='${libname}${shared_ext}' |
| 13027 | dynamic_linker="$host_os ld.so" |
| 13028 | shlibpath_var=LIBRARY_PATH |
| 13029 | ;; |
| 13030 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 13031 | bsdi[45]*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13032 | version_type=linux |
| 13033 | need_version=no |
| 13034 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13035 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13036 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 13037 | shlibpath_var=LD_LIBRARY_PATH |
| 13038 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 13039 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 13040 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 13041 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 13042 | # libtool to hard-code these into programs |
| 13043 | ;; |
| 13044 | |
| 13045 | cygwin* | mingw* | pw32*) |
| 13046 | version_type=windows |
| 13047 | shrext_cmds=".dll" |
| 13048 | need_version=no |
| 13049 | need_lib_prefix=no |
| 13050 | |
| 13051 | case $GCC,$host_os in |
| 13052 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 13053 | library_names_spec='$libname.dll.a' |
| 13054 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 13055 | postinstall_cmds='base_file=`basename \${file}`~ |
| 13056 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 13057 | dldir=$destdir/`dirname \$dlpath`~ |
| 13058 | test -d \$dldir || mkdir -p \$dldir~ |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 13059 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 13060 | chmod a+x \$dldir/$dlname' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13061 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 13062 | dlpath=$dir/\$dldll~ |
| 13063 | $rm \$dlpath' |
| 13064 | shlibpath_overrides_runpath=yes |
| 13065 | |
| 13066 | case $host_os in |
| 13067 | cygwin*) |
| 13068 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 13069 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 13070 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 13071 | ;; |
| 13072 | mingw*) |
| 13073 | # MinGW DLLs use traditional 'lib' prefix |
| 13074 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 13075 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 13076 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 13077 | # It is most probably a Windows format PATH printed by |
| 13078 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 13079 | # path with ; separators, and with drive letters. We can handle the |
| 13080 | # drive letters (cygwin fileutils understands them), so leave them, |
| 13081 | # especially as we might pass files found there to a mingw objdump, |
| 13082 | # which wouldn't understand a cygwinified path. Ahh. |
| 13083 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 13084 | else |
| 13085 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 13086 | fi |
| 13087 | ;; |
| 13088 | pw32*) |
| 13089 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 13090 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13091 | ;; |
| 13092 | esac |
| 13093 | ;; |
| 13094 | |
| 13095 | *) |
| 13096 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 13097 | ;; |
| 13098 | esac |
| 13099 | dynamic_linker='Win32 ld.exe' |
| 13100 | # FIXME: first we should search . and the directory the executable is in |
| 13101 | shlibpath_var=PATH |
| 13102 | ;; |
| 13103 | |
| 13104 | darwin* | rhapsody*) |
| 13105 | dynamic_linker="$host_os dyld" |
| 13106 | version_type=darwin |
| 13107 | need_lib_prefix=no |
| 13108 | need_version=no |
| 13109 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 13110 | soname_spec='${libname}${release}${major}$shared_ext' |
| 13111 | shlibpath_overrides_runpath=yes |
| 13112 | shlibpath_var=DYLD_LIBRARY_PATH |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 13113 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13114 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 13115 | if test "$GCC" = yes; then |
| 13116 | 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"` |
| 13117 | else |
| 13118 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 13119 | fi |
| 13120 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 13121 | ;; |
| 13122 | |
| 13123 | dgux*) |
| 13124 | version_type=linux |
| 13125 | need_lib_prefix=no |
| 13126 | need_version=no |
| 13127 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 13128 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13129 | shlibpath_var=LD_LIBRARY_PATH |
| 13130 | ;; |
| 13131 | |
| 13132 | freebsd1*) |
| 13133 | dynamic_linker=no |
| 13134 | ;; |
| 13135 | |
| 13136 | kfreebsd*-gnu) |
| 13137 | version_type=linux |
| 13138 | need_lib_prefix=no |
| 13139 | need_version=no |
| 13140 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 13141 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13142 | shlibpath_var=LD_LIBRARY_PATH |
| 13143 | shlibpath_overrides_runpath=no |
| 13144 | hardcode_into_libs=yes |
| 13145 | dynamic_linker='GNU ld.so' |
| 13146 | ;; |
| 13147 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 13148 | freebsd* | dragonfly*) |
| 13149 | # DragonFly does not have aout. When/if they implement a new |
| 13150 | # versioning mechanism, adjust this. |
| 13151 | if test -x /usr/bin/objformat; then |
| 13152 | objformat=`/usr/bin/objformat` |
| 13153 | else |
| 13154 | case $host_os in |
| 13155 | freebsd[123]*) objformat=aout ;; |
| 13156 | *) objformat=elf ;; |
| 13157 | esac |
| 13158 | fi |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13159 | version_type=freebsd-$objformat |
| 13160 | case $version_type in |
| 13161 | freebsd-elf*) |
| 13162 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 13163 | need_version=no |
| 13164 | need_lib_prefix=no |
| 13165 | ;; |
| 13166 | freebsd-*) |
| 13167 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 13168 | need_version=yes |
| 13169 | ;; |
| 13170 | esac |
| 13171 | shlibpath_var=LD_LIBRARY_PATH |
| 13172 | case $host_os in |
| 13173 | freebsd2*) |
| 13174 | shlibpath_overrides_runpath=yes |
| 13175 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 13176 | freebsd3.[01]* | freebsdelf3.[01]*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13177 | shlibpath_overrides_runpath=yes |
| 13178 | hardcode_into_libs=yes |
| 13179 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 13180 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 13181 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13182 | shlibpath_overrides_runpath=no |
| 13183 | hardcode_into_libs=yes |
| 13184 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 13185 | freebsd*) # from 4.6 on |
| 13186 | shlibpath_overrides_runpath=yes |
| 13187 | hardcode_into_libs=yes |
| 13188 | ;; |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13189 | esac |
| 13190 | ;; |
| 13191 | |
| 13192 | gnu*) |
| 13193 | version_type=linux |
| 13194 | need_lib_prefix=no |
| 13195 | need_version=no |
| 13196 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 13197 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13198 | shlibpath_var=LD_LIBRARY_PATH |
| 13199 | hardcode_into_libs=yes |
| 13200 | ;; |
| 13201 | |
| 13202 | hpux9* | hpux10* | hpux11*) |
| 13203 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 13204 | # link against other versions. |
| 13205 | version_type=sunos |
| 13206 | need_lib_prefix=no |
| 13207 | need_version=no |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 13208 | case $host_cpu in |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13209 | ia64*) |
| 13210 | shrext_cmds='.so' |
| 13211 | hardcode_into_libs=yes |
| 13212 | dynamic_linker="$host_os dld.so" |
| 13213 | shlibpath_var=LD_LIBRARY_PATH |
| 13214 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13215 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13216 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13217 | if test "X$HPUX_IA64_MODE" = X32; then |
| 13218 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 13219 | else |
| 13220 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 13221 | fi |
| 13222 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13223 | ;; |
| 13224 | hppa*64*) |
| 13225 | shrext_cmds='.sl' |
| 13226 | hardcode_into_libs=yes |
| 13227 | dynamic_linker="$host_os dld.sl" |
| 13228 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 13229 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13230 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13231 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13232 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 13233 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13234 | ;; |
| 13235 | *) |
| 13236 | shrext_cmds='.sl' |
| 13237 | dynamic_linker="$host_os dld.sl" |
| 13238 | shlibpath_var=SHLIB_PATH |
| 13239 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 13240 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13241 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13242 | ;; |
| 13243 | esac |
| 13244 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 13245 | postinstall_cmds='chmod 555 $lib' |
| 13246 | ;; |
| 13247 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 13248 | interix3*) |
| 13249 | version_type=linux |
| 13250 | need_lib_prefix=no |
| 13251 | need_version=no |
| 13252 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 13253 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13254 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 13255 | shlibpath_var=LD_LIBRARY_PATH |
| 13256 | shlibpath_overrides_runpath=no |
| 13257 | hardcode_into_libs=yes |
| 13258 | ;; |
| 13259 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13260 | irix5* | irix6* | nonstopux*) |
| 13261 | case $host_os in |
| 13262 | nonstopux*) version_type=nonstopux ;; |
| 13263 | *) |
| 13264 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 13265 | version_type=linux |
| 13266 | else |
| 13267 | version_type=irix |
| 13268 | fi ;; |
| 13269 | esac |
| 13270 | need_lib_prefix=no |
| 13271 | need_version=no |
| 13272 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13273 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 13274 | case $host_os in |
| 13275 | irix5* | nonstopux*) |
| 13276 | libsuff= shlibsuff= |
| 13277 | ;; |
| 13278 | *) |
| 13279 | case $LD in # libtool.m4 will add one of these switches to LD |
| 13280 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 13281 | libsuff= shlibsuff= libmagic=32-bit;; |
| 13282 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 13283 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 13284 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 13285 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 13286 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 13287 | esac |
| 13288 | ;; |
| 13289 | esac |
| 13290 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 13291 | shlibpath_overrides_runpath=no |
| 13292 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 13293 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 13294 | hardcode_into_libs=yes |
| 13295 | ;; |
| 13296 | |
| 13297 | # No shared lib support for Linux oldld, aout, or coff. |
| 13298 | linux*oldld* | linux*aout* | linux*coff*) |
| 13299 | dynamic_linker=no |
| 13300 | ;; |
| 13301 | |
| 13302 | # This must be Linux ELF. |
| 13303 | linux*) |
| 13304 | version_type=linux |
| 13305 | need_lib_prefix=no |
| 13306 | need_version=no |
| 13307 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13308 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13309 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 13310 | shlibpath_var=LD_LIBRARY_PATH |
| 13311 | shlibpath_overrides_runpath=no |
| 13312 | # This implies no fast_install, which is unacceptable. |
| 13313 | # Some rework will be needed to allow for fast_install |
| 13314 | # before this can be enabled. |
| 13315 | hardcode_into_libs=yes |
| 13316 | |
| 13317 | # Append ld.so.conf contents to the search path |
| 13318 | if test -f /etc/ld.so.conf; then |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 13319 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13320 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 13321 | fi |
| 13322 | |
| 13323 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 13324 | # powerpc, because MkLinux only supported shared libraries with the |
| 13325 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 13326 | # most powerpc-linux boxes support dynamic linking these days and |
| 13327 | # people can always --disable-shared, the test was removed, and we |
| 13328 | # assume the GNU/Linux dynamic linker is in use. |
| 13329 | dynamic_linker='GNU/Linux ld.so' |
| 13330 | ;; |
| 13331 | |
| 13332 | knetbsd*-gnu) |
| 13333 | version_type=linux |
| 13334 | need_lib_prefix=no |
| 13335 | need_version=no |
| 13336 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 13337 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13338 | shlibpath_var=LD_LIBRARY_PATH |
| 13339 | shlibpath_overrides_runpath=no |
| 13340 | hardcode_into_libs=yes |
| 13341 | dynamic_linker='GNU ld.so' |
| 13342 | ;; |
| 13343 | |
| 13344 | netbsd*) |
| 13345 | version_type=sunos |
| 13346 | need_lib_prefix=no |
| 13347 | need_version=no |
| 13348 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 13349 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 13350 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 13351 | dynamic_linker='NetBSD (a.out) ld.so' |
| 13352 | else |
| 13353 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 13354 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13355 | dynamic_linker='NetBSD ld.elf_so' |
| 13356 | fi |
| 13357 | shlibpath_var=LD_LIBRARY_PATH |
| 13358 | shlibpath_overrides_runpath=yes |
| 13359 | hardcode_into_libs=yes |
| 13360 | ;; |
| 13361 | |
| 13362 | newsos6) |
| 13363 | version_type=linux |
| 13364 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13365 | shlibpath_var=LD_LIBRARY_PATH |
| 13366 | shlibpath_overrides_runpath=yes |
| 13367 | ;; |
| 13368 | |
| 13369 | nto-qnx*) |
| 13370 | version_type=linux |
| 13371 | need_lib_prefix=no |
| 13372 | need_version=no |
| 13373 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13374 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13375 | shlibpath_var=LD_LIBRARY_PATH |
| 13376 | shlibpath_overrides_runpath=yes |
| 13377 | ;; |
| 13378 | |
| 13379 | openbsd*) |
| 13380 | version_type=sunos |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 13381 | sys_lib_dlsearch_path_spec="/usr/lib" |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13382 | need_lib_prefix=no |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 13383 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 13384 | case $host_os in |
| 13385 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 13386 | *) need_version=no ;; |
| 13387 | esac |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13388 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 13389 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 13390 | shlibpath_var=LD_LIBRARY_PATH |
| 13391 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 13392 | case $host_os in |
| 13393 | openbsd2.[89] | openbsd2.[89].*) |
| 13394 | shlibpath_overrides_runpath=no |
| 13395 | ;; |
| 13396 | *) |
| 13397 | shlibpath_overrides_runpath=yes |
| 13398 | ;; |
| 13399 | esac |
| 13400 | else |
| 13401 | shlibpath_overrides_runpath=yes |
| 13402 | fi |
| 13403 | ;; |
| 13404 | |
| 13405 | os2*) |
| 13406 | libname_spec='$name' |
| 13407 | shrext_cmds=".dll" |
| 13408 | need_lib_prefix=no |
| 13409 | library_names_spec='$libname${shared_ext} $libname.a' |
| 13410 | dynamic_linker='OS/2 ld.exe' |
| 13411 | shlibpath_var=LIBPATH |
| 13412 | ;; |
| 13413 | |
| 13414 | osf3* | osf4* | osf5*) |
| 13415 | version_type=osf |
| 13416 | need_lib_prefix=no |
| 13417 | need_version=no |
| 13418 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13419 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13420 | shlibpath_var=LD_LIBRARY_PATH |
| 13421 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 13422 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 13423 | ;; |
| 13424 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13425 | solaris*) |
| 13426 | version_type=linux |
| 13427 | need_lib_prefix=no |
| 13428 | need_version=no |
| 13429 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13430 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13431 | shlibpath_var=LD_LIBRARY_PATH |
| 13432 | shlibpath_overrides_runpath=yes |
| 13433 | hardcode_into_libs=yes |
| 13434 | # ldd complains unless libraries are executable |
| 13435 | postinstall_cmds='chmod +x $lib' |
| 13436 | ;; |
| 13437 | |
| 13438 | sunos4*) |
| 13439 | version_type=sunos |
| 13440 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 13441 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 13442 | shlibpath_var=LD_LIBRARY_PATH |
| 13443 | shlibpath_overrides_runpath=yes |
| 13444 | if test "$with_gnu_ld" = yes; then |
| 13445 | need_lib_prefix=no |
| 13446 | fi |
| 13447 | need_version=yes |
| 13448 | ;; |
| 13449 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 13450 | sysv4 | sysv4.3*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13451 | version_type=linux |
| 13452 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13453 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13454 | shlibpath_var=LD_LIBRARY_PATH |
| 13455 | case $host_vendor in |
| 13456 | sni) |
| 13457 | shlibpath_overrides_runpath=no |
| 13458 | need_lib_prefix=no |
| 13459 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 13460 | runpath_var=LD_RUN_PATH |
| 13461 | ;; |
| 13462 | siemens) |
| 13463 | need_lib_prefix=no |
| 13464 | ;; |
| 13465 | motorola) |
| 13466 | need_lib_prefix=no |
| 13467 | need_version=no |
| 13468 | shlibpath_overrides_runpath=no |
| 13469 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 13470 | ;; |
| 13471 | esac |
| 13472 | ;; |
| 13473 | |
| 13474 | sysv4*MP*) |
| 13475 | if test -d /usr/nec ;then |
| 13476 | version_type=linux |
| 13477 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 13478 | soname_spec='$libname${shared_ext}.$major' |
| 13479 | shlibpath_var=LD_LIBRARY_PATH |
| 13480 | fi |
| 13481 | ;; |
| 13482 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 13483 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 13484 | version_type=freebsd-elf |
| 13485 | need_lib_prefix=no |
| 13486 | need_version=no |
| 13487 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 13488 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13489 | shlibpath_var=LD_LIBRARY_PATH |
| 13490 | hardcode_into_libs=yes |
| 13491 | if test "$with_gnu_ld" = yes; then |
| 13492 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 13493 | shlibpath_overrides_runpath=no |
| 13494 | else |
| 13495 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 13496 | shlibpath_overrides_runpath=yes |
| 13497 | case $host_os in |
| 13498 | sco3.2v5*) |
| 13499 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 13500 | ;; |
| 13501 | esac |
| 13502 | fi |
| 13503 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 13504 | ;; |
| 13505 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13506 | uts4*) |
| 13507 | version_type=linux |
| 13508 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13509 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13510 | shlibpath_var=LD_LIBRARY_PATH |
| 13511 | ;; |
| 13512 | |
| 13513 | *) |
| 13514 | dynamic_linker=no |
| 13515 | ;; |
| 13516 | esac |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13517 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 13518 | echo "${ECHO_T}$dynamic_linker" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13519 | test "$dynamic_linker" = no && can_build_shared=no |
| 13520 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 13521 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 13522 | if test "$GCC" = yes; then |
| 13523 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 13524 | fi |
| 13525 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13526 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 13527 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13528 | hardcode_action_CXX= |
| 13529 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 13530 | test -n "$runpath_var_CXX" || \ |
| 13531 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13532 | |
| 13533 | # We can hardcode non-existant directories. |
| 13534 | if test "$hardcode_direct_CXX" != no && |
| 13535 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 13536 | # have to relink, otherwise we might link with an installed library |
| 13537 | # when we should be linking with a yet-to-be-installed one |
| 13538 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 13539 | test "$hardcode_minus_L_CXX" != no; then |
| 13540 | # Linking always hardcodes the temporary library directory. |
| 13541 | hardcode_action_CXX=relink |
| 13542 | else |
| 13543 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 13544 | hardcode_action_CXX=immediate |
| 13545 | fi |
| 13546 | else |
| 13547 | # We cannot hardcode anything, or else we can only hardcode existing |
| 13548 | # directories. |
| 13549 | hardcode_action_CXX=unsupported |
| 13550 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13551 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
| 13552 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13553 | |
| 13554 | if test "$hardcode_action_CXX" = relink; then |
| 13555 | # Fast installation is not supported |
| 13556 | enable_fast_install=no |
| 13557 | elif test "$shlibpath_overrides_runpath" = yes || |
| 13558 | test "$enable_shared" = no; then |
| 13559 | # Fast installation is not necessary |
| 13560 | enable_fast_install=needless |
| 13561 | fi |
| 13562 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13563 | |
| 13564 | # The else clause should only fire when bootstrapping the |
| 13565 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 13566 | # with your package, and you will get complaints that there are |
| 13567 | # no rules to generate ltmain.sh. |
| 13568 | if test -f "$ltmain"; then |
| 13569 | # See if we are running on zsh, and set the options which allow our commands through |
| 13570 | # without removal of \ escapes. |
| 13571 | if test -n "${ZSH_VERSION+set}" ; then |
| 13572 | setopt NO_GLOB_SUBST |
| 13573 | fi |
| 13574 | # Now quote all the things that may contain metacharacters while being |
| 13575 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 13576 | # variables and quote the copies for generation of the libtool script. |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 13577 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13578 | SED SHELL STRIP \ |
| 13579 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 13580 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 13581 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 13582 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 13583 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 13584 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 13585 | old_postinstall_cmds old_postuninstall_cmds \ |
| 13586 | compiler_CXX \ |
| 13587 | CC_CXX \ |
| 13588 | LD_CXX \ |
| 13589 | lt_prog_compiler_wl_CXX \ |
| 13590 | lt_prog_compiler_pic_CXX \ |
| 13591 | lt_prog_compiler_static_CXX \ |
| 13592 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 13593 | export_dynamic_flag_spec_CXX \ |
| 13594 | thread_safe_flag_spec_CXX \ |
| 13595 | whole_archive_flag_spec_CXX \ |
| 13596 | enable_shared_with_static_runtimes_CXX \ |
| 13597 | old_archive_cmds_CXX \ |
| 13598 | old_archive_from_new_cmds_CXX \ |
| 13599 | predep_objects_CXX \ |
| 13600 | postdep_objects_CXX \ |
| 13601 | predeps_CXX \ |
| 13602 | postdeps_CXX \ |
| 13603 | compiler_lib_search_path_CXX \ |
| 13604 | archive_cmds_CXX \ |
| 13605 | archive_expsym_cmds_CXX \ |
| 13606 | postinstall_cmds_CXX \ |
| 13607 | postuninstall_cmds_CXX \ |
| 13608 | old_archive_from_expsyms_cmds_CXX \ |
| 13609 | allow_undefined_flag_CXX \ |
| 13610 | no_undefined_flag_CXX \ |
| 13611 | export_symbols_cmds_CXX \ |
| 13612 | hardcode_libdir_flag_spec_CXX \ |
| 13613 | hardcode_libdir_flag_spec_ld_CXX \ |
| 13614 | hardcode_libdir_separator_CXX \ |
| 13615 | hardcode_automatic_CXX \ |
| 13616 | module_cmds_CXX \ |
| 13617 | module_expsym_cmds_CXX \ |
| 13618 | lt_cv_prog_compiler_c_o_CXX \ |
| 13619 | exclude_expsyms_CXX \ |
| 13620 | include_expsyms_CXX; do |
| 13621 | |
| 13622 | case $var in |
| 13623 | old_archive_cmds_CXX | \ |
| 13624 | old_archive_from_new_cmds_CXX | \ |
| 13625 | archive_cmds_CXX | \ |
| 13626 | archive_expsym_cmds_CXX | \ |
| 13627 | module_cmds_CXX | \ |
| 13628 | module_expsym_cmds_CXX | \ |
| 13629 | old_archive_from_expsyms_cmds_CXX | \ |
| 13630 | export_symbols_cmds_CXX | \ |
| 13631 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 13632 | postinstall_cmds | postuninstall_cmds | \ |
| 13633 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 13634 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 13635 | # Double-quote double-evaled strings. |
| 13636 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 13637 | ;; |
| 13638 | *) |
| 13639 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 13640 | ;; |
| 13641 | esac |
| 13642 | done |
| 13643 | |
| 13644 | case $lt_echo in |
| 13645 | *'\$0 --fallback-echo"') |
| 13646 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 13647 | ;; |
| 13648 | esac |
| 13649 | |
| 13650 | cfgfile="$ofile" |
| 13651 | |
| 13652 | cat <<__EOF__ >> "$cfgfile" |
| 13653 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 13654 | |
| 13655 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 13656 | |
| 13657 | # Shell to use when invoking shell scripts. |
| 13658 | SHELL=$lt_SHELL |
| 13659 | |
| 13660 | # Whether or not to build shared libraries. |
| 13661 | build_libtool_libs=$enable_shared |
| 13662 | |
| 13663 | # Whether or not to build static libraries. |
| 13664 | build_old_libs=$enable_static |
| 13665 | |
| 13666 | # Whether or not to add -lc for building shared libraries. |
| 13667 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 13668 | |
| 13669 | # Whether or not to disallow shared libs when runtime libs are static |
| 13670 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 13671 | |
| 13672 | # Whether or not to optimize for fast installation. |
| 13673 | fast_install=$enable_fast_install |
| 13674 | |
| 13675 | # The host system. |
| 13676 | host_alias=$host_alias |
| 13677 | host=$host |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 13678 | host_os=$host_os |
| 13679 | |
| 13680 | # The build system. |
| 13681 | build_alias=$build_alias |
| 13682 | build=$build |
| 13683 | build_os=$build_os |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13684 | |
| 13685 | # An echo program that does not interpret backslashes. |
| 13686 | echo=$lt_echo |
| 13687 | |
| 13688 | # The archiver. |
| 13689 | AR=$lt_AR |
| 13690 | AR_FLAGS=$lt_AR_FLAGS |
| 13691 | |
| 13692 | # A C compiler. |
| 13693 | LTCC=$lt_LTCC |
| 13694 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 13695 | # LTCC compiler flags. |
| 13696 | LTCFLAGS=$lt_LTCFLAGS |
| 13697 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13698 | # A language-specific compiler. |
| 13699 | CC=$lt_compiler_CXX |
| 13700 | |
| 13701 | # Is the compiler the GNU C compiler? |
| 13702 | with_gcc=$GCC_CXX |
| 13703 | |
| 13704 | # An ERE matcher. |
| 13705 | EGREP=$lt_EGREP |
| 13706 | |
| 13707 | # The linker used to build libraries. |
| 13708 | LD=$lt_LD_CXX |
| 13709 | |
| 13710 | # Whether we need hard or soft links. |
| 13711 | LN_S=$lt_LN_S |
| 13712 | |
| 13713 | # A BSD-compatible nm program. |
| 13714 | NM=$lt_NM |
| 13715 | |
| 13716 | # A symbol stripping program |
| 13717 | STRIP=$lt_STRIP |
| 13718 | |
| 13719 | # Used to examine libraries when file_magic_cmd begins "file" |
| 13720 | MAGIC_CMD=$MAGIC_CMD |
| 13721 | |
| 13722 | # Used on cygwin: DLL creation program. |
| 13723 | DLLTOOL="$DLLTOOL" |
| 13724 | |
| 13725 | # Used on cygwin: object dumper. |
| 13726 | OBJDUMP="$OBJDUMP" |
| 13727 | |
| 13728 | # Used on cygwin: assembler. |
| 13729 | AS="$AS" |
| 13730 | |
| 13731 | # The name of the directory that contains temporary libtool files. |
| 13732 | objdir=$objdir |
| 13733 | |
| 13734 | # How to create reloadable object files. |
| 13735 | reload_flag=$lt_reload_flag |
| 13736 | reload_cmds=$lt_reload_cmds |
| 13737 | |
| 13738 | # How to pass a linker flag through the compiler. |
| 13739 | wl=$lt_lt_prog_compiler_wl_CXX |
| 13740 | |
| 13741 | # Object file suffix (normally "o"). |
| 13742 | objext="$ac_objext" |
| 13743 | |
| 13744 | # Old archive suffix (normally "a"). |
| 13745 | libext="$libext" |
| 13746 | |
| 13747 | # Shared library suffix (normally ".so"). |
| 13748 | shrext_cmds='$shrext_cmds' |
| 13749 | |
| 13750 | # Executable file suffix (normally ""). |
| 13751 | exeext="$exeext" |
| 13752 | |
| 13753 | # Additional compiler flags for building library objects. |
| 13754 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 13755 | pic_mode=$pic_mode |
| 13756 | |
| 13757 | # What is the maximum length of a command? |
| 13758 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 13759 | |
| 13760 | # Does compiler simultaneously support -c and -o options? |
| 13761 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 13762 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 13763 | # Must we lock files when doing compilation? |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13764 | need_locks=$lt_need_locks |
| 13765 | |
| 13766 | # Do we need the lib prefix for modules? |
| 13767 | need_lib_prefix=$need_lib_prefix |
| 13768 | |
| 13769 | # Do we need a version for libraries? |
| 13770 | need_version=$need_version |
| 13771 | |
| 13772 | # Whether dlopen is supported. |
| 13773 | dlopen_support=$enable_dlopen |
| 13774 | |
| 13775 | # Whether dlopen of programs is supported. |
| 13776 | dlopen_self=$enable_dlopen_self |
| 13777 | |
| 13778 | # Whether dlopen of statically linked programs is supported. |
| 13779 | dlopen_self_static=$enable_dlopen_self_static |
| 13780 | |
| 13781 | # Compiler flag to prevent dynamic linking. |
| 13782 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 13783 | |
| 13784 | # Compiler flag to turn off builtin functions. |
| 13785 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 13786 | |
| 13787 | # Compiler flag to allow reflexive dlopens. |
| 13788 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 13789 | |
| 13790 | # Compiler flag to generate shared objects directly from archives. |
| 13791 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 13792 | |
| 13793 | # Compiler flag to generate thread-safe objects. |
| 13794 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
| 13795 | |
| 13796 | # Library versioning type. |
| 13797 | version_type=$version_type |
| 13798 | |
| 13799 | # Format of library name prefix. |
| 13800 | libname_spec=$lt_libname_spec |
| 13801 | |
| 13802 | # List of archive names. First name is the real one, the rest are links. |
| 13803 | # The last name is the one that the linker finds with -lNAME. |
| 13804 | library_names_spec=$lt_library_names_spec |
| 13805 | |
| 13806 | # The coded name of the library, if different from the real name. |
| 13807 | soname_spec=$lt_soname_spec |
| 13808 | |
| 13809 | # Commands used to build and install an old-style archive. |
| 13810 | RANLIB=$lt_RANLIB |
| 13811 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 13812 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 13813 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 13814 | |
| 13815 | # Create an old-style archive from a shared archive. |
| 13816 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 13817 | |
| 13818 | # Create a temporary old-style archive to link instead of a shared archive. |
| 13819 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 13820 | |
| 13821 | # Commands used to build and install a shared archive. |
| 13822 | archive_cmds=$lt_archive_cmds_CXX |
| 13823 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 13824 | postinstall_cmds=$lt_postinstall_cmds |
| 13825 | postuninstall_cmds=$lt_postuninstall_cmds |
| 13826 | |
| 13827 | # Commands used to build a loadable module (assumed same as above if empty) |
| 13828 | module_cmds=$lt_module_cmds_CXX |
| 13829 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 13830 | |
| 13831 | # Commands to strip libraries. |
| 13832 | old_striplib=$lt_old_striplib |
| 13833 | striplib=$lt_striplib |
| 13834 | |
| 13835 | # Dependencies to place before the objects being linked to create a |
| 13836 | # shared library. |
| 13837 | predep_objects=$lt_predep_objects_CXX |
| 13838 | |
| 13839 | # Dependencies to place after the objects being linked to create a |
| 13840 | # shared library. |
| 13841 | postdep_objects=$lt_postdep_objects_CXX |
| 13842 | |
| 13843 | # Dependencies to place before the objects being linked to create a |
| 13844 | # shared library. |
| 13845 | predeps=$lt_predeps_CXX |
| 13846 | |
| 13847 | # Dependencies to place after the objects being linked to create a |
| 13848 | # shared library. |
| 13849 | postdeps=$lt_postdeps_CXX |
| 13850 | |
| 13851 | # The library search path used internally by the compiler when linking |
| 13852 | # a shared library. |
| 13853 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 13854 | |
| 13855 | # Method to check whether dependent libraries are shared objects. |
| 13856 | deplibs_check_method=$lt_deplibs_check_method |
| 13857 | |
| 13858 | # Command to use when deplibs_check_method == file_magic. |
| 13859 | file_magic_cmd=$lt_file_magic_cmd |
| 13860 | |
| 13861 | # Flag that allows shared libraries with undefined symbols to be built. |
| 13862 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 13863 | |
| 13864 | # Flag that forces no undefined symbols. |
| 13865 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 13866 | |
| 13867 | # Commands used to finish a libtool library installation in a directory. |
| 13868 | finish_cmds=$lt_finish_cmds |
| 13869 | |
| 13870 | # Same as above, but a single script fragment to be evaled but not shown. |
| 13871 | finish_eval=$lt_finish_eval |
| 13872 | |
| 13873 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 13874 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 13875 | |
| 13876 | # Transform the output of nm in a proper C declaration |
| 13877 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 13878 | |
| 13879 | # Transform the output of nm in a C name address pair |
| 13880 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 13881 | |
| 13882 | # This is the shared library runtime path variable. |
| 13883 | runpath_var=$runpath_var |
| 13884 | |
| 13885 | # This is the shared library path variable. |
| 13886 | shlibpath_var=$shlibpath_var |
| 13887 | |
| 13888 | # Is shlibpath searched before the hard-coded library search path? |
| 13889 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 13890 | |
| 13891 | # How to hardcode a shared library path into an executable. |
| 13892 | hardcode_action=$hardcode_action_CXX |
| 13893 | |
| 13894 | # Whether we should hardcode library paths into libraries. |
| 13895 | hardcode_into_libs=$hardcode_into_libs |
| 13896 | |
| 13897 | # Flag to hardcode \$libdir into a binary during linking. |
| 13898 | # This must work even if \$libdir does not exist. |
| 13899 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 13900 | |
| 13901 | # If ld is used when linking, flag to hardcode \$libdir into |
| 13902 | # a binary during linking. This must work even if \$libdir does |
| 13903 | # not exist. |
| 13904 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 13905 | |
| 13906 | # Whether we need a single -rpath flag with a separated argument. |
| 13907 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 13908 | |
| 13909 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 13910 | # resulting binary. |
| 13911 | hardcode_direct=$hardcode_direct_CXX |
| 13912 | |
| 13913 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 13914 | # resulting binary. |
| 13915 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 13916 | |
| 13917 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 13918 | # the resulting binary. |
| 13919 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 13920 | |
| 13921 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 13922 | # and all subsequent libraries and executables linked against it. |
| 13923 | hardcode_automatic=$hardcode_automatic_CXX |
| 13924 | |
| 13925 | # Variables whose values should be saved in libtool wrapper scripts and |
| 13926 | # restored at relink time. |
| 13927 | variables_saved_for_relink="$variables_saved_for_relink" |
| 13928 | |
| 13929 | # Whether libtool must link a program against all its dependency libraries. |
| 13930 | link_all_deplibs=$link_all_deplibs_CXX |
| 13931 | |
| 13932 | # Compile-time system search path for libraries |
| 13933 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 13934 | |
| 13935 | # Run-time system search path for libraries |
| 13936 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 13937 | |
| 13938 | # Fix the shell variable \$srcfile for the compiler. |
| 13939 | fix_srcfile_path="$fix_srcfile_path_CXX" |
| 13940 | |
| 13941 | # Set to yes if exported symbols are required. |
| 13942 | always_export_symbols=$always_export_symbols_CXX |
| 13943 | |
| 13944 | # The commands to list exported symbols. |
| 13945 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 13946 | |
| 13947 | # The commands to extract the exported symbol list from a shared archive. |
| 13948 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 13949 | |
| 13950 | # Symbols that should not be listed in the preloaded symbols. |
| 13951 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 13952 | |
| 13953 | # Symbols that must always be exported. |
| 13954 | include_expsyms=$lt_include_expsyms_CXX |
| 13955 | |
| 13956 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 13957 | |
| 13958 | __EOF__ |
| 13959 | |
| 13960 | |
| 13961 | else |
| 13962 | # If there is no Makefile yet, we rely on a make rule to execute |
| 13963 | # `config.status --recheck' to rerun these tests and create the |
| 13964 | # libtool script then. |
| 13965 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 13966 | if test -f "$ltmain_in"; then |
| 13967 | test -f Makefile && make "$ltmain" |
| 13968 | fi |
| 13969 | fi |
| 13970 | |
| 13971 | |
| 13972 | ac_ext=c |
| 13973 | ac_cpp='$CPP $CPPFLAGS' |
| 13974 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13975 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13976 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 13977 | |
| 13978 | CC=$lt_save_CC |
| 13979 | LDCXX=$LD |
| 13980 | LD=$lt_save_LD |
| 13981 | GCC=$lt_save_GCC |
| 13982 | with_gnu_ldcxx=$with_gnu_ld |
| 13983 | with_gnu_ld=$lt_save_with_gnu_ld |
| 13984 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 13985 | lt_cv_path_LD=$lt_save_path_LD |
| 13986 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 13987 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 13988 | |
| 13989 | else |
| 13990 | tagname="" |
| 13991 | fi |
| 13992 | ;; |
| 13993 | |
| 13994 | F77) |
| 13995 | if test -n "$F77" && test "X$F77" != "Xno"; then |
| 13996 | |
| 13997 | ac_ext=f |
| 13998 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 13999 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14000 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 14001 | |
| 14002 | |
| 14003 | archive_cmds_need_lc_F77=no |
| 14004 | allow_undefined_flag_F77= |
| 14005 | always_export_symbols_F77=no |
| 14006 | archive_expsym_cmds_F77= |
| 14007 | export_dynamic_flag_spec_F77= |
| 14008 | hardcode_direct_F77=no |
| 14009 | hardcode_libdir_flag_spec_F77= |
| 14010 | hardcode_libdir_flag_spec_ld_F77= |
| 14011 | hardcode_libdir_separator_F77= |
| 14012 | hardcode_minus_L_F77=no |
| 14013 | hardcode_automatic_F77=no |
| 14014 | module_cmds_F77= |
| 14015 | module_expsym_cmds_F77= |
| 14016 | link_all_deplibs_F77=unknown |
| 14017 | old_archive_cmds_F77=$old_archive_cmds |
| 14018 | no_undefined_flag_F77= |
| 14019 | whole_archive_flag_spec_F77= |
| 14020 | enable_shared_with_static_runtimes_F77=no |
| 14021 | |
| 14022 | # Source file extension for f77 test sources. |
| 14023 | ac_ext=f |
| 14024 | |
| 14025 | # Object file extension for compiled f77 test sources. |
| 14026 | objext=o |
| 14027 | objext_F77=$objext |
| 14028 | |
| 14029 | # Code to be used in simple compile tests |
| 14030 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
| 14031 | |
| 14032 | # Code to be used in simple link tests |
| 14033 | lt_simple_link_test_code=" program t\n end\n" |
| 14034 | |
| 14035 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 14036 | |
| 14037 | # If no C compiler was specified, use CC. |
| 14038 | LTCC=${LTCC-"$CC"} |
| 14039 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 14040 | # If no C compiler flags were specified, use CFLAGS. |
| 14041 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 14042 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14043 | # Allow CC to be a program name with arguments. |
| 14044 | compiler=$CC |
| 14045 | |
| 14046 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 14047 | # save warnings/boilerplate of simple test code |
| 14048 | ac_outfile=conftest.$ac_objext |
| 14049 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 14050 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14051 | _lt_compiler_boilerplate=`cat conftest.err` |
| 14052 | $rm conftest* |
| 14053 | |
| 14054 | ac_outfile=conftest.$ac_objext |
| 14055 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 14056 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14057 | _lt_linker_boilerplate=`cat conftest.err` |
| 14058 | $rm conftest* |
| 14059 | |
| 14060 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14061 | # Allow CC to be a program name with arguments. |
| 14062 | lt_save_CC="$CC" |
| 14063 | CC=${F77-"f77"} |
| 14064 | compiler=$CC |
| 14065 | compiler_F77=$CC |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 14066 | for cc_temp in $compiler""; do |
| 14067 | case $cc_temp in |
| 14068 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 14069 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 14070 | \-*) ;; |
| 14071 | *) break;; |
| 14072 | esac |
| 14073 | done |
| 14074 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 14075 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14076 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14077 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 14078 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
| 14079 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 14080 | echo "${ECHO_T}$can_build_shared" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14081 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14082 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 14083 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14084 | test "$can_build_shared" = "no" && enable_shared=no |
| 14085 | |
| 14086 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 14087 | # are all built from PIC. |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 14088 | case $host_os in |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14089 | aix3*) |
| 14090 | test "$enable_shared" = yes && enable_static=no |
| 14091 | if test -n "$RANLIB"; then |
| 14092 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 14093 | postinstall_cmds='$RANLIB $lib' |
| 14094 | fi |
| 14095 | ;; |
| 14096 | aix4* | aix5*) |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 14097 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 14098 | test "$enable_shared" = yes && enable_static=no |
| 14099 | fi |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14100 | ;; |
| 14101 | esac |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14102 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 14103 | echo "${ECHO_T}$enable_shared" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14104 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14105 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 14106 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14107 | # Make sure either enable_shared or enable_static is yes. |
| 14108 | test "$enable_shared" = yes || enable_static=yes |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14109 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 14110 | echo "${ECHO_T}$enable_static" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14111 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14112 | GCC_F77="$G77" |
| 14113 | LD_F77="$LD" |
| 14114 | |
| 14115 | lt_prog_compiler_wl_F77= |
| 14116 | lt_prog_compiler_pic_F77= |
| 14117 | lt_prog_compiler_static_F77= |
| 14118 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14119 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 14120 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14121 | |
| 14122 | if test "$GCC" = yes; then |
| 14123 | lt_prog_compiler_wl_F77='-Wl,' |
| 14124 | lt_prog_compiler_static_F77='-static' |
| 14125 | |
| 14126 | case $host_os in |
| 14127 | aix*) |
| 14128 | # All AIX code is PIC. |
| 14129 | if test "$host_cpu" = ia64; then |
| 14130 | # AIX 5 now supports IA64 processor |
| 14131 | lt_prog_compiler_static_F77='-Bstatic' |
| 14132 | fi |
| 14133 | ;; |
| 14134 | |
| 14135 | amigaos*) |
| 14136 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 14137 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 14138 | # like `-m68040'. |
| 14139 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
| 14140 | ;; |
| 14141 | |
| 14142 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 14143 | # PIC is the default for these OSes. |
| 14144 | ;; |
| 14145 | |
| 14146 | mingw* | pw32* | os2*) |
| 14147 | # This hack is so that the source file can tell whether it is being |
| 14148 | # built for inclusion in a dll (and should export symbols for example). |
| 14149 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 14150 | ;; |
| 14151 | |
| 14152 | darwin* | rhapsody*) |
| 14153 | # PIC is the default on this platform |
| 14154 | # Common symbols not allowed in MH_DYLIB files |
| 14155 | lt_prog_compiler_pic_F77='-fno-common' |
| 14156 | ;; |
| 14157 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 14158 | interix3*) |
| 14159 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 14160 | # Instead, we relocate shared libraries at runtime. |
| 14161 | ;; |
| 14162 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14163 | msdosdjgpp*) |
| 14164 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 14165 | # on systems that don't support them. |
| 14166 | lt_prog_compiler_can_build_shared_F77=no |
| 14167 | enable_shared=no |
| 14168 | ;; |
| 14169 | |
| 14170 | sysv4*MP*) |
| 14171 | if test -d /usr/nec; then |
| 14172 | lt_prog_compiler_pic_F77=-Kconform_pic |
| 14173 | fi |
| 14174 | ;; |
| 14175 | |
| 14176 | hpux*) |
| 14177 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14178 | # not for PA HP-UX. |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 14179 | case $host_cpu in |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14180 | hppa*64*|ia64*) |
| 14181 | # +Z the default |
| 14182 | ;; |
| 14183 | *) |
| 14184 | lt_prog_compiler_pic_F77='-fPIC' |
| 14185 | ;; |
| 14186 | esac |
| 14187 | ;; |
| 14188 | |
| 14189 | *) |
| 14190 | lt_prog_compiler_pic_F77='-fPIC' |
| 14191 | ;; |
| 14192 | esac |
| 14193 | else |
| 14194 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 14195 | case $host_os in |
| 14196 | aix*) |
| 14197 | lt_prog_compiler_wl_F77='-Wl,' |
| 14198 | if test "$host_cpu" = ia64; then |
| 14199 | # AIX 5 now supports IA64 processor |
| 14200 | lt_prog_compiler_static_F77='-Bstatic' |
| 14201 | else |
| 14202 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
| 14203 | fi |
| 14204 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 14205 | darwin*) |
| 14206 | # PIC is the default on this platform |
| 14207 | # Common symbols not allowed in MH_DYLIB files |
| 14208 | case $cc_basename in |
| 14209 | xlc*) |
| 14210 | lt_prog_compiler_pic_F77='-qnocommon' |
| 14211 | lt_prog_compiler_wl_F77='-Wl,' |
| 14212 | ;; |
| 14213 | esac |
| 14214 | ;; |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14215 | |
| 14216 | mingw* | pw32* | os2*) |
| 14217 | # This hack is so that the source file can tell whether it is being |
| 14218 | # built for inclusion in a dll (and should export symbols for example). |
| 14219 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 14220 | ;; |
| 14221 | |
| 14222 | hpux9* | hpux10* | hpux11*) |
| 14223 | lt_prog_compiler_wl_F77='-Wl,' |
| 14224 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14225 | # not for PA HP-UX. |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 14226 | case $host_cpu in |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14227 | hppa*64*|ia64*) |
| 14228 | # +Z the default |
| 14229 | ;; |
| 14230 | *) |
| 14231 | lt_prog_compiler_pic_F77='+Z' |
| 14232 | ;; |
| 14233 | esac |
| 14234 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 14235 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
| 14236 | ;; |
| 14237 | |
| 14238 | irix5* | irix6* | nonstopux*) |
| 14239 | lt_prog_compiler_wl_F77='-Wl,' |
| 14240 | # PIC (with -KPIC) is the default. |
| 14241 | lt_prog_compiler_static_F77='-non_shared' |
| 14242 | ;; |
| 14243 | |
| 14244 | newsos6) |
| 14245 | lt_prog_compiler_pic_F77='-KPIC' |
| 14246 | lt_prog_compiler_static_F77='-Bstatic' |
| 14247 | ;; |
| 14248 | |
| 14249 | linux*) |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 14250 | case $cc_basename in |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14251 | icc* | ecc*) |
| 14252 | lt_prog_compiler_wl_F77='-Wl,' |
| 14253 | lt_prog_compiler_pic_F77='-KPIC' |
| 14254 | lt_prog_compiler_static_F77='-static' |
| 14255 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 14256 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 14257 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 14258 | # which looks to be a dead project) |
| 14259 | lt_prog_compiler_wl_F77='-Wl,' |
| 14260 | lt_prog_compiler_pic_F77='-fpic' |
| 14261 | lt_prog_compiler_static_F77='-Bstatic' |
| 14262 | ;; |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14263 | ccc*) |
| 14264 | lt_prog_compiler_wl_F77='-Wl,' |
| 14265 | # All Alpha code is PIC. |
| 14266 | lt_prog_compiler_static_F77='-non_shared' |
| 14267 | ;; |
| 14268 | esac |
| 14269 | ;; |
| 14270 | |
| 14271 | osf3* | osf4* | osf5*) |
| 14272 | lt_prog_compiler_wl_F77='-Wl,' |
| 14273 | # All OSF/1 code is PIC. |
| 14274 | lt_prog_compiler_static_F77='-non_shared' |
| 14275 | ;; |
| 14276 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14277 | solaris*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14278 | lt_prog_compiler_pic_F77='-KPIC' |
| 14279 | lt_prog_compiler_static_F77='-Bstatic' |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 14280 | case $cc_basename in |
| 14281 | f77* | f90* | f95*) |
| 14282 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
| 14283 | *) |
| 14284 | lt_prog_compiler_wl_F77='-Wl,';; |
| 14285 | esac |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14286 | ;; |
| 14287 | |
| 14288 | sunos4*) |
| 14289 | lt_prog_compiler_wl_F77='-Qoption ld ' |
| 14290 | lt_prog_compiler_pic_F77='-PIC' |
| 14291 | lt_prog_compiler_static_F77='-Bstatic' |
| 14292 | ;; |
| 14293 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 14294 | sysv4 | sysv4.2uw2* | sysv4.3*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14295 | lt_prog_compiler_wl_F77='-Wl,' |
| 14296 | lt_prog_compiler_pic_F77='-KPIC' |
| 14297 | lt_prog_compiler_static_F77='-Bstatic' |
| 14298 | ;; |
| 14299 | |
| 14300 | sysv4*MP*) |
| 14301 | if test -d /usr/nec ;then |
| 14302 | lt_prog_compiler_pic_F77='-Kconform_pic' |
| 14303 | lt_prog_compiler_static_F77='-Bstatic' |
| 14304 | fi |
| 14305 | ;; |
| 14306 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 14307 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 14308 | lt_prog_compiler_wl_F77='-Wl,' |
| 14309 | lt_prog_compiler_pic_F77='-KPIC' |
| 14310 | lt_prog_compiler_static_F77='-Bstatic' |
| 14311 | ;; |
| 14312 | |
| 14313 | unicos*) |
| 14314 | lt_prog_compiler_wl_F77='-Wl,' |
| 14315 | lt_prog_compiler_can_build_shared_F77=no |
| 14316 | ;; |
| 14317 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14318 | uts4*) |
| 14319 | lt_prog_compiler_pic_F77='-pic' |
| 14320 | lt_prog_compiler_static_F77='-Bstatic' |
| 14321 | ;; |
| 14322 | |
| 14323 | *) |
| 14324 | lt_prog_compiler_can_build_shared_F77=no |
| 14325 | ;; |
| 14326 | esac |
| 14327 | fi |
| 14328 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14329 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
| 14330 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14331 | |
| 14332 | # |
| 14333 | # Check to make sure the PIC flag actually works. |
| 14334 | # |
| 14335 | if test -n "$lt_prog_compiler_pic_F77"; then |
| 14336 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14337 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
| 14338 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14339 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
| 14340 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14341 | else |
| 14342 | lt_prog_compiler_pic_works_F77=no |
| 14343 | ac_outfile=conftest.$ac_objext |
| 14344 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14345 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
| 14346 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14347 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14348 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14349 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14350 | # The option is referenced via a variable to avoid confusing sed. |
| 14351 | lt_compile=`echo "$ac_compile" | $SED \ |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 14352 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14353 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14354 | -e 's:$: $lt_compiler_flag:'` |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 14355 | (eval echo "\"\$as_me:14355: $lt_compile\"" >&5) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14356 | (eval "$lt_compile" 2>conftest.err) |
| 14357 | ac_status=$? |
| 14358 | cat conftest.err >&5 |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 14359 | echo "$as_me:14359: \$? = $ac_status" >&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14360 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14361 | # The compiler can only warn and ignore the option if not recognized |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 14362 | # So say no if there are warnings other than the usual output. |
| 14363 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 14364 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14365 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14366 | lt_prog_compiler_pic_works_F77=yes |
| 14367 | fi |
| 14368 | fi |
| 14369 | $rm conftest* |
| 14370 | |
| 14371 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14372 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
| 14373 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14374 | |
| 14375 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
| 14376 | case $lt_prog_compiler_pic_F77 in |
| 14377 | "" | " "*) ;; |
| 14378 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
| 14379 | esac |
| 14380 | else |
| 14381 | lt_prog_compiler_pic_F77= |
| 14382 | lt_prog_compiler_can_build_shared_F77=no |
| 14383 | fi |
| 14384 | |
| 14385 | fi |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 14386 | case $host_os in |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14387 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 14388 | *djgpp*) |
| 14389 | lt_prog_compiler_pic_F77= |
| 14390 | ;; |
| 14391 | *) |
| 14392 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
| 14393 | ;; |
| 14394 | esac |
| 14395 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 14396 | # |
| 14397 | # Check to make sure the static flag actually works. |
| 14398 | # |
| 14399 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
| 14400 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 14401 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 14402 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
| 14403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14404 | else |
| 14405 | lt_prog_compiler_static_works_F77=no |
| 14406 | save_LDFLAGS="$LDFLAGS" |
| 14407 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 14408 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 14409 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 14410 | # The linker can only warn and ignore the option if not recognized |
| 14411 | # So say no if there are warnings |
| 14412 | if test -s conftest.err; then |
| 14413 | # Append any errors to the config.log. |
| 14414 | cat conftest.err 1>&5 |
| 14415 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 14416 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14417 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 14418 | lt_prog_compiler_static_works_F77=yes |
| 14419 | fi |
| 14420 | else |
| 14421 | lt_prog_compiler_static_works_F77=yes |
| 14422 | fi |
| 14423 | fi |
| 14424 | $rm conftest* |
| 14425 | LDFLAGS="$save_LDFLAGS" |
| 14426 | |
| 14427 | fi |
| 14428 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
| 14429 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } |
| 14430 | |
| 14431 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
| 14432 | : |
| 14433 | else |
| 14434 | lt_prog_compiler_static_F77= |
| 14435 | fi |
| 14436 | |
| 14437 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14438 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 14439 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14440 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
| 14441 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14442 | else |
| 14443 | lt_cv_prog_compiler_c_o_F77=no |
| 14444 | $rm -r conftest 2>/dev/null |
| 14445 | mkdir conftest |
| 14446 | cd conftest |
| 14447 | mkdir out |
| 14448 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14449 | |
| 14450 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 14451 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14452 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14453 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14454 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14455 | lt_compile=`echo "$ac_compile" | $SED \ |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 14456 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14457 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14458 | -e 's:$: $lt_compiler_flag:'` |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 14459 | (eval echo "\"\$as_me:14459: $lt_compile\"" >&5) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14460 | (eval "$lt_compile" 2>out/conftest.err) |
| 14461 | ac_status=$? |
| 14462 | cat out/conftest.err >&5 |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 14463 | echo "$as_me:14463: \$? = $ac_status" >&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14464 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 14465 | then |
| 14466 | # The compiler can only warn and ignore the option if not recognized |
| 14467 | # So say no if there are warnings |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 14468 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 14469 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 14470 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14471 | lt_cv_prog_compiler_c_o_F77=yes |
| 14472 | fi |
| 14473 | fi |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 14474 | chmod u+w . 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14475 | $rm conftest* |
| 14476 | # SGI C++ compiler will create directory out/ii_files/ for |
| 14477 | # template instantiation |
| 14478 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 14479 | $rm out/* && rmdir out |
| 14480 | cd .. |
| 14481 | rmdir conftest |
| 14482 | $rm conftest* |
| 14483 | |
| 14484 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14485 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
| 14486 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14487 | |
| 14488 | |
| 14489 | hard_links="nottested" |
| 14490 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
| 14491 | # do not overwrite the value of need_locks provided by the user |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14492 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 14493 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14494 | hard_links=yes |
| 14495 | $rm conftest* |
| 14496 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 14497 | touch conftest.a |
| 14498 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 14499 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14500 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 14501 | echo "${ECHO_T}$hard_links" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14502 | if test "$hard_links" = no; then |
| 14503 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 14504 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 14505 | need_locks=warn |
| 14506 | fi |
| 14507 | else |
| 14508 | need_locks=no |
| 14509 | fi |
| 14510 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14511 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 14512 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14513 | |
| 14514 | runpath_var= |
| 14515 | allow_undefined_flag_F77= |
| 14516 | enable_shared_with_static_runtimes_F77=no |
| 14517 | archive_cmds_F77= |
| 14518 | archive_expsym_cmds_F77= |
| 14519 | old_archive_From_new_cmds_F77= |
| 14520 | old_archive_from_expsyms_cmds_F77= |
| 14521 | export_dynamic_flag_spec_F77= |
| 14522 | whole_archive_flag_spec_F77= |
| 14523 | thread_safe_flag_spec_F77= |
| 14524 | hardcode_libdir_flag_spec_F77= |
| 14525 | hardcode_libdir_flag_spec_ld_F77= |
| 14526 | hardcode_libdir_separator_F77= |
| 14527 | hardcode_direct_F77=no |
| 14528 | hardcode_minus_L_F77=no |
| 14529 | hardcode_shlibpath_var_F77=unsupported |
| 14530 | link_all_deplibs_F77=unknown |
| 14531 | hardcode_automatic_F77=no |
| 14532 | module_cmds_F77= |
| 14533 | module_expsym_cmds_F77= |
| 14534 | always_export_symbols_F77=no |
| 14535 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 14536 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 14537 | # included in the symbol list |
| 14538 | include_expsyms_F77= |
| 14539 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 14540 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 14541 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 14542 | # as well as any symbol that contains `d'. |
| 14543 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
| 14544 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 14545 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 14546 | # the symbol is explicitly referenced. Since portable code cannot |
| 14547 | # rely on this symbol name, it's probably fine to never include it in |
| 14548 | # preloaded symbol tables. |
| 14549 | extract_expsyms_cmds= |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 14550 | # Just being paranoid about ensuring that cc_basename is set. |
| 14551 | for cc_temp in $compiler""; do |
| 14552 | case $cc_temp in |
| 14553 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 14554 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 14555 | \-*) ;; |
| 14556 | *) break;; |
| 14557 | esac |
| 14558 | done |
| 14559 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14560 | |
| 14561 | case $host_os in |
| 14562 | cygwin* | mingw* | pw32*) |
| 14563 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 14564 | # When not using gcc, we currently assume that we are using |
| 14565 | # Microsoft Visual C++. |
| 14566 | if test "$GCC" != yes; then |
| 14567 | with_gnu_ld=no |
| 14568 | fi |
| 14569 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 14570 | interix*) |
| 14571 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 14572 | with_gnu_ld=yes |
| 14573 | ;; |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14574 | openbsd*) |
| 14575 | with_gnu_ld=no |
| 14576 | ;; |
| 14577 | esac |
| 14578 | |
| 14579 | ld_shlibs_F77=yes |
| 14580 | if test "$with_gnu_ld" = yes; then |
| 14581 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 14582 | wlarc='${wl}' |
| 14583 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 14584 | # Set some defaults for GNU ld with shared library support. These |
| 14585 | # are reset later if shared libraries are not supported. Putting them |
| 14586 | # here allows them to be overridden if necessary. |
| 14587 | runpath_var=LD_RUN_PATH |
| 14588 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
| 14589 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
| 14590 | # ancient GNU ld didn't support --whole-archive et. al. |
| 14591 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 14592 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 14593 | else |
| 14594 | whole_archive_flag_spec_F77= |
| 14595 | fi |
| 14596 | supports_anon_versioning=no |
| 14597 | case `$LD -v 2>/dev/null` in |
| 14598 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 14599 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 14600 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 14601 | *\ 2.11.*) ;; # other 2.11 versions |
| 14602 | *) supports_anon_versioning=yes ;; |
| 14603 | esac |
| 14604 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14605 | # See if GNU ld supports shared libraries. |
| 14606 | case $host_os in |
| 14607 | aix3* | aix4* | aix5*) |
| 14608 | # On AIX/PPC, the GNU linker is very broken |
| 14609 | if test "$host_cpu" != ia64; then |
| 14610 | ld_shlibs_F77=no |
| 14611 | cat <<EOF 1>&2 |
| 14612 | |
| 14613 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 14614 | *** to be unable to reliably create shared libraries on AIX. |
| 14615 | *** Therefore, libtool is disabling shared libraries support. If you |
| 14616 | *** really care for shared libraries, you may want to modify your PATH |
| 14617 | *** so that a non-GNU linker is found, and then restart. |
| 14618 | |
| 14619 | EOF |
| 14620 | fi |
| 14621 | ;; |
| 14622 | |
| 14623 | amigaos*) |
| 14624 | 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)' |
| 14625 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14626 | hardcode_minus_L_F77=yes |
| 14627 | |
| 14628 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 14629 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 14630 | # to version 4, is to share data among multiple programs linked |
| 14631 | # with the same dynamic library. Since this doesn't match the |
| 14632 | # behavior of shared libraries on other platforms, we can't use |
| 14633 | # them. |
| 14634 | ld_shlibs_F77=no |
| 14635 | ;; |
| 14636 | |
| 14637 | beos*) |
| 14638 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14639 | allow_undefined_flag_F77=unsupported |
| 14640 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 14641 | # support --undefined. This deserves some investigation. FIXME |
| 14642 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14643 | else |
| 14644 | ld_shlibs_F77=no |
| 14645 | fi |
| 14646 | ;; |
| 14647 | |
| 14648 | cygwin* | mingw* | pw32*) |
| 14649 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
| 14650 | # as there is no search path for DLLs. |
| 14651 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14652 | allow_undefined_flag_F77=unsupported |
| 14653 | always_export_symbols_F77=no |
| 14654 | enable_shared_with_static_runtimes_F77=yes |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 14655 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14656 | |
| 14657 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 14658 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14659 | # If the export-symbols file already is a .def file (1st line |
| 14660 | # is EXPORTS), use it as is; otherwise, prepend... |
| 14661 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 14662 | cp $export_symbols $output_objdir/$soname.def; |
| 14663 | else |
| 14664 | echo EXPORTS > $output_objdir/$soname.def; |
| 14665 | cat $export_symbols >> $output_objdir/$soname.def; |
| 14666 | fi~ |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 14667 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14668 | else |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 14669 | ld_shlibs_F77=no |
| 14670 | fi |
| 14671 | ;; |
| 14672 | |
| 14673 | interix3*) |
| 14674 | hardcode_direct_F77=no |
| 14675 | hardcode_shlibpath_var_F77=no |
| 14676 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 14677 | export_dynamic_flag_spec_F77='${wl}-E' |
| 14678 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 14679 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 14680 | # default) and relocated if they conflict, which is a slow very memory |
| 14681 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 14682 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 14683 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 14684 | archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 14685 | archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 14686 | ;; |
| 14687 | |
| 14688 | linux*) |
| 14689 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14690 | tmp_addflag= |
| 14691 | case $cc_basename,$host_cpu in |
| 14692 | pgcc*) # Portland Group C compiler |
| 14693 | whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
| 14694 | tmp_addflag=' $pic_flag' |
| 14695 | ;; |
| 14696 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 14697 | whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
| 14698 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 14699 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 14700 | tmp_addflag=' -i_dynamic' ;; |
| 14701 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 14702 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 14703 | ifc* | ifort*) # Intel Fortran compiler |
| 14704 | tmp_addflag=' -nofor_main' ;; |
| 14705 | esac |
| 14706 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14707 | |
| 14708 | if test $supports_anon_versioning = yes; then |
| 14709 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 14710 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 14711 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 14712 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 14713 | fi |
| 14714 | else |
| 14715 | ld_shlibs_F77=no |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14716 | fi |
| 14717 | ;; |
| 14718 | |
| 14719 | netbsd*) |
| 14720 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 14721 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 14722 | wlarc= |
| 14723 | else |
| 14724 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14725 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 14726 | fi |
| 14727 | ;; |
| 14728 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 14729 | solaris*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14730 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 14731 | ld_shlibs_F77=no |
| 14732 | cat <<EOF 1>&2 |
| 14733 | |
| 14734 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 14735 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 14736 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 14737 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 14738 | *** your PATH or compiler configuration so that the native linker is |
| 14739 | *** used, and then restart. |
| 14740 | |
| 14741 | EOF |
| 14742 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14743 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14744 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 14745 | else |
| 14746 | ld_shlibs_F77=no |
| 14747 | fi |
| 14748 | ;; |
| 14749 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 14750 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 14751 | case `$LD -v 2>&1` in |
| 14752 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 14753 | ld_shlibs_F77=no |
| 14754 | cat <<_LT_EOF 1>&2 |
| 14755 | |
| 14756 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 14757 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 14758 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 14759 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 14760 | *** your PATH or compiler configuration so that the native linker is |
| 14761 | *** used, and then restart. |
| 14762 | |
| 14763 | _LT_EOF |
| 14764 | ;; |
| 14765 | *) |
| 14766 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14767 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 14768 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 14769 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 14770 | else |
| 14771 | ld_shlibs_F77=no |
| 14772 | fi |
| 14773 | ;; |
| 14774 | esac |
| 14775 | ;; |
| 14776 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14777 | sunos4*) |
| 14778 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 14779 | wlarc= |
| 14780 | hardcode_direct_F77=yes |
| 14781 | hardcode_shlibpath_var_F77=no |
| 14782 | ;; |
| 14783 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14784 | *) |
| 14785 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14786 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14787 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 14788 | else |
| 14789 | ld_shlibs_F77=no |
| 14790 | fi |
| 14791 | ;; |
| 14792 | esac |
| 14793 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 14794 | if test "$ld_shlibs_F77" = no; then |
| 14795 | runpath_var= |
| 14796 | hardcode_libdir_flag_spec_F77= |
| 14797 | export_dynamic_flag_spec_F77= |
| 14798 | whole_archive_flag_spec_F77= |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14799 | fi |
| 14800 | else |
| 14801 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 14802 | case $host_os in |
| 14803 | aix3*) |
| 14804 | allow_undefined_flag_F77=unsupported |
| 14805 | always_export_symbols_F77=yes |
| 14806 | 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' |
| 14807 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 14808 | # are no directories specified by -L. |
| 14809 | hardcode_minus_L_F77=yes |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 14810 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14811 | # Neither direct hardcoding nor static linking is supported with a |
| 14812 | # broken collect2. |
| 14813 | hardcode_direct_F77=unsupported |
| 14814 | fi |
| 14815 | ;; |
| 14816 | |
| 14817 | aix4* | aix5*) |
| 14818 | if test "$host_cpu" = ia64; then |
| 14819 | # On IA64, the linker does run time linking by default, so we don't |
| 14820 | # have to do anything special. |
| 14821 | aix_use_runtimelinking=no |
| 14822 | exp_sym_flag='-Bexport' |
| 14823 | no_entry_flag="" |
| 14824 | else |
| 14825 | # If we're using GNU nm, then we don't want the "-C" option. |
| 14826 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 14827 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 14828 | 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' |
| 14829 | else |
| 14830 | 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' |
| 14831 | fi |
| 14832 | aix_use_runtimelinking=no |
| 14833 | |
| 14834 | # Test if we are trying to use run time linking or normal |
| 14835 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 14836 | # need to do runtime linking. |
| 14837 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 14838 | for ld_flag in $LDFLAGS; do |
| 14839 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 14840 | aix_use_runtimelinking=yes |
| 14841 | break |
| 14842 | fi |
| 14843 | done |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 14844 | ;; |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14845 | esac |
| 14846 | |
| 14847 | exp_sym_flag='-bexport' |
| 14848 | no_entry_flag='-bnoentry' |
| 14849 | fi |
| 14850 | |
| 14851 | # When large executables or shared objects are built, AIX ld can |
| 14852 | # have problems creating the table of contents. If linking a library |
| 14853 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 14854 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 14855 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 14856 | |
| 14857 | archive_cmds_F77='' |
| 14858 | hardcode_direct_F77=yes |
| 14859 | hardcode_libdir_separator_F77=':' |
| 14860 | link_all_deplibs_F77=yes |
| 14861 | |
| 14862 | if test "$GCC" = yes; then |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 14863 | case $host_os in aix4.[012]|aix4.[012].*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14864 | # We only want to do this on AIX 4.2 and lower, the check |
| 14865 | # below for broken collect2 doesn't work under 4.3+ |
| 14866 | collect2name=`${CC} -print-prog-name=collect2` |
| 14867 | if test -f "$collect2name" && \ |
| 14868 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 14869 | then |
| 14870 | # We have reworked collect2 |
| 14871 | hardcode_direct_F77=yes |
| 14872 | else |
| 14873 | # We have old collect2 |
| 14874 | hardcode_direct_F77=unsupported |
| 14875 | # It fails to find uninstalled libraries when the uninstalled |
| 14876 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 14877 | # to unsupported forces relinking |
| 14878 | hardcode_minus_L_F77=yes |
| 14879 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14880 | hardcode_libdir_separator_F77= |
| 14881 | fi |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 14882 | ;; |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14883 | esac |
| 14884 | shared_flag='-shared' |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 14885 | if test "$aix_use_runtimelinking" = yes; then |
| 14886 | shared_flag="$shared_flag "'${wl}-G' |
| 14887 | fi |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14888 | else |
| 14889 | # not using gcc |
| 14890 | if test "$host_cpu" = ia64; then |
| 14891 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 14892 | # chokes on -Wl,-G. The following line is correct: |
| 14893 | shared_flag='-G' |
| 14894 | else |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 14895 | if test "$aix_use_runtimelinking" = yes; then |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14896 | shared_flag='${wl}-G' |
| 14897 | else |
| 14898 | shared_flag='${wl}-bM:SRE' |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 14899 | fi |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14900 | fi |
| 14901 | fi |
| 14902 | |
| 14903 | # It seems that -bexpall does not export symbols beginning with |
| 14904 | # underscore (_), so it is better to generate a list of symbols to export. |
| 14905 | always_export_symbols_F77=yes |
| 14906 | if test "$aix_use_runtimelinking" = yes; then |
| 14907 | # Warning - without using the other runtime loading flags (-brtl), |
| 14908 | # -berok will link without error, but may produce a broken library. |
| 14909 | allow_undefined_flag_F77='-berok' |
| 14910 | # Determine the default libpath from the value encoded in an empty executable. |
| 14911 | cat >conftest.$ac_ext <<_ACEOF |
| 14912 | program main |
| 14913 | |
| 14914 | end |
| 14915 | _ACEOF |
| 14916 | rm -f conftest.$ac_objext conftest$ac_exeext |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14917 | if { (ac_try="$ac_link" |
| 14918 | case "(($ac_try" in |
| 14919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14920 | *) ac_try_echo=$ac_try;; |
| 14921 | esac |
| 14922 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14923 | (eval "$ac_link") 2>conftest.er1 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14924 | ac_status=$? |
| 14925 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14926 | rm -f conftest.er1 |
| 14927 | cat conftest.err >&5 |
| 14928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14929 | (exit $ac_status); } && |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14930 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 14931 | { (case "(($ac_try" in |
| 14932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14933 | *) ac_try_echo=$ac_try;; |
| 14934 | esac |
| 14935 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14936 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14937 | ac_status=$? |
| 14938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14939 | (exit $ac_status); }; } && |
| 14940 | { ac_try='test -s conftest$ac_exeext' |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14941 | { (case "(($ac_try" in |
| 14942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14943 | *) ac_try_echo=$ac_try;; |
| 14944 | esac |
| 14945 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14946 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14947 | ac_status=$? |
| 14948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14949 | (exit $ac_status); }; }; then |
| 14950 | |
| 14951 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 14952 | }'` |
| 14953 | # Check for a 64-bit object if we didn't find anything. |
| 14954 | 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; } |
| 14955 | }'`; fi |
| 14956 | else |
| 14957 | echo "$as_me: failed program was:" >&5 |
| 14958 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14959 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14960 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14961 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14962 | |
| 14963 | rm -f core conftest.err conftest.$ac_objext \ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14964 | conftest$ac_exeext conftest.$ac_ext |
| 14965 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 14966 | |
| 14967 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 14968 | archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14969 | else |
| 14970 | if test "$host_cpu" = ia64; then |
| 14971 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
| 14972 | allow_undefined_flag_F77="-z nodefs" |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 14973 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14974 | else |
| 14975 | # Determine the default libpath from the value encoded in an empty executable. |
| 14976 | cat >conftest.$ac_ext <<_ACEOF |
| 14977 | program main |
| 14978 | |
| 14979 | end |
| 14980 | _ACEOF |
| 14981 | rm -f conftest.$ac_objext conftest$ac_exeext |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14982 | if { (ac_try="$ac_link" |
| 14983 | case "(($ac_try" in |
| 14984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14985 | *) ac_try_echo=$ac_try;; |
| 14986 | esac |
| 14987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14988 | (eval "$ac_link") 2>conftest.er1 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14989 | ac_status=$? |
| 14990 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14991 | rm -f conftest.er1 |
| 14992 | cat conftest.err >&5 |
| 14993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14994 | (exit $ac_status); } && |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14995 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 14996 | { (case "(($ac_try" in |
| 14997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14998 | *) ac_try_echo=$ac_try;; |
| 14999 | esac |
| 15000 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15001 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15002 | ac_status=$? |
| 15003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15004 | (exit $ac_status); }; } && |
| 15005 | { ac_try='test -s conftest$ac_exeext' |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15006 | { (case "(($ac_try" in |
| 15007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15008 | *) ac_try_echo=$ac_try;; |
| 15009 | esac |
| 15010 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15011 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15012 | ac_status=$? |
| 15013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15014 | (exit $ac_status); }; }; then |
| 15015 | |
| 15016 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15017 | }'` |
| 15018 | # Check for a 64-bit object if we didn't find anything. |
| 15019 | 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; } |
| 15020 | }'`; fi |
| 15021 | else |
| 15022 | echo "$as_me: failed program was:" >&5 |
| 15023 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15024 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15025 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15026 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15027 | |
| 15028 | rm -f core conftest.err conftest.$ac_objext \ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15029 | conftest$ac_exeext conftest.$ac_ext |
| 15030 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 15031 | |
| 15032 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 15033 | # Warning - without using the other run time loading flags, |
| 15034 | # -berok will link without error, but may produce a broken library. |
| 15035 | no_undefined_flag_F77=' ${wl}-bernotok' |
| 15036 | allow_undefined_flag_F77=' ${wl}-berok' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15037 | # Exported symbols can be pulled into shared objects from archives |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 15038 | whole_archive_flag_spec_F77='$convenience' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15039 | archive_cmds_need_lc_F77=yes |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 15040 | # This is similar to how AIX traditionally builds its shared libraries. |
| 15041 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15042 | fi |
| 15043 | fi |
| 15044 | ;; |
| 15045 | |
| 15046 | amigaos*) |
| 15047 | 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)' |
| 15048 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 15049 | hardcode_minus_L_F77=yes |
| 15050 | # see comment about different semantics on the GNU ld section |
| 15051 | ld_shlibs_F77=no |
| 15052 | ;; |
| 15053 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 15054 | bsdi[45]*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15055 | export_dynamic_flag_spec_F77=-rdynamic |
| 15056 | ;; |
| 15057 | |
| 15058 | cygwin* | mingw* | pw32*) |
| 15059 | # When not using gcc, we currently assume that we are using |
| 15060 | # Microsoft Visual C++. |
| 15061 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 15062 | # no search path for DLLs. |
| 15063 | hardcode_libdir_flag_spec_F77=' ' |
| 15064 | allow_undefined_flag_F77=unsupported |
| 15065 | # Tell ltmain to make .lib files, not .a files. |
| 15066 | libext=lib |
| 15067 | # Tell ltmain to make .dll files, not .so files. |
| 15068 | shrext_cmds=".dll" |
| 15069 | # FIXME: Setting linknames here is a bad hack. |
| 15070 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 15071 | # The linker will automatically build a .lib file if we build a DLL. |
| 15072 | old_archive_From_new_cmds_F77='true' |
| 15073 | # FIXME: Should let the user specify the lib program. |
| 15074 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 15075 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15076 | enable_shared_with_static_runtimes_F77=yes |
| 15077 | ;; |
| 15078 | |
| 15079 | darwin* | rhapsody*) |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 15080 | case $host_os in |
| 15081 | rhapsody* | darwin1.[012]) |
| 15082 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
| 15083 | ;; |
| 15084 | *) # Darwin 1.3 on |
| 15085 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 15086 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 15087 | else |
| 15088 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 15089 | 10.[012]) |
| 15090 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 15091 | ;; |
| 15092 | 10.*) |
| 15093 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
| 15094 | ;; |
| 15095 | esac |
| 15096 | fi |
| 15097 | ;; |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15098 | esac |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 15099 | archive_cmds_need_lc_F77=no |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15100 | hardcode_direct_F77=no |
| 15101 | hardcode_automatic_F77=yes |
| 15102 | hardcode_shlibpath_var_F77=unsupported |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 15103 | whole_archive_flag_spec_F77='' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15104 | link_all_deplibs_F77=yes |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 15105 | if test "$GCC" = yes ; then |
| 15106 | output_verbose_link_cmd='echo' |
| 15107 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 15108 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 15109 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 15110 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 15111 | 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}' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15112 | else |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 15113 | case $cc_basename in |
| 15114 | xlc*) |
| 15115 | output_verbose_link_cmd='echo' |
| 15116 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 15117 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 15118 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 15119 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 15120 | 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}' |
| 15121 | ;; |
| 15122 | *) |
| 15123 | ld_shlibs_F77=no |
| 15124 | ;; |
| 15125 | esac |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15126 | fi |
| 15127 | ;; |
| 15128 | |
| 15129 | dgux*) |
| 15130 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15131 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 15132 | hardcode_shlibpath_var_F77=no |
| 15133 | ;; |
| 15134 | |
| 15135 | freebsd1*) |
| 15136 | ld_shlibs_F77=no |
| 15137 | ;; |
| 15138 | |
| 15139 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 15140 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 15141 | # does not break anything, and helps significantly (at the cost of a little |
| 15142 | # extra space). |
| 15143 | freebsd2.2*) |
| 15144 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 15145 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 15146 | hardcode_direct_F77=yes |
| 15147 | hardcode_shlibpath_var_F77=no |
| 15148 | ;; |
| 15149 | |
| 15150 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 15151 | freebsd2*) |
| 15152 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15153 | hardcode_direct_F77=yes |
| 15154 | hardcode_minus_L_F77=yes |
| 15155 | hardcode_shlibpath_var_F77=no |
| 15156 | ;; |
| 15157 | |
| 15158 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 15159 | freebsd* | kfreebsd*-gnu | dragonfly*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15160 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 15161 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 15162 | hardcode_direct_F77=yes |
| 15163 | hardcode_shlibpath_var_F77=no |
| 15164 | ;; |
| 15165 | |
| 15166 | hpux9*) |
| 15167 | if test "$GCC" = yes; then |
| 15168 | 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' |
| 15169 | else |
| 15170 | 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' |
| 15171 | fi |
| 15172 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 15173 | hardcode_libdir_separator_F77=: |
| 15174 | hardcode_direct_F77=yes |
| 15175 | |
| 15176 | # hardcode_minus_L: Not really in the search PATH, |
| 15177 | # but as the default location of the library. |
| 15178 | hardcode_minus_L_F77=yes |
| 15179 | export_dynamic_flag_spec_F77='${wl}-E' |
| 15180 | ;; |
| 15181 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 15182 | hpux10*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15183 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 15184 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 15185 | else |
| 15186 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 15187 | fi |
| 15188 | if test "$with_gnu_ld" = no; then |
| 15189 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 15190 | hardcode_libdir_separator_F77=: |
| 15191 | |
| 15192 | hardcode_direct_F77=yes |
| 15193 | export_dynamic_flag_spec_F77='${wl}-E' |
| 15194 | |
| 15195 | # hardcode_minus_L: Not really in the search PATH, |
| 15196 | # but as the default location of the library. |
| 15197 | hardcode_minus_L_F77=yes |
| 15198 | fi |
| 15199 | ;; |
| 15200 | |
| 15201 | hpux11*) |
| 15202 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 15203 | case $host_cpu in |
| 15204 | hppa*64*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15205 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15206 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 15207 | ia64*) |
| 15208 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 15209 | ;; |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15210 | *) |
| 15211 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 15212 | ;; |
| 15213 | esac |
| 15214 | else |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 15215 | case $host_cpu in |
| 15216 | hppa*64*) |
| 15217 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15218 | ;; |
| 15219 | ia64*) |
| 15220 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15221 | ;; |
| 15222 | *) |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 15223 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15224 | ;; |
| 15225 | esac |
| 15226 | fi |
| 15227 | if test "$with_gnu_ld" = no; then |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 15228 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 15229 | hardcode_libdir_separator_F77=: |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15230 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 15231 | case $host_cpu in |
| 15232 | hppa*64*|ia64*) |
| 15233 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
| 15234 | hardcode_direct_F77=no |
| 15235 | hardcode_shlibpath_var_F77=no |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15236 | ;; |
| 15237 | *) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15238 | hardcode_direct_F77=yes |
| 15239 | export_dynamic_flag_spec_F77='${wl}-E' |
| 15240 | |
| 15241 | # hardcode_minus_L: Not really in the search PATH, |
| 15242 | # but as the default location of the library. |
| 15243 | hardcode_minus_L_F77=yes |
| 15244 | ;; |
| 15245 | esac |
| 15246 | fi |
| 15247 | ;; |
| 15248 | |
| 15249 | irix5* | irix6* | nonstopux*) |
| 15250 | if test "$GCC" = yes; then |
| 15251 | 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' |
| 15252 | else |
| 15253 | 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' |
| 15254 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
| 15255 | fi |
| 15256 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 15257 | hardcode_libdir_separator_F77=: |
| 15258 | link_all_deplibs_F77=yes |
| 15259 | ;; |
| 15260 | |
| 15261 | netbsd*) |
| 15262 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 15263 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 15264 | else |
| 15265 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 15266 | fi |
| 15267 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 15268 | hardcode_direct_F77=yes |
| 15269 | hardcode_shlibpath_var_F77=no |
| 15270 | ;; |
| 15271 | |
| 15272 | newsos6) |
| 15273 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15274 | hardcode_direct_F77=yes |
| 15275 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 15276 | hardcode_libdir_separator_F77=: |
| 15277 | hardcode_shlibpath_var_F77=no |
| 15278 | ;; |
| 15279 | |
| 15280 | openbsd*) |
| 15281 | hardcode_direct_F77=yes |
| 15282 | hardcode_shlibpath_var_F77=no |
| 15283 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 15284 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 15285 | archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15286 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 15287 | export_dynamic_flag_spec_F77='${wl}-E' |
| 15288 | else |
| 15289 | case $host_os in |
| 15290 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 15291 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15292 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 15293 | ;; |
| 15294 | *) |
| 15295 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 15296 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 15297 | ;; |
| 15298 | esac |
| 15299 | fi |
| 15300 | ;; |
| 15301 | |
| 15302 | os2*) |
| 15303 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 15304 | hardcode_minus_L_F77=yes |
| 15305 | allow_undefined_flag_F77=unsupported |
| 15306 | 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' |
| 15307 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 15308 | ;; |
| 15309 | |
| 15310 | osf3*) |
| 15311 | if test "$GCC" = yes; then |
| 15312 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 15313 | 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' |
| 15314 | else |
| 15315 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 15316 | 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' |
| 15317 | fi |
| 15318 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 15319 | hardcode_libdir_separator_F77=: |
| 15320 | ;; |
| 15321 | |
| 15322 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 15323 | if test "$GCC" = yes; then |
| 15324 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 15325 | 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' |
| 15326 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 15327 | else |
| 15328 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 15329 | 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' |
| 15330 | 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~ |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 15331 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15332 | |
| 15333 | # Both c and cxx compiler support -rpath directly |
| 15334 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
| 15335 | fi |
| 15336 | hardcode_libdir_separator_F77=: |
| 15337 | ;; |
| 15338 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15339 | solaris*) |
| 15340 | no_undefined_flag_F77=' -z text' |
| 15341 | if test "$GCC" = yes; then |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 15342 | wlarc='${wl}' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15343 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15344 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 15345 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 15346 | else |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 15347 | wlarc='' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15348 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15349 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 15350 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 15351 | fi |
| 15352 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 15353 | hardcode_shlibpath_var_F77=no |
| 15354 | case $host_os in |
| 15355 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 15356 | *) |
| 15357 | # The compiler driver will combine linker options so we |
| 15358 | # cannot just pass the convience library names through |
| 15359 | # without $wl, iff we do not link with $LD. |
| 15360 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 15361 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 15362 | case $wlarc in |
| 15363 | '') |
| 15364 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
| 15365 | *) |
| 15366 | whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
| 15367 | esac ;; |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15368 | esac |
| 15369 | link_all_deplibs_F77=yes |
| 15370 | ;; |
| 15371 | |
| 15372 | sunos4*) |
| 15373 | if test "x$host_vendor" = xsequent; then |
| 15374 | # Use $CC to link under sequent, because it throws in some extra .o |
| 15375 | # files that make .init and .fini sections work. |
| 15376 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15377 | else |
| 15378 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 15379 | fi |
| 15380 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 15381 | hardcode_direct_F77=yes |
| 15382 | hardcode_minus_L_F77=yes |
| 15383 | hardcode_shlibpath_var_F77=no |
| 15384 | ;; |
| 15385 | |
| 15386 | sysv4) |
| 15387 | case $host_vendor in |
| 15388 | sni) |
| 15389 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15390 | hardcode_direct_F77=yes # is this really true??? |
| 15391 | ;; |
| 15392 | siemens) |
| 15393 | ## LD is ld it makes a PLAMLIB |
| 15394 | ## CC just makes a GrossModule. |
| 15395 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 15396 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
| 15397 | hardcode_direct_F77=no |
| 15398 | ;; |
| 15399 | motorola) |
| 15400 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15401 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
| 15402 | ;; |
| 15403 | esac |
| 15404 | runpath_var='LD_RUN_PATH' |
| 15405 | hardcode_shlibpath_var_F77=no |
| 15406 | ;; |
| 15407 | |
| 15408 | sysv4.3*) |
| 15409 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15410 | hardcode_shlibpath_var_F77=no |
| 15411 | export_dynamic_flag_spec_F77='-Bexport' |
| 15412 | ;; |
| 15413 | |
| 15414 | sysv4*MP*) |
| 15415 | if test -d /usr/nec; then |
| 15416 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15417 | hardcode_shlibpath_var_F77=no |
| 15418 | runpath_var=LD_RUN_PATH |
| 15419 | hardcode_runpath_var=yes |
| 15420 | ld_shlibs_F77=yes |
| 15421 | fi |
| 15422 | ;; |
| 15423 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 15424 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 15425 | no_undefined_flag_F77='${wl}-z,text' |
| 15426 | archive_cmds_need_lc_F77=no |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15427 | hardcode_shlibpath_var_F77=no |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 15428 | runpath_var='LD_RUN_PATH' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15429 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15430 | if test "$GCC" = yes; then |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 15431 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15432 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15433 | else |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 15434 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15435 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15436 | fi |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15437 | ;; |
| 15438 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 15439 | sysv5* | sco3.2v5* | sco5v6*) |
| 15440 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 15441 | # link with -lc, and that would cause any symbols used from libc to |
| 15442 | # always be unresolved, which means just about no library would |
| 15443 | # ever link correctly. If we're not using GNU ld we use -z text |
| 15444 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 15445 | # as -z defs. |
| 15446 | no_undefined_flag_F77='${wl}-z,text' |
| 15447 | allow_undefined_flag_F77='${wl}-z,nodefs' |
| 15448 | archive_cmds_need_lc_F77=no |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15449 | hardcode_shlibpath_var_F77=no |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 15450 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 15451 | hardcode_libdir_separator_F77=':' |
| 15452 | link_all_deplibs_F77=yes |
| 15453 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15454 | runpath_var='LD_RUN_PATH' |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 15455 | |
| 15456 | if test "$GCC" = yes; then |
| 15457 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15458 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15459 | else |
| 15460 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15461 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15462 | fi |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15463 | ;; |
| 15464 | |
| 15465 | uts4*) |
| 15466 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15467 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 15468 | hardcode_shlibpath_var_F77=no |
| 15469 | ;; |
| 15470 | |
| 15471 | *) |
| 15472 | ld_shlibs_F77=no |
| 15473 | ;; |
| 15474 | esac |
| 15475 | fi |
| 15476 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15477 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
| 15478 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15479 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 15480 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15481 | # |
| 15482 | # Do we need to explicitly link libc? |
| 15483 | # |
| 15484 | case "x$archive_cmds_need_lc_F77" in |
| 15485 | x|xyes) |
| 15486 | # Assume -lc should be added |
| 15487 | archive_cmds_need_lc_F77=yes |
| 15488 | |
| 15489 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 15490 | case $archive_cmds_F77 in |
| 15491 | *'~'*) |
| 15492 | # FIXME: we may have to deal with multi-command sequences. |
| 15493 | ;; |
| 15494 | '$CC '*) |
| 15495 | # Test whether the compiler implicitly links with -lc since on some |
| 15496 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 15497 | # to ld, don't add -lc before -lgcc. |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15498 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 15499 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15500 | $rm conftest* |
| 15501 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15502 | |
| 15503 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15504 | (eval $ac_compile) 2>&5 |
| 15505 | ac_status=$? |
| 15506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15507 | (exit $ac_status); } 2>conftest.err; then |
| 15508 | soname=conftest |
| 15509 | lib=conftest |
| 15510 | libobjs=conftest.$ac_objext |
| 15511 | deplibs= |
| 15512 | wl=$lt_prog_compiler_wl_F77 |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 15513 | pic_flag=$lt_prog_compiler_pic_F77 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15514 | compiler_flags=-v |
| 15515 | linker_flags=-v |
| 15516 | verstring= |
| 15517 | output_objdir=. |
| 15518 | libname=conftest |
| 15519 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
| 15520 | allow_undefined_flag_F77= |
| 15521 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 15522 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 15523 | ac_status=$? |
| 15524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15525 | (exit $ac_status); } |
| 15526 | then |
| 15527 | archive_cmds_need_lc_F77=no |
| 15528 | else |
| 15529 | archive_cmds_need_lc_F77=yes |
| 15530 | fi |
| 15531 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
| 15532 | else |
| 15533 | cat conftest.err 1>&5 |
| 15534 | fi |
| 15535 | $rm conftest* |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15536 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
| 15537 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15538 | ;; |
| 15539 | esac |
| 15540 | fi |
| 15541 | ;; |
| 15542 | esac |
| 15543 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15544 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 15545 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15546 | library_names_spec= |
| 15547 | libname_spec='lib$name' |
| 15548 | soname_spec= |
| 15549 | shrext_cmds=".so" |
| 15550 | postinstall_cmds= |
| 15551 | postuninstall_cmds= |
| 15552 | finish_cmds= |
| 15553 | finish_eval= |
| 15554 | shlibpath_var= |
| 15555 | shlibpath_overrides_runpath=unknown |
| 15556 | version_type=none |
| 15557 | dynamic_linker="$host_os ld.so" |
| 15558 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 15559 | if test "$GCC" = yes; then |
| 15560 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 15561 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 15562 | # if the path contains ";" then we assume it to be the separator |
| 15563 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 15564 | # assumed that no part of a normal pathname contains ";" but that should |
| 15565 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 15566 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 15567 | else |
| 15568 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 15569 | fi |
| 15570 | else |
| 15571 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 15572 | fi |
| 15573 | need_lib_prefix=unknown |
| 15574 | hardcode_into_libs=no |
| 15575 | |
| 15576 | # when you set need_version to no, make sure it does not cause -set_version |
| 15577 | # flags to be left without arguments |
| 15578 | need_version=unknown |
| 15579 | |
| 15580 | case $host_os in |
| 15581 | aix3*) |
| 15582 | version_type=linux |
| 15583 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 15584 | shlibpath_var=LIBPATH |
| 15585 | |
| 15586 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 15587 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15588 | ;; |
| 15589 | |
| 15590 | aix4* | aix5*) |
| 15591 | version_type=linux |
| 15592 | need_lib_prefix=no |
| 15593 | need_version=no |
| 15594 | hardcode_into_libs=yes |
| 15595 | if test "$host_cpu" = ia64; then |
| 15596 | # AIX 5 supports IA64 |
| 15597 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 15598 | shlibpath_var=LD_LIBRARY_PATH |
| 15599 | else |
| 15600 | # With GCC up to 2.95.x, collect2 would create an import file |
| 15601 | # for dependence libraries. The import file would start with |
| 15602 | # the line `#! .'. This would cause the generated library to |
| 15603 | # depend on `.', always an invalid library. This was fixed in |
| 15604 | # development snapshots of GCC prior to 3.0. |
| 15605 | case $host_os in |
| 15606 | aix4 | aix4.[01] | aix4.[01].*) |
| 15607 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 15608 | echo ' yes ' |
| 15609 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 15610 | : |
| 15611 | else |
| 15612 | can_build_shared=no |
| 15613 | fi |
| 15614 | ;; |
| 15615 | esac |
| 15616 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 15617 | # soname into executable. Probably we can add versioning support to |
| 15618 | # collect2, so additional links can be useful in future. |
| 15619 | if test "$aix_use_runtimelinking" = yes; then |
| 15620 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 15621 | # instead of lib<name>.a to let people know that these are not |
| 15622 | # typical AIX shared libraries. |
| 15623 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15624 | else |
| 15625 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 15626 | # and later when we are not doing run time linking. |
| 15627 | library_names_spec='${libname}${release}.a $libname.a' |
| 15628 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15629 | fi |
| 15630 | shlibpath_var=LIBPATH |
| 15631 | fi |
| 15632 | ;; |
| 15633 | |
| 15634 | amigaos*) |
| 15635 | library_names_spec='$libname.ixlibrary $libname.a' |
| 15636 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 15637 | 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' |
| 15638 | ;; |
| 15639 | |
| 15640 | beos*) |
| 15641 | library_names_spec='${libname}${shared_ext}' |
| 15642 | dynamic_linker="$host_os ld.so" |
| 15643 | shlibpath_var=LIBRARY_PATH |
| 15644 | ;; |
| 15645 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 15646 | bsdi[45]*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15647 | version_type=linux |
| 15648 | need_version=no |
| 15649 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15650 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15651 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 15652 | shlibpath_var=LD_LIBRARY_PATH |
| 15653 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 15654 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 15655 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 15656 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 15657 | # libtool to hard-code these into programs |
| 15658 | ;; |
| 15659 | |
| 15660 | cygwin* | mingw* | pw32*) |
| 15661 | version_type=windows |
| 15662 | shrext_cmds=".dll" |
| 15663 | need_version=no |
| 15664 | need_lib_prefix=no |
| 15665 | |
| 15666 | case $GCC,$host_os in |
| 15667 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 15668 | library_names_spec='$libname.dll.a' |
| 15669 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 15670 | postinstall_cmds='base_file=`basename \${file}`~ |
| 15671 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 15672 | dldir=$destdir/`dirname \$dlpath`~ |
| 15673 | test -d \$dldir || mkdir -p \$dldir~ |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 15674 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 15675 | chmod a+x \$dldir/$dlname' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15676 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 15677 | dlpath=$dir/\$dldll~ |
| 15678 | $rm \$dlpath' |
| 15679 | shlibpath_overrides_runpath=yes |
| 15680 | |
| 15681 | case $host_os in |
| 15682 | cygwin*) |
| 15683 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 15684 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 15685 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 15686 | ;; |
| 15687 | mingw*) |
| 15688 | # MinGW DLLs use traditional 'lib' prefix |
| 15689 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 15690 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 15691 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 15692 | # It is most probably a Windows format PATH printed by |
| 15693 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 15694 | # path with ; separators, and with drive letters. We can handle the |
| 15695 | # drive letters (cygwin fileutils understands them), so leave them, |
| 15696 | # especially as we might pass files found there to a mingw objdump, |
| 15697 | # which wouldn't understand a cygwinified path. Ahh. |
| 15698 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 15699 | else |
| 15700 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 15701 | fi |
| 15702 | ;; |
| 15703 | pw32*) |
| 15704 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 15705 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15706 | ;; |
| 15707 | esac |
| 15708 | ;; |
| 15709 | |
| 15710 | *) |
| 15711 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 15712 | ;; |
| 15713 | esac |
| 15714 | dynamic_linker='Win32 ld.exe' |
| 15715 | # FIXME: first we should search . and the directory the executable is in |
| 15716 | shlibpath_var=PATH |
| 15717 | ;; |
| 15718 | |
| 15719 | darwin* | rhapsody*) |
| 15720 | dynamic_linker="$host_os dyld" |
| 15721 | version_type=darwin |
| 15722 | need_lib_prefix=no |
| 15723 | need_version=no |
| 15724 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 15725 | soname_spec='${libname}${release}${major}$shared_ext' |
| 15726 | shlibpath_overrides_runpath=yes |
| 15727 | shlibpath_var=DYLD_LIBRARY_PATH |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 15728 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15729 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 15730 | if test "$GCC" = yes; then |
| 15731 | 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"` |
| 15732 | else |
| 15733 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 15734 | fi |
| 15735 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 15736 | ;; |
| 15737 | |
| 15738 | dgux*) |
| 15739 | version_type=linux |
| 15740 | need_lib_prefix=no |
| 15741 | need_version=no |
| 15742 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 15743 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15744 | shlibpath_var=LD_LIBRARY_PATH |
| 15745 | ;; |
| 15746 | |
| 15747 | freebsd1*) |
| 15748 | dynamic_linker=no |
| 15749 | ;; |
| 15750 | |
| 15751 | kfreebsd*-gnu) |
| 15752 | version_type=linux |
| 15753 | need_lib_prefix=no |
| 15754 | need_version=no |
| 15755 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15756 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15757 | shlibpath_var=LD_LIBRARY_PATH |
| 15758 | shlibpath_overrides_runpath=no |
| 15759 | hardcode_into_libs=yes |
| 15760 | dynamic_linker='GNU ld.so' |
| 15761 | ;; |
| 15762 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 15763 | freebsd* | dragonfly*) |
| 15764 | # DragonFly does not have aout. When/if they implement a new |
| 15765 | # versioning mechanism, adjust this. |
| 15766 | if test -x /usr/bin/objformat; then |
| 15767 | objformat=`/usr/bin/objformat` |
| 15768 | else |
| 15769 | case $host_os in |
| 15770 | freebsd[123]*) objformat=aout ;; |
| 15771 | *) objformat=elf ;; |
| 15772 | esac |
| 15773 | fi |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15774 | version_type=freebsd-$objformat |
| 15775 | case $version_type in |
| 15776 | freebsd-elf*) |
| 15777 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 15778 | need_version=no |
| 15779 | need_lib_prefix=no |
| 15780 | ;; |
| 15781 | freebsd-*) |
| 15782 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 15783 | need_version=yes |
| 15784 | ;; |
| 15785 | esac |
| 15786 | shlibpath_var=LD_LIBRARY_PATH |
| 15787 | case $host_os in |
| 15788 | freebsd2*) |
| 15789 | shlibpath_overrides_runpath=yes |
| 15790 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 15791 | freebsd3.[01]* | freebsdelf3.[01]*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15792 | shlibpath_overrides_runpath=yes |
| 15793 | hardcode_into_libs=yes |
| 15794 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 15795 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 15796 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15797 | shlibpath_overrides_runpath=no |
| 15798 | hardcode_into_libs=yes |
| 15799 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 15800 | freebsd*) # from 4.6 on |
| 15801 | shlibpath_overrides_runpath=yes |
| 15802 | hardcode_into_libs=yes |
| 15803 | ;; |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15804 | esac |
| 15805 | ;; |
| 15806 | |
| 15807 | gnu*) |
| 15808 | version_type=linux |
| 15809 | need_lib_prefix=no |
| 15810 | need_version=no |
| 15811 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 15812 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15813 | shlibpath_var=LD_LIBRARY_PATH |
| 15814 | hardcode_into_libs=yes |
| 15815 | ;; |
| 15816 | |
| 15817 | hpux9* | hpux10* | hpux11*) |
| 15818 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 15819 | # link against other versions. |
| 15820 | version_type=sunos |
| 15821 | need_lib_prefix=no |
| 15822 | need_version=no |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 15823 | case $host_cpu in |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15824 | ia64*) |
| 15825 | shrext_cmds='.so' |
| 15826 | hardcode_into_libs=yes |
| 15827 | dynamic_linker="$host_os dld.so" |
| 15828 | shlibpath_var=LD_LIBRARY_PATH |
| 15829 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 15830 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15831 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15832 | if test "X$HPUX_IA64_MODE" = X32; then |
| 15833 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 15834 | else |
| 15835 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 15836 | fi |
| 15837 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 15838 | ;; |
| 15839 | hppa*64*) |
| 15840 | shrext_cmds='.sl' |
| 15841 | hardcode_into_libs=yes |
| 15842 | dynamic_linker="$host_os dld.sl" |
| 15843 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 15844 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 15845 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15846 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15847 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 15848 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 15849 | ;; |
| 15850 | *) |
| 15851 | shrext_cmds='.sl' |
| 15852 | dynamic_linker="$host_os dld.sl" |
| 15853 | shlibpath_var=SHLIB_PATH |
| 15854 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 15855 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15856 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15857 | ;; |
| 15858 | esac |
| 15859 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 15860 | postinstall_cmds='chmod 555 $lib' |
| 15861 | ;; |
| 15862 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 15863 | interix3*) |
| 15864 | version_type=linux |
| 15865 | need_lib_prefix=no |
| 15866 | need_version=no |
| 15867 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15868 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15869 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 15870 | shlibpath_var=LD_LIBRARY_PATH |
| 15871 | shlibpath_overrides_runpath=no |
| 15872 | hardcode_into_libs=yes |
| 15873 | ;; |
| 15874 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15875 | irix5* | irix6* | nonstopux*) |
| 15876 | case $host_os in |
| 15877 | nonstopux*) version_type=nonstopux ;; |
| 15878 | *) |
| 15879 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 15880 | version_type=linux |
| 15881 | else |
| 15882 | version_type=irix |
| 15883 | fi ;; |
| 15884 | esac |
| 15885 | need_lib_prefix=no |
| 15886 | need_version=no |
| 15887 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15888 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 15889 | case $host_os in |
| 15890 | irix5* | nonstopux*) |
| 15891 | libsuff= shlibsuff= |
| 15892 | ;; |
| 15893 | *) |
| 15894 | case $LD in # libtool.m4 will add one of these switches to LD |
| 15895 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 15896 | libsuff= shlibsuff= libmagic=32-bit;; |
| 15897 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 15898 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 15899 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 15900 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 15901 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 15902 | esac |
| 15903 | ;; |
| 15904 | esac |
| 15905 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 15906 | shlibpath_overrides_runpath=no |
| 15907 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 15908 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 15909 | hardcode_into_libs=yes |
| 15910 | ;; |
| 15911 | |
| 15912 | # No shared lib support for Linux oldld, aout, or coff. |
| 15913 | linux*oldld* | linux*aout* | linux*coff*) |
| 15914 | dynamic_linker=no |
| 15915 | ;; |
| 15916 | |
| 15917 | # This must be Linux ELF. |
| 15918 | linux*) |
| 15919 | version_type=linux |
| 15920 | need_lib_prefix=no |
| 15921 | need_version=no |
| 15922 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15923 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15924 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 15925 | shlibpath_var=LD_LIBRARY_PATH |
| 15926 | shlibpath_overrides_runpath=no |
| 15927 | # This implies no fast_install, which is unacceptable. |
| 15928 | # Some rework will be needed to allow for fast_install |
| 15929 | # before this can be enabled. |
| 15930 | hardcode_into_libs=yes |
| 15931 | |
| 15932 | # Append ld.so.conf contents to the search path |
| 15933 | if test -f /etc/ld.so.conf; then |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 15934 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15935 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 15936 | fi |
| 15937 | |
| 15938 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 15939 | # powerpc, because MkLinux only supported shared libraries with the |
| 15940 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 15941 | # most powerpc-linux boxes support dynamic linking these days and |
| 15942 | # people can always --disable-shared, the test was removed, and we |
| 15943 | # assume the GNU/Linux dynamic linker is in use. |
| 15944 | dynamic_linker='GNU/Linux ld.so' |
| 15945 | ;; |
| 15946 | |
| 15947 | knetbsd*-gnu) |
| 15948 | version_type=linux |
| 15949 | need_lib_prefix=no |
| 15950 | need_version=no |
| 15951 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15952 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15953 | shlibpath_var=LD_LIBRARY_PATH |
| 15954 | shlibpath_overrides_runpath=no |
| 15955 | hardcode_into_libs=yes |
| 15956 | dynamic_linker='GNU ld.so' |
| 15957 | ;; |
| 15958 | |
| 15959 | netbsd*) |
| 15960 | version_type=sunos |
| 15961 | need_lib_prefix=no |
| 15962 | need_version=no |
| 15963 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 15964 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 15965 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 15966 | dynamic_linker='NetBSD (a.out) ld.so' |
| 15967 | else |
| 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 | dynamic_linker='NetBSD ld.elf_so' |
| 15971 | fi |
| 15972 | shlibpath_var=LD_LIBRARY_PATH |
| 15973 | shlibpath_overrides_runpath=yes |
| 15974 | hardcode_into_libs=yes |
| 15975 | ;; |
| 15976 | |
| 15977 | newsos6) |
| 15978 | version_type=linux |
| 15979 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15980 | shlibpath_var=LD_LIBRARY_PATH |
| 15981 | shlibpath_overrides_runpath=yes |
| 15982 | ;; |
| 15983 | |
| 15984 | nto-qnx*) |
| 15985 | version_type=linux |
| 15986 | need_lib_prefix=no |
| 15987 | need_version=no |
| 15988 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15989 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15990 | shlibpath_var=LD_LIBRARY_PATH |
| 15991 | shlibpath_overrides_runpath=yes |
| 15992 | ;; |
| 15993 | |
| 15994 | openbsd*) |
| 15995 | version_type=sunos |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 15996 | sys_lib_dlsearch_path_spec="/usr/lib" |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15997 | need_lib_prefix=no |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 15998 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 15999 | case $host_os in |
| 16000 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 16001 | *) need_version=no ;; |
| 16002 | esac |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16003 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16004 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16005 | shlibpath_var=LD_LIBRARY_PATH |
| 16006 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 16007 | case $host_os in |
| 16008 | openbsd2.[89] | openbsd2.[89].*) |
| 16009 | shlibpath_overrides_runpath=no |
| 16010 | ;; |
| 16011 | *) |
| 16012 | shlibpath_overrides_runpath=yes |
| 16013 | ;; |
| 16014 | esac |
| 16015 | else |
| 16016 | shlibpath_overrides_runpath=yes |
| 16017 | fi |
| 16018 | ;; |
| 16019 | |
| 16020 | os2*) |
| 16021 | libname_spec='$name' |
| 16022 | shrext_cmds=".dll" |
| 16023 | need_lib_prefix=no |
| 16024 | library_names_spec='$libname${shared_ext} $libname.a' |
| 16025 | dynamic_linker='OS/2 ld.exe' |
| 16026 | shlibpath_var=LIBPATH |
| 16027 | ;; |
| 16028 | |
| 16029 | osf3* | osf4* | osf5*) |
| 16030 | version_type=osf |
| 16031 | need_lib_prefix=no |
| 16032 | need_version=no |
| 16033 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16034 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16035 | shlibpath_var=LD_LIBRARY_PATH |
| 16036 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 16037 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 16038 | ;; |
| 16039 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16040 | solaris*) |
| 16041 | version_type=linux |
| 16042 | need_lib_prefix=no |
| 16043 | need_version=no |
| 16044 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16045 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16046 | shlibpath_var=LD_LIBRARY_PATH |
| 16047 | shlibpath_overrides_runpath=yes |
| 16048 | hardcode_into_libs=yes |
| 16049 | # ldd complains unless libraries are executable |
| 16050 | postinstall_cmds='chmod +x $lib' |
| 16051 | ;; |
| 16052 | |
| 16053 | sunos4*) |
| 16054 | version_type=sunos |
| 16055 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16056 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 16057 | shlibpath_var=LD_LIBRARY_PATH |
| 16058 | shlibpath_overrides_runpath=yes |
| 16059 | if test "$with_gnu_ld" = yes; then |
| 16060 | need_lib_prefix=no |
| 16061 | fi |
| 16062 | need_version=yes |
| 16063 | ;; |
| 16064 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 16065 | sysv4 | sysv4.3*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16066 | version_type=linux |
| 16067 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16068 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16069 | shlibpath_var=LD_LIBRARY_PATH |
| 16070 | case $host_vendor in |
| 16071 | sni) |
| 16072 | shlibpath_overrides_runpath=no |
| 16073 | need_lib_prefix=no |
| 16074 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 16075 | runpath_var=LD_RUN_PATH |
| 16076 | ;; |
| 16077 | siemens) |
| 16078 | need_lib_prefix=no |
| 16079 | ;; |
| 16080 | motorola) |
| 16081 | need_lib_prefix=no |
| 16082 | need_version=no |
| 16083 | shlibpath_overrides_runpath=no |
| 16084 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 16085 | ;; |
| 16086 | esac |
| 16087 | ;; |
| 16088 | |
| 16089 | sysv4*MP*) |
| 16090 | if test -d /usr/nec ;then |
| 16091 | version_type=linux |
| 16092 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 16093 | soname_spec='$libname${shared_ext}.$major' |
| 16094 | shlibpath_var=LD_LIBRARY_PATH |
| 16095 | fi |
| 16096 | ;; |
| 16097 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 16098 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 16099 | version_type=freebsd-elf |
| 16100 | need_lib_prefix=no |
| 16101 | need_version=no |
| 16102 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 16103 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16104 | shlibpath_var=LD_LIBRARY_PATH |
| 16105 | hardcode_into_libs=yes |
| 16106 | if test "$with_gnu_ld" = yes; then |
| 16107 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 16108 | shlibpath_overrides_runpath=no |
| 16109 | else |
| 16110 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 16111 | shlibpath_overrides_runpath=yes |
| 16112 | case $host_os in |
| 16113 | sco3.2v5*) |
| 16114 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 16115 | ;; |
| 16116 | esac |
| 16117 | fi |
| 16118 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 16119 | ;; |
| 16120 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16121 | uts4*) |
| 16122 | version_type=linux |
| 16123 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16124 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16125 | shlibpath_var=LD_LIBRARY_PATH |
| 16126 | ;; |
| 16127 | |
| 16128 | *) |
| 16129 | dynamic_linker=no |
| 16130 | ;; |
| 16131 | esac |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16132 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 16133 | echo "${ECHO_T}$dynamic_linker" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16134 | test "$dynamic_linker" = no && can_build_shared=no |
| 16135 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 16136 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 16137 | if test "$GCC" = yes; then |
| 16138 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 16139 | fi |
| 16140 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16141 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 16142 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16143 | hardcode_action_F77= |
| 16144 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 16145 | test -n "$runpath_var_F77" || \ |
| 16146 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16147 | |
| 16148 | # We can hardcode non-existant directories. |
| 16149 | if test "$hardcode_direct_F77" != no && |
| 16150 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 16151 | # have to relink, otherwise we might link with an installed library |
| 16152 | # when we should be linking with a yet-to-be-installed one |
| 16153 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
| 16154 | test "$hardcode_minus_L_F77" != no; then |
| 16155 | # Linking always hardcodes the temporary library directory. |
| 16156 | hardcode_action_F77=relink |
| 16157 | else |
| 16158 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 16159 | hardcode_action_F77=immediate |
| 16160 | fi |
| 16161 | else |
| 16162 | # We cannot hardcode anything, or else we can only hardcode existing |
| 16163 | # directories. |
| 16164 | hardcode_action_F77=unsupported |
| 16165 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16166 | { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
| 16167 | echo "${ECHO_T}$hardcode_action_F77" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16168 | |
| 16169 | if test "$hardcode_action_F77" = relink; then |
| 16170 | # Fast installation is not supported |
| 16171 | enable_fast_install=no |
| 16172 | elif test "$shlibpath_overrides_runpath" = yes || |
| 16173 | test "$enable_shared" = no; then |
| 16174 | # Fast installation is not necessary |
| 16175 | enable_fast_install=needless |
| 16176 | fi |
| 16177 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16178 | |
| 16179 | # The else clause should only fire when bootstrapping the |
| 16180 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 16181 | # with your package, and you will get complaints that there are |
| 16182 | # no rules to generate ltmain.sh. |
| 16183 | if test -f "$ltmain"; then |
| 16184 | # See if we are running on zsh, and set the options which allow our commands through |
| 16185 | # without removal of \ escapes. |
| 16186 | if test -n "${ZSH_VERSION+set}" ; then |
| 16187 | setopt NO_GLOB_SUBST |
| 16188 | fi |
| 16189 | # Now quote all the things that may contain metacharacters while being |
| 16190 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 16191 | # variables and quote the copies for generation of the libtool script. |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 16192 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16193 | SED SHELL STRIP \ |
| 16194 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 16195 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 16196 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 16197 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 16198 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 16199 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 16200 | old_postinstall_cmds old_postuninstall_cmds \ |
| 16201 | compiler_F77 \ |
| 16202 | CC_F77 \ |
| 16203 | LD_F77 \ |
| 16204 | lt_prog_compiler_wl_F77 \ |
| 16205 | lt_prog_compiler_pic_F77 \ |
| 16206 | lt_prog_compiler_static_F77 \ |
| 16207 | lt_prog_compiler_no_builtin_flag_F77 \ |
| 16208 | export_dynamic_flag_spec_F77 \ |
| 16209 | thread_safe_flag_spec_F77 \ |
| 16210 | whole_archive_flag_spec_F77 \ |
| 16211 | enable_shared_with_static_runtimes_F77 \ |
| 16212 | old_archive_cmds_F77 \ |
| 16213 | old_archive_from_new_cmds_F77 \ |
| 16214 | predep_objects_F77 \ |
| 16215 | postdep_objects_F77 \ |
| 16216 | predeps_F77 \ |
| 16217 | postdeps_F77 \ |
| 16218 | compiler_lib_search_path_F77 \ |
| 16219 | archive_cmds_F77 \ |
| 16220 | archive_expsym_cmds_F77 \ |
| 16221 | postinstall_cmds_F77 \ |
| 16222 | postuninstall_cmds_F77 \ |
| 16223 | old_archive_from_expsyms_cmds_F77 \ |
| 16224 | allow_undefined_flag_F77 \ |
| 16225 | no_undefined_flag_F77 \ |
| 16226 | export_symbols_cmds_F77 \ |
| 16227 | hardcode_libdir_flag_spec_F77 \ |
| 16228 | hardcode_libdir_flag_spec_ld_F77 \ |
| 16229 | hardcode_libdir_separator_F77 \ |
| 16230 | hardcode_automatic_F77 \ |
| 16231 | module_cmds_F77 \ |
| 16232 | module_expsym_cmds_F77 \ |
| 16233 | lt_cv_prog_compiler_c_o_F77 \ |
| 16234 | exclude_expsyms_F77 \ |
| 16235 | include_expsyms_F77; do |
| 16236 | |
| 16237 | case $var in |
| 16238 | old_archive_cmds_F77 | \ |
| 16239 | old_archive_from_new_cmds_F77 | \ |
| 16240 | archive_cmds_F77 | \ |
| 16241 | archive_expsym_cmds_F77 | \ |
| 16242 | module_cmds_F77 | \ |
| 16243 | module_expsym_cmds_F77 | \ |
| 16244 | old_archive_from_expsyms_cmds_F77 | \ |
| 16245 | export_symbols_cmds_F77 | \ |
| 16246 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 16247 | postinstall_cmds | postuninstall_cmds | \ |
| 16248 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 16249 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 16250 | # Double-quote double-evaled strings. |
| 16251 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 16252 | ;; |
| 16253 | *) |
| 16254 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 16255 | ;; |
| 16256 | esac |
| 16257 | done |
| 16258 | |
| 16259 | case $lt_echo in |
| 16260 | *'\$0 --fallback-echo"') |
| 16261 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 16262 | ;; |
| 16263 | esac |
| 16264 | |
| 16265 | cfgfile="$ofile" |
| 16266 | |
| 16267 | cat <<__EOF__ >> "$cfgfile" |
| 16268 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 16269 | |
| 16270 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 16271 | |
| 16272 | # Shell to use when invoking shell scripts. |
| 16273 | SHELL=$lt_SHELL |
| 16274 | |
| 16275 | # Whether or not to build shared libraries. |
| 16276 | build_libtool_libs=$enable_shared |
| 16277 | |
| 16278 | # Whether or not to build static libraries. |
| 16279 | build_old_libs=$enable_static |
| 16280 | |
| 16281 | # Whether or not to add -lc for building shared libraries. |
| 16282 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
| 16283 | |
| 16284 | # Whether or not to disallow shared libs when runtime libs are static |
| 16285 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
| 16286 | |
| 16287 | # Whether or not to optimize for fast installation. |
| 16288 | fast_install=$enable_fast_install |
| 16289 | |
| 16290 | # The host system. |
| 16291 | host_alias=$host_alias |
| 16292 | host=$host |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 16293 | host_os=$host_os |
| 16294 | |
| 16295 | # The build system. |
| 16296 | build_alias=$build_alias |
| 16297 | build=$build |
| 16298 | build_os=$build_os |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16299 | |
| 16300 | # An echo program that does not interpret backslashes. |
| 16301 | echo=$lt_echo |
| 16302 | |
| 16303 | # The archiver. |
| 16304 | AR=$lt_AR |
| 16305 | AR_FLAGS=$lt_AR_FLAGS |
| 16306 | |
| 16307 | # A C compiler. |
| 16308 | LTCC=$lt_LTCC |
| 16309 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 16310 | # LTCC compiler flags. |
| 16311 | LTCFLAGS=$lt_LTCFLAGS |
| 16312 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16313 | # A language-specific compiler. |
| 16314 | CC=$lt_compiler_F77 |
| 16315 | |
| 16316 | # Is the compiler the GNU C compiler? |
| 16317 | with_gcc=$GCC_F77 |
| 16318 | |
| 16319 | # An ERE matcher. |
| 16320 | EGREP=$lt_EGREP |
| 16321 | |
| 16322 | # The linker used to build libraries. |
| 16323 | LD=$lt_LD_F77 |
| 16324 | |
| 16325 | # Whether we need hard or soft links. |
| 16326 | LN_S=$lt_LN_S |
| 16327 | |
| 16328 | # A BSD-compatible nm program. |
| 16329 | NM=$lt_NM |
| 16330 | |
| 16331 | # A symbol stripping program |
| 16332 | STRIP=$lt_STRIP |
| 16333 | |
| 16334 | # Used to examine libraries when file_magic_cmd begins "file" |
| 16335 | MAGIC_CMD=$MAGIC_CMD |
| 16336 | |
| 16337 | # Used on cygwin: DLL creation program. |
| 16338 | DLLTOOL="$DLLTOOL" |
| 16339 | |
| 16340 | # Used on cygwin: object dumper. |
| 16341 | OBJDUMP="$OBJDUMP" |
| 16342 | |
| 16343 | # Used on cygwin: assembler. |
| 16344 | AS="$AS" |
| 16345 | |
| 16346 | # The name of the directory that contains temporary libtool files. |
| 16347 | objdir=$objdir |
| 16348 | |
| 16349 | # How to create reloadable object files. |
| 16350 | reload_flag=$lt_reload_flag |
| 16351 | reload_cmds=$lt_reload_cmds |
| 16352 | |
| 16353 | # How to pass a linker flag through the compiler. |
| 16354 | wl=$lt_lt_prog_compiler_wl_F77 |
| 16355 | |
| 16356 | # Object file suffix (normally "o"). |
| 16357 | objext="$ac_objext" |
| 16358 | |
| 16359 | # Old archive suffix (normally "a"). |
| 16360 | libext="$libext" |
| 16361 | |
| 16362 | # Shared library suffix (normally ".so"). |
| 16363 | shrext_cmds='$shrext_cmds' |
| 16364 | |
| 16365 | # Executable file suffix (normally ""). |
| 16366 | exeext="$exeext" |
| 16367 | |
| 16368 | # Additional compiler flags for building library objects. |
| 16369 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
| 16370 | pic_mode=$pic_mode |
| 16371 | |
| 16372 | # What is the maximum length of a command? |
| 16373 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 16374 | |
| 16375 | # Does compiler simultaneously support -c and -o options? |
| 16376 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
| 16377 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 16378 | # Must we lock files when doing compilation? |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16379 | need_locks=$lt_need_locks |
| 16380 | |
| 16381 | # Do we need the lib prefix for modules? |
| 16382 | need_lib_prefix=$need_lib_prefix |
| 16383 | |
| 16384 | # Do we need a version for libraries? |
| 16385 | need_version=$need_version |
| 16386 | |
| 16387 | # Whether dlopen is supported. |
| 16388 | dlopen_support=$enable_dlopen |
| 16389 | |
| 16390 | # Whether dlopen of programs is supported. |
| 16391 | dlopen_self=$enable_dlopen_self |
| 16392 | |
| 16393 | # Whether dlopen of statically linked programs is supported. |
| 16394 | dlopen_self_static=$enable_dlopen_self_static |
| 16395 | |
| 16396 | # Compiler flag to prevent dynamic linking. |
| 16397 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
| 16398 | |
| 16399 | # Compiler flag to turn off builtin functions. |
| 16400 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
| 16401 | |
| 16402 | # Compiler flag to allow reflexive dlopens. |
| 16403 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
| 16404 | |
| 16405 | # Compiler flag to generate shared objects directly from archives. |
| 16406 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
| 16407 | |
| 16408 | # Compiler flag to generate thread-safe objects. |
| 16409 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
| 16410 | |
| 16411 | # Library versioning type. |
| 16412 | version_type=$version_type |
| 16413 | |
| 16414 | # Format of library name prefix. |
| 16415 | libname_spec=$lt_libname_spec |
| 16416 | |
| 16417 | # List of archive names. First name is the real one, the rest are links. |
| 16418 | # The last name is the one that the linker finds with -lNAME. |
| 16419 | library_names_spec=$lt_library_names_spec |
| 16420 | |
| 16421 | # The coded name of the library, if different from the real name. |
| 16422 | soname_spec=$lt_soname_spec |
| 16423 | |
| 16424 | # Commands used to build and install an old-style archive. |
| 16425 | RANLIB=$lt_RANLIB |
| 16426 | old_archive_cmds=$lt_old_archive_cmds_F77 |
| 16427 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 16428 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 16429 | |
| 16430 | # Create an old-style archive from a shared archive. |
| 16431 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
| 16432 | |
| 16433 | # Create a temporary old-style archive to link instead of a shared archive. |
| 16434 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
| 16435 | |
| 16436 | # Commands used to build and install a shared archive. |
| 16437 | archive_cmds=$lt_archive_cmds_F77 |
| 16438 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
| 16439 | postinstall_cmds=$lt_postinstall_cmds |
| 16440 | postuninstall_cmds=$lt_postuninstall_cmds |
| 16441 | |
| 16442 | # Commands used to build a loadable module (assumed same as above if empty) |
| 16443 | module_cmds=$lt_module_cmds_F77 |
| 16444 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
| 16445 | |
| 16446 | # Commands to strip libraries. |
| 16447 | old_striplib=$lt_old_striplib |
| 16448 | striplib=$lt_striplib |
| 16449 | |
| 16450 | # Dependencies to place before the objects being linked to create a |
| 16451 | # shared library. |
| 16452 | predep_objects=$lt_predep_objects_F77 |
| 16453 | |
| 16454 | # Dependencies to place after the objects being linked to create a |
| 16455 | # shared library. |
| 16456 | postdep_objects=$lt_postdep_objects_F77 |
| 16457 | |
| 16458 | # Dependencies to place before the objects being linked to create a |
| 16459 | # shared library. |
| 16460 | predeps=$lt_predeps_F77 |
| 16461 | |
| 16462 | # Dependencies to place after the objects being linked to create a |
| 16463 | # shared library. |
| 16464 | postdeps=$lt_postdeps_F77 |
| 16465 | |
| 16466 | # The library search path used internally by the compiler when linking |
| 16467 | # a shared library. |
| 16468 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
| 16469 | |
| 16470 | # Method to check whether dependent libraries are shared objects. |
| 16471 | deplibs_check_method=$lt_deplibs_check_method |
| 16472 | |
| 16473 | # Command to use when deplibs_check_method == file_magic. |
| 16474 | file_magic_cmd=$lt_file_magic_cmd |
| 16475 | |
| 16476 | # Flag that allows shared libraries with undefined symbols to be built. |
| 16477 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
| 16478 | |
| 16479 | # Flag that forces no undefined symbols. |
| 16480 | no_undefined_flag=$lt_no_undefined_flag_F77 |
| 16481 | |
| 16482 | # Commands used to finish a libtool library installation in a directory. |
| 16483 | finish_cmds=$lt_finish_cmds |
| 16484 | |
| 16485 | # Same as above, but a single script fragment to be evaled but not shown. |
| 16486 | finish_eval=$lt_finish_eval |
| 16487 | |
| 16488 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 16489 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 16490 | |
| 16491 | # Transform the output of nm in a proper C declaration |
| 16492 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 16493 | |
| 16494 | # Transform the output of nm in a C name address pair |
| 16495 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 16496 | |
| 16497 | # This is the shared library runtime path variable. |
| 16498 | runpath_var=$runpath_var |
| 16499 | |
| 16500 | # This is the shared library path variable. |
| 16501 | shlibpath_var=$shlibpath_var |
| 16502 | |
| 16503 | # Is shlibpath searched before the hard-coded library search path? |
| 16504 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 16505 | |
| 16506 | # How to hardcode a shared library path into an executable. |
| 16507 | hardcode_action=$hardcode_action_F77 |
| 16508 | |
| 16509 | # Whether we should hardcode library paths into libraries. |
| 16510 | hardcode_into_libs=$hardcode_into_libs |
| 16511 | |
| 16512 | # Flag to hardcode \$libdir into a binary during linking. |
| 16513 | # This must work even if \$libdir does not exist. |
| 16514 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
| 16515 | |
| 16516 | # If ld is used when linking, flag to hardcode \$libdir into |
| 16517 | # a binary during linking. This must work even if \$libdir does |
| 16518 | # not exist. |
| 16519 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
| 16520 | |
| 16521 | # Whether we need a single -rpath flag with a separated argument. |
| 16522 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
| 16523 | |
| 16524 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 16525 | # resulting binary. |
| 16526 | hardcode_direct=$hardcode_direct_F77 |
| 16527 | |
| 16528 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 16529 | # resulting binary. |
| 16530 | hardcode_minus_L=$hardcode_minus_L_F77 |
| 16531 | |
| 16532 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 16533 | # the resulting binary. |
| 16534 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
| 16535 | |
| 16536 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 16537 | # and all subsequent libraries and executables linked against it. |
| 16538 | hardcode_automatic=$hardcode_automatic_F77 |
| 16539 | |
| 16540 | # Variables whose values should be saved in libtool wrapper scripts and |
| 16541 | # restored at relink time. |
| 16542 | variables_saved_for_relink="$variables_saved_for_relink" |
| 16543 | |
| 16544 | # Whether libtool must link a program against all its dependency libraries. |
| 16545 | link_all_deplibs=$link_all_deplibs_F77 |
| 16546 | |
| 16547 | # Compile-time system search path for libraries |
| 16548 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 16549 | |
| 16550 | # Run-time system search path for libraries |
| 16551 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 16552 | |
| 16553 | # Fix the shell variable \$srcfile for the compiler. |
| 16554 | fix_srcfile_path="$fix_srcfile_path_F77" |
| 16555 | |
| 16556 | # Set to yes if exported symbols are required. |
| 16557 | always_export_symbols=$always_export_symbols_F77 |
| 16558 | |
| 16559 | # The commands to list exported symbols. |
| 16560 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
| 16561 | |
| 16562 | # The commands to extract the exported symbol list from a shared archive. |
| 16563 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 16564 | |
| 16565 | # Symbols that should not be listed in the preloaded symbols. |
| 16566 | exclude_expsyms=$lt_exclude_expsyms_F77 |
| 16567 | |
| 16568 | # Symbols that must always be exported. |
| 16569 | include_expsyms=$lt_include_expsyms_F77 |
| 16570 | |
| 16571 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 16572 | |
| 16573 | __EOF__ |
| 16574 | |
| 16575 | |
| 16576 | else |
| 16577 | # If there is no Makefile yet, we rely on a make rule to execute |
| 16578 | # `config.status --recheck' to rerun these tests and create the |
| 16579 | # libtool script then. |
| 16580 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 16581 | if test -f "$ltmain_in"; then |
| 16582 | test -f Makefile && make "$ltmain" |
| 16583 | fi |
| 16584 | fi |
| 16585 | |
| 16586 | |
| 16587 | ac_ext=c |
| 16588 | ac_cpp='$CPP $CPPFLAGS' |
| 16589 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16590 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16591 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 16592 | |
| 16593 | CC="$lt_save_CC" |
| 16594 | |
| 16595 | else |
| 16596 | tagname="" |
| 16597 | fi |
| 16598 | ;; |
| 16599 | |
| 16600 | GCJ) |
| 16601 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
| 16602 | |
| 16603 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16604 | # Source file extension for Java test sources. |
| 16605 | ac_ext=java |
| 16606 | |
| 16607 | # Object file extension for compiled Java test sources. |
| 16608 | objext=o |
| 16609 | objext_GCJ=$objext |
| 16610 | |
| 16611 | # Code to be used in simple compile tests |
| 16612 | lt_simple_compile_test_code="class foo {}\n" |
| 16613 | |
| 16614 | # Code to be used in simple link tests |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 16615 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16616 | |
| 16617 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 16618 | |
| 16619 | # If no C compiler was specified, use CC. |
| 16620 | LTCC=${LTCC-"$CC"} |
| 16621 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 16622 | # If no C compiler flags were specified, use CFLAGS. |
| 16623 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 16624 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16625 | # Allow CC to be a program name with arguments. |
| 16626 | compiler=$CC |
| 16627 | |
| 16628 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 16629 | # save warnings/boilerplate of simple test code |
| 16630 | ac_outfile=conftest.$ac_objext |
| 16631 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 16632 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 16633 | _lt_compiler_boilerplate=`cat conftest.err` |
| 16634 | $rm conftest* |
| 16635 | |
| 16636 | ac_outfile=conftest.$ac_objext |
| 16637 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 16638 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 16639 | _lt_linker_boilerplate=`cat conftest.err` |
| 16640 | $rm conftest* |
| 16641 | |
| 16642 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16643 | # Allow CC to be a program name with arguments. |
| 16644 | lt_save_CC="$CC" |
| 16645 | CC=${GCJ-"gcj"} |
| 16646 | compiler=$CC |
| 16647 | compiler_GCJ=$CC |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 16648 | for cc_temp in $compiler""; do |
| 16649 | case $cc_temp in |
| 16650 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 16651 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 16652 | \-*) ;; |
| 16653 | *) break;; |
| 16654 | esac |
| 16655 | done |
| 16656 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 16657 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16658 | |
| 16659 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
| 16660 | archive_cmds_need_lc_GCJ=no |
| 16661 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 16662 | old_archive_cmds_GCJ=$old_archive_cmds |
| 16663 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16664 | |
| 16665 | lt_prog_compiler_no_builtin_flag_GCJ= |
| 16666 | |
| 16667 | if test "$GCC" = yes; then |
| 16668 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
| 16669 | |
| 16670 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16671 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 16672 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16673 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 16674 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16675 | else |
| 16676 | lt_cv_prog_compiler_rtti_exceptions=no |
| 16677 | ac_outfile=conftest.$ac_objext |
| 16678 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16679 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 16680 | # Insert the option either (1) after the last *FLAGS variable, or |
| 16681 | # (2) before a word containing "conftest.", or (3) at the end. |
| 16682 | # Note that $ac_compile itself does not contain backslashes and begins |
| 16683 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 16684 | # The option is referenced via a variable to avoid confusing sed. |
| 16685 | lt_compile=`echo "$ac_compile" | $SED \ |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 16686 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16687 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 16688 | -e 's:$: $lt_compiler_flag:'` |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 16689 | (eval echo "\"\$as_me:16689: $lt_compile\"" >&5) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16690 | (eval "$lt_compile" 2>conftest.err) |
| 16691 | ac_status=$? |
| 16692 | cat conftest.err >&5 |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 16693 | echo "$as_me:16693: \$? = $ac_status" >&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16694 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 16695 | # The compiler can only warn and ignore the option if not recognized |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 16696 | # So say no if there are warnings other than the usual output. |
| 16697 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 16698 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 16699 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16700 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 16701 | fi |
| 16702 | fi |
| 16703 | $rm conftest* |
| 16704 | |
| 16705 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16706 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 16707 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16708 | |
| 16709 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 16710 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
| 16711 | else |
| 16712 | : |
| 16713 | fi |
| 16714 | |
| 16715 | fi |
| 16716 | |
| 16717 | lt_prog_compiler_wl_GCJ= |
| 16718 | lt_prog_compiler_pic_GCJ= |
| 16719 | lt_prog_compiler_static_GCJ= |
| 16720 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16721 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 16722 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16723 | |
| 16724 | if test "$GCC" = yes; then |
| 16725 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16726 | lt_prog_compiler_static_GCJ='-static' |
| 16727 | |
| 16728 | case $host_os in |
| 16729 | aix*) |
| 16730 | # All AIX code is PIC. |
| 16731 | if test "$host_cpu" = ia64; then |
| 16732 | # AIX 5 now supports IA64 processor |
| 16733 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16734 | fi |
| 16735 | ;; |
| 16736 | |
| 16737 | amigaos*) |
| 16738 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 16739 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 16740 | # like `-m68040'. |
| 16741 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
| 16742 | ;; |
| 16743 | |
| 16744 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 16745 | # PIC is the default for these OSes. |
| 16746 | ;; |
| 16747 | |
| 16748 | mingw* | pw32* | os2*) |
| 16749 | # This hack is so that the source file can tell whether it is being |
| 16750 | # built for inclusion in a dll (and should export symbols for example). |
| 16751 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 16752 | ;; |
| 16753 | |
| 16754 | darwin* | rhapsody*) |
| 16755 | # PIC is the default on this platform |
| 16756 | # Common symbols not allowed in MH_DYLIB files |
| 16757 | lt_prog_compiler_pic_GCJ='-fno-common' |
| 16758 | ;; |
| 16759 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 16760 | interix3*) |
| 16761 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 16762 | # Instead, we relocate shared libraries at runtime. |
| 16763 | ;; |
| 16764 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16765 | msdosdjgpp*) |
| 16766 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 16767 | # on systems that don't support them. |
| 16768 | lt_prog_compiler_can_build_shared_GCJ=no |
| 16769 | enable_shared=no |
| 16770 | ;; |
| 16771 | |
| 16772 | sysv4*MP*) |
| 16773 | if test -d /usr/nec; then |
| 16774 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
| 16775 | fi |
| 16776 | ;; |
| 16777 | |
| 16778 | hpux*) |
| 16779 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 16780 | # not for PA HP-UX. |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 16781 | case $host_cpu in |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16782 | hppa*64*|ia64*) |
| 16783 | # +Z the default |
| 16784 | ;; |
| 16785 | *) |
| 16786 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 16787 | ;; |
| 16788 | esac |
| 16789 | ;; |
| 16790 | |
| 16791 | *) |
| 16792 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 16793 | ;; |
| 16794 | esac |
| 16795 | else |
| 16796 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 16797 | case $host_os in |
| 16798 | aix*) |
| 16799 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16800 | if test "$host_cpu" = ia64; then |
| 16801 | # AIX 5 now supports IA64 processor |
| 16802 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16803 | else |
| 16804 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
| 16805 | fi |
| 16806 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 16807 | darwin*) |
| 16808 | # PIC is the default on this platform |
| 16809 | # Common symbols not allowed in MH_DYLIB files |
| 16810 | case $cc_basename in |
| 16811 | xlc*) |
| 16812 | lt_prog_compiler_pic_GCJ='-qnocommon' |
| 16813 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16814 | ;; |
| 16815 | esac |
| 16816 | ;; |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16817 | |
| 16818 | mingw* | pw32* | os2*) |
| 16819 | # This hack is so that the source file can tell whether it is being |
| 16820 | # built for inclusion in a dll (and should export symbols for example). |
| 16821 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 16822 | ;; |
| 16823 | |
| 16824 | hpux9* | hpux10* | hpux11*) |
| 16825 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16826 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 16827 | # not for PA HP-UX. |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 16828 | case $host_cpu in |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16829 | hppa*64*|ia64*) |
| 16830 | # +Z the default |
| 16831 | ;; |
| 16832 | *) |
| 16833 | lt_prog_compiler_pic_GCJ='+Z' |
| 16834 | ;; |
| 16835 | esac |
| 16836 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 16837 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
| 16838 | ;; |
| 16839 | |
| 16840 | irix5* | irix6* | nonstopux*) |
| 16841 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16842 | # PIC (with -KPIC) is the default. |
| 16843 | lt_prog_compiler_static_GCJ='-non_shared' |
| 16844 | ;; |
| 16845 | |
| 16846 | newsos6) |
| 16847 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 16848 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16849 | ;; |
| 16850 | |
| 16851 | linux*) |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 16852 | case $cc_basename in |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16853 | icc* | ecc*) |
| 16854 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16855 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 16856 | lt_prog_compiler_static_GCJ='-static' |
| 16857 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 16858 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 16859 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 16860 | # which looks to be a dead project) |
| 16861 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16862 | lt_prog_compiler_pic_GCJ='-fpic' |
| 16863 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16864 | ;; |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16865 | ccc*) |
| 16866 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16867 | # All Alpha code is PIC. |
| 16868 | lt_prog_compiler_static_GCJ='-non_shared' |
| 16869 | ;; |
| 16870 | esac |
| 16871 | ;; |
| 16872 | |
| 16873 | osf3* | osf4* | osf5*) |
| 16874 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16875 | # All OSF/1 code is PIC. |
| 16876 | lt_prog_compiler_static_GCJ='-non_shared' |
| 16877 | ;; |
| 16878 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16879 | solaris*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16880 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 16881 | lt_prog_compiler_static_GCJ='-Bstatic' |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 16882 | case $cc_basename in |
| 16883 | f77* | f90* | f95*) |
| 16884 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
| 16885 | *) |
| 16886 | lt_prog_compiler_wl_GCJ='-Wl,';; |
| 16887 | esac |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16888 | ;; |
| 16889 | |
| 16890 | sunos4*) |
| 16891 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
| 16892 | lt_prog_compiler_pic_GCJ='-PIC' |
| 16893 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16894 | ;; |
| 16895 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 16896 | sysv4 | sysv4.2uw2* | sysv4.3*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16897 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16898 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 16899 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16900 | ;; |
| 16901 | |
| 16902 | sysv4*MP*) |
| 16903 | if test -d /usr/nec ;then |
| 16904 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
| 16905 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16906 | fi |
| 16907 | ;; |
| 16908 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 16909 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 16910 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16911 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 16912 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16913 | ;; |
| 16914 | |
| 16915 | unicos*) |
| 16916 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16917 | lt_prog_compiler_can_build_shared_GCJ=no |
| 16918 | ;; |
| 16919 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16920 | uts4*) |
| 16921 | lt_prog_compiler_pic_GCJ='-pic' |
| 16922 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16923 | ;; |
| 16924 | |
| 16925 | *) |
| 16926 | lt_prog_compiler_can_build_shared_GCJ=no |
| 16927 | ;; |
| 16928 | esac |
| 16929 | fi |
| 16930 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16931 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
| 16932 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16933 | |
| 16934 | # |
| 16935 | # Check to make sure the PIC flag actually works. |
| 16936 | # |
| 16937 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
| 16938 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16939 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
| 16940 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16941 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
| 16942 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16943 | else |
| 16944 | lt_prog_compiler_pic_works_GCJ=no |
| 16945 | ac_outfile=conftest.$ac_objext |
| 16946 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16947 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
| 16948 | # Insert the option either (1) after the last *FLAGS variable, or |
| 16949 | # (2) before a word containing "conftest.", or (3) at the end. |
| 16950 | # Note that $ac_compile itself does not contain backslashes and begins |
| 16951 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 16952 | # The option is referenced via a variable to avoid confusing sed. |
| 16953 | lt_compile=`echo "$ac_compile" | $SED \ |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 16954 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16955 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 16956 | -e 's:$: $lt_compiler_flag:'` |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 16957 | (eval echo "\"\$as_me:16957: $lt_compile\"" >&5) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16958 | (eval "$lt_compile" 2>conftest.err) |
| 16959 | ac_status=$? |
| 16960 | cat conftest.err >&5 |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 16961 | echo "$as_me:16961: \$? = $ac_status" >&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16962 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 16963 | # The compiler can only warn and ignore the option if not recognized |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 16964 | # So say no if there are warnings other than the usual output. |
| 16965 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 16966 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 16967 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16968 | lt_prog_compiler_pic_works_GCJ=yes |
| 16969 | fi |
| 16970 | fi |
| 16971 | $rm conftest* |
| 16972 | |
| 16973 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16974 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
| 16975 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16976 | |
| 16977 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
| 16978 | case $lt_prog_compiler_pic_GCJ in |
| 16979 | "" | " "*) ;; |
| 16980 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
| 16981 | esac |
| 16982 | else |
| 16983 | lt_prog_compiler_pic_GCJ= |
| 16984 | lt_prog_compiler_can_build_shared_GCJ=no |
| 16985 | fi |
| 16986 | |
| 16987 | fi |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 16988 | case $host_os in |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16989 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 16990 | *djgpp*) |
| 16991 | lt_prog_compiler_pic_GCJ= |
| 16992 | ;; |
| 16993 | *) |
| 16994 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
| 16995 | ;; |
| 16996 | esac |
| 16997 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 16998 | # |
| 16999 | # Check to make sure the static flag actually works. |
| 17000 | # |
| 17001 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
| 17002 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 17003 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 17004 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
| 17005 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17006 | else |
| 17007 | lt_prog_compiler_static_works_GCJ=no |
| 17008 | save_LDFLAGS="$LDFLAGS" |
| 17009 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 17010 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 17011 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 17012 | # The linker can only warn and ignore the option if not recognized |
| 17013 | # So say no if there are warnings |
| 17014 | if test -s conftest.err; then |
| 17015 | # Append any errors to the config.log. |
| 17016 | cat conftest.err 1>&5 |
| 17017 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 17018 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 17019 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 17020 | lt_prog_compiler_static_works_GCJ=yes |
| 17021 | fi |
| 17022 | else |
| 17023 | lt_prog_compiler_static_works_GCJ=yes |
| 17024 | fi |
| 17025 | fi |
| 17026 | $rm conftest* |
| 17027 | LDFLAGS="$save_LDFLAGS" |
| 17028 | |
| 17029 | fi |
| 17030 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
| 17031 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } |
| 17032 | |
| 17033 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
| 17034 | : |
| 17035 | else |
| 17036 | lt_prog_compiler_static_GCJ= |
| 17037 | fi |
| 17038 | |
| 17039 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 17040 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 17041 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17042 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
| 17043 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17044 | else |
| 17045 | lt_cv_prog_compiler_c_o_GCJ=no |
| 17046 | $rm -r conftest 2>/dev/null |
| 17047 | mkdir conftest |
| 17048 | cd conftest |
| 17049 | mkdir out |
| 17050 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 17051 | |
| 17052 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 17053 | # Insert the option either (1) after the last *FLAGS variable, or |
| 17054 | # (2) before a word containing "conftest.", or (3) at the end. |
| 17055 | # Note that $ac_compile itself does not contain backslashes and begins |
| 17056 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 17057 | lt_compile=`echo "$ac_compile" | $SED \ |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 17058 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17059 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 17060 | -e 's:$: $lt_compiler_flag:'` |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 17061 | (eval echo "\"\$as_me:17061: $lt_compile\"" >&5) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17062 | (eval "$lt_compile" 2>out/conftest.err) |
| 17063 | ac_status=$? |
| 17064 | cat out/conftest.err >&5 |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 17065 | echo "$as_me:17065: \$? = $ac_status" >&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17066 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 17067 | then |
| 17068 | # The compiler can only warn and ignore the option if not recognized |
| 17069 | # So say no if there are warnings |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 17070 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 17071 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 17072 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17073 | lt_cv_prog_compiler_c_o_GCJ=yes |
| 17074 | fi |
| 17075 | fi |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 17076 | chmod u+w . 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17077 | $rm conftest* |
| 17078 | # SGI C++ compiler will create directory out/ii_files/ for |
| 17079 | # template instantiation |
| 17080 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 17081 | $rm out/* && rmdir out |
| 17082 | cd .. |
| 17083 | rmdir conftest |
| 17084 | $rm conftest* |
| 17085 | |
| 17086 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 17087 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
| 17088 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17089 | |
| 17090 | |
| 17091 | hard_links="nottested" |
| 17092 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
| 17093 | # do not overwrite the value of need_locks provided by the user |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 17094 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 17095 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17096 | hard_links=yes |
| 17097 | $rm conftest* |
| 17098 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 17099 | touch conftest.a |
| 17100 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 17101 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 17102 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 17103 | echo "${ECHO_T}$hard_links" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17104 | if test "$hard_links" = no; then |
| 17105 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 17106 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 17107 | need_locks=warn |
| 17108 | fi |
| 17109 | else |
| 17110 | need_locks=no |
| 17111 | fi |
| 17112 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 17113 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 17114 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17115 | |
| 17116 | runpath_var= |
| 17117 | allow_undefined_flag_GCJ= |
| 17118 | enable_shared_with_static_runtimes_GCJ=no |
| 17119 | archive_cmds_GCJ= |
| 17120 | archive_expsym_cmds_GCJ= |
| 17121 | old_archive_From_new_cmds_GCJ= |
| 17122 | old_archive_from_expsyms_cmds_GCJ= |
| 17123 | export_dynamic_flag_spec_GCJ= |
| 17124 | whole_archive_flag_spec_GCJ= |
| 17125 | thread_safe_flag_spec_GCJ= |
| 17126 | hardcode_libdir_flag_spec_GCJ= |
| 17127 | hardcode_libdir_flag_spec_ld_GCJ= |
| 17128 | hardcode_libdir_separator_GCJ= |
| 17129 | hardcode_direct_GCJ=no |
| 17130 | hardcode_minus_L_GCJ=no |
| 17131 | hardcode_shlibpath_var_GCJ=unsupported |
| 17132 | link_all_deplibs_GCJ=unknown |
| 17133 | hardcode_automatic_GCJ=no |
| 17134 | module_cmds_GCJ= |
| 17135 | module_expsym_cmds_GCJ= |
| 17136 | always_export_symbols_GCJ=no |
| 17137 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 17138 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 17139 | # included in the symbol list |
| 17140 | include_expsyms_GCJ= |
| 17141 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 17142 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 17143 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 17144 | # as well as any symbol that contains `d'. |
| 17145 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
| 17146 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 17147 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 17148 | # the symbol is explicitly referenced. Since portable code cannot |
| 17149 | # rely on this symbol name, it's probably fine to never include it in |
| 17150 | # preloaded symbol tables. |
| 17151 | extract_expsyms_cmds= |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 17152 | # Just being paranoid about ensuring that cc_basename is set. |
| 17153 | for cc_temp in $compiler""; do |
| 17154 | case $cc_temp in |
| 17155 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 17156 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 17157 | \-*) ;; |
| 17158 | *) break;; |
| 17159 | esac |
| 17160 | done |
| 17161 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17162 | |
| 17163 | case $host_os in |
| 17164 | cygwin* | mingw* | pw32*) |
| 17165 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 17166 | # When not using gcc, we currently assume that we are using |
| 17167 | # Microsoft Visual C++. |
| 17168 | if test "$GCC" != yes; then |
| 17169 | with_gnu_ld=no |
| 17170 | fi |
| 17171 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 17172 | interix*) |
| 17173 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 17174 | with_gnu_ld=yes |
| 17175 | ;; |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17176 | openbsd*) |
| 17177 | with_gnu_ld=no |
| 17178 | ;; |
| 17179 | esac |
| 17180 | |
| 17181 | ld_shlibs_GCJ=yes |
| 17182 | if test "$with_gnu_ld" = yes; then |
| 17183 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 17184 | wlarc='${wl}' |
| 17185 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 17186 | # Set some defaults for GNU ld with shared library support. These |
| 17187 | # are reset later if shared libraries are not supported. Putting them |
| 17188 | # here allows them to be overridden if necessary. |
| 17189 | runpath_var=LD_RUN_PATH |
| 17190 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
| 17191 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
| 17192 | # ancient GNU ld didn't support --whole-archive et. al. |
| 17193 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 17194 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 17195 | else |
| 17196 | whole_archive_flag_spec_GCJ= |
| 17197 | fi |
| 17198 | supports_anon_versioning=no |
| 17199 | case `$LD -v 2>/dev/null` in |
| 17200 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 17201 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 17202 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 17203 | *\ 2.11.*) ;; # other 2.11 versions |
| 17204 | *) supports_anon_versioning=yes ;; |
| 17205 | esac |
| 17206 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17207 | # See if GNU ld supports shared libraries. |
| 17208 | case $host_os in |
| 17209 | aix3* | aix4* | aix5*) |
| 17210 | # On AIX/PPC, the GNU linker is very broken |
| 17211 | if test "$host_cpu" != ia64; then |
| 17212 | ld_shlibs_GCJ=no |
| 17213 | cat <<EOF 1>&2 |
| 17214 | |
| 17215 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 17216 | *** to be unable to reliably create shared libraries on AIX. |
| 17217 | *** Therefore, libtool is disabling shared libraries support. If you |
| 17218 | *** really care for shared libraries, you may want to modify your PATH |
| 17219 | *** so that a non-GNU linker is found, and then restart. |
| 17220 | |
| 17221 | EOF |
| 17222 | fi |
| 17223 | ;; |
| 17224 | |
| 17225 | amigaos*) |
| 17226 | 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)' |
| 17227 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17228 | hardcode_minus_L_GCJ=yes |
| 17229 | |
| 17230 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 17231 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 17232 | # to version 4, is to share data among multiple programs linked |
| 17233 | # with the same dynamic library. Since this doesn't match the |
| 17234 | # behavior of shared libraries on other platforms, we can't use |
| 17235 | # them. |
| 17236 | ld_shlibs_GCJ=no |
| 17237 | ;; |
| 17238 | |
| 17239 | beos*) |
| 17240 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 17241 | allow_undefined_flag_GCJ=unsupported |
| 17242 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 17243 | # support --undefined. This deserves some investigation. FIXME |
| 17244 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17245 | else |
| 17246 | ld_shlibs_GCJ=no |
| 17247 | fi |
| 17248 | ;; |
| 17249 | |
| 17250 | cygwin* | mingw* | pw32*) |
| 17251 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
| 17252 | # as there is no search path for DLLs. |
| 17253 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17254 | allow_undefined_flag_GCJ=unsupported |
| 17255 | always_export_symbols_GCJ=no |
| 17256 | enable_shared_with_static_runtimes_GCJ=yes |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 17257 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17258 | |
| 17259 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 17260 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17261 | # If the export-symbols file already is a .def file (1st line |
| 17262 | # is EXPORTS), use it as is; otherwise, prepend... |
| 17263 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 17264 | cp $export_symbols $output_objdir/$soname.def; |
| 17265 | else |
| 17266 | echo EXPORTS > $output_objdir/$soname.def; |
| 17267 | cat $export_symbols >> $output_objdir/$soname.def; |
| 17268 | fi~ |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 17269 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17270 | else |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 17271 | ld_shlibs_GCJ=no |
| 17272 | fi |
| 17273 | ;; |
| 17274 | |
| 17275 | interix3*) |
| 17276 | hardcode_direct_GCJ=no |
| 17277 | hardcode_shlibpath_var_GCJ=no |
| 17278 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 17279 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 17280 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 17281 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 17282 | # default) and relocated if they conflict, which is a slow very memory |
| 17283 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 17284 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 17285 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 17286 | archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 17287 | archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 17288 | ;; |
| 17289 | |
| 17290 | linux*) |
| 17291 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 17292 | tmp_addflag= |
| 17293 | case $cc_basename,$host_cpu in |
| 17294 | pgcc*) # Portland Group C compiler |
| 17295 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
| 17296 | tmp_addflag=' $pic_flag' |
| 17297 | ;; |
| 17298 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 17299 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
| 17300 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 17301 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 17302 | tmp_addflag=' -i_dynamic' ;; |
| 17303 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 17304 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 17305 | ifc* | ifort*) # Intel Fortran compiler |
| 17306 | tmp_addflag=' -nofor_main' ;; |
| 17307 | esac |
| 17308 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17309 | |
| 17310 | if test $supports_anon_versioning = yes; then |
| 17311 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 17312 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 17313 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 17314 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 17315 | fi |
| 17316 | else |
| 17317 | ld_shlibs_GCJ=no |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17318 | fi |
| 17319 | ;; |
| 17320 | |
| 17321 | netbsd*) |
| 17322 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 17323 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 17324 | wlarc= |
| 17325 | else |
| 17326 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17327 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 17328 | fi |
| 17329 | ;; |
| 17330 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 17331 | solaris*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17332 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 17333 | ld_shlibs_GCJ=no |
| 17334 | cat <<EOF 1>&2 |
| 17335 | |
| 17336 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 17337 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 17338 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 17339 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 17340 | *** your PATH or compiler configuration so that the native linker is |
| 17341 | *** used, and then restart. |
| 17342 | |
| 17343 | EOF |
| 17344 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 17345 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17346 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 17347 | else |
| 17348 | ld_shlibs_GCJ=no |
| 17349 | fi |
| 17350 | ;; |
| 17351 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 17352 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 17353 | case `$LD -v 2>&1` in |
| 17354 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 17355 | ld_shlibs_GCJ=no |
| 17356 | cat <<_LT_EOF 1>&2 |
| 17357 | |
| 17358 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 17359 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 17360 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 17361 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 17362 | *** your PATH or compiler configuration so that the native linker is |
| 17363 | *** used, and then restart. |
| 17364 | |
| 17365 | _LT_EOF |
| 17366 | ;; |
| 17367 | *) |
| 17368 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 17369 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 17370 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 17371 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 17372 | else |
| 17373 | ld_shlibs_GCJ=no |
| 17374 | fi |
| 17375 | ;; |
| 17376 | esac |
| 17377 | ;; |
| 17378 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17379 | sunos4*) |
| 17380 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 17381 | wlarc= |
| 17382 | hardcode_direct_GCJ=yes |
| 17383 | hardcode_shlibpath_var_GCJ=no |
| 17384 | ;; |
| 17385 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17386 | *) |
| 17387 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 17388 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17389 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 17390 | else |
| 17391 | ld_shlibs_GCJ=no |
| 17392 | fi |
| 17393 | ;; |
| 17394 | esac |
| 17395 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 17396 | if test "$ld_shlibs_GCJ" = no; then |
| 17397 | runpath_var= |
| 17398 | hardcode_libdir_flag_spec_GCJ= |
| 17399 | export_dynamic_flag_spec_GCJ= |
| 17400 | whole_archive_flag_spec_GCJ= |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17401 | fi |
| 17402 | else |
| 17403 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 17404 | case $host_os in |
| 17405 | aix3*) |
| 17406 | allow_undefined_flag_GCJ=unsupported |
| 17407 | always_export_symbols_GCJ=yes |
| 17408 | 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' |
| 17409 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 17410 | # are no directories specified by -L. |
| 17411 | hardcode_minus_L_GCJ=yes |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 17412 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17413 | # Neither direct hardcoding nor static linking is supported with a |
| 17414 | # broken collect2. |
| 17415 | hardcode_direct_GCJ=unsupported |
| 17416 | fi |
| 17417 | ;; |
| 17418 | |
| 17419 | aix4* | aix5*) |
| 17420 | if test "$host_cpu" = ia64; then |
| 17421 | # On IA64, the linker does run time linking by default, so we don't |
| 17422 | # have to do anything special. |
| 17423 | aix_use_runtimelinking=no |
| 17424 | exp_sym_flag='-Bexport' |
| 17425 | no_entry_flag="" |
| 17426 | else |
| 17427 | # If we're using GNU nm, then we don't want the "-C" option. |
| 17428 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 17429 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 17430 | 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' |
| 17431 | else |
| 17432 | 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' |
| 17433 | fi |
| 17434 | aix_use_runtimelinking=no |
| 17435 | |
| 17436 | # Test if we are trying to use run time linking or normal |
| 17437 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 17438 | # need to do runtime linking. |
| 17439 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 17440 | for ld_flag in $LDFLAGS; do |
| 17441 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 17442 | aix_use_runtimelinking=yes |
| 17443 | break |
| 17444 | fi |
| 17445 | done |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 17446 | ;; |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17447 | esac |
| 17448 | |
| 17449 | exp_sym_flag='-bexport' |
| 17450 | no_entry_flag='-bnoentry' |
| 17451 | fi |
| 17452 | |
| 17453 | # When large executables or shared objects are built, AIX ld can |
| 17454 | # have problems creating the table of contents. If linking a library |
| 17455 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 17456 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 17457 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 17458 | |
| 17459 | archive_cmds_GCJ='' |
| 17460 | hardcode_direct_GCJ=yes |
| 17461 | hardcode_libdir_separator_GCJ=':' |
| 17462 | link_all_deplibs_GCJ=yes |
| 17463 | |
| 17464 | if test "$GCC" = yes; then |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 17465 | case $host_os in aix4.[012]|aix4.[012].*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17466 | # We only want to do this on AIX 4.2 and lower, the check |
| 17467 | # below for broken collect2 doesn't work under 4.3+ |
| 17468 | collect2name=`${CC} -print-prog-name=collect2` |
| 17469 | if test -f "$collect2name" && \ |
| 17470 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 17471 | then |
| 17472 | # We have reworked collect2 |
| 17473 | hardcode_direct_GCJ=yes |
| 17474 | else |
| 17475 | # We have old collect2 |
| 17476 | hardcode_direct_GCJ=unsupported |
| 17477 | # It fails to find uninstalled libraries when the uninstalled |
| 17478 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 17479 | # to unsupported forces relinking |
| 17480 | hardcode_minus_L_GCJ=yes |
| 17481 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17482 | hardcode_libdir_separator_GCJ= |
| 17483 | fi |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 17484 | ;; |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17485 | esac |
| 17486 | shared_flag='-shared' |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 17487 | if test "$aix_use_runtimelinking" = yes; then |
| 17488 | shared_flag="$shared_flag "'${wl}-G' |
| 17489 | fi |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17490 | else |
| 17491 | # not using gcc |
| 17492 | if test "$host_cpu" = ia64; then |
| 17493 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 17494 | # chokes on -Wl,-G. The following line is correct: |
| 17495 | shared_flag='-G' |
| 17496 | else |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 17497 | if test "$aix_use_runtimelinking" = yes; then |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17498 | shared_flag='${wl}-G' |
| 17499 | else |
| 17500 | shared_flag='${wl}-bM:SRE' |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 17501 | fi |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17502 | fi |
| 17503 | fi |
| 17504 | |
| 17505 | # It seems that -bexpall does not export symbols beginning with |
| 17506 | # underscore (_), so it is better to generate a list of symbols to export. |
| 17507 | always_export_symbols_GCJ=yes |
| 17508 | if test "$aix_use_runtimelinking" = yes; then |
| 17509 | # Warning - without using the other runtime loading flags (-brtl), |
| 17510 | # -berok will link without error, but may produce a broken library. |
| 17511 | allow_undefined_flag_GCJ='-berok' |
| 17512 | # Determine the default libpath from the value encoded in an empty executable. |
| 17513 | cat >conftest.$ac_ext <<_ACEOF |
| 17514 | /* confdefs.h. */ |
| 17515 | _ACEOF |
| 17516 | cat confdefs.h >>conftest.$ac_ext |
| 17517 | cat >>conftest.$ac_ext <<_ACEOF |
| 17518 | /* end confdefs.h. */ |
| 17519 | |
| 17520 | int |
| 17521 | main () |
| 17522 | { |
| 17523 | |
| 17524 | ; |
| 17525 | return 0; |
| 17526 | } |
| 17527 | _ACEOF |
| 17528 | rm -f conftest.$ac_objext conftest$ac_exeext |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 17529 | if { (ac_try="$ac_link" |
| 17530 | case "(($ac_try" in |
| 17531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17532 | *) ac_try_echo=$ac_try;; |
| 17533 | esac |
| 17534 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17535 | (eval "$ac_link") 2>conftest.er1 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17536 | ac_status=$? |
| 17537 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17538 | rm -f conftest.er1 |
| 17539 | cat conftest.err >&5 |
| 17540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17541 | (exit $ac_status); } && |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 17542 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17543 | { (case "(($ac_try" in |
| 17544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17545 | *) ac_try_echo=$ac_try;; |
| 17546 | esac |
| 17547 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17548 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17549 | ac_status=$? |
| 17550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17551 | (exit $ac_status); }; } && |
| 17552 | { ac_try='test -s conftest$ac_exeext' |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 17553 | { (case "(($ac_try" in |
| 17554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17555 | *) ac_try_echo=$ac_try;; |
| 17556 | esac |
| 17557 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17558 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17559 | ac_status=$? |
| 17560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17561 | (exit $ac_status); }; }; then |
| 17562 | |
| 17563 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 17564 | }'` |
| 17565 | # Check for a 64-bit object if we didn't find anything. |
| 17566 | 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; } |
| 17567 | }'`; fi |
| 17568 | else |
| 17569 | echo "$as_me: failed program was:" >&5 |
| 17570 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17571 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 17572 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17573 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 17574 | |
| 17575 | rm -f core conftest.err conftest.$ac_objext \ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17576 | conftest$ac_exeext conftest.$ac_ext |
| 17577 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 17578 | |
| 17579 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 17580 | archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17581 | else |
| 17582 | if test "$host_cpu" = ia64; then |
| 17583 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
| 17584 | allow_undefined_flag_GCJ="-z nodefs" |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 17585 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17586 | else |
| 17587 | # Determine the default libpath from the value encoded in an empty executable. |
| 17588 | cat >conftest.$ac_ext <<_ACEOF |
| 17589 | /* confdefs.h. */ |
| 17590 | _ACEOF |
| 17591 | cat confdefs.h >>conftest.$ac_ext |
| 17592 | cat >>conftest.$ac_ext <<_ACEOF |
| 17593 | /* end confdefs.h. */ |
| 17594 | |
| 17595 | int |
| 17596 | main () |
| 17597 | { |
| 17598 | |
| 17599 | ; |
| 17600 | return 0; |
| 17601 | } |
| 17602 | _ACEOF |
| 17603 | rm -f conftest.$ac_objext conftest$ac_exeext |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 17604 | if { (ac_try="$ac_link" |
| 17605 | case "(($ac_try" in |
| 17606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17607 | *) ac_try_echo=$ac_try;; |
| 17608 | esac |
| 17609 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17610 | (eval "$ac_link") 2>conftest.er1 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17611 | ac_status=$? |
| 17612 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17613 | rm -f conftest.er1 |
| 17614 | cat conftest.err >&5 |
| 17615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17616 | (exit $ac_status); } && |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 17617 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17618 | { (case "(($ac_try" in |
| 17619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17620 | *) ac_try_echo=$ac_try;; |
| 17621 | esac |
| 17622 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17623 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17624 | ac_status=$? |
| 17625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17626 | (exit $ac_status); }; } && |
| 17627 | { ac_try='test -s conftest$ac_exeext' |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 17628 | { (case "(($ac_try" in |
| 17629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17630 | *) ac_try_echo=$ac_try;; |
| 17631 | esac |
| 17632 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17633 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17634 | ac_status=$? |
| 17635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17636 | (exit $ac_status); }; }; then |
| 17637 | |
| 17638 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 17639 | }'` |
| 17640 | # Check for a 64-bit object if we didn't find anything. |
| 17641 | 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; } |
| 17642 | }'`; fi |
| 17643 | else |
| 17644 | echo "$as_me: failed program was:" >&5 |
| 17645 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17646 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 17647 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17648 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 17649 | |
| 17650 | rm -f core conftest.err conftest.$ac_objext \ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17651 | conftest$ac_exeext conftest.$ac_ext |
| 17652 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 17653 | |
| 17654 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 17655 | # Warning - without using the other run time loading flags, |
| 17656 | # -berok will link without error, but may produce a broken library. |
| 17657 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
| 17658 | allow_undefined_flag_GCJ=' ${wl}-berok' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17659 | # Exported symbols can be pulled into shared objects from archives |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 17660 | whole_archive_flag_spec_GCJ='$convenience' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17661 | archive_cmds_need_lc_GCJ=yes |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 17662 | # This is similar to how AIX traditionally builds its shared libraries. |
| 17663 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17664 | fi |
| 17665 | fi |
| 17666 | ;; |
| 17667 | |
| 17668 | amigaos*) |
| 17669 | 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)' |
| 17670 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17671 | hardcode_minus_L_GCJ=yes |
| 17672 | # see comment about different semantics on the GNU ld section |
| 17673 | ld_shlibs_GCJ=no |
| 17674 | ;; |
| 17675 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 17676 | bsdi[45]*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17677 | export_dynamic_flag_spec_GCJ=-rdynamic |
| 17678 | ;; |
| 17679 | |
| 17680 | cygwin* | mingw* | pw32*) |
| 17681 | # When not using gcc, we currently assume that we are using |
| 17682 | # Microsoft Visual C++. |
| 17683 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 17684 | # no search path for DLLs. |
| 17685 | hardcode_libdir_flag_spec_GCJ=' ' |
| 17686 | allow_undefined_flag_GCJ=unsupported |
| 17687 | # Tell ltmain to make .lib files, not .a files. |
| 17688 | libext=lib |
| 17689 | # Tell ltmain to make .dll files, not .so files. |
| 17690 | shrext_cmds=".dll" |
| 17691 | # FIXME: Setting linknames here is a bad hack. |
| 17692 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 17693 | # The linker will automatically build a .lib file if we build a DLL. |
| 17694 | old_archive_From_new_cmds_GCJ='true' |
| 17695 | # FIXME: Should let the user specify the lib program. |
| 17696 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 17697 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17698 | enable_shared_with_static_runtimes_GCJ=yes |
| 17699 | ;; |
| 17700 | |
| 17701 | darwin* | rhapsody*) |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 17702 | case $host_os in |
| 17703 | rhapsody* | darwin1.[012]) |
| 17704 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
| 17705 | ;; |
| 17706 | *) # Darwin 1.3 on |
| 17707 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 17708 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 17709 | else |
| 17710 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 17711 | 10.[012]) |
| 17712 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 17713 | ;; |
| 17714 | 10.*) |
| 17715 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
| 17716 | ;; |
| 17717 | esac |
| 17718 | fi |
| 17719 | ;; |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17720 | esac |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 17721 | archive_cmds_need_lc_GCJ=no |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17722 | hardcode_direct_GCJ=no |
| 17723 | hardcode_automatic_GCJ=yes |
| 17724 | hardcode_shlibpath_var_GCJ=unsupported |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 17725 | whole_archive_flag_spec_GCJ='' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17726 | link_all_deplibs_GCJ=yes |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 17727 | if test "$GCC" = yes ; then |
| 17728 | output_verbose_link_cmd='echo' |
| 17729 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 17730 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 17731 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 17732 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 17733 | 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}' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17734 | else |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 17735 | case $cc_basename in |
| 17736 | xlc*) |
| 17737 | output_verbose_link_cmd='echo' |
| 17738 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 17739 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 17740 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 17741 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 17742 | 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}' |
| 17743 | ;; |
| 17744 | *) |
| 17745 | ld_shlibs_GCJ=no |
| 17746 | ;; |
| 17747 | esac |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17748 | fi |
| 17749 | ;; |
| 17750 | |
| 17751 | dgux*) |
| 17752 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17753 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17754 | hardcode_shlibpath_var_GCJ=no |
| 17755 | ;; |
| 17756 | |
| 17757 | freebsd1*) |
| 17758 | ld_shlibs_GCJ=no |
| 17759 | ;; |
| 17760 | |
| 17761 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 17762 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 17763 | # does not break anything, and helps significantly (at the cost of a little |
| 17764 | # extra space). |
| 17765 | freebsd2.2*) |
| 17766 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 17767 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 17768 | hardcode_direct_GCJ=yes |
| 17769 | hardcode_shlibpath_var_GCJ=no |
| 17770 | ;; |
| 17771 | |
| 17772 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 17773 | freebsd2*) |
| 17774 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 17775 | hardcode_direct_GCJ=yes |
| 17776 | hardcode_minus_L_GCJ=yes |
| 17777 | hardcode_shlibpath_var_GCJ=no |
| 17778 | ;; |
| 17779 | |
| 17780 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 17781 | freebsd* | kfreebsd*-gnu | dragonfly*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17782 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 17783 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 17784 | hardcode_direct_GCJ=yes |
| 17785 | hardcode_shlibpath_var_GCJ=no |
| 17786 | ;; |
| 17787 | |
| 17788 | hpux9*) |
| 17789 | if test "$GCC" = yes; then |
| 17790 | 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' |
| 17791 | else |
| 17792 | 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' |
| 17793 | fi |
| 17794 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 17795 | hardcode_libdir_separator_GCJ=: |
| 17796 | hardcode_direct_GCJ=yes |
| 17797 | |
| 17798 | # hardcode_minus_L: Not really in the search PATH, |
| 17799 | # but as the default location of the library. |
| 17800 | hardcode_minus_L_GCJ=yes |
| 17801 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 17802 | ;; |
| 17803 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 17804 | hpux10*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17805 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 17806 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 17807 | else |
| 17808 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 17809 | fi |
| 17810 | if test "$with_gnu_ld" = no; then |
| 17811 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 17812 | hardcode_libdir_separator_GCJ=: |
| 17813 | |
| 17814 | hardcode_direct_GCJ=yes |
| 17815 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 17816 | |
| 17817 | # hardcode_minus_L: Not really in the search PATH, |
| 17818 | # but as the default location of the library. |
| 17819 | hardcode_minus_L_GCJ=yes |
| 17820 | fi |
| 17821 | ;; |
| 17822 | |
| 17823 | hpux11*) |
| 17824 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 17825 | case $host_cpu in |
| 17826 | hppa*64*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17827 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17828 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 17829 | ia64*) |
| 17830 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 17831 | ;; |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17832 | *) |
| 17833 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 17834 | ;; |
| 17835 | esac |
| 17836 | else |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 17837 | case $host_cpu in |
| 17838 | hppa*64*) |
| 17839 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17840 | ;; |
| 17841 | ia64*) |
| 17842 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17843 | ;; |
| 17844 | *) |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 17845 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17846 | ;; |
| 17847 | esac |
| 17848 | fi |
| 17849 | if test "$with_gnu_ld" = no; then |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 17850 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 17851 | hardcode_libdir_separator_GCJ=: |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17852 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 17853 | case $host_cpu in |
| 17854 | hppa*64*|ia64*) |
| 17855 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
| 17856 | hardcode_direct_GCJ=no |
| 17857 | hardcode_shlibpath_var_GCJ=no |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17858 | ;; |
| 17859 | *) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17860 | hardcode_direct_GCJ=yes |
| 17861 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 17862 | |
| 17863 | # hardcode_minus_L: Not really in the search PATH, |
| 17864 | # but as the default location of the library. |
| 17865 | hardcode_minus_L_GCJ=yes |
| 17866 | ;; |
| 17867 | esac |
| 17868 | fi |
| 17869 | ;; |
| 17870 | |
| 17871 | irix5* | irix6* | nonstopux*) |
| 17872 | if test "$GCC" = yes; then |
| 17873 | 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' |
| 17874 | else |
| 17875 | 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' |
| 17876 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
| 17877 | fi |
| 17878 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 17879 | hardcode_libdir_separator_GCJ=: |
| 17880 | link_all_deplibs_GCJ=yes |
| 17881 | ;; |
| 17882 | |
| 17883 | netbsd*) |
| 17884 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 17885 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 17886 | else |
| 17887 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 17888 | fi |
| 17889 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 17890 | hardcode_direct_GCJ=yes |
| 17891 | hardcode_shlibpath_var_GCJ=no |
| 17892 | ;; |
| 17893 | |
| 17894 | newsos6) |
| 17895 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17896 | hardcode_direct_GCJ=yes |
| 17897 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 17898 | hardcode_libdir_separator_GCJ=: |
| 17899 | hardcode_shlibpath_var_GCJ=no |
| 17900 | ;; |
| 17901 | |
| 17902 | openbsd*) |
| 17903 | hardcode_direct_GCJ=yes |
| 17904 | hardcode_shlibpath_var_GCJ=no |
| 17905 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 17906 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 17907 | archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17908 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 17909 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 17910 | else |
| 17911 | case $host_os in |
| 17912 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 17913 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 17914 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 17915 | ;; |
| 17916 | *) |
| 17917 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 17918 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 17919 | ;; |
| 17920 | esac |
| 17921 | fi |
| 17922 | ;; |
| 17923 | |
| 17924 | os2*) |
| 17925 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17926 | hardcode_minus_L_GCJ=yes |
| 17927 | allow_undefined_flag_GCJ=unsupported |
| 17928 | 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' |
| 17929 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 17930 | ;; |
| 17931 | |
| 17932 | osf3*) |
| 17933 | if test "$GCC" = yes; then |
| 17934 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 17935 | 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' |
| 17936 | else |
| 17937 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 17938 | 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' |
| 17939 | fi |
| 17940 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 17941 | hardcode_libdir_separator_GCJ=: |
| 17942 | ;; |
| 17943 | |
| 17944 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 17945 | if test "$GCC" = yes; then |
| 17946 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 17947 | 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' |
| 17948 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 17949 | else |
| 17950 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 17951 | 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' |
| 17952 | 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~ |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 17953 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17954 | |
| 17955 | # Both c and cxx compiler support -rpath directly |
| 17956 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
| 17957 | fi |
| 17958 | hardcode_libdir_separator_GCJ=: |
| 17959 | ;; |
| 17960 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17961 | solaris*) |
| 17962 | no_undefined_flag_GCJ=' -z text' |
| 17963 | if test "$GCC" = yes; then |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 17964 | wlarc='${wl}' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17965 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17966 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 17967 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 17968 | else |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 17969 | wlarc='' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17970 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17971 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 17972 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 17973 | fi |
| 17974 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 17975 | hardcode_shlibpath_var_GCJ=no |
| 17976 | case $host_os in |
| 17977 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 17978 | *) |
| 17979 | # The compiler driver will combine linker options so we |
| 17980 | # cannot just pass the convience library names through |
| 17981 | # without $wl, iff we do not link with $LD. |
| 17982 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 17983 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 17984 | case $wlarc in |
| 17985 | '') |
| 17986 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
| 17987 | *) |
| 17988 | whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
| 17989 | esac ;; |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17990 | esac |
| 17991 | link_all_deplibs_GCJ=yes |
| 17992 | ;; |
| 17993 | |
| 17994 | sunos4*) |
| 17995 | if test "x$host_vendor" = xsequent; then |
| 17996 | # Use $CC to link under sequent, because it throws in some extra .o |
| 17997 | # files that make .init and .fini sections work. |
| 17998 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17999 | else |
| 18000 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 18001 | fi |
| 18002 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 18003 | hardcode_direct_GCJ=yes |
| 18004 | hardcode_minus_L_GCJ=yes |
| 18005 | hardcode_shlibpath_var_GCJ=no |
| 18006 | ;; |
| 18007 | |
| 18008 | sysv4) |
| 18009 | case $host_vendor in |
| 18010 | sni) |
| 18011 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 18012 | hardcode_direct_GCJ=yes # is this really true??? |
| 18013 | ;; |
| 18014 | siemens) |
| 18015 | ## LD is ld it makes a PLAMLIB |
| 18016 | ## CC just makes a GrossModule. |
| 18017 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 18018 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
| 18019 | hardcode_direct_GCJ=no |
| 18020 | ;; |
| 18021 | motorola) |
| 18022 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 18023 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
| 18024 | ;; |
| 18025 | esac |
| 18026 | runpath_var='LD_RUN_PATH' |
| 18027 | hardcode_shlibpath_var_GCJ=no |
| 18028 | ;; |
| 18029 | |
| 18030 | sysv4.3*) |
| 18031 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 18032 | hardcode_shlibpath_var_GCJ=no |
| 18033 | export_dynamic_flag_spec_GCJ='-Bexport' |
| 18034 | ;; |
| 18035 | |
| 18036 | sysv4*MP*) |
| 18037 | if test -d /usr/nec; then |
| 18038 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 18039 | hardcode_shlibpath_var_GCJ=no |
| 18040 | runpath_var=LD_RUN_PATH |
| 18041 | hardcode_runpath_var=yes |
| 18042 | ld_shlibs_GCJ=yes |
| 18043 | fi |
| 18044 | ;; |
| 18045 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 18046 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 18047 | no_undefined_flag_GCJ='${wl}-z,text' |
| 18048 | archive_cmds_need_lc_GCJ=no |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18049 | hardcode_shlibpath_var_GCJ=no |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 18050 | runpath_var='LD_RUN_PATH' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18051 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18052 | if test "$GCC" = yes; then |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 18053 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18054 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18055 | else |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 18056 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18057 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18058 | fi |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18059 | ;; |
| 18060 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 18061 | sysv5* | sco3.2v5* | sco5v6*) |
| 18062 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 18063 | # link with -lc, and that would cause any symbols used from libc to |
| 18064 | # always be unresolved, which means just about no library would |
| 18065 | # ever link correctly. If we're not using GNU ld we use -z text |
| 18066 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 18067 | # as -z defs. |
| 18068 | no_undefined_flag_GCJ='${wl}-z,text' |
| 18069 | allow_undefined_flag_GCJ='${wl}-z,nodefs' |
| 18070 | archive_cmds_need_lc_GCJ=no |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18071 | hardcode_shlibpath_var_GCJ=no |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 18072 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 18073 | hardcode_libdir_separator_GCJ=':' |
| 18074 | link_all_deplibs_GCJ=yes |
| 18075 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18076 | runpath_var='LD_RUN_PATH' |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 18077 | |
| 18078 | if test "$GCC" = yes; then |
| 18079 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18080 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18081 | else |
| 18082 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18083 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18084 | fi |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18085 | ;; |
| 18086 | |
| 18087 | uts4*) |
| 18088 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 18089 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 18090 | hardcode_shlibpath_var_GCJ=no |
| 18091 | ;; |
| 18092 | |
| 18093 | *) |
| 18094 | ld_shlibs_GCJ=no |
| 18095 | ;; |
| 18096 | esac |
| 18097 | fi |
| 18098 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18099 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
| 18100 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18101 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
| 18102 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18103 | # |
| 18104 | # Do we need to explicitly link libc? |
| 18105 | # |
| 18106 | case "x$archive_cmds_need_lc_GCJ" in |
| 18107 | x|xyes) |
| 18108 | # Assume -lc should be added |
| 18109 | archive_cmds_need_lc_GCJ=yes |
| 18110 | |
| 18111 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 18112 | case $archive_cmds_GCJ in |
| 18113 | *'~'*) |
| 18114 | # FIXME: we may have to deal with multi-command sequences. |
| 18115 | ;; |
| 18116 | '$CC '*) |
| 18117 | # Test whether the compiler implicitly links with -lc since on some |
| 18118 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 18119 | # to ld, don't add -lc before -lgcc. |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18120 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 18121 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18122 | $rm conftest* |
| 18123 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 18124 | |
| 18125 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18126 | (eval $ac_compile) 2>&5 |
| 18127 | ac_status=$? |
| 18128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18129 | (exit $ac_status); } 2>conftest.err; then |
| 18130 | soname=conftest |
| 18131 | lib=conftest |
| 18132 | libobjs=conftest.$ac_objext |
| 18133 | deplibs= |
| 18134 | wl=$lt_prog_compiler_wl_GCJ |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 18135 | pic_flag=$lt_prog_compiler_pic_GCJ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18136 | compiler_flags=-v |
| 18137 | linker_flags=-v |
| 18138 | verstring= |
| 18139 | output_objdir=. |
| 18140 | libname=conftest |
| 18141 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
| 18142 | allow_undefined_flag_GCJ= |
| 18143 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 18144 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 18145 | ac_status=$? |
| 18146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18147 | (exit $ac_status); } |
| 18148 | then |
| 18149 | archive_cmds_need_lc_GCJ=no |
| 18150 | else |
| 18151 | archive_cmds_need_lc_GCJ=yes |
| 18152 | fi |
| 18153 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
| 18154 | else |
| 18155 | cat conftest.err 1>&5 |
| 18156 | fi |
| 18157 | $rm conftest* |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18158 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
| 18159 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18160 | ;; |
| 18161 | esac |
| 18162 | fi |
| 18163 | ;; |
| 18164 | esac |
| 18165 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18166 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 18167 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18168 | library_names_spec= |
| 18169 | libname_spec='lib$name' |
| 18170 | soname_spec= |
| 18171 | shrext_cmds=".so" |
| 18172 | postinstall_cmds= |
| 18173 | postuninstall_cmds= |
| 18174 | finish_cmds= |
| 18175 | finish_eval= |
| 18176 | shlibpath_var= |
| 18177 | shlibpath_overrides_runpath=unknown |
| 18178 | version_type=none |
| 18179 | dynamic_linker="$host_os ld.so" |
| 18180 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 18181 | if test "$GCC" = yes; then |
| 18182 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 18183 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 18184 | # if the path contains ";" then we assume it to be the separator |
| 18185 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 18186 | # assumed that no part of a normal pathname contains ";" but that should |
| 18187 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 18188 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 18189 | else |
| 18190 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 18191 | fi |
| 18192 | else |
| 18193 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 18194 | fi |
| 18195 | need_lib_prefix=unknown |
| 18196 | hardcode_into_libs=no |
| 18197 | |
| 18198 | # when you set need_version to no, make sure it does not cause -set_version |
| 18199 | # flags to be left without arguments |
| 18200 | need_version=unknown |
| 18201 | |
| 18202 | case $host_os in |
| 18203 | aix3*) |
| 18204 | version_type=linux |
| 18205 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 18206 | shlibpath_var=LIBPATH |
| 18207 | |
| 18208 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 18209 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18210 | ;; |
| 18211 | |
| 18212 | aix4* | aix5*) |
| 18213 | version_type=linux |
| 18214 | need_lib_prefix=no |
| 18215 | need_version=no |
| 18216 | hardcode_into_libs=yes |
| 18217 | if test "$host_cpu" = ia64; then |
| 18218 | # AIX 5 supports IA64 |
| 18219 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 18220 | shlibpath_var=LD_LIBRARY_PATH |
| 18221 | else |
| 18222 | # With GCC up to 2.95.x, collect2 would create an import file |
| 18223 | # for dependence libraries. The import file would start with |
| 18224 | # the line `#! .'. This would cause the generated library to |
| 18225 | # depend on `.', always an invalid library. This was fixed in |
| 18226 | # development snapshots of GCC prior to 3.0. |
| 18227 | case $host_os in |
| 18228 | aix4 | aix4.[01] | aix4.[01].*) |
| 18229 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 18230 | echo ' yes ' |
| 18231 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 18232 | : |
| 18233 | else |
| 18234 | can_build_shared=no |
| 18235 | fi |
| 18236 | ;; |
| 18237 | esac |
| 18238 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 18239 | # soname into executable. Probably we can add versioning support to |
| 18240 | # collect2, so additional links can be useful in future. |
| 18241 | if test "$aix_use_runtimelinking" = yes; then |
| 18242 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 18243 | # instead of lib<name>.a to let people know that these are not |
| 18244 | # typical AIX shared libraries. |
| 18245 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18246 | else |
| 18247 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 18248 | # and later when we are not doing run time linking. |
| 18249 | library_names_spec='${libname}${release}.a $libname.a' |
| 18250 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18251 | fi |
| 18252 | shlibpath_var=LIBPATH |
| 18253 | fi |
| 18254 | ;; |
| 18255 | |
| 18256 | amigaos*) |
| 18257 | library_names_spec='$libname.ixlibrary $libname.a' |
| 18258 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 18259 | 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' |
| 18260 | ;; |
| 18261 | |
| 18262 | beos*) |
| 18263 | library_names_spec='${libname}${shared_ext}' |
| 18264 | dynamic_linker="$host_os ld.so" |
| 18265 | shlibpath_var=LIBRARY_PATH |
| 18266 | ;; |
| 18267 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 18268 | bsdi[45]*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18269 | version_type=linux |
| 18270 | need_version=no |
| 18271 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18272 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18273 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 18274 | shlibpath_var=LD_LIBRARY_PATH |
| 18275 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 18276 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 18277 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 18278 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 18279 | # libtool to hard-code these into programs |
| 18280 | ;; |
| 18281 | |
| 18282 | cygwin* | mingw* | pw32*) |
| 18283 | version_type=windows |
| 18284 | shrext_cmds=".dll" |
| 18285 | need_version=no |
| 18286 | need_lib_prefix=no |
| 18287 | |
| 18288 | case $GCC,$host_os in |
| 18289 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 18290 | library_names_spec='$libname.dll.a' |
| 18291 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 18292 | postinstall_cmds='base_file=`basename \${file}`~ |
| 18293 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 18294 | dldir=$destdir/`dirname \$dlpath`~ |
| 18295 | test -d \$dldir || mkdir -p \$dldir~ |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 18296 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 18297 | chmod a+x \$dldir/$dlname' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18298 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 18299 | dlpath=$dir/\$dldll~ |
| 18300 | $rm \$dlpath' |
| 18301 | shlibpath_overrides_runpath=yes |
| 18302 | |
| 18303 | case $host_os in |
| 18304 | cygwin*) |
| 18305 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 18306 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 18307 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 18308 | ;; |
| 18309 | mingw*) |
| 18310 | # MinGW DLLs use traditional 'lib' prefix |
| 18311 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 18312 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 18313 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 18314 | # It is most probably a Windows format PATH printed by |
| 18315 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 18316 | # path with ; separators, and with drive letters. We can handle the |
| 18317 | # drive letters (cygwin fileutils understands them), so leave them, |
| 18318 | # especially as we might pass files found there to a mingw objdump, |
| 18319 | # which wouldn't understand a cygwinified path. Ahh. |
| 18320 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 18321 | else |
| 18322 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 18323 | fi |
| 18324 | ;; |
| 18325 | pw32*) |
| 18326 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 18327 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18328 | ;; |
| 18329 | esac |
| 18330 | ;; |
| 18331 | |
| 18332 | *) |
| 18333 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 18334 | ;; |
| 18335 | esac |
| 18336 | dynamic_linker='Win32 ld.exe' |
| 18337 | # FIXME: first we should search . and the directory the executable is in |
| 18338 | shlibpath_var=PATH |
| 18339 | ;; |
| 18340 | |
| 18341 | darwin* | rhapsody*) |
| 18342 | dynamic_linker="$host_os dyld" |
| 18343 | version_type=darwin |
| 18344 | need_lib_prefix=no |
| 18345 | need_version=no |
| 18346 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 18347 | soname_spec='${libname}${release}${major}$shared_ext' |
| 18348 | shlibpath_overrides_runpath=yes |
| 18349 | shlibpath_var=DYLD_LIBRARY_PATH |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 18350 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18351 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 18352 | if test "$GCC" = yes; then |
| 18353 | 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"` |
| 18354 | else |
| 18355 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 18356 | fi |
| 18357 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 18358 | ;; |
| 18359 | |
| 18360 | dgux*) |
| 18361 | version_type=linux |
| 18362 | need_lib_prefix=no |
| 18363 | need_version=no |
| 18364 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 18365 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18366 | shlibpath_var=LD_LIBRARY_PATH |
| 18367 | ;; |
| 18368 | |
| 18369 | freebsd1*) |
| 18370 | dynamic_linker=no |
| 18371 | ;; |
| 18372 | |
| 18373 | kfreebsd*-gnu) |
| 18374 | version_type=linux |
| 18375 | need_lib_prefix=no |
| 18376 | need_version=no |
| 18377 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 18378 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18379 | shlibpath_var=LD_LIBRARY_PATH |
| 18380 | shlibpath_overrides_runpath=no |
| 18381 | hardcode_into_libs=yes |
| 18382 | dynamic_linker='GNU ld.so' |
| 18383 | ;; |
| 18384 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 18385 | freebsd* | dragonfly*) |
| 18386 | # DragonFly does not have aout. When/if they implement a new |
| 18387 | # versioning mechanism, adjust this. |
| 18388 | if test -x /usr/bin/objformat; then |
| 18389 | objformat=`/usr/bin/objformat` |
| 18390 | else |
| 18391 | case $host_os in |
| 18392 | freebsd[123]*) objformat=aout ;; |
| 18393 | *) objformat=elf ;; |
| 18394 | esac |
| 18395 | fi |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18396 | version_type=freebsd-$objformat |
| 18397 | case $version_type in |
| 18398 | freebsd-elf*) |
| 18399 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 18400 | need_version=no |
| 18401 | need_lib_prefix=no |
| 18402 | ;; |
| 18403 | freebsd-*) |
| 18404 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 18405 | need_version=yes |
| 18406 | ;; |
| 18407 | esac |
| 18408 | shlibpath_var=LD_LIBRARY_PATH |
| 18409 | case $host_os in |
| 18410 | freebsd2*) |
| 18411 | shlibpath_overrides_runpath=yes |
| 18412 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 18413 | freebsd3.[01]* | freebsdelf3.[01]*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18414 | shlibpath_overrides_runpath=yes |
| 18415 | hardcode_into_libs=yes |
| 18416 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 18417 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 18418 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18419 | shlibpath_overrides_runpath=no |
| 18420 | hardcode_into_libs=yes |
| 18421 | ;; |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 18422 | freebsd*) # from 4.6 on |
| 18423 | shlibpath_overrides_runpath=yes |
| 18424 | hardcode_into_libs=yes |
| 18425 | ;; |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18426 | esac |
| 18427 | ;; |
| 18428 | |
| 18429 | gnu*) |
| 18430 | version_type=linux |
| 18431 | need_lib_prefix=no |
| 18432 | need_version=no |
| 18433 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 18434 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18435 | shlibpath_var=LD_LIBRARY_PATH |
| 18436 | hardcode_into_libs=yes |
| 18437 | ;; |
| 18438 | |
| 18439 | hpux9* | hpux10* | hpux11*) |
| 18440 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 18441 | # link against other versions. |
| 18442 | version_type=sunos |
| 18443 | need_lib_prefix=no |
| 18444 | need_version=no |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 18445 | case $host_cpu in |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18446 | ia64*) |
| 18447 | shrext_cmds='.so' |
| 18448 | hardcode_into_libs=yes |
| 18449 | dynamic_linker="$host_os dld.so" |
| 18450 | shlibpath_var=LD_LIBRARY_PATH |
| 18451 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 18452 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18453 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18454 | if test "X$HPUX_IA64_MODE" = X32; then |
| 18455 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 18456 | else |
| 18457 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 18458 | fi |
| 18459 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 18460 | ;; |
| 18461 | hppa*64*) |
| 18462 | shrext_cmds='.sl' |
| 18463 | hardcode_into_libs=yes |
| 18464 | dynamic_linker="$host_os dld.sl" |
| 18465 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 18466 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 18467 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18468 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18469 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 18470 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 18471 | ;; |
| 18472 | *) |
| 18473 | shrext_cmds='.sl' |
| 18474 | dynamic_linker="$host_os dld.sl" |
| 18475 | shlibpath_var=SHLIB_PATH |
| 18476 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 18477 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18478 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18479 | ;; |
| 18480 | esac |
| 18481 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 18482 | postinstall_cmds='chmod 555 $lib' |
| 18483 | ;; |
| 18484 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 18485 | interix3*) |
| 18486 | version_type=linux |
| 18487 | need_lib_prefix=no |
| 18488 | need_version=no |
| 18489 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 18490 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18491 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 18492 | shlibpath_var=LD_LIBRARY_PATH |
| 18493 | shlibpath_overrides_runpath=no |
| 18494 | hardcode_into_libs=yes |
| 18495 | ;; |
| 18496 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18497 | irix5* | irix6* | nonstopux*) |
| 18498 | case $host_os in |
| 18499 | nonstopux*) version_type=nonstopux ;; |
| 18500 | *) |
| 18501 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 18502 | version_type=linux |
| 18503 | else |
| 18504 | version_type=irix |
| 18505 | fi ;; |
| 18506 | esac |
| 18507 | need_lib_prefix=no |
| 18508 | need_version=no |
| 18509 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18510 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 18511 | case $host_os in |
| 18512 | irix5* | nonstopux*) |
| 18513 | libsuff= shlibsuff= |
| 18514 | ;; |
| 18515 | *) |
| 18516 | case $LD in # libtool.m4 will add one of these switches to LD |
| 18517 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 18518 | libsuff= shlibsuff= libmagic=32-bit;; |
| 18519 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 18520 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 18521 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 18522 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 18523 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 18524 | esac |
| 18525 | ;; |
| 18526 | esac |
| 18527 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 18528 | shlibpath_overrides_runpath=no |
| 18529 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 18530 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 18531 | hardcode_into_libs=yes |
| 18532 | ;; |
| 18533 | |
| 18534 | # No shared lib support for Linux oldld, aout, or coff. |
| 18535 | linux*oldld* | linux*aout* | linux*coff*) |
| 18536 | dynamic_linker=no |
| 18537 | ;; |
| 18538 | |
| 18539 | # This must be Linux ELF. |
| 18540 | linux*) |
| 18541 | version_type=linux |
| 18542 | need_lib_prefix=no |
| 18543 | need_version=no |
| 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 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 18547 | shlibpath_var=LD_LIBRARY_PATH |
| 18548 | shlibpath_overrides_runpath=no |
| 18549 | # This implies no fast_install, which is unacceptable. |
| 18550 | # Some rework will be needed to allow for fast_install |
| 18551 | # before this can be enabled. |
| 18552 | hardcode_into_libs=yes |
| 18553 | |
| 18554 | # Append ld.so.conf contents to the search path |
| 18555 | if test -f /etc/ld.so.conf; then |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 18556 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18557 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 18558 | fi |
| 18559 | |
| 18560 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 18561 | # powerpc, because MkLinux only supported shared libraries with the |
| 18562 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 18563 | # most powerpc-linux boxes support dynamic linking these days and |
| 18564 | # people can always --disable-shared, the test was removed, and we |
| 18565 | # assume the GNU/Linux dynamic linker is in use. |
| 18566 | dynamic_linker='GNU/Linux ld.so' |
| 18567 | ;; |
| 18568 | |
| 18569 | knetbsd*-gnu) |
| 18570 | version_type=linux |
| 18571 | need_lib_prefix=no |
| 18572 | need_version=no |
| 18573 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 18574 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18575 | shlibpath_var=LD_LIBRARY_PATH |
| 18576 | shlibpath_overrides_runpath=no |
| 18577 | hardcode_into_libs=yes |
| 18578 | dynamic_linker='GNU ld.so' |
| 18579 | ;; |
| 18580 | |
| 18581 | netbsd*) |
| 18582 | version_type=sunos |
| 18583 | need_lib_prefix=no |
| 18584 | need_version=no |
| 18585 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 18586 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 18587 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 18588 | dynamic_linker='NetBSD (a.out) ld.so' |
| 18589 | else |
| 18590 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 18591 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18592 | dynamic_linker='NetBSD ld.elf_so' |
| 18593 | fi |
| 18594 | shlibpath_var=LD_LIBRARY_PATH |
| 18595 | shlibpath_overrides_runpath=yes |
| 18596 | hardcode_into_libs=yes |
| 18597 | ;; |
| 18598 | |
| 18599 | newsos6) |
| 18600 | version_type=linux |
| 18601 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18602 | shlibpath_var=LD_LIBRARY_PATH |
| 18603 | shlibpath_overrides_runpath=yes |
| 18604 | ;; |
| 18605 | |
| 18606 | nto-qnx*) |
| 18607 | version_type=linux |
| 18608 | need_lib_prefix=no |
| 18609 | need_version=no |
| 18610 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18611 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18612 | shlibpath_var=LD_LIBRARY_PATH |
| 18613 | shlibpath_overrides_runpath=yes |
| 18614 | ;; |
| 18615 | |
| 18616 | openbsd*) |
| 18617 | version_type=sunos |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 18618 | sys_lib_dlsearch_path_spec="/usr/lib" |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18619 | need_lib_prefix=no |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 18620 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 18621 | case $host_os in |
| 18622 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 18623 | *) need_version=no ;; |
| 18624 | esac |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18625 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 18626 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 18627 | shlibpath_var=LD_LIBRARY_PATH |
| 18628 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 18629 | case $host_os in |
| 18630 | openbsd2.[89] | openbsd2.[89].*) |
| 18631 | shlibpath_overrides_runpath=no |
| 18632 | ;; |
| 18633 | *) |
| 18634 | shlibpath_overrides_runpath=yes |
| 18635 | ;; |
| 18636 | esac |
| 18637 | else |
| 18638 | shlibpath_overrides_runpath=yes |
| 18639 | fi |
| 18640 | ;; |
| 18641 | |
| 18642 | os2*) |
| 18643 | libname_spec='$name' |
| 18644 | shrext_cmds=".dll" |
| 18645 | need_lib_prefix=no |
| 18646 | library_names_spec='$libname${shared_ext} $libname.a' |
| 18647 | dynamic_linker='OS/2 ld.exe' |
| 18648 | shlibpath_var=LIBPATH |
| 18649 | ;; |
| 18650 | |
| 18651 | osf3* | osf4* | osf5*) |
| 18652 | version_type=osf |
| 18653 | need_lib_prefix=no |
| 18654 | need_version=no |
| 18655 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18656 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18657 | shlibpath_var=LD_LIBRARY_PATH |
| 18658 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 18659 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 18660 | ;; |
| 18661 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18662 | solaris*) |
| 18663 | version_type=linux |
| 18664 | need_lib_prefix=no |
| 18665 | need_version=no |
| 18666 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18667 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18668 | shlibpath_var=LD_LIBRARY_PATH |
| 18669 | shlibpath_overrides_runpath=yes |
| 18670 | hardcode_into_libs=yes |
| 18671 | # ldd complains unless libraries are executable |
| 18672 | postinstall_cmds='chmod +x $lib' |
| 18673 | ;; |
| 18674 | |
| 18675 | sunos4*) |
| 18676 | version_type=sunos |
| 18677 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 18678 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 18679 | shlibpath_var=LD_LIBRARY_PATH |
| 18680 | shlibpath_overrides_runpath=yes |
| 18681 | if test "$with_gnu_ld" = yes; then |
| 18682 | need_lib_prefix=no |
| 18683 | fi |
| 18684 | need_version=yes |
| 18685 | ;; |
| 18686 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 18687 | sysv4 | sysv4.3*) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18688 | version_type=linux |
| 18689 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18690 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18691 | shlibpath_var=LD_LIBRARY_PATH |
| 18692 | case $host_vendor in |
| 18693 | sni) |
| 18694 | shlibpath_overrides_runpath=no |
| 18695 | need_lib_prefix=no |
| 18696 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 18697 | runpath_var=LD_RUN_PATH |
| 18698 | ;; |
| 18699 | siemens) |
| 18700 | need_lib_prefix=no |
| 18701 | ;; |
| 18702 | motorola) |
| 18703 | need_lib_prefix=no |
| 18704 | need_version=no |
| 18705 | shlibpath_overrides_runpath=no |
| 18706 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 18707 | ;; |
| 18708 | esac |
| 18709 | ;; |
| 18710 | |
| 18711 | sysv4*MP*) |
| 18712 | if test -d /usr/nec ;then |
| 18713 | version_type=linux |
| 18714 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 18715 | soname_spec='$libname${shared_ext}.$major' |
| 18716 | shlibpath_var=LD_LIBRARY_PATH |
| 18717 | fi |
| 18718 | ;; |
| 18719 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 18720 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 18721 | version_type=freebsd-elf |
| 18722 | need_lib_prefix=no |
| 18723 | need_version=no |
| 18724 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 18725 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18726 | shlibpath_var=LD_LIBRARY_PATH |
| 18727 | hardcode_into_libs=yes |
| 18728 | if test "$with_gnu_ld" = yes; then |
| 18729 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 18730 | shlibpath_overrides_runpath=no |
| 18731 | else |
| 18732 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 18733 | shlibpath_overrides_runpath=yes |
| 18734 | case $host_os in |
| 18735 | sco3.2v5*) |
| 18736 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 18737 | ;; |
| 18738 | esac |
| 18739 | fi |
| 18740 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 18741 | ;; |
| 18742 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18743 | uts4*) |
| 18744 | version_type=linux |
| 18745 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18746 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18747 | shlibpath_var=LD_LIBRARY_PATH |
| 18748 | ;; |
| 18749 | |
| 18750 | *) |
| 18751 | dynamic_linker=no |
| 18752 | ;; |
| 18753 | esac |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18754 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 18755 | echo "${ECHO_T}$dynamic_linker" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18756 | test "$dynamic_linker" = no && can_build_shared=no |
| 18757 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 18758 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 18759 | if test "$GCC" = yes; then |
| 18760 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 18761 | fi |
| 18762 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18763 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 18764 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18765 | hardcode_action_GCJ= |
| 18766 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 18767 | test -n "$runpath_var_GCJ" || \ |
| 18768 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18769 | |
| 18770 | # We can hardcode non-existant directories. |
| 18771 | if test "$hardcode_direct_GCJ" != no && |
| 18772 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 18773 | # have to relink, otherwise we might link with an installed library |
| 18774 | # when we should be linking with a yet-to-be-installed one |
| 18775 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
| 18776 | test "$hardcode_minus_L_GCJ" != no; then |
| 18777 | # Linking always hardcodes the temporary library directory. |
| 18778 | hardcode_action_GCJ=relink |
| 18779 | else |
| 18780 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 18781 | hardcode_action_GCJ=immediate |
| 18782 | fi |
| 18783 | else |
| 18784 | # We cannot hardcode anything, or else we can only hardcode existing |
| 18785 | # directories. |
| 18786 | hardcode_action_GCJ=unsupported |
| 18787 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 18788 | { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
| 18789 | echo "${ECHO_T}$hardcode_action_GCJ" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18790 | |
| 18791 | if test "$hardcode_action_GCJ" = relink; then |
| 18792 | # Fast installation is not supported |
| 18793 | enable_fast_install=no |
| 18794 | elif test "$shlibpath_overrides_runpath" = yes || |
| 18795 | test "$enable_shared" = no; then |
| 18796 | # Fast installation is not necessary |
| 18797 | enable_fast_install=needless |
| 18798 | fi |
| 18799 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18800 | |
| 18801 | # The else clause should only fire when bootstrapping the |
| 18802 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 18803 | # with your package, and you will get complaints that there are |
| 18804 | # no rules to generate ltmain.sh. |
| 18805 | if test -f "$ltmain"; then |
| 18806 | # See if we are running on zsh, and set the options which allow our commands through |
| 18807 | # without removal of \ escapes. |
| 18808 | if test -n "${ZSH_VERSION+set}" ; then |
| 18809 | setopt NO_GLOB_SUBST |
| 18810 | fi |
| 18811 | # Now quote all the things that may contain metacharacters while being |
| 18812 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 18813 | # variables and quote the copies for generation of the libtool script. |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 18814 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18815 | SED SHELL STRIP \ |
| 18816 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 18817 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 18818 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 18819 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 18820 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 18821 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 18822 | old_postinstall_cmds old_postuninstall_cmds \ |
| 18823 | compiler_GCJ \ |
| 18824 | CC_GCJ \ |
| 18825 | LD_GCJ \ |
| 18826 | lt_prog_compiler_wl_GCJ \ |
| 18827 | lt_prog_compiler_pic_GCJ \ |
| 18828 | lt_prog_compiler_static_GCJ \ |
| 18829 | lt_prog_compiler_no_builtin_flag_GCJ \ |
| 18830 | export_dynamic_flag_spec_GCJ \ |
| 18831 | thread_safe_flag_spec_GCJ \ |
| 18832 | whole_archive_flag_spec_GCJ \ |
| 18833 | enable_shared_with_static_runtimes_GCJ \ |
| 18834 | old_archive_cmds_GCJ \ |
| 18835 | old_archive_from_new_cmds_GCJ \ |
| 18836 | predep_objects_GCJ \ |
| 18837 | postdep_objects_GCJ \ |
| 18838 | predeps_GCJ \ |
| 18839 | postdeps_GCJ \ |
| 18840 | compiler_lib_search_path_GCJ \ |
| 18841 | archive_cmds_GCJ \ |
| 18842 | archive_expsym_cmds_GCJ \ |
| 18843 | postinstall_cmds_GCJ \ |
| 18844 | postuninstall_cmds_GCJ \ |
| 18845 | old_archive_from_expsyms_cmds_GCJ \ |
| 18846 | allow_undefined_flag_GCJ \ |
| 18847 | no_undefined_flag_GCJ \ |
| 18848 | export_symbols_cmds_GCJ \ |
| 18849 | hardcode_libdir_flag_spec_GCJ \ |
| 18850 | hardcode_libdir_flag_spec_ld_GCJ \ |
| 18851 | hardcode_libdir_separator_GCJ \ |
| 18852 | hardcode_automatic_GCJ \ |
| 18853 | module_cmds_GCJ \ |
| 18854 | module_expsym_cmds_GCJ \ |
| 18855 | lt_cv_prog_compiler_c_o_GCJ \ |
| 18856 | exclude_expsyms_GCJ \ |
| 18857 | include_expsyms_GCJ; do |
| 18858 | |
| 18859 | case $var in |
| 18860 | old_archive_cmds_GCJ | \ |
| 18861 | old_archive_from_new_cmds_GCJ | \ |
| 18862 | archive_cmds_GCJ | \ |
| 18863 | archive_expsym_cmds_GCJ | \ |
| 18864 | module_cmds_GCJ | \ |
| 18865 | module_expsym_cmds_GCJ | \ |
| 18866 | old_archive_from_expsyms_cmds_GCJ | \ |
| 18867 | export_symbols_cmds_GCJ | \ |
| 18868 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 18869 | postinstall_cmds | postuninstall_cmds | \ |
| 18870 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 18871 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 18872 | # Double-quote double-evaled strings. |
| 18873 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 18874 | ;; |
| 18875 | *) |
| 18876 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 18877 | ;; |
| 18878 | esac |
| 18879 | done |
| 18880 | |
| 18881 | case $lt_echo in |
| 18882 | *'\$0 --fallback-echo"') |
| 18883 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 18884 | ;; |
| 18885 | esac |
| 18886 | |
| 18887 | cfgfile="$ofile" |
| 18888 | |
| 18889 | cat <<__EOF__ >> "$cfgfile" |
| 18890 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 18891 | |
| 18892 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 18893 | |
| 18894 | # Shell to use when invoking shell scripts. |
| 18895 | SHELL=$lt_SHELL |
| 18896 | |
| 18897 | # Whether or not to build shared libraries. |
| 18898 | build_libtool_libs=$enable_shared |
| 18899 | |
| 18900 | # Whether or not to build static libraries. |
| 18901 | build_old_libs=$enable_static |
| 18902 | |
| 18903 | # Whether or not to add -lc for building shared libraries. |
| 18904 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
| 18905 | |
| 18906 | # Whether or not to disallow shared libs when runtime libs are static |
| 18907 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
| 18908 | |
| 18909 | # Whether or not to optimize for fast installation. |
| 18910 | fast_install=$enable_fast_install |
| 18911 | |
| 18912 | # The host system. |
| 18913 | host_alias=$host_alias |
| 18914 | host=$host |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 18915 | host_os=$host_os |
| 18916 | |
| 18917 | # The build system. |
| 18918 | build_alias=$build_alias |
| 18919 | build=$build |
| 18920 | build_os=$build_os |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18921 | |
| 18922 | # An echo program that does not interpret backslashes. |
| 18923 | echo=$lt_echo |
| 18924 | |
| 18925 | # The archiver. |
| 18926 | AR=$lt_AR |
| 18927 | AR_FLAGS=$lt_AR_FLAGS |
| 18928 | |
| 18929 | # A C compiler. |
| 18930 | LTCC=$lt_LTCC |
| 18931 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 18932 | # LTCC compiler flags. |
| 18933 | LTCFLAGS=$lt_LTCFLAGS |
| 18934 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18935 | # A language-specific compiler. |
| 18936 | CC=$lt_compiler_GCJ |
| 18937 | |
| 18938 | # Is the compiler the GNU C compiler? |
| 18939 | with_gcc=$GCC_GCJ |
| 18940 | |
| 18941 | # An ERE matcher. |
| 18942 | EGREP=$lt_EGREP |
| 18943 | |
| 18944 | # The linker used to build libraries. |
| 18945 | LD=$lt_LD_GCJ |
| 18946 | |
| 18947 | # Whether we need hard or soft links. |
| 18948 | LN_S=$lt_LN_S |
| 18949 | |
| 18950 | # A BSD-compatible nm program. |
| 18951 | NM=$lt_NM |
| 18952 | |
| 18953 | # A symbol stripping program |
| 18954 | STRIP=$lt_STRIP |
| 18955 | |
| 18956 | # Used to examine libraries when file_magic_cmd begins "file" |
| 18957 | MAGIC_CMD=$MAGIC_CMD |
| 18958 | |
| 18959 | # Used on cygwin: DLL creation program. |
| 18960 | DLLTOOL="$DLLTOOL" |
| 18961 | |
| 18962 | # Used on cygwin: object dumper. |
| 18963 | OBJDUMP="$OBJDUMP" |
| 18964 | |
| 18965 | # Used on cygwin: assembler. |
| 18966 | AS="$AS" |
| 18967 | |
| 18968 | # The name of the directory that contains temporary libtool files. |
| 18969 | objdir=$objdir |
| 18970 | |
| 18971 | # How to create reloadable object files. |
| 18972 | reload_flag=$lt_reload_flag |
| 18973 | reload_cmds=$lt_reload_cmds |
| 18974 | |
| 18975 | # How to pass a linker flag through the compiler. |
| 18976 | wl=$lt_lt_prog_compiler_wl_GCJ |
| 18977 | |
| 18978 | # Object file suffix (normally "o"). |
| 18979 | objext="$ac_objext" |
| 18980 | |
| 18981 | # Old archive suffix (normally "a"). |
| 18982 | libext="$libext" |
| 18983 | |
| 18984 | # Shared library suffix (normally ".so"). |
| 18985 | shrext_cmds='$shrext_cmds' |
| 18986 | |
| 18987 | # Executable file suffix (normally ""). |
| 18988 | exeext="$exeext" |
| 18989 | |
| 18990 | # Additional compiler flags for building library objects. |
| 18991 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
| 18992 | pic_mode=$pic_mode |
| 18993 | |
| 18994 | # What is the maximum length of a command? |
| 18995 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 18996 | |
| 18997 | # Does compiler simultaneously support -c and -o options? |
| 18998 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
| 18999 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 19000 | # Must we lock files when doing compilation? |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19001 | need_locks=$lt_need_locks |
| 19002 | |
| 19003 | # Do we need the lib prefix for modules? |
| 19004 | need_lib_prefix=$need_lib_prefix |
| 19005 | |
| 19006 | # Do we need a version for libraries? |
| 19007 | need_version=$need_version |
| 19008 | |
| 19009 | # Whether dlopen is supported. |
| 19010 | dlopen_support=$enable_dlopen |
| 19011 | |
| 19012 | # Whether dlopen of programs is supported. |
| 19013 | dlopen_self=$enable_dlopen_self |
| 19014 | |
| 19015 | # Whether dlopen of statically linked programs is supported. |
| 19016 | dlopen_self_static=$enable_dlopen_self_static |
| 19017 | |
| 19018 | # Compiler flag to prevent dynamic linking. |
| 19019 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
| 19020 | |
| 19021 | # Compiler flag to turn off builtin functions. |
| 19022 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
| 19023 | |
| 19024 | # Compiler flag to allow reflexive dlopens. |
| 19025 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
| 19026 | |
| 19027 | # Compiler flag to generate shared objects directly from archives. |
| 19028 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
| 19029 | |
| 19030 | # Compiler flag to generate thread-safe objects. |
| 19031 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
| 19032 | |
| 19033 | # Library versioning type. |
| 19034 | version_type=$version_type |
| 19035 | |
| 19036 | # Format of library name prefix. |
| 19037 | libname_spec=$lt_libname_spec |
| 19038 | |
| 19039 | # List of archive names. First name is the real one, the rest are links. |
| 19040 | # The last name is the one that the linker finds with -lNAME. |
| 19041 | library_names_spec=$lt_library_names_spec |
| 19042 | |
| 19043 | # The coded name of the library, if different from the real name. |
| 19044 | soname_spec=$lt_soname_spec |
| 19045 | |
| 19046 | # Commands used to build and install an old-style archive. |
| 19047 | RANLIB=$lt_RANLIB |
| 19048 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
| 19049 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 19050 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 19051 | |
| 19052 | # Create an old-style archive from a shared archive. |
| 19053 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
| 19054 | |
| 19055 | # Create a temporary old-style archive to link instead of a shared archive. |
| 19056 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
| 19057 | |
| 19058 | # Commands used to build and install a shared archive. |
| 19059 | archive_cmds=$lt_archive_cmds_GCJ |
| 19060 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
| 19061 | postinstall_cmds=$lt_postinstall_cmds |
| 19062 | postuninstall_cmds=$lt_postuninstall_cmds |
| 19063 | |
| 19064 | # Commands used to build a loadable module (assumed same as above if empty) |
| 19065 | module_cmds=$lt_module_cmds_GCJ |
| 19066 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
| 19067 | |
| 19068 | # Commands to strip libraries. |
| 19069 | old_striplib=$lt_old_striplib |
| 19070 | striplib=$lt_striplib |
| 19071 | |
| 19072 | # Dependencies to place before the objects being linked to create a |
| 19073 | # shared library. |
| 19074 | predep_objects=$lt_predep_objects_GCJ |
| 19075 | |
| 19076 | # Dependencies to place after the objects being linked to create a |
| 19077 | # shared library. |
| 19078 | postdep_objects=$lt_postdep_objects_GCJ |
| 19079 | |
| 19080 | # Dependencies to place before the objects being linked to create a |
| 19081 | # shared library. |
| 19082 | predeps=$lt_predeps_GCJ |
| 19083 | |
| 19084 | # Dependencies to place after the objects being linked to create a |
| 19085 | # shared library. |
| 19086 | postdeps=$lt_postdeps_GCJ |
| 19087 | |
| 19088 | # The library search path used internally by the compiler when linking |
| 19089 | # a shared library. |
| 19090 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
| 19091 | |
| 19092 | # Method to check whether dependent libraries are shared objects. |
| 19093 | deplibs_check_method=$lt_deplibs_check_method |
| 19094 | |
| 19095 | # Command to use when deplibs_check_method == file_magic. |
| 19096 | file_magic_cmd=$lt_file_magic_cmd |
| 19097 | |
| 19098 | # Flag that allows shared libraries with undefined symbols to be built. |
| 19099 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
| 19100 | |
| 19101 | # Flag that forces no undefined symbols. |
| 19102 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
| 19103 | |
| 19104 | # Commands used to finish a libtool library installation in a directory. |
| 19105 | finish_cmds=$lt_finish_cmds |
| 19106 | |
| 19107 | # Same as above, but a single script fragment to be evaled but not shown. |
| 19108 | finish_eval=$lt_finish_eval |
| 19109 | |
| 19110 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 19111 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 19112 | |
| 19113 | # Transform the output of nm in a proper C declaration |
| 19114 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 19115 | |
| 19116 | # Transform the output of nm in a C name address pair |
| 19117 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 19118 | |
| 19119 | # This is the shared library runtime path variable. |
| 19120 | runpath_var=$runpath_var |
| 19121 | |
| 19122 | # This is the shared library path variable. |
| 19123 | shlibpath_var=$shlibpath_var |
| 19124 | |
| 19125 | # Is shlibpath searched before the hard-coded library search path? |
| 19126 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 19127 | |
| 19128 | # How to hardcode a shared library path into an executable. |
| 19129 | hardcode_action=$hardcode_action_GCJ |
| 19130 | |
| 19131 | # Whether we should hardcode library paths into libraries. |
| 19132 | hardcode_into_libs=$hardcode_into_libs |
| 19133 | |
| 19134 | # Flag to hardcode \$libdir into a binary during linking. |
| 19135 | # This must work even if \$libdir does not exist. |
| 19136 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
| 19137 | |
| 19138 | # If ld is used when linking, flag to hardcode \$libdir into |
| 19139 | # a binary during linking. This must work even if \$libdir does |
| 19140 | # not exist. |
| 19141 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
| 19142 | |
| 19143 | # Whether we need a single -rpath flag with a separated argument. |
| 19144 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
| 19145 | |
| 19146 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 19147 | # resulting binary. |
| 19148 | hardcode_direct=$hardcode_direct_GCJ |
| 19149 | |
| 19150 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 19151 | # resulting binary. |
| 19152 | hardcode_minus_L=$hardcode_minus_L_GCJ |
| 19153 | |
| 19154 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 19155 | # the resulting binary. |
| 19156 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
| 19157 | |
| 19158 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 19159 | # and all subsequent libraries and executables linked against it. |
| 19160 | hardcode_automatic=$hardcode_automatic_GCJ |
| 19161 | |
| 19162 | # Variables whose values should be saved in libtool wrapper scripts and |
| 19163 | # restored at relink time. |
| 19164 | variables_saved_for_relink="$variables_saved_for_relink" |
| 19165 | |
| 19166 | # Whether libtool must link a program against all its dependency libraries. |
| 19167 | link_all_deplibs=$link_all_deplibs_GCJ |
| 19168 | |
| 19169 | # Compile-time system search path for libraries |
| 19170 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 19171 | |
| 19172 | # Run-time system search path for libraries |
| 19173 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 19174 | |
| 19175 | # Fix the shell variable \$srcfile for the compiler. |
| 19176 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
| 19177 | |
| 19178 | # Set to yes if exported symbols are required. |
| 19179 | always_export_symbols=$always_export_symbols_GCJ |
| 19180 | |
| 19181 | # The commands to list exported symbols. |
| 19182 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
| 19183 | |
| 19184 | # The commands to extract the exported symbol list from a shared archive. |
| 19185 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 19186 | |
| 19187 | # Symbols that should not be listed in the preloaded symbols. |
| 19188 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
| 19189 | |
| 19190 | # Symbols that must always be exported. |
| 19191 | include_expsyms=$lt_include_expsyms_GCJ |
| 19192 | |
| 19193 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 19194 | |
| 19195 | __EOF__ |
| 19196 | |
| 19197 | |
| 19198 | else |
| 19199 | # If there is no Makefile yet, we rely on a make rule to execute |
| 19200 | # `config.status --recheck' to rerun these tests and create the |
| 19201 | # libtool script then. |
| 19202 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 19203 | if test -f "$ltmain_in"; then |
| 19204 | test -f Makefile && make "$ltmain" |
| 19205 | fi |
| 19206 | fi |
| 19207 | |
| 19208 | |
| 19209 | ac_ext=c |
| 19210 | ac_cpp='$CPP $CPPFLAGS' |
| 19211 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19212 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19213 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19214 | |
| 19215 | CC="$lt_save_CC" |
| 19216 | |
| 19217 | else |
| 19218 | tagname="" |
| 19219 | fi |
| 19220 | ;; |
| 19221 | |
| 19222 | RC) |
| 19223 | |
| 19224 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19225 | # Source file extension for RC test sources. |
| 19226 | ac_ext=rc |
| 19227 | |
| 19228 | # Object file extension for compiled RC test sources. |
| 19229 | objext=o |
| 19230 | objext_RC=$objext |
| 19231 | |
| 19232 | # Code to be used in simple compile tests |
| 19233 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
| 19234 | |
| 19235 | # Code to be used in simple link tests |
| 19236 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
| 19237 | |
| 19238 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 19239 | |
| 19240 | # If no C compiler was specified, use CC. |
| 19241 | LTCC=${LTCC-"$CC"} |
| 19242 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 19243 | # If no C compiler flags were specified, use CFLAGS. |
| 19244 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 19245 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19246 | # Allow CC to be a program name with arguments. |
| 19247 | compiler=$CC |
| 19248 | |
| 19249 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 19250 | # save warnings/boilerplate of simple test code |
| 19251 | ac_outfile=conftest.$ac_objext |
| 19252 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 19253 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 19254 | _lt_compiler_boilerplate=`cat conftest.err` |
| 19255 | $rm conftest* |
| 19256 | |
| 19257 | ac_outfile=conftest.$ac_objext |
| 19258 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 19259 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 19260 | _lt_linker_boilerplate=`cat conftest.err` |
| 19261 | $rm conftest* |
| 19262 | |
| 19263 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19264 | # Allow CC to be a program name with arguments. |
| 19265 | lt_save_CC="$CC" |
| 19266 | CC=${RC-"windres"} |
| 19267 | compiler=$CC |
| 19268 | compiler_RC=$CC |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 19269 | for cc_temp in $compiler""; do |
| 19270 | case $cc_temp in |
| 19271 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 19272 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 19273 | \-*) ;; |
| 19274 | *) break;; |
| 19275 | esac |
| 19276 | done |
| 19277 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 19278 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19279 | lt_cv_prog_compiler_c_o_RC=yes |
| 19280 | |
| 19281 | # The else clause should only fire when bootstrapping the |
| 19282 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 19283 | # with your package, and you will get complaints that there are |
| 19284 | # no rules to generate ltmain.sh. |
| 19285 | if test -f "$ltmain"; then |
| 19286 | # See if we are running on zsh, and set the options which allow our commands through |
| 19287 | # without removal of \ escapes. |
| 19288 | if test -n "${ZSH_VERSION+set}" ; then |
| 19289 | setopt NO_GLOB_SUBST |
| 19290 | fi |
| 19291 | # Now quote all the things that may contain metacharacters while being |
| 19292 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 19293 | # variables and quote the copies for generation of the libtool script. |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 19294 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19295 | SED SHELL STRIP \ |
| 19296 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 19297 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 19298 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 19299 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 19300 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 19301 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 19302 | old_postinstall_cmds old_postuninstall_cmds \ |
| 19303 | compiler_RC \ |
| 19304 | CC_RC \ |
| 19305 | LD_RC \ |
| 19306 | lt_prog_compiler_wl_RC \ |
| 19307 | lt_prog_compiler_pic_RC \ |
| 19308 | lt_prog_compiler_static_RC \ |
| 19309 | lt_prog_compiler_no_builtin_flag_RC \ |
| 19310 | export_dynamic_flag_spec_RC \ |
| 19311 | thread_safe_flag_spec_RC \ |
| 19312 | whole_archive_flag_spec_RC \ |
| 19313 | enable_shared_with_static_runtimes_RC \ |
| 19314 | old_archive_cmds_RC \ |
| 19315 | old_archive_from_new_cmds_RC \ |
| 19316 | predep_objects_RC \ |
| 19317 | postdep_objects_RC \ |
| 19318 | predeps_RC \ |
| 19319 | postdeps_RC \ |
| 19320 | compiler_lib_search_path_RC \ |
| 19321 | archive_cmds_RC \ |
| 19322 | archive_expsym_cmds_RC \ |
| 19323 | postinstall_cmds_RC \ |
| 19324 | postuninstall_cmds_RC \ |
| 19325 | old_archive_from_expsyms_cmds_RC \ |
| 19326 | allow_undefined_flag_RC \ |
| 19327 | no_undefined_flag_RC \ |
| 19328 | export_symbols_cmds_RC \ |
| 19329 | hardcode_libdir_flag_spec_RC \ |
| 19330 | hardcode_libdir_flag_spec_ld_RC \ |
| 19331 | hardcode_libdir_separator_RC \ |
| 19332 | hardcode_automatic_RC \ |
| 19333 | module_cmds_RC \ |
| 19334 | module_expsym_cmds_RC \ |
| 19335 | lt_cv_prog_compiler_c_o_RC \ |
| 19336 | exclude_expsyms_RC \ |
| 19337 | include_expsyms_RC; do |
| 19338 | |
| 19339 | case $var in |
| 19340 | old_archive_cmds_RC | \ |
| 19341 | old_archive_from_new_cmds_RC | \ |
| 19342 | archive_cmds_RC | \ |
| 19343 | archive_expsym_cmds_RC | \ |
| 19344 | module_cmds_RC | \ |
| 19345 | module_expsym_cmds_RC | \ |
| 19346 | old_archive_from_expsyms_cmds_RC | \ |
| 19347 | export_symbols_cmds_RC | \ |
| 19348 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 19349 | postinstall_cmds | postuninstall_cmds | \ |
| 19350 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 19351 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 19352 | # Double-quote double-evaled strings. |
| 19353 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 19354 | ;; |
| 19355 | *) |
| 19356 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 19357 | ;; |
| 19358 | esac |
| 19359 | done |
| 19360 | |
| 19361 | case $lt_echo in |
| 19362 | *'\$0 --fallback-echo"') |
| 19363 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 19364 | ;; |
| 19365 | esac |
| 19366 | |
| 19367 | cfgfile="$ofile" |
| 19368 | |
| 19369 | cat <<__EOF__ >> "$cfgfile" |
| 19370 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 19371 | |
| 19372 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 19373 | |
| 19374 | # Shell to use when invoking shell scripts. |
| 19375 | SHELL=$lt_SHELL |
| 19376 | |
| 19377 | # Whether or not to build shared libraries. |
| 19378 | build_libtool_libs=$enable_shared |
| 19379 | |
| 19380 | # Whether or not to build static libraries. |
| 19381 | build_old_libs=$enable_static |
| 19382 | |
| 19383 | # Whether or not to add -lc for building shared libraries. |
| 19384 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
| 19385 | |
| 19386 | # Whether or not to disallow shared libs when runtime libs are static |
| 19387 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
| 19388 | |
| 19389 | # Whether or not to optimize for fast installation. |
| 19390 | fast_install=$enable_fast_install |
| 19391 | |
| 19392 | # The host system. |
| 19393 | host_alias=$host_alias |
| 19394 | host=$host |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 19395 | host_os=$host_os |
| 19396 | |
| 19397 | # The build system. |
| 19398 | build_alias=$build_alias |
| 19399 | build=$build |
| 19400 | build_os=$build_os |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19401 | |
| 19402 | # An echo program that does not interpret backslashes. |
| 19403 | echo=$lt_echo |
| 19404 | |
| 19405 | # The archiver. |
| 19406 | AR=$lt_AR |
| 19407 | AR_FLAGS=$lt_AR_FLAGS |
| 19408 | |
| 19409 | # A C compiler. |
| 19410 | LTCC=$lt_LTCC |
| 19411 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 19412 | # LTCC compiler flags. |
| 19413 | LTCFLAGS=$lt_LTCFLAGS |
| 19414 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19415 | # A language-specific compiler. |
| 19416 | CC=$lt_compiler_RC |
| 19417 | |
| 19418 | # Is the compiler the GNU C compiler? |
| 19419 | with_gcc=$GCC_RC |
| 19420 | |
| 19421 | # An ERE matcher. |
| 19422 | EGREP=$lt_EGREP |
| 19423 | |
| 19424 | # The linker used to build libraries. |
| 19425 | LD=$lt_LD_RC |
| 19426 | |
| 19427 | # Whether we need hard or soft links. |
| 19428 | LN_S=$lt_LN_S |
| 19429 | |
| 19430 | # A BSD-compatible nm program. |
| 19431 | NM=$lt_NM |
| 19432 | |
| 19433 | # A symbol stripping program |
| 19434 | STRIP=$lt_STRIP |
| 19435 | |
| 19436 | # Used to examine libraries when file_magic_cmd begins "file" |
| 19437 | MAGIC_CMD=$MAGIC_CMD |
| 19438 | |
| 19439 | # Used on cygwin: DLL creation program. |
| 19440 | DLLTOOL="$DLLTOOL" |
| 19441 | |
| 19442 | # Used on cygwin: object dumper. |
| 19443 | OBJDUMP="$OBJDUMP" |
| 19444 | |
| 19445 | # Used on cygwin: assembler. |
| 19446 | AS="$AS" |
| 19447 | |
| 19448 | # The name of the directory that contains temporary libtool files. |
| 19449 | objdir=$objdir |
| 19450 | |
| 19451 | # How to create reloadable object files. |
| 19452 | reload_flag=$lt_reload_flag |
| 19453 | reload_cmds=$lt_reload_cmds |
| 19454 | |
| 19455 | # How to pass a linker flag through the compiler. |
| 19456 | wl=$lt_lt_prog_compiler_wl_RC |
| 19457 | |
| 19458 | # Object file suffix (normally "o"). |
| 19459 | objext="$ac_objext" |
| 19460 | |
| 19461 | # Old archive suffix (normally "a"). |
| 19462 | libext="$libext" |
| 19463 | |
| 19464 | # Shared library suffix (normally ".so"). |
| 19465 | shrext_cmds='$shrext_cmds' |
| 19466 | |
| 19467 | # Executable file suffix (normally ""). |
| 19468 | exeext="$exeext" |
| 19469 | |
| 19470 | # Additional compiler flags for building library objects. |
| 19471 | pic_flag=$lt_lt_prog_compiler_pic_RC |
| 19472 | pic_mode=$pic_mode |
| 19473 | |
| 19474 | # What is the maximum length of a command? |
| 19475 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 19476 | |
| 19477 | # Does compiler simultaneously support -c and -o options? |
| 19478 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
| 19479 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 19480 | # Must we lock files when doing compilation? |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19481 | need_locks=$lt_need_locks |
| 19482 | |
| 19483 | # Do we need the lib prefix for modules? |
| 19484 | need_lib_prefix=$need_lib_prefix |
| 19485 | |
| 19486 | # Do we need a version for libraries? |
| 19487 | need_version=$need_version |
| 19488 | |
| 19489 | # Whether dlopen is supported. |
| 19490 | dlopen_support=$enable_dlopen |
| 19491 | |
| 19492 | # Whether dlopen of programs is supported. |
| 19493 | dlopen_self=$enable_dlopen_self |
| 19494 | |
| 19495 | # Whether dlopen of statically linked programs is supported. |
| 19496 | dlopen_self_static=$enable_dlopen_self_static |
| 19497 | |
| 19498 | # Compiler flag to prevent dynamic linking. |
| 19499 | link_static_flag=$lt_lt_prog_compiler_static_RC |
| 19500 | |
| 19501 | # Compiler flag to turn off builtin functions. |
| 19502 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
| 19503 | |
| 19504 | # Compiler flag to allow reflexive dlopens. |
| 19505 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
| 19506 | |
| 19507 | # Compiler flag to generate shared objects directly from archives. |
| 19508 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
| 19509 | |
| 19510 | # Compiler flag to generate thread-safe objects. |
| 19511 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
| 19512 | |
| 19513 | # Library versioning type. |
| 19514 | version_type=$version_type |
| 19515 | |
| 19516 | # Format of library name prefix. |
| 19517 | libname_spec=$lt_libname_spec |
| 19518 | |
| 19519 | # List of archive names. First name is the real one, the rest are links. |
| 19520 | # The last name is the one that the linker finds with -lNAME. |
| 19521 | library_names_spec=$lt_library_names_spec |
| 19522 | |
| 19523 | # The coded name of the library, if different from the real name. |
| 19524 | soname_spec=$lt_soname_spec |
| 19525 | |
| 19526 | # Commands used to build and install an old-style archive. |
| 19527 | RANLIB=$lt_RANLIB |
| 19528 | old_archive_cmds=$lt_old_archive_cmds_RC |
| 19529 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 19530 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 19531 | |
| 19532 | # Create an old-style archive from a shared archive. |
| 19533 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
| 19534 | |
| 19535 | # Create a temporary old-style archive to link instead of a shared archive. |
| 19536 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
| 19537 | |
| 19538 | # Commands used to build and install a shared archive. |
| 19539 | archive_cmds=$lt_archive_cmds_RC |
| 19540 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
| 19541 | postinstall_cmds=$lt_postinstall_cmds |
| 19542 | postuninstall_cmds=$lt_postuninstall_cmds |
| 19543 | |
| 19544 | # Commands used to build a loadable module (assumed same as above if empty) |
| 19545 | module_cmds=$lt_module_cmds_RC |
| 19546 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
| 19547 | |
| 19548 | # Commands to strip libraries. |
| 19549 | old_striplib=$lt_old_striplib |
| 19550 | striplib=$lt_striplib |
| 19551 | |
| 19552 | # Dependencies to place before the objects being linked to create a |
| 19553 | # shared library. |
| 19554 | predep_objects=$lt_predep_objects_RC |
| 19555 | |
| 19556 | # Dependencies to place after the objects being linked to create a |
| 19557 | # shared library. |
| 19558 | postdep_objects=$lt_postdep_objects_RC |
| 19559 | |
| 19560 | # Dependencies to place before the objects being linked to create a |
| 19561 | # shared library. |
| 19562 | predeps=$lt_predeps_RC |
| 19563 | |
| 19564 | # Dependencies to place after the objects being linked to create a |
| 19565 | # shared library. |
| 19566 | postdeps=$lt_postdeps_RC |
| 19567 | |
| 19568 | # The library search path used internally by the compiler when linking |
| 19569 | # a shared library. |
| 19570 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
| 19571 | |
| 19572 | # Method to check whether dependent libraries are shared objects. |
| 19573 | deplibs_check_method=$lt_deplibs_check_method |
| 19574 | |
| 19575 | # Command to use when deplibs_check_method == file_magic. |
| 19576 | file_magic_cmd=$lt_file_magic_cmd |
| 19577 | |
| 19578 | # Flag that allows shared libraries with undefined symbols to be built. |
| 19579 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
| 19580 | |
| 19581 | # Flag that forces no undefined symbols. |
| 19582 | no_undefined_flag=$lt_no_undefined_flag_RC |
| 19583 | |
| 19584 | # Commands used to finish a libtool library installation in a directory. |
| 19585 | finish_cmds=$lt_finish_cmds |
| 19586 | |
| 19587 | # Same as above, but a single script fragment to be evaled but not shown. |
| 19588 | finish_eval=$lt_finish_eval |
| 19589 | |
| 19590 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 19591 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 19592 | |
| 19593 | # Transform the output of nm in a proper C declaration |
| 19594 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 19595 | |
| 19596 | # Transform the output of nm in a C name address pair |
| 19597 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 19598 | |
| 19599 | # This is the shared library runtime path variable. |
| 19600 | runpath_var=$runpath_var |
| 19601 | |
| 19602 | # This is the shared library path variable. |
| 19603 | shlibpath_var=$shlibpath_var |
| 19604 | |
| 19605 | # Is shlibpath searched before the hard-coded library search path? |
| 19606 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 19607 | |
| 19608 | # How to hardcode a shared library path into an executable. |
| 19609 | hardcode_action=$hardcode_action_RC |
| 19610 | |
| 19611 | # Whether we should hardcode library paths into libraries. |
| 19612 | hardcode_into_libs=$hardcode_into_libs |
| 19613 | |
| 19614 | # Flag to hardcode \$libdir into a binary during linking. |
| 19615 | # This must work even if \$libdir does not exist. |
| 19616 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
| 19617 | |
| 19618 | # If ld is used when linking, flag to hardcode \$libdir into |
| 19619 | # a binary during linking. This must work even if \$libdir does |
| 19620 | # not exist. |
| 19621 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
| 19622 | |
| 19623 | # Whether we need a single -rpath flag with a separated argument. |
| 19624 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
| 19625 | |
| 19626 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 19627 | # resulting binary. |
| 19628 | hardcode_direct=$hardcode_direct_RC |
| 19629 | |
| 19630 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 19631 | # resulting binary. |
| 19632 | hardcode_minus_L=$hardcode_minus_L_RC |
| 19633 | |
| 19634 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 19635 | # the resulting binary. |
| 19636 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
| 19637 | |
| 19638 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 19639 | # and all subsequent libraries and executables linked against it. |
| 19640 | hardcode_automatic=$hardcode_automatic_RC |
| 19641 | |
| 19642 | # Variables whose values should be saved in libtool wrapper scripts and |
| 19643 | # restored at relink time. |
| 19644 | variables_saved_for_relink="$variables_saved_for_relink" |
| 19645 | |
| 19646 | # Whether libtool must link a program against all its dependency libraries. |
| 19647 | link_all_deplibs=$link_all_deplibs_RC |
| 19648 | |
| 19649 | # Compile-time system search path for libraries |
| 19650 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 19651 | |
| 19652 | # Run-time system search path for libraries |
| 19653 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 19654 | |
| 19655 | # Fix the shell variable \$srcfile for the compiler. |
| 19656 | fix_srcfile_path="$fix_srcfile_path_RC" |
| 19657 | |
| 19658 | # Set to yes if exported symbols are required. |
| 19659 | always_export_symbols=$always_export_symbols_RC |
| 19660 | |
| 19661 | # The commands to list exported symbols. |
| 19662 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
| 19663 | |
| 19664 | # The commands to extract the exported symbol list from a shared archive. |
| 19665 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 19666 | |
| 19667 | # Symbols that should not be listed in the preloaded symbols. |
| 19668 | exclude_expsyms=$lt_exclude_expsyms_RC |
| 19669 | |
| 19670 | # Symbols that must always be exported. |
| 19671 | include_expsyms=$lt_include_expsyms_RC |
| 19672 | |
| 19673 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 19674 | |
| 19675 | __EOF__ |
| 19676 | |
| 19677 | |
| 19678 | else |
| 19679 | # If there is no Makefile yet, we rely on a make rule to execute |
| 19680 | # `config.status --recheck' to rerun these tests and create the |
| 19681 | # libtool script then. |
| 19682 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 19683 | if test -f "$ltmain_in"; then |
| 19684 | test -f Makefile && make "$ltmain" |
| 19685 | fi |
| 19686 | fi |
| 19687 | |
| 19688 | |
| 19689 | ac_ext=c |
| 19690 | ac_cpp='$CPP $CPPFLAGS' |
| 19691 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19692 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19693 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19694 | |
| 19695 | CC="$lt_save_CC" |
| 19696 | |
| 19697 | ;; |
| 19698 | |
| 19699 | *) |
| 19700 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
| 19701 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
| 19702 | { (exit 1); exit 1; }; } |
| 19703 | ;; |
| 19704 | esac |
| 19705 | |
| 19706 | # Append the new tag name to the list of available tags. |
| 19707 | if test -n "$tagname" ; then |
| 19708 | available_tags="$available_tags $tagname" |
| 19709 | fi |
| 19710 | fi |
| 19711 | done |
| 19712 | IFS="$lt_save_ifs" |
| 19713 | |
| 19714 | # Now substitute the updated list of available tags. |
| 19715 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
| 19716 | mv "${ofile}T" "$ofile" |
| 19717 | chmod +x "$ofile" |
| 19718 | else |
| 19719 | rm -f "${ofile}T" |
| 19720 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
| 19721 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
| 19722 | { (exit 1); exit 1; }; } |
| 19723 | fi |
| 19724 | fi |
| 19725 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19726 | |
| 19727 | |
| 19728 | # This can be used to rebuild libtool when needed |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19729 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19730 | |
| 19731 | # Always use our own libtool. |
| 19732 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 19733 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19734 | # Prevent multiple expansion |
| 19735 | |
| 19736 | |
| 19737 | |
| 19738 | |
| 19739 | |
| 19740 | |
| 19741 | |
| 19742 | |
| 19743 | |
| 19744 | |
| 19745 | |
| 19746 | |
| 19747 | |
| 19748 | |
| 19749 | |
| 19750 | |
| 19751 | |
| 19752 | |
| 19753 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19754 | |
| 19755 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19756 | # Check whether --enable-autoconf was given. |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19757 | if test "${enable_autoconf+set}" = set; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19758 | enableval=$enable_autoconf; enable_autoconf=$enableval |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19759 | else |
| 19760 | enable_autoconf=yes |
| 19761 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19762 | fi |
| 19763 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19764 | # Extract the first word of "autoconf", so it can be a program name with args. |
| 19765 | set dummy autoconf; ac_word=$2 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19766 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 19767 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19768 | if test "${ac_cv_path_AUTOCONF+set}" = set; then |
| 19769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19770 | else |
| 19771 | case $AUTOCONF in |
| 19772 | [\\/]* | ?:[\\/]*) |
| 19773 | ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path. |
| 19774 | ;; |
| 19775 | *) |
| 19776 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19777 | for as_dir in $PATH |
| 19778 | do |
| 19779 | IFS=$as_save_IFS |
| 19780 | test -z "$as_dir" && as_dir=. |
| 19781 | for ac_exec_ext in '' $ac_executable_extensions; do |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19782 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19783 | ac_cv_path_AUTOCONF="$as_dir/$ac_word$ac_exec_ext" |
| 19784 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 19785 | break 2 |
| 19786 | fi |
| 19787 | done |
| 19788 | done |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19789 | IFS=$as_save_IFS |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19790 | |
| 19791 | test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="@echo autoconf not available" |
| 19792 | ;; |
| 19793 | esac |
| 19794 | fi |
| 19795 | AUTOCONF=$ac_cv_path_AUTOCONF |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19796 | if test -n "$AUTOCONF"; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19797 | { echo "$as_me:$LINENO: result: $AUTOCONF" >&5 |
| 19798 | echo "${ECHO_T}$AUTOCONF" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19799 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19800 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19801 | echo "${ECHO_T}no" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19802 | fi |
| 19803 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19804 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19805 | # Extract the first word of "autoheader", so it can be a program name with args. |
| 19806 | set dummy autoheader; ac_word=$2 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19807 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 19808 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19809 | if test "${ac_cv_path_AUTOHEADER+set}" = set; then |
| 19810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19811 | else |
| 19812 | case $AUTOHEADER in |
| 19813 | [\\/]* | ?:[\\/]*) |
| 19814 | ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path. |
| 19815 | ;; |
| 19816 | *) |
| 19817 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19818 | for as_dir in $PATH |
| 19819 | do |
| 19820 | IFS=$as_save_IFS |
| 19821 | test -z "$as_dir" && as_dir=. |
| 19822 | for ac_exec_ext in '' $ac_executable_extensions; do |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19823 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19824 | ac_cv_path_AUTOHEADER="$as_dir/$ac_word$ac_exec_ext" |
| 19825 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 19826 | break 2 |
| 19827 | fi |
| 19828 | done |
| 19829 | done |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19830 | IFS=$as_save_IFS |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19831 | |
| 19832 | test -z "$ac_cv_path_AUTOHEADER" && ac_cv_path_AUTOHEADER="@echo autoheader not available" |
| 19833 | ;; |
| 19834 | esac |
| 19835 | fi |
| 19836 | AUTOHEADER=$ac_cv_path_AUTOHEADER |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19837 | if test -n "$AUTOHEADER"; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19838 | { echo "$as_me:$LINENO: result: $AUTOHEADER" >&5 |
| 19839 | echo "${ECHO_T}$AUTOHEADER" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19840 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19841 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19842 | echo "${ECHO_T}no" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19843 | fi |
| 19844 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19845 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19846 | if test -z "$AUTOCONF"; then enable_autoconf=no ; fi |
| 19847 | if test -z "$AUTOHEADER"; then enable_autoconf=no ; fi |
| 19848 | if test x$enable_autoconf = xyes; then |
| 19849 | CONFIGURE_DEPENDS="configure.in aclocal.m4" |
| 19850 | fi |
| 19851 | |
| 19852 | |
| 19853 | ac_ext=c |
| 19854 | ac_cpp='$CPP $CPPFLAGS' |
| 19855 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19856 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19857 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19858 | if test -n "$ac_tool_prefix"; then |
| 19859 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 19860 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19861 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 19862 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19863 | if test "${ac_cv_prog_CC+set}" = set; then |
| 19864 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19865 | else |
| 19866 | if test -n "$CC"; then |
| 19867 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 19868 | else |
| 19869 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19870 | for as_dir in $PATH |
| 19871 | do |
| 19872 | IFS=$as_save_IFS |
| 19873 | test -z "$as_dir" && as_dir=. |
| 19874 | for ac_exec_ext in '' $ac_executable_extensions; do |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19875 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19876 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 19877 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 19878 | break 2 |
| 19879 | fi |
| 19880 | done |
| 19881 | done |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19882 | IFS=$as_save_IFS |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19883 | |
| 19884 | fi |
| 19885 | fi |
| 19886 | CC=$ac_cv_prog_CC |
| 19887 | if test -n "$CC"; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19888 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 19889 | echo "${ECHO_T}$CC" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19890 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19891 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19892 | echo "${ECHO_T}no" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19893 | fi |
| 19894 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19895 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19896 | fi |
| 19897 | if test -z "$ac_cv_prog_CC"; then |
| 19898 | ac_ct_CC=$CC |
| 19899 | # Extract the first word of "gcc", so it can be a program name with args. |
| 19900 | set dummy gcc; ac_word=$2 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19901 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 19902 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19903 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 19904 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19905 | else |
| 19906 | if test -n "$ac_ct_CC"; then |
| 19907 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 19908 | else |
| 19909 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19910 | for as_dir in $PATH |
| 19911 | do |
| 19912 | IFS=$as_save_IFS |
| 19913 | test -z "$as_dir" && as_dir=. |
| 19914 | for ac_exec_ext in '' $ac_executable_extensions; do |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19915 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19916 | ac_cv_prog_ac_ct_CC="gcc" |
| 19917 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 19918 | break 2 |
| 19919 | fi |
| 19920 | done |
| 19921 | done |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19922 | IFS=$as_save_IFS |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19923 | |
| 19924 | fi |
| 19925 | fi |
| 19926 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 19927 | if test -n "$ac_ct_CC"; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19928 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 19929 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19930 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19931 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19932 | echo "${ECHO_T}no" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19933 | fi |
| 19934 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19935 | if test "x$ac_ct_CC" = x; then |
| 19936 | CC="" |
| 19937 | else |
| 19938 | case $cross_compiling:$ac_tool_warned in |
| 19939 | yes:) |
| 19940 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 19941 | whose name does not start with the host triplet. If you think this |
| 19942 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 19943 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 19944 | whose name does not start with the host triplet. If you think this |
| 19945 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 19946 | ac_tool_warned=yes ;; |
| 19947 | esac |
| 19948 | CC=$ac_ct_CC |
| 19949 | fi |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19950 | else |
| 19951 | CC="$ac_cv_prog_CC" |
| 19952 | fi |
| 19953 | |
| 19954 | if test -z "$CC"; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19955 | if test -n "$ac_tool_prefix"; then |
| 19956 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19957 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19958 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 19959 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19960 | if test "${ac_cv_prog_CC+set}" = set; then |
| 19961 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19962 | else |
| 19963 | if test -n "$CC"; then |
| 19964 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 19965 | else |
| 19966 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19967 | for as_dir in $PATH |
| 19968 | do |
| 19969 | IFS=$as_save_IFS |
| 19970 | test -z "$as_dir" && as_dir=. |
| 19971 | for ac_exec_ext in '' $ac_executable_extensions; do |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19972 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19973 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 19974 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 19975 | break 2 |
| 19976 | fi |
| 19977 | done |
| 19978 | done |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19979 | IFS=$as_save_IFS |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19980 | |
| 19981 | fi |
| 19982 | fi |
| 19983 | CC=$ac_cv_prog_CC |
| 19984 | if test -n "$CC"; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19985 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 19986 | echo "${ECHO_T}$CC" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19987 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19988 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19989 | echo "${ECHO_T}no" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19990 | fi |
| 19991 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19992 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19993 | fi |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19994 | fi |
| 19995 | if test -z "$CC"; then |
| 19996 | # Extract the first word of "cc", so it can be a program name with args. |
| 19997 | set dummy cc; ac_word=$2 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 19998 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 19999 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20000 | if test "${ac_cv_prog_CC+set}" = set; then |
| 20001 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20002 | else |
| 20003 | if test -n "$CC"; then |
| 20004 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 20005 | else |
| 20006 | ac_prog_rejected=no |
| 20007 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20008 | for as_dir in $PATH |
| 20009 | do |
| 20010 | IFS=$as_save_IFS |
| 20011 | test -z "$as_dir" && as_dir=. |
| 20012 | for ac_exec_ext in '' $ac_executable_extensions; do |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20013 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20014 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 20015 | ac_prog_rejected=yes |
| 20016 | continue |
| 20017 | fi |
| 20018 | ac_cv_prog_CC="cc" |
| 20019 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 20020 | break 2 |
| 20021 | fi |
| 20022 | done |
| 20023 | done |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20024 | IFS=$as_save_IFS |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20025 | |
| 20026 | if test $ac_prog_rejected = yes; then |
| 20027 | # We found a bogon in the path, so make sure we never use it. |
| 20028 | set dummy $ac_cv_prog_CC |
| 20029 | shift |
| 20030 | if test $# != 0; then |
| 20031 | # We chose a different compiler from the bogus one. |
| 20032 | # However, it has the same basename, so the bogon will be chosen |
| 20033 | # first if we set CC to just the basename; use the full file name. |
| 20034 | shift |
| 20035 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 20036 | fi |
| 20037 | fi |
| 20038 | fi |
| 20039 | fi |
| 20040 | CC=$ac_cv_prog_CC |
| 20041 | if test -n "$CC"; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20042 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 20043 | echo "${ECHO_T}$CC" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20044 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20045 | { echo "$as_me:$LINENO: result: no" >&5 |
| 20046 | echo "${ECHO_T}no" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20047 | fi |
| 20048 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20049 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20050 | fi |
| 20051 | if test -z "$CC"; then |
| 20052 | if test -n "$ac_tool_prefix"; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20053 | for ac_prog in cl.exe |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20054 | do |
| 20055 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 20056 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20057 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 20058 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20059 | if test "${ac_cv_prog_CC+set}" = set; then |
| 20060 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20061 | else |
| 20062 | if test -n "$CC"; then |
| 20063 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 20064 | else |
| 20065 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20066 | for as_dir in $PATH |
| 20067 | do |
| 20068 | IFS=$as_save_IFS |
| 20069 | test -z "$as_dir" && as_dir=. |
| 20070 | for ac_exec_ext in '' $ac_executable_extensions; do |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20071 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20072 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 20073 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 20074 | break 2 |
| 20075 | fi |
| 20076 | done |
| 20077 | done |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20078 | IFS=$as_save_IFS |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20079 | |
| 20080 | fi |
| 20081 | fi |
| 20082 | CC=$ac_cv_prog_CC |
| 20083 | if test -n "$CC"; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20084 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 20085 | echo "${ECHO_T}$CC" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20086 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20087 | { echo "$as_me:$LINENO: result: no" >&5 |
| 20088 | echo "${ECHO_T}no" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20089 | fi |
| 20090 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20091 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20092 | test -n "$CC" && break |
| 20093 | done |
| 20094 | fi |
| 20095 | if test -z "$CC"; then |
| 20096 | ac_ct_CC=$CC |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20097 | for ac_prog in cl.exe |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20098 | do |
| 20099 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 20100 | set dummy $ac_prog; ac_word=$2 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20101 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 20102 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20103 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 20104 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20105 | else |
| 20106 | if test -n "$ac_ct_CC"; then |
| 20107 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 20108 | else |
| 20109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20110 | for as_dir in $PATH |
| 20111 | do |
| 20112 | IFS=$as_save_IFS |
| 20113 | test -z "$as_dir" && as_dir=. |
| 20114 | for ac_exec_ext in '' $ac_executable_extensions; do |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20115 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20116 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 20117 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 20118 | break 2 |
| 20119 | fi |
| 20120 | done |
| 20121 | done |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20122 | IFS=$as_save_IFS |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20123 | |
| 20124 | fi |
| 20125 | fi |
| 20126 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 20127 | if test -n "$ac_ct_CC"; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20128 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 20129 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20130 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20131 | { echo "$as_me:$LINENO: result: no" >&5 |
| 20132 | echo "${ECHO_T}no" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20133 | fi |
| 20134 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20135 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20136 | test -n "$ac_ct_CC" && break |
| 20137 | done |
| 20138 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20139 | if test "x$ac_ct_CC" = x; then |
| 20140 | CC="" |
| 20141 | else |
| 20142 | case $cross_compiling:$ac_tool_warned in |
| 20143 | yes:) |
| 20144 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 20145 | whose name does not start with the host triplet. If you think this |
| 20146 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 20147 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 20148 | whose name does not start with the host triplet. If you think this |
| 20149 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 20150 | ac_tool_warned=yes ;; |
| 20151 | esac |
| 20152 | CC=$ac_ct_CC |
| 20153 | fi |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20154 | fi |
| 20155 | |
| 20156 | fi |
| 20157 | |
| 20158 | |
| 20159 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 20160 | See \`config.log' for more details." >&5 |
| 20161 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 20162 | See \`config.log' for more details." >&2;} |
| 20163 | { (exit 1); exit 1; }; } |
| 20164 | |
| 20165 | # Provide some information about the compiler. |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20166 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20167 | ac_compiler=`set X $ac_compile; echo $2` |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20168 | { (ac_try="$ac_compiler --version >&5" |
| 20169 | case "(($ac_try" in |
| 20170 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20171 | *) ac_try_echo=$ac_try;; |
| 20172 | esac |
| 20173 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20174 | (eval "$ac_compiler --version >&5") 2>&5 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20175 | ac_status=$? |
| 20176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20177 | (exit $ac_status); } |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20178 | { (ac_try="$ac_compiler -v >&5" |
| 20179 | case "(($ac_try" in |
| 20180 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20181 | *) ac_try_echo=$ac_try;; |
| 20182 | esac |
| 20183 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20184 | (eval "$ac_compiler -v >&5") 2>&5 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20185 | ac_status=$? |
| 20186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20187 | (exit $ac_status); } |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20188 | { (ac_try="$ac_compiler -V >&5" |
| 20189 | case "(($ac_try" in |
| 20190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20191 | *) ac_try_echo=$ac_try;; |
| 20192 | esac |
| 20193 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20194 | (eval "$ac_compiler -V >&5") 2>&5 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20195 | ac_status=$? |
| 20196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20197 | (exit $ac_status); } |
| 20198 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20199 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 20200 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20201 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 20202 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20203 | else |
| 20204 | cat >conftest.$ac_ext <<_ACEOF |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20205 | /* confdefs.h. */ |
| 20206 | _ACEOF |
| 20207 | cat confdefs.h >>conftest.$ac_ext |
| 20208 | cat >>conftest.$ac_ext <<_ACEOF |
| 20209 | /* end confdefs.h. */ |
| 20210 | |
| 20211 | int |
| 20212 | main () |
| 20213 | { |
| 20214 | #ifndef __GNUC__ |
| 20215 | choke me |
| 20216 | #endif |
| 20217 | |
| 20218 | ; |
| 20219 | return 0; |
| 20220 | } |
| 20221 | _ACEOF |
| 20222 | rm -f conftest.$ac_objext |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20223 | if { (ac_try="$ac_compile" |
| 20224 | case "(($ac_try" in |
| 20225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20226 | *) ac_try_echo=$ac_try;; |
| 20227 | esac |
| 20228 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20229 | (eval "$ac_compile") 2>conftest.er1 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20230 | ac_status=$? |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 20231 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20232 | rm -f conftest.er1 |
| 20233 | cat conftest.err >&5 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20235 | (exit $ac_status); } && |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20236 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20237 | { (case "(($ac_try" in |
| 20238 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20239 | *) ac_try_echo=$ac_try;; |
| 20240 | esac |
| 20241 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20242 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 20243 | ac_status=$? |
| 20244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20245 | (exit $ac_status); }; } && |
| 20246 | { ac_try='test -s conftest.$ac_objext' |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20247 | { (case "(($ac_try" in |
| 20248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20249 | *) ac_try_echo=$ac_try;; |
| 20250 | esac |
| 20251 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20252 | (eval "$ac_try") 2>&5 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20253 | ac_status=$? |
| 20254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20255 | (exit $ac_status); }; }; then |
| 20256 | ac_compiler_gnu=yes |
| 20257 | else |
| 20258 | echo "$as_me: failed program was:" >&5 |
| 20259 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20260 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20261 | ac_compiler_gnu=no |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20262 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20263 | |
| 20264 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20265 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 20266 | |
| 20267 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20268 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 20269 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20270 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 20271 | ac_test_CFLAGS=${CFLAGS+set} |
| 20272 | ac_save_CFLAGS=$CFLAGS |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20273 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 20274 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20275 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 20276 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20277 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20278 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 20279 | ac_c_werror_flag=yes |
| 20280 | ac_cv_prog_cc_g=no |
| 20281 | CFLAGS="-g" |
| 20282 | cat >conftest.$ac_ext <<_ACEOF |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20283 | /* confdefs.h. */ |
| 20284 | _ACEOF |
| 20285 | cat confdefs.h >>conftest.$ac_ext |
| 20286 | cat >>conftest.$ac_ext <<_ACEOF |
| 20287 | /* end confdefs.h. */ |
| 20288 | |
| 20289 | int |
| 20290 | main () |
| 20291 | { |
| 20292 | |
| 20293 | ; |
| 20294 | return 0; |
| 20295 | } |
| 20296 | _ACEOF |
| 20297 | rm -f conftest.$ac_objext |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20298 | if { (ac_try="$ac_compile" |
| 20299 | case "(($ac_try" in |
| 20300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20301 | *) ac_try_echo=$ac_try;; |
| 20302 | esac |
| 20303 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20304 | (eval "$ac_compile") 2>conftest.er1 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20305 | ac_status=$? |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 20306 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20307 | rm -f conftest.er1 |
| 20308 | cat conftest.err >&5 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20310 | (exit $ac_status); } && |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20311 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20312 | { (case "(($ac_try" in |
| 20313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20314 | *) ac_try_echo=$ac_try;; |
| 20315 | esac |
| 20316 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20317 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 20318 | ac_status=$? |
| 20319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20320 | (exit $ac_status); }; } && |
| 20321 | { ac_try='test -s conftest.$ac_objext' |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20322 | { (case "(($ac_try" in |
| 20323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20324 | *) ac_try_echo=$ac_try;; |
| 20325 | esac |
| 20326 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20327 | (eval "$ac_try") 2>&5 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20328 | ac_status=$? |
| 20329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20330 | (exit $ac_status); }; }; then |
| 20331 | ac_cv_prog_cc_g=yes |
| 20332 | else |
| 20333 | echo "$as_me: failed program was:" >&5 |
| 20334 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20335 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20336 | CFLAGS="" |
| 20337 | cat >conftest.$ac_ext <<_ACEOF |
| 20338 | /* confdefs.h. */ |
| 20339 | _ACEOF |
| 20340 | cat confdefs.h >>conftest.$ac_ext |
| 20341 | cat >>conftest.$ac_ext <<_ACEOF |
| 20342 | /* end confdefs.h. */ |
| 20343 | |
| 20344 | int |
| 20345 | main () |
| 20346 | { |
| 20347 | |
| 20348 | ; |
| 20349 | return 0; |
| 20350 | } |
| 20351 | _ACEOF |
| 20352 | rm -f conftest.$ac_objext |
| 20353 | if { (ac_try="$ac_compile" |
| 20354 | case "(($ac_try" in |
| 20355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20356 | *) ac_try_echo=$ac_try;; |
| 20357 | esac |
| 20358 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20359 | (eval "$ac_compile") 2>conftest.er1 |
| 20360 | ac_status=$? |
| 20361 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20362 | rm -f conftest.er1 |
| 20363 | cat conftest.err >&5 |
| 20364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20365 | (exit $ac_status); } && |
| 20366 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20367 | { (case "(($ac_try" in |
| 20368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20369 | *) ac_try_echo=$ac_try;; |
| 20370 | esac |
| 20371 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20372 | (eval "$ac_try") 2>&5 |
| 20373 | ac_status=$? |
| 20374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20375 | (exit $ac_status); }; } && |
| 20376 | { ac_try='test -s conftest.$ac_objext' |
| 20377 | { (case "(($ac_try" in |
| 20378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20379 | *) ac_try_echo=$ac_try;; |
| 20380 | esac |
| 20381 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20382 | (eval "$ac_try") 2>&5 |
| 20383 | ac_status=$? |
| 20384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20385 | (exit $ac_status); }; }; then |
| 20386 | : |
| 20387 | else |
| 20388 | echo "$as_me: failed program was:" >&5 |
| 20389 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20390 | |
| 20391 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 20392 | CFLAGS="-g" |
| 20393 | cat >conftest.$ac_ext <<_ACEOF |
| 20394 | /* confdefs.h. */ |
| 20395 | _ACEOF |
| 20396 | cat confdefs.h >>conftest.$ac_ext |
| 20397 | cat >>conftest.$ac_ext <<_ACEOF |
| 20398 | /* end confdefs.h. */ |
| 20399 | |
| 20400 | int |
| 20401 | main () |
| 20402 | { |
| 20403 | |
| 20404 | ; |
| 20405 | return 0; |
| 20406 | } |
| 20407 | _ACEOF |
| 20408 | rm -f conftest.$ac_objext |
| 20409 | if { (ac_try="$ac_compile" |
| 20410 | case "(($ac_try" in |
| 20411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20412 | *) ac_try_echo=$ac_try;; |
| 20413 | esac |
| 20414 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20415 | (eval "$ac_compile") 2>conftest.er1 |
| 20416 | ac_status=$? |
| 20417 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20418 | rm -f conftest.er1 |
| 20419 | cat conftest.err >&5 |
| 20420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20421 | (exit $ac_status); } && |
| 20422 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20423 | { (case "(($ac_try" in |
| 20424 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20425 | *) ac_try_echo=$ac_try;; |
| 20426 | esac |
| 20427 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20428 | (eval "$ac_try") 2>&5 |
| 20429 | ac_status=$? |
| 20430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20431 | (exit $ac_status); }; } && |
| 20432 | { ac_try='test -s conftest.$ac_objext' |
| 20433 | { (case "(($ac_try" in |
| 20434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20435 | *) ac_try_echo=$ac_try;; |
| 20436 | esac |
| 20437 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20438 | (eval "$ac_try") 2>&5 |
| 20439 | ac_status=$? |
| 20440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20441 | (exit $ac_status); }; }; then |
| 20442 | ac_cv_prog_cc_g=yes |
| 20443 | else |
| 20444 | echo "$as_me: failed program was:" >&5 |
| 20445 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20446 | |
| 20447 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20448 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20449 | |
| 20450 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20451 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20452 | |
| 20453 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20454 | fi |
| 20455 | |
| 20456 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20457 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 20458 | fi |
| 20459 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 20460 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20461 | if test "$ac_test_CFLAGS" = set; then |
| 20462 | CFLAGS=$ac_save_CFLAGS |
| 20463 | elif test $ac_cv_prog_cc_g = yes; then |
| 20464 | if test "$GCC" = yes; then |
| 20465 | CFLAGS="-g -O2" |
| 20466 | else |
| 20467 | CFLAGS="-g" |
| 20468 | fi |
| 20469 | else |
| 20470 | if test "$GCC" = yes; then |
| 20471 | CFLAGS="-O2" |
| 20472 | else |
| 20473 | CFLAGS= |
| 20474 | fi |
| 20475 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20476 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 20477 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 20478 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20479 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20480 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20481 | ac_cv_prog_cc_c89=no |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20482 | ac_save_CC=$CC |
| 20483 | cat >conftest.$ac_ext <<_ACEOF |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20484 | /* confdefs.h. */ |
| 20485 | _ACEOF |
| 20486 | cat confdefs.h >>conftest.$ac_ext |
| 20487 | cat >>conftest.$ac_ext <<_ACEOF |
| 20488 | /* end confdefs.h. */ |
| 20489 | #include <stdarg.h> |
| 20490 | #include <stdio.h> |
| 20491 | #include <sys/types.h> |
| 20492 | #include <sys/stat.h> |
| 20493 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 20494 | struct buf { int x; }; |
| 20495 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 20496 | static char *e (p, i) |
| 20497 | char **p; |
| 20498 | int i; |
| 20499 | { |
| 20500 | return p[i]; |
| 20501 | } |
| 20502 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 20503 | { |
| 20504 | char *s; |
| 20505 | va_list v; |
| 20506 | va_start (v,p); |
| 20507 | s = g (p, va_arg (v,int)); |
| 20508 | va_end (v); |
| 20509 | return s; |
| 20510 | } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 20511 | |
| 20512 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 20513 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 20514 | These don't provoke an error unfortunately, instead are silently treated |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20515 | as 'x'. The following induces an error, until -std is added to get |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 20516 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 20517 | array size at least. It's necessary to write '\x00'==0 to get something |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20518 | that's true only with -std. */ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 20519 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 20520 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20521 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 20522 | inside strings and character constants. */ |
| 20523 | #define FOO(x) 'x' |
| 20524 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 20525 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20526 | int test (int i, double x); |
| 20527 | struct s1 {int (*f) (int a);}; |
| 20528 | struct s2 {int (*f) (double a);}; |
| 20529 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 20530 | int argc; |
| 20531 | char **argv; |
| 20532 | int |
| 20533 | main () |
| 20534 | { |
| 20535 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 20536 | ; |
| 20537 | return 0; |
| 20538 | } |
| 20539 | _ACEOF |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20540 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 20541 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20542 | do |
| 20543 | CC="$ac_save_CC $ac_arg" |
| 20544 | rm -f conftest.$ac_objext |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20545 | if { (ac_try="$ac_compile" |
| 20546 | case "(($ac_try" in |
| 20547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20548 | *) ac_try_echo=$ac_try;; |
| 20549 | esac |
| 20550 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20551 | (eval "$ac_compile") 2>conftest.er1 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20552 | ac_status=$? |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 20553 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20554 | rm -f conftest.er1 |
| 20555 | cat conftest.err >&5 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20557 | (exit $ac_status); } && |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20558 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20559 | { (case "(($ac_try" in |
| 20560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20561 | *) ac_try_echo=$ac_try;; |
| 20562 | esac |
| 20563 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20564 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 20565 | ac_status=$? |
| 20566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20567 | (exit $ac_status); }; } && |
| 20568 | { ac_try='test -s conftest.$ac_objext' |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20569 | { (case "(($ac_try" in |
| 20570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20571 | *) ac_try_echo=$ac_try;; |
| 20572 | esac |
| 20573 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20574 | (eval "$ac_try") 2>&5 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20575 | ac_status=$? |
| 20576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20577 | (exit $ac_status); }; }; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20578 | ac_cv_prog_cc_c89=$ac_arg |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20579 | else |
| 20580 | echo "$as_me: failed program was:" >&5 |
| 20581 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20582 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20583 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20584 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20585 | |
| 20586 | rm -f core conftest.err conftest.$ac_objext |
| 20587 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20588 | done |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20589 | rm -f conftest.$ac_ext |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20590 | CC=$ac_save_CC |
| 20591 | |
| 20592 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20593 | # AC_CACHE_VAL |
| 20594 | case "x$ac_cv_prog_cc_c89" in |
| 20595 | x) |
| 20596 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 20597 | echo "${ECHO_T}none needed" >&6; } ;; |
| 20598 | xno) |
| 20599 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 20600 | echo "${ECHO_T}unsupported" >&6; } ;; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20601 | *) |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20602 | CC="$CC $ac_cv_prog_cc_c89" |
| 20603 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 20604 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20605 | esac |
| 20606 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20607 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20608 | ac_ext=c |
| 20609 | ac_cpp='$CPP $CPPFLAGS' |
| 20610 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20611 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20612 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20613 | |
| 20614 | depcc="$CC" am_compiler_list= |
| 20615 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20616 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 20617 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20618 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
| 20619 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20620 | else |
| 20621 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 20622 | # We make a subdir and do the tests there. Otherwise we can end up |
| 20623 | # making bogus files that we don't know about and never remove. For |
| 20624 | # instance it was reported that on HP-UX the gcc test will end up |
| 20625 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 20626 | # in D'. |
| 20627 | mkdir conftest.dir |
| 20628 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 20629 | # using a relative directory. |
| 20630 | cp "$am_depcomp" conftest.dir |
| 20631 | cd conftest.dir |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 20632 | # We will build objects and dependencies in a subdirectory because |
| 20633 | # it helps to detect inapplicable dependency modes. For instance |
| 20634 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 20635 | # side effect of compilation, but ICC will put the dependencies in |
| 20636 | # the current directory while Tru64 will put them in the object |
| 20637 | # directory. |
| 20638 | mkdir sub |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20639 | |
| 20640 | am_cv_CC_dependencies_compiler_type=none |
| 20641 | if test "$am_compiler_list" = ""; then |
| 20642 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 20643 | fi |
| 20644 | for depmode in $am_compiler_list; do |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 20645 | # Setup a source with many dependencies, because some compilers |
| 20646 | # like to wrap large dependency lists on column 80 (with \), and |
| 20647 | # we should not choose a depcomp mode which is confused by this. |
| 20648 | # |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20649 | # We need to recreate these files for each test, as the compiler may |
| 20650 | # overwrite some of them when testing with obscure command lines. |
| 20651 | # This happens at least with the AIX C compiler. |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 20652 | : > sub/conftest.c |
| 20653 | for i in 1 2 3 4 5 6; do |
| 20654 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 20655 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 20656 | # Solaris 8's {/usr,}/bin/sh. |
| 20657 | touch sub/conftst$i.h |
| 20658 | done |
| 20659 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20660 | |
| 20661 | case $depmode in |
| 20662 | nosideeffect) |
| 20663 | # after this tag, mechanisms are not by side-effect, so they'll |
| 20664 | # only be used when explicitly requested |
| 20665 | if test "x$enable_dependency_tracking" = xyes; then |
| 20666 | continue |
| 20667 | else |
| 20668 | break |
| 20669 | fi |
| 20670 | ;; |
| 20671 | none) break ;; |
| 20672 | esac |
| 20673 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 20674 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 20675 | # handle `-M -o', and we need to detect this. |
| 20676 | if depmode=$depmode \ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 20677 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| 20678 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 20679 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| 20680 | >/dev/null 2>conftest.err && |
| 20681 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 20682 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20683 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 20684 | # icc doesn't choke on unknown options, it will just issue warnings |
| 20685 | # or remarks (even with -Werror). So we grep stderr for any message |
| 20686 | # that says an option was ignored or not supported. |
| 20687 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 20688 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 20689 | # The diagnosis changed in icc 8.0: |
| 20690 | # icc: Command line remark: option '-MP' not supported |
| 20691 | if (grep 'ignoring option' conftest.err || |
| 20692 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 20693 | am_cv_CC_dependencies_compiler_type=$depmode |
| 20694 | break |
| 20695 | fi |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20696 | fi |
| 20697 | done |
| 20698 | |
| 20699 | cd .. |
| 20700 | rm -rf conftest.dir |
| 20701 | else |
| 20702 | am_cv_CC_dependencies_compiler_type=none |
| 20703 | fi |
| 20704 | |
| 20705 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20706 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 20707 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 20708 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 20709 | |
| 20710 | |
| 20711 | |
| 20712 | if |
| 20713 | test "x$enable_dependency_tracking" != xno \ |
| 20714 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 20715 | am__fastdepCC_TRUE= |
| 20716 | am__fastdepCC_FALSE='#' |
| 20717 | else |
| 20718 | am__fastdepCC_TRUE='#' |
| 20719 | am__fastdepCC_FALSE= |
| 20720 | fi |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20721 | |
| 20722 | |
| 20723 | ac_ext=c |
| 20724 | ac_cpp='$CPP $CPPFLAGS' |
| 20725 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20726 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20727 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20728 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 20729 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20730 | # On Suns, sometimes $CPP names a directory. |
| 20731 | if test -n "$CPP" && test -d "$CPP"; then |
| 20732 | CPP= |
| 20733 | fi |
| 20734 | if test -z "$CPP"; then |
| 20735 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 20736 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20737 | else |
| 20738 | # Double quotes because CPP needs to be expanded |
| 20739 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 20740 | do |
| 20741 | ac_preproc_ok=false |
| 20742 | for ac_c_preproc_warn_flag in '' yes |
| 20743 | do |
| 20744 | # Use a header file that comes with gcc, so configuring glibc |
| 20745 | # with a fresh cross-compiler works. |
| 20746 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 20747 | # <limits.h> exists even on freestanding compilers. |
| 20748 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 20749 | # not just through cpp. "Syntax error" is here to catch this case. |
| 20750 | cat >conftest.$ac_ext <<_ACEOF |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20751 | /* confdefs.h. */ |
| 20752 | _ACEOF |
| 20753 | cat confdefs.h >>conftest.$ac_ext |
| 20754 | cat >>conftest.$ac_ext <<_ACEOF |
| 20755 | /* end confdefs.h. */ |
| 20756 | #ifdef __STDC__ |
| 20757 | # include <limits.h> |
| 20758 | #else |
| 20759 | # include <assert.h> |
| 20760 | #endif |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 20761 | Syntax error |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20762 | _ACEOF |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20763 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 20764 | case "(($ac_try" in |
| 20765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20766 | *) ac_try_echo=$ac_try;; |
| 20767 | esac |
| 20768 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20769 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20770 | ac_status=$? |
| 20771 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20772 | rm -f conftest.er1 |
| 20773 | cat conftest.err >&5 |
| 20774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20775 | (exit $ac_status); } >/dev/null; then |
| 20776 | if test -s conftest.err; then |
| 20777 | ac_cpp_err=$ac_c_preproc_warn_flag |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 20778 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20779 | else |
| 20780 | ac_cpp_err= |
| 20781 | fi |
| 20782 | else |
| 20783 | ac_cpp_err=yes |
| 20784 | fi |
| 20785 | if test -z "$ac_cpp_err"; then |
| 20786 | : |
| 20787 | else |
| 20788 | echo "$as_me: failed program was:" >&5 |
| 20789 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20790 | |
| 20791 | # Broken: fails on valid input. |
| 20792 | continue |
| 20793 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20794 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20795 | rm -f conftest.err conftest.$ac_ext |
| 20796 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20797 | # OK, works on sane cases. Now check whether nonexistent headers |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20798 | # can be detected and how. |
| 20799 | cat >conftest.$ac_ext <<_ACEOF |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20800 | /* confdefs.h. */ |
| 20801 | _ACEOF |
| 20802 | cat confdefs.h >>conftest.$ac_ext |
| 20803 | cat >>conftest.$ac_ext <<_ACEOF |
| 20804 | /* end confdefs.h. */ |
| 20805 | #include <ac_nonexistent.h> |
| 20806 | _ACEOF |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20807 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 20808 | case "(($ac_try" in |
| 20809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20810 | *) ac_try_echo=$ac_try;; |
| 20811 | esac |
| 20812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20813 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20814 | ac_status=$? |
| 20815 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20816 | rm -f conftest.er1 |
| 20817 | cat conftest.err >&5 |
| 20818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20819 | (exit $ac_status); } >/dev/null; then |
| 20820 | if test -s conftest.err; then |
| 20821 | ac_cpp_err=$ac_c_preproc_warn_flag |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 20822 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20823 | else |
| 20824 | ac_cpp_err= |
| 20825 | fi |
| 20826 | else |
| 20827 | ac_cpp_err=yes |
| 20828 | fi |
| 20829 | if test -z "$ac_cpp_err"; then |
| 20830 | # Broken: success on invalid input. |
| 20831 | continue |
| 20832 | else |
| 20833 | echo "$as_me: failed program was:" >&5 |
| 20834 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20835 | |
| 20836 | # Passes both tests. |
| 20837 | ac_preproc_ok=: |
| 20838 | break |
| 20839 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20840 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20841 | rm -f conftest.err conftest.$ac_ext |
| 20842 | |
| 20843 | done |
| 20844 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 20845 | rm -f conftest.err conftest.$ac_ext |
| 20846 | if $ac_preproc_ok; then |
| 20847 | break |
| 20848 | fi |
| 20849 | |
| 20850 | done |
| 20851 | ac_cv_prog_CPP=$CPP |
| 20852 | |
| 20853 | fi |
| 20854 | CPP=$ac_cv_prog_CPP |
| 20855 | else |
| 20856 | ac_cv_prog_CPP=$CPP |
| 20857 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20858 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 20859 | echo "${ECHO_T}$CPP" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20860 | ac_preproc_ok=false |
| 20861 | for ac_c_preproc_warn_flag in '' yes |
| 20862 | do |
| 20863 | # Use a header file that comes with gcc, so configuring glibc |
| 20864 | # with a fresh cross-compiler works. |
| 20865 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 20866 | # <limits.h> exists even on freestanding compilers. |
| 20867 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 20868 | # not just through cpp. "Syntax error" is here to catch this case. |
| 20869 | cat >conftest.$ac_ext <<_ACEOF |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20870 | /* confdefs.h. */ |
| 20871 | _ACEOF |
| 20872 | cat confdefs.h >>conftest.$ac_ext |
| 20873 | cat >>conftest.$ac_ext <<_ACEOF |
| 20874 | /* end confdefs.h. */ |
| 20875 | #ifdef __STDC__ |
| 20876 | # include <limits.h> |
| 20877 | #else |
| 20878 | # include <assert.h> |
| 20879 | #endif |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 20880 | Syntax error |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20881 | _ACEOF |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20882 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 20883 | case "(($ac_try" in |
| 20884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20885 | *) ac_try_echo=$ac_try;; |
| 20886 | esac |
| 20887 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20888 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20889 | ac_status=$? |
| 20890 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20891 | rm -f conftest.er1 |
| 20892 | cat conftest.err >&5 |
| 20893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20894 | (exit $ac_status); } >/dev/null; then |
| 20895 | if test -s conftest.err; then |
| 20896 | ac_cpp_err=$ac_c_preproc_warn_flag |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 20897 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20898 | else |
| 20899 | ac_cpp_err= |
| 20900 | fi |
| 20901 | else |
| 20902 | ac_cpp_err=yes |
| 20903 | fi |
| 20904 | if test -z "$ac_cpp_err"; then |
| 20905 | : |
| 20906 | else |
| 20907 | echo "$as_me: failed program was:" >&5 |
| 20908 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20909 | |
| 20910 | # Broken: fails on valid input. |
| 20911 | continue |
| 20912 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20913 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20914 | rm -f conftest.err conftest.$ac_ext |
| 20915 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20916 | # OK, works on sane cases. Now check whether nonexistent headers |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20917 | # can be detected and how. |
| 20918 | cat >conftest.$ac_ext <<_ACEOF |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20919 | /* confdefs.h. */ |
| 20920 | _ACEOF |
| 20921 | cat confdefs.h >>conftest.$ac_ext |
| 20922 | cat >>conftest.$ac_ext <<_ACEOF |
| 20923 | /* end confdefs.h. */ |
| 20924 | #include <ac_nonexistent.h> |
| 20925 | _ACEOF |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20926 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 20927 | case "(($ac_try" in |
| 20928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20929 | *) ac_try_echo=$ac_try;; |
| 20930 | esac |
| 20931 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20932 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20933 | ac_status=$? |
| 20934 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20935 | rm -f conftest.er1 |
| 20936 | cat conftest.err >&5 |
| 20937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20938 | (exit $ac_status); } >/dev/null; then |
| 20939 | if test -s conftest.err; then |
| 20940 | ac_cpp_err=$ac_c_preproc_warn_flag |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 20941 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20942 | else |
| 20943 | ac_cpp_err= |
| 20944 | fi |
| 20945 | else |
| 20946 | ac_cpp_err=yes |
| 20947 | fi |
| 20948 | if test -z "$ac_cpp_err"; then |
| 20949 | # Broken: success on invalid input. |
| 20950 | continue |
| 20951 | else |
| 20952 | echo "$as_me: failed program was:" >&5 |
| 20953 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20954 | |
| 20955 | # Passes both tests. |
| 20956 | ac_preproc_ok=: |
| 20957 | break |
| 20958 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20959 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20960 | rm -f conftest.err conftest.$ac_ext |
| 20961 | |
| 20962 | done |
| 20963 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 20964 | rm -f conftest.err conftest.$ac_ext |
| 20965 | if $ac_preproc_ok; then |
| 20966 | : |
| 20967 | else |
| 20968 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 20969 | See \`config.log' for more details." >&5 |
| 20970 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 20971 | See \`config.log' for more details." >&2;} |
| 20972 | { (exit 1); exit 1; }; } |
| 20973 | fi |
| 20974 | |
| 20975 | ac_ext=c |
| 20976 | ac_cpp='$CPP $CPPFLAGS' |
| 20977 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20978 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20979 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20980 | |
| 20981 | # Find a good install program. We prefer a C program (faster), |
| 20982 | # so one script is as good as another. But avoid the broken or |
| 20983 | # incompatible versions: |
| 20984 | # SysV /etc/install, /usr/sbin/install |
| 20985 | # SunOS /usr/etc/install |
| 20986 | # IRIX /sbin/install |
| 20987 | # AIX /bin/install |
| 20988 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 20989 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 20990 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 20991 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 20992 | # OS/2's system install, which has a completely different semantic |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20993 | # ./install, which can be erroneously created by make from ./install.sh. |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20994 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 20995 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20996 | if test -z "$INSTALL"; then |
| 20997 | if test "${ac_cv_path_install+set}" = set; then |
| 20998 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20999 | else |
| 21000 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 21001 | for as_dir in $PATH |
| 21002 | do |
| 21003 | IFS=$as_save_IFS |
| 21004 | test -z "$as_dir" && as_dir=. |
| 21005 | # Account for people who put trailing slashes in PATH elements. |
| 21006 | case $as_dir/ in |
| 21007 | ./ | .// | /cC/* | \ |
| 21008 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21009 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21010 | /usr/ucb/* ) ;; |
| 21011 | *) |
| 21012 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 21013 | # Don't use installbsd from OSF since it installs stuff as root |
| 21014 | # by default. |
| 21015 | for ac_prog in ginstall scoinst install; do |
| 21016 | for ac_exec_ext in '' $ac_executable_extensions; do |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21017 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21018 | if test $ac_prog = install && |
| 21019 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 21020 | # AIX install. It has an incompatible calling convention. |
| 21021 | : |
| 21022 | elif test $ac_prog = install && |
| 21023 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 21024 | # program-specific install script used by HP pwplus--don't use. |
| 21025 | : |
| 21026 | else |
| 21027 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 21028 | break 3 |
| 21029 | fi |
| 21030 | fi |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21031 | done |
| 21032 | done |
| 21033 | ;; |
| 21034 | esac |
| 21035 | done |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21036 | IFS=$as_save_IFS |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21037 | |
| 21038 | |
| 21039 | fi |
| 21040 | if test "${ac_cv_path_install+set}" = set; then |
| 21041 | INSTALL=$ac_cv_path_install |
| 21042 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21043 | # As a last resort, use the slow shell script. Don't cache a |
| 21044 | # value for INSTALL within a source directory, because that will |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21045 | # break other packages using the cache if that directory is |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21046 | # removed, or if the value is a relative name. |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21047 | INSTALL=$ac_install_sh |
| 21048 | fi |
| 21049 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21050 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 21051 | echo "${ECHO_T}$INSTALL" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21052 | |
| 21053 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 21054 | # It thinks the first close brace ends the variable substitution. |
| 21055 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 21056 | |
| 21057 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 21058 | |
| 21059 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 21060 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21061 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 21062 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21063 | LN_S=$as_ln_s |
| 21064 | if test "$LN_S" = "ln -s"; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21065 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 21066 | echo "${ECHO_T}yes" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21067 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21068 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 21069 | echo "${ECHO_T}no, using $LN_S" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21070 | fi |
| 21071 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21072 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 21073 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
| 21074 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 21075 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21076 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21077 | else |
| 21078 | cat >conftest.make <<\_ACEOF |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21079 | SHELL = /bin/sh |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21080 | all: |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21081 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21082 | _ACEOF |
| 21083 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21084 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 21085 | *@@@%%%=?*=@@@%%%*) |
| 21086 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 21087 | *) |
| 21088 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 21089 | esac |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21090 | rm -f conftest.make |
| 21091 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21092 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 21093 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 21094 | echo "${ECHO_T}yes" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21095 | SET_MAKE= |
| 21096 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21097 | { echo "$as_me:$LINENO: result: no" >&5 |
| 21098 | echo "${ECHO_T}no" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21099 | SET_MAKE="MAKE=${MAKE-make}" |
| 21100 | fi |
| 21101 | |
| 21102 | for ac_prog in 'bison -y' byacc |
| 21103 | do |
| 21104 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 21105 | set dummy $ac_prog; ac_word=$2 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21106 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 21107 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21108 | if test "${ac_cv_prog_YACC+set}" = set; then |
| 21109 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21110 | else |
| 21111 | if test -n "$YACC"; then |
| 21112 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 21113 | else |
| 21114 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 21115 | for as_dir in $PATH |
| 21116 | do |
| 21117 | IFS=$as_save_IFS |
| 21118 | test -z "$as_dir" && as_dir=. |
| 21119 | for ac_exec_ext in '' $ac_executable_extensions; do |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21120 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21121 | ac_cv_prog_YACC="$ac_prog" |
| 21122 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 21123 | break 2 |
| 21124 | fi |
| 21125 | done |
| 21126 | done |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21127 | IFS=$as_save_IFS |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21128 | |
| 21129 | fi |
| 21130 | fi |
| 21131 | YACC=$ac_cv_prog_YACC |
| 21132 | if test -n "$YACC"; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21133 | { echo "$as_me:$LINENO: result: $YACC" >&5 |
| 21134 | echo "${ECHO_T}$YACC" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21135 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21136 | { echo "$as_me:$LINENO: result: no" >&5 |
| 21137 | echo "${ECHO_T}no" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21138 | fi |
| 21139 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21140 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21141 | test -n "$YACC" && break |
| 21142 | done |
| 21143 | test -n "$YACC" || YACC="yacc" |
| 21144 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21145 | for ac_prog in flex lex |
| 21146 | do |
| 21147 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 21148 | set dummy $ac_prog; ac_word=$2 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21149 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 21150 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21151 | if test "${ac_cv_prog_LEX+set}" = set; then |
| 21152 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21153 | else |
| 21154 | if test -n "$LEX"; then |
| 21155 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 21156 | else |
| 21157 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 21158 | for as_dir in $PATH |
| 21159 | do |
| 21160 | IFS=$as_save_IFS |
| 21161 | test -z "$as_dir" && as_dir=. |
| 21162 | for ac_exec_ext in '' $ac_executable_extensions; do |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21163 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21164 | ac_cv_prog_LEX="$ac_prog" |
| 21165 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 21166 | break 2 |
| 21167 | fi |
| 21168 | done |
| 21169 | done |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21170 | IFS=$as_save_IFS |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21171 | |
| 21172 | fi |
| 21173 | fi |
| 21174 | LEX=$ac_cv_prog_LEX |
| 21175 | if test -n "$LEX"; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21176 | { echo "$as_me:$LINENO: result: $LEX" >&5 |
| 21177 | echo "${ECHO_T}$LEX" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21178 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21179 | { echo "$as_me:$LINENO: result: no" >&5 |
| 21180 | echo "${ECHO_T}no" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21181 | fi |
| 21182 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21183 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21184 | test -n "$LEX" && break |
| 21185 | done |
| 21186 | test -n "$LEX" || LEX=":" |
| 21187 | |
| 21188 | if test -z "$LEXLIB" |
| 21189 | then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21190 | { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
| 21191 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21192 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then |
| 21193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21194 | else |
| 21195 | ac_check_lib_save_LIBS=$LIBS |
| 21196 | LIBS="-lfl $LIBS" |
| 21197 | cat >conftest.$ac_ext <<_ACEOF |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21198 | /* confdefs.h. */ |
| 21199 | _ACEOF |
| 21200 | cat confdefs.h >>conftest.$ac_ext |
| 21201 | cat >>conftest.$ac_ext <<_ACEOF |
| 21202 | /* end confdefs.h. */ |
| 21203 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21204 | /* Override any GCC internal prototype to avoid an error. |
| 21205 | Use char because int might match the return type of a GCC |
| 21206 | builtin and then its argument prototype would still apply. */ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21207 | #ifdef __cplusplus |
| 21208 | extern "C" |
| 21209 | #endif |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21210 | char yywrap (); |
| 21211 | int |
| 21212 | main () |
| 21213 | { |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21214 | return yywrap (); |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21215 | ; |
| 21216 | return 0; |
| 21217 | } |
| 21218 | _ACEOF |
| 21219 | rm -f conftest.$ac_objext conftest$ac_exeext |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21220 | if { (ac_try="$ac_link" |
| 21221 | case "(($ac_try" in |
| 21222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21223 | *) ac_try_echo=$ac_try;; |
| 21224 | esac |
| 21225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21226 | (eval "$ac_link") 2>conftest.er1 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21227 | ac_status=$? |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21228 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21229 | rm -f conftest.er1 |
| 21230 | cat conftest.err >&5 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21232 | (exit $ac_status); } && |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21233 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21234 | { (case "(($ac_try" in |
| 21235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21236 | *) ac_try_echo=$ac_try;; |
| 21237 | esac |
| 21238 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21239 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21240 | ac_status=$? |
| 21241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21242 | (exit $ac_status); }; } && |
| 21243 | { ac_try='test -s conftest$ac_exeext' |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21244 | { (case "(($ac_try" in |
| 21245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21246 | *) ac_try_echo=$ac_try;; |
| 21247 | esac |
| 21248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21249 | (eval "$ac_try") 2>&5 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21250 | ac_status=$? |
| 21251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21252 | (exit $ac_status); }; }; then |
| 21253 | ac_cv_lib_fl_yywrap=yes |
| 21254 | else |
| 21255 | echo "$as_me: failed program was:" >&5 |
| 21256 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21257 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21258 | ac_cv_lib_fl_yywrap=no |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21259 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21260 | |
| 21261 | rm -f core conftest.err conftest.$ac_objext \ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21262 | conftest$ac_exeext conftest.$ac_ext |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21263 | LIBS=$ac_check_lib_save_LIBS |
| 21264 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21265 | { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
| 21266 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21267 | if test $ac_cv_lib_fl_yywrap = yes; then |
| 21268 | LEXLIB="-lfl" |
| 21269 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21270 | { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
| 21271 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21272 | if test "${ac_cv_lib_l_yywrap+set}" = set; then |
| 21273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21274 | else |
| 21275 | ac_check_lib_save_LIBS=$LIBS |
| 21276 | LIBS="-ll $LIBS" |
| 21277 | cat >conftest.$ac_ext <<_ACEOF |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21278 | /* confdefs.h. */ |
| 21279 | _ACEOF |
| 21280 | cat confdefs.h >>conftest.$ac_ext |
| 21281 | cat >>conftest.$ac_ext <<_ACEOF |
| 21282 | /* end confdefs.h. */ |
| 21283 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21284 | /* Override any GCC internal prototype to avoid an error. |
| 21285 | Use char because int might match the return type of a GCC |
| 21286 | builtin and then its argument prototype would still apply. */ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21287 | #ifdef __cplusplus |
| 21288 | extern "C" |
| 21289 | #endif |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21290 | char yywrap (); |
| 21291 | int |
| 21292 | main () |
| 21293 | { |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21294 | return yywrap (); |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21295 | ; |
| 21296 | return 0; |
| 21297 | } |
| 21298 | _ACEOF |
| 21299 | rm -f conftest.$ac_objext conftest$ac_exeext |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21300 | if { (ac_try="$ac_link" |
| 21301 | case "(($ac_try" in |
| 21302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21303 | *) ac_try_echo=$ac_try;; |
| 21304 | esac |
| 21305 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21306 | (eval "$ac_link") 2>conftest.er1 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21307 | ac_status=$? |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21308 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21309 | rm -f conftest.er1 |
| 21310 | cat conftest.err >&5 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21312 | (exit $ac_status); } && |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21313 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21314 | { (case "(($ac_try" in |
| 21315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21316 | *) ac_try_echo=$ac_try;; |
| 21317 | esac |
| 21318 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21319 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21320 | ac_status=$? |
| 21321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21322 | (exit $ac_status); }; } && |
| 21323 | { ac_try='test -s conftest$ac_exeext' |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21324 | { (case "(($ac_try" in |
| 21325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21326 | *) ac_try_echo=$ac_try;; |
| 21327 | esac |
| 21328 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21329 | (eval "$ac_try") 2>&5 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21330 | ac_status=$? |
| 21331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21332 | (exit $ac_status); }; }; then |
| 21333 | ac_cv_lib_l_yywrap=yes |
| 21334 | else |
| 21335 | echo "$as_me: failed program was:" >&5 |
| 21336 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21337 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21338 | ac_cv_lib_l_yywrap=no |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21339 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21340 | |
| 21341 | rm -f core conftest.err conftest.$ac_objext \ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21342 | conftest$ac_exeext conftest.$ac_ext |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21343 | LIBS=$ac_check_lib_save_LIBS |
| 21344 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21345 | { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
| 21346 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21347 | if test $ac_cv_lib_l_yywrap = yes; then |
| 21348 | LEXLIB="-ll" |
| 21349 | fi |
| 21350 | |
| 21351 | fi |
| 21352 | |
| 21353 | fi |
| 21354 | |
| 21355 | if test "x$LEX" != "x:"; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21356 | { echo "$as_me:$LINENO: checking lex output file root" >&5 |
| 21357 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21358 | if test "${ac_cv_prog_lex_root+set}" = set; then |
| 21359 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21360 | else |
| 21361 | # The minimal lex program is just a single line: %%. But some broken lexes |
| 21362 | # (Solaris, I think it was) want two %% lines, so accommodate them. |
| 21363 | cat >conftest.l <<_ACEOF |
| 21364 | %% |
| 21365 | %% |
| 21366 | _ACEOF |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21367 | { (ac_try="$LEX conftest.l" |
| 21368 | case "(($ac_try" in |
| 21369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21370 | *) ac_try_echo=$ac_try;; |
| 21371 | esac |
| 21372 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21373 | (eval "$LEX conftest.l") 2>&5 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21374 | ac_status=$? |
| 21375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21376 | (exit $ac_status); } |
| 21377 | if test -f lex.yy.c; then |
| 21378 | ac_cv_prog_lex_root=lex.yy |
| 21379 | elif test -f lexyy.c; then |
| 21380 | ac_cv_prog_lex_root=lexyy |
| 21381 | else |
| 21382 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
| 21383 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
| 21384 | { (exit 1); exit 1; }; } |
| 21385 | fi |
| 21386 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21387 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
| 21388 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21389 | rm -f conftest.l |
| 21390 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
| 21391 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21392 | { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
| 21393 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21394 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
| 21395 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21396 | else |
| 21397 | # POSIX says lex can declare yytext either as a pointer or an array; the |
| 21398 | # default is implementation-dependent. Figure out which it is, since |
| 21399 | # not all implementations provide the %pointer and %array declarations. |
| 21400 | ac_cv_prog_lex_yytext_pointer=no |
| 21401 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
| 21402 | ac_save_LIBS=$LIBS |
| 21403 | LIBS="$LIBS $LEXLIB" |
| 21404 | cat >conftest.$ac_ext <<_ACEOF |
| 21405 | `cat $LEX_OUTPUT_ROOT.c` |
| 21406 | _ACEOF |
| 21407 | rm -f conftest.$ac_objext conftest$ac_exeext |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21408 | if { (ac_try="$ac_link" |
| 21409 | case "(($ac_try" in |
| 21410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21411 | *) ac_try_echo=$ac_try;; |
| 21412 | esac |
| 21413 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21414 | (eval "$ac_link") 2>conftest.er1 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21415 | ac_status=$? |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21416 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21417 | rm -f conftest.er1 |
| 21418 | cat conftest.err >&5 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21420 | (exit $ac_status); } && |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21421 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21422 | { (case "(($ac_try" in |
| 21423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21424 | *) ac_try_echo=$ac_try;; |
| 21425 | esac |
| 21426 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21427 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21428 | ac_status=$? |
| 21429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21430 | (exit $ac_status); }; } && |
| 21431 | { ac_try='test -s conftest$ac_exeext' |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21432 | { (case "(($ac_try" in |
| 21433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21434 | *) ac_try_echo=$ac_try;; |
| 21435 | esac |
| 21436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21437 | (eval "$ac_try") 2>&5 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21438 | ac_status=$? |
| 21439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21440 | (exit $ac_status); }; }; then |
| 21441 | ac_cv_prog_lex_yytext_pointer=yes |
| 21442 | else |
| 21443 | echo "$as_me: failed program was:" >&5 |
| 21444 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21445 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21446 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21447 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21448 | |
| 21449 | rm -f core conftest.err conftest.$ac_objext \ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21450 | conftest$ac_exeext conftest.$ac_ext |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21451 | LIBS=$ac_save_LIBS |
| 21452 | rm -f "${LEX_OUTPUT_ROOT}.c" |
| 21453 | |
| 21454 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21455 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
| 21456 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21457 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
| 21458 | |
| 21459 | cat >>confdefs.h <<\_ACEOF |
| 21460 | #define YYTEXT_POINTER 1 |
| 21461 | _ACEOF |
| 21462 | |
| 21463 | fi |
| 21464 | |
| 21465 | fi |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21466 | if test "$LEX" = :; then |
| 21467 | LEX=${am_missing_run}flex |
| 21468 | fi |
vlm | 77fff67 | 2005-03-30 05:14:26 +0000 | [diff] [blame] | 21469 | # Extract the first word of "ar", so it can be a program name with args. |
| 21470 | set dummy ar; ac_word=$2 |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21471 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 21472 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
vlm | 77fff67 | 2005-03-30 05:14:26 +0000 | [diff] [blame] | 21473 | if test "${ac_cv_path_AR+set}" = set; then |
| 21474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21475 | else |
| 21476 | case $AR in |
| 21477 | [\\/]* | ?:[\\/]*) |
| 21478 | ac_cv_path_AR="$AR" # Let the user override the test with a path. |
| 21479 | ;; |
| 21480 | *) |
| 21481 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 21482 | as_dummy="$PATH:/usr/ucb:/usr/ccs/bin" |
| 21483 | for as_dir in $as_dummy |
| 21484 | do |
| 21485 | IFS=$as_save_IFS |
| 21486 | test -z "$as_dir" && as_dir=. |
| 21487 | for ac_exec_ext in '' $ac_executable_extensions; do |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21488 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
vlm | 77fff67 | 2005-03-30 05:14:26 +0000 | [diff] [blame] | 21489 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" |
| 21490 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 21491 | break 2 |
| 21492 | fi |
| 21493 | done |
| 21494 | done |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21495 | IFS=$as_save_IFS |
vlm | 77fff67 | 2005-03-30 05:14:26 +0000 | [diff] [blame] | 21496 | |
| 21497 | test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar" |
| 21498 | ;; |
| 21499 | esac |
| 21500 | fi |
| 21501 | AR=$ac_cv_path_AR |
vlm | 77fff67 | 2005-03-30 05:14:26 +0000 | [diff] [blame] | 21502 | if test -n "$AR"; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21503 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 21504 | echo "${ECHO_T}$AR" >&6; } |
vlm | 77fff67 | 2005-03-30 05:14:26 +0000 | [diff] [blame] | 21505 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21506 | { echo "$as_me:$LINENO: result: no" >&5 |
| 21507 | echo "${ECHO_T}no" >&6; } |
vlm | 77fff67 | 2005-03-30 05:14:26 +0000 | [diff] [blame] | 21508 | fi |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21509 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21510 | |
vlm | dda60c4 | 2004-08-23 10:41:38 +0000 | [diff] [blame] | 21511 | case "$host_os" in |
vlm | ef98a37 | 2006-03-18 06:39:49 +0000 | [diff] [blame] | 21512 | cygwin) |
vlm | 4888a86 | 2006-03-18 06:25:40 +0000 | [diff] [blame] | 21513 | case "$target" in |
vlm | dda60c4 | 2004-08-23 10:41:38 +0000 | [diff] [blame] | 21514 | *mingw*) |
| 21515 | CC="$CC -mno-cygwin" |
| 21516 | esac |
| 21517 | ;; |
vlm | 4888a86 | 2006-03-18 06:25:40 +0000 | [diff] [blame] | 21518 | esac |
| 21519 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21520 | # Check whether --enable-Werror was given. |
vlm | ee2e9c5 | 2004-09-26 14:18:32 +0000 | [diff] [blame] | 21521 | if test "${enable_Werror+set}" = set; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21522 | enableval=$enable_Werror; enable_werror=$enableval |
vlm | ee2e9c5 | 2004-09-26 14:18:32 +0000 | [diff] [blame] | 21523 | else |
| 21524 | enable_werror=no |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21525 | fi |
| 21526 | |
vlm | ee2e9c5 | 2004-09-26 14:18:32 +0000 | [diff] [blame] | 21527 | if test x$enable_werror = xyes; then |
| 21528 | ADD_CFLAGS="-Werror -W -Wpointer-arith" |
| 21529 | fi |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21530 | |
| 21531 | |
| 21532 | case "$GCC" in |
| 21533 | yes) |
| 21534 | CFLAGS="$CFLAGS -Wall" |
| 21535 | CFLAGS="$CFLAGS -Wshadow" |
| 21536 | CFLAGS="$CFLAGS -Wcast-qual" |
| 21537 | CFLAGS="$CFLAGS -Wcast-align" |
vlm | 1ca8d23 | 2004-09-26 13:16:33 +0000 | [diff] [blame] | 21538 | CFLAGS="$CFLAGS -Wchar-subscripts" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21539 | CFLAGS="$CFLAGS -Wmissing-prototypes" |
| 21540 | CFLAGS="$CFLAGS -Wmissing-declarations" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21541 | ;; |
| 21542 | esac |
| 21543 | |
| 21544 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21545 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 21546 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21547 | if test "${ac_cv_header_stdc+set}" = set; then |
| 21548 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21549 | else |
| 21550 | cat >conftest.$ac_ext <<_ACEOF |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21551 | /* confdefs.h. */ |
| 21552 | _ACEOF |
| 21553 | cat confdefs.h >>conftest.$ac_ext |
| 21554 | cat >>conftest.$ac_ext <<_ACEOF |
| 21555 | /* end confdefs.h. */ |
| 21556 | #include <stdlib.h> |
| 21557 | #include <stdarg.h> |
| 21558 | #include <string.h> |
| 21559 | #include <float.h> |
| 21560 | |
| 21561 | int |
| 21562 | main () |
| 21563 | { |
| 21564 | |
| 21565 | ; |
| 21566 | return 0; |
| 21567 | } |
| 21568 | _ACEOF |
| 21569 | rm -f conftest.$ac_objext |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21570 | if { (ac_try="$ac_compile" |
| 21571 | case "(($ac_try" in |
| 21572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21573 | *) ac_try_echo=$ac_try;; |
| 21574 | esac |
| 21575 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21576 | (eval "$ac_compile") 2>conftest.er1 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21577 | ac_status=$? |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21578 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21579 | rm -f conftest.er1 |
| 21580 | cat conftest.err >&5 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21582 | (exit $ac_status); } && |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21583 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21584 | { (case "(($ac_try" in |
| 21585 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21586 | *) ac_try_echo=$ac_try;; |
| 21587 | esac |
| 21588 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21589 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21590 | ac_status=$? |
| 21591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21592 | (exit $ac_status); }; } && |
| 21593 | { ac_try='test -s conftest.$ac_objext' |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21594 | { (case "(($ac_try" in |
| 21595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21596 | *) ac_try_echo=$ac_try;; |
| 21597 | esac |
| 21598 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21599 | (eval "$ac_try") 2>&5 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21600 | ac_status=$? |
| 21601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21602 | (exit $ac_status); }; }; then |
| 21603 | ac_cv_header_stdc=yes |
| 21604 | else |
| 21605 | echo "$as_me: failed program was:" >&5 |
| 21606 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21607 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21608 | ac_cv_header_stdc=no |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21609 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21610 | |
| 21611 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21612 | |
| 21613 | if test $ac_cv_header_stdc = yes; then |
| 21614 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 21615 | cat >conftest.$ac_ext <<_ACEOF |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21616 | /* confdefs.h. */ |
| 21617 | _ACEOF |
| 21618 | cat confdefs.h >>conftest.$ac_ext |
| 21619 | cat >>conftest.$ac_ext <<_ACEOF |
| 21620 | /* end confdefs.h. */ |
| 21621 | #include <string.h> |
| 21622 | |
| 21623 | _ACEOF |
| 21624 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 21625 | $EGREP "memchr" >/dev/null 2>&1; then |
| 21626 | : |
| 21627 | else |
| 21628 | ac_cv_header_stdc=no |
| 21629 | fi |
| 21630 | rm -f conftest* |
| 21631 | |
| 21632 | fi |
| 21633 | |
| 21634 | if test $ac_cv_header_stdc = yes; then |
| 21635 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 21636 | cat >conftest.$ac_ext <<_ACEOF |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21637 | /* confdefs.h. */ |
| 21638 | _ACEOF |
| 21639 | cat confdefs.h >>conftest.$ac_ext |
| 21640 | cat >>conftest.$ac_ext <<_ACEOF |
| 21641 | /* end confdefs.h. */ |
| 21642 | #include <stdlib.h> |
| 21643 | |
| 21644 | _ACEOF |
| 21645 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 21646 | $EGREP "free" >/dev/null 2>&1; then |
| 21647 | : |
| 21648 | else |
| 21649 | ac_cv_header_stdc=no |
| 21650 | fi |
| 21651 | rm -f conftest* |
| 21652 | |
| 21653 | fi |
| 21654 | |
| 21655 | if test $ac_cv_header_stdc = yes; then |
| 21656 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 21657 | if test "$cross_compiling" = yes; then |
| 21658 | : |
| 21659 | else |
| 21660 | cat >conftest.$ac_ext <<_ACEOF |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21661 | /* confdefs.h. */ |
| 21662 | _ACEOF |
| 21663 | cat confdefs.h >>conftest.$ac_ext |
| 21664 | cat >>conftest.$ac_ext <<_ACEOF |
| 21665 | /* end confdefs.h. */ |
| 21666 | #include <ctype.h> |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21667 | #include <stdlib.h> |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21668 | #if ((' ' & 0x0FF) == 0x020) |
| 21669 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 21670 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 21671 | #else |
| 21672 | # define ISLOWER(c) \ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21673 | (('a' <= (c) && (c) <= 'i') \ |
| 21674 | || ('j' <= (c) && (c) <= 'r') \ |
| 21675 | || ('s' <= (c) && (c) <= 'z')) |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21676 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 21677 | #endif |
| 21678 | |
| 21679 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 21680 | int |
| 21681 | main () |
| 21682 | { |
| 21683 | int i; |
| 21684 | for (i = 0; i < 256; i++) |
| 21685 | if (XOR (islower (i), ISLOWER (i)) |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21686 | || toupper (i) != TOUPPER (i)) |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21687 | return 2; |
| 21688 | return 0; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21689 | } |
| 21690 | _ACEOF |
| 21691 | rm -f conftest$ac_exeext |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21692 | if { (ac_try="$ac_link" |
| 21693 | case "(($ac_try" in |
| 21694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21695 | *) ac_try_echo=$ac_try;; |
| 21696 | esac |
| 21697 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21698 | (eval "$ac_link") 2>&5 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21699 | ac_status=$? |
| 21700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21701 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21702 | { (case "(($ac_try" in |
| 21703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21704 | *) ac_try_echo=$ac_try;; |
| 21705 | esac |
| 21706 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21707 | (eval "$ac_try") 2>&5 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21708 | ac_status=$? |
| 21709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21710 | (exit $ac_status); }; }; then |
| 21711 | : |
| 21712 | else |
| 21713 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21714 | echo "$as_me: failed program was:" >&5 |
| 21715 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21716 | |
| 21717 | ( exit $ac_status ) |
| 21718 | ac_cv_header_stdc=no |
| 21719 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21720 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 21721 | fi |
| 21722 | |
| 21723 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21724 | fi |
| 21725 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21726 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 21727 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21728 | if test $ac_cv_header_stdc = yes; then |
| 21729 | |
| 21730 | cat >>confdefs.h <<\_ACEOF |
| 21731 | #define STDC_HEADERS 1 |
| 21732 | _ACEOF |
| 21733 | |
| 21734 | fi |
| 21735 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21736 | |
vlm | 1f1d8cb | 2004-08-13 16:58:19 +0000 | [diff] [blame] | 21737 | for ac_header in sys/param.h |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21738 | do |
| 21739 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21740 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 21741 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 21742 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 21743 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21744 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21745 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21746 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 21747 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 21748 | echo "${ECHO_T}$ac_res" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21749 | else |
| 21750 | # Is the header compilable? |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21751 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 21752 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21753 | cat >conftest.$ac_ext <<_ACEOF |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21754 | /* confdefs.h. */ |
| 21755 | _ACEOF |
| 21756 | cat confdefs.h >>conftest.$ac_ext |
| 21757 | cat >>conftest.$ac_ext <<_ACEOF |
| 21758 | /* end confdefs.h. */ |
| 21759 | $ac_includes_default |
| 21760 | #include <$ac_header> |
| 21761 | _ACEOF |
| 21762 | rm -f conftest.$ac_objext |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21763 | if { (ac_try="$ac_compile" |
| 21764 | case "(($ac_try" in |
| 21765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21766 | *) ac_try_echo=$ac_try;; |
| 21767 | esac |
| 21768 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21769 | (eval "$ac_compile") 2>conftest.er1 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21770 | ac_status=$? |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21771 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21772 | rm -f conftest.er1 |
| 21773 | cat conftest.err >&5 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21775 | (exit $ac_status); } && |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21776 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21777 | { (case "(($ac_try" in |
| 21778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21779 | *) ac_try_echo=$ac_try;; |
| 21780 | esac |
| 21781 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21782 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21783 | ac_status=$? |
| 21784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21785 | (exit $ac_status); }; } && |
| 21786 | { ac_try='test -s conftest.$ac_objext' |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21787 | { (case "(($ac_try" in |
| 21788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21789 | *) ac_try_echo=$ac_try;; |
| 21790 | esac |
| 21791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21792 | (eval "$ac_try") 2>&5 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21793 | ac_status=$? |
| 21794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21795 | (exit $ac_status); }; }; then |
| 21796 | ac_header_compiler=yes |
| 21797 | else |
| 21798 | echo "$as_me: failed program was:" >&5 |
| 21799 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21800 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21801 | ac_header_compiler=no |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21802 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21803 | |
| 21804 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21805 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 21806 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21807 | |
| 21808 | # Is the header present? |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21809 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 21810 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21811 | cat >conftest.$ac_ext <<_ACEOF |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21812 | /* confdefs.h. */ |
| 21813 | _ACEOF |
| 21814 | cat confdefs.h >>conftest.$ac_ext |
| 21815 | cat >>conftest.$ac_ext <<_ACEOF |
| 21816 | /* end confdefs.h. */ |
| 21817 | #include <$ac_header> |
| 21818 | _ACEOF |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21819 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 21820 | case "(($ac_try" in |
| 21821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21822 | *) ac_try_echo=$ac_try;; |
| 21823 | esac |
| 21824 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21825 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21826 | ac_status=$? |
| 21827 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21828 | rm -f conftest.er1 |
| 21829 | cat conftest.err >&5 |
| 21830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21831 | (exit $ac_status); } >/dev/null; then |
| 21832 | if test -s conftest.err; then |
| 21833 | ac_cpp_err=$ac_c_preproc_warn_flag |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21834 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21835 | else |
| 21836 | ac_cpp_err= |
| 21837 | fi |
| 21838 | else |
| 21839 | ac_cpp_err=yes |
| 21840 | fi |
| 21841 | if test -z "$ac_cpp_err"; then |
| 21842 | ac_header_preproc=yes |
| 21843 | else |
| 21844 | echo "$as_me: failed program was:" >&5 |
| 21845 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21846 | |
| 21847 | ac_header_preproc=no |
| 21848 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21849 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21850 | rm -f conftest.err conftest.$ac_ext |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21851 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 21852 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21853 | |
| 21854 | # So? What about this header? |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21855 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 21856 | yes:no: ) |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21857 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 21858 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21859 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 21860 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 21861 | ac_header_preproc=yes |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21862 | ;; |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21863 | no:yes:* ) |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21864 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 21865 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21866 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 21867 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 21868 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 21869 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 21870 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 21871 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21872 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 21873 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21874 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 21875 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21876 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21877 | ;; |
| 21878 | esac |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21879 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 21880 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 21881 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21882 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21883 | else |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21884 | eval "$as_ac_Header=\$ac_header_preproc" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21885 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21886 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 21887 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 21888 | echo "${ECHO_T}$ac_res" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21889 | |
| 21890 | fi |
| 21891 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 21892 | cat >>confdefs.h <<_ACEOF |
| 21893 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 21894 | _ACEOF |
| 21895 | |
| 21896 | fi |
| 21897 | |
| 21898 | done |
| 21899 | |
| 21900 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21901 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 21902 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21903 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 21904 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21905 | else |
| 21906 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 21907 | cat >conftest.$ac_ext <<_ACEOF |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21908 | /* confdefs.h. */ |
| 21909 | _ACEOF |
| 21910 | cat confdefs.h >>conftest.$ac_ext |
| 21911 | cat >>conftest.$ac_ext <<_ACEOF |
| 21912 | /* end confdefs.h. */ |
| 21913 | #include <sys/types.h> |
| 21914 | #include <sys/param.h> |
| 21915 | |
| 21916 | int |
| 21917 | main () |
| 21918 | { |
| 21919 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 21920 | bogus endian macros |
| 21921 | #endif |
| 21922 | |
| 21923 | ; |
| 21924 | return 0; |
| 21925 | } |
| 21926 | _ACEOF |
| 21927 | rm -f conftest.$ac_objext |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21928 | if { (ac_try="$ac_compile" |
| 21929 | case "(($ac_try" in |
| 21930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21931 | *) ac_try_echo=$ac_try;; |
| 21932 | esac |
| 21933 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21934 | (eval "$ac_compile") 2>conftest.er1 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21935 | ac_status=$? |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21936 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21937 | rm -f conftest.er1 |
| 21938 | cat conftest.err >&5 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21940 | (exit $ac_status); } && |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21941 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21942 | { (case "(($ac_try" in |
| 21943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21944 | *) ac_try_echo=$ac_try;; |
| 21945 | esac |
| 21946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21947 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21948 | ac_status=$? |
| 21949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21950 | (exit $ac_status); }; } && |
| 21951 | { ac_try='test -s conftest.$ac_objext' |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21952 | { (case "(($ac_try" in |
| 21953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21954 | *) ac_try_echo=$ac_try;; |
| 21955 | esac |
| 21956 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21957 | (eval "$ac_try") 2>&5 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21958 | ac_status=$? |
| 21959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21960 | (exit $ac_status); }; }; then |
| 21961 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 21962 | cat >conftest.$ac_ext <<_ACEOF |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21963 | /* confdefs.h. */ |
| 21964 | _ACEOF |
| 21965 | cat confdefs.h >>conftest.$ac_ext |
| 21966 | cat >>conftest.$ac_ext <<_ACEOF |
| 21967 | /* end confdefs.h. */ |
| 21968 | #include <sys/types.h> |
| 21969 | #include <sys/param.h> |
| 21970 | |
| 21971 | int |
| 21972 | main () |
| 21973 | { |
| 21974 | #if BYTE_ORDER != BIG_ENDIAN |
| 21975 | not big endian |
| 21976 | #endif |
| 21977 | |
| 21978 | ; |
| 21979 | return 0; |
| 21980 | } |
| 21981 | _ACEOF |
| 21982 | rm -f conftest.$ac_objext |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21983 | if { (ac_try="$ac_compile" |
| 21984 | case "(($ac_try" in |
| 21985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21986 | *) ac_try_echo=$ac_try;; |
| 21987 | esac |
| 21988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21989 | (eval "$ac_compile") 2>conftest.er1 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21990 | ac_status=$? |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21991 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21992 | rm -f conftest.er1 |
| 21993 | cat conftest.err >&5 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21995 | (exit $ac_status); } && |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 21996 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 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_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22003 | ac_status=$? |
| 22004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22005 | (exit $ac_status); }; } && |
| 22006 | { ac_try='test -s conftest.$ac_objext' |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22007 | { (case "(($ac_try" in |
| 22008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22009 | *) ac_try_echo=$ac_try;; |
| 22010 | esac |
| 22011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22012 | (eval "$ac_try") 2>&5 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22013 | ac_status=$? |
| 22014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22015 | (exit $ac_status); }; }; then |
| 22016 | ac_cv_c_bigendian=yes |
| 22017 | else |
| 22018 | echo "$as_me: failed program was:" >&5 |
| 22019 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22020 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22021 | ac_cv_c_bigendian=no |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22022 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22023 | |
| 22024 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22025 | else |
| 22026 | echo "$as_me: failed program was:" >&5 |
| 22027 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22028 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22029 | # It does not; compile a test program. |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22030 | if test "$cross_compiling" = yes; then |
| 22031 | # try to guess the endianness by grepping values into an object file |
| 22032 | ac_cv_c_bigendian=unknown |
| 22033 | cat >conftest.$ac_ext <<_ACEOF |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22034 | /* confdefs.h. */ |
| 22035 | _ACEOF |
| 22036 | cat confdefs.h >>conftest.$ac_ext |
| 22037 | cat >>conftest.$ac_ext <<_ACEOF |
| 22038 | /* end confdefs.h. */ |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22039 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 22040 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22041 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22042 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 22043 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22044 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 22045 | int |
| 22046 | main () |
| 22047 | { |
| 22048 | _ascii (); _ebcdic (); |
| 22049 | ; |
| 22050 | return 0; |
| 22051 | } |
| 22052 | _ACEOF |
| 22053 | rm -f conftest.$ac_objext |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22054 | if { (ac_try="$ac_compile" |
| 22055 | case "(($ac_try" in |
| 22056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22057 | *) ac_try_echo=$ac_try;; |
| 22058 | esac |
| 22059 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22060 | (eval "$ac_compile") 2>conftest.er1 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22061 | ac_status=$? |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22062 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22063 | rm -f conftest.er1 |
| 22064 | cat conftest.err >&5 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22066 | (exit $ac_status); } && |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22067 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22068 | { (case "(($ac_try" in |
| 22069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22070 | *) ac_try_echo=$ac_try;; |
| 22071 | esac |
| 22072 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22073 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22074 | ac_status=$? |
| 22075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22076 | (exit $ac_status); }; } && |
| 22077 | { ac_try='test -s conftest.$ac_objext' |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22078 | { (case "(($ac_try" in |
| 22079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22080 | *) ac_try_echo=$ac_try;; |
| 22081 | esac |
| 22082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22083 | (eval "$ac_try") 2>&5 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22084 | ac_status=$? |
| 22085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22086 | (exit $ac_status); }; }; then |
| 22087 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 22088 | ac_cv_c_bigendian=yes |
| 22089 | fi |
| 22090 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 22091 | if test "$ac_cv_c_bigendian" = unknown; then |
| 22092 | ac_cv_c_bigendian=no |
| 22093 | else |
| 22094 | # finding both strings is unlikely to happen, but who knows? |
| 22095 | ac_cv_c_bigendian=unknown |
| 22096 | fi |
| 22097 | fi |
| 22098 | else |
| 22099 | echo "$as_me: failed program was:" >&5 |
| 22100 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22101 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22102 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22103 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22104 | |
| 22105 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22106 | else |
| 22107 | cat >conftest.$ac_ext <<_ACEOF |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22108 | /* confdefs.h. */ |
| 22109 | _ACEOF |
| 22110 | cat confdefs.h >>conftest.$ac_ext |
| 22111 | cat >>conftest.$ac_ext <<_ACEOF |
| 22112 | /* end confdefs.h. */ |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22113 | $ac_includes_default |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22114 | int |
| 22115 | main () |
| 22116 | { |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22117 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22118 | /* Are we little or big endian? From Harbison&Steele. */ |
| 22119 | union |
| 22120 | { |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22121 | long int l; |
| 22122 | char c[sizeof (long int)]; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22123 | } u; |
| 22124 | u.l = 1; |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22125 | return u.c[sizeof (long int) - 1] == 1; |
| 22126 | |
| 22127 | ; |
| 22128 | return 0; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22129 | } |
| 22130 | _ACEOF |
| 22131 | rm -f conftest$ac_exeext |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22132 | if { (ac_try="$ac_link" |
| 22133 | case "(($ac_try" in |
| 22134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22135 | *) ac_try_echo=$ac_try;; |
| 22136 | esac |
| 22137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22138 | (eval "$ac_link") 2>&5 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22139 | ac_status=$? |
| 22140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22141 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22142 | { (case "(($ac_try" in |
| 22143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22144 | *) ac_try_echo=$ac_try;; |
| 22145 | esac |
| 22146 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22147 | (eval "$ac_try") 2>&5 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22148 | ac_status=$? |
| 22149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22150 | (exit $ac_status); }; }; then |
| 22151 | ac_cv_c_bigendian=no |
| 22152 | else |
| 22153 | echo "$as_me: program exited with status $ac_status" >&5 |
| 22154 | echo "$as_me: failed program was:" >&5 |
| 22155 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22156 | |
| 22157 | ( exit $ac_status ) |
| 22158 | ac_cv_c_bigendian=yes |
| 22159 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22160 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22161 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22162 | |
| 22163 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22164 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22165 | |
| 22166 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22167 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22168 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 22169 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22170 | case $ac_cv_c_bigendian in |
| 22171 | yes) |
| 22172 | |
| 22173 | cat >>confdefs.h <<\_ACEOF |
| 22174 | #define WORDS_BIGENDIAN 1 |
| 22175 | _ACEOF |
| 22176 | ;; |
| 22177 | no) |
| 22178 | ;; |
| 22179 | *) |
| 22180 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 22181 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 22182 | echo "$as_me: error: unknown endianness |
| 22183 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 22184 | { (exit 1); exit 1; }; } ;; |
| 22185 | esac |
| 22186 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22187 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
| 22188 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22189 | if test "${ac_cv_type_off_t+set}" = set; then |
| 22190 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22191 | else |
| 22192 | cat >conftest.$ac_ext <<_ACEOF |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22193 | /* confdefs.h. */ |
| 22194 | _ACEOF |
| 22195 | cat confdefs.h >>conftest.$ac_ext |
| 22196 | cat >>conftest.$ac_ext <<_ACEOF |
| 22197 | /* end confdefs.h. */ |
| 22198 | $ac_includes_default |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22199 | typedef off_t ac__type_new_; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22200 | int |
| 22201 | main () |
| 22202 | { |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22203 | if ((ac__type_new_ *) 0) |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22204 | return 0; |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22205 | if (sizeof (ac__type_new_)) |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22206 | return 0; |
| 22207 | ; |
| 22208 | return 0; |
| 22209 | } |
| 22210 | _ACEOF |
| 22211 | rm -f conftest.$ac_objext |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22212 | if { (ac_try="$ac_compile" |
| 22213 | case "(($ac_try" in |
| 22214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22215 | *) ac_try_echo=$ac_try;; |
| 22216 | esac |
| 22217 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22218 | (eval "$ac_compile") 2>conftest.er1 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22219 | ac_status=$? |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22220 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22221 | rm -f conftest.er1 |
| 22222 | cat conftest.err >&5 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22224 | (exit $ac_status); } && |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22225 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22226 | { (case "(($ac_try" in |
| 22227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22228 | *) ac_try_echo=$ac_try;; |
| 22229 | esac |
| 22230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22231 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22232 | ac_status=$? |
| 22233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22234 | (exit $ac_status); }; } && |
| 22235 | { ac_try='test -s conftest.$ac_objext' |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22236 | { (case "(($ac_try" in |
| 22237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22238 | *) ac_try_echo=$ac_try;; |
| 22239 | esac |
| 22240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22241 | (eval "$ac_try") 2>&5 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22242 | ac_status=$? |
| 22243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22244 | (exit $ac_status); }; }; then |
| 22245 | ac_cv_type_off_t=yes |
| 22246 | else |
| 22247 | echo "$as_me: failed program was:" >&5 |
| 22248 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22249 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22250 | ac_cv_type_off_t=no |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22251 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22252 | |
| 22253 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22254 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22255 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 22256 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22257 | if test $ac_cv_type_off_t = yes; then |
| 22258 | : |
| 22259 | else |
| 22260 | |
| 22261 | cat >>confdefs.h <<_ACEOF |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22262 | #define off_t long int |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22263 | _ACEOF |
| 22264 | |
| 22265 | fi |
| 22266 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22267 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 22268 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22269 | if test "${ac_cv_type_size_t+set}" = set; then |
| 22270 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22271 | else |
| 22272 | cat >conftest.$ac_ext <<_ACEOF |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22273 | /* confdefs.h. */ |
| 22274 | _ACEOF |
| 22275 | cat confdefs.h >>conftest.$ac_ext |
| 22276 | cat >>conftest.$ac_ext <<_ACEOF |
| 22277 | /* end confdefs.h. */ |
| 22278 | $ac_includes_default |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22279 | typedef size_t ac__type_new_; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22280 | int |
| 22281 | main () |
| 22282 | { |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22283 | if ((ac__type_new_ *) 0) |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22284 | return 0; |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22285 | if (sizeof (ac__type_new_)) |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22286 | return 0; |
| 22287 | ; |
| 22288 | return 0; |
| 22289 | } |
| 22290 | _ACEOF |
| 22291 | rm -f conftest.$ac_objext |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22292 | if { (ac_try="$ac_compile" |
| 22293 | case "(($ac_try" in |
| 22294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22295 | *) ac_try_echo=$ac_try;; |
| 22296 | esac |
| 22297 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22298 | (eval "$ac_compile") 2>conftest.er1 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22299 | ac_status=$? |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22300 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22301 | rm -f conftest.er1 |
| 22302 | cat conftest.err >&5 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22304 | (exit $ac_status); } && |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22305 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22306 | { (case "(($ac_try" in |
| 22307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22308 | *) ac_try_echo=$ac_try;; |
| 22309 | esac |
| 22310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22311 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22312 | ac_status=$? |
| 22313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22314 | (exit $ac_status); }; } && |
| 22315 | { ac_try='test -s conftest.$ac_objext' |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22316 | { (case "(($ac_try" in |
| 22317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22318 | *) ac_try_echo=$ac_try;; |
| 22319 | esac |
| 22320 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22321 | (eval "$ac_try") 2>&5 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22322 | ac_status=$? |
| 22323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22324 | (exit $ac_status); }; }; then |
| 22325 | ac_cv_type_size_t=yes |
| 22326 | else |
| 22327 | echo "$as_me: failed program was:" >&5 |
| 22328 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22329 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22330 | ac_cv_type_size_t=no |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22331 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22332 | |
| 22333 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22334 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22335 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 22336 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22337 | if test $ac_cv_type_size_t = yes; then |
| 22338 | : |
| 22339 | else |
| 22340 | |
| 22341 | cat >>confdefs.h <<_ACEOF |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22342 | #define size_t unsigned int |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22343 | _ACEOF |
| 22344 | |
| 22345 | fi |
| 22346 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22347 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 22348 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22349 | if test "${ac_cv_struct_tm+set}" = set; then |
| 22350 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22351 | else |
| 22352 | cat >conftest.$ac_ext <<_ACEOF |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22353 | /* confdefs.h. */ |
| 22354 | _ACEOF |
| 22355 | cat confdefs.h >>conftest.$ac_ext |
| 22356 | cat >>conftest.$ac_ext <<_ACEOF |
| 22357 | /* end confdefs.h. */ |
| 22358 | #include <sys/types.h> |
| 22359 | #include <time.h> |
| 22360 | |
| 22361 | int |
| 22362 | main () |
| 22363 | { |
| 22364 | struct tm *tp; tp->tm_sec; |
| 22365 | ; |
| 22366 | return 0; |
| 22367 | } |
| 22368 | _ACEOF |
| 22369 | rm -f conftest.$ac_objext |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22370 | if { (ac_try="$ac_compile" |
| 22371 | case "(($ac_try" in |
| 22372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22373 | *) ac_try_echo=$ac_try;; |
| 22374 | esac |
| 22375 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22376 | (eval "$ac_compile") 2>conftest.er1 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22377 | ac_status=$? |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22378 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22379 | rm -f conftest.er1 |
| 22380 | cat conftest.err >&5 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22382 | (exit $ac_status); } && |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22383 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22384 | { (case "(($ac_try" in |
| 22385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22386 | *) ac_try_echo=$ac_try;; |
| 22387 | esac |
| 22388 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22389 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22390 | ac_status=$? |
| 22391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22392 | (exit $ac_status); }; } && |
| 22393 | { ac_try='test -s conftest.$ac_objext' |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22394 | { (case "(($ac_try" in |
| 22395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22396 | *) ac_try_echo=$ac_try;; |
| 22397 | esac |
| 22398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22399 | (eval "$ac_try") 2>&5 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22400 | ac_status=$? |
| 22401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22402 | (exit $ac_status); }; }; then |
| 22403 | ac_cv_struct_tm=time.h |
| 22404 | else |
| 22405 | echo "$as_me: failed program was:" >&5 |
| 22406 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22407 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22408 | ac_cv_struct_tm=sys/time.h |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22409 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22410 | |
| 22411 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22412 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22413 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 22414 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22415 | if test $ac_cv_struct_tm = sys/time.h; then |
| 22416 | |
| 22417 | cat >>confdefs.h <<\_ACEOF |
| 22418 | #define TM_IN_SYS_TIME 1 |
| 22419 | _ACEOF |
| 22420 | |
| 22421 | fi |
| 22422 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22423 | { echo "$as_me:$LINENO: checking for intmax_t" >&5 |
| 22424 | echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22425 | if test "${ac_cv_type_intmax_t+set}" = set; then |
| 22426 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22427 | else |
| 22428 | cat >conftest.$ac_ext <<_ACEOF |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22429 | /* confdefs.h. */ |
| 22430 | _ACEOF |
| 22431 | cat confdefs.h >>conftest.$ac_ext |
| 22432 | cat >>conftest.$ac_ext <<_ACEOF |
| 22433 | /* end confdefs.h. */ |
| 22434 | $ac_includes_default |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22435 | typedef intmax_t ac__type_new_; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22436 | int |
| 22437 | main () |
| 22438 | { |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22439 | if ((ac__type_new_ *) 0) |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22440 | return 0; |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22441 | if (sizeof (ac__type_new_)) |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22442 | return 0; |
| 22443 | ; |
| 22444 | return 0; |
| 22445 | } |
| 22446 | _ACEOF |
| 22447 | rm -f conftest.$ac_objext |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22448 | if { (ac_try="$ac_compile" |
| 22449 | case "(($ac_try" in |
| 22450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22451 | *) ac_try_echo=$ac_try;; |
| 22452 | esac |
| 22453 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22454 | (eval "$ac_compile") 2>conftest.er1 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22455 | ac_status=$? |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22456 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22457 | rm -f conftest.er1 |
| 22458 | cat conftest.err >&5 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22460 | (exit $ac_status); } && |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22461 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22462 | { (case "(($ac_try" in |
| 22463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22464 | *) ac_try_echo=$ac_try;; |
| 22465 | esac |
| 22466 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22467 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22468 | ac_status=$? |
| 22469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22470 | (exit $ac_status); }; } && |
| 22471 | { ac_try='test -s conftest.$ac_objext' |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22472 | { (case "(($ac_try" in |
| 22473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22474 | *) ac_try_echo=$ac_try;; |
| 22475 | esac |
| 22476 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22477 | (eval "$ac_try") 2>&5 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22478 | ac_status=$? |
| 22479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22480 | (exit $ac_status); }; }; then |
| 22481 | ac_cv_type_intmax_t=yes |
| 22482 | else |
| 22483 | echo "$as_me: failed program was:" >&5 |
| 22484 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22485 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22486 | ac_cv_type_intmax_t=no |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22487 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22488 | |
| 22489 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22490 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22491 | { echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5 |
| 22492 | echo "${ECHO_T}$ac_cv_type_intmax_t" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22493 | if test $ac_cv_type_intmax_t = yes; then |
| 22494 | : |
| 22495 | else |
| 22496 | |
| 22497 | cat >>confdefs.h <<_ACEOF |
| 22498 | #define intmax_t int64_t |
| 22499 | _ACEOF |
| 22500 | |
| 22501 | fi |
| 22502 | |
| 22503 | |
| 22504 | |
| 22505 | |
| 22506 | for ac_func in strtoimax strtoll |
| 22507 | do |
| 22508 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22509 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 22510 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 22511 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22512 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22513 | else |
| 22514 | cat >conftest.$ac_ext <<_ACEOF |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22515 | /* confdefs.h. */ |
| 22516 | _ACEOF |
| 22517 | cat confdefs.h >>conftest.$ac_ext |
| 22518 | cat >>conftest.$ac_ext <<_ACEOF |
| 22519 | /* end confdefs.h. */ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22520 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 22521 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 22522 | #define $ac_func innocuous_$ac_func |
| 22523 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22524 | /* System header to define __stub macros and hopefully few prototypes, |
| 22525 | which can conflict with char $ac_func (); below. |
| 22526 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 22527 | <limits.h> exists even on freestanding compilers. */ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22528 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22529 | #ifdef __STDC__ |
| 22530 | # include <limits.h> |
| 22531 | #else |
| 22532 | # include <assert.h> |
| 22533 | #endif |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22534 | |
| 22535 | #undef $ac_func |
| 22536 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22537 | /* Override any GCC internal prototype to avoid an error. |
| 22538 | Use char because int might match the return type of a GCC |
| 22539 | builtin and then its argument prototype would still apply. */ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22540 | #ifdef __cplusplus |
| 22541 | extern "C" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22542 | #endif |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22543 | char $ac_func (); |
| 22544 | /* The GNU C library defines this for functions which it implements |
| 22545 | to always fail with ENOSYS. Some functions are actually named |
| 22546 | something starting with __ and the normal name is an alias. */ |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22547 | #if defined __stub_$ac_func || defined __stub___$ac_func |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22548 | choke me |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22549 | #endif |
| 22550 | |
| 22551 | int |
| 22552 | main () |
| 22553 | { |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22554 | return $ac_func (); |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22555 | ; |
| 22556 | return 0; |
| 22557 | } |
| 22558 | _ACEOF |
| 22559 | rm -f conftest.$ac_objext conftest$ac_exeext |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22560 | if { (ac_try="$ac_link" |
| 22561 | case "(($ac_try" in |
| 22562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22563 | *) ac_try_echo=$ac_try;; |
| 22564 | esac |
| 22565 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22566 | (eval "$ac_link") 2>conftest.er1 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22567 | ac_status=$? |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22568 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22569 | rm -f conftest.er1 |
| 22570 | cat conftest.err >&5 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22572 | (exit $ac_status); } && |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22573 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22574 | { (case "(($ac_try" in |
| 22575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22576 | *) ac_try_echo=$ac_try;; |
| 22577 | esac |
| 22578 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22579 | (eval "$ac_try") 2>&5 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22580 | ac_status=$? |
| 22581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22582 | (exit $ac_status); }; } && |
| 22583 | { ac_try='test -s conftest$ac_exeext' |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22584 | { (case "(($ac_try" in |
| 22585 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22586 | *) ac_try_echo=$ac_try;; |
| 22587 | esac |
| 22588 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22589 | (eval "$ac_try") 2>&5 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22590 | ac_status=$? |
| 22591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22592 | (exit $ac_status); }; }; then |
| 22593 | eval "$as_ac_var=yes" |
| 22594 | else |
| 22595 | echo "$as_me: failed program was:" >&5 |
| 22596 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22597 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22598 | eval "$as_ac_var=no" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22599 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22600 | |
| 22601 | rm -f core conftest.err conftest.$ac_objext \ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22602 | conftest$ac_exeext conftest.$ac_ext |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22603 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22604 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 22605 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 22606 | echo "${ECHO_T}$ac_res" >&6; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22607 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 22608 | cat >>confdefs.h <<_ACEOF |
| 22609 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 22610 | _ACEOF |
| 22611 | |
| 22612 | fi |
| 22613 | done |
| 22614 | |
| 22615 | |
vlm | b1d783b | 2004-06-28 21:22:35 +0000 | [diff] [blame] | 22616 | for ac_func in mergesort |
| 22617 | do |
| 22618 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22619 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 22620 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 22621 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
vlm | b1d783b | 2004-06-28 21:22:35 +0000 | [diff] [blame] | 22622 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22623 | else |
| 22624 | cat >conftest.$ac_ext <<_ACEOF |
| 22625 | /* confdefs.h. */ |
| 22626 | _ACEOF |
| 22627 | cat confdefs.h >>conftest.$ac_ext |
| 22628 | cat >>conftest.$ac_ext <<_ACEOF |
| 22629 | /* end confdefs.h. */ |
| 22630 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 22631 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 22632 | #define $ac_func innocuous_$ac_func |
| 22633 | |
| 22634 | /* System header to define __stub macros and hopefully few prototypes, |
| 22635 | which can conflict with char $ac_func (); below. |
| 22636 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 22637 | <limits.h> exists even on freestanding compilers. */ |
| 22638 | |
| 22639 | #ifdef __STDC__ |
| 22640 | # include <limits.h> |
| 22641 | #else |
| 22642 | # include <assert.h> |
| 22643 | #endif |
| 22644 | |
| 22645 | #undef $ac_func |
| 22646 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22647 | /* Override any GCC internal prototype to avoid an error. |
| 22648 | Use char because int might match the return type of a GCC |
| 22649 | builtin and then its argument prototype would still apply. */ |
vlm | b1d783b | 2004-06-28 21:22:35 +0000 | [diff] [blame] | 22650 | #ifdef __cplusplus |
| 22651 | extern "C" |
vlm | b1d783b | 2004-06-28 21:22:35 +0000 | [diff] [blame] | 22652 | #endif |
vlm | b1d783b | 2004-06-28 21:22:35 +0000 | [diff] [blame] | 22653 | char $ac_func (); |
| 22654 | /* The GNU C library defines this for functions which it implements |
| 22655 | to always fail with ENOSYS. Some functions are actually named |
| 22656 | something starting with __ and the normal name is an alias. */ |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22657 | #if defined __stub_$ac_func || defined __stub___$ac_func |
vlm | b1d783b | 2004-06-28 21:22:35 +0000 | [diff] [blame] | 22658 | choke me |
vlm | b1d783b | 2004-06-28 21:22:35 +0000 | [diff] [blame] | 22659 | #endif |
| 22660 | |
| 22661 | int |
| 22662 | main () |
| 22663 | { |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22664 | return $ac_func (); |
vlm | b1d783b | 2004-06-28 21:22:35 +0000 | [diff] [blame] | 22665 | ; |
| 22666 | return 0; |
| 22667 | } |
| 22668 | _ACEOF |
| 22669 | rm -f conftest.$ac_objext conftest$ac_exeext |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22670 | if { (ac_try="$ac_link" |
| 22671 | case "(($ac_try" in |
| 22672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22673 | *) ac_try_echo=$ac_try;; |
| 22674 | esac |
| 22675 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22676 | (eval "$ac_link") 2>conftest.er1 |
vlm | b1d783b | 2004-06-28 21:22:35 +0000 | [diff] [blame] | 22677 | ac_status=$? |
| 22678 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22679 | rm -f conftest.er1 |
| 22680 | cat conftest.err >&5 |
| 22681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22682 | (exit $ac_status); } && |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22683 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22684 | { (case "(($ac_try" in |
| 22685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22686 | *) ac_try_echo=$ac_try;; |
| 22687 | esac |
| 22688 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22689 | (eval "$ac_try") 2>&5 |
vlm | b1d783b | 2004-06-28 21:22:35 +0000 | [diff] [blame] | 22690 | ac_status=$? |
| 22691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22692 | (exit $ac_status); }; } && |
| 22693 | { ac_try='test -s conftest$ac_exeext' |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22694 | { (case "(($ac_try" in |
| 22695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22696 | *) ac_try_echo=$ac_try;; |
| 22697 | esac |
| 22698 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22699 | (eval "$ac_try") 2>&5 |
vlm | b1d783b | 2004-06-28 21:22:35 +0000 | [diff] [blame] | 22700 | ac_status=$? |
| 22701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22702 | (exit $ac_status); }; }; then |
| 22703 | eval "$as_ac_var=yes" |
| 22704 | else |
| 22705 | echo "$as_me: failed program was:" >&5 |
| 22706 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22707 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22708 | eval "$as_ac_var=no" |
vlm | b1d783b | 2004-06-28 21:22:35 +0000 | [diff] [blame] | 22709 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22710 | |
| 22711 | rm -f core conftest.err conftest.$ac_objext \ |
vlm | b1d783b | 2004-06-28 21:22:35 +0000 | [diff] [blame] | 22712 | conftest$ac_exeext conftest.$ac_ext |
| 22713 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22714 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 22715 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 22716 | echo "${ECHO_T}$ac_res" >&6; } |
vlm | b1d783b | 2004-06-28 21:22:35 +0000 | [diff] [blame] | 22717 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 22718 | cat >>confdefs.h <<_ACEOF |
| 22719 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 22720 | _ACEOF |
| 22721 | |
| 22722 | fi |
| 22723 | done |
| 22724 | |
| 22725 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22726 | for ac_func in mkstemps |
| 22727 | do |
| 22728 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 22729 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 22730 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 22731 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 22732 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22733 | else |
| 22734 | cat >conftest.$ac_ext <<_ACEOF |
| 22735 | /* confdefs.h. */ |
| 22736 | _ACEOF |
| 22737 | cat confdefs.h >>conftest.$ac_ext |
| 22738 | cat >>conftest.$ac_ext <<_ACEOF |
| 22739 | /* end confdefs.h. */ |
| 22740 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 22741 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 22742 | #define $ac_func innocuous_$ac_func |
| 22743 | |
| 22744 | /* System header to define __stub macros and hopefully few prototypes, |
| 22745 | which can conflict with char $ac_func (); below. |
| 22746 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 22747 | <limits.h> exists even on freestanding compilers. */ |
| 22748 | |
| 22749 | #ifdef __STDC__ |
| 22750 | # include <limits.h> |
| 22751 | #else |
| 22752 | # include <assert.h> |
| 22753 | #endif |
| 22754 | |
| 22755 | #undef $ac_func |
| 22756 | |
| 22757 | /* Override any GCC internal prototype to avoid an error. |
| 22758 | Use char because int might match the return type of a GCC |
| 22759 | builtin and then its argument prototype would still apply. */ |
| 22760 | #ifdef __cplusplus |
| 22761 | extern "C" |
| 22762 | #endif |
| 22763 | char $ac_func (); |
| 22764 | /* The GNU C library defines this for functions which it implements |
| 22765 | to always fail with ENOSYS. Some functions are actually named |
| 22766 | something starting with __ and the normal name is an alias. */ |
| 22767 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 22768 | choke me |
| 22769 | #endif |
| 22770 | |
| 22771 | int |
| 22772 | main () |
| 22773 | { |
| 22774 | return $ac_func (); |
| 22775 | ; |
| 22776 | return 0; |
| 22777 | } |
| 22778 | _ACEOF |
| 22779 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 22780 | if { (ac_try="$ac_link" |
| 22781 | case "(($ac_try" in |
| 22782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22783 | *) ac_try_echo=$ac_try;; |
| 22784 | esac |
| 22785 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22786 | (eval "$ac_link") 2>conftest.er1 |
| 22787 | ac_status=$? |
| 22788 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22789 | rm -f conftest.er1 |
| 22790 | cat conftest.err >&5 |
| 22791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22792 | (exit $ac_status); } && |
| 22793 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22794 | { (case "(($ac_try" in |
| 22795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22796 | *) ac_try_echo=$ac_try;; |
| 22797 | esac |
| 22798 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22799 | (eval "$ac_try") 2>&5 |
| 22800 | ac_status=$? |
| 22801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22802 | (exit $ac_status); }; } && |
| 22803 | { ac_try='test -s conftest$ac_exeext' |
| 22804 | { (case "(($ac_try" in |
| 22805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22806 | *) ac_try_echo=$ac_try;; |
| 22807 | esac |
| 22808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22809 | (eval "$ac_try") 2>&5 |
| 22810 | ac_status=$? |
| 22811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22812 | (exit $ac_status); }; }; then |
| 22813 | eval "$as_ac_var=yes" |
| 22814 | else |
| 22815 | echo "$as_me: failed program was:" >&5 |
| 22816 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22817 | |
| 22818 | eval "$as_ac_var=no" |
| 22819 | fi |
| 22820 | |
| 22821 | rm -f core conftest.err conftest.$ac_objext \ |
| 22822 | conftest$ac_exeext conftest.$ac_ext |
| 22823 | fi |
| 22824 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 22825 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 22826 | echo "${ECHO_T}$ac_res" >&6; } |
| 22827 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 22828 | cat >>confdefs.h <<_ACEOF |
| 22829 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 22830 | _ACEOF |
| 22831 | |
| 22832 | fi |
| 22833 | done |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22834 | |
| 22835 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 22836 | { echo "$as_me:$LINENO: checking for library containing getopt" >&5 |
| 22837 | echo $ECHO_N "checking for library containing getopt... $ECHO_C" >&6; } |
| 22838 | if test "${ac_cv_search_getopt+set}" = set; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22839 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22840 | else |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 22841 | ac_func_search_save_LIBS=$LIBS |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22842 | cat >conftest.$ac_ext <<_ACEOF |
| 22843 | /* confdefs.h. */ |
| 22844 | _ACEOF |
| 22845 | cat confdefs.h >>conftest.$ac_ext |
| 22846 | cat >>conftest.$ac_ext <<_ACEOF |
| 22847 | /* end confdefs.h. */ |
| 22848 | |
| 22849 | /* Override any GCC internal prototype to avoid an error. |
| 22850 | Use char because int might match the return type of a GCC |
| 22851 | builtin and then its argument prototype would still apply. */ |
| 22852 | #ifdef __cplusplus |
| 22853 | extern "C" |
| 22854 | #endif |
| 22855 | char getopt (); |
| 22856 | int |
| 22857 | main () |
| 22858 | { |
| 22859 | return getopt (); |
| 22860 | ; |
| 22861 | return 0; |
| 22862 | } |
| 22863 | _ACEOF |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 22864 | for ac_lib in '' iberty; do |
| 22865 | if test -z "$ac_lib"; then |
| 22866 | ac_res="none required" |
| 22867 | else |
| 22868 | ac_res=-l$ac_lib |
| 22869 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 22870 | fi |
| 22871 | rm -f conftest.$ac_objext conftest$ac_exeext |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22872 | if { (ac_try="$ac_link" |
| 22873 | case "(($ac_try" in |
| 22874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22875 | *) ac_try_echo=$ac_try;; |
| 22876 | esac |
| 22877 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22878 | (eval "$ac_link") 2>conftest.er1 |
| 22879 | ac_status=$? |
| 22880 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22881 | rm -f conftest.er1 |
| 22882 | cat conftest.err >&5 |
| 22883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22884 | (exit $ac_status); } && |
| 22885 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22886 | { (case "(($ac_try" in |
| 22887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22888 | *) ac_try_echo=$ac_try;; |
| 22889 | esac |
| 22890 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22891 | (eval "$ac_try") 2>&5 |
| 22892 | ac_status=$? |
| 22893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22894 | (exit $ac_status); }; } && |
| 22895 | { ac_try='test -s conftest$ac_exeext' |
| 22896 | { (case "(($ac_try" in |
| 22897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22898 | *) ac_try_echo=$ac_try;; |
| 22899 | esac |
| 22900 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22901 | (eval "$ac_try") 2>&5 |
| 22902 | ac_status=$? |
| 22903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22904 | (exit $ac_status); }; }; then |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 22905 | ac_cv_search_getopt=$ac_res |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22906 | else |
| 22907 | echo "$as_me: failed program was:" >&5 |
| 22908 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22909 | |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 22910 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22911 | fi |
| 22912 | |
| 22913 | rm -f core conftest.err conftest.$ac_objext \ |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 22914 | conftest$ac_exeext |
| 22915 | if test "${ac_cv_search_getopt+set}" = set; then |
| 22916 | break |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22917 | fi |
vlm | 5568124 | 2007-12-03 14:58:39 +0000 | [diff] [blame^] | 22918 | done |
| 22919 | if test "${ac_cv_search_getopt+set}" = set; then |
| 22920 | : |
| 22921 | else |
| 22922 | ac_cv_search_getopt=no |
| 22923 | fi |
| 22924 | rm conftest.$ac_ext |
| 22925 | LIBS=$ac_func_search_save_LIBS |
| 22926 | fi |
| 22927 | { echo "$as_me:$LINENO: result: $ac_cv_search_getopt" >&5 |
| 22928 | echo "${ECHO_T}$ac_cv_search_getopt" >&6; } |
| 22929 | ac_res=$ac_cv_search_getopt |
| 22930 | if test "$ac_res" != no; then |
| 22931 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22932 | |
| 22933 | fi |
| 22934 | |
| 22935 | |
| 22936 | ac_config_headers="$ac_config_headers config.h" |
| 22937 | |
| 22938 | |
| 22939 | 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" |
| 22940 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22941 | cat >confcache <<\_ACEOF |
| 22942 | # This file is a shell script that caches the results of configure |
| 22943 | # tests run on this system so they can be shared between configure |
| 22944 | # scripts and configure runs, see configure's option --config-cache. |
| 22945 | # It is not useful on other systems. If it contains results you don't |
| 22946 | # want to keep, you may remove or edit it. |
| 22947 | # |
| 22948 | # config.status only pays attention to the cache file if you give it |
| 22949 | # the --recheck option to rerun configure. |
| 22950 | # |
| 22951 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 22952 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 22953 | # following values. |
| 22954 | |
| 22955 | _ACEOF |
| 22956 | |
| 22957 | # The following way of writing the cache mishandles newlines in values, |
| 22958 | # but we know of no workaround that is simple, portable, and efficient. |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22959 | # So, we kill variables containing newlines. |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22960 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 22961 | # and sets the high bit in the cache file unless we assign to the vars. |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22962 | ( |
| 22963 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 22964 | eval ac_val=\$$ac_var |
| 22965 | case $ac_val in #( |
| 22966 | *${as_nl}*) |
| 22967 | case $ac_var in #( |
| 22968 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 22969 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 22970 | esac |
| 22971 | case $ac_var in #( |
| 22972 | _ | IFS | as_nl) ;; #( |
| 22973 | *) $as_unset $ac_var ;; |
| 22974 | esac ;; |
| 22975 | esac |
| 22976 | done |
| 22977 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22978 | (set) 2>&1 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22979 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 22980 | *${as_nl}ac_space=\ *) |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22981 | # `set' does not quote correctly, so add quotes (double-quote |
| 22982 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 22983 | sed -n \ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22984 | "s/'/'\\\\''/g; |
| 22985 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22986 | ;; #( |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22987 | *) |
| 22988 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22989 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22990 | ;; |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22991 | esac | |
| 22992 | sort |
| 22993 | ) | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22994 | sed ' |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22995 | /^ac_cv_env_/b end |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22996 | t clear |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 22997 | :clear |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22998 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 22999 | t end |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23000 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 23001 | :end' >>confcache |
| 23002 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 23003 | if test -w "$cache_file"; then |
| 23004 | test "x$cache_file" != "x/dev/null" && |
| 23005 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 23006 | echo "$as_me: updating cache $cache_file" >&6;} |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23007 | cat confcache >$cache_file |
| 23008 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23009 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 23010 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23011 | fi |
| 23012 | fi |
| 23013 | rm -f confcache |
| 23014 | |
| 23015 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 23016 | # Let make expand exec_prefix. |
| 23017 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 23018 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23019 | DEFS=-DHAVE_CONFIG_H |
| 23020 | |
| 23021 | ac_libobjs= |
| 23022 | ac_ltlibobjs= |
| 23023 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 23024 | # 1. Remove the extension, and $U if already installed. |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23025 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 23026 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 23027 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 23028 | # will be set to the directory where LIBOBJS objects are built. |
| 23029 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 23030 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23031 | done |
| 23032 | LIBOBJS=$ac_libobjs |
| 23033 | |
| 23034 | LTLIBOBJS=$ac_ltlibobjs |
| 23035 | |
| 23036 | |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23037 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
| 23038 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. |
| 23039 | Usually this means the macro was only invoked conditionally." >&5 |
| 23040 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. |
| 23041 | Usually this means the macro was only invoked conditionally." >&2;} |
| 23042 | { (exit 1); exit 1; }; } |
| 23043 | fi |
| 23044 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 23045 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
| 23046 | Usually this means the macro was only invoked conditionally." >&5 |
| 23047 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
| 23048 | Usually this means the macro was only invoked conditionally." >&2;} |
| 23049 | { (exit 1); exit 1; }; } |
| 23050 | fi |
| 23051 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 23052 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
| 23053 | Usually this means the macro was only invoked conditionally." >&5 |
| 23054 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
| 23055 | Usually this means the macro was only invoked conditionally." >&2;} |
| 23056 | { (exit 1); exit 1; }; } |
| 23057 | fi |
| 23058 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
| 23059 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
| 23060 | Usually this means the macro was only invoked conditionally." >&5 |
| 23061 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
| 23062 | Usually this means the macro was only invoked conditionally." >&2;} |
| 23063 | { (exit 1); exit 1; }; } |
| 23064 | fi |
| 23065 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 23066 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
| 23067 | Usually this means the macro was only invoked conditionally." >&5 |
| 23068 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
| 23069 | Usually this means the macro was only invoked conditionally." >&2;} |
| 23070 | { (exit 1); exit 1; }; } |
| 23071 | fi |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23072 | |
| 23073 | : ${CONFIG_STATUS=./config.status} |
| 23074 | ac_clean_files_save=$ac_clean_files |
| 23075 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 23076 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 23077 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 23078 | cat >$CONFIG_STATUS <<_ACEOF |
| 23079 | #! $SHELL |
| 23080 | # Generated by $as_me. |
| 23081 | # Run this file to recreate the current configuration. |
| 23082 | # Compiler output produced by configure, useful for debugging |
| 23083 | # configure, is in config.log if it exists. |
| 23084 | |
| 23085 | debug=false |
| 23086 | ac_cs_recheck=false |
| 23087 | ac_cs_silent=false |
| 23088 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 23089 | _ACEOF |
| 23090 | |
| 23091 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23092 | ## --------------------- ## |
| 23093 | ## M4sh Initialization. ## |
| 23094 | ## --------------------- ## |
| 23095 | |
| 23096 | # Be Bourne compatible |
| 23097 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 23098 | emulate sh |
| 23099 | NULLCMD=: |
| 23100 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 23101 | # is contrary to our usage. Disable this feature. |
| 23102 | alias -g '${1+"$@"}'='"$@"' |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23103 | setopt NO_GLOB_SUBST |
| 23104 | else |
| 23105 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23106 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23107 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23108 | DUALCASE=1; export DUALCASE # for MKS sh |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23109 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23110 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23111 | # PATH needs CR |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23112 | # Avoid depending upon Character Ranges. |
| 23113 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 23114 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 23115 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 23116 | as_cr_digits='0123456789' |
| 23117 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 23118 | |
| 23119 | # The user is always right. |
| 23120 | if test "${PATH_SEPARATOR+set}" != set; then |
| 23121 | echo "#! /bin/sh" >conf$$.sh |
| 23122 | echo "exit 0" >>conf$$.sh |
| 23123 | chmod +x conf$$.sh |
| 23124 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 23125 | PATH_SEPARATOR=';' |
| 23126 | else |
| 23127 | PATH_SEPARATOR=: |
| 23128 | fi |
| 23129 | rm -f conf$$.sh |
| 23130 | fi |
| 23131 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23132 | # Support unset when possible. |
| 23133 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 23134 | as_unset=unset |
| 23135 | else |
| 23136 | as_unset=false |
| 23137 | fi |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23138 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23139 | |
| 23140 | # IFS |
| 23141 | # We need space, tab and new line, in precisely that order. Quoting is |
| 23142 | # there to prevent editors from complaining about space-tab. |
| 23143 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 23144 | # splitting by setting IFS to empty value.) |
| 23145 | as_nl=' |
| 23146 | ' |
| 23147 | IFS=" "" $as_nl" |
| 23148 | |
| 23149 | # Find who we are. Look in the path if we contain no directory separator. |
| 23150 | case $0 in |
| 23151 | *[\\/]* ) as_myself=$0 ;; |
| 23152 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23153 | for as_dir in $PATH |
| 23154 | do |
| 23155 | IFS=$as_save_IFS |
| 23156 | test -z "$as_dir" && as_dir=. |
| 23157 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 23158 | done |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23159 | IFS=$as_save_IFS |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23160 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23161 | ;; |
| 23162 | esac |
| 23163 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 23164 | # in which case we are not to be found in the path. |
| 23165 | if test "x$as_myself" = x; then |
| 23166 | as_myself=$0 |
| 23167 | fi |
| 23168 | if test ! -f "$as_myself"; then |
| 23169 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 23170 | { (exit 1); exit 1; } |
| 23171 | fi |
| 23172 | |
| 23173 | # Work around bugs in pre-3.0 UWIN ksh. |
| 23174 | for as_var in ENV MAIL MAILPATH |
| 23175 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 23176 | done |
| 23177 | PS1='$ ' |
| 23178 | PS2='> ' |
| 23179 | PS4='+ ' |
| 23180 | |
| 23181 | # NLS nuisances. |
| 23182 | for as_var in \ |
| 23183 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 23184 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 23185 | LC_TELEPHONE LC_TIME |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23186 | do |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23187 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 23188 | eval $as_var=C; export $as_var |
| 23189 | else |
| 23190 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 23191 | fi |
| 23192 | done |
| 23193 | |
| 23194 | # Required to use basename. |
| 23195 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 23196 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 23197 | as_expr=expr |
| 23198 | else |
| 23199 | as_expr=false |
| 23200 | fi |
| 23201 | |
| 23202 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 23203 | as_basename=basename |
| 23204 | else |
| 23205 | as_basename=false |
| 23206 | fi |
| 23207 | |
| 23208 | |
| 23209 | # Name of the executable. |
| 23210 | as_me=`$as_basename -- "$0" || |
| 23211 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 23212 | X"$0" : 'X\(//\)$' \| \ |
| 23213 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 23214 | echo X/"$0" | |
| 23215 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 23216 | s//\1/ |
| 23217 | q |
| 23218 | } |
| 23219 | /^X\/\(\/\/\)$/{ |
| 23220 | s//\1/ |
| 23221 | q |
| 23222 | } |
| 23223 | /^X\/\(\/\).*/{ |
| 23224 | s//\1/ |
| 23225 | q |
| 23226 | } |
| 23227 | s/.*/./; q'` |
| 23228 | |
| 23229 | # CDPATH. |
| 23230 | $as_unset CDPATH |
| 23231 | |
| 23232 | |
| 23233 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23234 | as_lineno_1=$LINENO |
| 23235 | as_lineno_2=$LINENO |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23236 | test "x$as_lineno_1" != "x$as_lineno_2" && |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23237 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23238 | |
| 23239 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 23240 | # uniformly replaced by the line number. The first 'sed' inserts a |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23241 | # line-number line after each line using $LINENO; the second 'sed' |
| 23242 | # does the real work. The second script uses 'N' to pair each |
| 23243 | # line-number line with the line containing $LINENO, and appends |
| 23244 | # trailing '-' during substitution so that $LINENO is not a special |
| 23245 | # case at line end. |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23246 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23247 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 23248 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 23249 | sed -n ' |
| 23250 | p |
| 23251 | /[$]LINENO/= |
| 23252 | ' <$as_myself | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23253 | sed ' |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23254 | s/[$]LINENO.*/&-/ |
| 23255 | t lineno |
| 23256 | b |
| 23257 | :lineno |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23258 | N |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23259 | :loop |
| 23260 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23261 | t loop |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23262 | s/-\n.*// |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23263 | ' >$as_me.lineno && |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23264 | chmod +x "$as_me.lineno" || |
| 23265 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23266 | { (exit 1); exit 1; }; } |
| 23267 | |
| 23268 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 23269 | # (the dirname of $[0] is not the place where we might find the |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23270 | # original and so on. Autoconf is especially sensitive to this). |
| 23271 | . "./$as_me.lineno" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23272 | # Exit status is that of the last command. |
| 23273 | exit |
| 23274 | } |
| 23275 | |
| 23276 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23277 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 23278 | as_dirname=dirname |
| 23279 | else |
| 23280 | as_dirname=false |
| 23281 | fi |
| 23282 | |
| 23283 | ECHO_C= ECHO_N= ECHO_T= |
| 23284 | case `echo -n x` in |
| 23285 | -n*) |
| 23286 | case `echo 'x\c'` in |
| 23287 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 23288 | *) ECHO_C='\c';; |
| 23289 | esac;; |
| 23290 | *) |
| 23291 | ECHO_N='-n';; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23292 | esac |
| 23293 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23294 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 23295 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23296 | as_expr=expr |
| 23297 | else |
| 23298 | as_expr=false |
| 23299 | fi |
| 23300 | |
| 23301 | rm -f conf$$ conf$$.exe conf$$.file |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23302 | if test -d conf$$.dir; then |
| 23303 | rm -f conf$$.dir/conf$$.file |
| 23304 | else |
| 23305 | rm -f conf$$.dir |
| 23306 | mkdir conf$$.dir |
| 23307 | fi |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23308 | echo >conf$$.file |
| 23309 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23310 | as_ln_s='ln -s' |
| 23311 | # ... but there are two gotchas: |
| 23312 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 23313 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 23314 | # In both cases, we have to default to `cp -p'. |
| 23315 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23316 | as_ln_s='cp -p' |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23317 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 23318 | as_ln_s=ln |
| 23319 | else |
| 23320 | as_ln_s='cp -p' |
| 23321 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23322 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 23323 | rmdir conf$$.dir 2>/dev/null |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23324 | |
| 23325 | if mkdir -p . 2>/dev/null; then |
| 23326 | as_mkdir_p=: |
| 23327 | else |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23328 | test -d ./-p && rmdir ./-p |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23329 | as_mkdir_p=false |
| 23330 | fi |
| 23331 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23332 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 23333 | # systems may use methods other than mode bits to determine executability. |
| 23334 | cat >conf$$.file <<_ASEOF |
| 23335 | #! /bin/sh |
| 23336 | exit 0 |
| 23337 | _ASEOF |
| 23338 | chmod +x conf$$.file |
| 23339 | if test -x conf$$.file >/dev/null 2>&1; then |
| 23340 | as_executable_p="test -x" |
| 23341 | else |
| 23342 | as_executable_p=: |
| 23343 | fi |
| 23344 | rm -f conf$$.file |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23345 | |
| 23346 | # Sed expression to map a string onto a valid CPP name. |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23347 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23348 | |
| 23349 | # Sed expression to map a string onto a valid variable name. |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23350 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23351 | |
| 23352 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23353 | exec 6>&1 |
| 23354 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23355 | # Save the log message, to keep $[0] and so on meaningful, and to |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23356 | # report actual input values of CONFIG_FILES etc. instead of their |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23357 | # values after options handling. |
| 23358 | ac_log=" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23359 | This file was extended by $as_me, which was |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23360 | generated by GNU Autoconf 2.60. Invocation command line was |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23361 | |
| 23362 | CONFIG_FILES = $CONFIG_FILES |
| 23363 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 23364 | CONFIG_LINKS = $CONFIG_LINKS |
| 23365 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 23366 | $ $0 $@ |
| 23367 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23368 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 23369 | " |
| 23370 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23371 | _ACEOF |
| 23372 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23373 | cat >>$CONFIG_STATUS <<_ACEOF |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23374 | # Files that config.status was made for. |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23375 | config_files="$ac_config_files" |
| 23376 | config_headers="$ac_config_headers" |
| 23377 | config_commands="$ac_config_commands" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23378 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23379 | _ACEOF |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23380 | |
| 23381 | cat >>$CONFIG_STATUS <<\_ACEOF |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23382 | ac_cs_usage="\ |
| 23383 | \`$as_me' instantiates files from templates according to the |
| 23384 | current configuration. |
| 23385 | |
| 23386 | Usage: $0 [OPTIONS] [FILE]... |
| 23387 | |
| 23388 | -h, --help print this help, then exit |
| 23389 | -V, --version print version number, then exit |
| 23390 | -q, --quiet do not print progress messages |
| 23391 | -d, --debug don't remove temporary files |
| 23392 | --recheck update $as_me by reconfiguring in the same conditions |
| 23393 | --file=FILE[:TEMPLATE] |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23394 | instantiate the configuration file FILE |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23395 | --header=FILE[:TEMPLATE] |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23396 | instantiate the configuration header FILE |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23397 | |
| 23398 | Configuration files: |
| 23399 | $config_files |
| 23400 | |
| 23401 | Configuration headers: |
| 23402 | $config_headers |
| 23403 | |
| 23404 | Configuration commands: |
| 23405 | $config_commands |
| 23406 | |
| 23407 | Report bugs to <bug-autoconf@gnu.org>." |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23408 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23409 | _ACEOF |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23410 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23411 | ac_cs_version="\\ |
| 23412 | config.status |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23413 | configured by $0, generated by GNU Autoconf 2.60, |
| 23414 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23415 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23416 | Copyright (C) 2006 Free Software Foundation, Inc. |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23417 | This config.status script is free software; the Free Software Foundation |
| 23418 | gives unlimited permission to copy, distribute and modify it." |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23419 | |
| 23420 | ac_pwd='$ac_pwd' |
| 23421 | srcdir='$srcdir' |
| 23422 | INSTALL='$INSTALL' |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23423 | _ACEOF |
| 23424 | |
| 23425 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23426 | # If no file are specified by the user, then we need to provide default |
| 23427 | # value. By we need to know if files were specified by the user. |
| 23428 | ac_need_defaults=: |
| 23429 | while test $# != 0 |
| 23430 | do |
| 23431 | case $1 in |
| 23432 | --*=*) |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23433 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 23434 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23435 | ac_shift=: |
| 23436 | ;; |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23437 | *) |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23438 | ac_option=$1 |
| 23439 | ac_optarg=$2 |
| 23440 | ac_shift=shift |
| 23441 | ;; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23442 | esac |
| 23443 | |
| 23444 | case $ac_option in |
| 23445 | # Handling of the options. |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23446 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 23447 | ac_cs_recheck=: ;; |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23448 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 23449 | echo "$ac_cs_version"; exit ;; |
| 23450 | --debug | --debu | --deb | --de | --d | -d ) |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23451 | debug=: ;; |
| 23452 | --file | --fil | --fi | --f ) |
| 23453 | $ac_shift |
| 23454 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 23455 | ac_need_defaults=false;; |
| 23456 | --header | --heade | --head | --hea ) |
| 23457 | $ac_shift |
| 23458 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
| 23459 | ac_need_defaults=false;; |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23460 | --he | --h) |
| 23461 | # Conflict between --help and --header |
| 23462 | { echo "$as_me: error: ambiguous option: $1 |
| 23463 | Try \`$0 --help' for more information." >&2 |
| 23464 | { (exit 1); exit 1; }; };; |
| 23465 | --help | --hel | -h ) |
| 23466 | echo "$ac_cs_usage"; exit ;; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23467 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 23468 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 23469 | ac_cs_silent=: ;; |
| 23470 | |
| 23471 | # This is an error. |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23472 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 23473 | Try \`$0 --help' for more information." >&2 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23474 | { (exit 1); exit 1; }; } ;; |
| 23475 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23476 | *) ac_config_targets="$ac_config_targets $1" |
| 23477 | ac_need_defaults=false ;; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23478 | |
| 23479 | esac |
| 23480 | shift |
| 23481 | done |
| 23482 | |
| 23483 | ac_configure_extra_args= |
| 23484 | |
| 23485 | if $ac_cs_silent; then |
| 23486 | exec 6>/dev/null |
| 23487 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 23488 | fi |
| 23489 | |
| 23490 | _ACEOF |
| 23491 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23492 | if \$ac_cs_recheck; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23493 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 23494 | CONFIG_SHELL=$SHELL |
| 23495 | export CONFIG_SHELL |
| 23496 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23497 | fi |
| 23498 | |
| 23499 | _ACEOF |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23500 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23501 | exec 5>>config.log |
| 23502 | { |
| 23503 | echo |
| 23504 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 23505 | ## Running $as_me. ## |
| 23506 | _ASBOX |
| 23507 | echo "$ac_log" |
| 23508 | } >&5 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23509 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23510 | _ACEOF |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23511 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23512 | # |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23513 | # INIT-COMMANDS |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23514 | # |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23515 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23516 | |
| 23517 | _ACEOF |
| 23518 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23519 | cat >>$CONFIG_STATUS <<\_ACEOF |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23520 | |
| 23521 | # Handling of arguments. |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23522 | for ac_config_target in $ac_config_targets |
| 23523 | do |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23524 | case $ac_config_target in |
| 23525 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 23526 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
| 23527 | "skeletons/standard-modules/Makefile") CONFIG_FILES="$CONFIG_FILES skeletons/standard-modules/Makefile" ;; |
| 23528 | "skeletons/tests/Makefile") CONFIG_FILES="$CONFIG_FILES skeletons/tests/Makefile" ;; |
| 23529 | "libasn1compiler/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1compiler/Makefile" ;; |
| 23530 | "libasn1parser/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1parser/Makefile" ;; |
| 23531 | "libasn1print/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1print/Makefile" ;; |
| 23532 | "asn1c/webcgi/Makefile") CONFIG_FILES="$CONFIG_FILES asn1c/webcgi/Makefile" ;; |
| 23533 | "asn1c/tests/Makefile") CONFIG_FILES="$CONFIG_FILES asn1c/tests/Makefile" ;; |
| 23534 | "libasn1fix/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1fix/Makefile" ;; |
| 23535 | "skeletons/Makefile") CONFIG_FILES="$CONFIG_FILES skeletons/Makefile" ;; |
| 23536 | "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; |
| 23537 | "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; |
| 23538 | "asn1c/Makefile") CONFIG_FILES="$CONFIG_FILES asn1c/Makefile" ;; |
| 23539 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
| 23540 | "asn1c.spec") CONFIG_FILES="$CONFIG_FILES asn1c.spec" ;; |
| 23541 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 23542 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23543 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 23544 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 23545 | { (exit 1); exit 1; }; };; |
| 23546 | esac |
| 23547 | done |
| 23548 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23549 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23550 | # If the user did not use the arguments to specify the items to instantiate, |
| 23551 | # then the envvar interface is used. Set only those that are not. |
| 23552 | # We use the long form for the default assignment because of an extremely |
| 23553 | # bizarre bug on SunOS 4.1.3. |
| 23554 | if $ac_need_defaults; then |
| 23555 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 23556 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 23557 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 23558 | fi |
| 23559 | |
| 23560 | # Have a temporary directory for convenience. Make it in the build tree |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23561 | # simply because there is no reason against having it here, and in addition, |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23562 | # creating and moving files from /tmp can sometimes cause problems. |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23563 | # Hook for its removal unless debugging. |
| 23564 | # Note that there is a small window in which the directory will not be cleaned: |
| 23565 | # after its creation but before its name has been assigned to `$tmp'. |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23566 | $debug || |
| 23567 | { |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23568 | tmp= |
| 23569 | trap 'exit_status=$? |
| 23570 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 23571 | ' 0 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23572 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 23573 | } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23574 | # Create a (secure) tmp directory for tmp files. |
| 23575 | |
| 23576 | { |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23577 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23578 | test -n "$tmp" && test -d "$tmp" |
| 23579 | } || |
| 23580 | { |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23581 | tmp=./conf$$-$RANDOM |
| 23582 | (umask 077 && mkdir "$tmp") |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23583 | } || |
| 23584 | { |
| 23585 | echo "$me: cannot create a temporary directory in ." >&2 |
| 23586 | { (exit 1); exit 1; } |
| 23587 | } |
| 23588 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23589 | # |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23590 | # Set up the sed scripts for CONFIG_FILES section. |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23591 | # |
| 23592 | |
| 23593 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 23594 | # This happens for instance when ./config.status config.h |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23595 | if test -n "$CONFIG_FILES"; then |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23596 | |
| 23597 | _ACEOF |
| 23598 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23599 | |
| 23600 | |
| 23601 | ac_delim='%!_!# ' |
| 23602 | for ac_last_try in false false false false false :; do |
| 23603 | cat >conf$$subs.sed <<_ACEOF |
| 23604 | SHELL!$SHELL$ac_delim |
| 23605 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 23606 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 23607 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 23608 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 23609 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 23610 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 23611 | exec_prefix!$exec_prefix$ac_delim |
| 23612 | prefix!$prefix$ac_delim |
| 23613 | program_transform_name!$program_transform_name$ac_delim |
| 23614 | bindir!$bindir$ac_delim |
| 23615 | sbindir!$sbindir$ac_delim |
| 23616 | libexecdir!$libexecdir$ac_delim |
| 23617 | datarootdir!$datarootdir$ac_delim |
| 23618 | datadir!$datadir$ac_delim |
| 23619 | sysconfdir!$sysconfdir$ac_delim |
| 23620 | sharedstatedir!$sharedstatedir$ac_delim |
| 23621 | localstatedir!$localstatedir$ac_delim |
| 23622 | includedir!$includedir$ac_delim |
| 23623 | oldincludedir!$oldincludedir$ac_delim |
| 23624 | docdir!$docdir$ac_delim |
| 23625 | infodir!$infodir$ac_delim |
| 23626 | htmldir!$htmldir$ac_delim |
| 23627 | dvidir!$dvidir$ac_delim |
| 23628 | pdfdir!$pdfdir$ac_delim |
| 23629 | psdir!$psdir$ac_delim |
| 23630 | libdir!$libdir$ac_delim |
| 23631 | localedir!$localedir$ac_delim |
| 23632 | mandir!$mandir$ac_delim |
| 23633 | DEFS!$DEFS$ac_delim |
| 23634 | ECHO_C!$ECHO_C$ac_delim |
| 23635 | ECHO_N!$ECHO_N$ac_delim |
| 23636 | ECHO_T!$ECHO_T$ac_delim |
| 23637 | LIBS!$LIBS$ac_delim |
| 23638 | build_alias!$build_alias$ac_delim |
| 23639 | host_alias!$host_alias$ac_delim |
| 23640 | target_alias!$target_alias$ac_delim |
| 23641 | build!$build$ac_delim |
| 23642 | build_cpu!$build_cpu$ac_delim |
| 23643 | build_vendor!$build_vendor$ac_delim |
| 23644 | build_os!$build_os$ac_delim |
| 23645 | host!$host$ac_delim |
| 23646 | host_cpu!$host_cpu$ac_delim |
| 23647 | host_vendor!$host_vendor$ac_delim |
| 23648 | host_os!$host_os$ac_delim |
| 23649 | target!$target$ac_delim |
| 23650 | target_cpu!$target_cpu$ac_delim |
| 23651 | target_vendor!$target_vendor$ac_delim |
| 23652 | target_os!$target_os$ac_delim |
| 23653 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 23654 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 23655 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 23656 | CYGPATH_W!$CYGPATH_W$ac_delim |
| 23657 | PACKAGE!$PACKAGE$ac_delim |
| 23658 | VERSION!$VERSION$ac_delim |
| 23659 | ACLOCAL!$ACLOCAL$ac_delim |
| 23660 | AUTOCONF!$AUTOCONF$ac_delim |
| 23661 | AUTOMAKE!$AUTOMAKE$ac_delim |
| 23662 | AUTOHEADER!$AUTOHEADER$ac_delim |
| 23663 | MAKEINFO!$MAKEINFO$ac_delim |
| 23664 | install_sh!$install_sh$ac_delim |
| 23665 | STRIP!$STRIP$ac_delim |
| 23666 | INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim |
| 23667 | mkdir_p!$mkdir_p$ac_delim |
| 23668 | AWK!$AWK$ac_delim |
| 23669 | SET_MAKE!$SET_MAKE$ac_delim |
| 23670 | am__leading_dot!$am__leading_dot$ac_delim |
| 23671 | AMTAR!$AMTAR$ac_delim |
| 23672 | am__tar!$am__tar$ac_delim |
| 23673 | am__untar!$am__untar$ac_delim |
| 23674 | MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim |
| 23675 | MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim |
| 23676 | MAINT!$MAINT$ac_delim |
| 23677 | CC!$CC$ac_delim |
| 23678 | CFLAGS!$CFLAGS$ac_delim |
| 23679 | LDFLAGS!$LDFLAGS$ac_delim |
| 23680 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 23681 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 23682 | EXEEXT!$EXEEXT$ac_delim |
| 23683 | OBJEXT!$OBJEXT$ac_delim |
| 23684 | DEPDIR!$DEPDIR$ac_delim |
| 23685 | am__include!$am__include$ac_delim |
| 23686 | am__quote!$am__quote$ac_delim |
| 23687 | AMDEP_TRUE!$AMDEP_TRUE$ac_delim |
| 23688 | AMDEP_FALSE!$AMDEP_FALSE$ac_delim |
| 23689 | AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim |
| 23690 | CCDEPMODE!$CCDEPMODE$ac_delim |
| 23691 | am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim |
| 23692 | am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim |
| 23693 | GREP!$GREP$ac_delim |
| 23694 | EGREP!$EGREP$ac_delim |
| 23695 | LN_S!$LN_S$ac_delim |
| 23696 | ECHO!$ECHO$ac_delim |
| 23697 | AR!$AR$ac_delim |
| 23698 | RANLIB!$RANLIB$ac_delim |
| 23699 | CPP!$CPP$ac_delim |
| 23700 | CXX!$CXX$ac_delim |
| 23701 | _ACEOF |
| 23702 | |
| 23703 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
| 23704 | break |
| 23705 | elif $ac_last_try; then |
| 23706 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 23707 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 23708 | { (exit 1); exit 1; }; } |
| 23709 | else |
| 23710 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23711 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23712 | done |
| 23713 | |
| 23714 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 23715 | if test -n "$ac_eof"; then |
| 23716 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 23717 | ac_eof=`expr $ac_eof + 1` |
| 23718 | fi |
| 23719 | |
| 23720 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23721 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 23722 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 23723 | _ACEOF |
| 23724 | sed ' |
| 23725 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 23726 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 23727 | :n |
| 23728 | t n |
| 23729 | s/'"$ac_delim"'$/,g/; t |
| 23730 | s/$/\\/; p |
| 23731 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 23732 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 23733 | rm -f conf$$subs.sed |
| 23734 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23735 | CEOF$ac_eof |
| 23736 | _ACEOF |
| 23737 | |
| 23738 | |
| 23739 | ac_delim='%!_!# ' |
| 23740 | for ac_last_try in false false false false false :; do |
| 23741 | cat >conf$$subs.sed <<_ACEOF |
| 23742 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 23743 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 23744 | CXXDEPMODE!$CXXDEPMODE$ac_delim |
| 23745 | am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim |
| 23746 | am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim |
| 23747 | CXXCPP!$CXXCPP$ac_delim |
| 23748 | F77!$F77$ac_delim |
| 23749 | FFLAGS!$FFLAGS$ac_delim |
| 23750 | ac_ct_F77!$ac_ct_F77$ac_delim |
| 23751 | LIBTOOL!$LIBTOOL$ac_delim |
| 23752 | CONFIGURE_DEPENDS!$CONFIGURE_DEPENDS$ac_delim |
| 23753 | YACC!$YACC$ac_delim |
| 23754 | YFLAGS!$YFLAGS$ac_delim |
| 23755 | LEX!$LEX$ac_delim |
| 23756 | LEXLIB!$LEXLIB$ac_delim |
| 23757 | LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim |
| 23758 | ADD_CFLAGS!$ADD_CFLAGS$ac_delim |
| 23759 | LIBOBJS!$LIBOBJS$ac_delim |
| 23760 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 23761 | _ACEOF |
| 23762 | |
| 23763 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then |
| 23764 | break |
| 23765 | elif $ac_last_try; then |
| 23766 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 23767 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 23768 | { (exit 1); exit 1; }; } |
| 23769 | else |
| 23770 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 23771 | fi |
| 23772 | done |
| 23773 | |
| 23774 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 23775 | if test -n "$ac_eof"; then |
| 23776 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 23777 | ac_eof=`expr $ac_eof + 1` |
| 23778 | fi |
| 23779 | |
| 23780 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23781 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 23782 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 23783 | _ACEOF |
| 23784 | sed ' |
| 23785 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 23786 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 23787 | :n |
| 23788 | t n |
| 23789 | s/'"$ac_delim"'$/,g/; t |
| 23790 | s/$/\\/; p |
| 23791 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 23792 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 23793 | rm -f conf$$subs.sed |
| 23794 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23795 | :end |
| 23796 | s/|#_!!_#|//g |
| 23797 | CEOF$ac_eof |
| 23798 | _ACEOF |
| 23799 | |
| 23800 | |
| 23801 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 23802 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 23803 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 23804 | # (actually we leave an empty line to preserve line numbers). |
| 23805 | if test "x$srcdir" = x.; then |
| 23806 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 23807 | s/:*\$(srcdir):*/:/ |
| 23808 | s/:*\${srcdir}:*/:/ |
| 23809 | s/:*@srcdir@:*/:/ |
| 23810 | s/^\([^=]*=[ ]*\):*/\1/ |
| 23811 | s/:*$// |
| 23812 | s/^[^=]*=[ ]*$// |
| 23813 | }' |
| 23814 | fi |
| 23815 | |
| 23816 | cat >>$CONFIG_STATUS <<\_ACEOF |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23817 | fi # test -n "$CONFIG_FILES" |
| 23818 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23819 | |
| 23820 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
| 23821 | do |
| 23822 | case $ac_tag in |
| 23823 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 23824 | esac |
| 23825 | case $ac_mode$ac_tag in |
| 23826 | :[FHL]*:*);; |
| 23827 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 23828 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 23829 | { (exit 1); exit 1; }; };; |
| 23830 | :[FH]-) ac_tag=-:-;; |
| 23831 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 23832 | esac |
| 23833 | ac_save_IFS=$IFS |
| 23834 | IFS=: |
| 23835 | set x $ac_tag |
| 23836 | IFS=$ac_save_IFS |
| 23837 | shift |
| 23838 | ac_file=$1 |
| 23839 | shift |
| 23840 | |
| 23841 | case $ac_mode in |
| 23842 | :L) ac_source=$1;; |
| 23843 | :[FH]) |
| 23844 | ac_file_inputs= |
| 23845 | for ac_f |
| 23846 | do |
| 23847 | case $ac_f in |
| 23848 | -) ac_f="$tmp/stdin";; |
| 23849 | *) # Look for the file first in the build tree, then in the source tree |
| 23850 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 23851 | # because $ac_f cannot contain `:'. |
| 23852 | test -f "$ac_f" || |
| 23853 | case $ac_f in |
| 23854 | [\\/$]*) false;; |
| 23855 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 23856 | esac || |
| 23857 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 23858 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 23859 | { (exit 1); exit 1; }; };; |
| 23860 | esac |
| 23861 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 23862 | done |
| 23863 | |
| 23864 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 23865 | # use $as_me), people would be surprised to read: |
| 23866 | # /* config.h. Generated by config.status. */ |
| 23867 | configure_input="Generated from "`IFS=: |
| 23868 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 23869 | if test x"$ac_file" != x-; then |
| 23870 | configure_input="$ac_file. $configure_input" |
| 23871 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 23872 | echo "$as_me: creating $ac_file" >&6;} |
| 23873 | fi |
| 23874 | |
| 23875 | case $ac_tag in |
| 23876 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 23877 | esac |
| 23878 | ;; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23879 | esac |
| 23880 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23881 | ac_dir=`$as_dirname -- "$ac_file" || |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23882 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23883 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 23884 | X"$ac_file" : 'X\(//\)$' \| \ |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23885 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23886 | echo X"$ac_file" | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23887 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 23888 | s//\1/ |
| 23889 | q |
| 23890 | } |
| 23891 | /^X\(\/\/\)[^/].*/{ |
| 23892 | s//\1/ |
| 23893 | q |
| 23894 | } |
| 23895 | /^X\(\/\/\)$/{ |
| 23896 | s//\1/ |
| 23897 | q |
| 23898 | } |
| 23899 | /^X\(\/\).*/{ |
| 23900 | s//\1/ |
| 23901 | q |
| 23902 | } |
| 23903 | s/.*/./; q'` |
| 23904 | { as_dir="$ac_dir" |
| 23905 | case $as_dir in #( |
| 23906 | -*) as_dir=./$as_dir;; |
| 23907 | esac |
| 23908 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23909 | as_dirs= |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23910 | while :; do |
| 23911 | case $as_dir in #( |
| 23912 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 23913 | *) as_qdir=$as_dir;; |
| 23914 | esac |
| 23915 | as_dirs="'$as_qdir' $as_dirs" |
| 23916 | as_dir=`$as_dirname -- "$as_dir" || |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23917 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23918 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 23919 | X"$as_dir" : 'X\(//\)$' \| \ |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23920 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23921 | echo X"$as_dir" | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23922 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 23923 | s//\1/ |
| 23924 | q |
| 23925 | } |
| 23926 | /^X\(\/\/\)[^/].*/{ |
| 23927 | s//\1/ |
| 23928 | q |
| 23929 | } |
| 23930 | /^X\(\/\/\)$/{ |
| 23931 | s//\1/ |
| 23932 | q |
| 23933 | } |
| 23934 | /^X\(\/\).*/{ |
| 23935 | s//\1/ |
| 23936 | q |
| 23937 | } |
| 23938 | s/.*/./; q'` |
| 23939 | test -d "$as_dir" && break |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23940 | done |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23941 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 23942 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 23943 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23944 | { (exit 1); exit 1; }; }; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23945 | ac_builddir=. |
| 23946 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23947 | case "$ac_dir" in |
| 23948 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 23949 | *) |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23950 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23951 | # A ".." for each directory in $ac_dir_suffix. |
| 23952 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 23953 | case $ac_top_builddir_sub in |
| 23954 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 23955 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 23956 | esac ;; |
| 23957 | esac |
| 23958 | ac_abs_top_builddir=$ac_pwd |
| 23959 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 23960 | # for backward compatibility: |
| 23961 | ac_top_builddir=$ac_top_build_prefix |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23962 | |
| 23963 | case $srcdir in |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23964 | .) # We are building in place. |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23965 | ac_srcdir=. |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23966 | ac_top_srcdir=$ac_top_builddir_sub |
| 23967 | ac_abs_top_srcdir=$ac_pwd ;; |
| 23968 | [\\/]* | ?:[\\/]* ) # Absolute name. |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23969 | ac_srcdir=$srcdir$ac_dir_suffix; |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23970 | ac_top_srcdir=$srcdir |
| 23971 | ac_abs_top_srcdir=$srcdir ;; |
| 23972 | *) # Relative name. |
| 23973 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 23974 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 23975 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23976 | esac |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23977 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23978 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23979 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23980 | case $ac_mode in |
| 23981 | :F) |
| 23982 | # |
| 23983 | # CONFIG_FILE |
| 23984 | # |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23985 | |
| 23986 | case $INSTALL in |
| 23987 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23988 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23989 | esac |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23990 | _ACEOF |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 23991 | |
| 23992 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23993 | # If the template does not know about datarootdir, expand it. |
| 23994 | # FIXME: This hack should be removed a few years after 2.60. |
| 23995 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 23996 | |
| 23997 | case `sed -n '/datarootdir/ { |
| 23998 | p |
| 23999 | q |
| 24000 | } |
| 24001 | /@datadir@/p |
| 24002 | /@docdir@/p |
| 24003 | /@infodir@/p |
| 24004 | /@localedir@/p |
| 24005 | /@mandir@/p |
| 24006 | ' $ac_file_inputs` in |
| 24007 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 24008 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 24009 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 24010 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 24011 | _ACEOF |
| 24012 | cat >>$CONFIG_STATUS <<_ACEOF |
| 24013 | ac_datarootdir_hack=' |
| 24014 | s&@datadir@&$datadir&g |
| 24015 | s&@docdir@&$docdir&g |
| 24016 | s&@infodir@&$infodir&g |
| 24017 | s&@localedir@&$localedir&g |
| 24018 | s&@mandir@&$mandir&g |
| 24019 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 24020 | esac |
| 24021 | _ACEOF |
| 24022 | |
| 24023 | # Neutralize VPATH when `$srcdir' = `.'. |
| 24024 | # Shell code in configure.ac might set extrasub. |
| 24025 | # FIXME: do we really want to maintain this feature? |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24026 | cat >>$CONFIG_STATUS <<_ACEOF |
| 24027 | sed "$ac_vpsub |
| 24028 | $extrasub |
| 24029 | _ACEOF |
| 24030 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 24031 | :t |
| 24032 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24033 | s&@configure_input@&$configure_input&;t t |
| 24034 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 24035 | s&@srcdir@&$ac_srcdir&;t t |
| 24036 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 24037 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 24038 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 24039 | s&@builddir@&$ac_builddir&;t t |
| 24040 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 24041 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 24042 | s&@INSTALL@&$ac_INSTALL&;t t |
| 24043 | $ac_datarootdir_hack |
| 24044 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24045 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24046 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 24047 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 24048 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 24049 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 24050 | which seems to be undefined. Please make sure it is defined." >&5 |
| 24051 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 24052 | which seems to be undefined. Please make sure it is defined." >&2;} |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24053 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24054 | rm -f "$tmp/stdin" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24055 | case $ac_file in |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24056 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 24057 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24058 | esac |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24059 | ;; |
| 24060 | :H) |
| 24061 | # |
| 24062 | # CONFIG_HEADER |
| 24063 | # |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24064 | _ACEOF |
| 24065 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24066 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 24067 | # substitutes the proper values into config.h.in to produce config.h. |
| 24068 | rm -f conftest.defines conftest.tail |
| 24069 | # First, append a space to every undef/define line, to ease matching. |
| 24070 | echo 's/$/ /' >conftest.defines |
| 24071 | # Then, protect against being on the right side of a sed subst, or in |
| 24072 | # an unquoted here document, in config.status. If some macros were |
| 24073 | # called several times there might be several #defines for the same |
| 24074 | # symbol, which is useless. But do not sort them, since the last |
| 24075 | # AC_DEFINE must be honored. |
| 24076 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 24077 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 24078 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 24079 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 24080 | # just an empty string. |
| 24081 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 24082 | ac_dB='\\)[ (].*,\\1define\\2' |
| 24083 | ac_dC=' ' |
| 24084 | ac_dD=' ,' |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24085 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24086 | uniq confdefs.h | |
| 24087 | sed -n ' |
| 24088 | t rset |
| 24089 | :rset |
| 24090 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 24091 | t ok |
| 24092 | d |
| 24093 | :ok |
| 24094 | s/[\\&,]/\\&/g |
| 24095 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 24096 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 24097 | ' >>conftest.defines |
| 24098 | |
| 24099 | # Remove the space that was appended to ease matching. |
| 24100 | # Then replace #undef with comments. This is necessary, for |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24101 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 24102 | # on some systems where configure will not decide to define it. |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24103 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 24104 | echo 's/ $// |
| 24105 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24106 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24107 | # Break up conftest.defines: |
| 24108 | ac_max_sed_lines=50 |
| 24109 | |
| 24110 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 24111 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 24112 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 24113 | # et cetera. |
| 24114 | ac_in='$ac_file_inputs' |
| 24115 | ac_out='"$tmp/out1"' |
| 24116 | ac_nxt='"$tmp/out2"' |
| 24117 | |
| 24118 | while : |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24119 | do |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24120 | # Write a here document: |
| 24121 | cat >>$CONFIG_STATUS <<_ACEOF |
| 24122 | # First, check the format of the line: |
| 24123 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 24124 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 24125 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 24126 | b |
| 24127 | :def |
| 24128 | _ACEOF |
| 24129 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24130 | echo 'CEOF |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24131 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 24132 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 24133 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 24134 | grep . conftest.tail >/dev/null || break |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24135 | rm -f conftest.defines |
| 24136 | mv conftest.tail conftest.defines |
| 24137 | done |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24138 | rm -f conftest.defines conftest.tail |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24139 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24140 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24141 | cat >>$CONFIG_STATUS <<\_ACEOF |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24142 | if test x"$ac_file" != x-; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24143 | echo "/* $configure_input */" >"$tmp/config.h" |
| 24144 | cat "$ac_result" >>"$tmp/config.h" |
| 24145 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24146 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 24147 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 24148 | else |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24149 | rm -f $ac_file |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24150 | mv "$tmp/config.h" $ac_file |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24151 | fi |
| 24152 | else |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24153 | echo "/* $configure_input */" |
| 24154 | cat "$ac_result" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24155 | fi |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24156 | rm -f "$tmp/out12" |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 24157 | # Compute $ac_file's index in $config_headers. |
| 24158 | _am_stamp_count=1 |
| 24159 | for _am_header in $config_headers :; do |
| 24160 | case $_am_header in |
| 24161 | $ac_file | $ac_file:* ) |
| 24162 | break ;; |
| 24163 | * ) |
| 24164 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24165 | esac |
| 24166 | done |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24167 | echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 24168 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 24169 | X$ac_file : 'X\(//\)[^/]' \| \ |
| 24170 | X$ac_file : 'X\(//\)$' \| \ |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24171 | X$ac_file : 'X\(/\)' \| . 2>/dev/null || |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 24172 | echo X$ac_file | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24173 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 24174 | s//\1/ |
| 24175 | q |
| 24176 | } |
| 24177 | /^X\(\/\/\)[^/].*/{ |
| 24178 | s//\1/ |
| 24179 | q |
| 24180 | } |
| 24181 | /^X\(\/\/\)$/{ |
| 24182 | s//\1/ |
| 24183 | q |
| 24184 | } |
| 24185 | /^X\(\/\).*/{ |
| 24186 | s//\1/ |
| 24187 | q |
| 24188 | } |
| 24189 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 24190 | ;; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24191 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24192 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 24193 | echo "$as_me: executing $ac_file commands" >&6;} |
| 24194 | ;; |
| 24195 | esac |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24196 | |
| 24197 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24198 | case $ac_file$ac_mode in |
| 24199 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 24200 | # Strip MF so we end up with the name of the file. |
| 24201 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 24202 | # Check whether this is an Automake generated Makefile or not. |
| 24203 | # We used to match only the files named `Makefile.in', but |
| 24204 | # some people rename them; so instead we look at the file content. |
| 24205 | # Grep'ing the first line is not enough: some people post-process |
| 24206 | # each Makefile.in and add a new line on top of each file to say so. |
| 24207 | # So let's grep whole file. |
| 24208 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24209 | dirpart=`$as_dirname -- "$mf" || |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 24210 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 24211 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 24212 | X"$mf" : 'X\(//\)$' \| \ |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24213 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 24214 | echo X"$mf" | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24215 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 24216 | s//\1/ |
| 24217 | q |
| 24218 | } |
| 24219 | /^X\(\/\/\)[^/].*/{ |
| 24220 | s//\1/ |
| 24221 | q |
| 24222 | } |
| 24223 | /^X\(\/\/\)$/{ |
| 24224 | s//\1/ |
| 24225 | q |
| 24226 | } |
| 24227 | /^X\(\/\).*/{ |
| 24228 | s//\1/ |
| 24229 | q |
| 24230 | } |
| 24231 | s/.*/./; q'` |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 24232 | else |
| 24233 | continue |
| 24234 | fi |
vlm | 1fcf759 | 2006-08-18 02:27:55 +0000 | [diff] [blame] | 24235 | # Extract the definition of DEPDIR, am__include, and am__quote |
| 24236 | # from the Makefile without running `make'. |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 24237 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24238 | test -z "$DEPDIR" && continue |
vlm | 1fcf759 | 2006-08-18 02:27:55 +0000 | [diff] [blame] | 24239 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 24240 | test -z "am__include" && continue |
| 24241 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24242 | # When using ansi2knr, U may be empty or an underscore; expand it |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 24243 | U=`sed -n 's/^U = //p' < "$mf"` |
vlm | 1fcf759 | 2006-08-18 02:27:55 +0000 | [diff] [blame] | 24244 | # Find all dependency output files, they are included files with |
| 24245 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 24246 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 24247 | # expansion. |
| 24248 | for file in `sed -n " |
| 24249 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24250 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 24251 | # Make sure the directory exists. |
| 24252 | test -f "$dirpart/$file" && continue |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24253 | fdir=`$as_dirname -- "$file" || |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 24254 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 24255 | X"$file" : 'X\(//\)[^/]' \| \ |
| 24256 | X"$file" : 'X\(//\)$' \| \ |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24257 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 24258 | echo X"$file" | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24259 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 24260 | s//\1/ |
| 24261 | q |
| 24262 | } |
| 24263 | /^X\(\/\/\)[^/].*/{ |
| 24264 | s//\1/ |
| 24265 | q |
| 24266 | } |
| 24267 | /^X\(\/\/\)$/{ |
| 24268 | s//\1/ |
| 24269 | q |
| 24270 | } |
| 24271 | /^X\(\/\).*/{ |
| 24272 | s//\1/ |
| 24273 | q |
| 24274 | } |
| 24275 | s/.*/./; q'` |
| 24276 | { as_dir=$dirpart/$fdir |
| 24277 | case $as_dir in #( |
| 24278 | -*) as_dir=./$as_dir;; |
| 24279 | esac |
| 24280 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 24281 | as_dirs= |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24282 | while :; do |
| 24283 | case $as_dir in #( |
| 24284 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 24285 | *) as_qdir=$as_dir;; |
| 24286 | esac |
| 24287 | as_dirs="'$as_qdir' $as_dirs" |
| 24288 | as_dir=`$as_dirname -- "$as_dir" || |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 24289 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 24290 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 24291 | X"$as_dir" : 'X\(//\)$' \| \ |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24292 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 24293 | echo X"$as_dir" | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24294 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 24295 | s//\1/ |
| 24296 | q |
| 24297 | } |
| 24298 | /^X\(\/\/\)[^/].*/{ |
| 24299 | s//\1/ |
| 24300 | q |
| 24301 | } |
| 24302 | /^X\(\/\/\)$/{ |
| 24303 | s//\1/ |
| 24304 | q |
| 24305 | } |
| 24306 | /^X\(\/\).*/{ |
| 24307 | s//\1/ |
| 24308 | q |
| 24309 | } |
| 24310 | s/.*/./; q'` |
| 24311 | test -d "$as_dir" && break |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 24312 | done |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24313 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 24314 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 24315 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
vlm | 8f3eb99 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 24316 | { (exit 1); exit 1; }; }; } |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24317 | # echo "creating $dirpart/$file" |
| 24318 | echo '# dummy' > "$dirpart/$file" |
| 24319 | done |
| 24320 | done |
| 24321 | ;; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24322 | |
vlm | 83b901d | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24323 | esac |
| 24324 | done # for ac_tag |
| 24325 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24326 | |
| 24327 | { (exit 0); exit 0; } |
| 24328 | _ACEOF |
| 24329 | chmod +x $CONFIG_STATUS |
| 24330 | ac_clean_files=$ac_clean_files_save |
| 24331 | |
| 24332 | |
| 24333 | # configure is writing to config.log, and then calls config.status. |
| 24334 | # config.status does its own redirection, appending to config.log. |
| 24335 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 24336 | # by configure, so config.status won't be able to write to it; its |
| 24337 | # output is simply discarded. So we exec the FD to /dev/null, |
| 24338 | # effectively closing config.log, so it can be properly (re)opened and |
| 24339 | # appended to by config.status. When coming back to configure, we |
| 24340 | # need to make the FD available again. |
| 24341 | if test "$no_create" != yes; then |
| 24342 | ac_cs_success=: |
| 24343 | ac_config_status_args= |
| 24344 | test "$silent" = yes && |
| 24345 | ac_config_status_args="$ac_config_status_args --quiet" |
| 24346 | exec 5>/dev/null |
| 24347 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 24348 | exec 5>>config.log |
| 24349 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 24350 | # would make configure fail if this is the last instruction. |
| 24351 | $ac_cs_success || { (exit 1); exit 1; } |
| 24352 | fi |
| 24353 | |
| 24354 | |