Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.60. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4 | # |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 6 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 7 | # This configure script is free software; the Free Software Foundation |
| 8 | # gives unlimited permission to copy, distribute and modify it. |
| 9 | ## --------------------- ## |
| 10 | ## M4sh Initialization. ## |
| 11 | ## --------------------- ## |
| 12 | |
| 13 | # Be Bourne compatible |
| 14 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 15 | emulate sh |
| 16 | NULLCMD=: |
| 17 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 18 | # is contrary to our usage. Disable this feature. |
| 19 | alias -g '${1+"$@"}'='"$@"' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 20 | setopt NO_GLOB_SUBST |
| 21 | else |
| 22 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 24 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 25 | DUALCASE=1; export DUALCASE # for MKS sh |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 26 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 27 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 28 | # PATH needs CR |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 29 | # Avoid depending upon Character Ranges. |
| 30 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 31 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 32 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 33 | as_cr_digits='0123456789' |
| 34 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 35 | |
| 36 | # The user is always right. |
| 37 | if test "${PATH_SEPARATOR+set}" != set; then |
| 38 | echo "#! /bin/sh" >conf$$.sh |
| 39 | echo "exit 0" >>conf$$.sh |
| 40 | chmod +x conf$$.sh |
| 41 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 42 | PATH_SEPARATOR=';' |
| 43 | else |
| 44 | PATH_SEPARATOR=: |
| 45 | fi |
| 46 | rm -f conf$$.sh |
| 47 | fi |
| 48 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 49 | # Support unset when possible. |
| 50 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 51 | as_unset=unset |
| 52 | else |
| 53 | as_unset=false |
| 54 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 55 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 56 | |
| 57 | # IFS |
| 58 | # We need space, tab and new line, in precisely that order. Quoting is |
| 59 | # there to prevent editors from complaining about space-tab. |
| 60 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 61 | # splitting by setting IFS to empty value.) |
| 62 | as_nl=' |
| 63 | ' |
| 64 | IFS=" "" $as_nl" |
| 65 | |
| 66 | # Find who we are. Look in the path if we contain no directory separator. |
| 67 | case $0 in |
| 68 | *[\\/]* ) as_myself=$0 ;; |
| 69 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 70 | for as_dir in $PATH |
| 71 | do |
| 72 | IFS=$as_save_IFS |
| 73 | test -z "$as_dir" && as_dir=. |
| 74 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 75 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 76 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 77 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 78 | ;; |
| 79 | esac |
| 80 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 81 | # in which case we are not to be found in the path. |
| 82 | if test "x$as_myself" = x; then |
| 83 | as_myself=$0 |
| 84 | fi |
| 85 | if test ! -f "$as_myself"; then |
| 86 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 87 | { (exit 1); exit 1; } |
| 88 | fi |
| 89 | |
| 90 | # Work around bugs in pre-3.0 UWIN ksh. |
| 91 | for as_var in ENV MAIL MAILPATH |
| 92 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 93 | done |
| 94 | PS1='$ ' |
| 95 | PS2='> ' |
| 96 | PS4='+ ' |
| 97 | |
| 98 | # NLS nuisances. |
| 99 | for as_var in \ |
| 100 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 101 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 102 | LC_TELEPHONE LC_TIME |
| 103 | do |
| 104 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 105 | eval $as_var=C; export $as_var |
| 106 | else |
| 107 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 108 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 109 | done |
| 110 | |
| 111 | # Required to use basename. |
| 112 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 113 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 114 | as_expr=expr |
| 115 | else |
| 116 | as_expr=false |
| 117 | fi |
| 118 | |
| 119 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 120 | as_basename=basename |
| 121 | else |
| 122 | as_basename=false |
| 123 | fi |
| 124 | |
| 125 | |
| 126 | # Name of the executable. |
| 127 | as_me=`$as_basename -- "$0" || |
| 128 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 129 | X"$0" : 'X\(//\)$' \| \ |
| 130 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 131 | echo X/"$0" | |
| 132 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 133 | s//\1/ |
| 134 | q |
| 135 | } |
| 136 | /^X\/\(\/\/\)$/{ |
| 137 | s//\1/ |
| 138 | q |
| 139 | } |
| 140 | /^X\/\(\/\).*/{ |
| 141 | s//\1/ |
| 142 | q |
| 143 | } |
| 144 | s/.*/./; q'` |
| 145 | |
| 146 | # CDPATH. |
| 147 | $as_unset CDPATH |
| 148 | |
| 149 | |
| 150 | if test "x$CONFIG_SHELL" = x; then |
| 151 | if (eval ":") 2>/dev/null; then |
| 152 | as_have_required=yes |
| 153 | else |
| 154 | as_have_required=no |
| 155 | fi |
| 156 | |
| 157 | if test $as_have_required = yes && (eval ": |
| 158 | (as_func_return () { |
| 159 | (exit \$1) |
| 160 | } |
| 161 | as_func_success () { |
| 162 | as_func_return 0 |
| 163 | } |
| 164 | as_func_failure () { |
| 165 | as_func_return 1 |
| 166 | } |
| 167 | as_func_ret_success () { |
| 168 | return 0 |
| 169 | } |
| 170 | as_func_ret_failure () { |
| 171 | return 1 |
| 172 | } |
| 173 | |
| 174 | exitcode=0 |
| 175 | if as_func_success; then |
| 176 | : |
| 177 | else |
| 178 | exitcode=1 |
| 179 | echo as_func_success failed. |
| 180 | fi |
| 181 | |
| 182 | if as_func_failure; then |
| 183 | exitcode=1 |
| 184 | echo as_func_failure succeeded. |
| 185 | fi |
| 186 | |
| 187 | if as_func_ret_success; then |
| 188 | : |
| 189 | else |
| 190 | exitcode=1 |
| 191 | echo as_func_ret_success failed. |
| 192 | fi |
| 193 | |
| 194 | if as_func_ret_failure; then |
| 195 | exitcode=1 |
| 196 | echo as_func_ret_failure succeeded. |
| 197 | fi |
| 198 | |
| 199 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 200 | : |
| 201 | else |
| 202 | exitcode=1 |
| 203 | echo positional parameters were not saved. |
| 204 | fi |
| 205 | |
| 206 | test \$exitcode = 0) || { (exit 1); exit 1; } |
| 207 | |
| 208 | ( |
| 209 | as_lineno_1=\$LINENO |
| 210 | as_lineno_2=\$LINENO |
| 211 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| 212 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 213 | |
| 214 | ( |
| 215 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( |
| 216 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 217 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
| 218 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
| 219 | PATH=/empty FPATH=/empty; export PATH FPATH |
| 220 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ |
| 221 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" )) || { (exit 1); exit 1; } |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 222 | ") 2> /dev/null; then |
| 223 | : |
| 224 | else |
| 225 | as_candidate_shells= |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 226 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 227 | for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 228 | do |
| 229 | IFS=$as_save_IFS |
| 230 | test -z "$as_dir" && as_dir=. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 231 | case $as_dir in |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 232 | /*) |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 233 | for as_base in sh bash ksh sh5; do |
| 234 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| 235 | done;; |
| 236 | esac |
| 237 | done |
| 238 | IFS=$as_save_IFS |
| 239 | |
| 240 | |
| 241 | for as_shell in $as_candidate_shells $SHELL; do |
| 242 | # Try only shells that exist, to save several forks. |
| 243 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 244 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
| 245 | # Be Bourne compatible |
| 246 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 247 | emulate sh |
| 248 | NULLCMD=: |
| 249 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 250 | # is contrary to our usage. Disable this feature. |
| 251 | alias -g '${1+"$@"}'='"$@"' |
| 252 | setopt NO_GLOB_SUBST |
| 253 | else |
| 254 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
| 255 | fi |
| 256 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 257 | DUALCASE=1; export DUALCASE # for MKS sh |
| 258 | |
| 259 | : |
| 260 | _ASEOF |
| 261 | }; then |
| 262 | CONFIG_SHELL=$as_shell |
| 263 | as_have_required=yes |
| 264 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
| 265 | # Be Bourne compatible |
| 266 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 267 | emulate sh |
| 268 | NULLCMD=: |
| 269 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 270 | # is contrary to our usage. Disable this feature. |
| 271 | alias -g '${1+"$@"}'='"$@"' |
| 272 | setopt NO_GLOB_SUBST |
| 273 | else |
| 274 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
| 275 | fi |
| 276 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 277 | DUALCASE=1; export DUALCASE # for MKS sh |
| 278 | |
| 279 | : |
| 280 | (as_func_return () { |
| 281 | (exit $1) |
| 282 | } |
| 283 | as_func_success () { |
| 284 | as_func_return 0 |
| 285 | } |
| 286 | as_func_failure () { |
| 287 | as_func_return 1 |
| 288 | } |
| 289 | as_func_ret_success () { |
| 290 | return 0 |
| 291 | } |
| 292 | as_func_ret_failure () { |
| 293 | return 1 |
| 294 | } |
| 295 | |
| 296 | exitcode=0 |
| 297 | if as_func_success; then |
| 298 | : |
| 299 | else |
| 300 | exitcode=1 |
| 301 | echo as_func_success failed. |
| 302 | fi |
| 303 | |
| 304 | if as_func_failure; then |
| 305 | exitcode=1 |
| 306 | echo as_func_failure succeeded. |
| 307 | fi |
| 308 | |
| 309 | if as_func_ret_success; then |
| 310 | : |
| 311 | else |
| 312 | exitcode=1 |
| 313 | echo as_func_ret_success failed. |
| 314 | fi |
| 315 | |
| 316 | if as_func_ret_failure; then |
| 317 | exitcode=1 |
| 318 | echo as_func_ret_failure succeeded. |
| 319 | fi |
| 320 | |
| 321 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 322 | : |
| 323 | else |
| 324 | exitcode=1 |
| 325 | echo positional parameters were not saved. |
| 326 | fi |
| 327 | |
| 328 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 329 | |
| 330 | ( |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 331 | as_lineno_1=$LINENO |
| 332 | as_lineno_2=$LINENO |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 333 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 334 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
| 335 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 336 | ( |
| 337 | test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( |
| 338 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 339 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
| 340 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
| 341 | PATH=/empty FPATH=/empty; export PATH FPATH |
| 342 | test "X`printf %s $ECHO`" = "X$ECHO" \ |
| 343 | || test "X`print -r -- $ECHO`" = "X$ECHO" )) || { (exit 1); exit 1; } |
| 344 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 345 | _ASEOF |
| 346 | }; then |
| 347 | break |
| 348 | fi |
| 349 | |
| 350 | fi |
| 351 | |
| 352 | done |
| 353 | |
| 354 | if test "x$CONFIG_SHELL" != x; then |
| 355 | for as_var in BASH_ENV ENV |
| 356 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 357 | done |
| 358 | export CONFIG_SHELL |
| 359 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 360 | fi |
| 361 | |
| 362 | |
| 363 | if test $as_have_required = no; then |
| 364 | echo This script requires a shell more modern than all the |
| 365 | echo shells that I found on your system. Please install a |
| 366 | echo modern shell, or manually run the script under such a |
| 367 | echo shell if you do have one. |
| 368 | { (exit 1); exit 1; } |
| 369 | fi |
| 370 | |
| 371 | |
| 372 | fi |
| 373 | |
| 374 | fi |
| 375 | |
| 376 | |
| 377 | |
| 378 | (eval "as_func_return () { |
| 379 | (exit \$1) |
| 380 | } |
| 381 | as_func_success () { |
| 382 | as_func_return 0 |
| 383 | } |
| 384 | as_func_failure () { |
| 385 | as_func_return 1 |
| 386 | } |
| 387 | as_func_ret_success () { |
| 388 | return 0 |
| 389 | } |
| 390 | as_func_ret_failure () { |
| 391 | return 1 |
| 392 | } |
| 393 | |
| 394 | exitcode=0 |
| 395 | if as_func_success; then |
| 396 | : |
| 397 | else |
| 398 | exitcode=1 |
| 399 | echo as_func_success failed. |
| 400 | fi |
| 401 | |
| 402 | if as_func_failure; then |
| 403 | exitcode=1 |
| 404 | echo as_func_failure succeeded. |
| 405 | fi |
| 406 | |
| 407 | if as_func_ret_success; then |
| 408 | : |
| 409 | else |
| 410 | exitcode=1 |
| 411 | echo as_func_ret_success failed. |
| 412 | fi |
| 413 | |
| 414 | if as_func_ret_failure; then |
| 415 | exitcode=1 |
| 416 | echo as_func_ret_failure succeeded. |
| 417 | fi |
| 418 | |
| 419 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 420 | : |
| 421 | else |
| 422 | exitcode=1 |
| 423 | echo positional parameters were not saved. |
| 424 | fi |
| 425 | |
| 426 | test \$exitcode = 0") || { |
| 427 | echo No shell found that supports shell functions. |
| 428 | echo Please tell autoconf@gnu.org about your system, |
| 429 | echo including any error possibly output before this |
| 430 | echo message |
| 431 | } |
| 432 | |
| 433 | |
| 434 | |
| 435 | as_lineno_1=$LINENO |
| 436 | as_lineno_2=$LINENO |
| 437 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 438 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 439 | |
| 440 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 441 | # uniformly replaced by the line number. The first 'sed' inserts a |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 442 | # line-number line after each line using $LINENO; the second 'sed' |
| 443 | # does the real work. The second script uses 'N' to pair each |
| 444 | # line-number line with the line containing $LINENO, and appends |
| 445 | # trailing '-' during substitution so that $LINENO is not a special |
| 446 | # case at line end. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 447 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 448 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 449 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 450 | sed -n ' |
| 451 | p |
| 452 | /[$]LINENO/= |
| 453 | ' <$as_myself | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 454 | sed ' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 455 | s/[$]LINENO.*/&-/ |
| 456 | t lineno |
| 457 | b |
| 458 | :lineno |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 459 | N |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 460 | :loop |
| 461 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 462 | t loop |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 463 | s/-\n.*// |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 464 | ' >$as_me.lineno && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 465 | chmod +x "$as_me.lineno" || |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 466 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 467 | { (exit 1); exit 1; }; } |
| 468 | |
| 469 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 470 | # (the dirname of $[0] is not the place where we might find the |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 471 | # original and so on. Autoconf is especially sensitive to this). |
| 472 | . "./$as_me.lineno" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 473 | # Exit status is that of the last command. |
| 474 | exit |
| 475 | } |
| 476 | |
| 477 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 478 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 479 | as_dirname=dirname |
| 480 | else |
| 481 | as_dirname=false |
| 482 | fi |
| 483 | |
| 484 | ECHO_C= ECHO_N= ECHO_T= |
| 485 | case `echo -n x` in |
| 486 | -n*) |
| 487 | case `echo 'x\c'` in |
| 488 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 489 | *) ECHO_C='\c';; |
| 490 | esac;; |
| 491 | *) |
| 492 | ECHO_N='-n';; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 493 | esac |
| 494 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 495 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 496 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 497 | as_expr=expr |
| 498 | else |
| 499 | as_expr=false |
| 500 | fi |
| 501 | |
| 502 | rm -f conf$$ conf$$.exe conf$$.file |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 503 | if test -d conf$$.dir; then |
| 504 | rm -f conf$$.dir/conf$$.file |
| 505 | else |
| 506 | rm -f conf$$.dir |
| 507 | mkdir conf$$.dir |
| 508 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 509 | echo >conf$$.file |
| 510 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 511 | as_ln_s='ln -s' |
| 512 | # ... but there are two gotchas: |
| 513 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 514 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 515 | # In both cases, we have to default to `cp -p'. |
| 516 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 517 | as_ln_s='cp -p' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 518 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 519 | as_ln_s=ln |
| 520 | else |
| 521 | as_ln_s='cp -p' |
| 522 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 523 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 524 | rmdir conf$$.dir 2>/dev/null |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 525 | |
| 526 | if mkdir -p . 2>/dev/null; then |
| 527 | as_mkdir_p=: |
| 528 | else |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 529 | test -d ./-p && rmdir ./-p |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 530 | as_mkdir_p=false |
| 531 | fi |
| 532 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 533 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 534 | # systems may use methods other than mode bits to determine executability. |
| 535 | cat >conf$$.file <<_ASEOF |
| 536 | #! /bin/sh |
| 537 | exit 0 |
| 538 | _ASEOF |
| 539 | chmod +x conf$$.file |
| 540 | if test -x conf$$.file >/dev/null 2>&1; then |
| 541 | as_executable_p="test -x" |
| 542 | else |
| 543 | as_executable_p=: |
| 544 | fi |
| 545 | rm -f conf$$.file |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 546 | |
| 547 | # Sed expression to map a string onto a valid CPP name. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 548 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 549 | |
| 550 | # Sed expression to map a string onto a valid variable name. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 551 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 552 | |
| 553 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 554 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 555 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 556 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 557 | exec 7<&0 </dev/null 6>&1 |
| 558 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 559 | # Name of the host. |
| 560 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 561 | # so uname gets run too. |
| 562 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 563 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 564 | # |
| 565 | # Initializations. |
| 566 | # |
| 567 | ac_default_prefix=/usr/local |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 568 | ac_clean_files= |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 569 | ac_config_libobj_dir=. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 570 | LIBOBJS= |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 571 | cross_compiling=no |
| 572 | subdirs= |
| 573 | MFLAGS= |
| 574 | MAKEFLAGS= |
| 575 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 576 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 577 | # Identity of this package. |
| 578 | PACKAGE_NAME= |
| 579 | PACKAGE_TARNAME= |
| 580 | PACKAGE_VERSION= |
| 581 | PACKAGE_STRING= |
| 582 | PACKAGE_BUGREPORT= |
| 583 | |
| 584 | ac_unique_file="libasn1parser/asn1p_y.y" |
| 585 | # Factoring default headers for most tests. |
| 586 | ac_includes_default="\ |
| 587 | #include <stdio.h> |
| 588 | #if HAVE_SYS_TYPES_H |
| 589 | # include <sys/types.h> |
| 590 | #endif |
| 591 | #if HAVE_SYS_STAT_H |
| 592 | # include <sys/stat.h> |
| 593 | #endif |
| 594 | #if STDC_HEADERS |
| 595 | # include <stdlib.h> |
| 596 | # include <stddef.h> |
| 597 | #else |
| 598 | # if HAVE_STDLIB_H |
| 599 | # include <stdlib.h> |
| 600 | # endif |
| 601 | #endif |
| 602 | #if HAVE_STRING_H |
| 603 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 604 | # include <memory.h> |
| 605 | # endif |
| 606 | # include <string.h> |
| 607 | #endif |
| 608 | #if HAVE_STRINGS_H |
| 609 | # include <strings.h> |
| 610 | #endif |
| 611 | #if HAVE_INTTYPES_H |
| 612 | # include <inttypes.h> |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 613 | #endif |
| 614 | #if HAVE_STDINT_H |
| 615 | # include <stdint.h> |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 616 | #endif |
| 617 | #if HAVE_UNISTD_H |
| 618 | # include <unistd.h> |
| 619 | #endif" |
| 620 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 621 | ac_subst_vars='SHELL |
| 622 | PATH_SEPARATOR |
| 623 | PACKAGE_NAME |
| 624 | PACKAGE_TARNAME |
| 625 | PACKAGE_VERSION |
| 626 | PACKAGE_STRING |
| 627 | PACKAGE_BUGREPORT |
| 628 | exec_prefix |
| 629 | prefix |
| 630 | program_transform_name |
| 631 | bindir |
| 632 | sbindir |
| 633 | libexecdir |
| 634 | datarootdir |
| 635 | datadir |
| 636 | sysconfdir |
| 637 | sharedstatedir |
| 638 | localstatedir |
| 639 | includedir |
| 640 | oldincludedir |
| 641 | docdir |
| 642 | infodir |
| 643 | htmldir |
| 644 | dvidir |
| 645 | pdfdir |
| 646 | psdir |
| 647 | libdir |
| 648 | localedir |
| 649 | mandir |
| 650 | DEFS |
| 651 | ECHO_C |
| 652 | ECHO_N |
| 653 | ECHO_T |
| 654 | LIBS |
| 655 | build_alias |
| 656 | host_alias |
| 657 | target_alias |
| 658 | build |
| 659 | build_cpu |
| 660 | build_vendor |
| 661 | build_os |
| 662 | host |
| 663 | host_cpu |
| 664 | host_vendor |
| 665 | host_os |
| 666 | target |
| 667 | target_cpu |
| 668 | target_vendor |
| 669 | target_os |
| 670 | INSTALL_PROGRAM |
| 671 | INSTALL_SCRIPT |
| 672 | INSTALL_DATA |
| 673 | CYGPATH_W |
| 674 | PACKAGE |
| 675 | VERSION |
| 676 | ACLOCAL |
| 677 | AUTOCONF |
| 678 | AUTOMAKE |
| 679 | AUTOHEADER |
| 680 | MAKEINFO |
| 681 | install_sh |
| 682 | STRIP |
| 683 | INSTALL_STRIP_PROGRAM |
| 684 | mkdir_p |
| 685 | AWK |
| 686 | SET_MAKE |
| 687 | am__leading_dot |
| 688 | AMTAR |
| 689 | am__tar |
| 690 | am__untar |
| 691 | MAINTAINER_MODE_TRUE |
| 692 | MAINTAINER_MODE_FALSE |
| 693 | MAINT |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 694 | LIBTOOL |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 695 | CC |
| 696 | CFLAGS |
| 697 | LDFLAGS |
| 698 | CPPFLAGS |
| 699 | ac_ct_CC |
| 700 | EXEEXT |
| 701 | OBJEXT |
| 702 | DEPDIR |
| 703 | am__include |
| 704 | am__quote |
| 705 | AMDEP_TRUE |
| 706 | AMDEP_FALSE |
| 707 | AMDEPBACKSLASH |
| 708 | CCDEPMODE |
| 709 | am__fastdepCC_TRUE |
| 710 | am__fastdepCC_FALSE |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 711 | SED |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 712 | GREP |
| 713 | EGREP |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 714 | FGREP |
| 715 | LD |
| 716 | DUMPBIN |
| 717 | ac_ct_DUMPBIN |
| 718 | NM |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 719 | LN_S |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 720 | OBJDUMP |
| 721 | DLLTOOL |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 722 | AR |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 723 | ac_ct_AR |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 724 | RANLIB |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 725 | MANIFEST_TOOL |
| 726 | DSYMUTIL |
| 727 | NMEDIT |
| 728 | LIPO |
| 729 | OTOOL |
| 730 | OTOOL64 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 731 | CPP |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 732 | CONFIGURE_DEPENDS |
| 733 | YACC |
| 734 | YFLAGS |
| 735 | LEX |
| 736 | LEXLIB |
| 737 | LEX_OUTPUT_ROOT |
| 738 | ADD_CFLAGS |
| 739 | LIBOBJS |
| 740 | LTLIBOBJS' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 741 | ac_subst_files='' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 742 | ac_precious_vars='build_alias |
| 743 | host_alias |
| 744 | target_alias |
| 745 | CC |
| 746 | CFLAGS |
| 747 | LDFLAGS |
| 748 | CPPFLAGS |
| 749 | CPP |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 750 | YACC |
| 751 | YFLAGS' |
| 752 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 753 | |
| 754 | # Initialize some variables set by options. |
| 755 | ac_init_help= |
| 756 | ac_init_version=false |
| 757 | # The variables have the same names as the options, with |
| 758 | # dashes changed to underlines. |
| 759 | cache_file=/dev/null |
| 760 | exec_prefix=NONE |
| 761 | no_create= |
| 762 | no_recursion= |
| 763 | prefix=NONE |
| 764 | program_prefix=NONE |
| 765 | program_suffix=NONE |
| 766 | program_transform_name=s,x,x, |
| 767 | silent= |
| 768 | site= |
| 769 | srcdir= |
| 770 | verbose= |
| 771 | x_includes=NONE |
| 772 | x_libraries=NONE |
| 773 | |
| 774 | # Installation directory options. |
| 775 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 776 | # and all the variables that are supposed to be based on exec_prefix |
| 777 | # by default will actually change. |
| 778 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 779 | # (The list follows the same order as the GNU Coding Standards.) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 780 | bindir='${exec_prefix}/bin' |
| 781 | sbindir='${exec_prefix}/sbin' |
| 782 | libexecdir='${exec_prefix}/libexec' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 783 | datarootdir='${prefix}/share' |
| 784 | datadir='${datarootdir}' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 785 | sysconfdir='${prefix}/etc' |
| 786 | sharedstatedir='${prefix}/com' |
| 787 | localstatedir='${prefix}/var' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 788 | includedir='${prefix}/include' |
| 789 | oldincludedir='/usr/include' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 790 | docdir='${datarootdir}/doc/${PACKAGE}' |
| 791 | infodir='${datarootdir}/info' |
| 792 | htmldir='${docdir}' |
| 793 | dvidir='${docdir}' |
| 794 | pdfdir='${docdir}' |
| 795 | psdir='${docdir}' |
| 796 | libdir='${exec_prefix}/lib' |
| 797 | localedir='${datarootdir}/locale' |
| 798 | mandir='${datarootdir}/man' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 799 | |
| 800 | ac_prev= |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 801 | ac_dashdash= |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 802 | for ac_option |
| 803 | do |
| 804 | # If the previous option needs an argument, assign it. |
| 805 | if test -n "$ac_prev"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 806 | eval $ac_prev=\$ac_option |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 807 | ac_prev= |
| 808 | continue |
| 809 | fi |
| 810 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 811 | case $ac_option in |
| 812 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 813 | *) ac_optarg=yes ;; |
| 814 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 815 | |
| 816 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 817 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 818 | case $ac_dashdash$ac_option in |
| 819 | --) |
| 820 | ac_dashdash=yes ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 821 | |
| 822 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 823 | ac_prev=bindir ;; |
| 824 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 825 | bindir=$ac_optarg ;; |
| 826 | |
| 827 | -build | --build | --buil | --bui | --bu) |
| 828 | ac_prev=build_alias ;; |
| 829 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 830 | build_alias=$ac_optarg ;; |
| 831 | |
| 832 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 833 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 834 | ac_prev=cache_file ;; |
| 835 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 836 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 837 | cache_file=$ac_optarg ;; |
| 838 | |
| 839 | --config-cache | -C) |
| 840 | cache_file=config.cache ;; |
| 841 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 842 | -datadir | --datadir | --datadi | --datad) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 843 | ac_prev=datadir ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 844 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 845 | datadir=$ac_optarg ;; |
| 846 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 847 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 848 | | --dataroo | --dataro | --datar) |
| 849 | ac_prev=datarootdir ;; |
| 850 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 851 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 852 | datarootdir=$ac_optarg ;; |
| 853 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 854 | -disable-* | --disable-*) |
| 855 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 856 | # Reject names that are not valid shell variable names. |
| 857 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 858 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 859 | { (exit 1); exit 1; }; } |
| 860 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 861 | eval enable_$ac_feature=no ;; |
| 862 | |
| 863 | -docdir | --docdir | --docdi | --doc | --do) |
| 864 | ac_prev=docdir ;; |
| 865 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 866 | docdir=$ac_optarg ;; |
| 867 | |
| 868 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 869 | ac_prev=dvidir ;; |
| 870 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 871 | dvidir=$ac_optarg ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 872 | |
| 873 | -enable-* | --enable-*) |
| 874 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 875 | # Reject names that are not valid shell variable names. |
| 876 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 877 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 878 | { (exit 1); exit 1; }; } |
| 879 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 880 | eval enable_$ac_feature=\$ac_optarg ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 881 | |
| 882 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 883 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 884 | | --exec | --exe | --ex) |
| 885 | ac_prev=exec_prefix ;; |
| 886 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 887 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 888 | | --exec=* | --exe=* | --ex=*) |
| 889 | exec_prefix=$ac_optarg ;; |
| 890 | |
| 891 | -gas | --gas | --ga | --g) |
| 892 | # Obsolete; use --with-gas. |
| 893 | with_gas=yes ;; |
| 894 | |
| 895 | -help | --help | --hel | --he | -h) |
| 896 | ac_init_help=long ;; |
| 897 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 898 | ac_init_help=recursive ;; |
| 899 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 900 | ac_init_help=short ;; |
| 901 | |
| 902 | -host | --host | --hos | --ho) |
| 903 | ac_prev=host_alias ;; |
| 904 | -host=* | --host=* | --hos=* | --ho=*) |
| 905 | host_alias=$ac_optarg ;; |
| 906 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 907 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 908 | ac_prev=htmldir ;; |
| 909 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 910 | | --ht=*) |
| 911 | htmldir=$ac_optarg ;; |
| 912 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 913 | -includedir | --includedir | --includedi | --included | --include \ |
| 914 | | --includ | --inclu | --incl | --inc) |
| 915 | ac_prev=includedir ;; |
| 916 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 917 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 918 | includedir=$ac_optarg ;; |
| 919 | |
| 920 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 921 | ac_prev=infodir ;; |
| 922 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 923 | infodir=$ac_optarg ;; |
| 924 | |
| 925 | -libdir | --libdir | --libdi | --libd) |
| 926 | ac_prev=libdir ;; |
| 927 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 928 | libdir=$ac_optarg ;; |
| 929 | |
| 930 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 931 | | --libexe | --libex | --libe) |
| 932 | ac_prev=libexecdir ;; |
| 933 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 934 | | --libexe=* | --libex=* | --libe=*) |
| 935 | libexecdir=$ac_optarg ;; |
| 936 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 937 | -localedir | --localedir | --localedi | --localed | --locale) |
| 938 | ac_prev=localedir ;; |
| 939 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 940 | localedir=$ac_optarg ;; |
| 941 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 942 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 943 | | --localstate | --localstat | --localsta | --localst | --locals) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 944 | ac_prev=localstatedir ;; |
| 945 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 946 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 947 | localstatedir=$ac_optarg ;; |
| 948 | |
| 949 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 950 | ac_prev=mandir ;; |
| 951 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 952 | mandir=$ac_optarg ;; |
| 953 | |
| 954 | -nfp | --nfp | --nf) |
| 955 | # Obsolete; use --without-fp. |
| 956 | with_fp=no ;; |
| 957 | |
| 958 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 959 | | --no-cr | --no-c | -n) |
| 960 | no_create=yes ;; |
| 961 | |
| 962 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 963 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 964 | no_recursion=yes ;; |
| 965 | |
| 966 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 967 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 968 | | --oldin | --oldi | --old | --ol | --o) |
| 969 | ac_prev=oldincludedir ;; |
| 970 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 971 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 972 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 973 | oldincludedir=$ac_optarg ;; |
| 974 | |
| 975 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 976 | ac_prev=prefix ;; |
| 977 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 978 | prefix=$ac_optarg ;; |
| 979 | |
| 980 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 981 | | --program-pre | --program-pr | --program-p) |
| 982 | ac_prev=program_prefix ;; |
| 983 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 984 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 985 | program_prefix=$ac_optarg ;; |
| 986 | |
| 987 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 988 | | --program-suf | --program-su | --program-s) |
| 989 | ac_prev=program_suffix ;; |
| 990 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 991 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 992 | program_suffix=$ac_optarg ;; |
| 993 | |
| 994 | -program-transform-name | --program-transform-name \ |
| 995 | | --program-transform-nam | --program-transform-na \ |
| 996 | | --program-transform-n | --program-transform- \ |
| 997 | | --program-transform | --program-transfor \ |
| 998 | | --program-transfo | --program-transf \ |
| 999 | | --program-trans | --program-tran \ |
| 1000 | | --progr-tra | --program-tr | --program-t) |
| 1001 | ac_prev=program_transform_name ;; |
| 1002 | -program-transform-name=* | --program-transform-name=* \ |
| 1003 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1004 | | --program-transform-n=* | --program-transform-=* \ |
| 1005 | | --program-transform=* | --program-transfor=* \ |
| 1006 | | --program-transfo=* | --program-transf=* \ |
| 1007 | | --program-trans=* | --program-tran=* \ |
| 1008 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1009 | program_transform_name=$ac_optarg ;; |
| 1010 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1011 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1012 | ac_prev=pdfdir ;; |
| 1013 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1014 | pdfdir=$ac_optarg ;; |
| 1015 | |
| 1016 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1017 | ac_prev=psdir ;; |
| 1018 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1019 | psdir=$ac_optarg ;; |
| 1020 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1021 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1022 | | -silent | --silent | --silen | --sile | --sil) |
| 1023 | silent=yes ;; |
| 1024 | |
| 1025 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1026 | ac_prev=sbindir ;; |
| 1027 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1028 | | --sbi=* | --sb=*) |
| 1029 | sbindir=$ac_optarg ;; |
| 1030 | |
| 1031 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1032 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1033 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1034 | | --sha | --sh) |
| 1035 | ac_prev=sharedstatedir ;; |
| 1036 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1037 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1038 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1039 | | --sha=* | --sh=*) |
| 1040 | sharedstatedir=$ac_optarg ;; |
| 1041 | |
| 1042 | -site | --site | --sit) |
| 1043 | ac_prev=site ;; |
| 1044 | -site=* | --site=* | --sit=*) |
| 1045 | site=$ac_optarg ;; |
| 1046 | |
| 1047 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1048 | ac_prev=srcdir ;; |
| 1049 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1050 | srcdir=$ac_optarg ;; |
| 1051 | |
| 1052 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1053 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1054 | ac_prev=sysconfdir ;; |
| 1055 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1056 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1057 | sysconfdir=$ac_optarg ;; |
| 1058 | |
| 1059 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1060 | ac_prev=target_alias ;; |
| 1061 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1062 | target_alias=$ac_optarg ;; |
| 1063 | |
| 1064 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1065 | verbose=yes ;; |
| 1066 | |
| 1067 | -version | --version | --versio | --versi | --vers | -V) |
| 1068 | ac_init_version=: ;; |
| 1069 | |
| 1070 | -with-* | --with-*) |
| 1071 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1072 | # Reject names that are not valid shell variable names. |
| 1073 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1074 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1075 | { (exit 1); exit 1; }; } |
| 1076 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1077 | eval with_$ac_package=\$ac_optarg ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1078 | |
| 1079 | -without-* | --without-*) |
| 1080 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1081 | # Reject names that are not valid shell variable names. |
| 1082 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1083 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1084 | { (exit 1); exit 1; }; } |
| 1085 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1086 | eval with_$ac_package=no ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1087 | |
| 1088 | --x) |
| 1089 | # Obsolete; use --with-x. |
| 1090 | with_x=yes ;; |
| 1091 | |
| 1092 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1093 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1094 | ac_prev=x_includes ;; |
| 1095 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1096 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1097 | x_includes=$ac_optarg ;; |
| 1098 | |
| 1099 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1100 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1101 | ac_prev=x_libraries ;; |
| 1102 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1103 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1104 | x_libraries=$ac_optarg ;; |
| 1105 | |
| 1106 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1107 | Try \`$0 --help' for more information." >&2 |
| 1108 | { (exit 1); exit 1; }; } |
| 1109 | ;; |
| 1110 | |
| 1111 | *=*) |
| 1112 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1113 | # Reject names that are not valid shell variable names. |
| 1114 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1115 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1116 | { (exit 1); exit 1; }; } |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1117 | eval $ac_envvar=\$ac_optarg |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1118 | export $ac_envvar ;; |
| 1119 | |
| 1120 | *) |
| 1121 | # FIXME: should be removed in autoconf 3.0. |
| 1122 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1123 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1124 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1125 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1126 | ;; |
| 1127 | |
| 1128 | esac |
| 1129 | done |
| 1130 | |
| 1131 | if test -n "$ac_prev"; then |
| 1132 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1133 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1134 | { (exit 1); exit 1; }; } |
| 1135 | fi |
| 1136 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1137 | # Be sure to have absolute directory names. |
| 1138 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1139 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1140 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1141 | libdir localedir mandir |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1142 | do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1143 | eval ac_val=\$$ac_var |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1144 | case $ac_val in |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1145 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1146 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1147 | esac |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1148 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1149 | { (exit 1); exit 1; }; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1150 | done |
| 1151 | |
| 1152 | # There might be people who depend on the old broken behavior: `$host' |
| 1153 | # used to hold the argument of --host etc. |
| 1154 | # FIXME: To remove some day. |
| 1155 | build=$build_alias |
| 1156 | host=$host_alias |
| 1157 | target=$target_alias |
| 1158 | |
| 1159 | # FIXME: To remove some day. |
| 1160 | if test "x$host_alias" != x; then |
| 1161 | if test "x$build_alias" = x; then |
| 1162 | cross_compiling=maybe |
| 1163 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1164 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1165 | elif test "x$build_alias" != "x$host_alias"; then |
| 1166 | cross_compiling=yes |
| 1167 | fi |
| 1168 | fi |
| 1169 | |
| 1170 | ac_tool_prefix= |
| 1171 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1172 | |
| 1173 | test "$silent" = yes && exec 6>/dev/null |
| 1174 | |
| 1175 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1176 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1177 | ac_ls_di=`ls -di .` && |
| 1178 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1179 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1180 | { (exit 1); exit 1; }; } |
| 1181 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1182 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1183 | { (exit 1); exit 1; }; } |
| 1184 | |
| 1185 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1186 | # Find the source files, if location was not specified. |
| 1187 | if test -z "$srcdir"; then |
| 1188 | ac_srcdir_defaulted=yes |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1189 | # Try the directory containing this script, then the parent directory. |
| 1190 | ac_confdir=`$as_dirname -- "$0" || |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1191 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1192 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1193 | X"$0" : 'X\(//\)$' \| \ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1194 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1195 | echo X"$0" | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1196 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1197 | s//\1/ |
| 1198 | q |
| 1199 | } |
| 1200 | /^X\(\/\/\)[^/].*/{ |
| 1201 | s//\1/ |
| 1202 | q |
| 1203 | } |
| 1204 | /^X\(\/\/\)$/{ |
| 1205 | s//\1/ |
| 1206 | q |
| 1207 | } |
| 1208 | /^X\(\/\).*/{ |
| 1209 | s//\1/ |
| 1210 | q |
| 1211 | } |
| 1212 | s/.*/./; q'` |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1213 | srcdir=$ac_confdir |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1214 | if test ! -r "$srcdir/$ac_unique_file"; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1215 | srcdir=.. |
| 1216 | fi |
| 1217 | else |
| 1218 | ac_srcdir_defaulted=no |
| 1219 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1220 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1221 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1222 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1223 | { (exit 1); exit 1; }; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1224 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1225 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1226 | ac_abs_confdir=`( |
| 1227 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1228 | { (exit 1); exit 1; }; } |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1229 | pwd)` |
| 1230 | # When building in place, set srcdir=. |
| 1231 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1232 | srcdir=. |
| 1233 | fi |
| 1234 | # Remove unnecessary trailing slashes from srcdir. |
| 1235 | # Double slashes in file names in object file debugging info |
| 1236 | # mess up M-x gdb in Emacs. |
| 1237 | case $srcdir in |
| 1238 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1239 | esac |
| 1240 | for ac_var in $ac_precious_vars; do |
| 1241 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1242 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1243 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1244 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1245 | done |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1246 | |
| 1247 | # |
| 1248 | # Report the --help message. |
| 1249 | # |
| 1250 | if test "$ac_init_help" = "long"; then |
| 1251 | # Omit some internal or obsolete options to make the list less imposing. |
| 1252 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1253 | cat <<_ACEOF |
| 1254 | \`configure' configures this package to adapt to many kinds of systems. |
| 1255 | |
| 1256 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1257 | |
| 1258 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1259 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1260 | |
| 1261 | Defaults for the options are specified in brackets. |
| 1262 | |
| 1263 | Configuration: |
| 1264 | -h, --help display this help and exit |
| 1265 | --help=short display options specific to this package |
| 1266 | --help=recursive display the short help of all the included packages |
| 1267 | -V, --version display version information and exit |
| 1268 | -q, --quiet, --silent do not print \`checking...' messages |
| 1269 | --cache-file=FILE cache test results in FILE [disabled] |
| 1270 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1271 | -n, --no-create do not create output files |
| 1272 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1273 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1274 | Installation directories: |
| 1275 | --prefix=PREFIX install architecture-independent files in PREFIX |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1276 | [$ac_default_prefix] |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1277 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1278 | [PREFIX] |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1279 | |
| 1280 | By default, \`make install' will install all the files in |
| 1281 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1282 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1283 | for instance \`--prefix=\$HOME'. |
| 1284 | |
| 1285 | For better control, use the options below. |
| 1286 | |
| 1287 | Fine tuning of the installation directories: |
| 1288 | --bindir=DIR user executables [EPREFIX/bin] |
| 1289 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1290 | --libexecdir=DIR program executables [EPREFIX/libexec] |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1291 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1292 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1293 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1294 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1295 | --includedir=DIR C header files [PREFIX/include] |
| 1296 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1297 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1298 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1299 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1300 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1301 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1302 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
| 1303 | --htmldir=DIR html documentation [DOCDIR] |
| 1304 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1305 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1306 | --psdir=DIR ps documentation [DOCDIR] |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1307 | _ACEOF |
| 1308 | |
| 1309 | cat <<\_ACEOF |
| 1310 | |
| 1311 | Program names: |
| 1312 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1313 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1314 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1315 | |
| 1316 | System types: |
| 1317 | --build=BUILD configure for building on BUILD [guessed] |
| 1318 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1319 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1320 | _ACEOF |
| 1321 | fi |
| 1322 | |
| 1323 | if test -n "$ac_init_help"; then |
| 1324 | |
| 1325 | cat <<\_ACEOF |
| 1326 | |
| 1327 | Optional Features: |
| 1328 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1329 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1330 | --enable-maintainer-mode enable make rules and dependencies not useful |
| 1331 | (and sometimes confusing) to the casual installer |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1332 | --enable-shared[=PKGS] build shared libraries [default=yes] |
| 1333 | --enable-static[=PKGS] build static libraries [default=yes] |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1334 | --enable-fast-install[=PKGS] |
| 1335 | optimize for fast installation [default=yes] |
| 1336 | --disable-dependency-tracking speeds up one-time build |
| 1337 | --enable-dependency-tracking do not reject slow dependency extractors |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1338 | --disable-libtool-lock avoid locking (might break parallel builds) |
| 1339 | --disable-autoconf disable automatic generation of configure script |
| 1340 | --enable-Werror abort compilation after any C compiler warning |
| 1341 | |
| 1342 | Optional Packages: |
| 1343 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1344 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1345 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1346 | both] |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 1347 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1348 | --with-sysroot=DIR Search for dependent libraries within DIR |
| 1349 | (or the compiler's sysroot if not specified). |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1350 | |
| 1351 | Some influential environment variables: |
| 1352 | CC C compiler command |
| 1353 | CFLAGS C compiler flags |
| 1354 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1355 | nonstandard directory <lib dir> |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1356 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1357 | you have headers in a nonstandard directory <include dir> |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1358 | CPP C preprocessor |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1359 | YACC The `Yet Another C Compiler' implementation to use. Defaults to |
| 1360 | the first program found out of: `bison -y', `byacc', `yacc'. |
| 1361 | YFLAGS The list of arguments that will be passed by default to $YACC. |
| 1362 | This script will default YFLAGS to the empty string to avoid a |
| 1363 | default value of `-d' given by some make applications. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1364 | |
| 1365 | Use these variables to override the choices made by `configure' or to help |
| 1366 | it to find libraries and programs with nonstandard names/locations. |
| 1367 | |
| 1368 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1369 | ac_status=$? |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1370 | fi |
| 1371 | |
| 1372 | if test "$ac_init_help" = "recursive"; then |
| 1373 | # If there are subdirs, report their specific --help. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1374 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1375 | test -d "$ac_dir" || continue |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1376 | ac_builddir=. |
| 1377 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1378 | case "$ac_dir" in |
| 1379 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1380 | *) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1381 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1382 | # A ".." for each directory in $ac_dir_suffix. |
| 1383 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1384 | case $ac_top_builddir_sub in |
| 1385 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1386 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1387 | esac ;; |
| 1388 | esac |
| 1389 | ac_abs_top_builddir=$ac_pwd |
| 1390 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1391 | # for backward compatibility: |
| 1392 | ac_top_builddir=$ac_top_build_prefix |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1393 | |
| 1394 | case $srcdir in |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1395 | .) # We are building in place. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1396 | ac_srcdir=. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1397 | ac_top_srcdir=$ac_top_builddir_sub |
| 1398 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1399 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1400 | ac_srcdir=$srcdir$ac_dir_suffix; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1401 | ac_top_srcdir=$srcdir |
| 1402 | ac_abs_top_srcdir=$srcdir ;; |
| 1403 | *) # Relative name. |
| 1404 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1405 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1406 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1407 | esac |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1408 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1409 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1410 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1411 | # Check for guested configure. |
| 1412 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1413 | echo && |
| 1414 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1415 | elif test -f "$ac_srcdir/configure"; then |
| 1416 | echo && |
| 1417 | $SHELL "$ac_srcdir/configure" --help=recursive |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1418 | else |
| 1419 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1420 | fi || ac_status=$? |
| 1421 | cd "$ac_pwd" || { ac_status=$?; break; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1422 | done |
| 1423 | fi |
| 1424 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1425 | test -n "$ac_init_help" && exit $ac_status |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1426 | if $ac_init_version; then |
| 1427 | cat <<\_ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1428 | configure |
| 1429 | generated by GNU Autoconf 2.60 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1430 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1431 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1432 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1433 | This configure script is free software; the Free Software Foundation |
| 1434 | gives unlimited permission to copy, distribute and modify it. |
| 1435 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1436 | exit |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1437 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1438 | cat >config.log <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1439 | This file contains any messages produced by compilers while |
| 1440 | running configure, to aid debugging if configure makes a mistake. |
| 1441 | |
| 1442 | It was created by $as_me, which was |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1443 | generated by GNU Autoconf 2.60. Invocation command line was |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1444 | |
| 1445 | $ $0 $@ |
| 1446 | |
| 1447 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1448 | exec 5>>config.log |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1449 | { |
| 1450 | cat <<_ASUNAME |
| 1451 | ## --------- ## |
| 1452 | ## Platform. ## |
| 1453 | ## --------- ## |
| 1454 | |
| 1455 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1456 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1457 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1458 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1459 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1460 | |
| 1461 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1462 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1463 | |
| 1464 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1465 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1466 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1467 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1468 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1469 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1470 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1471 | |
| 1472 | _ASUNAME |
| 1473 | |
| 1474 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1475 | for as_dir in $PATH |
| 1476 | do |
| 1477 | IFS=$as_save_IFS |
| 1478 | test -z "$as_dir" && as_dir=. |
| 1479 | echo "PATH: $as_dir" |
| 1480 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1481 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1482 | |
| 1483 | } >&5 |
| 1484 | |
| 1485 | cat >&5 <<_ACEOF |
| 1486 | |
| 1487 | |
| 1488 | ## ----------- ## |
| 1489 | ## Core tests. ## |
| 1490 | ## ----------- ## |
| 1491 | |
| 1492 | _ACEOF |
| 1493 | |
| 1494 | |
| 1495 | # Keep a trace of the command line. |
| 1496 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1497 | # Strip out --silent because we don't want to record it for future runs. |
| 1498 | # Also quote any args containing shell meta-characters. |
| 1499 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1500 | ac_configure_args= |
| 1501 | ac_configure_args0= |
| 1502 | ac_configure_args1= |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1503 | ac_must_keep_next=false |
| 1504 | for ac_pass in 1 2 |
| 1505 | do |
| 1506 | for ac_arg |
| 1507 | do |
| 1508 | case $ac_arg in |
| 1509 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1510 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1511 | | -silent | --silent | --silen | --sile | --sil) |
| 1512 | continue ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1513 | *\'*) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1514 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1515 | esac |
| 1516 | case $ac_pass in |
| 1517 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1518 | 2) |
| 1519 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1520 | if test $ac_must_keep_next = true; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1521 | ac_must_keep_next=false # Got value, back to normal. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1522 | else |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1523 | case $ac_arg in |
| 1524 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1525 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1526 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1527 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1528 | case "$ac_configure_args0 " in |
| 1529 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1530 | esac |
| 1531 | ;; |
| 1532 | -* ) ac_must_keep_next=true ;; |
| 1533 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1534 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1535 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1536 | ;; |
| 1537 | esac |
| 1538 | done |
| 1539 | done |
| 1540 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1541 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1542 | |
| 1543 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1544 | # config.log. We remove comments because anyway the quotes in there |
| 1545 | # would cause problems or look ugly. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1546 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1547 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1548 | trap 'exit_status=$? |
| 1549 | # Save into config.log some information that might help in debugging. |
| 1550 | { |
| 1551 | echo |
| 1552 | |
| 1553 | cat <<\_ASBOX |
| 1554 | ## ---------------- ## |
| 1555 | ## Cache variables. ## |
| 1556 | ## ---------------- ## |
| 1557 | _ASBOX |
| 1558 | echo |
| 1559 | # The following way of writing the cache mishandles newlines in values, |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1560 | ( |
| 1561 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1562 | eval ac_val=\$$ac_var |
| 1563 | case $ac_val in #( |
| 1564 | *${as_nl}*) |
| 1565 | case $ac_var in #( |
| 1566 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1567 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1568 | esac |
| 1569 | case $ac_var in #( |
| 1570 | _ | IFS | as_nl) ;; #( |
| 1571 | *) $as_unset $ac_var ;; |
| 1572 | esac ;; |
| 1573 | esac |
| 1574 | done |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1575 | (set) 2>&1 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1576 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1577 | *${as_nl}ac_space=\ *) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1578 | sed -n \ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1579 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1580 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1581 | ;; #( |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1582 | *) |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1583 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1584 | ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1585 | esac | |
| 1586 | sort |
| 1587 | ) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1588 | echo |
| 1589 | |
| 1590 | cat <<\_ASBOX |
| 1591 | ## ----------------- ## |
| 1592 | ## Output variables. ## |
| 1593 | ## ----------------- ## |
| 1594 | _ASBOX |
| 1595 | echo |
| 1596 | for ac_var in $ac_subst_vars |
| 1597 | do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1598 | eval ac_val=\$$ac_var |
| 1599 | case $ac_val in |
| 1600 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1601 | esac |
| 1602 | echo "$ac_var='\''$ac_val'\''" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1603 | done | sort |
| 1604 | echo |
| 1605 | |
| 1606 | if test -n "$ac_subst_files"; then |
| 1607 | cat <<\_ASBOX |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1608 | ## ------------------- ## |
| 1609 | ## File substitutions. ## |
| 1610 | ## ------------------- ## |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1611 | _ASBOX |
| 1612 | echo |
| 1613 | for ac_var in $ac_subst_files |
| 1614 | do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1615 | eval ac_val=\$$ac_var |
| 1616 | case $ac_val in |
| 1617 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1618 | esac |
| 1619 | echo "$ac_var='\''$ac_val'\''" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1620 | done | sort |
| 1621 | echo |
| 1622 | fi |
| 1623 | |
| 1624 | if test -s confdefs.h; then |
| 1625 | cat <<\_ASBOX |
| 1626 | ## ----------- ## |
| 1627 | ## confdefs.h. ## |
| 1628 | ## ----------- ## |
| 1629 | _ASBOX |
| 1630 | echo |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1631 | cat confdefs.h |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1632 | echo |
| 1633 | fi |
| 1634 | test "$ac_signal" != 0 && |
| 1635 | echo "$as_me: caught signal $ac_signal" |
| 1636 | echo "$as_me: exit $exit_status" |
| 1637 | } >&5 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1638 | rm -f core *.core core.conftest.* && |
| 1639 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1640 | exit $exit_status |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1641 | ' 0 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1642 | for ac_signal in 1 2 13 15; do |
| 1643 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1644 | done |
| 1645 | ac_signal=0 |
| 1646 | |
| 1647 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1648 | rm -f -r conftest* confdefs.h |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1649 | |
| 1650 | # Predefined preprocessor variables. |
| 1651 | |
| 1652 | cat >>confdefs.h <<_ACEOF |
| 1653 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1654 | _ACEOF |
| 1655 | |
| 1656 | |
| 1657 | cat >>confdefs.h <<_ACEOF |
| 1658 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1659 | _ACEOF |
| 1660 | |
| 1661 | |
| 1662 | cat >>confdefs.h <<_ACEOF |
| 1663 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1664 | _ACEOF |
| 1665 | |
| 1666 | |
| 1667 | cat >>confdefs.h <<_ACEOF |
| 1668 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1669 | _ACEOF |
| 1670 | |
| 1671 | |
| 1672 | cat >>confdefs.h <<_ACEOF |
| 1673 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1674 | _ACEOF |
| 1675 | |
| 1676 | |
| 1677 | # Let the site file select an alternate cache file if it wants to. |
| 1678 | # Prefer explicitly selected file to automatically selected ones. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1679 | if test -n "$CONFIG_SITE"; then |
| 1680 | set x "$CONFIG_SITE" |
| 1681 | elif test "x$prefix" != xNONE; then |
| 1682 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1683 | else |
| 1684 | set x "$ac_default_prefix/share/config.site" \ |
| 1685 | "$ac_default_prefix/etc/config.site" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1686 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1687 | shift |
| 1688 | for ac_site_file |
| 1689 | do |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1690 | if test -r "$ac_site_file"; then |
| 1691 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1692 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1693 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1694 | . "$ac_site_file" |
| 1695 | fi |
| 1696 | done |
| 1697 | |
| 1698 | if test -r "$cache_file"; then |
| 1699 | # Some versions of bash will fail to source /dev/null (special |
| 1700 | # files actually), so we avoid doing that. |
| 1701 | if test -f "$cache_file"; then |
| 1702 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1703 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1704 | case $cache_file in |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1705 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1706 | *) . "./$cache_file";; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1707 | esac |
| 1708 | fi |
| 1709 | else |
| 1710 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1711 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1712 | >$cache_file |
| 1713 | fi |
| 1714 | |
| 1715 | # Check that the precious variables saved in the cache have kept the same |
| 1716 | # value. |
| 1717 | ac_cache_corrupted=false |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1718 | for ac_var in $ac_precious_vars; do |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1719 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1720 | eval ac_new_set=\$ac_env_${ac_var}_set |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1721 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1722 | eval ac_new_val=\$ac_env_${ac_var}_value |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1723 | case $ac_old_set,$ac_new_set in |
| 1724 | set,) |
| 1725 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1726 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1727 | ac_cache_corrupted=: ;; |
| 1728 | ,set) |
| 1729 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1730 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1731 | ac_cache_corrupted=: ;; |
| 1732 | ,);; |
| 1733 | *) |
| 1734 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1735 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1736 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1737 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1738 | echo "$as_me: former value: $ac_old_val" >&2;} |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1739 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1740 | echo "$as_me: current value: $ac_new_val" >&2;} |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1741 | ac_cache_corrupted=: |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1742 | fi;; |
| 1743 | esac |
| 1744 | # Pass precious variables to config.status. |
| 1745 | if test "$ac_new_set" = set; then |
| 1746 | case $ac_new_val in |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1747 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1748 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1749 | esac |
| 1750 | case " $ac_configure_args " in |
| 1751 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1752 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1753 | esac |
| 1754 | fi |
| 1755 | done |
| 1756 | if $ac_cache_corrupted; then |
| 1757 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1758 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1759 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1760 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1761 | { (exit 1); exit 1; }; } |
| 1762 | fi |
| 1763 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1764 | |
| 1765 | |
| 1766 | |
| 1767 | |
| 1768 | |
| 1769 | |
| 1770 | |
| 1771 | |
| 1772 | |
| 1773 | |
| 1774 | |
| 1775 | |
| 1776 | |
| 1777 | |
| 1778 | |
| 1779 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1780 | ac_ext=c |
| 1781 | ac_cpp='$CPP $CPPFLAGS' |
| 1782 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1783 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1784 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1785 | |
| 1786 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1787 | ac_aux_dir= |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1788 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 1789 | if test -f "$ac_dir/install-sh"; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1790 | ac_aux_dir=$ac_dir |
| 1791 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1792 | break |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1793 | elif test -f "$ac_dir/install.sh"; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1794 | ac_aux_dir=$ac_dir |
| 1795 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1796 | break |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1797 | elif test -f "$ac_dir/shtool"; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1798 | ac_aux_dir=$ac_dir |
| 1799 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1800 | break |
| 1801 | fi |
| 1802 | done |
| 1803 | if test -z "$ac_aux_dir"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1804 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
| 1805 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1806 | { (exit 1); exit 1; }; } |
| 1807 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1808 | |
| 1809 | # These three variables are undocumented and unsupported, |
| 1810 | # and are intended to be withdrawn in a future Autoconf release. |
| 1811 | # They can cause serious problems if a builder's source tree is in a directory |
| 1812 | # whose full name contains unusual characters. |
| 1813 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1814 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1815 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1816 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1817 | |
| 1818 | # Make sure we can run config.sub. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1819 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 1820 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 1821 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1822 | { (exit 1); exit 1; }; } |
| 1823 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1824 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 1825 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1826 | if test "${ac_cv_build+set}" = set; then |
| 1827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1828 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1829 | ac_build_alias=$build_alias |
| 1830 | test "x$ac_build_alias" = x && |
| 1831 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 1832 | test "x$ac_build_alias" = x && |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1833 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 1834 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1835 | { (exit 1); exit 1; }; } |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1836 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 1837 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 1838 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1839 | { (exit 1); exit 1; }; } |
| 1840 | |
| 1841 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1842 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1843 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 1844 | case $ac_cv_build in |
| 1845 | *-*-*) ;; |
| 1846 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 1847 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 1848 | { (exit 1); exit 1; }; };; |
| 1849 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1850 | build=$ac_cv_build |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1851 | ac_save_IFS=$IFS; IFS='-' |
| 1852 | set x $ac_cv_build |
| 1853 | shift |
| 1854 | build_cpu=$1 |
| 1855 | build_vendor=$2 |
| 1856 | shift; shift |
| 1857 | # Remember, the first character of IFS is used to create $*, |
| 1858 | # except with old shells: |
| 1859 | build_os=$* |
| 1860 | IFS=$ac_save_IFS |
| 1861 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1862 | |
| 1863 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1864 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 1865 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1866 | if test "${ac_cv_host+set}" = set; then |
| 1867 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1868 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1869 | if test "x$host_alias" = x; then |
| 1870 | ac_cv_host=$ac_cv_build |
| 1871 | else |
| 1872 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 1873 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 1874 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1875 | { (exit 1); exit 1; }; } |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1876 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1877 | |
| 1878 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1879 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1880 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 1881 | case $ac_cv_host in |
| 1882 | *-*-*) ;; |
| 1883 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 1884 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 1885 | { (exit 1); exit 1; }; };; |
| 1886 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1887 | host=$ac_cv_host |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1888 | ac_save_IFS=$IFS; IFS='-' |
| 1889 | set x $ac_cv_host |
| 1890 | shift |
| 1891 | host_cpu=$1 |
| 1892 | host_vendor=$2 |
| 1893 | shift; shift |
| 1894 | # Remember, the first character of IFS is used to create $*, |
| 1895 | # except with old shells: |
| 1896 | host_os=$* |
| 1897 | IFS=$ac_save_IFS |
| 1898 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1899 | |
| 1900 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1901 | { echo "$as_me:$LINENO: checking target system type" >&5 |
| 1902 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1903 | if test "${ac_cv_target+set}" = set; then |
| 1904 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1905 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1906 | if test "x$target_alias" = x; then |
| 1907 | ac_cv_target=$ac_cv_host |
| 1908 | else |
| 1909 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
| 1910 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
| 1911 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1912 | { (exit 1); exit 1; }; } |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1913 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1914 | |
| 1915 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1916 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 1917 | echo "${ECHO_T}$ac_cv_target" >&6; } |
| 1918 | case $ac_cv_target in |
| 1919 | *-*-*) ;; |
| 1920 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
| 1921 | echo "$as_me: error: invalid value of canonical target" >&2;} |
| 1922 | { (exit 1); exit 1; }; };; |
| 1923 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1924 | target=$ac_cv_target |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1925 | ac_save_IFS=$IFS; IFS='-' |
| 1926 | set x $ac_cv_target |
| 1927 | shift |
| 1928 | target_cpu=$1 |
| 1929 | target_vendor=$2 |
| 1930 | shift; shift |
| 1931 | # Remember, the first character of IFS is used to create $*, |
| 1932 | # except with old shells: |
| 1933 | target_os=$* |
| 1934 | IFS=$ac_save_IFS |
| 1935 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1936 | |
| 1937 | |
| 1938 | # The aliases save the names the user supplied, while $host etc. |
| 1939 | # will get canonicalized. |
| 1940 | test -n "$target_alias" && |
| 1941 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 1942 | NONENONEs,x,x, && |
| 1943 | program_prefix=${target_alias}- |
| 1944 | |
Lev Walkin | c46b7cb | 2006-08-18 02:27:55 +0000 | [diff] [blame] | 1945 | am__api_version="1.9" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1946 | # Find a good install program. We prefer a C program (faster), |
| 1947 | # so one script is as good as another. But avoid the broken or |
| 1948 | # incompatible versions: |
| 1949 | # SysV /etc/install, /usr/sbin/install |
| 1950 | # SunOS /usr/etc/install |
| 1951 | # IRIX /sbin/install |
| 1952 | # AIX /bin/install |
| 1953 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 1954 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 1955 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1956 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1957 | # OS/2's system install, which has a completely different semantic |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1958 | # ./install, which can be erroneously created by make from ./install.sh. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1959 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 1960 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1961 | if test -z "$INSTALL"; then |
| 1962 | if test "${ac_cv_path_install+set}" = set; then |
| 1963 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1964 | else |
| 1965 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1966 | for as_dir in $PATH |
| 1967 | do |
| 1968 | IFS=$as_save_IFS |
| 1969 | test -z "$as_dir" && as_dir=. |
| 1970 | # Account for people who put trailing slashes in PATH elements. |
| 1971 | case $as_dir/ in |
| 1972 | ./ | .// | /cC/* | \ |
| 1973 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1974 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1975 | /usr/ucb/* ) ;; |
| 1976 | *) |
| 1977 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 1978 | # Don't use installbsd from OSF since it installs stuff as root |
| 1979 | # by default. |
| 1980 | for ac_prog in ginstall scoinst install; do |
| 1981 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1982 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1983 | if test $ac_prog = install && |
| 1984 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1985 | # AIX install. It has an incompatible calling convention. |
| 1986 | : |
| 1987 | elif test $ac_prog = install && |
| 1988 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1989 | # program-specific install script used by HP pwplus--don't use. |
| 1990 | : |
| 1991 | else |
| 1992 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 1993 | break 3 |
| 1994 | fi |
| 1995 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1996 | done |
| 1997 | done |
| 1998 | ;; |
| 1999 | esac |
| 2000 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2001 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2002 | |
| 2003 | |
| 2004 | fi |
| 2005 | if test "${ac_cv_path_install+set}" = set; then |
| 2006 | INSTALL=$ac_cv_path_install |
| 2007 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2008 | # As a last resort, use the slow shell script. Don't cache a |
| 2009 | # value for INSTALL within a source directory, because that will |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2010 | # break other packages using the cache if that directory is |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2011 | # removed, or if the value is a relative name. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2012 | INSTALL=$ac_install_sh |
| 2013 | fi |
| 2014 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2015 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 2016 | echo "${ECHO_T}$INSTALL" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2017 | |
| 2018 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2019 | # It thinks the first close brace ends the variable substitution. |
| 2020 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2021 | |
| 2022 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 2023 | |
| 2024 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2025 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2026 | { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
| 2027 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2028 | # Just in case |
| 2029 | sleep 1 |
| 2030 | echo timestamp > conftest.file |
| 2031 | # Do `set' in a subshell so we don't clobber the current shell's |
| 2032 | # arguments. Must try -L first in case configure is actually a |
| 2033 | # symlink; some systems play weird games with the mod time of symlinks |
| 2034 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 2035 | # directory). |
| 2036 | if ( |
| 2037 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
| 2038 | if test "$*" = "X"; then |
| 2039 | # -L didn't work. |
| 2040 | set X `ls -t $srcdir/configure conftest.file` |
| 2041 | fi |
| 2042 | rm -f conftest.file |
| 2043 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 2044 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 2045 | |
| 2046 | # If neither matched, then we have a broken ls. This can happen |
| 2047 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 2048 | # broken ls alias from the environment. This has actually |
| 2049 | # happened. Such a system could not be considered "sane". |
| 2050 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
| 2051 | alias in your environment" >&5 |
| 2052 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
| 2053 | alias in your environment" >&2;} |
| 2054 | { (exit 1); exit 1; }; } |
| 2055 | fi |
| 2056 | |
| 2057 | test "$2" = conftest.file |
| 2058 | ) |
| 2059 | then |
| 2060 | # Ok. |
| 2061 | : |
| 2062 | else |
| 2063 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
| 2064 | Check your system clock" >&5 |
| 2065 | echo "$as_me: error: newly created file is older than distributed files! |
| 2066 | Check your system clock" >&2;} |
| 2067 | { (exit 1); exit 1; }; } |
| 2068 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2069 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2070 | echo "${ECHO_T}yes" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2071 | test "$program_prefix" != NONE && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2072 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2073 | # Use a double $ so make ignores it. |
| 2074 | test "$program_suffix" != NONE && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2075 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2076 | # Double any \ or $. echo might interpret backslashes. |
| 2077 | # By default was `s,x,x', remove it if useless. |
| 2078 | cat <<\_ACEOF >conftest.sed |
| 2079 | s/[\\$]/&&/g;s/;s,x,x,$// |
| 2080 | _ACEOF |
| 2081 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2082 | rm -f conftest.sed |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2083 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2084 | # expand $ac_aux_dir to an absolute path |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2085 | am_aux_dir=`cd $ac_aux_dir && pwd` |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2086 | |
| 2087 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
| 2088 | # Use eval to expand $SHELL |
| 2089 | if eval "$MISSING --run true"; then |
| 2090 | am_missing_run="$MISSING --run " |
| 2091 | else |
| 2092 | am_missing_run= |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2093 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
| 2094 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
| 2095 | fi |
| 2096 | |
| 2097 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
Lev Walkin | c46b7cb | 2006-08-18 02:27:55 +0000 | [diff] [blame] | 2098 | # We used to keeping the `.' as first argument, in order to |
| 2099 | # allow $(mkdir_p) to be used without argument. As in |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2100 | # $(mkdir_p) $(somedir) |
Lev Walkin | c46b7cb | 2006-08-18 02:27:55 +0000 | [diff] [blame] | 2101 | # where $(somedir) is conditionally defined. However this is wrong |
| 2102 | # for two reasons: |
| 2103 | # 1. if the package is installed by a user who cannot write `.' |
| 2104 | # make install will fail, |
| 2105 | # 2. the above comment should most certainly read |
| 2106 | # $(mkdir_p) $(DESTDIR)$(somedir) |
| 2107 | # so it does not work when $(somedir) is undefined and |
| 2108 | # $(DESTDIR) is not. |
| 2109 | # To support the latter case, we have to write |
| 2110 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), |
| 2111 | # so the `.' trick is pointless. |
| 2112 | mkdir_p='mkdir -p --' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2113 | else |
| 2114 | # On NextStep and OpenStep, the `mkdir' command does not |
| 2115 | # recognize any option. It will interpret all options as |
| 2116 | # directories to create, and then abort because `.' already |
| 2117 | # exists. |
| 2118 | for d in ./-p ./--version; |
| 2119 | do |
| 2120 | test -d $d && rmdir $d |
| 2121 | done |
| 2122 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
| 2123 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
| 2124 | mkdir_p='$(mkinstalldirs)' |
| 2125 | else |
| 2126 | mkdir_p='$(install_sh) -d' |
| 2127 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2128 | fi |
| 2129 | |
| 2130 | for ac_prog in gawk mawk nawk awk |
| 2131 | do |
| 2132 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2133 | set dummy $ac_prog; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2134 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2135 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2136 | if test "${ac_cv_prog_AWK+set}" = set; then |
| 2137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2138 | else |
| 2139 | if test -n "$AWK"; then |
| 2140 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 2141 | else |
| 2142 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2143 | for as_dir in $PATH |
| 2144 | do |
| 2145 | IFS=$as_save_IFS |
| 2146 | test -z "$as_dir" && as_dir=. |
| 2147 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2148 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2149 | ac_cv_prog_AWK="$ac_prog" |
| 2150 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2151 | break 2 |
| 2152 | fi |
| 2153 | done |
| 2154 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2155 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2156 | |
| 2157 | fi |
| 2158 | fi |
| 2159 | AWK=$ac_cv_prog_AWK |
| 2160 | if test -n "$AWK"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2161 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
| 2162 | echo "${ECHO_T}$AWK" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2163 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2164 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2165 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2166 | fi |
| 2167 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2168 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2169 | test -n "$AWK" && break |
| 2170 | done |
| 2171 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2172 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 2173 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
| 2174 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 2175 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2177 | else |
| 2178 | cat >conftest.make <<\_ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2179 | SHELL = /bin/sh |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2180 | all: |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2181 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2182 | _ACEOF |
| 2183 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2184 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 2185 | *@@@%%%=?*=@@@%%%*) |
| 2186 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 2187 | *) |
| 2188 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 2189 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2190 | rm -f conftest.make |
| 2191 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2192 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 2193 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2194 | echo "${ECHO_T}yes" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2195 | SET_MAKE= |
| 2196 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2197 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2198 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2199 | SET_MAKE="MAKE=${MAKE-make}" |
| 2200 | fi |
| 2201 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2202 | rm -rf .tst 2>/dev/null |
| 2203 | mkdir .tst 2>/dev/null |
| 2204 | if test -d .tst; then |
| 2205 | am__leading_dot=. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2206 | else |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2207 | am__leading_dot=_ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2208 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2209 | rmdir .tst 2>/dev/null |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2210 | |
| 2211 | # test to see if srcdir already configured |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2212 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2213 | test -f $srcdir/config.status; then |
| 2214 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
| 2215 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
| 2216 | { (exit 1); exit 1; }; } |
| 2217 | fi |
| 2218 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2219 | # test whether we have cygpath |
| 2220 | if test -z "$CYGPATH_W"; then |
| 2221 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 2222 | CYGPATH_W='cygpath -w' |
| 2223 | else |
| 2224 | CYGPATH_W=echo |
| 2225 | fi |
| 2226 | fi |
| 2227 | |
| 2228 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2229 | # Define the identity of the package. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2230 | PACKAGE=asn1c |
Lev Walkin | e73dc67 | 2006-10-09 12:29:34 +0000 | [diff] [blame] | 2231 | VERSION=0.9.22 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2232 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2233 | |
| 2234 | cat >>confdefs.h <<_ACEOF |
| 2235 | #define PACKAGE "$PACKAGE" |
| 2236 | _ACEOF |
| 2237 | |
| 2238 | |
| 2239 | cat >>confdefs.h <<_ACEOF |
| 2240 | #define VERSION "$VERSION" |
| 2241 | _ACEOF |
| 2242 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2243 | # Some tools Automake needs. |
| 2244 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2245 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2246 | |
| 2247 | |
| 2248 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 2249 | |
| 2250 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2251 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2252 | |
| 2253 | |
| 2254 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 2255 | |
| 2256 | |
| 2257 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 2258 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2259 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
| 2260 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2261 | # Installed binaries are usually stripped using `strip' when the user |
| 2262 | # run `make install-strip'. However `strip' might not be the right |
| 2263 | # tool to use in cross-compilation environments, therefore Automake |
| 2264 | # will honor the `STRIP' environment variable to overrule this program. |
| 2265 | if test "$cross_compiling" != no; then |
| 2266 | if test -n "$ac_tool_prefix"; then |
| 2267 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 2268 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2269 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2270 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2271 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 2272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2273 | else |
| 2274 | if test -n "$STRIP"; then |
| 2275 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2276 | else |
| 2277 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2278 | for as_dir in $PATH |
| 2279 | do |
| 2280 | IFS=$as_save_IFS |
| 2281 | test -z "$as_dir" && as_dir=. |
| 2282 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2283 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2284 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 2285 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2286 | break 2 |
| 2287 | fi |
| 2288 | done |
| 2289 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2290 | IFS=$as_save_IFS |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2291 | |
| 2292 | fi |
| 2293 | fi |
| 2294 | STRIP=$ac_cv_prog_STRIP |
| 2295 | if test -n "$STRIP"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2296 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 2297 | echo "${ECHO_T}$STRIP" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2298 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2299 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2300 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2301 | fi |
| 2302 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2303 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2304 | fi |
| 2305 | if test -z "$ac_cv_prog_STRIP"; then |
| 2306 | ac_ct_STRIP=$STRIP |
| 2307 | # Extract the first word of "strip", so it can be a program name with args. |
| 2308 | set dummy strip; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2309 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2310 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2311 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 2312 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2313 | else |
| 2314 | if test -n "$ac_ct_STRIP"; then |
| 2315 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 2316 | else |
| 2317 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2318 | for as_dir in $PATH |
| 2319 | do |
| 2320 | IFS=$as_save_IFS |
| 2321 | test -z "$as_dir" && as_dir=. |
| 2322 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2323 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2324 | ac_cv_prog_ac_ct_STRIP="strip" |
| 2325 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2326 | break 2 |
| 2327 | fi |
| 2328 | done |
| 2329 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2330 | IFS=$as_save_IFS |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2331 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2332 | fi |
| 2333 | fi |
| 2334 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 2335 | if test -n "$ac_ct_STRIP"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2336 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 2337 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2338 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2339 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2340 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2341 | fi |
| 2342 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2343 | if test "x$ac_ct_STRIP" = x; then |
| 2344 | STRIP=":" |
| 2345 | else |
| 2346 | case $cross_compiling:$ac_tool_warned in |
| 2347 | yes:) |
| 2348 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2349 | whose name does not start with the host triplet. If you think this |
| 2350 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2351 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2352 | whose name does not start with the host triplet. If you think this |
| 2353 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2354 | ac_tool_warned=yes ;; |
| 2355 | esac |
| 2356 | STRIP=$ac_ct_STRIP |
| 2357 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2358 | else |
| 2359 | STRIP="$ac_cv_prog_STRIP" |
| 2360 | fi |
| 2361 | |
| 2362 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2363 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
| 2364 | |
| 2365 | # We need awk for the "check" target. The system "awk" is bad on |
| 2366 | # some platforms. |
Lev Walkin | c46b7cb | 2006-08-18 02:27:55 +0000 | [diff] [blame] | 2367 | # Always define AMTAR for backward compatibility. |
| 2368 | |
| 2369 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 2370 | |
| 2371 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
| 2372 | |
| 2373 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2374 | |
| 2375 | |
| 2376 | |
| 2377 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2378 | { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 2379 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } |
| 2380 | # Check whether --enable-maintainer-mode was given. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2381 | if test "${enable_maintainer_mode+set}" = set; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2382 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2383 | else |
| 2384 | USE_MAINTAINER_MODE=no |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2385 | fi |
| 2386 | |
| 2387 | { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 |
| 2388 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2389 | |
| 2390 | |
| 2391 | if test $USE_MAINTAINER_MODE = yes; then |
| 2392 | MAINTAINER_MODE_TRUE= |
| 2393 | MAINTAINER_MODE_FALSE='#' |
| 2394 | else |
| 2395 | MAINTAINER_MODE_TRUE='#' |
| 2396 | MAINTAINER_MODE_FALSE= |
| 2397 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2398 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2399 | MAINT=$MAINTAINER_MODE_TRUE |
| 2400 | |
| 2401 | |
| 2402 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 2403 | case `pwd` in |
| 2404 | *\ * | *\ *) |
| 2405 | { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
| 2406 | echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
| 2407 | esac |
| 2408 | |
| 2409 | |
| 2410 | |
| 2411 | macro_version='2.4' |
| 2412 | macro_revision='1.3293' |
| 2413 | |
| 2414 | |
| 2415 | |
| 2416 | |
| 2417 | |
| 2418 | |
| 2419 | |
| 2420 | |
| 2421 | |
| 2422 | |
| 2423 | |
| 2424 | |
| 2425 | |
| 2426 | ltmain="$ac_aux_dir/ltmain.sh" |
| 2427 | |
| 2428 | # Backslashify metacharacters that are still active within |
| 2429 | # double-quoted strings. |
| 2430 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
| 2431 | |
| 2432 | # Same as above, but do not quote variable references. |
| 2433 | double_quote_subst='s/\(["`\\]\)/\\\1/g' |
| 2434 | |
| 2435 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 2436 | # double_quote_subst'ed string. |
| 2437 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 2438 | |
| 2439 | # Sed substitution to delay expansion of an escaped single quote. |
| 2440 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
| 2441 | |
| 2442 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 2443 | no_glob_subst='s/\*/\\\*/g' |
| 2444 | |
| 2445 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 2446 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
| 2447 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
| 2448 | |
| 2449 | { echo "$as_me:$LINENO: checking how to print strings" >&5 |
| 2450 | echo $ECHO_N "checking how to print strings... $ECHO_C" >&6; } |
| 2451 | # Test print first, because it will be a builtin if present. |
| 2452 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ |
| 2453 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 2454 | ECHO='print -r --' |
| 2455 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 2456 | ECHO='printf %s\n' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2457 | else |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 2458 | # Use this function as a fallback that always works. |
| 2459 | func_fallback_echo () |
| 2460 | { |
| 2461 | eval 'cat <<_LTECHO_EOF |
| 2462 | $1 |
| 2463 | _LTECHO_EOF' |
| 2464 | } |
| 2465 | ECHO='func_fallback_echo' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2466 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2467 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 2468 | # func_echo_all arg... |
| 2469 | # Invoke $ECHO with all args, space-separated. |
| 2470 | func_echo_all () |
| 2471 | { |
| 2472 | $ECHO "" |
| 2473 | } |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2474 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 2475 | case "$ECHO" in |
| 2476 | printf*) { echo "$as_me:$LINENO: result: printf" >&5 |
| 2477 | echo "${ECHO_T}printf" >&6; } ;; |
| 2478 | print*) { echo "$as_me:$LINENO: result: print -r" >&5 |
| 2479 | echo "${ECHO_T}print -r" >&6; } ;; |
| 2480 | *) { echo "$as_me:$LINENO: result: cat" >&5 |
| 2481 | echo "${ECHO_T}cat" >&6; } ;; |
| 2482 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2483 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2484 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 2485 | |
| 2486 | |
| 2487 | |
| 2488 | |
| 2489 | |
| 2490 | |
| 2491 | |
| 2492 | |
| 2493 | |
| 2494 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2495 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2496 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2497 | DEPDIR="${am__leading_dot}deps" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2498 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2499 | ac_config_commands="$ac_config_commands depfiles" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2500 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2501 | |
| 2502 | am_make=${MAKE-make} |
| 2503 | cat > confinc << 'END' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2504 | am__doit: |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2505 | @echo done |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2506 | .PHONY: am__doit |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2507 | END |
| 2508 | # If we don't find an include directive, just comment out the code. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2509 | { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
| 2510 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2511 | am__include="#" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2512 | am__quote= |
| 2513 | _am_result=none |
| 2514 | # First try GNU make style include. |
| 2515 | echo "include confinc" > confmf |
| 2516 | # We grep out `Entering directory' and `Leaving directory' |
| 2517 | # messages which can occur if `w' ends up in MAKEFLAGS. |
| 2518 | # In particular we don't look at `^make:' because GNU make might |
| 2519 | # be invoked under some other name (usually "gmake"), in which |
| 2520 | # case it prints its new name instead of `make'. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2521 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2522 | am__include=include |
| 2523 | am__quote= |
| 2524 | _am_result=GNU |
| 2525 | fi |
| 2526 | # Now try BSD make style include. |
| 2527 | if test "$am__include" = "#"; then |
| 2528 | echo '.include "confinc"' > confmf |
| 2529 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
| 2530 | am__include=.include |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2531 | am__quote="\"" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2532 | _am_result=BSD |
| 2533 | fi |
| 2534 | fi |
| 2535 | |
| 2536 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2537 | { echo "$as_me:$LINENO: result: $_am_result" >&5 |
| 2538 | echo "${ECHO_T}$_am_result" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2539 | rm -f confinc confmf |
| 2540 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2541 | # Check whether --enable-dependency-tracking was given. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2542 | if test "${enable_dependency_tracking+set}" = set; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2543 | enableval=$enable_dependency_tracking; |
| 2544 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2545 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2546 | if test "x$enable_dependency_tracking" != xno; then |
| 2547 | am_depcomp="$ac_aux_dir/depcomp" |
| 2548 | AMDEPBACKSLASH='\' |
| 2549 | fi |
| 2550 | |
| 2551 | |
| 2552 | if test "x$enable_dependency_tracking" != xno; then |
| 2553 | AMDEP_TRUE= |
| 2554 | AMDEP_FALSE='#' |
| 2555 | else |
| 2556 | AMDEP_TRUE='#' |
| 2557 | AMDEP_FALSE= |
| 2558 | fi |
| 2559 | |
| 2560 | |
| 2561 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2562 | ac_ext=c |
| 2563 | ac_cpp='$CPP $CPPFLAGS' |
| 2564 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2565 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2566 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2567 | if test -n "$ac_tool_prefix"; then |
| 2568 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2569 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2570 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2571 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2572 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2574 | else |
| 2575 | if test -n "$CC"; then |
| 2576 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2577 | else |
| 2578 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2579 | for as_dir in $PATH |
| 2580 | do |
| 2581 | IFS=$as_save_IFS |
| 2582 | test -z "$as_dir" && as_dir=. |
| 2583 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2584 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2585 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2586 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2587 | break 2 |
| 2588 | fi |
| 2589 | done |
| 2590 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2591 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2592 | |
| 2593 | fi |
| 2594 | fi |
| 2595 | CC=$ac_cv_prog_CC |
| 2596 | if test -n "$CC"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2597 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2598 | echo "${ECHO_T}$CC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2599 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2600 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2601 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2602 | fi |
| 2603 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2604 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2605 | fi |
| 2606 | if test -z "$ac_cv_prog_CC"; then |
| 2607 | ac_ct_CC=$CC |
| 2608 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2609 | set dummy gcc; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2610 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2611 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2612 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2614 | else |
| 2615 | if test -n "$ac_ct_CC"; then |
| 2616 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2617 | else |
| 2618 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2619 | for as_dir in $PATH |
| 2620 | do |
| 2621 | IFS=$as_save_IFS |
| 2622 | test -z "$as_dir" && as_dir=. |
| 2623 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2624 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2625 | ac_cv_prog_ac_ct_CC="gcc" |
| 2626 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2627 | break 2 |
| 2628 | fi |
| 2629 | done |
| 2630 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2631 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2632 | |
| 2633 | fi |
| 2634 | fi |
| 2635 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2636 | if test -n "$ac_ct_CC"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2637 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2638 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2639 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2640 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2641 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2642 | fi |
| 2643 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2644 | if test "x$ac_ct_CC" = x; then |
| 2645 | CC="" |
| 2646 | else |
| 2647 | case $cross_compiling:$ac_tool_warned in |
| 2648 | yes:) |
| 2649 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2650 | whose name does not start with the host triplet. If you think this |
| 2651 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2652 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2653 | whose name does not start with the host triplet. If you think this |
| 2654 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2655 | ac_tool_warned=yes ;; |
| 2656 | esac |
| 2657 | CC=$ac_ct_CC |
| 2658 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2659 | else |
| 2660 | CC="$ac_cv_prog_CC" |
| 2661 | fi |
| 2662 | |
| 2663 | if test -z "$CC"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2664 | if test -n "$ac_tool_prefix"; then |
| 2665 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2666 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2667 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2668 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2669 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2671 | else |
| 2672 | if test -n "$CC"; then |
| 2673 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2674 | else |
| 2675 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2676 | for as_dir in $PATH |
| 2677 | do |
| 2678 | IFS=$as_save_IFS |
| 2679 | test -z "$as_dir" && as_dir=. |
| 2680 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2681 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2682 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2683 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2684 | break 2 |
| 2685 | fi |
| 2686 | done |
| 2687 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2688 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2689 | |
| 2690 | fi |
| 2691 | fi |
| 2692 | CC=$ac_cv_prog_CC |
| 2693 | if test -n "$CC"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2694 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2695 | echo "${ECHO_T}$CC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2696 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2697 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2698 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2699 | fi |
| 2700 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2701 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2702 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2703 | fi |
| 2704 | if test -z "$CC"; then |
| 2705 | # Extract the first word of "cc", so it can be a program name with args. |
| 2706 | set dummy cc; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2707 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2708 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2709 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2710 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2711 | else |
| 2712 | if test -n "$CC"; then |
| 2713 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2714 | else |
| 2715 | ac_prog_rejected=no |
| 2716 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2717 | for as_dir in $PATH |
| 2718 | do |
| 2719 | IFS=$as_save_IFS |
| 2720 | test -z "$as_dir" && as_dir=. |
| 2721 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2722 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2723 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2724 | ac_prog_rejected=yes |
| 2725 | continue |
| 2726 | fi |
| 2727 | ac_cv_prog_CC="cc" |
| 2728 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2729 | break 2 |
| 2730 | fi |
| 2731 | done |
| 2732 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2733 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2734 | |
| 2735 | if test $ac_prog_rejected = yes; then |
| 2736 | # We found a bogon in the path, so make sure we never use it. |
| 2737 | set dummy $ac_cv_prog_CC |
| 2738 | shift |
| 2739 | if test $# != 0; then |
| 2740 | # We chose a different compiler from the bogus one. |
| 2741 | # However, it has the same basename, so the bogon will be chosen |
| 2742 | # first if we set CC to just the basename; use the full file name. |
| 2743 | shift |
| 2744 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2745 | fi |
| 2746 | fi |
| 2747 | fi |
| 2748 | fi |
| 2749 | CC=$ac_cv_prog_CC |
| 2750 | if test -n "$CC"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2751 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2752 | echo "${ECHO_T}$CC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2753 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2754 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2755 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2756 | fi |
| 2757 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2758 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2759 | fi |
| 2760 | if test -z "$CC"; then |
| 2761 | if test -n "$ac_tool_prefix"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2762 | for ac_prog in cl.exe |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2763 | do |
| 2764 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2765 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2766 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2767 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2768 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2770 | else |
| 2771 | if test -n "$CC"; then |
| 2772 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2773 | else |
| 2774 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2775 | for as_dir in $PATH |
| 2776 | do |
| 2777 | IFS=$as_save_IFS |
| 2778 | test -z "$as_dir" && as_dir=. |
| 2779 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2780 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2781 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2782 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2783 | break 2 |
| 2784 | fi |
| 2785 | done |
| 2786 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2787 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2788 | |
| 2789 | fi |
| 2790 | fi |
| 2791 | CC=$ac_cv_prog_CC |
| 2792 | if test -n "$CC"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2793 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2794 | echo "${ECHO_T}$CC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2795 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2796 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2797 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2798 | fi |
| 2799 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2800 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2801 | test -n "$CC" && break |
| 2802 | done |
| 2803 | fi |
| 2804 | if test -z "$CC"; then |
| 2805 | ac_ct_CC=$CC |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2806 | for ac_prog in cl.exe |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2807 | do |
| 2808 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2809 | set dummy $ac_prog; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2810 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2811 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2812 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2813 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2814 | else |
| 2815 | if test -n "$ac_ct_CC"; then |
| 2816 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2817 | else |
| 2818 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2819 | for as_dir in $PATH |
| 2820 | do |
| 2821 | IFS=$as_save_IFS |
| 2822 | test -z "$as_dir" && as_dir=. |
| 2823 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2824 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2825 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2826 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2827 | break 2 |
| 2828 | fi |
| 2829 | done |
| 2830 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2831 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2832 | |
| 2833 | fi |
| 2834 | fi |
| 2835 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2836 | if test -n "$ac_ct_CC"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2837 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2838 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2839 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2840 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2841 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2842 | fi |
| 2843 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2844 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2845 | test -n "$ac_ct_CC" && break |
| 2846 | done |
| 2847 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2848 | if test "x$ac_ct_CC" = x; then |
| 2849 | CC="" |
| 2850 | else |
| 2851 | case $cross_compiling:$ac_tool_warned in |
| 2852 | yes:) |
| 2853 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2854 | whose name does not start with the host triplet. If you think this |
| 2855 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2856 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2857 | whose name does not start with the host triplet. If you think this |
| 2858 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2859 | ac_tool_warned=yes ;; |
| 2860 | esac |
| 2861 | CC=$ac_ct_CC |
| 2862 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2863 | fi |
| 2864 | |
| 2865 | fi |
| 2866 | |
| 2867 | |
| 2868 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2869 | See \`config.log' for more details." >&5 |
| 2870 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2871 | See \`config.log' for more details." >&2;} |
| 2872 | { (exit 1); exit 1; }; } |
| 2873 | |
| 2874 | # Provide some information about the compiler. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2875 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2876 | ac_compiler=`set X $ac_compile; echo $2` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2877 | { (ac_try="$ac_compiler --version >&5" |
| 2878 | case "(($ac_try" in |
| 2879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2880 | *) ac_try_echo=$ac_try;; |
| 2881 | esac |
| 2882 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2883 | (eval "$ac_compiler --version >&5") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2884 | ac_status=$? |
| 2885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2886 | (exit $ac_status); } |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2887 | { (ac_try="$ac_compiler -v >&5" |
| 2888 | case "(($ac_try" in |
| 2889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2890 | *) ac_try_echo=$ac_try;; |
| 2891 | esac |
| 2892 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2893 | (eval "$ac_compiler -v >&5") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2894 | ac_status=$? |
| 2895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2896 | (exit $ac_status); } |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2897 | { (ac_try="$ac_compiler -V >&5" |
| 2898 | case "(($ac_try" in |
| 2899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2900 | *) ac_try_echo=$ac_try;; |
| 2901 | esac |
| 2902 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2903 | (eval "$ac_compiler -V >&5") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2904 | ac_status=$? |
| 2905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2906 | (exit $ac_status); } |
| 2907 | |
| 2908 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2909 | /* confdefs.h. */ |
| 2910 | _ACEOF |
| 2911 | cat confdefs.h >>conftest.$ac_ext |
| 2912 | cat >>conftest.$ac_ext <<_ACEOF |
| 2913 | /* end confdefs.h. */ |
| 2914 | |
| 2915 | int |
| 2916 | main () |
| 2917 | { |
| 2918 | |
| 2919 | ; |
| 2920 | return 0; |
| 2921 | } |
| 2922 | _ACEOF |
| 2923 | ac_clean_files_save=$ac_clean_files |
| 2924 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 2925 | # Try to create an executable without -o first, disregard a.out. |
| 2926 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2927 | # of exeext. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2928 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2929 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2930 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2931 | # |
| 2932 | # List of possible output files, starting from the most likely. |
| 2933 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2934 | # only as a last resort. b.out is created by i960 compilers. |
| 2935 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2936 | # |
| 2937 | # The IRIX 6 linker writes into existing files which may not be |
| 2938 | # executable, retaining their permissions. Remove them first so a |
| 2939 | # subsequent execution test works. |
| 2940 | ac_rmfiles= |
| 2941 | for ac_file in $ac_files |
| 2942 | do |
| 2943 | case $ac_file in |
| 2944 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2945 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2946 | esac |
| 2947 | done |
| 2948 | rm -f $ac_rmfiles |
| 2949 | |
| 2950 | if { (ac_try="$ac_link_default" |
| 2951 | case "(($ac_try" in |
| 2952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2953 | *) ac_try_echo=$ac_try;; |
| 2954 | esac |
| 2955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2956 | (eval "$ac_link_default") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2957 | ac_status=$? |
| 2958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2959 | (exit $ac_status); }; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2960 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2961 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2962 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2963 | # so that the user can short-circuit this test for compilers unknown to |
| 2964 | # Autoconf. |
| 2965 | for ac_file in $ac_files |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2966 | do |
| 2967 | test -f "$ac_file" || continue |
| 2968 | case $ac_file in |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2969 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2970 | ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2971 | [ab].out ) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2972 | # We found the default executable, but exeext='' is most |
| 2973 | # certainly right. |
| 2974 | break;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2975 | *.* ) |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2976 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2977 | then :; else |
| 2978 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2979 | fi |
| 2980 | # We set ac_cv_exeext here because the later test for it is not |
| 2981 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2982 | # argument, so we may need to know it at that point already. |
| 2983 | # Even if this section looks crufty: it has the advantage of |
| 2984 | # actually working. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2985 | break;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2986 | * ) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2987 | break;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2988 | esac |
| 2989 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2990 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2991 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2992 | else |
| 2993 | echo "$as_me: failed program was:" >&5 |
| 2994 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2995 | |
| 2996 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2997 | See \`config.log' for more details." >&5 |
| 2998 | echo "$as_me: error: C compiler cannot create executables |
| 2999 | See \`config.log' for more details." >&2;} |
| 3000 | { (exit 77); exit 77; }; } |
| 3001 | fi |
| 3002 | |
| 3003 | ac_exeext=$ac_cv_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3004 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 3005 | echo "${ECHO_T}$ac_file" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3006 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3007 | # Check that the compiler produces executables we can run. If not, either |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3008 | # the compiler is broken, or we cross compile. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3009 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 3010 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3011 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 3012 | # If not cross compiling, check that we can run a simple program. |
| 3013 | if test "$cross_compiling" != yes; then |
| 3014 | if { ac_try='./$ac_file' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3015 | { (case "(($ac_try" in |
| 3016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3017 | *) ac_try_echo=$ac_try;; |
| 3018 | esac |
| 3019 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3020 | (eval "$ac_try") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3021 | ac_status=$? |
| 3022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3023 | (exit $ac_status); }; }; then |
| 3024 | cross_compiling=no |
| 3025 | else |
| 3026 | if test "$cross_compiling" = maybe; then |
| 3027 | cross_compiling=yes |
| 3028 | else |
| 3029 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 3030 | If you meant to cross compile, use \`--host'. |
| 3031 | See \`config.log' for more details." >&5 |
| 3032 | echo "$as_me: error: cannot run C compiled programs. |
| 3033 | If you meant to cross compile, use \`--host'. |
| 3034 | See \`config.log' for more details." >&2;} |
| 3035 | { (exit 1); exit 1; }; } |
| 3036 | fi |
| 3037 | fi |
| 3038 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3039 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 3040 | echo "${ECHO_T}yes" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3041 | |
| 3042 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 3043 | ac_clean_files=$ac_clean_files_save |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3044 | # Check that the compiler produces executables we can run. If not, either |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3045 | # the compiler is broken, or we cross compile. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3046 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 3047 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 3048 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 3049 | echo "${ECHO_T}$cross_compiling" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3050 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3051 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 3052 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 3053 | if { (ac_try="$ac_link" |
| 3054 | case "(($ac_try" in |
| 3055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3056 | *) ac_try_echo=$ac_try;; |
| 3057 | esac |
| 3058 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3059 | (eval "$ac_link") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3060 | ac_status=$? |
| 3061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3062 | (exit $ac_status); }; then |
| 3063 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3064 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3065 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3066 | # `rm'. |
| 3067 | for ac_file in conftest.exe conftest conftest.*; do |
| 3068 | test -f "$ac_file" || continue |
| 3069 | case $ac_file in |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3070 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3071 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3072 | break;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3073 | * ) break;; |
| 3074 | esac |
| 3075 | done |
| 3076 | else |
| 3077 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 3078 | See \`config.log' for more details." >&5 |
| 3079 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 3080 | See \`config.log' for more details." >&2;} |
| 3081 | { (exit 1); exit 1; }; } |
| 3082 | fi |
| 3083 | |
| 3084 | rm -f conftest$ac_cv_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3085 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 3086 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3087 | |
| 3088 | rm -f conftest.$ac_ext |
| 3089 | EXEEXT=$ac_cv_exeext |
| 3090 | ac_exeext=$EXEEXT |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3091 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 3092 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3093 | if test "${ac_cv_objext+set}" = set; then |
| 3094 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3095 | else |
| 3096 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3097 | /* confdefs.h. */ |
| 3098 | _ACEOF |
| 3099 | cat confdefs.h >>conftest.$ac_ext |
| 3100 | cat >>conftest.$ac_ext <<_ACEOF |
| 3101 | /* end confdefs.h. */ |
| 3102 | |
| 3103 | int |
| 3104 | main () |
| 3105 | { |
| 3106 | |
| 3107 | ; |
| 3108 | return 0; |
| 3109 | } |
| 3110 | _ACEOF |
| 3111 | rm -f conftest.o conftest.obj |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3112 | if { (ac_try="$ac_compile" |
| 3113 | case "(($ac_try" in |
| 3114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3115 | *) ac_try_echo=$ac_try;; |
| 3116 | esac |
| 3117 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3118 | (eval "$ac_compile") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3119 | ac_status=$? |
| 3120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3121 | (exit $ac_status); }; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3122 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3123 | test -f "$ac_file" || continue; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3124 | case $ac_file in |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3125 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3126 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3127 | break;; |
| 3128 | esac |
| 3129 | done |
| 3130 | else |
| 3131 | echo "$as_me: failed program was:" >&5 |
| 3132 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3133 | |
| 3134 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 3135 | See \`config.log' for more details." >&5 |
| 3136 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 3137 | See \`config.log' for more details." >&2;} |
| 3138 | { (exit 1); exit 1; }; } |
| 3139 | fi |
| 3140 | |
| 3141 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3142 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3143 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 3144 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3145 | OBJEXT=$ac_cv_objext |
| 3146 | ac_objext=$OBJEXT |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3147 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 3148 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3149 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 3150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3151 | else |
| 3152 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3153 | /* confdefs.h. */ |
| 3154 | _ACEOF |
| 3155 | cat confdefs.h >>conftest.$ac_ext |
| 3156 | cat >>conftest.$ac_ext <<_ACEOF |
| 3157 | /* end confdefs.h. */ |
| 3158 | |
| 3159 | int |
| 3160 | main () |
| 3161 | { |
| 3162 | #ifndef __GNUC__ |
| 3163 | choke me |
| 3164 | #endif |
| 3165 | |
| 3166 | ; |
| 3167 | return 0; |
| 3168 | } |
| 3169 | _ACEOF |
| 3170 | rm -f conftest.$ac_objext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3171 | if { (ac_try="$ac_compile" |
| 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_compile") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3178 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3179 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3180 | rm -f conftest.er1 |
| 3181 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3183 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3184 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3185 | { (case "(($ac_try" in |
| 3186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3187 | *) ac_try_echo=$ac_try;; |
| 3188 | esac |
| 3189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3190 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3191 | ac_status=$? |
| 3192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3193 | (exit $ac_status); }; } && |
| 3194 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3195 | { (case "(($ac_try" in |
| 3196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3197 | *) ac_try_echo=$ac_try;; |
| 3198 | esac |
| 3199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3200 | (eval "$ac_try") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3201 | ac_status=$? |
| 3202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3203 | (exit $ac_status); }; }; then |
| 3204 | ac_compiler_gnu=yes |
| 3205 | else |
| 3206 | echo "$as_me: failed program was:" >&5 |
| 3207 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3208 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3209 | ac_compiler_gnu=no |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3210 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3211 | |
| 3212 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3213 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3214 | |
| 3215 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3216 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3217 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3218 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 3219 | ac_test_CFLAGS=${CFLAGS+set} |
| 3220 | ac_save_CFLAGS=$CFLAGS |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3221 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3222 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3223 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 3224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3225 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3226 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3227 | ac_c_werror_flag=yes |
| 3228 | ac_cv_prog_cc_g=no |
| 3229 | CFLAGS="-g" |
| 3230 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3231 | /* confdefs.h. */ |
| 3232 | _ACEOF |
| 3233 | cat confdefs.h >>conftest.$ac_ext |
| 3234 | cat >>conftest.$ac_ext <<_ACEOF |
| 3235 | /* end confdefs.h. */ |
| 3236 | |
| 3237 | int |
| 3238 | main () |
| 3239 | { |
| 3240 | |
| 3241 | ; |
| 3242 | return 0; |
| 3243 | } |
| 3244 | _ACEOF |
| 3245 | rm -f conftest.$ac_objext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3246 | if { (ac_try="$ac_compile" |
| 3247 | case "(($ac_try" in |
| 3248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3249 | *) ac_try_echo=$ac_try;; |
| 3250 | esac |
| 3251 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3252 | (eval "$ac_compile") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3253 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3254 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3255 | rm -f conftest.er1 |
| 3256 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3258 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3259 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3260 | { (case "(($ac_try" in |
| 3261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3262 | *) ac_try_echo=$ac_try;; |
| 3263 | esac |
| 3264 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3265 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3266 | ac_status=$? |
| 3267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3268 | (exit $ac_status); }; } && |
| 3269 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3270 | { (case "(($ac_try" in |
| 3271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3272 | *) ac_try_echo=$ac_try;; |
| 3273 | esac |
| 3274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3275 | (eval "$ac_try") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3276 | ac_status=$? |
| 3277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3278 | (exit $ac_status); }; }; then |
| 3279 | ac_cv_prog_cc_g=yes |
| 3280 | else |
| 3281 | echo "$as_me: failed program was:" >&5 |
| 3282 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3283 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3284 | CFLAGS="" |
| 3285 | cat >conftest.$ac_ext <<_ACEOF |
| 3286 | /* confdefs.h. */ |
| 3287 | _ACEOF |
| 3288 | cat confdefs.h >>conftest.$ac_ext |
| 3289 | cat >>conftest.$ac_ext <<_ACEOF |
| 3290 | /* end confdefs.h. */ |
| 3291 | |
| 3292 | int |
| 3293 | main () |
| 3294 | { |
| 3295 | |
| 3296 | ; |
| 3297 | return 0; |
| 3298 | } |
| 3299 | _ACEOF |
| 3300 | rm -f conftest.$ac_objext |
| 3301 | if { (ac_try="$ac_compile" |
| 3302 | case "(($ac_try" in |
| 3303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3304 | *) ac_try_echo=$ac_try;; |
| 3305 | esac |
| 3306 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3307 | (eval "$ac_compile") 2>conftest.er1 |
| 3308 | ac_status=$? |
| 3309 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3310 | rm -f conftest.er1 |
| 3311 | cat conftest.err >&5 |
| 3312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3313 | (exit $ac_status); } && |
| 3314 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3315 | { (case "(($ac_try" in |
| 3316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3317 | *) ac_try_echo=$ac_try;; |
| 3318 | esac |
| 3319 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3320 | (eval "$ac_try") 2>&5 |
| 3321 | ac_status=$? |
| 3322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3323 | (exit $ac_status); }; } && |
| 3324 | { ac_try='test -s conftest.$ac_objext' |
| 3325 | { (case "(($ac_try" in |
| 3326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3327 | *) ac_try_echo=$ac_try;; |
| 3328 | esac |
| 3329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3330 | (eval "$ac_try") 2>&5 |
| 3331 | ac_status=$? |
| 3332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3333 | (exit $ac_status); }; }; then |
| 3334 | : |
| 3335 | else |
| 3336 | echo "$as_me: failed program was:" >&5 |
| 3337 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3338 | |
| 3339 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3340 | CFLAGS="-g" |
| 3341 | cat >conftest.$ac_ext <<_ACEOF |
| 3342 | /* confdefs.h. */ |
| 3343 | _ACEOF |
| 3344 | cat confdefs.h >>conftest.$ac_ext |
| 3345 | cat >>conftest.$ac_ext <<_ACEOF |
| 3346 | /* end confdefs.h. */ |
| 3347 | |
| 3348 | int |
| 3349 | main () |
| 3350 | { |
| 3351 | |
| 3352 | ; |
| 3353 | return 0; |
| 3354 | } |
| 3355 | _ACEOF |
| 3356 | rm -f conftest.$ac_objext |
| 3357 | if { (ac_try="$ac_compile" |
| 3358 | case "(($ac_try" in |
| 3359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3360 | *) ac_try_echo=$ac_try;; |
| 3361 | esac |
| 3362 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3363 | (eval "$ac_compile") 2>conftest.er1 |
| 3364 | ac_status=$? |
| 3365 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3366 | rm -f conftest.er1 |
| 3367 | cat conftest.err >&5 |
| 3368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3369 | (exit $ac_status); } && |
| 3370 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3371 | { (case "(($ac_try" in |
| 3372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3373 | *) ac_try_echo=$ac_try;; |
| 3374 | esac |
| 3375 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3376 | (eval "$ac_try") 2>&5 |
| 3377 | ac_status=$? |
| 3378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3379 | (exit $ac_status); }; } && |
| 3380 | { ac_try='test -s conftest.$ac_objext' |
| 3381 | { (case "(($ac_try" in |
| 3382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3383 | *) ac_try_echo=$ac_try;; |
| 3384 | esac |
| 3385 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3386 | (eval "$ac_try") 2>&5 |
| 3387 | ac_status=$? |
| 3388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3389 | (exit $ac_status); }; }; then |
| 3390 | ac_cv_prog_cc_g=yes |
| 3391 | else |
| 3392 | echo "$as_me: failed program was:" >&5 |
| 3393 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3394 | |
| 3395 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3396 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3397 | |
| 3398 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3399 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3400 | |
| 3401 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3402 | fi |
| 3403 | |
| 3404 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3405 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3406 | fi |
| 3407 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3408 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3409 | if test "$ac_test_CFLAGS" = set; then |
| 3410 | CFLAGS=$ac_save_CFLAGS |
| 3411 | elif test $ac_cv_prog_cc_g = yes; then |
| 3412 | if test "$GCC" = yes; then |
| 3413 | CFLAGS="-g -O2" |
| 3414 | else |
| 3415 | CFLAGS="-g" |
| 3416 | fi |
| 3417 | else |
| 3418 | if test "$GCC" = yes; then |
| 3419 | CFLAGS="-O2" |
| 3420 | else |
| 3421 | CFLAGS= |
| 3422 | fi |
| 3423 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3424 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3425 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 3426 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3427 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3428 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3429 | ac_cv_prog_cc_c89=no |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3430 | ac_save_CC=$CC |
| 3431 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3432 | /* confdefs.h. */ |
| 3433 | _ACEOF |
| 3434 | cat confdefs.h >>conftest.$ac_ext |
| 3435 | cat >>conftest.$ac_ext <<_ACEOF |
| 3436 | /* end confdefs.h. */ |
| 3437 | #include <stdarg.h> |
| 3438 | #include <stdio.h> |
| 3439 | #include <sys/types.h> |
| 3440 | #include <sys/stat.h> |
| 3441 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3442 | struct buf { int x; }; |
| 3443 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3444 | static char *e (p, i) |
| 3445 | char **p; |
| 3446 | int i; |
| 3447 | { |
| 3448 | return p[i]; |
| 3449 | } |
| 3450 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3451 | { |
| 3452 | char *s; |
| 3453 | va_list v; |
| 3454 | va_start (v,p); |
| 3455 | s = g (p, va_arg (v,int)); |
| 3456 | va_end (v); |
| 3457 | return s; |
| 3458 | } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3459 | |
| 3460 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3461 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3462 | These don't provoke an error unfortunately, instead are silently treated |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3463 | as 'x'. The following induces an error, until -std is added to get |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3464 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3465 | array size at least. It's necessary to write '\x00'==0 to get something |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3466 | that's true only with -std. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3467 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3468 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3469 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3470 | inside strings and character constants. */ |
| 3471 | #define FOO(x) 'x' |
| 3472 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3473 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3474 | int test (int i, double x); |
| 3475 | struct s1 {int (*f) (int a);}; |
| 3476 | struct s2 {int (*f) (double a);}; |
| 3477 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3478 | int argc; |
| 3479 | char **argv; |
| 3480 | int |
| 3481 | main () |
| 3482 | { |
| 3483 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3484 | ; |
| 3485 | return 0; |
| 3486 | } |
| 3487 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3488 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3489 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3490 | do |
| 3491 | CC="$ac_save_CC $ac_arg" |
| 3492 | rm -f conftest.$ac_objext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3493 | if { (ac_try="$ac_compile" |
| 3494 | case "(($ac_try" in |
| 3495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3496 | *) ac_try_echo=$ac_try;; |
| 3497 | esac |
| 3498 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3499 | (eval "$ac_compile") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3500 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3501 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3502 | rm -f conftest.er1 |
| 3503 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3505 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3506 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3507 | { (case "(($ac_try" in |
| 3508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3509 | *) ac_try_echo=$ac_try;; |
| 3510 | esac |
| 3511 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3512 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3513 | ac_status=$? |
| 3514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3515 | (exit $ac_status); }; } && |
| 3516 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3517 | { (case "(($ac_try" in |
| 3518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3519 | *) ac_try_echo=$ac_try;; |
| 3520 | esac |
| 3521 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3522 | (eval "$ac_try") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3523 | ac_status=$? |
| 3524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3525 | (exit $ac_status); }; }; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3526 | ac_cv_prog_cc_c89=$ac_arg |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3527 | else |
| 3528 | echo "$as_me: failed program was:" >&5 |
| 3529 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3530 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3531 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3532 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3533 | |
| 3534 | rm -f core conftest.err conftest.$ac_objext |
| 3535 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3536 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3537 | rm -f conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3538 | CC=$ac_save_CC |
| 3539 | |
| 3540 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3541 | # AC_CACHE_VAL |
| 3542 | case "x$ac_cv_prog_cc_c89" in |
| 3543 | x) |
| 3544 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3545 | echo "${ECHO_T}none needed" >&6; } ;; |
| 3546 | xno) |
| 3547 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3548 | echo "${ECHO_T}unsupported" >&6; } ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3549 | *) |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3550 | CC="$CC $ac_cv_prog_cc_c89" |
| 3551 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3552 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3553 | esac |
| 3554 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3555 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3556 | ac_ext=c |
| 3557 | ac_cpp='$CPP $CPPFLAGS' |
| 3558 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3559 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3560 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3561 | |
| 3562 | depcc="$CC" am_compiler_list= |
| 3563 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3564 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 3565 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3566 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
| 3567 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3568 | else |
| 3569 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 3570 | # We make a subdir and do the tests there. Otherwise we can end up |
| 3571 | # making bogus files that we don't know about and never remove. For |
| 3572 | # instance it was reported that on HP-UX the gcc test will end up |
| 3573 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 3574 | # in D'. |
| 3575 | mkdir conftest.dir |
| 3576 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 3577 | # using a relative directory. |
| 3578 | cp "$am_depcomp" conftest.dir |
| 3579 | cd conftest.dir |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3580 | # We will build objects and dependencies in a subdirectory because |
| 3581 | # it helps to detect inapplicable dependency modes. For instance |
| 3582 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 3583 | # side effect of compilation, but ICC will put the dependencies in |
| 3584 | # the current directory while Tru64 will put them in the object |
| 3585 | # directory. |
| 3586 | mkdir sub |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3587 | |
| 3588 | am_cv_CC_dependencies_compiler_type=none |
| 3589 | if test "$am_compiler_list" = ""; then |
| 3590 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 3591 | fi |
| 3592 | for depmode in $am_compiler_list; do |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3593 | # Setup a source with many dependencies, because some compilers |
| 3594 | # like to wrap large dependency lists on column 80 (with \), and |
| 3595 | # we should not choose a depcomp mode which is confused by this. |
| 3596 | # |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3597 | # We need to recreate these files for each test, as the compiler may |
| 3598 | # overwrite some of them when testing with obscure command lines. |
| 3599 | # This happens at least with the AIX C compiler. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3600 | : > sub/conftest.c |
| 3601 | for i in 1 2 3 4 5 6; do |
| 3602 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 3603 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 3604 | # Solaris 8's {/usr,}/bin/sh. |
| 3605 | touch sub/conftst$i.h |
| 3606 | done |
| 3607 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3608 | |
| 3609 | case $depmode in |
| 3610 | nosideeffect) |
| 3611 | # after this tag, mechanisms are not by side-effect, so they'll |
| 3612 | # only be used when explicitly requested |
| 3613 | if test "x$enable_dependency_tracking" = xyes; then |
| 3614 | continue |
| 3615 | else |
| 3616 | break |
| 3617 | fi |
| 3618 | ;; |
| 3619 | none) break ;; |
| 3620 | esac |
| 3621 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 3622 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 3623 | # handle `-M -o', and we need to detect this. |
| 3624 | if depmode=$depmode \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3625 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| 3626 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 3627 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| 3628 | >/dev/null 2>conftest.err && |
| 3629 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 3630 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3631 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3632 | # icc doesn't choke on unknown options, it will just issue warnings |
| 3633 | # or remarks (even with -Werror). So we grep stderr for any message |
| 3634 | # that says an option was ignored or not supported. |
| 3635 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 3636 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 3637 | # The diagnosis changed in icc 8.0: |
| 3638 | # icc: Command line remark: option '-MP' not supported |
| 3639 | if (grep 'ignoring option' conftest.err || |
| 3640 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 3641 | am_cv_CC_dependencies_compiler_type=$depmode |
| 3642 | break |
| 3643 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3644 | fi |
| 3645 | done |
| 3646 | |
| 3647 | cd .. |
| 3648 | rm -rf conftest.dir |
| 3649 | else |
| 3650 | am_cv_CC_dependencies_compiler_type=none |
| 3651 | fi |
| 3652 | |
| 3653 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3654 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 3655 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3656 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 3657 | |
| 3658 | |
| 3659 | |
| 3660 | if |
| 3661 | test "x$enable_dependency_tracking" != xno \ |
| 3662 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 3663 | am__fastdepCC_TRUE= |
| 3664 | am__fastdepCC_FALSE='#' |
| 3665 | else |
| 3666 | am__fastdepCC_TRUE='#' |
| 3667 | am__fastdepCC_FALSE= |
| 3668 | fi |
| 3669 | |
| 3670 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3671 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 3672 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 3673 | if test "${ac_cv_path_SED+set}" = set; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3674 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3675 | else |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 3676 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 3677 | for ac_i in 1 2 3 4 5 6 7; do |
| 3678 | ac_script="$ac_script$as_nl$ac_script" |
| 3679 | done |
| 3680 | echo "$ac_script" | sed 99q >conftest.sed |
| 3681 | $as_unset ac_script || ac_script= |
| 3682 | # Extract the first word of "sed gsed" to use in msg output |
| 3683 | if test -z "$SED"; then |
| 3684 | set dummy sed gsed; ac_prog_name=$2 |
| 3685 | if test "${ac_cv_path_SED+set}" = set; then |
| 3686 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3687 | else |
| 3688 | ac_path_SED_found=false |
| 3689 | # Loop through the user's path and test for each of PROGNAME-LIST |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3690 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3691 | for as_dir in $PATH |
| 3692 | do |
| 3693 | IFS=$as_save_IFS |
| 3694 | test -z "$as_dir" && as_dir=. |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 3695 | for ac_prog in sed gsed; do |
| 3696 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3697 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
| 3698 | { test -f "$ac_path_SED" && $as_executable_p "$ac_path_SED"; } || continue |
| 3699 | # Check for GNU ac_path_SED and select it if it is found. |
| 3700 | # Check for GNU $ac_path_SED |
| 3701 | case `"$ac_path_SED" --version 2>&1` in |
| 3702 | *GNU*) |
| 3703 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 3704 | *) |
| 3705 | ac_count=0 |
| 3706 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3707 | while : |
| 3708 | do |
| 3709 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3710 | mv "conftest.tmp" "conftest.in" |
| 3711 | cp "conftest.in" "conftest.nl" |
| 3712 | echo '' >> "conftest.nl" |
| 3713 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3714 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3715 | ac_count=`expr $ac_count + 1` |
| 3716 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 3717 | # Best one so far, save it but keep looking for a better one |
| 3718 | ac_cv_path_SED="$ac_path_SED" |
| 3719 | ac_path_SED_max=$ac_count |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3720 | fi |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 3721 | # 10*(2^10) chars as input seems more than enough |
| 3722 | test $ac_count -gt 10 && break |
| 3723 | done |
| 3724 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3725 | esac |
| 3726 | |
| 3727 | |
| 3728 | $ac_path_SED_found && break 3 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3729 | done |
| 3730 | done |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3731 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 3732 | done |
| 3733 | IFS=$as_save_IFS |
| 3734 | |
| 3735 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3736 | fi |
| 3737 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 3738 | SED="$ac_cv_path_SED" |
| 3739 | if test -z "$SED"; then |
| 3740 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5 |
| 3741 | echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;} |
| 3742 | { (exit 1); exit 1; }; } |
| 3743 | fi |
| 3744 | |
| 3745 | else |
| 3746 | ac_cv_path_SED=$SED |
| 3747 | fi |
| 3748 | |
| 3749 | fi |
| 3750 | { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 |
| 3751 | echo "${ECHO_T}$ac_cv_path_SED" >&6; } |
| 3752 | SED="$ac_cv_path_SED" |
| 3753 | rm -f conftest.sed |
| 3754 | |
| 3755 | test -z "$SED" && SED=sed |
| 3756 | Xsed="$SED -e 1s/^X//" |
| 3757 | |
| 3758 | |
| 3759 | |
| 3760 | |
| 3761 | |
| 3762 | |
| 3763 | |
| 3764 | |
| 3765 | |
| 3766 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3767 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3768 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3769 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 3770 | if test "${ac_cv_path_GREP+set}" = set; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3771 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3772 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3773 | # Extract the first word of "grep ggrep" to use in msg output |
| 3774 | if test -z "$GREP"; then |
| 3775 | set dummy grep ggrep; ac_prog_name=$2 |
| 3776 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3777 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3778 | else |
| 3779 | ac_path_GREP_found=false |
| 3780 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3781 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3782 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3783 | do |
| 3784 | IFS=$as_save_IFS |
| 3785 | test -z "$as_dir" && as_dir=. |
| 3786 | for ac_prog in grep ggrep; do |
| 3787 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3788 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3789 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
| 3790 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3791 | # Check for GNU $ac_path_GREP |
| 3792 | case `"$ac_path_GREP" --version 2>&1` in |
| 3793 | *GNU*) |
| 3794 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3795 | *) |
| 3796 | ac_count=0 |
| 3797 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3798 | while : |
| 3799 | do |
| 3800 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3801 | mv "conftest.tmp" "conftest.in" |
| 3802 | cp "conftest.in" "conftest.nl" |
| 3803 | echo 'GREP' >> "conftest.nl" |
| 3804 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3805 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3806 | ac_count=`expr $ac_count + 1` |
| 3807 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3808 | # Best one so far, save it but keep looking for a better one |
| 3809 | ac_cv_path_GREP="$ac_path_GREP" |
| 3810 | ac_path_GREP_max=$ac_count |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3811 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3812 | # 10*(2^10) chars as input seems more than enough |
| 3813 | test $ac_count -gt 10 && break |
| 3814 | done |
| 3815 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3816 | esac |
| 3817 | |
| 3818 | |
| 3819 | $ac_path_GREP_found && break 3 |
| 3820 | done |
| 3821 | done |
| 3822 | |
| 3823 | done |
| 3824 | IFS=$as_save_IFS |
| 3825 | |
| 3826 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3827 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3828 | |
| 3829 | GREP="$ac_cv_path_GREP" |
| 3830 | if test -z "$GREP"; then |
| 3831 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3832 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3833 | { (exit 1); exit 1; }; } |
| 3834 | fi |
| 3835 | |
| 3836 | else |
| 3837 | ac_cv_path_GREP=$GREP |
| 3838 | fi |
| 3839 | |
| 3840 | |
| 3841 | fi |
| 3842 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3843 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 3844 | GREP="$ac_cv_path_GREP" |
| 3845 | |
| 3846 | |
| 3847 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3848 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3849 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3850 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3851 | else |
| 3852 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3853 | then ac_cv_path_EGREP="$GREP -E" |
| 3854 | else |
| 3855 | # Extract the first word of "egrep" to use in msg output |
| 3856 | if test -z "$EGREP"; then |
| 3857 | set dummy egrep; ac_prog_name=$2 |
| 3858 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3859 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3860 | else |
| 3861 | ac_path_EGREP_found=false |
| 3862 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3864 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3865 | do |
| 3866 | IFS=$as_save_IFS |
| 3867 | test -z "$as_dir" && as_dir=. |
| 3868 | for ac_prog in egrep; do |
| 3869 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3870 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3871 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
| 3872 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3873 | # Check for GNU $ac_path_EGREP |
| 3874 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3875 | *GNU*) |
| 3876 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3877 | *) |
| 3878 | ac_count=0 |
| 3879 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3880 | while : |
| 3881 | do |
| 3882 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3883 | mv "conftest.tmp" "conftest.in" |
| 3884 | cp "conftest.in" "conftest.nl" |
| 3885 | echo 'EGREP' >> "conftest.nl" |
| 3886 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3887 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3888 | ac_count=`expr $ac_count + 1` |
| 3889 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3890 | # Best one so far, save it but keep looking for a better one |
| 3891 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3892 | ac_path_EGREP_max=$ac_count |
| 3893 | fi |
| 3894 | # 10*(2^10) chars as input seems more than enough |
| 3895 | test $ac_count -gt 10 && break |
| 3896 | done |
| 3897 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3898 | esac |
| 3899 | |
| 3900 | |
| 3901 | $ac_path_EGREP_found && break 3 |
| 3902 | done |
| 3903 | done |
| 3904 | |
| 3905 | done |
| 3906 | IFS=$as_save_IFS |
| 3907 | |
| 3908 | |
| 3909 | fi |
| 3910 | |
| 3911 | EGREP="$ac_cv_path_EGREP" |
| 3912 | if test -z "$EGREP"; then |
| 3913 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3914 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3915 | { (exit 1); exit 1; }; } |
| 3916 | fi |
| 3917 | |
| 3918 | else |
| 3919 | ac_cv_path_EGREP=$EGREP |
| 3920 | fi |
| 3921 | |
| 3922 | |
| 3923 | fi |
| 3924 | fi |
| 3925 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3926 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 3927 | EGREP="$ac_cv_path_EGREP" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3928 | |
| 3929 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 3930 | { echo "$as_me:$LINENO: checking for fgrep" >&5 |
| 3931 | echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; } |
| 3932 | if test "${ac_cv_path_FGREP+set}" = set; then |
| 3933 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3934 | else |
| 3935 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
| 3936 | then ac_cv_path_FGREP="$GREP -F" |
| 3937 | else |
| 3938 | # Extract the first word of "fgrep" to use in msg output |
| 3939 | if test -z "$FGREP"; then |
| 3940 | set dummy fgrep; ac_prog_name=$2 |
| 3941 | if test "${ac_cv_path_FGREP+set}" = set; then |
| 3942 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3943 | else |
| 3944 | ac_path_FGREP_found=false |
| 3945 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3947 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3948 | do |
| 3949 | IFS=$as_save_IFS |
| 3950 | test -z "$as_dir" && as_dir=. |
| 3951 | for ac_prog in fgrep; do |
| 3952 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3953 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3954 | { test -f "$ac_path_FGREP" && $as_executable_p "$ac_path_FGREP"; } || continue |
| 3955 | # Check for GNU ac_path_FGREP and select it if it is found. |
| 3956 | # Check for GNU $ac_path_FGREP |
| 3957 | case `"$ac_path_FGREP" --version 2>&1` in |
| 3958 | *GNU*) |
| 3959 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
| 3960 | *) |
| 3961 | ac_count=0 |
| 3962 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3963 | while : |
| 3964 | do |
| 3965 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3966 | mv "conftest.tmp" "conftest.in" |
| 3967 | cp "conftest.in" "conftest.nl" |
| 3968 | echo 'FGREP' >> "conftest.nl" |
| 3969 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3970 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3971 | ac_count=`expr $ac_count + 1` |
| 3972 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
| 3973 | # Best one so far, save it but keep looking for a better one |
| 3974 | ac_cv_path_FGREP="$ac_path_FGREP" |
| 3975 | ac_path_FGREP_max=$ac_count |
| 3976 | fi |
| 3977 | # 10*(2^10) chars as input seems more than enough |
| 3978 | test $ac_count -gt 10 && break |
| 3979 | done |
| 3980 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3981 | esac |
| 3982 | |
| 3983 | |
| 3984 | $ac_path_FGREP_found && break 3 |
| 3985 | done |
| 3986 | done |
| 3987 | |
| 3988 | done |
| 3989 | IFS=$as_save_IFS |
| 3990 | |
| 3991 | |
| 3992 | fi |
| 3993 | |
| 3994 | FGREP="$ac_cv_path_FGREP" |
| 3995 | if test -z "$FGREP"; then |
| 3996 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3997 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3998 | { (exit 1); exit 1; }; } |
| 3999 | fi |
| 4000 | |
| 4001 | else |
| 4002 | ac_cv_path_FGREP=$FGREP |
| 4003 | fi |
| 4004 | |
| 4005 | |
| 4006 | fi |
| 4007 | fi |
| 4008 | { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 |
| 4009 | echo "${ECHO_T}$ac_cv_path_FGREP" >&6; } |
| 4010 | FGREP="$ac_cv_path_FGREP" |
| 4011 | |
| 4012 | |
| 4013 | test -z "$GREP" && GREP=grep |
| 4014 | |
| 4015 | |
| 4016 | |
| 4017 | |
| 4018 | |
| 4019 | |
| 4020 | |
| 4021 | |
| 4022 | |
| 4023 | |
| 4024 | |
| 4025 | |
| 4026 | |
| 4027 | |
| 4028 | |
| 4029 | |
| 4030 | |
| 4031 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4032 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4033 | # Check whether --with-gnu-ld was given. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4034 | if test "${with_gnu_ld+set}" = set; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4035 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4036 | else |
| 4037 | with_gnu_ld=no |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4038 | fi |
| 4039 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4040 | ac_prog=ld |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4041 | if test "$GCC" = yes; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4042 | # Check if gcc -print-prog-name=ld gives a path. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4043 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 4044 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4045 | case $host in |
| 4046 | *-*-mingw*) |
| 4047 | # gcc leaves a trailing carriage return which upsets mingw |
| 4048 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 4049 | *) |
| 4050 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 4051 | esac |
| 4052 | case $ac_prog in |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4053 | # Accept absolute paths. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4054 | [\\/]* | ?:[\\/]*) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4055 | re_direlt='/[^/][^/]*/\.\./' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4056 | # Canonicalize the pathname of ld |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4057 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 4058 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 4059 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4060 | done |
| 4061 | test -z "$LD" && LD="$ac_prog" |
| 4062 | ;; |
| 4063 | "") |
| 4064 | # If it fails, then pretend we aren't using GCC. |
| 4065 | ac_prog=ld |
| 4066 | ;; |
| 4067 | *) |
| 4068 | # If it is relative, then search for the first ld in PATH. |
| 4069 | with_gnu_ld=unknown |
| 4070 | ;; |
| 4071 | esac |
| 4072 | elif test "$with_gnu_ld" = yes; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4073 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 4074 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4075 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4076 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 4077 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4078 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4079 | if test "${lt_cv_path_LD+set}" = set; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4080 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4081 | else |
| 4082 | if test -z "$LD"; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4083 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4084 | for ac_dir in $PATH; do |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4085 | IFS="$lt_save_ifs" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4086 | test -z "$ac_dir" && ac_dir=. |
| 4087 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4088 | lt_cv_path_LD="$ac_dir/$ac_prog" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4089 | # Check to see if the program is GNU ld. I'd rather use --version, |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 4090 | # but apparently some variants of GNU ld only accept -v. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4091 | # Break only if it was the GNU/non-GNU ld that we prefer. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4092 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 4093 | *GNU* | *'with BFD'*) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4094 | test "$with_gnu_ld" != no && break |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4095 | ;; |
| 4096 | *) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4097 | test "$with_gnu_ld" != yes && break |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4098 | ;; |
| 4099 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4100 | fi |
| 4101 | done |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4102 | IFS="$lt_save_ifs" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4103 | else |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4104 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4105 | fi |
| 4106 | fi |
| 4107 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4108 | LD="$lt_cv_path_LD" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4109 | if test -n "$LD"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4110 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 4111 | echo "${ECHO_T}$LD" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4112 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4113 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4114 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4115 | fi |
| 4116 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 4117 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 4118 | { (exit 1); exit 1; }; } |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4119 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 4120 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4121 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4123 | else |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 4124 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4125 | case `$LD -v 2>&1 </dev/null` in |
| 4126 | *GNU* | *'with BFD'*) |
| 4127 | lt_cv_prog_gnu_ld=yes |
| 4128 | ;; |
| 4129 | *) |
| 4130 | lt_cv_prog_gnu_ld=no |
| 4131 | ;; |
| 4132 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4133 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4134 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 4135 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4136 | with_gnu_ld=$lt_cv_prog_gnu_ld |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4137 | |
| 4138 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4139 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4140 | |
| 4141 | |
| 4142 | |
| 4143 | |
| 4144 | |
| 4145 | |
| 4146 | { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 |
| 4147 | echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4148 | if test "${lt_cv_path_NM+set}" = set; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4149 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4150 | else |
| 4151 | if test -n "$NM"; then |
| 4152 | # Let the user override the test. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4153 | lt_cv_path_NM="$NM" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4154 | else |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 4155 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 4156 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 4157 | lt_nm_to_check="$lt_nm_to_check nm" |
| 4158 | fi |
| 4159 | for lt_tmp_nm in $lt_nm_to_check; do |
| 4160 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 4161 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 4162 | IFS="$lt_save_ifs" |
| 4163 | test -z "$ac_dir" && ac_dir=. |
| 4164 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 4165 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 4166 | # Check to see if the nm accepts a BSD-compat flag. |
| 4167 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 4168 | # nm: unknown option "B" ignored |
| 4169 | # Tru64's nm complains that /dev/null is an invalid object file |
| 4170 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 4171 | */dev/null* | *'Invalid file or object type'*) |
| 4172 | lt_cv_path_NM="$tmp_nm -B" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4173 | break |
| 4174 | ;; |
| 4175 | *) |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 4176 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 4177 | */dev/null*) |
| 4178 | lt_cv_path_NM="$tmp_nm -p" |
| 4179 | break |
| 4180 | ;; |
| 4181 | *) |
| 4182 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 4183 | continue # so that we can try to find one that supports BSD flags |
| 4184 | ;; |
| 4185 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4186 | ;; |
| 4187 | esac |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 4188 | fi |
| 4189 | done |
| 4190 | IFS="$lt_save_ifs" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4191 | done |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4192 | : ${lt_cv_path_NM=no} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4193 | fi |
| 4194 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4195 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 4196 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4197 | if test "$lt_cv_path_NM" != "no"; then |
| 4198 | NM="$lt_cv_path_NM" |
| 4199 | else |
| 4200 | # Didn't find any BSD compatible name lister, look for dumpbin. |
| 4201 | if test -n "$DUMPBIN"; then : |
| 4202 | # Let the user override the test. |
| 4203 | else |
| 4204 | if test -n "$ac_tool_prefix"; then |
| 4205 | for ac_prog in dumpbin "link -dump" |
| 4206 | do |
| 4207 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4208 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4209 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4210 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4211 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then |
| 4212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4213 | else |
| 4214 | if test -n "$DUMPBIN"; then |
| 4215 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
| 4216 | else |
| 4217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4218 | for as_dir in $PATH |
| 4219 | do |
| 4220 | IFS=$as_save_IFS |
| 4221 | test -z "$as_dir" && as_dir=. |
| 4222 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4223 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4224 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
| 4225 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4226 | break 2 |
| 4227 | fi |
| 4228 | done |
| 4229 | done |
| 4230 | IFS=$as_save_IFS |
| 4231 | |
| 4232 | fi |
| 4233 | fi |
| 4234 | DUMPBIN=$ac_cv_prog_DUMPBIN |
| 4235 | if test -n "$DUMPBIN"; then |
| 4236 | { echo "$as_me:$LINENO: result: $DUMPBIN" >&5 |
| 4237 | echo "${ECHO_T}$DUMPBIN" >&6; } |
| 4238 | else |
| 4239 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4240 | echo "${ECHO_T}no" >&6; } |
| 4241 | fi |
| 4242 | |
| 4243 | |
| 4244 | test -n "$DUMPBIN" && break |
| 4245 | done |
| 4246 | fi |
| 4247 | if test -z "$DUMPBIN"; then |
| 4248 | ac_ct_DUMPBIN=$DUMPBIN |
| 4249 | for ac_prog in dumpbin "link -dump" |
| 4250 | do |
| 4251 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4252 | set dummy $ac_prog; ac_word=$2 |
| 4253 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4254 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4255 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then |
| 4256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4257 | else |
| 4258 | if test -n "$ac_ct_DUMPBIN"; then |
| 4259 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
| 4260 | else |
| 4261 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4262 | for as_dir in $PATH |
| 4263 | do |
| 4264 | IFS=$as_save_IFS |
| 4265 | test -z "$as_dir" && as_dir=. |
| 4266 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4267 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4268 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
| 4269 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4270 | break 2 |
| 4271 | fi |
| 4272 | done |
| 4273 | done |
| 4274 | IFS=$as_save_IFS |
| 4275 | |
| 4276 | fi |
| 4277 | fi |
| 4278 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
| 4279 | if test -n "$ac_ct_DUMPBIN"; then |
| 4280 | { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 |
| 4281 | echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; } |
| 4282 | else |
| 4283 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4284 | echo "${ECHO_T}no" >&6; } |
| 4285 | fi |
| 4286 | |
| 4287 | |
| 4288 | test -n "$ac_ct_DUMPBIN" && break |
| 4289 | done |
| 4290 | |
| 4291 | if test "x$ac_ct_DUMPBIN" = x; then |
| 4292 | DUMPBIN=":" |
| 4293 | else |
| 4294 | case $cross_compiling:$ac_tool_warned in |
| 4295 | yes:) |
| 4296 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 4297 | whose name does not start with the host triplet. If you think this |
| 4298 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 4299 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 4300 | whose name does not start with the host triplet. If you think this |
| 4301 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 4302 | ac_tool_warned=yes ;; |
| 4303 | esac |
| 4304 | DUMPBIN=$ac_ct_DUMPBIN |
| 4305 | fi |
| 4306 | fi |
| 4307 | |
| 4308 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
| 4309 | *COFF*) |
| 4310 | DUMPBIN="$DUMPBIN -symbols" |
| 4311 | ;; |
| 4312 | *) |
| 4313 | DUMPBIN=: |
| 4314 | ;; |
| 4315 | esac |
| 4316 | fi |
| 4317 | |
| 4318 | if test "$DUMPBIN" != ":"; then |
| 4319 | NM="$DUMPBIN" |
| 4320 | fi |
| 4321 | fi |
| 4322 | test -z "$NM" && NM=nm |
| 4323 | |
| 4324 | |
| 4325 | |
| 4326 | |
| 4327 | |
| 4328 | |
| 4329 | { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 |
| 4330 | echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; } |
| 4331 | if test "${lt_cv_nm_interface+set}" = set; then |
| 4332 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4333 | else |
| 4334 | lt_cv_nm_interface="BSD nm" |
| 4335 | echo "int some_variable = 0;" > conftest.$ac_ext |
| 4336 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
| 4337 | (eval "$ac_compile" 2>conftest.err) |
| 4338 | cat conftest.err >&5 |
| 4339 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
| 4340 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 4341 | cat conftest.err >&5 |
| 4342 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
| 4343 | cat conftest.out >&5 |
| 4344 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 4345 | lt_cv_nm_interface="MS dumpbin" |
| 4346 | fi |
| 4347 | rm -f conftest* |
| 4348 | fi |
| 4349 | { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 |
| 4350 | echo "${ECHO_T}$lt_cv_nm_interface" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4351 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4352 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 4353 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4354 | LN_S=$as_ln_s |
| 4355 | if test "$LN_S" = "ln -s"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4356 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4357 | echo "${ECHO_T}yes" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4358 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4359 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 4360 | echo "${ECHO_T}no, using $LN_S" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4361 | fi |
| 4362 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4363 | # find the maximum length of command line arguments |
| 4364 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 4365 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } |
| 4366 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| 4367 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4368 | else |
| 4369 | i=0 |
| 4370 | teststring="ABCD" |
| 4371 | |
| 4372 | case $build_os in |
| 4373 | msdosdjgpp*) |
| 4374 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 4375 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 4376 | # during glob expansion). Even if it were fixed, the result of this |
| 4377 | # check would be larger than it should be. |
| 4378 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 4379 | ;; |
| 4380 | |
| 4381 | gnu*) |
| 4382 | # Under GNU Hurd, this test is not required because there is |
| 4383 | # no limit to the length of command line arguments. |
| 4384 | # Libtool will interpret -1 as no limit whatsoever |
| 4385 | lt_cv_sys_max_cmd_len=-1; |
| 4386 | ;; |
| 4387 | |
| 4388 | cygwin* | mingw* | cegcc*) |
| 4389 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 4390 | # about 5 minutes as the teststring grows exponentially. |
| 4391 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 4392 | # you end up with a "frozen" computer, even though with patience |
| 4393 | # the test eventually succeeds (with a max line length of 256k). |
| 4394 | # Instead, let's just punt: use the minimum linelength reported by |
| 4395 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 4396 | lt_cv_sys_max_cmd_len=8192; |
| 4397 | ;; |
| 4398 | |
| 4399 | mint*) |
| 4400 | # On MiNT this can take a long time and run out of memory. |
| 4401 | lt_cv_sys_max_cmd_len=8192; |
| 4402 | ;; |
| 4403 | |
| 4404 | amigaos*) |
| 4405 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 4406 | # So we just punt and use a minimum line length of 8192. |
| 4407 | lt_cv_sys_max_cmd_len=8192; |
| 4408 | ;; |
| 4409 | |
| 4410 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 4411 | # This has been around since 386BSD, at least. Likely further. |
| 4412 | if test -x /sbin/sysctl; then |
| 4413 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 4414 | elif test -x /usr/sbin/sysctl; then |
| 4415 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 4416 | else |
| 4417 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 4418 | fi |
| 4419 | # And add a safety zone |
| 4420 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 4421 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 4422 | ;; |
| 4423 | |
| 4424 | interix*) |
| 4425 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 4426 | lt_cv_sys_max_cmd_len=196608 |
| 4427 | ;; |
| 4428 | |
| 4429 | osf*) |
| 4430 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 4431 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 4432 | # nice to cause kernel panics so lets avoid the loop below. |
| 4433 | # First set a reasonable default. |
| 4434 | lt_cv_sys_max_cmd_len=16384 |
| 4435 | # |
| 4436 | if test -x /sbin/sysconfig; then |
| 4437 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 4438 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 4439 | esac |
| 4440 | fi |
| 4441 | ;; |
| 4442 | sco3.2v5*) |
| 4443 | lt_cv_sys_max_cmd_len=102400 |
| 4444 | ;; |
| 4445 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 4446 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 4447 | if test -n "$kargmax"; then |
| 4448 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 4449 | else |
| 4450 | lt_cv_sys_max_cmd_len=32768 |
| 4451 | fi |
| 4452 | ;; |
| 4453 | *) |
| 4454 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 4455 | if test -n "$lt_cv_sys_max_cmd_len"; then |
| 4456 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 4457 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 4458 | else |
| 4459 | # Make teststring a little bigger before we do anything with it. |
| 4460 | # a 1K string should be a reasonable start. |
| 4461 | for i in 1 2 3 4 5 6 7 8 ; do |
| 4462 | teststring=$teststring$teststring |
| 4463 | done |
| 4464 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 4465 | # If test is not a shell built-in, we'll probably end up computing a |
| 4466 | # maximum length that is only half of the actual maximum length, but |
| 4467 | # we can't tell. |
| 4468 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ |
| 4469 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
| 4470 | test $i != 17 # 1/2 MB should be enough |
| 4471 | do |
| 4472 | i=`expr $i + 1` |
| 4473 | teststring=$teststring$teststring |
| 4474 | done |
| 4475 | # Only check the string length outside the loop. |
| 4476 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 4477 | teststring= |
| 4478 | # Add a significant safety factor because C++ compilers can tack on |
| 4479 | # massive amounts of additional arguments before passing them to the |
| 4480 | # linker. It appears as though 1/2 is a usable value. |
| 4481 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 4482 | fi |
| 4483 | ;; |
| 4484 | esac |
| 4485 | |
| 4486 | fi |
| 4487 | |
| 4488 | if test -n $lt_cv_sys_max_cmd_len ; then |
| 4489 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 4490 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } |
| 4491 | else |
| 4492 | { echo "$as_me:$LINENO: result: none" >&5 |
| 4493 | echo "${ECHO_T}none" >&6; } |
| 4494 | fi |
| 4495 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 4496 | |
| 4497 | |
| 4498 | |
| 4499 | |
| 4500 | |
| 4501 | |
| 4502 | : ${CP="cp -f"} |
| 4503 | : ${MV="mv -f"} |
| 4504 | : ${RM="rm -f"} |
| 4505 | |
| 4506 | { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 |
| 4507 | echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; } |
| 4508 | # Try some XSI features |
| 4509 | xsi_shell=no |
| 4510 | ( _lt_dummy="a/b/c" |
| 4511 | test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ |
| 4512 | = c,a/b,b/c, \ |
| 4513 | && eval 'test $(( 1 + 1 )) -eq 2 \ |
| 4514 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
| 4515 | && xsi_shell=yes |
| 4516 | { echo "$as_me:$LINENO: result: $xsi_shell" >&5 |
| 4517 | echo "${ECHO_T}$xsi_shell" >&6; } |
| 4518 | |
| 4519 | |
| 4520 | { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 |
| 4521 | echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; } |
| 4522 | lt_shell_append=no |
| 4523 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ |
| 4524 | >/dev/null 2>&1 \ |
| 4525 | && lt_shell_append=yes |
| 4526 | { echo "$as_me:$LINENO: result: $lt_shell_append" >&5 |
| 4527 | echo "${ECHO_T}$lt_shell_append" >&6; } |
| 4528 | |
| 4529 | |
| 4530 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 4531 | lt_unset=unset |
| 4532 | else |
| 4533 | lt_unset=false |
| 4534 | fi |
| 4535 | |
| 4536 | |
| 4537 | |
| 4538 | |
| 4539 | |
| 4540 | # test EBCDIC or ASCII |
| 4541 | case `echo X|tr X '\101'` in |
| 4542 | A) # ASCII based system |
| 4543 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 4544 | lt_SP2NL='tr \040 \012' |
| 4545 | lt_NL2SP='tr \015\012 \040\040' |
| 4546 | ;; |
| 4547 | *) # EBCDIC based system |
| 4548 | lt_SP2NL='tr \100 \n' |
| 4549 | lt_NL2SP='tr \r\n \100\100' |
| 4550 | ;; |
| 4551 | esac |
| 4552 | |
| 4553 | |
| 4554 | |
| 4555 | |
| 4556 | |
| 4557 | |
| 4558 | |
| 4559 | |
| 4560 | |
| 4561 | { echo "$as_me:$LINENO: checking how to convert $build file names to $host format" >&5 |
| 4562 | echo $ECHO_N "checking how to convert $build file names to $host format... $ECHO_C" >&6; } |
| 4563 | if test "${lt_cv_to_host_file_cmd+set}" = set; then |
| 4564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4565 | else |
| 4566 | case $host in |
| 4567 | *-*-mingw* ) |
| 4568 | case $build in |
| 4569 | *-*-mingw* ) # actually msys |
| 4570 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 |
| 4571 | ;; |
| 4572 | *-*-cygwin* ) |
| 4573 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 |
| 4574 | ;; |
| 4575 | * ) # otherwise, assume *nix |
| 4576 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 |
| 4577 | ;; |
| 4578 | esac |
| 4579 | ;; |
| 4580 | *-*-cygwin* ) |
| 4581 | case $build in |
| 4582 | *-*-mingw* ) # actually msys |
| 4583 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin |
| 4584 | ;; |
| 4585 | *-*-cygwin* ) |
| 4586 | lt_cv_to_host_file_cmd=func_convert_file_noop |
| 4587 | ;; |
| 4588 | * ) # otherwise, assume *nix |
| 4589 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin |
| 4590 | ;; |
| 4591 | esac |
| 4592 | ;; |
| 4593 | * ) # unhandled hosts (and "normal" native builds) |
| 4594 | lt_cv_to_host_file_cmd=func_convert_file_noop |
| 4595 | ;; |
| 4596 | esac |
| 4597 | |
| 4598 | fi |
| 4599 | |
| 4600 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 4601 | { echo "$as_me:$LINENO: result: $lt_cv_to_host_file_cmd" >&5 |
| 4602 | echo "${ECHO_T}$lt_cv_to_host_file_cmd" >&6; } |
| 4603 | |
| 4604 | |
| 4605 | |
| 4606 | |
| 4607 | |
| 4608 | { echo "$as_me:$LINENO: checking how to convert $build file names to toolchain format" >&5 |
| 4609 | echo $ECHO_N "checking how to convert $build file names to toolchain format... $ECHO_C" >&6; } |
| 4610 | if test "${lt_cv_to_tool_file_cmd+set}" = set; then |
| 4611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4612 | else |
| 4613 | #assume ordinary cross tools, or native build. |
| 4614 | lt_cv_to_tool_file_cmd=func_convert_file_noop |
| 4615 | case $host in |
| 4616 | *-*-mingw* ) |
| 4617 | case $build in |
| 4618 | *-*-mingw* ) # actually msys |
| 4619 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 |
| 4620 | ;; |
| 4621 | esac |
| 4622 | ;; |
| 4623 | esac |
| 4624 | |
| 4625 | fi |
| 4626 | |
| 4627 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 4628 | { echo "$as_me:$LINENO: result: $lt_cv_to_tool_file_cmd" >&5 |
| 4629 | echo "${ECHO_T}$lt_cv_to_tool_file_cmd" >&6; } |
| 4630 | |
| 4631 | |
| 4632 | |
| 4633 | |
| 4634 | |
| 4635 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 4636 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } |
| 4637 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 4638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4639 | else |
| 4640 | lt_cv_ld_reload_flag='-r' |
| 4641 | fi |
| 4642 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 4643 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } |
| 4644 | reload_flag=$lt_cv_ld_reload_flag |
| 4645 | case $reload_flag in |
| 4646 | "" | " "*) ;; |
| 4647 | *) reload_flag=" $reload_flag" ;; |
| 4648 | esac |
| 4649 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 4650 | case $host_os in |
| 4651 | cygwin* | mingw* | pw32* | cegcc*) |
| 4652 | if test "$GCC" != yes; then |
| 4653 | reload_cmds=false |
| 4654 | fi |
| 4655 | ;; |
| 4656 | darwin*) |
| 4657 | if test "$GCC" = yes; then |
| 4658 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 4659 | else |
| 4660 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 4661 | fi |
| 4662 | ;; |
| 4663 | esac |
| 4664 | |
| 4665 | |
| 4666 | |
| 4667 | |
| 4668 | |
| 4669 | |
| 4670 | |
| 4671 | |
| 4672 | |
| 4673 | if test -n "$ac_tool_prefix"; then |
| 4674 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 4675 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| 4676 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4677 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4678 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then |
| 4679 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4680 | else |
| 4681 | if test -n "$OBJDUMP"; then |
| 4682 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 4683 | else |
| 4684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4685 | for as_dir in $PATH |
| 4686 | do |
| 4687 | IFS=$as_save_IFS |
| 4688 | test -z "$as_dir" && as_dir=. |
| 4689 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4690 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4691 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| 4692 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4693 | break 2 |
| 4694 | fi |
| 4695 | done |
| 4696 | done |
| 4697 | IFS=$as_save_IFS |
| 4698 | |
| 4699 | fi |
| 4700 | fi |
| 4701 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 4702 | if test -n "$OBJDUMP"; then |
| 4703 | { echo "$as_me:$LINENO: result: $OBJDUMP" >&5 |
| 4704 | echo "${ECHO_T}$OBJDUMP" >&6; } |
| 4705 | else |
| 4706 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4707 | echo "${ECHO_T}no" >&6; } |
| 4708 | fi |
| 4709 | |
| 4710 | |
| 4711 | fi |
| 4712 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 4713 | ac_ct_OBJDUMP=$OBJDUMP |
| 4714 | # Extract the first word of "objdump", so it can be a program name with args. |
| 4715 | set dummy objdump; ac_word=$2 |
| 4716 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4717 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4718 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then |
| 4719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4720 | else |
| 4721 | if test -n "$ac_ct_OBJDUMP"; then |
| 4722 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 4723 | else |
| 4724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4725 | for as_dir in $PATH |
| 4726 | do |
| 4727 | IFS=$as_save_IFS |
| 4728 | test -z "$as_dir" && as_dir=. |
| 4729 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4730 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4731 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| 4732 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4733 | break 2 |
| 4734 | fi |
| 4735 | done |
| 4736 | done |
| 4737 | IFS=$as_save_IFS |
| 4738 | |
| 4739 | fi |
| 4740 | fi |
| 4741 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 4742 | if test -n "$ac_ct_OBJDUMP"; then |
| 4743 | { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 |
| 4744 | echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; } |
| 4745 | else |
| 4746 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4747 | echo "${ECHO_T}no" >&6; } |
| 4748 | fi |
| 4749 | |
| 4750 | if test "x$ac_ct_OBJDUMP" = x; then |
| 4751 | OBJDUMP="false" |
| 4752 | else |
| 4753 | case $cross_compiling:$ac_tool_warned in |
| 4754 | yes:) |
| 4755 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 4756 | whose name does not start with the host triplet. If you think this |
| 4757 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 4758 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 4759 | whose name does not start with the host triplet. If you think this |
| 4760 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 4761 | ac_tool_warned=yes ;; |
| 4762 | esac |
| 4763 | OBJDUMP=$ac_ct_OBJDUMP |
| 4764 | fi |
| 4765 | else |
| 4766 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 4767 | fi |
| 4768 | |
| 4769 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 4770 | |
| 4771 | |
| 4772 | |
| 4773 | |
| 4774 | |
| 4775 | |
| 4776 | |
| 4777 | |
| 4778 | |
| 4779 | { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 |
| 4780 | echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4781 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 4782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4783 | else |
| 4784 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 4785 | lt_cv_file_magic_test_file= |
| 4786 | lt_cv_deplibs_check_method='unknown' |
| 4787 | # Need to set the preceding variable on all platforms that support |
| 4788 | # interlibrary dependencies. |
| 4789 | # 'none' -- dependencies not supported. |
| 4790 | # `unknown' -- same as none, but documents that we really don't know. |
| 4791 | # 'pass_all' -- all dependencies passed with no checks. |
| 4792 | # 'test_compile' -- check by making test program. |
| 4793 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 4794 | # which responds to the $file_magic_cmd with a given extended regex. |
| 4795 | # If you have `file' or equivalent on your system and you're not sure |
| 4796 | # whether `pass_all' will *always* work, you probably want this one. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4797 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4798 | case $host_os in |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4799 | aix[4-9]*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4800 | lt_cv_deplibs_check_method=pass_all |
| 4801 | ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4802 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4803 | beos*) |
| 4804 | lt_cv_deplibs_check_method=pass_all |
| 4805 | ;; |
| 4806 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 4807 | bsdi[45]*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4808 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 4809 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 4810 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 4811 | ;; |
| 4812 | |
| 4813 | cygwin*) |
| 4814 | # func_win32_libid is a shell function defined in ltmain.sh |
| 4815 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 4816 | lt_cv_file_magic_cmd='func_win32_libid' |
| 4817 | ;; |
| 4818 | |
| 4819 | mingw* | pw32*) |
| 4820 | # Base MSYS/MinGW do not provide the 'file' command needed by |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4821 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 4822 | # unless we find 'file', for example because we are cross-compiling. |
| 4823 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
| 4824 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then |
| 4825 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 4826 | lt_cv_file_magic_cmd='func_win32_libid' |
| 4827 | else |
| 4828 | # Keep this pattern in sync with the one in func_win32_libid. |
| 4829 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' |
| 4830 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 4831 | fi |
| 4832 | ;; |
| 4833 | |
| 4834 | cegcc*) |
| 4835 | # use the weaker test based on 'objdump'. See mingw*. |
| 4836 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4837 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 4838 | ;; |
| 4839 | |
| 4840 | darwin* | rhapsody*) |
| 4841 | lt_cv_deplibs_check_method=pass_all |
| 4842 | ;; |
| 4843 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4844 | freebsd* | dragonfly*) |
| 4845 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4846 | case $host_cpu in |
| 4847 | i*86 ) |
| 4848 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 4849 | # Let's accept both of them until this is cleared up. |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 4850 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4851 | lt_cv_file_magic_cmd=/usr/bin/file |
| 4852 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 4853 | ;; |
| 4854 | esac |
| 4855 | else |
| 4856 | lt_cv_deplibs_check_method=pass_all |
| 4857 | fi |
| 4858 | ;; |
| 4859 | |
| 4860 | gnu*) |
| 4861 | lt_cv_deplibs_check_method=pass_all |
| 4862 | ;; |
| 4863 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4864 | haiku*) |
| 4865 | lt_cv_deplibs_check_method=pass_all |
| 4866 | ;; |
| 4867 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4868 | hpux10.20* | hpux11*) |
| 4869 | lt_cv_file_magic_cmd=/usr/bin/file |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 4870 | case $host_cpu in |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4871 | ia64*) |
| 4872 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 4873 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 4874 | ;; |
| 4875 | hppa*64*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4876 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4877 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 4878 | ;; |
| 4879 | *) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4880 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4881 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 4882 | ;; |
| 4883 | esac |
| 4884 | ;; |
| 4885 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4886 | interix[3-9]*) |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 4887 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 4888 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 4889 | ;; |
| 4890 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4891 | irix5* | irix6* | nonstopux*) |
| 4892 | case $LD in |
| 4893 | *-32|*"-32 ") libmagic=32-bit;; |
| 4894 | *-n32|*"-n32 ") libmagic=N32;; |
| 4895 | *-64|*"-64 ") libmagic=64-bit;; |
| 4896 | *) libmagic=never-match;; |
| 4897 | esac |
| 4898 | lt_cv_deplibs_check_method=pass_all |
| 4899 | ;; |
| 4900 | |
| 4901 | # This must be Linux ELF. |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4902 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4903 | lt_cv_deplibs_check_method=pass_all |
| 4904 | ;; |
| 4905 | |
| 4906 | netbsd*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4907 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4908 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 4909 | else |
| 4910 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 4911 | fi |
| 4912 | ;; |
| 4913 | |
| 4914 | newos6*) |
| 4915 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 4916 | lt_cv_file_magic_cmd=/usr/bin/file |
| 4917 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 4918 | ;; |
| 4919 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4920 | *nto* | *qnx*) |
| 4921 | lt_cv_deplibs_check_method=pass_all |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4922 | ;; |
| 4923 | |
| 4924 | openbsd*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4925 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 4926 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4927 | else |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 4928 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4929 | fi |
| 4930 | ;; |
| 4931 | |
| 4932 | osf3* | osf4* | osf5*) |
| 4933 | lt_cv_deplibs_check_method=pass_all |
| 4934 | ;; |
| 4935 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4936 | rdos*) |
| 4937 | lt_cv_deplibs_check_method=pass_all |
| 4938 | ;; |
| 4939 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4940 | solaris*) |
| 4941 | lt_cv_deplibs_check_method=pass_all |
| 4942 | ;; |
| 4943 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4944 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 4945 | lt_cv_deplibs_check_method=pass_all |
| 4946 | ;; |
| 4947 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 4948 | sysv4 | sysv4.3*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4949 | case $host_vendor in |
| 4950 | motorola) |
| 4951 | 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]' |
| 4952 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 4953 | ;; |
| 4954 | ncr) |
| 4955 | lt_cv_deplibs_check_method=pass_all |
| 4956 | ;; |
| 4957 | sequent) |
| 4958 | lt_cv_file_magic_cmd='/bin/file' |
| 4959 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 4960 | ;; |
| 4961 | sni) |
| 4962 | lt_cv_file_magic_cmd='/bin/file' |
| 4963 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 4964 | lt_cv_file_magic_test_file=/lib/libc.so |
| 4965 | ;; |
| 4966 | siemens) |
| 4967 | lt_cv_deplibs_check_method=pass_all |
| 4968 | ;; |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 4969 | pc) |
| 4970 | lt_cv_deplibs_check_method=pass_all |
| 4971 | ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4972 | esac |
| 4973 | ;; |
| 4974 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4975 | tpf*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4976 | lt_cv_deplibs_check_method=pass_all |
| 4977 | ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4978 | esac |
| 4979 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4980 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4981 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 4982 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4983 | |
| 4984 | file_magic_glob= |
| 4985 | want_nocaseglob=no |
| 4986 | if test "$build" = "$host"; then |
| 4987 | case $host_os in |
| 4988 | mingw* | pw32*) |
| 4989 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then |
| 4990 | want_nocaseglob=yes |
| 4991 | else |
| 4992 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` |
| 4993 | fi |
| 4994 | ;; |
| 4995 | esac |
| 4996 | fi |
| 4997 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4998 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 4999 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 5000 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 5001 | |
| 5002 | |
| 5003 | |
| 5004 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5005 | |
| 5006 | |
| 5007 | |
| 5008 | |
| 5009 | |
| 5010 | |
| 5011 | |
| 5012 | |
| 5013 | |
| 5014 | |
| 5015 | |
| 5016 | |
| 5017 | |
| 5018 | |
| 5019 | |
| 5020 | |
| 5021 | |
| 5022 | |
| 5023 | if test -n "$ac_tool_prefix"; then |
| 5024 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 5025 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 5026 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5027 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5028 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
| 5029 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5030 | else |
| 5031 | if test -n "$DLLTOOL"; then |
| 5032 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 5033 | else |
| 5034 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5035 | for as_dir in $PATH |
| 5036 | do |
| 5037 | IFS=$as_save_IFS |
| 5038 | test -z "$as_dir" && as_dir=. |
| 5039 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5040 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5041 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 5042 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5043 | break 2 |
| 5044 | fi |
| 5045 | done |
| 5046 | done |
| 5047 | IFS=$as_save_IFS |
| 5048 | |
| 5049 | fi |
| 5050 | fi |
| 5051 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 5052 | if test -n "$DLLTOOL"; then |
| 5053 | { echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
| 5054 | echo "${ECHO_T}$DLLTOOL" >&6; } |
| 5055 | else |
| 5056 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5057 | echo "${ECHO_T}no" >&6; } |
| 5058 | fi |
| 5059 | |
| 5060 | |
| 5061 | fi |
| 5062 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 5063 | ac_ct_DLLTOOL=$DLLTOOL |
| 5064 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 5065 | set dummy dlltool; ac_word=$2 |
| 5066 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5067 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5068 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then |
| 5069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5070 | else |
| 5071 | if test -n "$ac_ct_DLLTOOL"; then |
| 5072 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 5073 | else |
| 5074 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5075 | for as_dir in $PATH |
| 5076 | do |
| 5077 | IFS=$as_save_IFS |
| 5078 | test -z "$as_dir" && as_dir=. |
| 5079 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5080 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5081 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 5082 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5083 | break 2 |
| 5084 | fi |
| 5085 | done |
| 5086 | done |
| 5087 | IFS=$as_save_IFS |
| 5088 | |
| 5089 | fi |
| 5090 | fi |
| 5091 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 5092 | if test -n "$ac_ct_DLLTOOL"; then |
| 5093 | { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 |
| 5094 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; } |
| 5095 | else |
| 5096 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5097 | echo "${ECHO_T}no" >&6; } |
| 5098 | fi |
| 5099 | |
| 5100 | if test "x$ac_ct_DLLTOOL" = x; then |
| 5101 | DLLTOOL="false" |
| 5102 | else |
| 5103 | case $cross_compiling:$ac_tool_warned in |
| 5104 | yes:) |
| 5105 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5106 | whose name does not start with the host triplet. If you think this |
| 5107 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5108 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5109 | whose name does not start with the host triplet. If you think this |
| 5110 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5111 | ac_tool_warned=yes ;; |
| 5112 | esac |
| 5113 | DLLTOOL=$ac_ct_DLLTOOL |
| 5114 | fi |
| 5115 | else |
| 5116 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 5117 | fi |
| 5118 | |
| 5119 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 5120 | |
| 5121 | |
| 5122 | |
| 5123 | |
| 5124 | |
| 5125 | |
| 5126 | |
| 5127 | |
| 5128 | |
| 5129 | |
| 5130 | { echo "$as_me:$LINENO: checking how to associate runtime and link libraries" >&5 |
| 5131 | echo $ECHO_N "checking how to associate runtime and link libraries... $ECHO_C" >&6; } |
| 5132 | if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then |
| 5133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5134 | else |
| 5135 | lt_cv_sharedlib_from_linklib_cmd='unknown' |
| 5136 | |
| 5137 | case $host_os in |
| 5138 | cygwin* | mingw* | pw32* | cegcc*) |
| 5139 | # two different shell functions defined in ltmain.sh |
| 5140 | # decide which to use based on capabilities of $DLLTOOL |
| 5141 | case `$DLLTOOL --help 2>&1` in |
| 5142 | *--identify-strict*) |
| 5143 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib |
| 5144 | ;; |
| 5145 | *) |
| 5146 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback |
| 5147 | ;; |
| 5148 | esac |
| 5149 | ;; |
| 5150 | *) |
| 5151 | # fallback: assume linklib IS sharedlib |
| 5152 | lt_cv_sharedlib_from_linklib_cmd="$ECHO" |
| 5153 | ;; |
| 5154 | esac |
| 5155 | |
| 5156 | fi |
| 5157 | { echo "$as_me:$LINENO: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
| 5158 | echo "${ECHO_T}$lt_cv_sharedlib_from_linklib_cmd" >&6; } |
| 5159 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd |
| 5160 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO |
| 5161 | |
| 5162 | |
| 5163 | |
| 5164 | |
| 5165 | |
| 5166 | |
| 5167 | |
| 5168 | |
| 5169 | if test -n "$ac_tool_prefix"; then |
| 5170 | for ac_prog in ar |
| 5171 | do |
| 5172 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5173 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5174 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5175 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5176 | if test "${ac_cv_prog_AR+set}" = set; then |
| 5177 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5178 | else |
| 5179 | if test -n "$AR"; then |
| 5180 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 5181 | else |
| 5182 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5183 | for as_dir in $PATH |
| 5184 | do |
| 5185 | IFS=$as_save_IFS |
| 5186 | test -z "$as_dir" && as_dir=. |
| 5187 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5188 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5189 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
| 5190 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5191 | break 2 |
| 5192 | fi |
| 5193 | done |
| 5194 | done |
| 5195 | IFS=$as_save_IFS |
| 5196 | |
| 5197 | fi |
| 5198 | fi |
| 5199 | AR=$ac_cv_prog_AR |
| 5200 | if test -n "$AR"; then |
| 5201 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 5202 | echo "${ECHO_T}$AR" >&6; } |
| 5203 | else |
| 5204 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5205 | echo "${ECHO_T}no" >&6; } |
| 5206 | fi |
| 5207 | |
| 5208 | |
| 5209 | test -n "$AR" && break |
| 5210 | done |
| 5211 | fi |
| 5212 | if test -z "$AR"; then |
| 5213 | ac_ct_AR=$AR |
| 5214 | for ac_prog in ar |
| 5215 | do |
| 5216 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5217 | set dummy $ac_prog; ac_word=$2 |
| 5218 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5219 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5220 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 5221 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5222 | else |
| 5223 | if test -n "$ac_ct_AR"; then |
| 5224 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 5225 | else |
| 5226 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5227 | for as_dir in $PATH |
| 5228 | do |
| 5229 | IFS=$as_save_IFS |
| 5230 | test -z "$as_dir" && as_dir=. |
| 5231 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5232 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5233 | ac_cv_prog_ac_ct_AR="$ac_prog" |
| 5234 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5235 | break 2 |
| 5236 | fi |
| 5237 | done |
| 5238 | done |
| 5239 | IFS=$as_save_IFS |
| 5240 | |
| 5241 | fi |
| 5242 | fi |
| 5243 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 5244 | if test -n "$ac_ct_AR"; then |
| 5245 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 5246 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
| 5247 | else |
| 5248 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5249 | echo "${ECHO_T}no" >&6; } |
| 5250 | fi |
| 5251 | |
| 5252 | |
| 5253 | test -n "$ac_ct_AR" && break |
| 5254 | done |
| 5255 | |
| 5256 | if test "x$ac_ct_AR" = x; then |
| 5257 | AR="false" |
| 5258 | else |
| 5259 | case $cross_compiling:$ac_tool_warned in |
| 5260 | yes:) |
| 5261 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5262 | whose name does not start with the host triplet. If you think this |
| 5263 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5264 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5265 | whose name does not start with the host triplet. If you think this |
| 5266 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5267 | ac_tool_warned=yes ;; |
| 5268 | esac |
| 5269 | AR=$ac_ct_AR |
| 5270 | fi |
| 5271 | fi |
| 5272 | |
| 5273 | : ${AR=ar} |
| 5274 | : ${AR_FLAGS=cru} |
| 5275 | |
| 5276 | |
| 5277 | |
| 5278 | |
| 5279 | |
| 5280 | |
| 5281 | |
| 5282 | |
| 5283 | |
| 5284 | |
| 5285 | |
| 5286 | { echo "$as_me:$LINENO: checking for archiver @FILE support" >&5 |
| 5287 | echo $ECHO_N "checking for archiver @FILE support... $ECHO_C" >&6; } |
| 5288 | if test "${lt_cv_ar_at_file+set}" = set; then |
| 5289 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5290 | else |
| 5291 | lt_cv_ar_at_file=no |
| 5292 | cat >conftest.$ac_ext <<_ACEOF |
| 5293 | /* confdefs.h. */ |
| 5294 | _ACEOF |
| 5295 | cat confdefs.h >>conftest.$ac_ext |
| 5296 | cat >>conftest.$ac_ext <<_ACEOF |
| 5297 | /* end confdefs.h. */ |
| 5298 | |
| 5299 | int |
| 5300 | main () |
| 5301 | { |
| 5302 | |
| 5303 | ; |
| 5304 | return 0; |
| 5305 | } |
| 5306 | _ACEOF |
| 5307 | rm -f conftest.$ac_objext |
| 5308 | if { (ac_try="$ac_compile" |
| 5309 | case "(($ac_try" in |
| 5310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5311 | *) ac_try_echo=$ac_try;; |
| 5312 | esac |
| 5313 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5314 | (eval "$ac_compile") 2>conftest.er1 |
| 5315 | ac_status=$? |
| 5316 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5317 | rm -f conftest.er1 |
| 5318 | cat conftest.err >&5 |
| 5319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5320 | (exit $ac_status); } && |
| 5321 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5322 | { (case "(($ac_try" in |
| 5323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5324 | *) ac_try_echo=$ac_try;; |
| 5325 | esac |
| 5326 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5327 | (eval "$ac_try") 2>&5 |
| 5328 | ac_status=$? |
| 5329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5330 | (exit $ac_status); }; } && |
| 5331 | { ac_try='test -s conftest.$ac_objext' |
| 5332 | { (case "(($ac_try" in |
| 5333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5334 | *) ac_try_echo=$ac_try;; |
| 5335 | esac |
| 5336 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5337 | (eval "$ac_try") 2>&5 |
| 5338 | ac_status=$? |
| 5339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5340 | (exit $ac_status); }; }; then |
| 5341 | echo conftest.$ac_objext > conftest.lst |
| 5342 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' |
| 5343 | { (eval echo "$as_me:$LINENO: \"$lt_ar_try\"") >&5 |
| 5344 | (eval $lt_ar_try) 2>&5 |
| 5345 | ac_status=$? |
| 5346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5347 | (exit $ac_status); } |
| 5348 | if test "$ac_status" -eq 0; then |
| 5349 | # Ensure the archiver fails upon bogus file names. |
| 5350 | rm -f conftest.$ac_objext libconftest.a |
| 5351 | { (eval echo "$as_me:$LINENO: \"$lt_ar_try\"") >&5 |
| 5352 | (eval $lt_ar_try) 2>&5 |
| 5353 | ac_status=$? |
| 5354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5355 | (exit $ac_status); } |
| 5356 | if test "$ac_status" -ne 0; then |
| 5357 | lt_cv_ar_at_file=@ |
| 5358 | fi |
| 5359 | fi |
| 5360 | rm -f conftest.* libconftest.a |
| 5361 | |
| 5362 | else |
| 5363 | echo "$as_me: failed program was:" >&5 |
| 5364 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5365 | |
| 5366 | |
| 5367 | fi |
| 5368 | |
| 5369 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5370 | |
| 5371 | fi |
| 5372 | { echo "$as_me:$LINENO: result: $lt_cv_ar_at_file" >&5 |
| 5373 | echo "${ECHO_T}$lt_cv_ar_at_file" >&6; } |
| 5374 | |
| 5375 | if test "x$lt_cv_ar_at_file" = xno; then |
| 5376 | archiver_list_spec= |
| 5377 | else |
| 5378 | archiver_list_spec=$lt_cv_ar_at_file |
| 5379 | fi |
| 5380 | |
| 5381 | |
| 5382 | |
| 5383 | |
| 5384 | |
| 5385 | |
| 5386 | |
| 5387 | if test -n "$ac_tool_prefix"; then |
| 5388 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 5389 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 5390 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5391 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5392 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 5393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5394 | else |
| 5395 | if test -n "$STRIP"; then |
| 5396 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 5397 | else |
| 5398 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5399 | for as_dir in $PATH |
| 5400 | do |
| 5401 | IFS=$as_save_IFS |
| 5402 | test -z "$as_dir" && as_dir=. |
| 5403 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5404 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5405 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 5406 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5407 | break 2 |
| 5408 | fi |
| 5409 | done |
| 5410 | done |
| 5411 | IFS=$as_save_IFS |
| 5412 | |
| 5413 | fi |
| 5414 | fi |
| 5415 | STRIP=$ac_cv_prog_STRIP |
| 5416 | if test -n "$STRIP"; then |
| 5417 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 5418 | echo "${ECHO_T}$STRIP" >&6; } |
| 5419 | else |
| 5420 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5421 | echo "${ECHO_T}no" >&6; } |
| 5422 | fi |
| 5423 | |
| 5424 | |
| 5425 | fi |
| 5426 | if test -z "$ac_cv_prog_STRIP"; then |
| 5427 | ac_ct_STRIP=$STRIP |
| 5428 | # Extract the first word of "strip", so it can be a program name with args. |
| 5429 | set dummy strip; ac_word=$2 |
| 5430 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5431 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5432 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 5433 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5434 | else |
| 5435 | if test -n "$ac_ct_STRIP"; then |
| 5436 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 5437 | else |
| 5438 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5439 | for as_dir in $PATH |
| 5440 | do |
| 5441 | IFS=$as_save_IFS |
| 5442 | test -z "$as_dir" && as_dir=. |
| 5443 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5444 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5445 | ac_cv_prog_ac_ct_STRIP="strip" |
| 5446 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5447 | break 2 |
| 5448 | fi |
| 5449 | done |
| 5450 | done |
| 5451 | IFS=$as_save_IFS |
| 5452 | |
| 5453 | fi |
| 5454 | fi |
| 5455 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 5456 | if test -n "$ac_ct_STRIP"; then |
| 5457 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 5458 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
| 5459 | else |
| 5460 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5461 | echo "${ECHO_T}no" >&6; } |
| 5462 | fi |
| 5463 | |
| 5464 | if test "x$ac_ct_STRIP" = x; then |
| 5465 | STRIP=":" |
| 5466 | else |
| 5467 | case $cross_compiling:$ac_tool_warned in |
| 5468 | yes:) |
| 5469 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5470 | whose name does not start with the host triplet. If you think this |
| 5471 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5472 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5473 | whose name does not start with the host triplet. If you think this |
| 5474 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5475 | ac_tool_warned=yes ;; |
| 5476 | esac |
| 5477 | STRIP=$ac_ct_STRIP |
| 5478 | fi |
| 5479 | else |
| 5480 | STRIP="$ac_cv_prog_STRIP" |
| 5481 | fi |
| 5482 | |
| 5483 | test -z "$STRIP" && STRIP=: |
| 5484 | |
| 5485 | |
| 5486 | |
| 5487 | |
| 5488 | |
| 5489 | |
| 5490 | if test -n "$ac_tool_prefix"; then |
| 5491 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5492 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 5493 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5494 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5495 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 5496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5497 | else |
| 5498 | if test -n "$RANLIB"; then |
| 5499 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5500 | else |
| 5501 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5502 | for as_dir in $PATH |
| 5503 | do |
| 5504 | IFS=$as_save_IFS |
| 5505 | test -z "$as_dir" && as_dir=. |
| 5506 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5507 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5508 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 5509 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5510 | break 2 |
| 5511 | fi |
| 5512 | done |
| 5513 | done |
| 5514 | IFS=$as_save_IFS |
| 5515 | |
| 5516 | fi |
| 5517 | fi |
| 5518 | RANLIB=$ac_cv_prog_RANLIB |
| 5519 | if test -n "$RANLIB"; then |
| 5520 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 5521 | echo "${ECHO_T}$RANLIB" >&6; } |
| 5522 | else |
| 5523 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5524 | echo "${ECHO_T}no" >&6; } |
| 5525 | fi |
| 5526 | |
| 5527 | |
| 5528 | fi |
| 5529 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5530 | ac_ct_RANLIB=$RANLIB |
| 5531 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5532 | set dummy ranlib; ac_word=$2 |
| 5533 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5534 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5535 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 5536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5537 | else |
| 5538 | if test -n "$ac_ct_RANLIB"; then |
| 5539 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5540 | else |
| 5541 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5542 | for as_dir in $PATH |
| 5543 | do |
| 5544 | IFS=$as_save_IFS |
| 5545 | test -z "$as_dir" && as_dir=. |
| 5546 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5547 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5548 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 5549 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5550 | break 2 |
| 5551 | fi |
| 5552 | done |
| 5553 | done |
| 5554 | IFS=$as_save_IFS |
| 5555 | |
| 5556 | fi |
| 5557 | fi |
| 5558 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5559 | if test -n "$ac_ct_RANLIB"; then |
| 5560 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 5561 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
| 5562 | else |
| 5563 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5564 | echo "${ECHO_T}no" >&6; } |
| 5565 | fi |
| 5566 | |
| 5567 | if test "x$ac_ct_RANLIB" = x; then |
| 5568 | RANLIB=":" |
| 5569 | else |
| 5570 | case $cross_compiling:$ac_tool_warned in |
| 5571 | yes:) |
| 5572 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5573 | whose name does not start with the host triplet. If you think this |
| 5574 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5575 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5576 | whose name does not start with the host triplet. If you think this |
| 5577 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5578 | ac_tool_warned=yes ;; |
| 5579 | esac |
| 5580 | RANLIB=$ac_ct_RANLIB |
| 5581 | fi |
| 5582 | else |
| 5583 | RANLIB="$ac_cv_prog_RANLIB" |
| 5584 | fi |
| 5585 | |
| 5586 | test -z "$RANLIB" && RANLIB=: |
| 5587 | |
| 5588 | |
| 5589 | |
| 5590 | |
| 5591 | |
| 5592 | |
| 5593 | # Determine commands to create old-style static archives. |
| 5594 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
| 5595 | old_postinstall_cmds='chmod 644 $oldlib' |
| 5596 | old_postuninstall_cmds= |
| 5597 | |
| 5598 | if test -n "$RANLIB"; then |
| 5599 | case $host_os in |
| 5600 | openbsd*) |
| 5601 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
| 5602 | ;; |
| 5603 | *) |
| 5604 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
| 5605 | ;; |
| 5606 | esac |
| 5607 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 5608 | fi |
| 5609 | |
| 5610 | case $host_os in |
| 5611 | darwin*) |
| 5612 | lock_old_archive_extraction=yes ;; |
| 5613 | *) |
| 5614 | lock_old_archive_extraction=no ;; |
| 5615 | esac |
| 5616 | |
| 5617 | |
| 5618 | |
| 5619 | |
| 5620 | |
| 5621 | |
| 5622 | |
| 5623 | |
| 5624 | |
| 5625 | |
| 5626 | |
| 5627 | |
| 5628 | |
| 5629 | |
| 5630 | |
| 5631 | |
| 5632 | |
| 5633 | |
| 5634 | |
| 5635 | |
| 5636 | |
| 5637 | |
| 5638 | |
| 5639 | |
| 5640 | |
| 5641 | |
| 5642 | |
| 5643 | |
| 5644 | |
| 5645 | |
| 5646 | |
| 5647 | |
| 5648 | |
| 5649 | |
| 5650 | |
| 5651 | |
| 5652 | |
| 5653 | |
| 5654 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5655 | # If no C compiler was specified, use CC. |
| 5656 | LTCC=${LTCC-"$CC"} |
| 5657 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 5658 | # If no C compiler flags were specified, use CFLAGS. |
| 5659 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 5660 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5661 | # Allow CC to be a program name with arguments. |
| 5662 | compiler=$CC |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 5663 | |
| 5664 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5665 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 5666 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 5667 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
| 5668 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 5669 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5670 | else |
| 5671 | |
| 5672 | # These are sane defaults that work on at least a few old systems. |
| 5673 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 5674 | |
| 5675 | # Character class describing NM global symbol codes. |
| 5676 | symcode='[BCDEGRST]' |
| 5677 | |
| 5678 | # Regexp to match symbols that can be accessed directly from C. |
| 5679 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 5680 | |
| 5681 | # Define system-specific variables. |
| 5682 | case $host_os in |
| 5683 | aix*) |
| 5684 | symcode='[BCDT]' |
| 5685 | ;; |
| 5686 | cygwin* | mingw* | pw32* | cegcc*) |
| 5687 | symcode='[ABCDGISTW]' |
| 5688 | ;; |
| 5689 | hpux*) |
| 5690 | if test "$host_cpu" = ia64; then |
| 5691 | symcode='[ABCDEGRST]' |
| 5692 | fi |
| 5693 | ;; |
| 5694 | irix* | nonstopux*) |
| 5695 | symcode='[BCDEGRST]' |
| 5696 | ;; |
| 5697 | osf*) |
| 5698 | symcode='[BCDEGQRST]' |
| 5699 | ;; |
| 5700 | solaris*) |
| 5701 | symcode='[BDRT]' |
| 5702 | ;; |
| 5703 | sco3.2v5*) |
| 5704 | symcode='[DT]' |
| 5705 | ;; |
| 5706 | sysv4.2uw2*) |
| 5707 | symcode='[DT]' |
| 5708 | ;; |
| 5709 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 5710 | symcode='[ABDT]' |
| 5711 | ;; |
| 5712 | sysv4) |
| 5713 | symcode='[DFNSTU]' |
| 5714 | ;; |
| 5715 | esac |
| 5716 | |
| 5717 | # If we're using GNU nm, then use its standard symbol codes. |
| 5718 | case `$NM -V 2>&1` in |
| 5719 | *GNU* | *'with BFD'*) |
| 5720 | symcode='[ABCDGIRSTW]' ;; |
| 5721 | esac |
| 5722 | |
| 5723 | # Transform an extracted symbol line into a proper C declaration. |
| 5724 | # Some systems (esp. on ia64) link data and code symbols differently, |
| 5725 | # so use this general approach. |
| 5726 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 5727 | |
| 5728 | # Transform an extracted symbol line into symbol name and symbol address |
| 5729 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
| 5730 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" |
| 5731 | |
| 5732 | # Handle CRLF in mingw tool chain |
| 5733 | opt_cr= |
| 5734 | case $build_os in |
| 5735 | mingw*) |
| 5736 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 5737 | ;; |
| 5738 | esac |
| 5739 | |
| 5740 | # Try without a prefix underscore, then with it. |
| 5741 | for ac_symprfx in "" "_"; do |
| 5742 | |
| 5743 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 5744 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 5745 | |
| 5746 | # Write the raw and C identifiers. |
| 5747 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 5748 | # Fake it for dumpbin and say T for any non-static function |
| 5749 | # and D for any global variable. |
| 5750 | # Also find C++ and __fastcall symbols from MSVC++, |
| 5751 | # which start with @ or ?. |
| 5752 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
| 5753 | " {last_section=section; section=\$ 3};"\ |
| 5754 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 5755 | " \$ 0!~/External *\|/{next};"\ |
| 5756 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 5757 | " {if(hide[section]) next};"\ |
| 5758 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
| 5759 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
| 5760 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
| 5761 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
| 5762 | " ' prfx=^$ac_symprfx" |
| 5763 | else |
| 5764 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 5765 | fi |
| 5766 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
| 5767 | |
| 5768 | # Check to see that the pipe works correctly. |
| 5769 | pipe_works=no |
| 5770 | |
| 5771 | rm -f conftest* |
| 5772 | cat > conftest.$ac_ext <<_LT_EOF |
| 5773 | #ifdef __cplusplus |
| 5774 | extern "C" { |
| 5775 | #endif |
| 5776 | char nm_test_var; |
| 5777 | void nm_test_func(void); |
| 5778 | void nm_test_func(void){} |
| 5779 | #ifdef __cplusplus |
| 5780 | } |
| 5781 | #endif |
| 5782 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 5783 | _LT_EOF |
| 5784 | |
| 5785 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5786 | (eval $ac_compile) 2>&5 |
| 5787 | ac_status=$? |
| 5788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5789 | (exit $ac_status); }; then |
| 5790 | # Now try to grab the symbols. |
| 5791 | nlist=conftest.nm |
| 5792 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\"") >&5 |
| 5793 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 |
| 5794 | ac_status=$? |
| 5795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5796 | (exit $ac_status); } && test -s "$nlist"; then |
| 5797 | # Try sorting and uniquifying the output. |
| 5798 | if sort "$nlist" | uniq > "$nlist"T; then |
| 5799 | mv -f "$nlist"T "$nlist" |
| 5800 | else |
| 5801 | rm -f "$nlist"T |
| 5802 | fi |
| 5803 | |
| 5804 | # Make sure that we snagged all the symbols we need. |
| 5805 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 5806 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 5807 | cat <<_LT_EOF > conftest.$ac_ext |
| 5808 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
| 5809 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) |
| 5810 | /* DATA imports from DLLs on WIN32 con't be const, because runtime |
| 5811 | relocations are performed -- see ld's documentation on pseudo-relocs. */ |
| 5812 | # define LT_DLSYM_CONST |
| 5813 | #elif defined(__osf__) |
| 5814 | /* This system does not cope well with relocations in const data. */ |
| 5815 | # define LT_DLSYM_CONST |
| 5816 | #else |
| 5817 | # define LT_DLSYM_CONST const |
| 5818 | #endif |
| 5819 | |
| 5820 | #ifdef __cplusplus |
| 5821 | extern "C" { |
| 5822 | #endif |
| 5823 | |
| 5824 | _LT_EOF |
| 5825 | # Now generate the symbol file. |
| 5826 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
| 5827 | |
| 5828 | cat <<_LT_EOF >> conftest.$ac_ext |
| 5829 | |
| 5830 | /* The mapping between symbol names and symbols. */ |
| 5831 | LT_DLSYM_CONST struct { |
| 5832 | const char *name; |
| 5833 | void *address; |
| 5834 | } |
| 5835 | lt__PROGRAM__LTX_preloaded_symbols[] = |
| 5836 | { |
| 5837 | { "@PROGRAM@", (void *) 0 }, |
| 5838 | _LT_EOF |
| 5839 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 5840 | cat <<\_LT_EOF >> conftest.$ac_ext |
| 5841 | {0, (void *) 0} |
| 5842 | }; |
| 5843 | |
| 5844 | /* This works around a problem in FreeBSD linker */ |
| 5845 | #ifdef FREEBSD_WORKAROUND |
| 5846 | static const void *lt_preloaded_setup() { |
| 5847 | return lt__PROGRAM__LTX_preloaded_symbols; |
| 5848 | } |
| 5849 | #endif |
| 5850 | |
| 5851 | #ifdef __cplusplus |
| 5852 | } |
| 5853 | #endif |
| 5854 | _LT_EOF |
| 5855 | # Now try linking the two files. |
| 5856 | mv conftest.$ac_objext conftstm.$ac_objext |
| 5857 | lt_globsym_save_LIBS=$LIBS |
| 5858 | lt_globsym_save_CFLAGS=$CFLAGS |
| 5859 | LIBS="conftstm.$ac_objext" |
| 5860 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 5861 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5862 | (eval $ac_link) 2>&5 |
| 5863 | ac_status=$? |
| 5864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5865 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 5866 | pipe_works=yes |
| 5867 | fi |
| 5868 | LIBS=$lt_globsym_save_LIBS |
| 5869 | CFLAGS=$lt_globsym_save_CFLAGS |
| 5870 | else |
| 5871 | echo "cannot find nm_test_func in $nlist" >&5 |
| 5872 | fi |
| 5873 | else |
| 5874 | echo "cannot find nm_test_var in $nlist" >&5 |
| 5875 | fi |
| 5876 | else |
| 5877 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 5878 | fi |
| 5879 | else |
| 5880 | echo "$progname: failed program was:" >&5 |
| 5881 | cat conftest.$ac_ext >&5 |
| 5882 | fi |
| 5883 | rm -rf conftest* conftst* |
| 5884 | |
| 5885 | # Do not use the global_symbol_pipe unless it works. |
| 5886 | if test "$pipe_works" = yes; then |
| 5887 | break |
| 5888 | else |
| 5889 | lt_cv_sys_global_symbol_pipe= |
| 5890 | fi |
| 5891 | done |
| 5892 | |
| 5893 | fi |
| 5894 | |
| 5895 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 5896 | lt_cv_sys_global_symbol_to_cdecl= |
| 5897 | fi |
| 5898 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 5899 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 5900 | echo "${ECHO_T}failed" >&6; } |
| 5901 | else |
| 5902 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 5903 | echo "${ECHO_T}ok" >&6; } |
| 5904 | fi |
| 5905 | |
| 5906 | # Response file support. |
| 5907 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 5908 | nm_file_list_spec='@' |
| 5909 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then |
| 5910 | nm_file_list_spec='@' |
| 5911 | fi |
| 5912 | |
| 5913 | |
| 5914 | |
| 5915 | |
| 5916 | |
| 5917 | |
| 5918 | |
| 5919 | |
| 5920 | |
| 5921 | |
| 5922 | |
| 5923 | |
| 5924 | |
| 5925 | |
| 5926 | |
| 5927 | |
| 5928 | |
| 5929 | |
| 5930 | |
| 5931 | |
| 5932 | |
| 5933 | |
| 5934 | |
| 5935 | |
| 5936 | |
| 5937 | |
| 5938 | |
| 5939 | { echo "$as_me:$LINENO: checking for sysroot" >&5 |
| 5940 | echo $ECHO_N "checking for sysroot... $ECHO_C" >&6; } |
| 5941 | |
| 5942 | # Check whether --with-sysroot was given. |
| 5943 | if test "${with_sysroot+set}" = set; then |
| 5944 | withval=$with_sysroot; |
| 5945 | else |
| 5946 | with_sysroot=no |
| 5947 | fi |
| 5948 | |
| 5949 | |
| 5950 | lt_sysroot= |
| 5951 | case ${with_sysroot} in #( |
| 5952 | yes) |
| 5953 | if test "$GCC" = yes; then |
| 5954 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
| 5955 | fi |
| 5956 | ;; #( |
| 5957 | /*) |
| 5958 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` |
| 5959 | ;; #( |
| 5960 | no|'') |
| 5961 | ;; #( |
| 5962 | *) |
| 5963 | { echo "$as_me:$LINENO: result: ${with_sysroot}" >&5 |
| 5964 | echo "${ECHO_T}${with_sysroot}" >&6; } |
| 5965 | { { echo "$as_me:$LINENO: error: The sysroot must be an absolute path." >&5 |
| 5966 | echo "$as_me: error: The sysroot must be an absolute path." >&2;} |
| 5967 | { (exit 1); exit 1; }; } |
| 5968 | ;; |
| 5969 | esac |
| 5970 | |
| 5971 | { echo "$as_me:$LINENO: result: ${lt_sysroot:-no}" >&5 |
| 5972 | echo "${ECHO_T}${lt_sysroot:-no}" >&6; } |
| 5973 | |
| 5974 | |
| 5975 | |
| 5976 | |
| 5977 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5978 | # Check whether --enable-libtool-lock was given. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 5979 | if test "${enable_libtool_lock+set}" = set; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 5980 | enableval=$enable_libtool_lock; |
| 5981 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 5982 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5983 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 5984 | |
| 5985 | # Some flags need to be propagated to the compiler or linker for good |
| 5986 | # libtool support. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5987 | case $host in |
| 5988 | ia64-*-hpux*) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 5989 | # Find out which ABI we are using. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5990 | echo 'int i;' > conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 5991 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5992 | (eval $ac_compile) 2>&5 |
| 5993 | ac_status=$? |
| 5994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5995 | (exit $ac_status); }; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5996 | case `/usr/bin/file conftest.$ac_objext` in |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5997 | *ELF-32*) |
| 5998 | HPUX_IA64_MODE="32" |
| 5999 | ;; |
| 6000 | *ELF-64*) |
| 6001 | HPUX_IA64_MODE="64" |
| 6002 | ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6003 | esac |
| 6004 | fi |
| 6005 | rm -rf conftest* |
| 6006 | ;; |
| 6007 | *-*-irix6*) |
| 6008 | # Find out which ABI we are using. |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6009 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6010 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6011 | (eval $ac_compile) 2>&5 |
| 6012 | ac_status=$? |
| 6013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6014 | (exit $ac_status); }; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6015 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 6016 | case `/usr/bin/file conftest.$ac_objext` in |
| 6017 | *32-bit*) |
| 6018 | LD="${LD-ld} -melf32bsmip" |
| 6019 | ;; |
| 6020 | *N32*) |
| 6021 | LD="${LD-ld} -melf32bmipn32" |
| 6022 | ;; |
| 6023 | *64-bit*) |
| 6024 | LD="${LD-ld} -melf64bmip" |
| 6025 | ;; |
| 6026 | esac |
| 6027 | else |
| 6028 | case `/usr/bin/file conftest.$ac_objext` in |
| 6029 | *32-bit*) |
| 6030 | LD="${LD-ld} -32" |
| 6031 | ;; |
| 6032 | *N32*) |
| 6033 | LD="${LD-ld} -n32" |
| 6034 | ;; |
| 6035 | *64-bit*) |
| 6036 | LD="${LD-ld} -64" |
| 6037 | ;; |
| 6038 | esac |
| 6039 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6040 | fi |
| 6041 | rm -rf conftest* |
| 6042 | ;; |
| 6043 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6044 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
| 6045 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6046 | # Find out which ABI we are using. |
| 6047 | echo 'int i;' > conftest.$ac_ext |
| 6048 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6049 | (eval $ac_compile) 2>&5 |
| 6050 | ac_status=$? |
| 6051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6052 | (exit $ac_status); }; then |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 6053 | case `/usr/bin/file conftest.o` in |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6054 | *32-bit*) |
| 6055 | case $host in |
| 6056 | x86_64-*kfreebsd*-gnu) |
| 6057 | LD="${LD-ld} -m elf_i386_fbsd" |
| 6058 | ;; |
| 6059 | x86_64-*linux*) |
| 6060 | LD="${LD-ld} -m elf_i386" |
| 6061 | ;; |
| 6062 | ppc64-*linux*|powerpc64-*linux*) |
| 6063 | LD="${LD-ld} -m elf32ppclinux" |
| 6064 | ;; |
| 6065 | s390x-*linux*) |
| 6066 | LD="${LD-ld} -m elf_s390" |
| 6067 | ;; |
| 6068 | sparc64-*linux*) |
| 6069 | LD="${LD-ld} -m elf32_sparc" |
| 6070 | ;; |
| 6071 | esac |
| 6072 | ;; |
| 6073 | *64-bit*) |
| 6074 | case $host in |
| 6075 | x86_64-*kfreebsd*-gnu) |
| 6076 | LD="${LD-ld} -m elf_x86_64_fbsd" |
| 6077 | ;; |
| 6078 | x86_64-*linux*) |
| 6079 | LD="${LD-ld} -m elf_x86_64" |
| 6080 | ;; |
| 6081 | ppc*-*linux*|powerpc*-*linux*) |
| 6082 | LD="${LD-ld} -m elf64ppc" |
| 6083 | ;; |
| 6084 | s390*-*linux*|s390*-*tpf*) |
| 6085 | LD="${LD-ld} -m elf64_s390" |
| 6086 | ;; |
| 6087 | sparc*-*linux*) |
| 6088 | LD="${LD-ld} -m elf64_sparc" |
| 6089 | ;; |
| 6090 | esac |
| 6091 | ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6092 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 6093 | fi |
| 6094 | rm -rf conftest* |
| 6095 | ;; |
| 6096 | |
| 6097 | *-*-sco3.2v5*) |
| 6098 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 6099 | SAVE_CFLAGS="$CFLAGS" |
| 6100 | CFLAGS="$CFLAGS -belf" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6101 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 6102 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 6103 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 6104 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6105 | else |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6106 | ac_ext=c |
| 6107 | ac_cpp='$CPP $CPPFLAGS' |
| 6108 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6109 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6110 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6111 | |
| 6112 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 6113 | /* confdefs.h. */ |
| 6114 | _ACEOF |
| 6115 | cat confdefs.h >>conftest.$ac_ext |
| 6116 | cat >>conftest.$ac_ext <<_ACEOF |
| 6117 | /* end confdefs.h. */ |
| 6118 | |
| 6119 | int |
| 6120 | main () |
| 6121 | { |
| 6122 | |
| 6123 | ; |
| 6124 | return 0; |
| 6125 | } |
| 6126 | _ACEOF |
| 6127 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6128 | if { (ac_try="$ac_link" |
| 6129 | case "(($ac_try" in |
| 6130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6131 | *) ac_try_echo=$ac_try;; |
| 6132 | esac |
| 6133 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6134 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 6135 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6136 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6137 | rm -f conftest.er1 |
| 6138 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 6139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6140 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6141 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6142 | { (case "(($ac_try" in |
| 6143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6144 | *) ac_try_echo=$ac_try;; |
| 6145 | esac |
| 6146 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6147 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6148 | ac_status=$? |
| 6149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6150 | (exit $ac_status); }; } && |
| 6151 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6152 | { (case "(($ac_try" in |
| 6153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6154 | *) ac_try_echo=$ac_try;; |
| 6155 | esac |
| 6156 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6157 | (eval "$ac_try") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 6158 | ac_status=$? |
| 6159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6160 | (exit $ac_status); }; }; then |
| 6161 | lt_cv_cc_needs_belf=yes |
| 6162 | else |
| 6163 | echo "$as_me: failed program was:" >&5 |
| 6164 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6165 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6166 | lt_cv_cc_needs_belf=no |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 6167 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6168 | |
| 6169 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6170 | conftest$ac_exeext conftest.$ac_ext |
| 6171 | ac_ext=c |
| 6172 | ac_cpp='$CPP $CPPFLAGS' |
| 6173 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6174 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6175 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6176 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 6177 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6178 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 6179 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 6180 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 6181 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 6182 | CFLAGS="$SAVE_CFLAGS" |
| 6183 | fi |
| 6184 | ;; |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 6185 | sparc*-*solaris*) |
| 6186 | # Find out which ABI we are using. |
| 6187 | echo 'int i;' > conftest.$ac_ext |
| 6188 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6189 | (eval $ac_compile) 2>&5 |
| 6190 | ac_status=$? |
| 6191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6192 | (exit $ac_status); }; then |
| 6193 | case `/usr/bin/file conftest.o` in |
| 6194 | *64-bit*) |
| 6195 | case $lt_cv_prog_gnu_ld in |
| 6196 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6197 | *) |
| 6198 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 6199 | LD="${LD-ld} -64" |
| 6200 | fi |
| 6201 | ;; |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 6202 | esac |
| 6203 | ;; |
| 6204 | esac |
| 6205 | fi |
| 6206 | rm -rf conftest* |
| 6207 | ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 6208 | esac |
| 6209 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6210 | need_locks="$enable_libtool_lock" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 6211 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6212 | if test -n "$ac_tool_prefix"; then |
| 6213 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. |
| 6214 | set dummy ${ac_tool_prefix}mt; ac_word=$2 |
| 6215 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6216 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6217 | if test "${ac_cv_prog_MANIFEST_TOOL+set}" = set; then |
| 6218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6219 | else |
| 6220 | if test -n "$MANIFEST_TOOL"; then |
| 6221 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. |
| 6222 | else |
| 6223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6224 | for as_dir in $PATH |
| 6225 | do |
| 6226 | IFS=$as_save_IFS |
| 6227 | test -z "$as_dir" && as_dir=. |
| 6228 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6229 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6230 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" |
| 6231 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6232 | break 2 |
| 6233 | fi |
| 6234 | done |
| 6235 | done |
| 6236 | IFS=$as_save_IFS |
| 6237 | |
| 6238 | fi |
| 6239 | fi |
| 6240 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL |
| 6241 | if test -n "$MANIFEST_TOOL"; then |
| 6242 | { echo "$as_me:$LINENO: result: $MANIFEST_TOOL" >&5 |
| 6243 | echo "${ECHO_T}$MANIFEST_TOOL" >&6; } |
| 6244 | else |
| 6245 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6246 | echo "${ECHO_T}no" >&6; } |
| 6247 | fi |
| 6248 | |
| 6249 | |
| 6250 | fi |
| 6251 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then |
| 6252 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL |
| 6253 | # Extract the first word of "mt", so it can be a program name with args. |
| 6254 | set dummy mt; ac_word=$2 |
| 6255 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6256 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6257 | if test "${ac_cv_prog_ac_ct_MANIFEST_TOOL+set}" = set; then |
| 6258 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6259 | else |
| 6260 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 6261 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. |
| 6262 | else |
| 6263 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6264 | for as_dir in $PATH |
| 6265 | do |
| 6266 | IFS=$as_save_IFS |
| 6267 | test -z "$as_dir" && as_dir=. |
| 6268 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6269 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6270 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" |
| 6271 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6272 | break 2 |
| 6273 | fi |
| 6274 | done |
| 6275 | done |
| 6276 | IFS=$as_save_IFS |
| 6277 | |
| 6278 | fi |
| 6279 | fi |
| 6280 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL |
| 6281 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 6282 | { echo "$as_me:$LINENO: result: $ac_ct_MANIFEST_TOOL" >&5 |
| 6283 | echo "${ECHO_T}$ac_ct_MANIFEST_TOOL" >&6; } |
| 6284 | else |
| 6285 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6286 | echo "${ECHO_T}no" >&6; } |
| 6287 | fi |
| 6288 | |
| 6289 | if test "x$ac_ct_MANIFEST_TOOL" = x; then |
| 6290 | MANIFEST_TOOL=":" |
| 6291 | else |
| 6292 | case $cross_compiling:$ac_tool_warned in |
| 6293 | yes:) |
| 6294 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6295 | whose name does not start with the host triplet. If you think this |
| 6296 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6297 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6298 | whose name does not start with the host triplet. If you think this |
| 6299 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6300 | ac_tool_warned=yes ;; |
| 6301 | esac |
| 6302 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL |
| 6303 | fi |
| 6304 | else |
| 6305 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" |
| 6306 | fi |
| 6307 | |
| 6308 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
| 6309 | { echo "$as_me:$LINENO: checking if $MANIFEST_TOOL is a manifest tool" >&5 |
| 6310 | echo $ECHO_N "checking if $MANIFEST_TOOL is a manifest tool... $ECHO_C" >&6; } |
| 6311 | if test "${lt_cv_path_mainfest_tool+set}" = set; then |
| 6312 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6313 | else |
| 6314 | lt_cv_path_mainfest_tool=no |
| 6315 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 |
| 6316 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out |
| 6317 | cat conftest.err >&5 |
| 6318 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then |
| 6319 | lt_cv_path_mainfest_tool=yes |
| 6320 | fi |
| 6321 | rm -f conftest* |
| 6322 | fi |
| 6323 | { echo "$as_me:$LINENO: result: $lt_cv_path_mainfest_tool" >&5 |
| 6324 | echo "${ECHO_T}$lt_cv_path_mainfest_tool" >&6; } |
| 6325 | if test "x$lt_cv_path_mainfest_tool" != xyes; then |
| 6326 | MANIFEST_TOOL=: |
| 6327 | fi |
| 6328 | |
| 6329 | |
| 6330 | |
| 6331 | |
| 6332 | |
| 6333 | |
| 6334 | case $host_os in |
| 6335 | rhapsody* | darwin*) |
| 6336 | if test -n "$ac_tool_prefix"; then |
| 6337 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
| 6338 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
| 6339 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6340 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6341 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then |
| 6342 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6343 | else |
| 6344 | if test -n "$DSYMUTIL"; then |
| 6345 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
| 6346 | else |
| 6347 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6348 | for as_dir in $PATH |
| 6349 | do |
| 6350 | IFS=$as_save_IFS |
| 6351 | test -z "$as_dir" && as_dir=. |
| 6352 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6353 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6354 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
| 6355 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6356 | break 2 |
| 6357 | fi |
| 6358 | done |
| 6359 | done |
| 6360 | IFS=$as_save_IFS |
| 6361 | |
| 6362 | fi |
| 6363 | fi |
| 6364 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
| 6365 | if test -n "$DSYMUTIL"; then |
| 6366 | { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 |
| 6367 | echo "${ECHO_T}$DSYMUTIL" >&6; } |
| 6368 | else |
| 6369 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6370 | echo "${ECHO_T}no" >&6; } |
| 6371 | fi |
| 6372 | |
| 6373 | |
| 6374 | fi |
| 6375 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
| 6376 | ac_ct_DSYMUTIL=$DSYMUTIL |
| 6377 | # Extract the first word of "dsymutil", so it can be a program name with args. |
| 6378 | set dummy dsymutil; ac_word=$2 |
| 6379 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6380 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6381 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then |
| 6382 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6383 | else |
| 6384 | if test -n "$ac_ct_DSYMUTIL"; then |
| 6385 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
| 6386 | else |
| 6387 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6388 | for as_dir in $PATH |
| 6389 | do |
| 6390 | IFS=$as_save_IFS |
| 6391 | test -z "$as_dir" && as_dir=. |
| 6392 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6393 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6394 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
| 6395 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6396 | break 2 |
| 6397 | fi |
| 6398 | done |
| 6399 | done |
| 6400 | IFS=$as_save_IFS |
| 6401 | |
| 6402 | fi |
| 6403 | fi |
| 6404 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
| 6405 | if test -n "$ac_ct_DSYMUTIL"; then |
| 6406 | { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 |
| 6407 | echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; } |
| 6408 | else |
| 6409 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6410 | echo "${ECHO_T}no" >&6; } |
| 6411 | fi |
| 6412 | |
| 6413 | if test "x$ac_ct_DSYMUTIL" = x; then |
| 6414 | DSYMUTIL=":" |
| 6415 | else |
| 6416 | case $cross_compiling:$ac_tool_warned in |
| 6417 | yes:) |
| 6418 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6419 | whose name does not start with the host triplet. If you think this |
| 6420 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6421 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6422 | whose name does not start with the host triplet. If you think this |
| 6423 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6424 | ac_tool_warned=yes ;; |
| 6425 | esac |
| 6426 | DSYMUTIL=$ac_ct_DSYMUTIL |
| 6427 | fi |
| 6428 | else |
| 6429 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
| 6430 | fi |
| 6431 | |
| 6432 | if test -n "$ac_tool_prefix"; then |
| 6433 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
| 6434 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
| 6435 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6436 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6437 | if test "${ac_cv_prog_NMEDIT+set}" = set; then |
| 6438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6439 | else |
| 6440 | if test -n "$NMEDIT"; then |
| 6441 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
| 6442 | else |
| 6443 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6444 | for as_dir in $PATH |
| 6445 | do |
| 6446 | IFS=$as_save_IFS |
| 6447 | test -z "$as_dir" && as_dir=. |
| 6448 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6449 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6450 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
| 6451 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6452 | break 2 |
| 6453 | fi |
| 6454 | done |
| 6455 | done |
| 6456 | IFS=$as_save_IFS |
| 6457 | |
| 6458 | fi |
| 6459 | fi |
| 6460 | NMEDIT=$ac_cv_prog_NMEDIT |
| 6461 | if test -n "$NMEDIT"; then |
| 6462 | { echo "$as_me:$LINENO: result: $NMEDIT" >&5 |
| 6463 | echo "${ECHO_T}$NMEDIT" >&6; } |
| 6464 | else |
| 6465 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6466 | echo "${ECHO_T}no" >&6; } |
| 6467 | fi |
| 6468 | |
| 6469 | |
| 6470 | fi |
| 6471 | if test -z "$ac_cv_prog_NMEDIT"; then |
| 6472 | ac_ct_NMEDIT=$NMEDIT |
| 6473 | # Extract the first word of "nmedit", so it can be a program name with args. |
| 6474 | set dummy nmedit; ac_word=$2 |
| 6475 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6476 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6477 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then |
| 6478 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6479 | else |
| 6480 | if test -n "$ac_ct_NMEDIT"; then |
| 6481 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
| 6482 | else |
| 6483 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6484 | for as_dir in $PATH |
| 6485 | do |
| 6486 | IFS=$as_save_IFS |
| 6487 | test -z "$as_dir" && as_dir=. |
| 6488 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6489 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6490 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
| 6491 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6492 | break 2 |
| 6493 | fi |
| 6494 | done |
| 6495 | done |
| 6496 | IFS=$as_save_IFS |
| 6497 | |
| 6498 | fi |
| 6499 | fi |
| 6500 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
| 6501 | if test -n "$ac_ct_NMEDIT"; then |
| 6502 | { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 |
| 6503 | echo "${ECHO_T}$ac_ct_NMEDIT" >&6; } |
| 6504 | else |
| 6505 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6506 | echo "${ECHO_T}no" >&6; } |
| 6507 | fi |
| 6508 | |
| 6509 | if test "x$ac_ct_NMEDIT" = x; then |
| 6510 | NMEDIT=":" |
| 6511 | else |
| 6512 | case $cross_compiling:$ac_tool_warned in |
| 6513 | yes:) |
| 6514 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6515 | whose name does not start with the host triplet. If you think this |
| 6516 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6517 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6518 | whose name does not start with the host triplet. If you think this |
| 6519 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6520 | ac_tool_warned=yes ;; |
| 6521 | esac |
| 6522 | NMEDIT=$ac_ct_NMEDIT |
| 6523 | fi |
| 6524 | else |
| 6525 | NMEDIT="$ac_cv_prog_NMEDIT" |
| 6526 | fi |
| 6527 | |
| 6528 | if test -n "$ac_tool_prefix"; then |
| 6529 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
| 6530 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
| 6531 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6532 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6533 | if test "${ac_cv_prog_LIPO+set}" = set; then |
| 6534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6535 | else |
| 6536 | if test -n "$LIPO"; then |
| 6537 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
| 6538 | else |
| 6539 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6540 | for as_dir in $PATH |
| 6541 | do |
| 6542 | IFS=$as_save_IFS |
| 6543 | test -z "$as_dir" && as_dir=. |
| 6544 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6545 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6546 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
| 6547 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6548 | break 2 |
| 6549 | fi |
| 6550 | done |
| 6551 | done |
| 6552 | IFS=$as_save_IFS |
| 6553 | |
| 6554 | fi |
| 6555 | fi |
| 6556 | LIPO=$ac_cv_prog_LIPO |
| 6557 | if test -n "$LIPO"; then |
| 6558 | { echo "$as_me:$LINENO: result: $LIPO" >&5 |
| 6559 | echo "${ECHO_T}$LIPO" >&6; } |
| 6560 | else |
| 6561 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6562 | echo "${ECHO_T}no" >&6; } |
| 6563 | fi |
| 6564 | |
| 6565 | |
| 6566 | fi |
| 6567 | if test -z "$ac_cv_prog_LIPO"; then |
| 6568 | ac_ct_LIPO=$LIPO |
| 6569 | # Extract the first word of "lipo", so it can be a program name with args. |
| 6570 | set dummy lipo; ac_word=$2 |
| 6571 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6572 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6573 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then |
| 6574 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6575 | else |
| 6576 | if test -n "$ac_ct_LIPO"; then |
| 6577 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
| 6578 | else |
| 6579 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6580 | for as_dir in $PATH |
| 6581 | do |
| 6582 | IFS=$as_save_IFS |
| 6583 | test -z "$as_dir" && as_dir=. |
| 6584 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6585 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6586 | ac_cv_prog_ac_ct_LIPO="lipo" |
| 6587 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6588 | break 2 |
| 6589 | fi |
| 6590 | done |
| 6591 | done |
| 6592 | IFS=$as_save_IFS |
| 6593 | |
| 6594 | fi |
| 6595 | fi |
| 6596 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
| 6597 | if test -n "$ac_ct_LIPO"; then |
| 6598 | { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 |
| 6599 | echo "${ECHO_T}$ac_ct_LIPO" >&6; } |
| 6600 | else |
| 6601 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6602 | echo "${ECHO_T}no" >&6; } |
| 6603 | fi |
| 6604 | |
| 6605 | if test "x$ac_ct_LIPO" = x; then |
| 6606 | LIPO=":" |
| 6607 | else |
| 6608 | case $cross_compiling:$ac_tool_warned in |
| 6609 | yes:) |
| 6610 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6611 | whose name does not start with the host triplet. If you think this |
| 6612 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6613 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6614 | whose name does not start with the host triplet. If you think this |
| 6615 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6616 | ac_tool_warned=yes ;; |
| 6617 | esac |
| 6618 | LIPO=$ac_ct_LIPO |
| 6619 | fi |
| 6620 | else |
| 6621 | LIPO="$ac_cv_prog_LIPO" |
| 6622 | fi |
| 6623 | |
| 6624 | if test -n "$ac_tool_prefix"; then |
| 6625 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
| 6626 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
| 6627 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6628 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6629 | if test "${ac_cv_prog_OTOOL+set}" = set; then |
| 6630 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6631 | else |
| 6632 | if test -n "$OTOOL"; then |
| 6633 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
| 6634 | else |
| 6635 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6636 | for as_dir in $PATH |
| 6637 | do |
| 6638 | IFS=$as_save_IFS |
| 6639 | test -z "$as_dir" && as_dir=. |
| 6640 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6641 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6642 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
| 6643 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6644 | break 2 |
| 6645 | fi |
| 6646 | done |
| 6647 | done |
| 6648 | IFS=$as_save_IFS |
| 6649 | |
| 6650 | fi |
| 6651 | fi |
| 6652 | OTOOL=$ac_cv_prog_OTOOL |
| 6653 | if test -n "$OTOOL"; then |
| 6654 | { echo "$as_me:$LINENO: result: $OTOOL" >&5 |
| 6655 | echo "${ECHO_T}$OTOOL" >&6; } |
| 6656 | else |
| 6657 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6658 | echo "${ECHO_T}no" >&6; } |
| 6659 | fi |
| 6660 | |
| 6661 | |
| 6662 | fi |
| 6663 | if test -z "$ac_cv_prog_OTOOL"; then |
| 6664 | ac_ct_OTOOL=$OTOOL |
| 6665 | # Extract the first word of "otool", so it can be a program name with args. |
| 6666 | set dummy otool; ac_word=$2 |
| 6667 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6668 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6669 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then |
| 6670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6671 | else |
| 6672 | if test -n "$ac_ct_OTOOL"; then |
| 6673 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
| 6674 | else |
| 6675 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6676 | for as_dir in $PATH |
| 6677 | do |
| 6678 | IFS=$as_save_IFS |
| 6679 | test -z "$as_dir" && as_dir=. |
| 6680 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6681 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6682 | ac_cv_prog_ac_ct_OTOOL="otool" |
| 6683 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6684 | break 2 |
| 6685 | fi |
| 6686 | done |
| 6687 | done |
| 6688 | IFS=$as_save_IFS |
| 6689 | |
| 6690 | fi |
| 6691 | fi |
| 6692 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
| 6693 | if test -n "$ac_ct_OTOOL"; then |
| 6694 | { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 |
| 6695 | echo "${ECHO_T}$ac_ct_OTOOL" >&6; } |
| 6696 | else |
| 6697 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6698 | echo "${ECHO_T}no" >&6; } |
| 6699 | fi |
| 6700 | |
| 6701 | if test "x$ac_ct_OTOOL" = x; then |
| 6702 | OTOOL=":" |
| 6703 | else |
| 6704 | case $cross_compiling:$ac_tool_warned in |
| 6705 | yes:) |
| 6706 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6707 | whose name does not start with the host triplet. If you think this |
| 6708 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6709 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6710 | whose name does not start with the host triplet. If you think this |
| 6711 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6712 | ac_tool_warned=yes ;; |
| 6713 | esac |
| 6714 | OTOOL=$ac_ct_OTOOL |
| 6715 | fi |
| 6716 | else |
| 6717 | OTOOL="$ac_cv_prog_OTOOL" |
| 6718 | fi |
| 6719 | |
| 6720 | if test -n "$ac_tool_prefix"; then |
| 6721 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
| 6722 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
| 6723 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6724 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6725 | if test "${ac_cv_prog_OTOOL64+set}" = set; then |
| 6726 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6727 | else |
| 6728 | if test -n "$OTOOL64"; then |
| 6729 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
| 6730 | else |
| 6731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6732 | for as_dir in $PATH |
| 6733 | do |
| 6734 | IFS=$as_save_IFS |
| 6735 | test -z "$as_dir" && as_dir=. |
| 6736 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6737 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6738 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
| 6739 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6740 | break 2 |
| 6741 | fi |
| 6742 | done |
| 6743 | done |
| 6744 | IFS=$as_save_IFS |
| 6745 | |
| 6746 | fi |
| 6747 | fi |
| 6748 | OTOOL64=$ac_cv_prog_OTOOL64 |
| 6749 | if test -n "$OTOOL64"; then |
| 6750 | { echo "$as_me:$LINENO: result: $OTOOL64" >&5 |
| 6751 | echo "${ECHO_T}$OTOOL64" >&6; } |
| 6752 | else |
| 6753 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6754 | echo "${ECHO_T}no" >&6; } |
| 6755 | fi |
| 6756 | |
| 6757 | |
| 6758 | fi |
| 6759 | if test -z "$ac_cv_prog_OTOOL64"; then |
| 6760 | ac_ct_OTOOL64=$OTOOL64 |
| 6761 | # Extract the first word of "otool64", so it can be a program name with args. |
| 6762 | set dummy otool64; ac_word=$2 |
| 6763 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6764 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6765 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then |
| 6766 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6767 | else |
| 6768 | if test -n "$ac_ct_OTOOL64"; then |
| 6769 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
| 6770 | else |
| 6771 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6772 | for as_dir in $PATH |
| 6773 | do |
| 6774 | IFS=$as_save_IFS |
| 6775 | test -z "$as_dir" && as_dir=. |
| 6776 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6777 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6778 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
| 6779 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6780 | break 2 |
| 6781 | fi |
| 6782 | done |
| 6783 | done |
| 6784 | IFS=$as_save_IFS |
| 6785 | |
| 6786 | fi |
| 6787 | fi |
| 6788 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
| 6789 | if test -n "$ac_ct_OTOOL64"; then |
| 6790 | { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 |
| 6791 | echo "${ECHO_T}$ac_ct_OTOOL64" >&6; } |
| 6792 | else |
| 6793 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6794 | echo "${ECHO_T}no" >&6; } |
| 6795 | fi |
| 6796 | |
| 6797 | if test "x$ac_ct_OTOOL64" = x; then |
| 6798 | OTOOL64=":" |
| 6799 | else |
| 6800 | case $cross_compiling:$ac_tool_warned in |
| 6801 | yes:) |
| 6802 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6803 | whose name does not start with the host triplet. If you think this |
| 6804 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6805 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6806 | whose name does not start with the host triplet. If you think this |
| 6807 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6808 | ac_tool_warned=yes ;; |
| 6809 | esac |
| 6810 | OTOOL64=$ac_ct_OTOOL64 |
| 6811 | fi |
| 6812 | else |
| 6813 | OTOOL64="$ac_cv_prog_OTOOL64" |
| 6814 | fi |
| 6815 | |
| 6816 | |
| 6817 | |
| 6818 | |
| 6819 | |
| 6820 | |
| 6821 | |
| 6822 | |
| 6823 | |
| 6824 | |
| 6825 | |
| 6826 | |
| 6827 | |
| 6828 | |
| 6829 | |
| 6830 | |
| 6831 | |
| 6832 | |
| 6833 | |
| 6834 | |
| 6835 | |
| 6836 | |
| 6837 | |
| 6838 | |
| 6839 | |
| 6840 | |
| 6841 | |
| 6842 | { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 |
| 6843 | echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; } |
| 6844 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then |
| 6845 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6846 | else |
| 6847 | lt_cv_apple_cc_single_mod=no |
| 6848 | if test -z "${LT_MULTI_MODULE}"; then |
| 6849 | # By default we will add the -single_module flag. You can override |
| 6850 | # by either setting the environment variable LT_MULTI_MODULE |
| 6851 | # non-empty at configure time, or by adding -multi_module to the |
| 6852 | # link flags. |
| 6853 | rm -rf libconftest.dylib* |
| 6854 | echo "int foo(void){return 1;}" > conftest.c |
| 6855 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 6856 | -dynamiclib -Wl,-single_module conftest.c" >&5 |
| 6857 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 6858 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
| 6859 | _lt_result=$? |
| 6860 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then |
| 6861 | lt_cv_apple_cc_single_mod=yes |
| 6862 | else |
| 6863 | cat conftest.err >&5 |
| 6864 | fi |
| 6865 | rm -rf libconftest.dylib* |
| 6866 | rm -f conftest.* |
| 6867 | fi |
| 6868 | fi |
| 6869 | { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 |
| 6870 | echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; } |
| 6871 | { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 |
| 6872 | echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; } |
| 6873 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then |
| 6874 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6875 | else |
| 6876 | lt_cv_ld_exported_symbols_list=no |
| 6877 | save_LDFLAGS=$LDFLAGS |
| 6878 | echo "_main" > conftest.sym |
| 6879 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
| 6880 | cat >conftest.$ac_ext <<_ACEOF |
| 6881 | /* confdefs.h. */ |
| 6882 | _ACEOF |
| 6883 | cat confdefs.h >>conftest.$ac_ext |
| 6884 | cat >>conftest.$ac_ext <<_ACEOF |
| 6885 | /* end confdefs.h. */ |
| 6886 | |
| 6887 | int |
| 6888 | main () |
| 6889 | { |
| 6890 | |
| 6891 | ; |
| 6892 | return 0; |
| 6893 | } |
| 6894 | _ACEOF |
| 6895 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6896 | if { (ac_try="$ac_link" |
| 6897 | case "(($ac_try" in |
| 6898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6899 | *) ac_try_echo=$ac_try;; |
| 6900 | esac |
| 6901 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6902 | (eval "$ac_link") 2>conftest.er1 |
| 6903 | ac_status=$? |
| 6904 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6905 | rm -f conftest.er1 |
| 6906 | cat conftest.err >&5 |
| 6907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6908 | (exit $ac_status); } && |
| 6909 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6910 | { (case "(($ac_try" in |
| 6911 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6912 | *) ac_try_echo=$ac_try;; |
| 6913 | esac |
| 6914 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6915 | (eval "$ac_try") 2>&5 |
| 6916 | ac_status=$? |
| 6917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6918 | (exit $ac_status); }; } && |
| 6919 | { ac_try='test -s conftest$ac_exeext' |
| 6920 | { (case "(($ac_try" in |
| 6921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6922 | *) ac_try_echo=$ac_try;; |
| 6923 | esac |
| 6924 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6925 | (eval "$ac_try") 2>&5 |
| 6926 | ac_status=$? |
| 6927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6928 | (exit $ac_status); }; }; then |
| 6929 | lt_cv_ld_exported_symbols_list=yes |
| 6930 | else |
| 6931 | echo "$as_me: failed program was:" >&5 |
| 6932 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6933 | |
| 6934 | lt_cv_ld_exported_symbols_list=no |
| 6935 | fi |
| 6936 | |
| 6937 | rm -f core conftest.err conftest.$ac_objext \ |
| 6938 | conftest$ac_exeext conftest.$ac_ext |
| 6939 | LDFLAGS="$save_LDFLAGS" |
| 6940 | |
| 6941 | fi |
| 6942 | { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 |
| 6943 | echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; } |
| 6944 | { echo "$as_me:$LINENO: checking for -force_load linker flag" >&5 |
| 6945 | echo $ECHO_N "checking for -force_load linker flag... $ECHO_C" >&6; } |
| 6946 | if test "${lt_cv_ld_force_load+set}" = set; then |
| 6947 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6948 | else |
| 6949 | lt_cv_ld_force_load=no |
| 6950 | cat > conftest.c << _LT_EOF |
| 6951 | int forced_loaded() { return 2;} |
| 6952 | _LT_EOF |
| 6953 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 |
| 6954 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 |
| 6955 | echo "$AR cru libconftest.a conftest.o" >&5 |
| 6956 | $AR cru libconftest.a conftest.o 2>&5 |
| 6957 | echo "$RANLIB libconftest.a" >&5 |
| 6958 | $RANLIB libconftest.a 2>&5 |
| 6959 | cat > conftest.c << _LT_EOF |
| 6960 | int main() { return 0;} |
| 6961 | _LT_EOF |
| 6962 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 |
| 6963 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
| 6964 | _lt_result=$? |
| 6965 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then |
| 6966 | lt_cv_ld_force_load=yes |
| 6967 | else |
| 6968 | cat conftest.err >&5 |
| 6969 | fi |
| 6970 | rm -f conftest.err libconftest.a conftest conftest.c |
| 6971 | rm -rf conftest.dSYM |
| 6972 | |
| 6973 | fi |
| 6974 | { echo "$as_me:$LINENO: result: $lt_cv_ld_force_load" >&5 |
| 6975 | echo "${ECHO_T}$lt_cv_ld_force_load" >&6; } |
| 6976 | case $host_os in |
| 6977 | rhapsody* | darwin1.[012]) |
| 6978 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
| 6979 | darwin1.*) |
| 6980 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 6981 | darwin*) # darwin 5.x on |
| 6982 | # if running on 10.5 or later, the deployment target defaults |
| 6983 | # to the OS version, if on x86, and 10.4, the deployment |
| 6984 | # target defaults to 10.4. Don't you love it? |
| 6985 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
| 6986 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
| 6987 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 6988 | 10.[012]*) |
| 6989 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 6990 | 10.*) |
| 6991 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 6992 | esac |
| 6993 | ;; |
| 6994 | esac |
| 6995 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
| 6996 | _lt_dar_single_mod='$single_module' |
| 6997 | fi |
| 6998 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
| 6999 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
| 7000 | else |
| 7001 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 7002 | fi |
| 7003 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
| 7004 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
| 7005 | else |
| 7006 | _lt_dsymutil= |
| 7007 | fi |
| 7008 | ;; |
| 7009 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 7010 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7011 | ac_ext=c |
| 7012 | ac_cpp='$CPP $CPPFLAGS' |
| 7013 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7014 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7015 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7016 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 7017 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7018 | # On Suns, sometimes $CPP names a directory. |
| 7019 | if test -n "$CPP" && test -d "$CPP"; then |
| 7020 | CPP= |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 7021 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7022 | if test -z "$CPP"; then |
| 7023 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 7024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7025 | else |
| 7026 | # Double quotes because CPP needs to be expanded |
| 7027 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 7028 | do |
| 7029 | ac_preproc_ok=false |
| 7030 | for ac_c_preproc_warn_flag in '' yes |
| 7031 | do |
| 7032 | # Use a header file that comes with gcc, so configuring glibc |
| 7033 | # with a fresh cross-compiler works. |
| 7034 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7035 | # <limits.h> exists even on freestanding compilers. |
| 7036 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 7037 | # not just through cpp. "Syntax error" is here to catch this case. |
| 7038 | cat >conftest.$ac_ext <<_ACEOF |
| 7039 | /* confdefs.h. */ |
| 7040 | _ACEOF |
| 7041 | cat confdefs.h >>conftest.$ac_ext |
| 7042 | cat >>conftest.$ac_ext <<_ACEOF |
| 7043 | /* end confdefs.h. */ |
| 7044 | #ifdef __STDC__ |
| 7045 | # include <limits.h> |
| 7046 | #else |
| 7047 | # include <assert.h> |
| 7048 | #endif |
| 7049 | Syntax error |
| 7050 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7051 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7052 | case "(($ac_try" in |
| 7053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7054 | *) ac_try_echo=$ac_try;; |
| 7055 | esac |
| 7056 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7057 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7058 | ac_status=$? |
| 7059 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7060 | rm -f conftest.er1 |
| 7061 | cat conftest.err >&5 |
| 7062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7063 | (exit $ac_status); } >/dev/null; then |
| 7064 | if test -s conftest.err; then |
| 7065 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7066 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7067 | else |
| 7068 | ac_cpp_err= |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 7069 | fi |
| 7070 | else |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7071 | ac_cpp_err=yes |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 7072 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7073 | if test -z "$ac_cpp_err"; then |
| 7074 | : |
| 7075 | else |
| 7076 | echo "$as_me: failed program was:" >&5 |
| 7077 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7078 | |
| 7079 | # Broken: fails on valid input. |
| 7080 | continue |
| 7081 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7082 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7083 | rm -f conftest.err conftest.$ac_ext |
| 7084 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7085 | # OK, works on sane cases. Now check whether nonexistent headers |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7086 | # can be detected and how. |
| 7087 | cat >conftest.$ac_ext <<_ACEOF |
| 7088 | /* confdefs.h. */ |
| 7089 | _ACEOF |
| 7090 | cat confdefs.h >>conftest.$ac_ext |
| 7091 | cat >>conftest.$ac_ext <<_ACEOF |
| 7092 | /* end confdefs.h. */ |
| 7093 | #include <ac_nonexistent.h> |
| 7094 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7095 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7096 | case "(($ac_try" in |
| 7097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7098 | *) ac_try_echo=$ac_try;; |
| 7099 | esac |
| 7100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7101 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7102 | ac_status=$? |
| 7103 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7104 | rm -f conftest.er1 |
| 7105 | cat conftest.err >&5 |
| 7106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7107 | (exit $ac_status); } >/dev/null; then |
| 7108 | if test -s conftest.err; then |
| 7109 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7110 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7111 | else |
| 7112 | ac_cpp_err= |
| 7113 | fi |
| 7114 | else |
| 7115 | ac_cpp_err=yes |
| 7116 | fi |
| 7117 | if test -z "$ac_cpp_err"; then |
| 7118 | # Broken: success on invalid input. |
| 7119 | continue |
| 7120 | else |
| 7121 | echo "$as_me: failed program was:" >&5 |
| 7122 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7123 | |
| 7124 | # Passes both tests. |
| 7125 | ac_preproc_ok=: |
| 7126 | break |
| 7127 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7128 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7129 | rm -f conftest.err conftest.$ac_ext |
| 7130 | |
| 7131 | done |
| 7132 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 7133 | rm -f conftest.err conftest.$ac_ext |
| 7134 | if $ac_preproc_ok; then |
| 7135 | break |
| 7136 | fi |
| 7137 | |
| 7138 | done |
| 7139 | ac_cv_prog_CPP=$CPP |
| 7140 | |
| 7141 | fi |
| 7142 | CPP=$ac_cv_prog_CPP |
| 7143 | else |
| 7144 | ac_cv_prog_CPP=$CPP |
| 7145 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7146 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 7147 | echo "${ECHO_T}$CPP" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7148 | ac_preproc_ok=false |
| 7149 | for ac_c_preproc_warn_flag in '' yes |
| 7150 | do |
| 7151 | # Use a header file that comes with gcc, so configuring glibc |
| 7152 | # with a fresh cross-compiler works. |
| 7153 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7154 | # <limits.h> exists even on freestanding compilers. |
| 7155 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 7156 | # not just through cpp. "Syntax error" is here to catch this case. |
| 7157 | cat >conftest.$ac_ext <<_ACEOF |
| 7158 | /* confdefs.h. */ |
| 7159 | _ACEOF |
| 7160 | cat confdefs.h >>conftest.$ac_ext |
| 7161 | cat >>conftest.$ac_ext <<_ACEOF |
| 7162 | /* end confdefs.h. */ |
| 7163 | #ifdef __STDC__ |
| 7164 | # include <limits.h> |
| 7165 | #else |
| 7166 | # include <assert.h> |
| 7167 | #endif |
| 7168 | Syntax error |
| 7169 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7170 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7171 | case "(($ac_try" in |
| 7172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7173 | *) ac_try_echo=$ac_try;; |
| 7174 | esac |
| 7175 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7176 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7177 | ac_status=$? |
| 7178 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7179 | rm -f conftest.er1 |
| 7180 | cat conftest.err >&5 |
| 7181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7182 | (exit $ac_status); } >/dev/null; then |
| 7183 | if test -s conftest.err; then |
| 7184 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7185 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7186 | else |
| 7187 | ac_cpp_err= |
| 7188 | fi |
| 7189 | else |
| 7190 | ac_cpp_err=yes |
| 7191 | fi |
| 7192 | if test -z "$ac_cpp_err"; then |
| 7193 | : |
| 7194 | else |
| 7195 | echo "$as_me: failed program was:" >&5 |
| 7196 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7197 | |
| 7198 | # Broken: fails on valid input. |
| 7199 | continue |
| 7200 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7201 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7202 | rm -f conftest.err conftest.$ac_ext |
| 7203 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7204 | # OK, works on sane cases. Now check whether nonexistent headers |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7205 | # can be detected and how. |
| 7206 | cat >conftest.$ac_ext <<_ACEOF |
| 7207 | /* confdefs.h. */ |
| 7208 | _ACEOF |
| 7209 | cat confdefs.h >>conftest.$ac_ext |
| 7210 | cat >>conftest.$ac_ext <<_ACEOF |
| 7211 | /* end confdefs.h. */ |
| 7212 | #include <ac_nonexistent.h> |
| 7213 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7214 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7215 | case "(($ac_try" in |
| 7216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7217 | *) ac_try_echo=$ac_try;; |
| 7218 | esac |
| 7219 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7220 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7221 | ac_status=$? |
| 7222 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7223 | rm -f conftest.er1 |
| 7224 | cat conftest.err >&5 |
| 7225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7226 | (exit $ac_status); } >/dev/null; then |
| 7227 | if test -s conftest.err; then |
| 7228 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7229 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7230 | else |
| 7231 | ac_cpp_err= |
| 7232 | fi |
| 7233 | else |
| 7234 | ac_cpp_err=yes |
| 7235 | fi |
| 7236 | if test -z "$ac_cpp_err"; then |
| 7237 | # Broken: success on invalid input. |
| 7238 | continue |
| 7239 | else |
| 7240 | echo "$as_me: failed program was:" >&5 |
| 7241 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7242 | |
| 7243 | # Passes both tests. |
| 7244 | ac_preproc_ok=: |
| 7245 | break |
| 7246 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7247 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7248 | rm -f conftest.err conftest.$ac_ext |
| 7249 | |
| 7250 | done |
| 7251 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 7252 | rm -f conftest.err conftest.$ac_ext |
| 7253 | if $ac_preproc_ok; then |
| 7254 | : |
| 7255 | else |
| 7256 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 7257 | See \`config.log' for more details." >&5 |
| 7258 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 7259 | See \`config.log' for more details." >&2;} |
| 7260 | { (exit 1); exit 1; }; } |
| 7261 | fi |
| 7262 | |
| 7263 | ac_ext=c |
| 7264 | ac_cpp='$CPP $CPPFLAGS' |
| 7265 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7266 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7267 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7268 | |
| 7269 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7270 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 7271 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7272 | if test "${ac_cv_header_stdc+set}" = set; then |
| 7273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7274 | else |
| 7275 | cat >conftest.$ac_ext <<_ACEOF |
| 7276 | /* confdefs.h. */ |
| 7277 | _ACEOF |
| 7278 | cat confdefs.h >>conftest.$ac_ext |
| 7279 | cat >>conftest.$ac_ext <<_ACEOF |
| 7280 | /* end confdefs.h. */ |
| 7281 | #include <stdlib.h> |
| 7282 | #include <stdarg.h> |
| 7283 | #include <string.h> |
| 7284 | #include <float.h> |
| 7285 | |
| 7286 | int |
| 7287 | main () |
| 7288 | { |
| 7289 | |
| 7290 | ; |
| 7291 | return 0; |
| 7292 | } |
| 7293 | _ACEOF |
| 7294 | rm -f conftest.$ac_objext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7295 | if { (ac_try="$ac_compile" |
| 7296 | case "(($ac_try" in |
| 7297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7298 | *) ac_try_echo=$ac_try;; |
| 7299 | esac |
| 7300 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7301 | (eval "$ac_compile") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7302 | ac_status=$? |
| 7303 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7304 | rm -f conftest.er1 |
| 7305 | cat conftest.err >&5 |
| 7306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7307 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7308 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7309 | { (case "(($ac_try" in |
| 7310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7311 | *) ac_try_echo=$ac_try;; |
| 7312 | esac |
| 7313 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7314 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7315 | ac_status=$? |
| 7316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7317 | (exit $ac_status); }; } && |
| 7318 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7319 | { (case "(($ac_try" in |
| 7320 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7321 | *) ac_try_echo=$ac_try;; |
| 7322 | esac |
| 7323 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7324 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7325 | ac_status=$? |
| 7326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7327 | (exit $ac_status); }; }; then |
| 7328 | ac_cv_header_stdc=yes |
| 7329 | else |
| 7330 | echo "$as_me: failed program was:" >&5 |
| 7331 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7332 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7333 | ac_cv_header_stdc=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7334 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7335 | |
| 7336 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7337 | |
| 7338 | if test $ac_cv_header_stdc = yes; then |
| 7339 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 7340 | cat >conftest.$ac_ext <<_ACEOF |
| 7341 | /* confdefs.h. */ |
| 7342 | _ACEOF |
| 7343 | cat confdefs.h >>conftest.$ac_ext |
| 7344 | cat >>conftest.$ac_ext <<_ACEOF |
| 7345 | /* end confdefs.h. */ |
| 7346 | #include <string.h> |
| 7347 | |
| 7348 | _ACEOF |
| 7349 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7350 | $EGREP "memchr" >/dev/null 2>&1; then |
| 7351 | : |
| 7352 | else |
| 7353 | ac_cv_header_stdc=no |
| 7354 | fi |
| 7355 | rm -f conftest* |
| 7356 | |
| 7357 | fi |
| 7358 | |
| 7359 | if test $ac_cv_header_stdc = yes; then |
| 7360 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 7361 | cat >conftest.$ac_ext <<_ACEOF |
| 7362 | /* confdefs.h. */ |
| 7363 | _ACEOF |
| 7364 | cat confdefs.h >>conftest.$ac_ext |
| 7365 | cat >>conftest.$ac_ext <<_ACEOF |
| 7366 | /* end confdefs.h. */ |
| 7367 | #include <stdlib.h> |
| 7368 | |
| 7369 | _ACEOF |
| 7370 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7371 | $EGREP "free" >/dev/null 2>&1; then |
| 7372 | : |
| 7373 | else |
| 7374 | ac_cv_header_stdc=no |
| 7375 | fi |
| 7376 | rm -f conftest* |
| 7377 | |
| 7378 | fi |
| 7379 | |
| 7380 | if test $ac_cv_header_stdc = yes; then |
| 7381 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 7382 | if test "$cross_compiling" = yes; then |
| 7383 | : |
| 7384 | else |
| 7385 | cat >conftest.$ac_ext <<_ACEOF |
| 7386 | /* confdefs.h. */ |
| 7387 | _ACEOF |
| 7388 | cat confdefs.h >>conftest.$ac_ext |
| 7389 | cat >>conftest.$ac_ext <<_ACEOF |
| 7390 | /* end confdefs.h. */ |
| 7391 | #include <ctype.h> |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7392 | #include <stdlib.h> |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7393 | #if ((' ' & 0x0FF) == 0x020) |
| 7394 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 7395 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 7396 | #else |
| 7397 | # define ISLOWER(c) \ |
| 7398 | (('a' <= (c) && (c) <= 'i') \ |
| 7399 | || ('j' <= (c) && (c) <= 'r') \ |
| 7400 | || ('s' <= (c) && (c) <= 'z')) |
| 7401 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 7402 | #endif |
| 7403 | |
| 7404 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 7405 | int |
| 7406 | main () |
| 7407 | { |
| 7408 | int i; |
| 7409 | for (i = 0; i < 256; i++) |
| 7410 | if (XOR (islower (i), ISLOWER (i)) |
| 7411 | || toupper (i) != TOUPPER (i)) |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7412 | return 2; |
| 7413 | return 0; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7414 | } |
| 7415 | _ACEOF |
| 7416 | rm -f conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7417 | if { (ac_try="$ac_link" |
| 7418 | case "(($ac_try" in |
| 7419 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7420 | *) ac_try_echo=$ac_try;; |
| 7421 | esac |
| 7422 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7423 | (eval "$ac_link") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7424 | ac_status=$? |
| 7425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7426 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7427 | { (case "(($ac_try" in |
| 7428 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7429 | *) ac_try_echo=$ac_try;; |
| 7430 | esac |
| 7431 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7432 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7433 | ac_status=$? |
| 7434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7435 | (exit $ac_status); }; }; then |
| 7436 | : |
| 7437 | else |
| 7438 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7439 | echo "$as_me: failed program was:" >&5 |
| 7440 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7441 | |
| 7442 | ( exit $ac_status ) |
| 7443 | ac_cv_header_stdc=no |
| 7444 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7445 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7446 | fi |
| 7447 | |
| 7448 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7449 | fi |
| 7450 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7451 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 7452 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7453 | if test $ac_cv_header_stdc = yes; then |
| 7454 | |
| 7455 | cat >>confdefs.h <<\_ACEOF |
| 7456 | #define STDC_HEADERS 1 |
| 7457 | _ACEOF |
| 7458 | |
| 7459 | fi |
| 7460 | |
| 7461 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 7462 | |
| 7463 | |
| 7464 | |
| 7465 | |
| 7466 | |
| 7467 | |
| 7468 | |
| 7469 | |
| 7470 | |
| 7471 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 7472 | inttypes.h stdint.h unistd.h |
| 7473 | do |
| 7474 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7475 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7476 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 7477 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7478 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7479 | else |
| 7480 | cat >conftest.$ac_ext <<_ACEOF |
| 7481 | /* confdefs.h. */ |
| 7482 | _ACEOF |
| 7483 | cat confdefs.h >>conftest.$ac_ext |
| 7484 | cat >>conftest.$ac_ext <<_ACEOF |
| 7485 | /* end confdefs.h. */ |
| 7486 | $ac_includes_default |
| 7487 | |
| 7488 | #include <$ac_header> |
| 7489 | _ACEOF |
| 7490 | rm -f conftest.$ac_objext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7491 | if { (ac_try="$ac_compile" |
| 7492 | case "(($ac_try" in |
| 7493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7494 | *) ac_try_echo=$ac_try;; |
| 7495 | esac |
| 7496 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7497 | (eval "$ac_compile") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7498 | ac_status=$? |
| 7499 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7500 | rm -f conftest.er1 |
| 7501 | cat conftest.err >&5 |
| 7502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7503 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7504 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7505 | { (case "(($ac_try" in |
| 7506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7507 | *) ac_try_echo=$ac_try;; |
| 7508 | esac |
| 7509 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7510 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7511 | ac_status=$? |
| 7512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7513 | (exit $ac_status); }; } && |
| 7514 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7515 | { (case "(($ac_try" in |
| 7516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7517 | *) ac_try_echo=$ac_try;; |
| 7518 | esac |
| 7519 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7520 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7521 | ac_status=$? |
| 7522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7523 | (exit $ac_status); }; }; then |
| 7524 | eval "$as_ac_Header=yes" |
| 7525 | else |
| 7526 | echo "$as_me: failed program was:" >&5 |
| 7527 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7528 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7529 | eval "$as_ac_Header=no" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7530 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7531 | |
| 7532 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7533 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7534 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 7535 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7536 | echo "${ECHO_T}$ac_res" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7537 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7538 | cat >>confdefs.h <<_ACEOF |
| 7539 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7540 | _ACEOF |
| 7541 | |
| 7542 | fi |
| 7543 | |
| 7544 | done |
| 7545 | |
| 7546 | |
| 7547 | |
| 7548 | for ac_header in dlfcn.h |
| 7549 | do |
| 7550 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7551 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7552 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 7553 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7554 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7555 | else |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7556 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7557 | /* confdefs.h. */ |
| 7558 | _ACEOF |
| 7559 | cat confdefs.h >>conftest.$ac_ext |
| 7560 | cat >>conftest.$ac_ext <<_ACEOF |
| 7561 | /* end confdefs.h. */ |
| 7562 | $ac_includes_default |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7563 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7564 | #include <$ac_header> |
| 7565 | _ACEOF |
| 7566 | rm -f conftest.$ac_objext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7567 | if { (ac_try="$ac_compile" |
| 7568 | case "(($ac_try" in |
| 7569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7570 | *) ac_try_echo=$ac_try;; |
| 7571 | esac |
| 7572 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7573 | (eval "$ac_compile") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7574 | ac_status=$? |
| 7575 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7576 | rm -f conftest.er1 |
| 7577 | cat conftest.err >&5 |
| 7578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7579 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7580 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7581 | { (case "(($ac_try" in |
| 7582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7583 | *) ac_try_echo=$ac_try;; |
| 7584 | esac |
| 7585 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7586 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7587 | ac_status=$? |
| 7588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7589 | (exit $ac_status); }; } && |
| 7590 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7591 | { (case "(($ac_try" in |
| 7592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7593 | *) ac_try_echo=$ac_try;; |
| 7594 | esac |
| 7595 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7596 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7597 | ac_status=$? |
| 7598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7599 | (exit $ac_status); }; }; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7600 | eval "$as_ac_Header=yes" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7601 | else |
| 7602 | echo "$as_me: failed program was:" >&5 |
| 7603 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7604 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7605 | eval "$as_ac_Header=no" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7606 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7607 | |
| 7608 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7609 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7610 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 7611 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7612 | echo "${ECHO_T}$ac_res" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7613 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7614 | cat >>confdefs.h <<_ACEOF |
| 7615 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7616 | _ACEOF |
| 7617 | |
| 7618 | fi |
| 7619 | |
| 7620 | done |
| 7621 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7622 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7623 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7624 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7625 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7626 | # Set options |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7627 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7628 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7629 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7630 | enable_dlopen=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7631 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7632 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7633 | enable_win32_dll=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7634 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7635 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7636 | # Check whether --enable-shared was given. |
| 7637 | if test "${enable_shared+set}" = set; then |
| 7638 | enableval=$enable_shared; p=${PACKAGE-default} |
| 7639 | case $enableval in |
| 7640 | yes) enable_shared=yes ;; |
| 7641 | no) enable_shared=no ;; |
| 7642 | *) |
| 7643 | enable_shared=no |
| 7644 | # Look at the argument we got. We use all the common list separators. |
| 7645 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 7646 | for pkg in $enableval; do |
| 7647 | IFS="$lt_save_ifs" |
| 7648 | if test "X$pkg" = "X$p"; then |
| 7649 | enable_shared=yes |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7650 | fi |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7651 | done |
| 7652 | IFS="$lt_save_ifs" |
| 7653 | ;; |
| 7654 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7655 | else |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7656 | enable_shared=yes |
| 7657 | fi |
| 7658 | |
| 7659 | |
| 7660 | |
| 7661 | |
| 7662 | |
| 7663 | |
| 7664 | |
| 7665 | |
| 7666 | |
| 7667 | # Check whether --enable-static was given. |
| 7668 | if test "${enable_static+set}" = set; then |
| 7669 | enableval=$enable_static; p=${PACKAGE-default} |
| 7670 | case $enableval in |
| 7671 | yes) enable_static=yes ;; |
| 7672 | no) enable_static=no ;; |
| 7673 | *) |
| 7674 | enable_static=no |
| 7675 | # Look at the argument we got. We use all the common list separators. |
| 7676 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 7677 | for pkg in $enableval; do |
| 7678 | IFS="$lt_save_ifs" |
| 7679 | if test "X$pkg" = "X$p"; then |
| 7680 | enable_static=yes |
| 7681 | fi |
| 7682 | done |
| 7683 | IFS="$lt_save_ifs" |
| 7684 | ;; |
| 7685 | esac |
| 7686 | else |
| 7687 | enable_static=yes |
| 7688 | fi |
| 7689 | |
| 7690 | |
| 7691 | |
| 7692 | |
| 7693 | |
| 7694 | |
| 7695 | |
| 7696 | |
| 7697 | |
| 7698 | |
| 7699 | # Check whether --with-pic was given. |
| 7700 | if test "${with_pic+set}" = set; then |
| 7701 | withval=$with_pic; pic_mode="$withval" |
| 7702 | else |
| 7703 | pic_mode=default |
| 7704 | fi |
| 7705 | |
| 7706 | |
| 7707 | test -z "$pic_mode" && pic_mode=default |
| 7708 | |
| 7709 | |
| 7710 | |
| 7711 | |
| 7712 | |
| 7713 | |
| 7714 | |
| 7715 | # Check whether --enable-fast-install was given. |
| 7716 | if test "${enable_fast_install+set}" = set; then |
| 7717 | enableval=$enable_fast_install; p=${PACKAGE-default} |
| 7718 | case $enableval in |
| 7719 | yes) enable_fast_install=yes ;; |
| 7720 | no) enable_fast_install=no ;; |
| 7721 | *) |
| 7722 | enable_fast_install=no |
| 7723 | # Look at the argument we got. We use all the common list separators. |
| 7724 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 7725 | for pkg in $enableval; do |
| 7726 | IFS="$lt_save_ifs" |
| 7727 | if test "X$pkg" = "X$p"; then |
| 7728 | enable_fast_install=yes |
| 7729 | fi |
| 7730 | done |
| 7731 | IFS="$lt_save_ifs" |
| 7732 | ;; |
| 7733 | esac |
| 7734 | else |
| 7735 | enable_fast_install=yes |
| 7736 | fi |
| 7737 | |
| 7738 | |
| 7739 | |
| 7740 | |
| 7741 | |
| 7742 | |
| 7743 | |
| 7744 | |
| 7745 | |
| 7746 | |
| 7747 | |
| 7748 | # This can be used to rebuild libtool when needed |
| 7749 | LIBTOOL_DEPS="$ltmain" |
| 7750 | |
| 7751 | # Always use our own libtool. |
| 7752 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 7753 | |
| 7754 | |
| 7755 | |
| 7756 | |
| 7757 | |
| 7758 | |
| 7759 | |
| 7760 | |
| 7761 | |
| 7762 | |
| 7763 | |
| 7764 | |
| 7765 | |
| 7766 | |
| 7767 | |
| 7768 | |
| 7769 | |
| 7770 | |
| 7771 | |
| 7772 | |
| 7773 | |
| 7774 | |
| 7775 | |
| 7776 | |
| 7777 | |
| 7778 | |
| 7779 | test -z "$LN_S" && LN_S="ln -s" |
| 7780 | |
| 7781 | |
| 7782 | |
| 7783 | |
| 7784 | |
| 7785 | |
| 7786 | |
| 7787 | |
| 7788 | |
| 7789 | |
| 7790 | |
| 7791 | |
| 7792 | |
| 7793 | |
| 7794 | if test -n "${ZSH_VERSION+set}" ; then |
| 7795 | setopt NO_GLOB_SUBST |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7796 | fi |
| 7797 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7798 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 7799 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7800 | if test "${lt_cv_objdir+set}" = set; then |
| 7801 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7802 | else |
| 7803 | rm -f .libs 2>/dev/null |
| 7804 | mkdir .libs 2>/dev/null |
| 7805 | if test -d .libs; then |
| 7806 | lt_cv_objdir=.libs |
| 7807 | else |
| 7808 | # MS-DOS does not allow filenames that begin with a dot. |
| 7809 | lt_cv_objdir=_libs |
| 7810 | fi |
| 7811 | rmdir .libs 2>/dev/null |
| 7812 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7813 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
| 7814 | echo "${ECHO_T}$lt_cv_objdir" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7815 | objdir=$lt_cv_objdir |
| 7816 | |
| 7817 | |
| 7818 | |
| 7819 | |
| 7820 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7821 | cat >>confdefs.h <<_ACEOF |
| 7822 | #define LT_OBJDIR "$lt_cv_objdir/" |
| 7823 | _ACEOF |
| 7824 | |
| 7825 | |
| 7826 | |
| 7827 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7828 | case $host_os in |
| 7829 | aix3*) |
| 7830 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 7831 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 7832 | # vanish in a puff of smoke. |
| 7833 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 7834 | COLLECT_NAMES= |
| 7835 | export COLLECT_NAMES |
| 7836 | fi |
| 7837 | ;; |
| 7838 | esac |
| 7839 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7840 | # Global variables: |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7841 | ofile=libtool |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7842 | can_build_shared=yes |
| 7843 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 7844 | # All known linkers require a `.a' archive for static linking (except MSVC, |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7845 | # which needs '.lib'). |
| 7846 | libext=a |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7847 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7848 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 7849 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7850 | old_CC="$CC" |
| 7851 | old_CFLAGS="$CFLAGS" |
| 7852 | |
| 7853 | # Set sane defaults for various variables |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7854 | test -z "$CC" && CC=cc |
| 7855 | test -z "$LTCC" && LTCC=$CC |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 7856 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7857 | test -z "$LD" && LD=ld |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7858 | test -z "$ac_objext" && ac_objext=o |
| 7859 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 7860 | for cc_temp in $compiler""; do |
| 7861 | case $cc_temp in |
| 7862 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 7863 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 7864 | \-*) ;; |
| 7865 | *) break;; |
| 7866 | esac |
| 7867 | done |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7868 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 7869 | |
| 7870 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7871 | # Only perform the check for file, if the check method requires it |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7872 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7873 | case $deplibs_check_method in |
| 7874 | file_magic*) |
| 7875 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7876 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 7877 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7878 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 7879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7880 | else |
| 7881 | case $MAGIC_CMD in |
| 7882 | [\\/*] | ?:[\\/]*) |
| 7883 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 7884 | ;; |
| 7885 | *) |
| 7886 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 7887 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 7888 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 7889 | for ac_dir in $ac_dummy; do |
| 7890 | IFS="$lt_save_ifs" |
| 7891 | test -z "$ac_dir" && ac_dir=. |
| 7892 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 7893 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 7894 | if test -n "$file_magic_test_file"; then |
| 7895 | case $deplibs_check_method in |
| 7896 | "file_magic "*) |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 7897 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7898 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7899 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 7900 | $EGREP "$file_magic_regex" > /dev/null; then |
| 7901 | : |
| 7902 | else |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7903 | cat <<_LT_EOF 1>&2 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7904 | |
| 7905 | *** Warning: the command libtool uses to detect shared libraries, |
| 7906 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 7907 | *** The result is that libtool may fail to recognize shared libraries |
| 7908 | *** as such. This will affect the creation of libtool libraries that |
| 7909 | *** depend on shared libraries, but programs linked with such libtool |
| 7910 | *** libraries will work regardless of this problem. Nevertheless, you |
| 7911 | *** may want to report the problem to your system manager and/or to |
| 7912 | *** bug-libtool@gnu.org |
| 7913 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7914 | _LT_EOF |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7915 | fi ;; |
| 7916 | esac |
| 7917 | fi |
| 7918 | break |
| 7919 | fi |
| 7920 | done |
| 7921 | IFS="$lt_save_ifs" |
| 7922 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 7923 | ;; |
| 7924 | esac |
| 7925 | fi |
| 7926 | |
| 7927 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7928 | if test -n "$MAGIC_CMD"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7929 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 7930 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7931 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7932 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7933 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7934 | fi |
| 7935 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7936 | |
| 7937 | |
| 7938 | |
| 7939 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7940 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 7941 | if test -n "$ac_tool_prefix"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7942 | { echo "$as_me:$LINENO: checking for file" >&5 |
| 7943 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7944 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 7945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7946 | else |
| 7947 | case $MAGIC_CMD in |
| 7948 | [\\/*] | ?:[\\/]*) |
| 7949 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 7950 | ;; |
| 7951 | *) |
| 7952 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 7953 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 7954 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 7955 | for ac_dir in $ac_dummy; do |
| 7956 | IFS="$lt_save_ifs" |
| 7957 | test -z "$ac_dir" && ac_dir=. |
| 7958 | if test -f $ac_dir/file; then |
| 7959 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 7960 | if test -n "$file_magic_test_file"; then |
| 7961 | case $deplibs_check_method in |
| 7962 | "file_magic "*) |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 7963 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7964 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7965 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 7966 | $EGREP "$file_magic_regex" > /dev/null; then |
| 7967 | : |
| 7968 | else |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7969 | cat <<_LT_EOF 1>&2 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7970 | |
| 7971 | *** Warning: the command libtool uses to detect shared libraries, |
| 7972 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 7973 | *** The result is that libtool may fail to recognize shared libraries |
| 7974 | *** as such. This will affect the creation of libtool libraries that |
| 7975 | *** depend on shared libraries, but programs linked with such libtool |
| 7976 | *** libraries will work regardless of this problem. Nevertheless, you |
| 7977 | *** may want to report the problem to your system manager and/or to |
| 7978 | *** bug-libtool@gnu.org |
| 7979 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7980 | _LT_EOF |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7981 | fi ;; |
| 7982 | esac |
| 7983 | fi |
| 7984 | break |
| 7985 | fi |
| 7986 | done |
| 7987 | IFS="$lt_save_ifs" |
| 7988 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 7989 | ;; |
| 7990 | esac |
| 7991 | fi |
| 7992 | |
| 7993 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7994 | if test -n "$MAGIC_CMD"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7995 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 7996 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7997 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7998 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7999 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8000 | fi |
| 8001 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8002 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8003 | else |
| 8004 | MAGIC_CMD=: |
| 8005 | fi |
| 8006 | fi |
| 8007 | |
| 8008 | fi |
| 8009 | ;; |
| 8010 | esac |
| 8011 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8012 | # Use C for the default configuration in the libtool script |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8013 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8014 | lt_save_CC="$CC" |
| 8015 | ac_ext=c |
| 8016 | ac_cpp='$CPP $CPPFLAGS' |
| 8017 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8018 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8019 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8020 | |
| 8021 | |
| 8022 | # Source file extension for C test sources. |
| 8023 | ac_ext=c |
| 8024 | |
| 8025 | # Object file extension for compiled C test sources. |
| 8026 | objext=o |
| 8027 | objext=$objext |
| 8028 | |
| 8029 | # Code to be used in simple compile tests |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8030 | lt_simple_compile_test_code="int some_variable = 0;" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8031 | |
| 8032 | # Code to be used in simple link tests |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8033 | lt_simple_link_test_code='int main(){return(0);}' |
| 8034 | |
| 8035 | |
| 8036 | |
| 8037 | |
| 8038 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8039 | |
| 8040 | |
| 8041 | # If no C compiler was specified, use CC. |
| 8042 | LTCC=${LTCC-"$CC"} |
| 8043 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8044 | # If no C compiler flags were specified, use CFLAGS. |
| 8045 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 8046 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8047 | # Allow CC to be a program name with arguments. |
| 8048 | compiler=$CC |
| 8049 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8050 | # Save the default compiler, since it gets overwritten when the other |
| 8051 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
| 8052 | compiler_DEFAULT=$CC |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8053 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8054 | # save warnings/boilerplate of simple test code |
| 8055 | ac_outfile=conftest.$ac_objext |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8056 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8057 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 8058 | _lt_compiler_boilerplate=`cat conftest.err` |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8059 | $RM conftest* |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8060 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8061 | ac_outfile=conftest.$ac_objext |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8062 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8063 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 8064 | _lt_linker_boilerplate=`cat conftest.err` |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8065 | $RM -r conftest* |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8066 | |
| 8067 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8068 | if test -n "$compiler"; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8069 | |
| 8070 | lt_prog_compiler_no_builtin_flag= |
| 8071 | |
| 8072 | if test "$GCC" = yes; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8073 | case $cc_basename in |
| 8074 | nvcc*) |
| 8075 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; |
| 8076 | *) |
| 8077 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; |
| 8078 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8079 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8080 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 8081 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8082 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 8083 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8084 | else |
| 8085 | lt_cv_prog_compiler_rtti_exceptions=no |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8086 | ac_outfile=conftest.$ac_objext |
| 8087 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8088 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 8089 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8090 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8091 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8092 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8093 | # The option is referenced via a variable to avoid confusing sed. |
| 8094 | lt_compile=`echo "$ac_compile" | $SED \ |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8095 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8096 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8097 | -e 's:$: $lt_compiler_flag:'` |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8098 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8099 | (eval "$lt_compile" 2>conftest.err) |
| 8100 | ac_status=$? |
| 8101 | cat conftest.err >&5 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8103 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 8104 | # The compiler can only warn and ignore the option if not recognized |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8105 | # So say no if there are warnings other than the usual output. |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8106 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8107 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8108 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8109 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 8110 | fi |
| 8111 | fi |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8112 | $RM conftest* |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8113 | |
| 8114 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 8115 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 8116 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8117 | |
| 8118 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 8119 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 8120 | else |
| 8121 | : |
| 8122 | fi |
| 8123 | |
| 8124 | fi |
| 8125 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8126 | |
| 8127 | |
| 8128 | |
| 8129 | |
| 8130 | |
| 8131 | lt_prog_compiler_wl= |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8132 | lt_prog_compiler_pic= |
| 8133 | lt_prog_compiler_static= |
| 8134 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8135 | |
| 8136 | if test "$GCC" = yes; then |
| 8137 | lt_prog_compiler_wl='-Wl,' |
| 8138 | lt_prog_compiler_static='-static' |
| 8139 | |
| 8140 | case $host_os in |
| 8141 | aix*) |
| 8142 | # All AIX code is PIC. |
| 8143 | if test "$host_cpu" = ia64; then |
| 8144 | # AIX 5 now supports IA64 processor |
| 8145 | lt_prog_compiler_static='-Bstatic' |
| 8146 | fi |
| 8147 | ;; |
| 8148 | |
| 8149 | amigaos*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8150 | case $host_cpu in |
| 8151 | powerpc) |
| 8152 | # see comment about AmigaOS4 .so support |
| 8153 | lt_prog_compiler_pic='-fPIC' |
| 8154 | ;; |
| 8155 | m68k) |
| 8156 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 8157 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 8158 | # like `-m68040'. |
| 8159 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 8160 | ;; |
| 8161 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8162 | ;; |
| 8163 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8164 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8165 | # PIC is the default for these OSes. |
| 8166 | ;; |
| 8167 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8168 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8169 | # This hack is so that the source file can tell whether it is being |
| 8170 | # built for inclusion in a dll (and should export symbols for example). |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8171 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 8172 | # (--disable-auto-import) libraries |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8173 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 8174 | ;; |
| 8175 | |
| 8176 | darwin* | rhapsody*) |
| 8177 | # PIC is the default on this platform |
| 8178 | # Common symbols not allowed in MH_DYLIB files |
| 8179 | lt_prog_compiler_pic='-fno-common' |
| 8180 | ;; |
| 8181 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8182 | haiku*) |
| 8183 | # PIC is the default for Haiku. |
| 8184 | # The "-static" flag exists, but is broken. |
| 8185 | lt_prog_compiler_static= |
| 8186 | ;; |
| 8187 | |
| 8188 | hpux*) |
| 8189 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 8190 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 8191 | # sets the default TLS model and affects inlining. |
| 8192 | case $host_cpu in |
| 8193 | hppa*64*) |
| 8194 | # +Z the default |
| 8195 | ;; |
| 8196 | *) |
| 8197 | lt_prog_compiler_pic='-fPIC' |
| 8198 | ;; |
| 8199 | esac |
| 8200 | ;; |
| 8201 | |
| 8202 | interix[3-9]*) |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8203 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 8204 | # Instead, we relocate shared libraries at runtime. |
| 8205 | ;; |
| 8206 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8207 | msdosdjgpp*) |
| 8208 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 8209 | # on systems that don't support them. |
| 8210 | lt_prog_compiler_can_build_shared=no |
| 8211 | enable_shared=no |
| 8212 | ;; |
| 8213 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8214 | *nto* | *qnx*) |
| 8215 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 8216 | # it will coredump. |
| 8217 | lt_prog_compiler_pic='-fPIC -shared' |
| 8218 | ;; |
| 8219 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8220 | sysv4*MP*) |
| 8221 | if test -d /usr/nec; then |
| 8222 | lt_prog_compiler_pic=-Kconform_pic |
| 8223 | fi |
| 8224 | ;; |
| 8225 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8226 | *) |
| 8227 | lt_prog_compiler_pic='-fPIC' |
| 8228 | ;; |
| 8229 | esac |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8230 | |
| 8231 | case $cc_basename in |
| 8232 | nvcc*) # Cuda Compiler Driver 2.2 |
| 8233 | lt_prog_compiler_wl='-Xlinker ' |
| 8234 | lt_prog_compiler_pic='-Xcompiler -fPIC' |
| 8235 | ;; |
| 8236 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8237 | else |
| 8238 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 8239 | case $host_os in |
| 8240 | aix*) |
| 8241 | lt_prog_compiler_wl='-Wl,' |
| 8242 | if test "$host_cpu" = ia64; then |
| 8243 | # AIX 5 now supports IA64 processor |
| 8244 | lt_prog_compiler_static='-Bstatic' |
| 8245 | else |
| 8246 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 8247 | fi |
| 8248 | ;; |
| 8249 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8250 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8251 | # This hack is so that the source file can tell whether it is being |
| 8252 | # built for inclusion in a dll (and should export symbols for example). |
| 8253 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 8254 | ;; |
| 8255 | |
| 8256 | hpux9* | hpux10* | hpux11*) |
| 8257 | lt_prog_compiler_wl='-Wl,' |
| 8258 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 8259 | # not for PA HP-UX. |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8260 | case $host_cpu in |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8261 | hppa*64*|ia64*) |
| 8262 | # +Z the default |
| 8263 | ;; |
| 8264 | *) |
| 8265 | lt_prog_compiler_pic='+Z' |
| 8266 | ;; |
| 8267 | esac |
| 8268 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 8269 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
| 8270 | ;; |
| 8271 | |
| 8272 | irix5* | irix6* | nonstopux*) |
| 8273 | lt_prog_compiler_wl='-Wl,' |
| 8274 | # PIC (with -KPIC) is the default. |
| 8275 | lt_prog_compiler_static='-non_shared' |
| 8276 | ;; |
| 8277 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8278 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8279 | case $cc_basename in |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8280 | # old Intel for x86_64 which still supported -KPIC. |
| 8281 | ecc*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8282 | lt_prog_compiler_wl='-Wl,' |
| 8283 | lt_prog_compiler_pic='-KPIC' |
| 8284 | lt_prog_compiler_static='-static' |
| 8285 | ;; |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8286 | # icc used to be incompatible with GCC. |
| 8287 | # ICC 10 doesn't accept -KPIC any more. |
| 8288 | icc* | ifort*) |
| 8289 | lt_prog_compiler_wl='-Wl,' |
| 8290 | lt_prog_compiler_pic='-fPIC' |
| 8291 | lt_prog_compiler_static='-static' |
| 8292 | ;; |
| 8293 | # Lahey Fortran 8.1. |
| 8294 | lf95*) |
| 8295 | lt_prog_compiler_wl='-Wl,' |
| 8296 | lt_prog_compiler_pic='--shared' |
| 8297 | lt_prog_compiler_static='--static' |
| 8298 | ;; |
| 8299 | nagfor*) |
| 8300 | # NAG Fortran compiler |
| 8301 | lt_prog_compiler_wl='-Wl,-Wl,,' |
| 8302 | lt_prog_compiler_pic='-PIC' |
| 8303 | lt_prog_compiler_static='-Bstatic' |
| 8304 | ;; |
| 8305 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8306 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 8307 | # which looks to be a dead project) |
| 8308 | lt_prog_compiler_wl='-Wl,' |
| 8309 | lt_prog_compiler_pic='-fpic' |
| 8310 | lt_prog_compiler_static='-Bstatic' |
| 8311 | ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8312 | ccc*) |
| 8313 | lt_prog_compiler_wl='-Wl,' |
| 8314 | # All Alpha code is PIC. |
| 8315 | lt_prog_compiler_static='-non_shared' |
| 8316 | ;; |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8317 | xl* | bgxl* | bgf* | mpixl*) |
| 8318 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene |
| 8319 | lt_prog_compiler_wl='-Wl,' |
| 8320 | lt_prog_compiler_pic='-qpic' |
| 8321 | lt_prog_compiler_static='-qstaticlink' |
| 8322 | ;; |
| 8323 | *) |
| 8324 | case `$CC -V 2>&1 | sed 5q` in |
| 8325 | *Sun\ F* | *Sun*Fortran*) |
| 8326 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 8327 | lt_prog_compiler_pic='-KPIC' |
| 8328 | lt_prog_compiler_static='-Bstatic' |
| 8329 | lt_prog_compiler_wl='' |
| 8330 | ;; |
| 8331 | *Sun\ C*) |
| 8332 | # Sun C 5.9 |
| 8333 | lt_prog_compiler_pic='-KPIC' |
| 8334 | lt_prog_compiler_static='-Bstatic' |
| 8335 | lt_prog_compiler_wl='-Wl,' |
| 8336 | ;; |
| 8337 | esac |
| 8338 | ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8339 | esac |
| 8340 | ;; |
| 8341 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8342 | newsos6) |
| 8343 | lt_prog_compiler_pic='-KPIC' |
| 8344 | lt_prog_compiler_static='-Bstatic' |
| 8345 | ;; |
| 8346 | |
| 8347 | *nto* | *qnx*) |
| 8348 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 8349 | # it will coredump. |
| 8350 | lt_prog_compiler_pic='-fPIC -shared' |
| 8351 | ;; |
| 8352 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8353 | osf3* | osf4* | osf5*) |
| 8354 | lt_prog_compiler_wl='-Wl,' |
| 8355 | # All OSF/1 code is PIC. |
| 8356 | lt_prog_compiler_static='-non_shared' |
| 8357 | ;; |
| 8358 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8359 | rdos*) |
| 8360 | lt_prog_compiler_static='-non_shared' |
| 8361 | ;; |
| 8362 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8363 | solaris*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8364 | lt_prog_compiler_pic='-KPIC' |
| 8365 | lt_prog_compiler_static='-Bstatic' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8366 | case $cc_basename in |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8367 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8368 | lt_prog_compiler_wl='-Qoption ld ';; |
| 8369 | *) |
| 8370 | lt_prog_compiler_wl='-Wl,';; |
| 8371 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8372 | ;; |
| 8373 | |
| 8374 | sunos4*) |
| 8375 | lt_prog_compiler_wl='-Qoption ld ' |
| 8376 | lt_prog_compiler_pic='-PIC' |
| 8377 | lt_prog_compiler_static='-Bstatic' |
| 8378 | ;; |
| 8379 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8380 | sysv4 | sysv4.2uw2* | sysv4.3*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8381 | lt_prog_compiler_wl='-Wl,' |
| 8382 | lt_prog_compiler_pic='-KPIC' |
| 8383 | lt_prog_compiler_static='-Bstatic' |
| 8384 | ;; |
| 8385 | |
| 8386 | sysv4*MP*) |
| 8387 | if test -d /usr/nec ;then |
| 8388 | lt_prog_compiler_pic='-Kconform_pic' |
| 8389 | lt_prog_compiler_static='-Bstatic' |
| 8390 | fi |
| 8391 | ;; |
| 8392 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8393 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 8394 | lt_prog_compiler_wl='-Wl,' |
| 8395 | lt_prog_compiler_pic='-KPIC' |
| 8396 | lt_prog_compiler_static='-Bstatic' |
| 8397 | ;; |
| 8398 | |
| 8399 | unicos*) |
| 8400 | lt_prog_compiler_wl='-Wl,' |
| 8401 | lt_prog_compiler_can_build_shared=no |
| 8402 | ;; |
| 8403 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8404 | uts4*) |
| 8405 | lt_prog_compiler_pic='-pic' |
| 8406 | lt_prog_compiler_static='-Bstatic' |
| 8407 | ;; |
| 8408 | |
| 8409 | *) |
| 8410 | lt_prog_compiler_can_build_shared=no |
| 8411 | ;; |
| 8412 | esac |
| 8413 | fi |
| 8414 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8415 | case $host_os in |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8416 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 8417 | *djgpp*) |
| 8418 | lt_prog_compiler_pic= |
| 8419 | ;; |
| 8420 | *) |
| 8421 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 8422 | ;; |
| 8423 | esac |
| 8424 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8425 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 8426 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
| 8427 | if test "${lt_cv_prog_compiler_pic+set}" = set; then |
| 8428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8429 | else |
| 8430 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic |
| 8431 | fi |
| 8432 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic" >&5 |
| 8433 | echo "${ECHO_T}$lt_cv_prog_compiler_pic" >&6; } |
| 8434 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic |
| 8435 | |
| 8436 | # |
| 8437 | # Check to make sure the PIC flag actually works. |
| 8438 | # |
| 8439 | if test -n "$lt_prog_compiler_pic"; then |
| 8440 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 8441 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } |
| 8442 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then |
| 8443 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8444 | else |
| 8445 | lt_cv_prog_compiler_pic_works=no |
| 8446 | ac_outfile=conftest.$ac_objext |
| 8447 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8448 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 8449 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8450 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8451 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8452 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8453 | # The option is referenced via a variable to avoid confusing sed. |
| 8454 | lt_compile=`echo "$ac_compile" | $SED \ |
| 8455 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8456 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8457 | -e 's:$: $lt_compiler_flag:'` |
| 8458 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 8459 | (eval "$lt_compile" 2>conftest.err) |
| 8460 | ac_status=$? |
| 8461 | cat conftest.err >&5 |
| 8462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8463 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 8464 | # The compiler can only warn and ignore the option if not recognized |
| 8465 | # So say no if there are warnings other than the usual output. |
| 8466 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 8467 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8468 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 8469 | lt_cv_prog_compiler_pic_works=yes |
| 8470 | fi |
| 8471 | fi |
| 8472 | $RM conftest* |
| 8473 | |
| 8474 | fi |
| 8475 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 |
| 8476 | echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; } |
| 8477 | |
| 8478 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
| 8479 | case $lt_prog_compiler_pic in |
| 8480 | "" | " "*) ;; |
| 8481 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 8482 | esac |
| 8483 | else |
| 8484 | lt_prog_compiler_pic= |
| 8485 | lt_prog_compiler_can_build_shared=no |
| 8486 | fi |
| 8487 | |
| 8488 | fi |
| 8489 | |
| 8490 | |
| 8491 | |
| 8492 | |
| 8493 | |
| 8494 | |
| 8495 | |
| 8496 | |
| 8497 | |
| 8498 | |
| 8499 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8500 | # |
| 8501 | # Check to make sure the static flag actually works. |
| 8502 | # |
| 8503 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 8504 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 8505 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8506 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8508 | else |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8509 | lt_cv_prog_compiler_static_works=no |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8510 | save_LDFLAGS="$LDFLAGS" |
| 8511 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8512 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8513 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 8514 | # The linker can only warn and ignore the option if not recognized |
| 8515 | # So say no if there are warnings |
| 8516 | if test -s conftest.err; then |
| 8517 | # Append any errors to the config.log. |
| 8518 | cat conftest.err 1>&5 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8519 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8520 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8521 | if diff conftest.exp conftest.er2 >/dev/null; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8522 | lt_cv_prog_compiler_static_works=yes |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8523 | fi |
| 8524 | else |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8525 | lt_cv_prog_compiler_static_works=yes |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8526 | fi |
| 8527 | fi |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8528 | $RM -r conftest* |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8529 | LDFLAGS="$save_LDFLAGS" |
| 8530 | |
| 8531 | fi |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8532 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 |
| 8533 | echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; } |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8534 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8535 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8536 | : |
| 8537 | else |
| 8538 | lt_prog_compiler_static= |
| 8539 | fi |
| 8540 | |
| 8541 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8542 | |
| 8543 | |
| 8544 | |
| 8545 | |
| 8546 | |
| 8547 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 8548 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8549 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
| 8550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8551 | else |
| 8552 | lt_cv_prog_compiler_c_o=no |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8553 | $RM -r conftest 2>/dev/null |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8554 | mkdir conftest |
| 8555 | cd conftest |
| 8556 | mkdir out |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8557 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8558 | |
| 8559 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 8560 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8561 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8562 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8563 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8564 | lt_compile=`echo "$ac_compile" | $SED \ |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8565 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8566 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8567 | -e 's:$: $lt_compiler_flag:'` |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8568 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8569 | (eval "$lt_compile" 2>out/conftest.err) |
| 8570 | ac_status=$? |
| 8571 | cat out/conftest.err >&5 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8573 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 8574 | then |
| 8575 | # The compiler can only warn and ignore the option if not recognized |
| 8576 | # So say no if there are warnings |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8577 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8578 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 8579 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8580 | lt_cv_prog_compiler_c_o=yes |
| 8581 | fi |
| 8582 | fi |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8583 | chmod u+w . 2>&5 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8584 | $RM conftest* |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8585 | # SGI C++ compiler will create directory out/ii_files/ for |
| 8586 | # template instantiation |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8587 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 8588 | $RM out/* && rmdir out |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8589 | cd .. |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8590 | $RM -r conftest |
| 8591 | $RM conftest* |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8592 | |
| 8593 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 8594 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 8595 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8596 | |
| 8597 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8598 | |
| 8599 | |
| 8600 | |
| 8601 | |
| 8602 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 8603 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
| 8604 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
| 8605 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8606 | else |
| 8607 | lt_cv_prog_compiler_c_o=no |
| 8608 | $RM -r conftest 2>/dev/null |
| 8609 | mkdir conftest |
| 8610 | cd conftest |
| 8611 | mkdir out |
| 8612 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8613 | |
| 8614 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 8615 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8616 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8617 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8618 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8619 | lt_compile=`echo "$ac_compile" | $SED \ |
| 8620 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8621 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8622 | -e 's:$: $lt_compiler_flag:'` |
| 8623 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 8624 | (eval "$lt_compile" 2>out/conftest.err) |
| 8625 | ac_status=$? |
| 8626 | cat out/conftest.err >&5 |
| 8627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8628 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 8629 | then |
| 8630 | # The compiler can only warn and ignore the option if not recognized |
| 8631 | # So say no if there are warnings |
| 8632 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 8633 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 8634 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 8635 | lt_cv_prog_compiler_c_o=yes |
| 8636 | fi |
| 8637 | fi |
| 8638 | chmod u+w . 2>&5 |
| 8639 | $RM conftest* |
| 8640 | # SGI C++ compiler will create directory out/ii_files/ for |
| 8641 | # template instantiation |
| 8642 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 8643 | $RM out/* && rmdir out |
| 8644 | cd .. |
| 8645 | $RM -r conftest |
| 8646 | $RM conftest* |
| 8647 | |
| 8648 | fi |
| 8649 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 8650 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } |
| 8651 | |
| 8652 | |
| 8653 | |
| 8654 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8655 | hard_links="nottested" |
| 8656 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
| 8657 | # do not overwrite the value of need_locks provided by the user |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 8658 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 8659 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8660 | hard_links=yes |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8661 | $RM conftest* |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8662 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 8663 | touch conftest.a |
| 8664 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 8665 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 8666 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 8667 | echo "${ECHO_T}$hard_links" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8668 | if test "$hard_links" = no; then |
| 8669 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 8670 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 8671 | need_locks=warn |
| 8672 | fi |
| 8673 | else |
| 8674 | need_locks=no |
| 8675 | fi |
| 8676 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8677 | |
| 8678 | |
| 8679 | |
| 8680 | |
| 8681 | |
| 8682 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 8683 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8684 | |
| 8685 | runpath_var= |
| 8686 | allow_undefined_flag= |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8687 | always_export_symbols=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8688 | archive_cmds= |
| 8689 | archive_expsym_cmds= |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8690 | compiler_needs_object=no |
| 8691 | enable_shared_with_static_runtimes=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8692 | export_dynamic_flag_spec= |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8693 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 8694 | hardcode_automatic=no |
| 8695 | hardcode_direct=no |
| 8696 | hardcode_direct_absolute=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8697 | hardcode_libdir_flag_spec= |
| 8698 | hardcode_libdir_flag_spec_ld= |
| 8699 | hardcode_libdir_separator= |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8700 | hardcode_minus_L=no |
| 8701 | hardcode_shlibpath_var=unsupported |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8702 | inherit_rpath=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8703 | link_all_deplibs=unknown |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8704 | module_cmds= |
| 8705 | module_expsym_cmds= |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8706 | old_archive_from_new_cmds= |
| 8707 | old_archive_from_expsyms_cmds= |
| 8708 | thread_safe_flag_spec= |
| 8709 | whole_archive_flag_spec= |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8710 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 8711 | # included in the symbol list |
| 8712 | include_expsyms= |
| 8713 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 8714 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 8715 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 8716 | # as well as any symbol that contains `d'. |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8717 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8718 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 8719 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 8720 | # the symbol is explicitly referenced. Since portable code cannot |
| 8721 | # rely on this symbol name, it's probably fine to never include it in |
| 8722 | # preloaded symbol tables. |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8723 | # Exclude shared library initialization/finalization symbols. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8724 | extract_expsyms_cmds= |
| 8725 | |
| 8726 | case $host_os in |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8727 | cygwin* | mingw* | pw32* | cegcc*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8728 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 8729 | # When not using gcc, we currently assume that we are using |
| 8730 | # Microsoft Visual C++. |
| 8731 | if test "$GCC" != yes; then |
| 8732 | with_gnu_ld=no |
| 8733 | fi |
| 8734 | ;; |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8735 | interix*) |
| 8736 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 8737 | with_gnu_ld=yes |
| 8738 | ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8739 | openbsd*) |
| 8740 | with_gnu_ld=no |
| 8741 | ;; |
| 8742 | esac |
| 8743 | |
| 8744 | ld_shlibs=yes |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8745 | |
| 8746 | # On some targets, GNU ld is compatible enough with the native linker |
| 8747 | # that we're better off using the native interface for both. |
| 8748 | lt_use_gnu_ld_interface=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8749 | if test "$with_gnu_ld" = yes; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8750 | case $host_os in |
| 8751 | aix*) |
| 8752 | # The AIX port of GNU ld has always aspired to compatibility |
| 8753 | # with the native linker. However, as the warning in the GNU ld |
| 8754 | # block says, versions before 2.19.5* couldn't really create working |
| 8755 | # shared libraries, regardless of the interface used. |
| 8756 | case `$LD -v 2>&1` in |
| 8757 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; |
| 8758 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; |
| 8759 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; |
| 8760 | *) |
| 8761 | lt_use_gnu_ld_interface=yes |
| 8762 | ;; |
| 8763 | esac |
| 8764 | ;; |
| 8765 | *) |
| 8766 | lt_use_gnu_ld_interface=yes |
| 8767 | ;; |
| 8768 | esac |
| 8769 | fi |
| 8770 | |
| 8771 | if test "$lt_use_gnu_ld_interface" = yes; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8772 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 8773 | wlarc='${wl}' |
| 8774 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8775 | # Set some defaults for GNU ld with shared library support. These |
| 8776 | # are reset later if shared libraries are not supported. Putting them |
| 8777 | # here allows them to be overridden if necessary. |
| 8778 | runpath_var=LD_RUN_PATH |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8779 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8780 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 8781 | # ancient GNU ld didn't support --whole-archive et. al. |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8782 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 8783 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 8784 | else |
| 8785 | whole_archive_flag_spec= |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8786 | fi |
| 8787 | supports_anon_versioning=no |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8788 | case `$LD -v 2>&1` in |
| 8789 | *GNU\ gold*) supports_anon_versioning=yes ;; |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8790 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 8791 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 8792 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 8793 | *\ 2.11.*) ;; # other 2.11 versions |
| 8794 | *) supports_anon_versioning=yes ;; |
| 8795 | esac |
| 8796 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8797 | # See if GNU ld supports shared libraries. |
| 8798 | case $host_os in |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8799 | aix[3-9]*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8800 | # On AIX/PPC, the GNU linker is very broken |
| 8801 | if test "$host_cpu" != ia64; then |
| 8802 | ld_shlibs=no |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8803 | cat <<_LT_EOF 1>&2 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8804 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8805 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8806 | *** to be unable to reliably create shared libraries on AIX. |
| 8807 | *** Therefore, libtool is disabling shared libraries support. If you |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8808 | *** really care for shared libraries, you may want to install binutils |
| 8809 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. |
| 8810 | *** You will then need to restart the configuration process. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8811 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8812 | _LT_EOF |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8813 | fi |
| 8814 | ;; |
| 8815 | |
| 8816 | amigaos*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8817 | case $host_cpu in |
| 8818 | powerpc) |
| 8819 | # see comment about AmigaOS4 .so support |
| 8820 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8821 | archive_expsym_cmds='' |
| 8822 | ;; |
| 8823 | m68k) |
| 8824 | 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)' |
| 8825 | hardcode_libdir_flag_spec='-L$libdir' |
| 8826 | hardcode_minus_L=yes |
| 8827 | ;; |
| 8828 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8829 | ;; |
| 8830 | |
| 8831 | beos*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8832 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8833 | allow_undefined_flag=unsupported |
| 8834 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 8835 | # support --undefined. This deserves some investigation. FIXME |
| 8836 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8837 | else |
| 8838 | ld_shlibs=no |
| 8839 | fi |
| 8840 | ;; |
| 8841 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8842 | cygwin* | mingw* | pw32* | cegcc*) |
| 8843 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8844 | # as there is no search path for DLLs. |
| 8845 | hardcode_libdir_flag_spec='-L$libdir' |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8846 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8847 | allow_undefined_flag=unsupported |
| 8848 | always_export_symbols=no |
| 8849 | enable_shared_with_static_runtimes=yes |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8850 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' |
| 8851 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8852 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8853 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8854 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8855 | # If the export-symbols file already is a .def file (1st line |
| 8856 | # is EXPORTS), use it as is; otherwise, prepend... |
| 8857 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 8858 | cp $export_symbols $output_objdir/$soname.def; |
| 8859 | else |
| 8860 | echo EXPORTS > $output_objdir/$soname.def; |
| 8861 | cat $export_symbols >> $output_objdir/$soname.def; |
| 8862 | fi~ |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8863 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 8864 | else |
| 8865 | ld_shlibs=no |
| 8866 | fi |
| 8867 | ;; |
| 8868 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8869 | haiku*) |
| 8870 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8871 | link_all_deplibs=yes |
| 8872 | ;; |
| 8873 | |
| 8874 | interix[3-9]*) |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8875 | hardcode_direct=no |
| 8876 | hardcode_shlibpath_var=no |
| 8877 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 8878 | export_dynamic_flag_spec='${wl}-E' |
| 8879 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 8880 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 8881 | # default) and relocated if they conflict, which is a slow very memory |
| 8882 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 8883 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 8884 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 8885 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 8886 | 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' |
| 8887 | ;; |
| 8888 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8889 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
| 8890 | tmp_diet=no |
| 8891 | if test "$host_os" = linux-dietlibc; then |
| 8892 | case $cc_basename in |
| 8893 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
| 8894 | esac |
| 8895 | fi |
| 8896 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 8897 | && test "$tmp_diet" = no |
| 8898 | then |
| 8899 | tmp_addflag=' $pic_flag' |
| 8900 | tmp_sharedflag='-shared' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8901 | case $cc_basename,$host_cpu in |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8902 | pgcc*) # Portland Group C compiler |
| 8903 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8904 | tmp_addflag=' $pic_flag' |
| 8905 | ;; |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8906 | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 8907 | # Portland Group f77 and f90 compilers |
| 8908 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8909 | tmp_addflag=' $pic_flag -Mnomain' ;; |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8910 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8911 | tmp_addflag=' -i_dynamic' ;; |
| 8912 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 8913 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 8914 | ifc* | ifort*) # Intel Fortran compiler |
| 8915 | tmp_addflag=' -nofor_main' ;; |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8916 | lf95*) # Lahey Fortran 8.1 |
| 8917 | whole_archive_flag_spec= |
| 8918 | tmp_sharedflag='--shared' ;; |
| 8919 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
| 8920 | tmp_sharedflag='-qmkshrobj' |
| 8921 | tmp_addflag= ;; |
| 8922 | nvcc*) # Cuda Compiler Driver 2.2 |
| 8923 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
| 8924 | compiler_needs_object=yes |
| 8925 | ;; |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8926 | esac |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8927 | case `$CC -V 2>&1 | sed 5q` in |
| 8928 | *Sun\ C*) # Sun C 5.9 |
| 8929 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
| 8930 | compiler_needs_object=yes |
| 8931 | tmp_sharedflag='-G' ;; |
| 8932 | *Sun\ F*) # Sun Fortran 8.3 |
| 8933 | tmp_sharedflag='-G' ;; |
| 8934 | esac |
| 8935 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8936 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8937 | if test "x$supports_anon_versioning" = xyes; then |
| 8938 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 8939 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 8940 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 8941 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 8942 | fi |
| 8943 | |
| 8944 | case $cc_basename in |
| 8945 | xlf* | bgf* | bgxlf* | mpixlf*) |
| 8946 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 8947 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
| 8948 | hardcode_libdir_flag_spec= |
| 8949 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 8950 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
| 8951 | if test "x$supports_anon_versioning" = xyes; then |
| 8952 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 8953 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 8954 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 8955 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
| 8956 | fi |
| 8957 | ;; |
| 8958 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8959 | else |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8960 | ld_shlibs=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8961 | fi |
| 8962 | ;; |
| 8963 | |
| 8964 | netbsd*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8965 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8966 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 8967 | wlarc= |
| 8968 | else |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8969 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8970 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8971 | fi |
| 8972 | ;; |
| 8973 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8974 | solaris*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8975 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8976 | ld_shlibs=no |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8977 | cat <<_LT_EOF 1>&2 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8978 | |
| 8979 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 8980 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 8981 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 8982 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 8983 | *** your PATH or compiler configuration so that the native linker is |
| 8984 | *** used, and then restart. |
| 8985 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8986 | _LT_EOF |
| 8987 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 8988 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8989 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8990 | else |
| 8991 | ld_shlibs=no |
| 8992 | fi |
| 8993 | ;; |
| 8994 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8995 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 8996 | case `$LD -v 2>&1` in |
| 8997 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 8998 | ld_shlibs=no |
| 8999 | cat <<_LT_EOF 1>&2 |
| 9000 | |
| 9001 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 9002 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 9003 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 9004 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 9005 | *** your PATH or compiler configuration so that the native linker is |
| 9006 | *** used, and then restart. |
| 9007 | |
| 9008 | _LT_EOF |
| 9009 | ;; |
| 9010 | *) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9011 | # For security reasons, it is highly recommended that you always |
| 9012 | # use absolute paths for naming shared libraries, and exclude the |
| 9013 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 9014 | # requires that you compile everything twice, which is a pain. |
| 9015 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 9016 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9017 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9018 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9019 | else |
| 9020 | ld_shlibs=no |
| 9021 | fi |
| 9022 | ;; |
| 9023 | esac |
| 9024 | ;; |
| 9025 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9026 | sunos4*) |
| 9027 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 9028 | wlarc= |
| 9029 | hardcode_direct=yes |
| 9030 | hardcode_shlibpath_var=no |
| 9031 | ;; |
| 9032 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9033 | *) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9034 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 9035 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9036 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9037 | else |
| 9038 | ld_shlibs=no |
| 9039 | fi |
| 9040 | ;; |
| 9041 | esac |
| 9042 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9043 | if test "$ld_shlibs" = no; then |
| 9044 | runpath_var= |
| 9045 | hardcode_libdir_flag_spec= |
| 9046 | export_dynamic_flag_spec= |
| 9047 | whole_archive_flag_spec= |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9048 | fi |
| 9049 | else |
| 9050 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 9051 | case $host_os in |
| 9052 | aix3*) |
| 9053 | allow_undefined_flag=unsupported |
| 9054 | always_export_symbols=yes |
| 9055 | 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' |
| 9056 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 9057 | # are no directories specified by -L. |
| 9058 | hardcode_minus_L=yes |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9059 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9060 | # Neither direct hardcoding nor static linking is supported with a |
| 9061 | # broken collect2. |
| 9062 | hardcode_direct=unsupported |
| 9063 | fi |
| 9064 | ;; |
| 9065 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9066 | aix[4-9]*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9067 | if test "$host_cpu" = ia64; then |
| 9068 | # On IA64, the linker does run time linking by default, so we don't |
| 9069 | # have to do anything special. |
| 9070 | aix_use_runtimelinking=no |
| 9071 | exp_sym_flag='-Bexport' |
| 9072 | no_entry_flag="" |
| 9073 | else |
| 9074 | # If we're using GNU nm, then we don't want the "-C" option. |
| 9075 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9076 | # Also, AIX nm treats weak defined symbols like other global |
| 9077 | # defined symbols, whereas GNU nm marks them as "W". |
| 9078 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 9079 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9080 | else |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9081 | 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' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9082 | fi |
| 9083 | aix_use_runtimelinking=no |
| 9084 | |
| 9085 | # Test if we are trying to use run time linking or normal |
| 9086 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 9087 | # need to do runtime linking. |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9088 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9089 | for ld_flag in $LDFLAGS; do |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9090 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 9091 | aix_use_runtimelinking=yes |
| 9092 | break |
| 9093 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9094 | done |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9095 | ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9096 | esac |
| 9097 | |
| 9098 | exp_sym_flag='-bexport' |
| 9099 | no_entry_flag='-bnoentry' |
| 9100 | fi |
| 9101 | |
| 9102 | # When large executables or shared objects are built, AIX ld can |
| 9103 | # have problems creating the table of contents. If linking a library |
| 9104 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 9105 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 9106 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 9107 | |
| 9108 | archive_cmds='' |
| 9109 | hardcode_direct=yes |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9110 | hardcode_direct_absolute=yes |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9111 | hardcode_libdir_separator=':' |
| 9112 | link_all_deplibs=yes |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9113 | file_list_spec='${wl}-f,' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9114 | |
| 9115 | if test "$GCC" = yes; then |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9116 | case $host_os in aix4.[012]|aix4.[012].*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9117 | # We only want to do this on AIX 4.2 and lower, the check |
| 9118 | # below for broken collect2 doesn't work under 4.3+ |
| 9119 | collect2name=`${CC} -print-prog-name=collect2` |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9120 | if test -f "$collect2name" && |
| 9121 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9122 | then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9123 | # We have reworked collect2 |
| 9124 | : |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9125 | else |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9126 | # We have old collect2 |
| 9127 | hardcode_direct=unsupported |
| 9128 | # It fails to find uninstalled libraries when the uninstalled |
| 9129 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 9130 | # to unsupported forces relinking |
| 9131 | hardcode_minus_L=yes |
| 9132 | hardcode_libdir_flag_spec='-L$libdir' |
| 9133 | hardcode_libdir_separator= |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9134 | fi |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9135 | ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9136 | esac |
| 9137 | shared_flag='-shared' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9138 | if test "$aix_use_runtimelinking" = yes; then |
| 9139 | shared_flag="$shared_flag "'${wl}-G' |
| 9140 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9141 | else |
| 9142 | # not using gcc |
| 9143 | if test "$host_cpu" = ia64; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9144 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 9145 | # chokes on -Wl,-G. The following line is correct: |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9146 | shared_flag='-G' |
| 9147 | else |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9148 | if test "$aix_use_runtimelinking" = yes; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9149 | shared_flag='${wl}-G' |
| 9150 | else |
| 9151 | shared_flag='${wl}-bM:SRE' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9152 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9153 | fi |
| 9154 | fi |
| 9155 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9156 | export_dynamic_flag_spec='${wl}-bexpall' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9157 | # It seems that -bexpall does not export symbols beginning with |
| 9158 | # underscore (_), so it is better to generate a list of symbols to export. |
| 9159 | always_export_symbols=yes |
| 9160 | if test "$aix_use_runtimelinking" = yes; then |
| 9161 | # Warning - without using the other runtime loading flags (-brtl), |
| 9162 | # -berok will link without error, but may produce a broken library. |
| 9163 | allow_undefined_flag='-berok' |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9164 | # Determine the default libpath from the value encoded in an |
| 9165 | # empty executable. |
| 9166 | if test "${lt_cv_aix_libpath+set}" = set; then |
| 9167 | aix_libpath=$lt_cv_aix_libpath |
| 9168 | else |
| 9169 | if test "${lt_cv_aix_libpath_+set}" = set; then |
| 9170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9171 | else |
| 9172 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9173 | /* confdefs.h. */ |
| 9174 | _ACEOF |
| 9175 | cat confdefs.h >>conftest.$ac_ext |
| 9176 | cat >>conftest.$ac_ext <<_ACEOF |
| 9177 | /* end confdefs.h. */ |
| 9178 | |
| 9179 | int |
| 9180 | main () |
| 9181 | { |
| 9182 | |
| 9183 | ; |
| 9184 | return 0; |
| 9185 | } |
| 9186 | _ACEOF |
| 9187 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9188 | if { (ac_try="$ac_link" |
| 9189 | case "(($ac_try" in |
| 9190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9191 | *) ac_try_echo=$ac_try;; |
| 9192 | esac |
| 9193 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9194 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9195 | ac_status=$? |
| 9196 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9197 | rm -f conftest.er1 |
| 9198 | cat conftest.err >&5 |
| 9199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9200 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9201 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9202 | { (case "(($ac_try" in |
| 9203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9204 | *) ac_try_echo=$ac_try;; |
| 9205 | esac |
| 9206 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9207 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9208 | ac_status=$? |
| 9209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9210 | (exit $ac_status); }; } && |
| 9211 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9212 | { (case "(($ac_try" in |
| 9213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9214 | *) ac_try_echo=$ac_try;; |
| 9215 | esac |
| 9216 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9217 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9218 | ac_status=$? |
| 9219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9220 | (exit $ac_status); }; }; then |
| 9221 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9222 | lt_aix_libpath_sed=' |
| 9223 | /Import File Strings/,/^$/ { |
| 9224 | /^0/ { |
| 9225 | s/^0 *\([^ ]*\) *$/\1/ |
| 9226 | p |
| 9227 | } |
| 9228 | }' |
| 9229 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9230 | # Check for a 64-bit object if we didn't find anything. |
| 9231 | if test -z "$lt_cv_aix_libpath_"; then |
| 9232 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9233 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9234 | else |
| 9235 | echo "$as_me: failed program was:" >&5 |
| 9236 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9237 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9238 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9239 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9240 | |
| 9241 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9242 | conftest$ac_exeext conftest.$ac_ext |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9243 | if test -z "$lt_cv_aix_libpath_"; then |
| 9244 | lt_cv_aix_libpath_="/usr/lib:/lib" |
| 9245 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9246 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9247 | fi |
| 9248 | |
| 9249 | aix_libpath=$lt_cv_aix_libpath_ |
| 9250 | fi |
| 9251 | |
| 9252 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9253 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 9254 | else |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9255 | if test "$host_cpu" = ia64; then |
| 9256 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 9257 | allow_undefined_flag="-z nodefs" |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9258 | 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" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9259 | else |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9260 | # Determine the default libpath from the value encoded in an |
| 9261 | # empty executable. |
| 9262 | if test "${lt_cv_aix_libpath+set}" = set; then |
| 9263 | aix_libpath=$lt_cv_aix_libpath |
| 9264 | else |
| 9265 | if test "${lt_cv_aix_libpath_+set}" = set; then |
| 9266 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9267 | else |
| 9268 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9269 | /* confdefs.h. */ |
| 9270 | _ACEOF |
| 9271 | cat confdefs.h >>conftest.$ac_ext |
| 9272 | cat >>conftest.$ac_ext <<_ACEOF |
| 9273 | /* end confdefs.h. */ |
| 9274 | |
| 9275 | int |
| 9276 | main () |
| 9277 | { |
| 9278 | |
| 9279 | ; |
| 9280 | return 0; |
| 9281 | } |
| 9282 | _ACEOF |
| 9283 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9284 | if { (ac_try="$ac_link" |
| 9285 | case "(($ac_try" in |
| 9286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9287 | *) ac_try_echo=$ac_try;; |
| 9288 | esac |
| 9289 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9290 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9291 | ac_status=$? |
| 9292 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9293 | rm -f conftest.er1 |
| 9294 | cat conftest.err >&5 |
| 9295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9296 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9297 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9298 | { (case "(($ac_try" in |
| 9299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9300 | *) ac_try_echo=$ac_try;; |
| 9301 | esac |
| 9302 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9303 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9304 | ac_status=$? |
| 9305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9306 | (exit $ac_status); }; } && |
| 9307 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9308 | { (case "(($ac_try" in |
| 9309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9310 | *) ac_try_echo=$ac_try;; |
| 9311 | esac |
| 9312 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9313 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9314 | ac_status=$? |
| 9315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9316 | (exit $ac_status); }; }; then |
| 9317 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9318 | lt_aix_libpath_sed=' |
| 9319 | /Import File Strings/,/^$/ { |
| 9320 | /^0/ { |
| 9321 | s/^0 *\([^ ]*\) *$/\1/ |
| 9322 | p |
| 9323 | } |
| 9324 | }' |
| 9325 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9326 | # Check for a 64-bit object if we didn't find anything. |
| 9327 | if test -z "$lt_cv_aix_libpath_"; then |
| 9328 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9329 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9330 | else |
| 9331 | echo "$as_me: failed program was:" >&5 |
| 9332 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9333 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9334 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9335 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9336 | |
| 9337 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9338 | conftest$ac_exeext conftest.$ac_ext |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9339 | if test -z "$lt_cv_aix_libpath_"; then |
| 9340 | lt_cv_aix_libpath_="/usr/lib:/lib" |
| 9341 | fi |
| 9342 | |
| 9343 | fi |
| 9344 | |
| 9345 | aix_libpath=$lt_cv_aix_libpath_ |
| 9346 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9347 | |
| 9348 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9349 | # Warning - without using the other run time loading flags, |
| 9350 | # -berok will link without error, but may produce a broken library. |
| 9351 | no_undefined_flag=' ${wl}-bernotok' |
| 9352 | allow_undefined_flag=' ${wl}-berok' |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9353 | if test "$with_gnu_ld" = yes; then |
| 9354 | # We only use this code for GNU lds that support --whole-archive. |
| 9355 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 9356 | else |
| 9357 | # Exported symbols can be pulled into shared objects from archives |
| 9358 | whole_archive_flag_spec='$convenience' |
| 9359 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9360 | archive_cmds_need_lc=yes |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9361 | # This is similar to how AIX traditionally builds its shared libraries. |
| 9362 | 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' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9363 | fi |
| 9364 | fi |
| 9365 | ;; |
| 9366 | |
| 9367 | amigaos*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9368 | case $host_cpu in |
| 9369 | powerpc) |
| 9370 | # see comment about AmigaOS4 .so support |
| 9371 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9372 | archive_expsym_cmds='' |
| 9373 | ;; |
| 9374 | m68k) |
| 9375 | 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)' |
| 9376 | hardcode_libdir_flag_spec='-L$libdir' |
| 9377 | hardcode_minus_L=yes |
| 9378 | ;; |
| 9379 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9380 | ;; |
| 9381 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9382 | bsdi[45]*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9383 | export_dynamic_flag_spec=-rdynamic |
| 9384 | ;; |
| 9385 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9386 | cygwin* | mingw* | pw32* | cegcc*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9387 | # When not using gcc, we currently assume that we are using |
| 9388 | # Microsoft Visual C++. |
| 9389 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 9390 | # no search path for DLLs. |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9391 | case $cc_basename in |
| 9392 | cl*) |
| 9393 | # Native MSVC |
| 9394 | hardcode_libdir_flag_spec=' ' |
| 9395 | allow_undefined_flag=unsupported |
| 9396 | always_export_symbols=yes |
| 9397 | file_list_spec='@' |
| 9398 | # Tell ltmain to make .lib files, not .a files. |
| 9399 | libext=lib |
| 9400 | # Tell ltmain to make .dll files, not .so files. |
| 9401 | shrext_cmds=".dll" |
| 9402 | # FIXME: Setting linknames here is a bad hack. |
| 9403 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' |
| 9404 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 9405 | sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; |
| 9406 | else |
| 9407 | sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; |
| 9408 | fi~ |
| 9409 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
| 9410 | linknames=' |
| 9411 | # The linker will not automatically build a static lib if we build a DLL. |
| 9412 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' |
| 9413 | enable_shared_with_static_runtimes=yes |
| 9414 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
| 9415 | # Don't use ranlib |
| 9416 | old_postinstall_cmds='chmod 644 $oldlib' |
| 9417 | postlink_cmds='lt_outputfile="@OUTPUT@"~ |
| 9418 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
| 9419 | case $lt_outputfile in |
| 9420 | *.exe|*.EXE) ;; |
| 9421 | *) |
| 9422 | lt_outputfile="$lt_outputfile.exe" |
| 9423 | lt_tool_outputfile="$lt_tool_outputfile.exe" |
| 9424 | ;; |
| 9425 | esac~ |
| 9426 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then |
| 9427 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
| 9428 | $RM "$lt_outputfile.manifest"; |
| 9429 | fi' |
| 9430 | ;; |
| 9431 | *) |
| 9432 | # Assume MSVC wrapper |
| 9433 | hardcode_libdir_flag_spec=' ' |
| 9434 | allow_undefined_flag=unsupported |
| 9435 | # Tell ltmain to make .lib files, not .a files. |
| 9436 | libext=lib |
| 9437 | # Tell ltmain to make .dll files, not .so files. |
| 9438 | shrext_cmds=".dll" |
| 9439 | # FIXME: Setting linknames here is a bad hack. |
| 9440 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 9441 | # The linker will automatically build a .lib file if we build a DLL. |
| 9442 | old_archive_from_new_cmds='true' |
| 9443 | # FIXME: Should let the user specify the lib program. |
| 9444 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
| 9445 | enable_shared_with_static_runtimes=yes |
| 9446 | ;; |
| 9447 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9448 | ;; |
| 9449 | |
| 9450 | darwin* | rhapsody*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9451 | |
| 9452 | |
| 9453 | archive_cmds_need_lc=no |
| 9454 | hardcode_direct=no |
| 9455 | hardcode_automatic=yes |
| 9456 | hardcode_shlibpath_var=unsupported |
| 9457 | if test "$lt_cv_ld_force_load" = "yes"; then |
| 9458 | whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' |
| 9459 | else |
| 9460 | whole_archive_flag_spec='' |
| 9461 | fi |
| 9462 | link_all_deplibs=yes |
| 9463 | allow_undefined_flag="$_lt_dar_allow_undefined" |
| 9464 | case $cc_basename in |
| 9465 | ifort*) _lt_dar_can_shared=yes ;; |
| 9466 | *) _lt_dar_can_shared=$GCC ;; |
| 9467 | esac |
| 9468 | if test "$_lt_dar_can_shared" = "yes"; then |
| 9469 | output_verbose_link_cmd=func_echo_all |
| 9470 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
| 9471 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 9472 | archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" |
| 9473 | module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" |
| 9474 | |
| 9475 | else |
| 9476 | ld_shlibs=no |
| 9477 | fi |
| 9478 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9479 | ;; |
| 9480 | |
| 9481 | dgux*) |
| 9482 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9483 | hardcode_libdir_flag_spec='-L$libdir' |
| 9484 | hardcode_shlibpath_var=no |
| 9485 | ;; |
| 9486 | |
| 9487 | freebsd1*) |
| 9488 | ld_shlibs=no |
| 9489 | ;; |
| 9490 | |
| 9491 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 9492 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 9493 | # does not break anything, and helps significantly (at the cost of a little |
| 9494 | # extra space). |
| 9495 | freebsd2.2*) |
| 9496 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 9497 | hardcode_libdir_flag_spec='-R$libdir' |
| 9498 | hardcode_direct=yes |
| 9499 | hardcode_shlibpath_var=no |
| 9500 | ;; |
| 9501 | |
| 9502 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 9503 | freebsd2*) |
| 9504 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 9505 | hardcode_direct=yes |
| 9506 | hardcode_minus_L=yes |
| 9507 | hardcode_shlibpath_var=no |
| 9508 | ;; |
| 9509 | |
| 9510 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9511 | freebsd* | dragonfly*) |
| 9512 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9513 | hardcode_libdir_flag_spec='-R$libdir' |
| 9514 | hardcode_direct=yes |
| 9515 | hardcode_shlibpath_var=no |
| 9516 | ;; |
| 9517 | |
| 9518 | hpux9*) |
| 9519 | if test "$GCC" = yes; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9520 | archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9521 | else |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9522 | 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' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9523 | fi |
| 9524 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 9525 | hardcode_libdir_separator=: |
| 9526 | hardcode_direct=yes |
| 9527 | |
| 9528 | # hardcode_minus_L: Not really in the search PATH, |
| 9529 | # but as the default location of the library. |
| 9530 | hardcode_minus_L=yes |
| 9531 | export_dynamic_flag_spec='${wl}-E' |
| 9532 | ;; |
| 9533 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9534 | hpux10*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9535 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
| 9536 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9537 | else |
| 9538 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 9539 | fi |
| 9540 | if test "$with_gnu_ld" = no; then |
| 9541 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9542 | hardcode_libdir_flag_spec_ld='+b $libdir' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9543 | hardcode_libdir_separator=: |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9544 | hardcode_direct=yes |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9545 | hardcode_direct_absolute=yes |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9546 | export_dynamic_flag_spec='${wl}-E' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9547 | # hardcode_minus_L: Not really in the search PATH, |
| 9548 | # but as the default location of the library. |
| 9549 | hardcode_minus_L=yes |
| 9550 | fi |
| 9551 | ;; |
| 9552 | |
| 9553 | hpux11*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9554 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9555 | case $host_cpu in |
| 9556 | hppa*64*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9557 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9558 | ;; |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9559 | ia64*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9560 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9561 | ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9562 | *) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9563 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9564 | ;; |
| 9565 | esac |
| 9566 | else |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9567 | case $host_cpu in |
| 9568 | hppa*64*) |
| 9569 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9570 | ;; |
| 9571 | ia64*) |
| 9572 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9573 | ;; |
| 9574 | *) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9575 | |
| 9576 | # Older versions of the 11.00 compiler do not understand -b yet |
| 9577 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) |
| 9578 | { echo "$as_me:$LINENO: checking if $CC understands -b" >&5 |
| 9579 | echo $ECHO_N "checking if $CC understands -b... $ECHO_C" >&6; } |
| 9580 | if test "${lt_cv_prog_compiler__b+set}" = set; then |
| 9581 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9582 | else |
| 9583 | lt_cv_prog_compiler__b=no |
| 9584 | save_LDFLAGS="$LDFLAGS" |
| 9585 | LDFLAGS="$LDFLAGS -b" |
| 9586 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 9587 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 9588 | # The linker can only warn and ignore the option if not recognized |
| 9589 | # So say no if there are warnings |
| 9590 | if test -s conftest.err; then |
| 9591 | # Append any errors to the config.log. |
| 9592 | cat conftest.err 1>&5 |
| 9593 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 9594 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 9595 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 9596 | lt_cv_prog_compiler__b=yes |
| 9597 | fi |
| 9598 | else |
| 9599 | lt_cv_prog_compiler__b=yes |
| 9600 | fi |
| 9601 | fi |
| 9602 | $RM -r conftest* |
| 9603 | LDFLAGS="$save_LDFLAGS" |
| 9604 | |
| 9605 | fi |
| 9606 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler__b" >&5 |
| 9607 | echo "${ECHO_T}$lt_cv_prog_compiler__b" >&6; } |
| 9608 | |
| 9609 | if test x"$lt_cv_prog_compiler__b" = xyes; then |
| 9610 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 9611 | else |
| 9612 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 9613 | fi |
| 9614 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9615 | ;; |
| 9616 | esac |
| 9617 | fi |
| 9618 | if test "$with_gnu_ld" = no; then |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9619 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 9620 | hardcode_libdir_separator=: |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9621 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9622 | case $host_cpu in |
| 9623 | hppa*64*|ia64*) |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9624 | hardcode_direct=no |
| 9625 | hardcode_shlibpath_var=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9626 | ;; |
| 9627 | *) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9628 | hardcode_direct=yes |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9629 | hardcode_direct_absolute=yes |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9630 | export_dynamic_flag_spec='${wl}-E' |
| 9631 | |
| 9632 | # hardcode_minus_L: Not really in the search PATH, |
| 9633 | # but as the default location of the library. |
| 9634 | hardcode_minus_L=yes |
| 9635 | ;; |
| 9636 | esac |
| 9637 | fi |
| 9638 | ;; |
| 9639 | |
| 9640 | irix5* | irix6* | nonstopux*) |
| 9641 | if test "$GCC" = yes; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9642 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 9643 | # Try to use the -exported_symbol ld option, if it does not |
| 9644 | # work, assume that -exports_file does not work either and |
| 9645 | # implicitly export all symbols. |
| 9646 | # This should be the same for all languages, so no per-tag cache variable. |
| 9647 | { echo "$as_me:$LINENO: checking whether the $host_os linker accepts -exported_symbol" >&5 |
| 9648 | echo $ECHO_N "checking whether the $host_os linker accepts -exported_symbol... $ECHO_C" >&6; } |
| 9649 | if test "${lt_cv_irix_exported_symbol+set}" = set; then |
| 9650 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9651 | else |
| 9652 | save_LDFLAGS="$LDFLAGS" |
| 9653 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
| 9654 | cat >conftest.$ac_ext <<_ACEOF |
| 9655 | /* confdefs.h. */ |
| 9656 | _ACEOF |
| 9657 | cat confdefs.h >>conftest.$ac_ext |
| 9658 | cat >>conftest.$ac_ext <<_ACEOF |
| 9659 | /* end confdefs.h. */ |
| 9660 | int foo (void) { return 0; } |
| 9661 | _ACEOF |
| 9662 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9663 | if { (ac_try="$ac_link" |
| 9664 | case "(($ac_try" in |
| 9665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9666 | *) ac_try_echo=$ac_try;; |
| 9667 | esac |
| 9668 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9669 | (eval "$ac_link") 2>conftest.er1 |
| 9670 | ac_status=$? |
| 9671 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9672 | rm -f conftest.er1 |
| 9673 | cat conftest.err >&5 |
| 9674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9675 | (exit $ac_status); } && |
| 9676 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9677 | { (case "(($ac_try" in |
| 9678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9679 | *) ac_try_echo=$ac_try;; |
| 9680 | esac |
| 9681 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9682 | (eval "$ac_try") 2>&5 |
| 9683 | ac_status=$? |
| 9684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9685 | (exit $ac_status); }; } && |
| 9686 | { ac_try='test -s conftest$ac_exeext' |
| 9687 | { (case "(($ac_try" in |
| 9688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9689 | *) ac_try_echo=$ac_try;; |
| 9690 | esac |
| 9691 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9692 | (eval "$ac_try") 2>&5 |
| 9693 | ac_status=$? |
| 9694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9695 | (exit $ac_status); }; }; then |
| 9696 | lt_cv_irix_exported_symbol=yes |
| 9697 | else |
| 9698 | echo "$as_me: failed program was:" >&5 |
| 9699 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9700 | |
| 9701 | lt_cv_irix_exported_symbol=no |
| 9702 | fi |
| 9703 | |
| 9704 | rm -f core conftest.err conftest.$ac_objext \ |
| 9705 | conftest$ac_exeext conftest.$ac_ext |
| 9706 | LDFLAGS="$save_LDFLAGS" |
| 9707 | fi |
| 9708 | { echo "$as_me:$LINENO: result: $lt_cv_irix_exported_symbol" >&5 |
| 9709 | echo "${ECHO_T}$lt_cv_irix_exported_symbol" >&6; } |
| 9710 | if test "$lt_cv_irix_exported_symbol" = yes; then |
| 9711 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
| 9712 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9713 | else |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9714 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
| 9715 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9716 | fi |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9717 | archive_cmds_need_lc='no' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9718 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9719 | hardcode_libdir_separator=: |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9720 | inherit_rpath=yes |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9721 | link_all_deplibs=yes |
| 9722 | ;; |
| 9723 | |
| 9724 | netbsd*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9725 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9726 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 9727 | else |
| 9728 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 9729 | fi |
| 9730 | hardcode_libdir_flag_spec='-R$libdir' |
| 9731 | hardcode_direct=yes |
| 9732 | hardcode_shlibpath_var=no |
| 9733 | ;; |
| 9734 | |
| 9735 | newsos6) |
| 9736 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9737 | hardcode_direct=yes |
| 9738 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9739 | hardcode_libdir_separator=: |
| 9740 | hardcode_shlibpath_var=no |
| 9741 | ;; |
| 9742 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9743 | *nto* | *qnx*) |
| 9744 | ;; |
| 9745 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9746 | openbsd*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9747 | if test -f /usr/libexec/ld.so; then |
| 9748 | hardcode_direct=yes |
| 9749 | hardcode_shlibpath_var=no |
| 9750 | hardcode_direct_absolute=yes |
| 9751 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 9752 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 9753 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 9754 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 9755 | export_dynamic_flag_spec='${wl}-E' |
| 9756 | else |
| 9757 | case $host_os in |
| 9758 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 9759 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 9760 | hardcode_libdir_flag_spec='-R$libdir' |
| 9761 | ;; |
| 9762 | *) |
| 9763 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 9764 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 9765 | ;; |
| 9766 | esac |
| 9767 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9768 | else |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9769 | ld_shlibs=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9770 | fi |
| 9771 | ;; |
| 9772 | |
| 9773 | os2*) |
| 9774 | hardcode_libdir_flag_spec='-L$libdir' |
| 9775 | hardcode_minus_L=yes |
| 9776 | allow_undefined_flag=unsupported |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9777 | 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' |
| 9778 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9779 | ;; |
| 9780 | |
| 9781 | osf3*) |
| 9782 | if test "$GCC" = yes; then |
| 9783 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9784 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9785 | else |
| 9786 | allow_undefined_flag=' -expect_unresolved \*' |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9787 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9788 | fi |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9789 | archive_cmds_need_lc='no' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9790 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9791 | hardcode_libdir_separator=: |
| 9792 | ;; |
| 9793 | |
| 9794 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 9795 | if test "$GCC" = yes; then |
| 9796 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9797 | archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9798 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9799 | else |
| 9800 | allow_undefined_flag=' -expect_unresolved \*' |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9801 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
| 9802 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ |
| 9803 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9804 | |
| 9805 | # Both c and cxx compiler support -rpath directly |
| 9806 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 9807 | fi |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9808 | archive_cmds_need_lc='no' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9809 | hardcode_libdir_separator=: |
| 9810 | ;; |
| 9811 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9812 | solaris*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9813 | no_undefined_flag=' -z defs' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9814 | if test "$GCC" = yes; then |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9815 | wlarc='${wl}' |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9816 | archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9817 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 9818 | $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9819 | else |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9820 | case `$CC -V 2>&1` in |
| 9821 | *"Compilers 5.0"*) |
| 9822 | wlarc='' |
| 9823 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9824 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 9825 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
| 9826 | ;; |
| 9827 | *) |
| 9828 | wlarc='${wl}' |
| 9829 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9830 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 9831 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 9832 | ;; |
| 9833 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9834 | fi |
| 9835 | hardcode_libdir_flag_spec='-R$libdir' |
| 9836 | hardcode_shlibpath_var=no |
| 9837 | case $host_os in |
| 9838 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9839 | *) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9840 | # The compiler driver will combine and reorder linker options, |
| 9841 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
| 9842 | # but is careful enough not to reorder. |
| 9843 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 9844 | if test "$GCC" = yes; then |
| 9845 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 9846 | else |
| 9847 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
| 9848 | fi |
| 9849 | ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9850 | esac |
| 9851 | link_all_deplibs=yes |
| 9852 | ;; |
| 9853 | |
| 9854 | sunos4*) |
| 9855 | if test "x$host_vendor" = xsequent; then |
| 9856 | # Use $CC to link under sequent, because it throws in some extra .o |
| 9857 | # files that make .init and .fini sections work. |
| 9858 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9859 | else |
| 9860 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 9861 | fi |
| 9862 | hardcode_libdir_flag_spec='-L$libdir' |
| 9863 | hardcode_direct=yes |
| 9864 | hardcode_minus_L=yes |
| 9865 | hardcode_shlibpath_var=no |
| 9866 | ;; |
| 9867 | |
| 9868 | sysv4) |
| 9869 | case $host_vendor in |
| 9870 | sni) |
| 9871 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9872 | hardcode_direct=yes # is this really true??? |
| 9873 | ;; |
| 9874 | siemens) |
| 9875 | ## LD is ld it makes a PLAMLIB |
| 9876 | ## CC just makes a GrossModule. |
| 9877 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 9878 | reload_cmds='$CC -r -o $output$reload_objs' |
| 9879 | hardcode_direct=no |
| 9880 | ;; |
| 9881 | motorola) |
| 9882 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9883 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 9884 | ;; |
| 9885 | esac |
| 9886 | runpath_var='LD_RUN_PATH' |
| 9887 | hardcode_shlibpath_var=no |
| 9888 | ;; |
| 9889 | |
| 9890 | sysv4.3*) |
| 9891 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9892 | hardcode_shlibpath_var=no |
| 9893 | export_dynamic_flag_spec='-Bexport' |
| 9894 | ;; |
| 9895 | |
| 9896 | sysv4*MP*) |
| 9897 | if test -d /usr/nec; then |
| 9898 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9899 | hardcode_shlibpath_var=no |
| 9900 | runpath_var=LD_RUN_PATH |
| 9901 | hardcode_runpath_var=yes |
| 9902 | ld_shlibs=yes |
| 9903 | fi |
| 9904 | ;; |
| 9905 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9906 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9907 | no_undefined_flag='${wl}-z,text' |
| 9908 | archive_cmds_need_lc=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9909 | hardcode_shlibpath_var=no |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9910 | runpath_var='LD_RUN_PATH' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9911 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9912 | if test "$GCC" = yes; then |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9913 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9914 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9915 | else |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9916 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9917 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9918 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9919 | ;; |
| 9920 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9921 | sysv5* | sco3.2v5* | sco5v6*) |
| 9922 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 9923 | # link with -lc, and that would cause any symbols used from libc to |
| 9924 | # always be unresolved, which means just about no library would |
| 9925 | # ever link correctly. If we're not using GNU ld we use -z text |
| 9926 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 9927 | # as -z defs. |
| 9928 | no_undefined_flag='${wl}-z,text' |
| 9929 | allow_undefined_flag='${wl}-z,nodefs' |
| 9930 | archive_cmds_need_lc=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9931 | hardcode_shlibpath_var=no |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9932 | hardcode_libdir_flag_spec='${wl}-R,$libdir' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9933 | hardcode_libdir_separator=':' |
| 9934 | link_all_deplibs=yes |
| 9935 | export_dynamic_flag_spec='${wl}-Bexport' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9936 | runpath_var='LD_RUN_PATH' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9937 | |
| 9938 | if test "$GCC" = yes; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9939 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9940 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9941 | else |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9942 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9943 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9944 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9945 | ;; |
| 9946 | |
| 9947 | uts4*) |
| 9948 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9949 | hardcode_libdir_flag_spec='-L$libdir' |
| 9950 | hardcode_shlibpath_var=no |
| 9951 | ;; |
| 9952 | |
| 9953 | *) |
| 9954 | ld_shlibs=no |
| 9955 | ;; |
| 9956 | esac |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9957 | |
| 9958 | if test x$host_vendor = xsni; then |
| 9959 | case $host in |
| 9960 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 9961 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 9962 | ;; |
| 9963 | esac |
| 9964 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9965 | fi |
| 9966 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 9967 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 9968 | echo "${ECHO_T}$ld_shlibs" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9969 | test "$ld_shlibs" = no && can_build_shared=no |
| 9970 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9971 | with_gnu_ld=$with_gnu_ld |
| 9972 | |
| 9973 | |
| 9974 | |
| 9975 | |
| 9976 | |
| 9977 | |
| 9978 | |
| 9979 | |
| 9980 | |
| 9981 | |
| 9982 | |
| 9983 | |
| 9984 | |
| 9985 | |
| 9986 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9987 | # |
| 9988 | # Do we need to explicitly link libc? |
| 9989 | # |
| 9990 | case "x$archive_cmds_need_lc" in |
| 9991 | x|xyes) |
| 9992 | # Assume -lc should be added |
| 9993 | archive_cmds_need_lc=yes |
| 9994 | |
| 9995 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 9996 | case $archive_cmds in |
| 9997 | *'~'*) |
| 9998 | # FIXME: we may have to deal with multi-command sequences. |
| 9999 | ;; |
| 10000 | '$CC '*) |
| 10001 | # Test whether the compiler implicitly links with -lc since on some |
| 10002 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 10003 | # to ld, don't add -lc before -lgcc. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10004 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 10005 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10006 | if test "${lt_cv_archive_cmds_need_lc+set}" = set; then |
| 10007 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10008 | else |
| 10009 | $RM conftest* |
| 10010 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10011 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10012 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10013 | (eval $ac_compile) 2>&5 |
| 10014 | ac_status=$? |
| 10015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10016 | (exit $ac_status); } 2>conftest.err; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10017 | soname=conftest |
| 10018 | lib=conftest |
| 10019 | libobjs=conftest.$ac_objext |
| 10020 | deplibs= |
| 10021 | wl=$lt_prog_compiler_wl |
| 10022 | pic_flag=$lt_prog_compiler_pic |
| 10023 | compiler_flags=-v |
| 10024 | linker_flags=-v |
| 10025 | verstring= |
| 10026 | output_objdir=. |
| 10027 | libname=conftest |
| 10028 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 10029 | allow_undefined_flag= |
| 10030 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 10031 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10032 | ac_status=$? |
| 10033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10034 | (exit $ac_status); } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10035 | then |
| 10036 | lt_cv_archive_cmds_need_lc=no |
| 10037 | else |
| 10038 | lt_cv_archive_cmds_need_lc=yes |
| 10039 | fi |
| 10040 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 10041 | else |
| 10042 | cat conftest.err 1>&5 |
| 10043 | fi |
| 10044 | $RM conftest* |
| 10045 | |
| 10046 | fi |
| 10047 | { echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5 |
| 10048 | echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6; } |
| 10049 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10050 | ;; |
| 10051 | esac |
| 10052 | fi |
| 10053 | ;; |
| 10054 | esac |
| 10055 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10056 | |
| 10057 | |
| 10058 | |
| 10059 | |
| 10060 | |
| 10061 | |
| 10062 | |
| 10063 | |
| 10064 | |
| 10065 | |
| 10066 | |
| 10067 | |
| 10068 | |
| 10069 | |
| 10070 | |
| 10071 | |
| 10072 | |
| 10073 | |
| 10074 | |
| 10075 | |
| 10076 | |
| 10077 | |
| 10078 | |
| 10079 | |
| 10080 | |
| 10081 | |
| 10082 | |
| 10083 | |
| 10084 | |
| 10085 | |
| 10086 | |
| 10087 | |
| 10088 | |
| 10089 | |
| 10090 | |
| 10091 | |
| 10092 | |
| 10093 | |
| 10094 | |
| 10095 | |
| 10096 | |
| 10097 | |
| 10098 | |
| 10099 | |
| 10100 | |
| 10101 | |
| 10102 | |
| 10103 | |
| 10104 | |
| 10105 | |
| 10106 | |
| 10107 | |
| 10108 | |
| 10109 | |
| 10110 | |
| 10111 | |
| 10112 | |
| 10113 | |
| 10114 | |
| 10115 | |
| 10116 | |
| 10117 | |
| 10118 | |
| 10119 | |
| 10120 | |
| 10121 | |
| 10122 | |
| 10123 | |
| 10124 | |
| 10125 | |
| 10126 | |
| 10127 | |
| 10128 | |
| 10129 | |
| 10130 | |
| 10131 | |
| 10132 | |
| 10133 | |
| 10134 | |
| 10135 | |
| 10136 | |
| 10137 | |
| 10138 | |
| 10139 | |
| 10140 | |
| 10141 | |
| 10142 | |
| 10143 | |
| 10144 | |
| 10145 | |
| 10146 | |
| 10147 | |
| 10148 | |
| 10149 | |
| 10150 | |
| 10151 | |
| 10152 | |
| 10153 | |
| 10154 | |
| 10155 | |
| 10156 | |
| 10157 | |
| 10158 | |
| 10159 | |
| 10160 | |
| 10161 | |
| 10162 | |
| 10163 | |
| 10164 | |
| 10165 | |
| 10166 | |
| 10167 | |
| 10168 | |
| 10169 | |
| 10170 | |
| 10171 | |
| 10172 | |
| 10173 | |
| 10174 | |
| 10175 | |
| 10176 | |
| 10177 | |
| 10178 | |
| 10179 | |
| 10180 | |
| 10181 | |
| 10182 | |
| 10183 | |
| 10184 | |
| 10185 | |
| 10186 | |
| 10187 | |
| 10188 | |
| 10189 | |
| 10190 | |
| 10191 | |
| 10192 | |
| 10193 | |
| 10194 | |
| 10195 | |
| 10196 | |
| 10197 | |
| 10198 | |
| 10199 | |
| 10200 | |
| 10201 | |
| 10202 | |
| 10203 | |
| 10204 | |
| 10205 | |
| 10206 | |
| 10207 | |
| 10208 | |
| 10209 | |
| 10210 | |
| 10211 | |
| 10212 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10213 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10214 | |
| 10215 | if test "$GCC" = yes; then |
| 10216 | case $host_os in |
| 10217 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
| 10218 | *) lt_awk_arg="/^libraries:/" ;; |
| 10219 | esac |
| 10220 | case $host_os in |
| 10221 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; |
| 10222 | *) lt_sed_strip_eq="s,=/,/,g" ;; |
| 10223 | esac |
| 10224 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` |
| 10225 | case $lt_search_path_spec in |
| 10226 | *\;*) |
| 10227 | # if the path contains ";" then we assume it to be the separator |
| 10228 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 10229 | # assumed that no part of a normal pathname contains ";" but that should |
| 10230 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 10231 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
| 10232 | ;; |
| 10233 | *) |
| 10234 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` |
| 10235 | ;; |
| 10236 | esac |
| 10237 | # Ok, now we have the path, separated by spaces, we can step through it |
| 10238 | # and add multilib dir if necessary. |
| 10239 | lt_tmp_lt_search_path_spec= |
| 10240 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| 10241 | for lt_sys_path in $lt_search_path_spec; do |
| 10242 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
| 10243 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
| 10244 | else |
| 10245 | test -d "$lt_sys_path" && \ |
| 10246 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 10247 | fi |
| 10248 | done |
| 10249 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
| 10250 | BEGIN {RS=" "; FS="/|\n";} { |
| 10251 | lt_foo=""; |
| 10252 | lt_count=0; |
| 10253 | for (lt_i = NF; lt_i > 0; lt_i--) { |
| 10254 | if ($lt_i != "" && $lt_i != ".") { |
| 10255 | if ($lt_i == "..") { |
| 10256 | lt_count++; |
| 10257 | } else { |
| 10258 | if (lt_count == 0) { |
| 10259 | lt_foo="/" $lt_i lt_foo; |
| 10260 | } else { |
| 10261 | lt_count--; |
| 10262 | } |
| 10263 | } |
| 10264 | } |
| 10265 | } |
| 10266 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
| 10267 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
| 10268 | }'` |
| 10269 | # AWK program above erroneously prepends '/' to C:/dos/paths |
| 10270 | # for these hosts. |
| 10271 | case $host_os in |
| 10272 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ |
| 10273 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; |
| 10274 | esac |
| 10275 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` |
| 10276 | else |
| 10277 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 10278 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10279 | library_names_spec= |
| 10280 | libname_spec='lib$name' |
| 10281 | soname_spec= |
| 10282 | shrext_cmds=".so" |
| 10283 | postinstall_cmds= |
| 10284 | postuninstall_cmds= |
| 10285 | finish_cmds= |
| 10286 | finish_eval= |
| 10287 | shlibpath_var= |
| 10288 | shlibpath_overrides_runpath=unknown |
| 10289 | version_type=none |
| 10290 | dynamic_linker="$host_os ld.so" |
| 10291 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10292 | need_lib_prefix=unknown |
| 10293 | hardcode_into_libs=no |
| 10294 | |
| 10295 | # when you set need_version to no, make sure it does not cause -set_version |
| 10296 | # flags to be left without arguments |
| 10297 | need_version=unknown |
| 10298 | |
| 10299 | case $host_os in |
| 10300 | aix3*) |
| 10301 | version_type=linux |
| 10302 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 10303 | shlibpath_var=LIBPATH |
| 10304 | |
| 10305 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 10306 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10307 | ;; |
| 10308 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10309 | aix[4-9]*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10310 | version_type=linux |
| 10311 | need_lib_prefix=no |
| 10312 | need_version=no |
| 10313 | hardcode_into_libs=yes |
| 10314 | if test "$host_cpu" = ia64; then |
| 10315 | # AIX 5 supports IA64 |
| 10316 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 10317 | shlibpath_var=LD_LIBRARY_PATH |
| 10318 | else |
| 10319 | # With GCC up to 2.95.x, collect2 would create an import file |
| 10320 | # for dependence libraries. The import file would start with |
| 10321 | # the line `#! .'. This would cause the generated library to |
| 10322 | # depend on `.', always an invalid library. This was fixed in |
| 10323 | # development snapshots of GCC prior to 3.0. |
| 10324 | case $host_os in |
| 10325 | aix4 | aix4.[01] | aix4.[01].*) |
| 10326 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 10327 | echo ' yes ' |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10328 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10329 | : |
| 10330 | else |
| 10331 | can_build_shared=no |
| 10332 | fi |
| 10333 | ;; |
| 10334 | esac |
| 10335 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 10336 | # soname into executable. Probably we can add versioning support to |
| 10337 | # collect2, so additional links can be useful in future. |
| 10338 | if test "$aix_use_runtimelinking" = yes; then |
| 10339 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 10340 | # instead of lib<name>.a to let people know that these are not |
| 10341 | # typical AIX shared libraries. |
| 10342 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10343 | else |
| 10344 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 10345 | # and later when we are not doing run time linking. |
| 10346 | library_names_spec='${libname}${release}.a $libname.a' |
| 10347 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10348 | fi |
| 10349 | shlibpath_var=LIBPATH |
| 10350 | fi |
| 10351 | ;; |
| 10352 | |
| 10353 | amigaos*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10354 | case $host_cpu in |
| 10355 | powerpc) |
| 10356 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 10357 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 10358 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10359 | ;; |
| 10360 | m68k) |
| 10361 | library_names_spec='$libname.ixlibrary $libname.a' |
| 10362 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 10363 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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' |
| 10364 | ;; |
| 10365 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10366 | ;; |
| 10367 | |
| 10368 | beos*) |
| 10369 | library_names_spec='${libname}${shared_ext}' |
| 10370 | dynamic_linker="$host_os ld.so" |
| 10371 | shlibpath_var=LIBRARY_PATH |
| 10372 | ;; |
| 10373 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10374 | bsdi[45]*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10375 | version_type=linux |
| 10376 | need_version=no |
| 10377 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10378 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10379 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 10380 | shlibpath_var=LD_LIBRARY_PATH |
| 10381 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 10382 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 10383 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 10384 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 10385 | # libtool to hard-code these into programs |
| 10386 | ;; |
| 10387 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10388 | cygwin* | mingw* | pw32* | cegcc*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10389 | version_type=windows |
| 10390 | shrext_cmds=".dll" |
| 10391 | need_version=no |
| 10392 | need_lib_prefix=no |
| 10393 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10394 | case $GCC,$cc_basename in |
| 10395 | yes,*) |
| 10396 | # gcc |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10397 | library_names_spec='$libname.dll.a' |
| 10398 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 10399 | postinstall_cmds='base_file=`basename \${file}`~ |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10400 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10401 | dldir=$destdir/`dirname \$dlpath`~ |
| 10402 | test -d \$dldir || mkdir -p \$dldir~ |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10403 | $install_prog $dir/$dlname \$dldir/$dlname~ |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10404 | chmod a+x \$dldir/$dlname~ |
| 10405 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 10406 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 10407 | fi' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10408 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 10409 | dlpath=$dir/\$dldll~ |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10410 | $RM \$dlpath' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10411 | shlibpath_overrides_runpath=yes |
| 10412 | |
| 10413 | case $host_os in |
| 10414 | cygwin*) |
| 10415 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 10416 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10417 | |
| 10418 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10419 | ;; |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10420 | mingw* | cegcc*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10421 | # MinGW DLLs use traditional 'lib' prefix |
| 10422 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10423 | ;; |
| 10424 | pw32*) |
| 10425 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10426 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10427 | ;; |
| 10428 | esac |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10429 | dynamic_linker='Win32 ld.exe' |
| 10430 | ;; |
| 10431 | |
| 10432 | *,cl*) |
| 10433 | # Native MSVC |
| 10434 | libname_spec='$name' |
| 10435 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 10436 | library_names_spec='${libname}.dll.lib' |
| 10437 | |
| 10438 | case $build_os in |
| 10439 | mingw*) |
| 10440 | sys_lib_search_path_spec= |
| 10441 | lt_save_ifs=$IFS |
| 10442 | IFS=';' |
| 10443 | for lt_path in $LIB |
| 10444 | do |
| 10445 | IFS=$lt_save_ifs |
| 10446 | # Let DOS variable expansion print the short 8.3 style file name. |
| 10447 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
| 10448 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
| 10449 | done |
| 10450 | IFS=$lt_save_ifs |
| 10451 | # Convert to MSYS style. |
| 10452 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` |
| 10453 | ;; |
| 10454 | cygwin*) |
| 10455 | # Convert to unix form, then to dos form, then back to unix form |
| 10456 | # but this time dos style (no spaces!) so that the unix form looks |
| 10457 | # like /cygdrive/c/PROGRA~1:/cygdr... |
| 10458 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
| 10459 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
| 10460 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 10461 | ;; |
| 10462 | *) |
| 10463 | sys_lib_search_path_spec="$LIB" |
| 10464 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
| 10465 | # It is most probably a Windows format PATH. |
| 10466 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 10467 | else |
| 10468 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 10469 | fi |
| 10470 | # FIXME: find the short name or the path components, as spaces are |
| 10471 | # common. (e.g. "Program Files" -> "PROGRA~1") |
| 10472 | ;; |
| 10473 | esac |
| 10474 | |
| 10475 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 10476 | postinstall_cmds='base_file=`basename \${file}`~ |
| 10477 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 10478 | dldir=$destdir/`dirname \$dlpath`~ |
| 10479 | test -d \$dldir || mkdir -p \$dldir~ |
| 10480 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 10481 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 10482 | dlpath=$dir/\$dldll~ |
| 10483 | $RM \$dlpath' |
| 10484 | shlibpath_overrides_runpath=yes |
| 10485 | dynamic_linker='Win32 link.exe' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10486 | ;; |
| 10487 | |
| 10488 | *) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10489 | # Assume MSVC wrapper |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10490 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10491 | dynamic_linker='Win32 ld.exe' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10492 | ;; |
| 10493 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10494 | # FIXME: first we should search . and the directory the executable is in |
| 10495 | shlibpath_var=PATH |
| 10496 | ;; |
| 10497 | |
| 10498 | darwin* | rhapsody*) |
| 10499 | dynamic_linker="$host_os dyld" |
| 10500 | version_type=darwin |
| 10501 | need_lib_prefix=no |
| 10502 | need_version=no |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10503 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10504 | soname_spec='${libname}${release}${major}$shared_ext' |
| 10505 | shlibpath_overrides_runpath=yes |
| 10506 | shlibpath_var=DYLD_LIBRARY_PATH |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10507 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10508 | |
| 10509 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10510 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 10511 | ;; |
| 10512 | |
| 10513 | dgux*) |
| 10514 | version_type=linux |
| 10515 | need_lib_prefix=no |
| 10516 | need_version=no |
| 10517 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 10518 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10519 | shlibpath_var=LD_LIBRARY_PATH |
| 10520 | ;; |
| 10521 | |
| 10522 | freebsd1*) |
| 10523 | dynamic_linker=no |
| 10524 | ;; |
| 10525 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10526 | freebsd* | dragonfly*) |
| 10527 | # DragonFly does not have aout. When/if they implement a new |
| 10528 | # versioning mechanism, adjust this. |
| 10529 | if test -x /usr/bin/objformat; then |
| 10530 | objformat=`/usr/bin/objformat` |
| 10531 | else |
| 10532 | case $host_os in |
| 10533 | freebsd[123]*) objformat=aout ;; |
| 10534 | *) objformat=elf ;; |
| 10535 | esac |
| 10536 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10537 | version_type=freebsd-$objformat |
| 10538 | case $version_type in |
| 10539 | freebsd-elf*) |
| 10540 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10541 | need_version=no |
| 10542 | need_lib_prefix=no |
| 10543 | ;; |
| 10544 | freebsd-*) |
| 10545 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 10546 | need_version=yes |
| 10547 | ;; |
| 10548 | esac |
| 10549 | shlibpath_var=LD_LIBRARY_PATH |
| 10550 | case $host_os in |
| 10551 | freebsd2*) |
| 10552 | shlibpath_overrides_runpath=yes |
| 10553 | ;; |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10554 | freebsd3.[01]* | freebsdelf3.[01]*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10555 | shlibpath_overrides_runpath=yes |
| 10556 | hardcode_into_libs=yes |
| 10557 | ;; |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10558 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 10559 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10560 | shlibpath_overrides_runpath=no |
| 10561 | hardcode_into_libs=yes |
| 10562 | ;; |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10563 | *) # from 4.6 on, and DragonFly |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10564 | shlibpath_overrides_runpath=yes |
| 10565 | hardcode_into_libs=yes |
| 10566 | ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10567 | esac |
| 10568 | ;; |
| 10569 | |
| 10570 | gnu*) |
| 10571 | version_type=linux |
| 10572 | need_lib_prefix=no |
| 10573 | need_version=no |
| 10574 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 10575 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10576 | shlibpath_var=LD_LIBRARY_PATH |
| 10577 | hardcode_into_libs=yes |
| 10578 | ;; |
| 10579 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10580 | haiku*) |
| 10581 | version_type=linux |
| 10582 | need_lib_prefix=no |
| 10583 | need_version=no |
| 10584 | dynamic_linker="$host_os runtime_loader" |
| 10585 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 10586 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10587 | shlibpath_var=LIBRARY_PATH |
| 10588 | shlibpath_overrides_runpath=yes |
| 10589 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
| 10590 | hardcode_into_libs=yes |
| 10591 | ;; |
| 10592 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10593 | hpux9* | hpux10* | hpux11*) |
| 10594 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 10595 | # link against other versions. |
| 10596 | version_type=sunos |
| 10597 | need_lib_prefix=no |
| 10598 | need_version=no |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10599 | case $host_cpu in |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10600 | ia64*) |
| 10601 | shrext_cmds='.so' |
| 10602 | hardcode_into_libs=yes |
| 10603 | dynamic_linker="$host_os dld.so" |
| 10604 | shlibpath_var=LD_LIBRARY_PATH |
| 10605 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 10606 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10607 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10608 | if test "X$HPUX_IA64_MODE" = X32; then |
| 10609 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 10610 | else |
| 10611 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 10612 | fi |
| 10613 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 10614 | ;; |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10615 | hppa*64*) |
| 10616 | shrext_cmds='.sl' |
| 10617 | hardcode_into_libs=yes |
| 10618 | dynamic_linker="$host_os dld.sl" |
| 10619 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 10620 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 10621 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10622 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10623 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 10624 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 10625 | ;; |
| 10626 | *) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10627 | shrext_cmds='.sl' |
| 10628 | dynamic_linker="$host_os dld.sl" |
| 10629 | shlibpath_var=SHLIB_PATH |
| 10630 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 10631 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10632 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10633 | ;; |
| 10634 | esac |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10635 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10636 | postinstall_cmds='chmod 555 $lib' |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10637 | # or fails outright, so override atomically: |
| 10638 | install_override_mode=555 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10639 | ;; |
| 10640 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10641 | interix[3-9]*) |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10642 | version_type=linux |
| 10643 | need_lib_prefix=no |
| 10644 | need_version=no |
| 10645 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10646 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10647 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 10648 | shlibpath_var=LD_LIBRARY_PATH |
| 10649 | shlibpath_overrides_runpath=no |
| 10650 | hardcode_into_libs=yes |
| 10651 | ;; |
| 10652 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10653 | irix5* | irix6* | nonstopux*) |
| 10654 | case $host_os in |
| 10655 | nonstopux*) version_type=nonstopux ;; |
| 10656 | *) |
| 10657 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 10658 | version_type=linux |
| 10659 | else |
| 10660 | version_type=irix |
| 10661 | fi ;; |
| 10662 | esac |
| 10663 | need_lib_prefix=no |
| 10664 | need_version=no |
| 10665 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10666 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10667 | case $host_os in |
| 10668 | irix5* | nonstopux*) |
| 10669 | libsuff= shlibsuff= |
| 10670 | ;; |
| 10671 | *) |
| 10672 | case $LD in # libtool.m4 will add one of these switches to LD |
| 10673 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 10674 | libsuff= shlibsuff= libmagic=32-bit;; |
| 10675 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 10676 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 10677 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 10678 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 10679 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 10680 | esac |
| 10681 | ;; |
| 10682 | esac |
| 10683 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 10684 | shlibpath_overrides_runpath=no |
| 10685 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 10686 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 10687 | hardcode_into_libs=yes |
| 10688 | ;; |
| 10689 | |
| 10690 | # No shared lib support for Linux oldld, aout, or coff. |
| 10691 | linux*oldld* | linux*aout* | linux*coff*) |
| 10692 | dynamic_linker=no |
| 10693 | ;; |
| 10694 | |
| 10695 | # This must be Linux ELF. |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10696 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10697 | version_type=linux |
| 10698 | need_lib_prefix=no |
| 10699 | need_version=no |
| 10700 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10701 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10702 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 10703 | shlibpath_var=LD_LIBRARY_PATH |
| 10704 | shlibpath_overrides_runpath=no |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10705 | |
| 10706 | # Some binutils ld are patched to set DT_RUNPATH |
| 10707 | if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then |
| 10708 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10709 | else |
| 10710 | lt_cv_shlibpath_overrides_runpath=no |
| 10711 | save_LDFLAGS=$LDFLAGS |
| 10712 | save_libdir=$libdir |
| 10713 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
| 10714 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
| 10715 | cat >conftest.$ac_ext <<_ACEOF |
| 10716 | /* confdefs.h. */ |
| 10717 | _ACEOF |
| 10718 | cat confdefs.h >>conftest.$ac_ext |
| 10719 | cat >>conftest.$ac_ext <<_ACEOF |
| 10720 | /* end confdefs.h. */ |
| 10721 | |
| 10722 | int |
| 10723 | main () |
| 10724 | { |
| 10725 | |
| 10726 | ; |
| 10727 | return 0; |
| 10728 | } |
| 10729 | _ACEOF |
| 10730 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10731 | if { (ac_try="$ac_link" |
| 10732 | case "(($ac_try" in |
| 10733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10734 | *) ac_try_echo=$ac_try;; |
| 10735 | esac |
| 10736 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10737 | (eval "$ac_link") 2>conftest.er1 |
| 10738 | ac_status=$? |
| 10739 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10740 | rm -f conftest.er1 |
| 10741 | cat conftest.err >&5 |
| 10742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10743 | (exit $ac_status); } && |
| 10744 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10745 | { (case "(($ac_try" in |
| 10746 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10747 | *) ac_try_echo=$ac_try;; |
| 10748 | esac |
| 10749 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10750 | (eval "$ac_try") 2>&5 |
| 10751 | ac_status=$? |
| 10752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10753 | (exit $ac_status); }; } && |
| 10754 | { ac_try='test -s conftest$ac_exeext' |
| 10755 | { (case "(($ac_try" in |
| 10756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10757 | *) ac_try_echo=$ac_try;; |
| 10758 | esac |
| 10759 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10760 | (eval "$ac_try") 2>&5 |
| 10761 | ac_status=$? |
| 10762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10763 | (exit $ac_status); }; }; then |
| 10764 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then |
| 10765 | lt_cv_shlibpath_overrides_runpath=yes |
| 10766 | fi |
| 10767 | |
| 10768 | else |
| 10769 | echo "$as_me: failed program was:" >&5 |
| 10770 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10771 | |
| 10772 | |
| 10773 | fi |
| 10774 | |
| 10775 | rm -f core conftest.err conftest.$ac_objext \ |
| 10776 | conftest$ac_exeext conftest.$ac_ext |
| 10777 | LDFLAGS=$save_LDFLAGS |
| 10778 | libdir=$save_libdir |
| 10779 | |
| 10780 | fi |
| 10781 | |
| 10782 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
| 10783 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10784 | # This implies no fast_install, which is unacceptable. |
| 10785 | # Some rework will be needed to allow for fast_install |
| 10786 | # before this can be enabled. |
| 10787 | hardcode_into_libs=yes |
| 10788 | |
| 10789 | # Append ld.so.conf contents to the search path |
| 10790 | if test -f /etc/ld.so.conf; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10791 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10792 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 10793 | fi |
| 10794 | |
| 10795 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 10796 | # powerpc, because MkLinux only supported shared libraries with the |
| 10797 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 10798 | # most powerpc-linux boxes support dynamic linking these days and |
| 10799 | # people can always --disable-shared, the test was removed, and we |
| 10800 | # assume the GNU/Linux dynamic linker is in use. |
| 10801 | dynamic_linker='GNU/Linux ld.so' |
| 10802 | ;; |
| 10803 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10804 | netbsd*) |
| 10805 | version_type=sunos |
| 10806 | need_lib_prefix=no |
| 10807 | need_version=no |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10808 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10809 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10810 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 10811 | dynamic_linker='NetBSD (a.out) ld.so' |
| 10812 | else |
| 10813 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10814 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10815 | dynamic_linker='NetBSD ld.elf_so' |
| 10816 | fi |
| 10817 | shlibpath_var=LD_LIBRARY_PATH |
| 10818 | shlibpath_overrides_runpath=yes |
| 10819 | hardcode_into_libs=yes |
| 10820 | ;; |
| 10821 | |
| 10822 | newsos6) |
| 10823 | version_type=linux |
| 10824 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10825 | shlibpath_var=LD_LIBRARY_PATH |
| 10826 | shlibpath_overrides_runpath=yes |
| 10827 | ;; |
| 10828 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10829 | *nto* | *qnx*) |
| 10830 | version_type=qnx |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10831 | need_lib_prefix=no |
| 10832 | need_version=no |
| 10833 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10834 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10835 | shlibpath_var=LD_LIBRARY_PATH |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10836 | shlibpath_overrides_runpath=no |
| 10837 | hardcode_into_libs=yes |
| 10838 | dynamic_linker='ldqnx.so' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10839 | ;; |
| 10840 | |
| 10841 | openbsd*) |
| 10842 | version_type=sunos |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10843 | sys_lib_dlsearch_path_spec="/usr/lib" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10844 | need_lib_prefix=no |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10845 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 10846 | case $host_os in |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10847 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 10848 | *) need_version=no ;; |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10849 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10850 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10851 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 10852 | shlibpath_var=LD_LIBRARY_PATH |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10853 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10854 | case $host_os in |
| 10855 | openbsd2.[89] | openbsd2.[89].*) |
| 10856 | shlibpath_overrides_runpath=no |
| 10857 | ;; |
| 10858 | *) |
| 10859 | shlibpath_overrides_runpath=yes |
| 10860 | ;; |
| 10861 | esac |
| 10862 | else |
| 10863 | shlibpath_overrides_runpath=yes |
| 10864 | fi |
| 10865 | ;; |
| 10866 | |
| 10867 | os2*) |
| 10868 | libname_spec='$name' |
| 10869 | shrext_cmds=".dll" |
| 10870 | need_lib_prefix=no |
| 10871 | library_names_spec='$libname${shared_ext} $libname.a' |
| 10872 | dynamic_linker='OS/2 ld.exe' |
| 10873 | shlibpath_var=LIBPATH |
| 10874 | ;; |
| 10875 | |
| 10876 | osf3* | osf4* | osf5*) |
| 10877 | version_type=osf |
| 10878 | need_lib_prefix=no |
| 10879 | need_version=no |
| 10880 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10881 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10882 | shlibpath_var=LD_LIBRARY_PATH |
| 10883 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 10884 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 10885 | ;; |
| 10886 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10887 | rdos*) |
| 10888 | dynamic_linker=no |
| 10889 | ;; |
| 10890 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10891 | solaris*) |
| 10892 | version_type=linux |
| 10893 | need_lib_prefix=no |
| 10894 | need_version=no |
| 10895 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10896 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10897 | shlibpath_var=LD_LIBRARY_PATH |
| 10898 | shlibpath_overrides_runpath=yes |
| 10899 | hardcode_into_libs=yes |
| 10900 | # ldd complains unless libraries are executable |
| 10901 | postinstall_cmds='chmod +x $lib' |
| 10902 | ;; |
| 10903 | |
| 10904 | sunos4*) |
| 10905 | version_type=sunos |
| 10906 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10907 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 10908 | shlibpath_var=LD_LIBRARY_PATH |
| 10909 | shlibpath_overrides_runpath=yes |
| 10910 | if test "$with_gnu_ld" = yes; then |
| 10911 | need_lib_prefix=no |
| 10912 | fi |
| 10913 | need_version=yes |
| 10914 | ;; |
| 10915 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10916 | sysv4 | sysv4.3*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10917 | version_type=linux |
| 10918 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10919 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10920 | shlibpath_var=LD_LIBRARY_PATH |
| 10921 | case $host_vendor in |
| 10922 | sni) |
| 10923 | shlibpath_overrides_runpath=no |
| 10924 | need_lib_prefix=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10925 | runpath_var=LD_RUN_PATH |
| 10926 | ;; |
| 10927 | siemens) |
| 10928 | need_lib_prefix=no |
| 10929 | ;; |
| 10930 | motorola) |
| 10931 | need_lib_prefix=no |
| 10932 | need_version=no |
| 10933 | shlibpath_overrides_runpath=no |
| 10934 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 10935 | ;; |
| 10936 | esac |
| 10937 | ;; |
| 10938 | |
| 10939 | sysv4*MP*) |
| 10940 | if test -d /usr/nec ;then |
| 10941 | version_type=linux |
| 10942 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 10943 | soname_spec='$libname${shared_ext}.$major' |
| 10944 | shlibpath_var=LD_LIBRARY_PATH |
| 10945 | fi |
| 10946 | ;; |
| 10947 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10948 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 10949 | version_type=freebsd-elf |
| 10950 | need_lib_prefix=no |
| 10951 | need_version=no |
| 10952 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10953 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10954 | shlibpath_var=LD_LIBRARY_PATH |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10955 | shlibpath_overrides_runpath=yes |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10956 | hardcode_into_libs=yes |
| 10957 | if test "$with_gnu_ld" = yes; then |
| 10958 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10959 | else |
| 10960 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10961 | case $host_os in |
| 10962 | sco3.2v5*) |
| 10963 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 10964 | ;; |
| 10965 | esac |
| 10966 | fi |
| 10967 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 10968 | ;; |
| 10969 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10970 | tpf*) |
| 10971 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 10972 | version_type=linux |
| 10973 | need_lib_prefix=no |
| 10974 | need_version=no |
| 10975 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10976 | shlibpath_var=LD_LIBRARY_PATH |
| 10977 | shlibpath_overrides_runpath=no |
| 10978 | hardcode_into_libs=yes |
| 10979 | ;; |
| 10980 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10981 | uts4*) |
| 10982 | version_type=linux |
| 10983 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10984 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10985 | shlibpath_var=LD_LIBRARY_PATH |
| 10986 | ;; |
| 10987 | |
| 10988 | *) |
| 10989 | dynamic_linker=no |
| 10990 | ;; |
| 10991 | esac |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10992 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 10993 | echo "${ECHO_T}$dynamic_linker" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10994 | test "$dynamic_linker" = no && can_build_shared=no |
| 10995 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10996 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 10997 | if test "$GCC" = yes; then |
| 10998 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 10999 | fi |
| 11000 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11001 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 11002 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 11003 | fi |
| 11004 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 11005 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 11006 | fi |
| 11007 | |
| 11008 | |
| 11009 | |
| 11010 | |
| 11011 | |
| 11012 | |
| 11013 | |
| 11014 | |
| 11015 | |
| 11016 | |
| 11017 | |
| 11018 | |
| 11019 | |
| 11020 | |
| 11021 | |
| 11022 | |
| 11023 | |
| 11024 | |
| 11025 | |
| 11026 | |
| 11027 | |
| 11028 | |
| 11029 | |
| 11030 | |
| 11031 | |
| 11032 | |
| 11033 | |
| 11034 | |
| 11035 | |
| 11036 | |
| 11037 | |
| 11038 | |
| 11039 | |
| 11040 | |
| 11041 | |
| 11042 | |
| 11043 | |
| 11044 | |
| 11045 | |
| 11046 | |
| 11047 | |
| 11048 | |
| 11049 | |
| 11050 | |
| 11051 | |
| 11052 | |
| 11053 | |
| 11054 | |
| 11055 | |
| 11056 | |
| 11057 | |
| 11058 | |
| 11059 | |
| 11060 | |
| 11061 | |
| 11062 | |
| 11063 | |
| 11064 | |
| 11065 | |
| 11066 | |
| 11067 | |
| 11068 | |
| 11069 | |
| 11070 | |
| 11071 | |
| 11072 | |
| 11073 | |
| 11074 | |
| 11075 | |
| 11076 | |
| 11077 | |
| 11078 | |
| 11079 | |
| 11080 | |
| 11081 | |
| 11082 | |
| 11083 | |
| 11084 | |
| 11085 | |
| 11086 | |
| 11087 | |
| 11088 | |
| 11089 | |
| 11090 | |
| 11091 | |
| 11092 | |
| 11093 | |
| 11094 | |
| 11095 | |
| 11096 | |
| 11097 | |
| 11098 | |
| 11099 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11100 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11101 | hardcode_action= |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11102 | if test -n "$hardcode_libdir_flag_spec" || |
| 11103 | test -n "$runpath_var" || |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 11104 | test "X$hardcode_automatic" = "Xyes" ; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11105 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11106 | # We can hardcode non-existent directories. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11107 | if test "$hardcode_direct" != no && |
| 11108 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 11109 | # have to relink, otherwise we might link with an installed library |
| 11110 | # when we should be linking with a yet-to-be-installed one |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11111 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11112 | test "$hardcode_minus_L" != no; then |
| 11113 | # Linking always hardcodes the temporary library directory. |
| 11114 | hardcode_action=relink |
| 11115 | else |
| 11116 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 11117 | hardcode_action=immediate |
| 11118 | fi |
| 11119 | else |
| 11120 | # We cannot hardcode anything, or else we can only hardcode existing |
| 11121 | # directories. |
| 11122 | hardcode_action=unsupported |
| 11123 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11124 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 11125 | echo "${ECHO_T}$hardcode_action" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11126 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11127 | if test "$hardcode_action" = relink || |
| 11128 | test "$inherit_rpath" = yes; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11129 | # Fast installation is not supported |
| 11130 | enable_fast_install=no |
| 11131 | elif test "$shlibpath_overrides_runpath" = yes || |
| 11132 | test "$enable_shared" = no; then |
| 11133 | # Fast installation is not necessary |
| 11134 | enable_fast_install=needless |
| 11135 | fi |
| 11136 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11137 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11138 | |
| 11139 | |
| 11140 | |
| 11141 | |
| 11142 | if test "x$enable_dlopen" != xyes; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11143 | enable_dlopen=unknown |
| 11144 | enable_dlopen_self=unknown |
| 11145 | enable_dlopen_self_static=unknown |
| 11146 | else |
| 11147 | lt_cv_dlopen=no |
| 11148 | lt_cv_dlopen_libs= |
| 11149 | |
| 11150 | case $host_os in |
| 11151 | beos*) |
| 11152 | lt_cv_dlopen="load_add_on" |
| 11153 | lt_cv_dlopen_libs= |
| 11154 | lt_cv_dlopen_self=yes |
| 11155 | ;; |
| 11156 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11157 | mingw* | pw32* | cegcc*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11158 | lt_cv_dlopen="LoadLibrary" |
| 11159 | lt_cv_dlopen_libs= |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11160 | ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11161 | |
| 11162 | cygwin*) |
| 11163 | lt_cv_dlopen="dlopen" |
| 11164 | lt_cv_dlopen_libs= |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11165 | ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11166 | |
| 11167 | darwin*) |
| 11168 | # if libdl is installed we need to link against it |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11169 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 11170 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11171 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 11172 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11173 | else |
| 11174 | ac_check_lib_save_LIBS=$LIBS |
| 11175 | LIBS="-ldl $LIBS" |
| 11176 | cat >conftest.$ac_ext <<_ACEOF |
| 11177 | /* confdefs.h. */ |
| 11178 | _ACEOF |
| 11179 | cat confdefs.h >>conftest.$ac_ext |
| 11180 | cat >>conftest.$ac_ext <<_ACEOF |
| 11181 | /* end confdefs.h. */ |
| 11182 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11183 | /* Override any GCC internal prototype to avoid an error. |
| 11184 | Use char because int might match the return type of a GCC |
| 11185 | builtin and then its argument prototype would still apply. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11186 | #ifdef __cplusplus |
| 11187 | extern "C" |
| 11188 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11189 | char dlopen (); |
| 11190 | int |
| 11191 | main () |
| 11192 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11193 | return dlopen (); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11194 | ; |
| 11195 | return 0; |
| 11196 | } |
| 11197 | _ACEOF |
| 11198 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11199 | if { (ac_try="$ac_link" |
| 11200 | case "(($ac_try" in |
| 11201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11202 | *) ac_try_echo=$ac_try;; |
| 11203 | esac |
| 11204 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11205 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11206 | ac_status=$? |
| 11207 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11208 | rm -f conftest.er1 |
| 11209 | cat conftest.err >&5 |
| 11210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11211 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11212 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11213 | { (case "(($ac_try" in |
| 11214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11215 | *) ac_try_echo=$ac_try;; |
| 11216 | esac |
| 11217 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11218 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11219 | ac_status=$? |
| 11220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11221 | (exit $ac_status); }; } && |
| 11222 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11223 | { (case "(($ac_try" in |
| 11224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11225 | *) ac_try_echo=$ac_try;; |
| 11226 | esac |
| 11227 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11228 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11229 | ac_status=$? |
| 11230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11231 | (exit $ac_status); }; }; then |
| 11232 | ac_cv_lib_dl_dlopen=yes |
| 11233 | else |
| 11234 | echo "$as_me: failed program was:" >&5 |
| 11235 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11236 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11237 | ac_cv_lib_dl_dlopen=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11238 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11239 | |
| 11240 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11241 | conftest$ac_exeext conftest.$ac_ext |
| 11242 | LIBS=$ac_check_lib_save_LIBS |
| 11243 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11244 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 11245 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11246 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 11247 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 11248 | else |
| 11249 | |
| 11250 | lt_cv_dlopen="dyld" |
| 11251 | lt_cv_dlopen_libs= |
| 11252 | lt_cv_dlopen_self=yes |
| 11253 | |
| 11254 | fi |
| 11255 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11256 | ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11257 | |
| 11258 | *) |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11259 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 11260 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11261 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 11262 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11263 | else |
| 11264 | cat >conftest.$ac_ext <<_ACEOF |
| 11265 | /* confdefs.h. */ |
| 11266 | _ACEOF |
| 11267 | cat confdefs.h >>conftest.$ac_ext |
| 11268 | cat >>conftest.$ac_ext <<_ACEOF |
| 11269 | /* end confdefs.h. */ |
| 11270 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 11271 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11272 | #define shl_load innocuous_shl_load |
| 11273 | |
| 11274 | /* System header to define __stub macros and hopefully few prototypes, |
| 11275 | which can conflict with char shl_load (); below. |
| 11276 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11277 | <limits.h> exists even on freestanding compilers. */ |
| 11278 | |
| 11279 | #ifdef __STDC__ |
| 11280 | # include <limits.h> |
| 11281 | #else |
| 11282 | # include <assert.h> |
| 11283 | #endif |
| 11284 | |
| 11285 | #undef shl_load |
| 11286 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11287 | /* Override any GCC internal prototype to avoid an error. |
| 11288 | Use char because int might match the return type of a GCC |
| 11289 | builtin and then its argument prototype would still apply. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11290 | #ifdef __cplusplus |
| 11291 | extern "C" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11292 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11293 | char shl_load (); |
| 11294 | /* The GNU C library defines this for functions which it implements |
| 11295 | to always fail with ENOSYS. Some functions are actually named |
| 11296 | something starting with __ and the normal name is an alias. */ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11297 | #if defined __stub_shl_load || defined __stub___shl_load |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11298 | choke me |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11299 | #endif |
| 11300 | |
| 11301 | int |
| 11302 | main () |
| 11303 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11304 | return shl_load (); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11305 | ; |
| 11306 | return 0; |
| 11307 | } |
| 11308 | _ACEOF |
| 11309 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11310 | if { (ac_try="$ac_link" |
| 11311 | case "(($ac_try" in |
| 11312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11313 | *) ac_try_echo=$ac_try;; |
| 11314 | esac |
| 11315 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11316 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11317 | ac_status=$? |
| 11318 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11319 | rm -f conftest.er1 |
| 11320 | cat conftest.err >&5 |
| 11321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11322 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11323 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11324 | { (case "(($ac_try" in |
| 11325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11326 | *) ac_try_echo=$ac_try;; |
| 11327 | esac |
| 11328 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11329 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11330 | ac_status=$? |
| 11331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11332 | (exit $ac_status); }; } && |
| 11333 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11334 | { (case "(($ac_try" in |
| 11335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11336 | *) ac_try_echo=$ac_try;; |
| 11337 | esac |
| 11338 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11339 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11340 | ac_status=$? |
| 11341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11342 | (exit $ac_status); }; }; then |
| 11343 | ac_cv_func_shl_load=yes |
| 11344 | else |
| 11345 | echo "$as_me: failed program was:" >&5 |
| 11346 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11347 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11348 | ac_cv_func_shl_load=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11349 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11350 | |
| 11351 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11352 | conftest$ac_exeext conftest.$ac_ext |
| 11353 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11354 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 11355 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11356 | if test $ac_cv_func_shl_load = yes; then |
| 11357 | lt_cv_dlopen="shl_load" |
| 11358 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11359 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 11360 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11361 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 11362 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11363 | else |
| 11364 | ac_check_lib_save_LIBS=$LIBS |
| 11365 | LIBS="-ldld $LIBS" |
| 11366 | cat >conftest.$ac_ext <<_ACEOF |
| 11367 | /* confdefs.h. */ |
| 11368 | _ACEOF |
| 11369 | cat confdefs.h >>conftest.$ac_ext |
| 11370 | cat >>conftest.$ac_ext <<_ACEOF |
| 11371 | /* end confdefs.h. */ |
| 11372 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11373 | /* Override any GCC internal prototype to avoid an error. |
| 11374 | Use char because int might match the return type of a GCC |
| 11375 | builtin and then its argument prototype would still apply. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11376 | #ifdef __cplusplus |
| 11377 | extern "C" |
| 11378 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11379 | char shl_load (); |
| 11380 | int |
| 11381 | main () |
| 11382 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11383 | return shl_load (); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11384 | ; |
| 11385 | return 0; |
| 11386 | } |
| 11387 | _ACEOF |
| 11388 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11389 | if { (ac_try="$ac_link" |
| 11390 | case "(($ac_try" in |
| 11391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11392 | *) ac_try_echo=$ac_try;; |
| 11393 | esac |
| 11394 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11395 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11396 | ac_status=$? |
| 11397 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11398 | rm -f conftest.er1 |
| 11399 | cat conftest.err >&5 |
| 11400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11401 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11402 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11403 | { (case "(($ac_try" in |
| 11404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11405 | *) ac_try_echo=$ac_try;; |
| 11406 | esac |
| 11407 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11408 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11409 | ac_status=$? |
| 11410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11411 | (exit $ac_status); }; } && |
| 11412 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11413 | { (case "(($ac_try" in |
| 11414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11415 | *) ac_try_echo=$ac_try;; |
| 11416 | esac |
| 11417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11418 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11419 | ac_status=$? |
| 11420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11421 | (exit $ac_status); }; }; then |
| 11422 | ac_cv_lib_dld_shl_load=yes |
| 11423 | else |
| 11424 | echo "$as_me: failed program was:" >&5 |
| 11425 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11426 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11427 | ac_cv_lib_dld_shl_load=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11428 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11429 | |
| 11430 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11431 | conftest$ac_exeext conftest.$ac_ext |
| 11432 | LIBS=$ac_check_lib_save_LIBS |
| 11433 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11434 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 11435 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11436 | if test $ac_cv_lib_dld_shl_load = yes; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11437 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11438 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11439 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 11440 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11441 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 11442 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11443 | else |
| 11444 | cat >conftest.$ac_ext <<_ACEOF |
| 11445 | /* confdefs.h. */ |
| 11446 | _ACEOF |
| 11447 | cat confdefs.h >>conftest.$ac_ext |
| 11448 | cat >>conftest.$ac_ext <<_ACEOF |
| 11449 | /* end confdefs.h. */ |
| 11450 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 11451 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11452 | #define dlopen innocuous_dlopen |
| 11453 | |
| 11454 | /* System header to define __stub macros and hopefully few prototypes, |
| 11455 | which can conflict with char dlopen (); below. |
| 11456 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11457 | <limits.h> exists even on freestanding compilers. */ |
| 11458 | |
| 11459 | #ifdef __STDC__ |
| 11460 | # include <limits.h> |
| 11461 | #else |
| 11462 | # include <assert.h> |
| 11463 | #endif |
| 11464 | |
| 11465 | #undef dlopen |
| 11466 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11467 | /* Override any GCC internal prototype to avoid an error. |
| 11468 | Use char because int might match the return type of a GCC |
| 11469 | builtin and then its argument prototype would still apply. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11470 | #ifdef __cplusplus |
| 11471 | extern "C" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11472 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11473 | char dlopen (); |
| 11474 | /* The GNU C library defines this for functions which it implements |
| 11475 | to always fail with ENOSYS. Some functions are actually named |
| 11476 | something starting with __ and the normal name is an alias. */ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11477 | #if defined __stub_dlopen || defined __stub___dlopen |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11478 | choke me |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11479 | #endif |
| 11480 | |
| 11481 | int |
| 11482 | main () |
| 11483 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11484 | return dlopen (); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11485 | ; |
| 11486 | return 0; |
| 11487 | } |
| 11488 | _ACEOF |
| 11489 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11490 | if { (ac_try="$ac_link" |
| 11491 | case "(($ac_try" in |
| 11492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11493 | *) ac_try_echo=$ac_try;; |
| 11494 | esac |
| 11495 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11496 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11497 | ac_status=$? |
| 11498 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11499 | rm -f conftest.er1 |
| 11500 | cat conftest.err >&5 |
| 11501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11502 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11503 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11504 | { (case "(($ac_try" in |
| 11505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11506 | *) ac_try_echo=$ac_try;; |
| 11507 | esac |
| 11508 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11509 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11510 | ac_status=$? |
| 11511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11512 | (exit $ac_status); }; } && |
| 11513 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11514 | { (case "(($ac_try" in |
| 11515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11516 | *) ac_try_echo=$ac_try;; |
| 11517 | esac |
| 11518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11519 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11520 | ac_status=$? |
| 11521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11522 | (exit $ac_status); }; }; then |
| 11523 | ac_cv_func_dlopen=yes |
| 11524 | else |
| 11525 | echo "$as_me: failed program was:" >&5 |
| 11526 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11527 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11528 | ac_cv_func_dlopen=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11529 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11530 | |
| 11531 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11532 | conftest$ac_exeext conftest.$ac_ext |
| 11533 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11534 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 11535 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11536 | if test $ac_cv_func_dlopen = yes; then |
| 11537 | lt_cv_dlopen="dlopen" |
| 11538 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11539 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 11540 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11541 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 11542 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11543 | else |
| 11544 | ac_check_lib_save_LIBS=$LIBS |
| 11545 | LIBS="-ldl $LIBS" |
| 11546 | cat >conftest.$ac_ext <<_ACEOF |
| 11547 | /* confdefs.h. */ |
| 11548 | _ACEOF |
| 11549 | cat confdefs.h >>conftest.$ac_ext |
| 11550 | cat >>conftest.$ac_ext <<_ACEOF |
| 11551 | /* end confdefs.h. */ |
| 11552 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11553 | /* Override any GCC internal prototype to avoid an error. |
| 11554 | Use char because int might match the return type of a GCC |
| 11555 | builtin and then its argument prototype would still apply. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11556 | #ifdef __cplusplus |
| 11557 | extern "C" |
| 11558 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11559 | char dlopen (); |
| 11560 | int |
| 11561 | main () |
| 11562 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11563 | return dlopen (); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11564 | ; |
| 11565 | return 0; |
| 11566 | } |
| 11567 | _ACEOF |
| 11568 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11569 | if { (ac_try="$ac_link" |
| 11570 | case "(($ac_try" in |
| 11571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11572 | *) ac_try_echo=$ac_try;; |
| 11573 | esac |
| 11574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11575 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11576 | ac_status=$? |
| 11577 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11578 | rm -f conftest.er1 |
| 11579 | cat conftest.err >&5 |
| 11580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11581 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11582 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11583 | { (case "(($ac_try" in |
| 11584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11585 | *) ac_try_echo=$ac_try;; |
| 11586 | esac |
| 11587 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11588 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11589 | ac_status=$? |
| 11590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11591 | (exit $ac_status); }; } && |
| 11592 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11593 | { (case "(($ac_try" in |
| 11594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11595 | *) ac_try_echo=$ac_try;; |
| 11596 | esac |
| 11597 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11598 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11599 | ac_status=$? |
| 11600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11601 | (exit $ac_status); }; }; then |
| 11602 | ac_cv_lib_dl_dlopen=yes |
| 11603 | else |
| 11604 | echo "$as_me: failed program was:" >&5 |
| 11605 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11606 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11607 | ac_cv_lib_dl_dlopen=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11608 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11609 | |
| 11610 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11611 | conftest$ac_exeext conftest.$ac_ext |
| 11612 | LIBS=$ac_check_lib_save_LIBS |
| 11613 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11614 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 11615 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11616 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 11617 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 11618 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11619 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 11620 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11621 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 11622 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11623 | else |
| 11624 | ac_check_lib_save_LIBS=$LIBS |
| 11625 | LIBS="-lsvld $LIBS" |
| 11626 | cat >conftest.$ac_ext <<_ACEOF |
| 11627 | /* confdefs.h. */ |
| 11628 | _ACEOF |
| 11629 | cat confdefs.h >>conftest.$ac_ext |
| 11630 | cat >>conftest.$ac_ext <<_ACEOF |
| 11631 | /* end confdefs.h. */ |
| 11632 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11633 | /* Override any GCC internal prototype to avoid an error. |
| 11634 | Use char because int might match the return type of a GCC |
| 11635 | builtin and then its argument prototype would still apply. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11636 | #ifdef __cplusplus |
| 11637 | extern "C" |
| 11638 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11639 | char dlopen (); |
| 11640 | int |
| 11641 | main () |
| 11642 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11643 | return dlopen (); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11644 | ; |
| 11645 | return 0; |
| 11646 | } |
| 11647 | _ACEOF |
| 11648 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11649 | if { (ac_try="$ac_link" |
| 11650 | case "(($ac_try" in |
| 11651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11652 | *) ac_try_echo=$ac_try;; |
| 11653 | esac |
| 11654 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11655 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11656 | ac_status=$? |
| 11657 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11658 | rm -f conftest.er1 |
| 11659 | cat conftest.err >&5 |
| 11660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11661 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11662 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11663 | { (case "(($ac_try" in |
| 11664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11665 | *) ac_try_echo=$ac_try;; |
| 11666 | esac |
| 11667 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11668 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11669 | ac_status=$? |
| 11670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11671 | (exit $ac_status); }; } && |
| 11672 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11673 | { (case "(($ac_try" in |
| 11674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11675 | *) ac_try_echo=$ac_try;; |
| 11676 | esac |
| 11677 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11678 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11679 | ac_status=$? |
| 11680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11681 | (exit $ac_status); }; }; then |
| 11682 | ac_cv_lib_svld_dlopen=yes |
| 11683 | else |
| 11684 | echo "$as_me: failed program was:" >&5 |
| 11685 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11686 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11687 | ac_cv_lib_svld_dlopen=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11688 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11689 | |
| 11690 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11691 | conftest$ac_exeext conftest.$ac_ext |
| 11692 | LIBS=$ac_check_lib_save_LIBS |
| 11693 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11694 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 11695 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11696 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 11697 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 11698 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11699 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 11700 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11701 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 11702 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11703 | else |
| 11704 | ac_check_lib_save_LIBS=$LIBS |
| 11705 | LIBS="-ldld $LIBS" |
| 11706 | cat >conftest.$ac_ext <<_ACEOF |
| 11707 | /* confdefs.h. */ |
| 11708 | _ACEOF |
| 11709 | cat confdefs.h >>conftest.$ac_ext |
| 11710 | cat >>conftest.$ac_ext <<_ACEOF |
| 11711 | /* end confdefs.h. */ |
| 11712 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11713 | /* Override any GCC internal prototype to avoid an error. |
| 11714 | Use char because int might match the return type of a GCC |
| 11715 | builtin and then its argument prototype would still apply. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11716 | #ifdef __cplusplus |
| 11717 | extern "C" |
| 11718 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11719 | char dld_link (); |
| 11720 | int |
| 11721 | main () |
| 11722 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11723 | return dld_link (); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11724 | ; |
| 11725 | return 0; |
| 11726 | } |
| 11727 | _ACEOF |
| 11728 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11729 | if { (ac_try="$ac_link" |
| 11730 | case "(($ac_try" in |
| 11731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11732 | *) ac_try_echo=$ac_try;; |
| 11733 | esac |
| 11734 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11735 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11736 | ac_status=$? |
| 11737 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11738 | rm -f conftest.er1 |
| 11739 | cat conftest.err >&5 |
| 11740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11741 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11742 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11743 | { (case "(($ac_try" in |
| 11744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11745 | *) ac_try_echo=$ac_try;; |
| 11746 | esac |
| 11747 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11748 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11749 | ac_status=$? |
| 11750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11751 | (exit $ac_status); }; } && |
| 11752 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11753 | { (case "(($ac_try" in |
| 11754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11755 | *) ac_try_echo=$ac_try;; |
| 11756 | esac |
| 11757 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11758 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11759 | ac_status=$? |
| 11760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11761 | (exit $ac_status); }; }; then |
| 11762 | ac_cv_lib_dld_dld_link=yes |
| 11763 | else |
| 11764 | echo "$as_me: failed program was:" >&5 |
| 11765 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11766 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11767 | ac_cv_lib_dld_dld_link=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11768 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11769 | |
| 11770 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11771 | conftest$ac_exeext conftest.$ac_ext |
| 11772 | LIBS=$ac_check_lib_save_LIBS |
| 11773 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11774 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 11775 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11776 | if test $ac_cv_lib_dld_dld_link = yes; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11777 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11778 | fi |
| 11779 | |
| 11780 | |
| 11781 | fi |
| 11782 | |
| 11783 | |
| 11784 | fi |
| 11785 | |
| 11786 | |
| 11787 | fi |
| 11788 | |
| 11789 | |
| 11790 | fi |
| 11791 | |
| 11792 | |
| 11793 | fi |
| 11794 | |
| 11795 | ;; |
| 11796 | esac |
| 11797 | |
| 11798 | if test "x$lt_cv_dlopen" != xno; then |
| 11799 | enable_dlopen=yes |
| 11800 | else |
| 11801 | enable_dlopen=no |
| 11802 | fi |
| 11803 | |
| 11804 | case $lt_cv_dlopen in |
| 11805 | dlopen) |
| 11806 | save_CPPFLAGS="$CPPFLAGS" |
| 11807 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 11808 | |
| 11809 | save_LDFLAGS="$LDFLAGS" |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 11810 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11811 | |
| 11812 | save_LIBS="$LIBS" |
| 11813 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 11814 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11815 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 11816 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11817 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 11818 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11819 | else |
| 11820 | if test "$cross_compiling" = yes; then : |
| 11821 | lt_cv_dlopen_self=cross |
| 11822 | else |
| 11823 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11824 | lt_status=$lt_dlunknown |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11825 | cat > conftest.$ac_ext <<_LT_EOF |
| 11826 | #line $LINENO "configure" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11827 | #include "confdefs.h" |
| 11828 | |
| 11829 | #if HAVE_DLFCN_H |
| 11830 | #include <dlfcn.h> |
| 11831 | #endif |
| 11832 | |
| 11833 | #include <stdio.h> |
| 11834 | |
| 11835 | #ifdef RTLD_GLOBAL |
| 11836 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11837 | #else |
| 11838 | # ifdef DL_GLOBAL |
| 11839 | # define LT_DLGLOBAL DL_GLOBAL |
| 11840 | # else |
| 11841 | # define LT_DLGLOBAL 0 |
| 11842 | # endif |
| 11843 | #endif |
| 11844 | |
| 11845 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11846 | find out it does not work in some platform. */ |
| 11847 | #ifndef LT_DLLAZY_OR_NOW |
| 11848 | # ifdef RTLD_LAZY |
| 11849 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11850 | # else |
| 11851 | # ifdef DL_LAZY |
| 11852 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11853 | # else |
| 11854 | # ifdef RTLD_NOW |
| 11855 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11856 | # else |
| 11857 | # ifdef DL_NOW |
| 11858 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11859 | # else |
| 11860 | # define LT_DLLAZY_OR_NOW 0 |
| 11861 | # endif |
| 11862 | # endif |
| 11863 | # endif |
| 11864 | # endif |
| 11865 | #endif |
| 11866 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11867 | /* When -fvisbility=hidden is used, assume the code has been annotated |
| 11868 | correspondingly for the symbols needed. */ |
| 11869 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 11870 | int fnord () __attribute__((visibility("default"))); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11871 | #endif |
| 11872 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11873 | int fnord () { return 42; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11874 | int main () |
| 11875 | { |
| 11876 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11877 | int status = $lt_dlunknown; |
| 11878 | |
| 11879 | if (self) |
| 11880 | { |
| 11881 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11882 | else |
| 11883 | { |
| 11884 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11885 | else puts (dlerror ()); |
| 11886 | } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11887 | /* dlclose (self); */ |
| 11888 | } |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 11889 | else |
| 11890 | puts (dlerror ()); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11891 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11892 | return status; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11893 | } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11894 | _LT_EOF |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11895 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11896 | (eval $ac_link) 2>&5 |
| 11897 | ac_status=$? |
| 11898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11899 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 11900 | (./conftest; exit; ) >&5 2>/dev/null |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11901 | lt_status=$? |
| 11902 | case x$lt_status in |
| 11903 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 11904 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 11905 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11906 | esac |
| 11907 | else : |
| 11908 | # compilation failed |
| 11909 | lt_cv_dlopen_self=no |
| 11910 | fi |
| 11911 | fi |
| 11912 | rm -fr conftest* |
| 11913 | |
| 11914 | |
| 11915 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11916 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 11917 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11918 | |
| 11919 | if test "x$lt_cv_dlopen_self" = xyes; then |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 11920 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11921 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 11922 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11923 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 11924 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11925 | else |
| 11926 | if test "$cross_compiling" = yes; then : |
| 11927 | lt_cv_dlopen_self_static=cross |
| 11928 | else |
| 11929 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11930 | lt_status=$lt_dlunknown |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11931 | cat > conftest.$ac_ext <<_LT_EOF |
| 11932 | #line $LINENO "configure" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11933 | #include "confdefs.h" |
| 11934 | |
| 11935 | #if HAVE_DLFCN_H |
| 11936 | #include <dlfcn.h> |
| 11937 | #endif |
| 11938 | |
| 11939 | #include <stdio.h> |
| 11940 | |
| 11941 | #ifdef RTLD_GLOBAL |
| 11942 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11943 | #else |
| 11944 | # ifdef DL_GLOBAL |
| 11945 | # define LT_DLGLOBAL DL_GLOBAL |
| 11946 | # else |
| 11947 | # define LT_DLGLOBAL 0 |
| 11948 | # endif |
| 11949 | #endif |
| 11950 | |
| 11951 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11952 | find out it does not work in some platform. */ |
| 11953 | #ifndef LT_DLLAZY_OR_NOW |
| 11954 | # ifdef RTLD_LAZY |
| 11955 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11956 | # else |
| 11957 | # ifdef DL_LAZY |
| 11958 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11959 | # else |
| 11960 | # ifdef RTLD_NOW |
| 11961 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11962 | # else |
| 11963 | # ifdef DL_NOW |
| 11964 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11965 | # else |
| 11966 | # define LT_DLLAZY_OR_NOW 0 |
| 11967 | # endif |
| 11968 | # endif |
| 11969 | # endif |
| 11970 | # endif |
| 11971 | #endif |
| 11972 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11973 | /* When -fvisbility=hidden is used, assume the code has been annotated |
| 11974 | correspondingly for the symbols needed. */ |
| 11975 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 11976 | int fnord () __attribute__((visibility("default"))); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11977 | #endif |
| 11978 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11979 | int fnord () { return 42; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11980 | int main () |
| 11981 | { |
| 11982 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11983 | int status = $lt_dlunknown; |
| 11984 | |
| 11985 | if (self) |
| 11986 | { |
| 11987 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11988 | else |
| 11989 | { |
| 11990 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11991 | else puts (dlerror ()); |
| 11992 | } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11993 | /* dlclose (self); */ |
| 11994 | } |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 11995 | else |
| 11996 | puts (dlerror ()); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11997 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11998 | return status; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11999 | } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 12000 | _LT_EOF |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12001 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12002 | (eval $ac_link) 2>&5 |
| 12003 | ac_status=$? |
| 12004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12005 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 12006 | (./conftest; exit; ) >&5 2>/dev/null |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12007 | lt_status=$? |
| 12008 | case x$lt_status in |
| 12009 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 12010 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 12011 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12012 | esac |
| 12013 | else : |
| 12014 | # compilation failed |
| 12015 | lt_cv_dlopen_self_static=no |
| 12016 | fi |
| 12017 | fi |
| 12018 | rm -fr conftest* |
| 12019 | |
| 12020 | |
| 12021 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12022 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 12023 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12024 | fi |
| 12025 | |
| 12026 | CPPFLAGS="$save_CPPFLAGS" |
| 12027 | LDFLAGS="$save_LDFLAGS" |
| 12028 | LIBS="$save_LIBS" |
| 12029 | ;; |
| 12030 | esac |
| 12031 | |
| 12032 | case $lt_cv_dlopen_self in |
| 12033 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 12034 | *) enable_dlopen_self=unknown ;; |
| 12035 | esac |
| 12036 | |
| 12037 | case $lt_cv_dlopen_self_static in |
| 12038 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 12039 | *) enable_dlopen_self_static=unknown ;; |
| 12040 | esac |
| 12041 | fi |
| 12042 | |
| 12043 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12044 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12045 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12046 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12047 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12048 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12049 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12050 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12051 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12052 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12053 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12054 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12055 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12056 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12057 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12058 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 12059 | striplib= |
| 12060 | old_striplib= |
| 12061 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 12062 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
| 12063 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
| 12064 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 12065 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 12066 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 12067 | echo "${ECHO_T}yes" >&6; } |
| 12068 | else |
| 12069 | # FIXME - insert some real tests, host_os isn't really good enough |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12070 | case $host_os in |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 12071 | darwin*) |
| 12072 | if test -n "$STRIP" ; then |
| 12073 | striplib="$STRIP -x" |
| 12074 | old_striplib="$STRIP -S" |
| 12075 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 12076 | echo "${ECHO_T}yes" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12077 | else |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 12078 | { echo "$as_me:$LINENO: result: no" >&5 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12079 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12080 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12081 | ;; |
| 12082 | *) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 12083 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12084 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 12085 | ;; |
| 12086 | esac |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 12087 | fi |
| 12088 | |
| 12089 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12090 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12091 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12092 | |
| 12093 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12094 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12095 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12096 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12097 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12098 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12099 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 12100 | # Report which library types will actually be built |
| 12101 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12102 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 12103 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12104 | echo "${ECHO_T}$can_build_shared" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12105 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 12106 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12107 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 12108 | test "$can_build_shared" = "no" && enable_shared=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12109 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 12110 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 12111 | # are all built from PIC. |
| 12112 | case $host_os in |
| 12113 | aix3*) |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 12114 | test "$enable_shared" = yes && enable_static=no |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 12115 | if test -n "$RANLIB"; then |
| 12116 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 12117 | postinstall_cmds='$RANLIB $lib' |
| 12118 | fi |
| 12119 | ;; |
| 12120 | |
| 12121 | aix[4-9]*) |
| 12122 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 12123 | test "$enable_shared" = yes && enable_static=no |
| 12124 | fi |
| 12125 | ;; |
| 12126 | esac |
| 12127 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12128 | echo "${ECHO_T}$enable_shared" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12129 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 12130 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12131 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 12132 | # Make sure either enable_shared or enable_static is yes. |
| 12133 | test "$enable_shared" = yes || enable_static=yes |
| 12134 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12135 | echo "${ECHO_T}$enable_static" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12136 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12137 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12138 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12139 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12140 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12141 | ac_ext=c |
| 12142 | ac_cpp='$CPP $CPPFLAGS' |
| 12143 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12144 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12145 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12146 | |
| 12147 | CC="$lt_save_CC" |
| 12148 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12149 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12150 | |
| 12151 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12152 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12153 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12154 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12155 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12156 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12157 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 12158 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12159 | |
| 12160 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 12161 | ac_config_commands="$ac_config_commands libtool" |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 12162 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 12163 | |
| 12164 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 12165 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 12166 | # Only expand once: |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12167 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12168 | |
| 12169 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12170 | # Check whether --enable-autoconf was given. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12171 | if test "${enable_autoconf+set}" = set; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12172 | enableval=$enable_autoconf; enable_autoconf=$enableval |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12173 | else |
| 12174 | enable_autoconf=yes |
| 12175 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12176 | fi |
| 12177 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12178 | # Extract the first word of "autoconf", so it can be a program name with args. |
| 12179 | set dummy autoconf; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12180 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12181 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12182 | if test "${ac_cv_path_AUTOCONF+set}" = set; then |
| 12183 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12184 | else |
| 12185 | case $AUTOCONF in |
| 12186 | [\\/]* | ?:[\\/]*) |
| 12187 | ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path. |
| 12188 | ;; |
| 12189 | *) |
| 12190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12191 | for as_dir in $PATH |
| 12192 | do |
| 12193 | IFS=$as_save_IFS |
| 12194 | test -z "$as_dir" && as_dir=. |
| 12195 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12196 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12197 | ac_cv_path_AUTOCONF="$as_dir/$ac_word$ac_exec_ext" |
| 12198 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12199 | break 2 |
| 12200 | fi |
| 12201 | done |
| 12202 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12203 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12204 | |
| 12205 | test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="@echo autoconf not available" |
| 12206 | ;; |
| 12207 | esac |
| 12208 | fi |
| 12209 | AUTOCONF=$ac_cv_path_AUTOCONF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12210 | if test -n "$AUTOCONF"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12211 | { echo "$as_me:$LINENO: result: $AUTOCONF" >&5 |
| 12212 | echo "${ECHO_T}$AUTOCONF" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12213 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12214 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12215 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12216 | fi |
| 12217 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12218 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12219 | # Extract the first word of "autoheader", so it can be a program name with args. |
| 12220 | set dummy autoheader; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12221 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12222 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12223 | if test "${ac_cv_path_AUTOHEADER+set}" = set; then |
| 12224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12225 | else |
| 12226 | case $AUTOHEADER in |
| 12227 | [\\/]* | ?:[\\/]*) |
| 12228 | ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path. |
| 12229 | ;; |
| 12230 | *) |
| 12231 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12232 | for as_dir in $PATH |
| 12233 | do |
| 12234 | IFS=$as_save_IFS |
| 12235 | test -z "$as_dir" && as_dir=. |
| 12236 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12237 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12238 | ac_cv_path_AUTOHEADER="$as_dir/$ac_word$ac_exec_ext" |
| 12239 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12240 | break 2 |
| 12241 | fi |
| 12242 | done |
| 12243 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12244 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12245 | |
| 12246 | test -z "$ac_cv_path_AUTOHEADER" && ac_cv_path_AUTOHEADER="@echo autoheader not available" |
| 12247 | ;; |
| 12248 | esac |
| 12249 | fi |
| 12250 | AUTOHEADER=$ac_cv_path_AUTOHEADER |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12251 | if test -n "$AUTOHEADER"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12252 | { echo "$as_me:$LINENO: result: $AUTOHEADER" >&5 |
| 12253 | echo "${ECHO_T}$AUTOHEADER" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12254 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12255 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12256 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12257 | fi |
| 12258 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12259 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12260 | if test -z "$AUTOCONF"; then enable_autoconf=no ; fi |
| 12261 | if test -z "$AUTOHEADER"; then enable_autoconf=no ; fi |
| 12262 | if test x$enable_autoconf = xyes; then |
| 12263 | CONFIGURE_DEPENDS="configure.in aclocal.m4" |
| 12264 | fi |
| 12265 | |
| 12266 | |
| 12267 | ac_ext=c |
| 12268 | ac_cpp='$CPP $CPPFLAGS' |
| 12269 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12270 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12271 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12272 | if test -n "$ac_tool_prefix"; then |
| 12273 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 12274 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12275 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12276 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12277 | if test "${ac_cv_prog_CC+set}" = set; then |
| 12278 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12279 | else |
| 12280 | if test -n "$CC"; then |
| 12281 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 12282 | else |
| 12283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12284 | for as_dir in $PATH |
| 12285 | do |
| 12286 | IFS=$as_save_IFS |
| 12287 | test -z "$as_dir" && as_dir=. |
| 12288 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12289 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12290 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 12291 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12292 | break 2 |
| 12293 | fi |
| 12294 | done |
| 12295 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12296 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12297 | |
| 12298 | fi |
| 12299 | fi |
| 12300 | CC=$ac_cv_prog_CC |
| 12301 | if test -n "$CC"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12302 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 12303 | echo "${ECHO_T}$CC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12304 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12305 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12306 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12307 | fi |
| 12308 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12309 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12310 | fi |
| 12311 | if test -z "$ac_cv_prog_CC"; then |
| 12312 | ac_ct_CC=$CC |
| 12313 | # Extract the first word of "gcc", so it can be a program name with args. |
| 12314 | set dummy gcc; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12315 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12316 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12317 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 12318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12319 | else |
| 12320 | if test -n "$ac_ct_CC"; then |
| 12321 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 12322 | else |
| 12323 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12324 | for as_dir in $PATH |
| 12325 | do |
| 12326 | IFS=$as_save_IFS |
| 12327 | test -z "$as_dir" && as_dir=. |
| 12328 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12329 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12330 | ac_cv_prog_ac_ct_CC="gcc" |
| 12331 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12332 | break 2 |
| 12333 | fi |
| 12334 | done |
| 12335 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12336 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12337 | |
| 12338 | fi |
| 12339 | fi |
| 12340 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 12341 | if test -n "$ac_ct_CC"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12342 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 12343 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12344 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12345 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12346 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12347 | fi |
| 12348 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12349 | if test "x$ac_ct_CC" = x; then |
| 12350 | CC="" |
| 12351 | else |
| 12352 | case $cross_compiling:$ac_tool_warned in |
| 12353 | yes:) |
| 12354 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 12355 | whose name does not start with the host triplet. If you think this |
| 12356 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 12357 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 12358 | whose name does not start with the host triplet. If you think this |
| 12359 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 12360 | ac_tool_warned=yes ;; |
| 12361 | esac |
| 12362 | CC=$ac_ct_CC |
| 12363 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12364 | else |
| 12365 | CC="$ac_cv_prog_CC" |
| 12366 | fi |
| 12367 | |
| 12368 | if test -z "$CC"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12369 | if test -n "$ac_tool_prefix"; then |
| 12370 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12371 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12372 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12373 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12374 | if test "${ac_cv_prog_CC+set}" = set; then |
| 12375 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12376 | else |
| 12377 | if test -n "$CC"; then |
| 12378 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 12379 | else |
| 12380 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12381 | for as_dir in $PATH |
| 12382 | do |
| 12383 | IFS=$as_save_IFS |
| 12384 | test -z "$as_dir" && as_dir=. |
| 12385 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12386 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12387 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 12388 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12389 | break 2 |
| 12390 | fi |
| 12391 | done |
| 12392 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12393 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12394 | |
| 12395 | fi |
| 12396 | fi |
| 12397 | CC=$ac_cv_prog_CC |
| 12398 | if test -n "$CC"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12399 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 12400 | echo "${ECHO_T}$CC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12401 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12402 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12403 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12404 | fi |
| 12405 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12406 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12407 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12408 | fi |
| 12409 | if test -z "$CC"; then |
| 12410 | # Extract the first word of "cc", so it can be a program name with args. |
| 12411 | set dummy cc; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12412 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12413 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12414 | if test "${ac_cv_prog_CC+set}" = set; then |
| 12415 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12416 | else |
| 12417 | if test -n "$CC"; then |
| 12418 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 12419 | else |
| 12420 | ac_prog_rejected=no |
| 12421 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12422 | for as_dir in $PATH |
| 12423 | do |
| 12424 | IFS=$as_save_IFS |
| 12425 | test -z "$as_dir" && as_dir=. |
| 12426 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12427 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12428 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 12429 | ac_prog_rejected=yes |
| 12430 | continue |
| 12431 | fi |
| 12432 | ac_cv_prog_CC="cc" |
| 12433 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12434 | break 2 |
| 12435 | fi |
| 12436 | done |
| 12437 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12438 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12439 | |
| 12440 | if test $ac_prog_rejected = yes; then |
| 12441 | # We found a bogon in the path, so make sure we never use it. |
| 12442 | set dummy $ac_cv_prog_CC |
| 12443 | shift |
| 12444 | if test $# != 0; then |
| 12445 | # We chose a different compiler from the bogus one. |
| 12446 | # However, it has the same basename, so the bogon will be chosen |
| 12447 | # first if we set CC to just the basename; use the full file name. |
| 12448 | shift |
| 12449 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 12450 | fi |
| 12451 | fi |
| 12452 | fi |
| 12453 | fi |
| 12454 | CC=$ac_cv_prog_CC |
| 12455 | if test -n "$CC"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12456 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 12457 | echo "${ECHO_T}$CC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12458 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12459 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12460 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12461 | fi |
| 12462 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12463 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12464 | fi |
| 12465 | if test -z "$CC"; then |
| 12466 | if test -n "$ac_tool_prefix"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12467 | for ac_prog in cl.exe |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12468 | do |
| 12469 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 12470 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12471 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12472 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12473 | if test "${ac_cv_prog_CC+set}" = set; then |
| 12474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12475 | else |
| 12476 | if test -n "$CC"; then |
| 12477 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 12478 | else |
| 12479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12480 | for as_dir in $PATH |
| 12481 | do |
| 12482 | IFS=$as_save_IFS |
| 12483 | test -z "$as_dir" && as_dir=. |
| 12484 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12485 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12486 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 12487 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12488 | break 2 |
| 12489 | fi |
| 12490 | done |
| 12491 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12492 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12493 | |
| 12494 | fi |
| 12495 | fi |
| 12496 | CC=$ac_cv_prog_CC |
| 12497 | if test -n "$CC"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12498 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 12499 | echo "${ECHO_T}$CC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12500 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12501 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12502 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12503 | fi |
| 12504 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12505 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12506 | test -n "$CC" && break |
| 12507 | done |
| 12508 | fi |
| 12509 | if test -z "$CC"; then |
| 12510 | ac_ct_CC=$CC |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12511 | for ac_prog in cl.exe |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12512 | do |
| 12513 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 12514 | set dummy $ac_prog; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12515 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12516 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12517 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 12518 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12519 | else |
| 12520 | if test -n "$ac_ct_CC"; then |
| 12521 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 12522 | else |
| 12523 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12524 | for as_dir in $PATH |
| 12525 | do |
| 12526 | IFS=$as_save_IFS |
| 12527 | test -z "$as_dir" && as_dir=. |
| 12528 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12529 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12530 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 12531 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12532 | break 2 |
| 12533 | fi |
| 12534 | done |
| 12535 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12536 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12537 | |
| 12538 | fi |
| 12539 | fi |
| 12540 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 12541 | if test -n "$ac_ct_CC"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12542 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 12543 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12544 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12545 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12546 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12547 | fi |
| 12548 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12549 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12550 | test -n "$ac_ct_CC" && break |
| 12551 | done |
| 12552 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12553 | if test "x$ac_ct_CC" = x; then |
| 12554 | CC="" |
| 12555 | else |
| 12556 | case $cross_compiling:$ac_tool_warned in |
| 12557 | yes:) |
| 12558 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 12559 | whose name does not start with the host triplet. If you think this |
| 12560 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 12561 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 12562 | whose name does not start with the host triplet. If you think this |
| 12563 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 12564 | ac_tool_warned=yes ;; |
| 12565 | esac |
| 12566 | CC=$ac_ct_CC |
| 12567 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12568 | fi |
| 12569 | |
| 12570 | fi |
| 12571 | |
| 12572 | |
| 12573 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 12574 | See \`config.log' for more details." >&5 |
| 12575 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 12576 | See \`config.log' for more details." >&2;} |
| 12577 | { (exit 1); exit 1; }; } |
| 12578 | |
| 12579 | # Provide some information about the compiler. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12580 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12581 | ac_compiler=`set X $ac_compile; echo $2` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12582 | { (ac_try="$ac_compiler --version >&5" |
| 12583 | case "(($ac_try" in |
| 12584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12585 | *) ac_try_echo=$ac_try;; |
| 12586 | esac |
| 12587 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12588 | (eval "$ac_compiler --version >&5") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12589 | ac_status=$? |
| 12590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12591 | (exit $ac_status); } |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12592 | { (ac_try="$ac_compiler -v >&5" |
| 12593 | case "(($ac_try" in |
| 12594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12595 | *) ac_try_echo=$ac_try;; |
| 12596 | esac |
| 12597 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12598 | (eval "$ac_compiler -v >&5") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12599 | ac_status=$? |
| 12600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12601 | (exit $ac_status); } |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12602 | { (ac_try="$ac_compiler -V >&5" |
| 12603 | case "(($ac_try" in |
| 12604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12605 | *) ac_try_echo=$ac_try;; |
| 12606 | esac |
| 12607 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12608 | (eval "$ac_compiler -V >&5") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12609 | ac_status=$? |
| 12610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12611 | (exit $ac_status); } |
| 12612 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12613 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 12614 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12615 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 12616 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12617 | else |
| 12618 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12619 | /* confdefs.h. */ |
| 12620 | _ACEOF |
| 12621 | cat confdefs.h >>conftest.$ac_ext |
| 12622 | cat >>conftest.$ac_ext <<_ACEOF |
| 12623 | /* end confdefs.h. */ |
| 12624 | |
| 12625 | int |
| 12626 | main () |
| 12627 | { |
| 12628 | #ifndef __GNUC__ |
| 12629 | choke me |
| 12630 | #endif |
| 12631 | |
| 12632 | ; |
| 12633 | return 0; |
| 12634 | } |
| 12635 | _ACEOF |
| 12636 | rm -f conftest.$ac_objext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12637 | if { (ac_try="$ac_compile" |
| 12638 | case "(($ac_try" in |
| 12639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12640 | *) ac_try_echo=$ac_try;; |
| 12641 | esac |
| 12642 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12643 | (eval "$ac_compile") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12644 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12645 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12646 | rm -f conftest.er1 |
| 12647 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12649 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12650 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12651 | { (case "(($ac_try" in |
| 12652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12653 | *) ac_try_echo=$ac_try;; |
| 12654 | esac |
| 12655 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12656 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12657 | ac_status=$? |
| 12658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12659 | (exit $ac_status); }; } && |
| 12660 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12661 | { (case "(($ac_try" in |
| 12662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12663 | *) ac_try_echo=$ac_try;; |
| 12664 | esac |
| 12665 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12666 | (eval "$ac_try") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12667 | ac_status=$? |
| 12668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12669 | (exit $ac_status); }; }; then |
| 12670 | ac_compiler_gnu=yes |
| 12671 | else |
| 12672 | echo "$as_me: failed program was:" >&5 |
| 12673 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12674 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12675 | ac_compiler_gnu=no |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12676 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12677 | |
| 12678 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12679 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 12680 | |
| 12681 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12682 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 12683 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12684 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 12685 | ac_test_CFLAGS=${CFLAGS+set} |
| 12686 | ac_save_CFLAGS=$CFLAGS |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12687 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 12688 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12689 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 12690 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12691 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12692 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 12693 | ac_c_werror_flag=yes |
| 12694 | ac_cv_prog_cc_g=no |
| 12695 | CFLAGS="-g" |
| 12696 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12697 | /* confdefs.h. */ |
| 12698 | _ACEOF |
| 12699 | cat confdefs.h >>conftest.$ac_ext |
| 12700 | cat >>conftest.$ac_ext <<_ACEOF |
| 12701 | /* end confdefs.h. */ |
| 12702 | |
| 12703 | int |
| 12704 | main () |
| 12705 | { |
| 12706 | |
| 12707 | ; |
| 12708 | return 0; |
| 12709 | } |
| 12710 | _ACEOF |
| 12711 | rm -f conftest.$ac_objext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12712 | if { (ac_try="$ac_compile" |
| 12713 | case "(($ac_try" in |
| 12714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12715 | *) ac_try_echo=$ac_try;; |
| 12716 | esac |
| 12717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12718 | (eval "$ac_compile") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12719 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12720 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12721 | rm -f conftest.er1 |
| 12722 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12724 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12725 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12726 | { (case "(($ac_try" in |
| 12727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12728 | *) ac_try_echo=$ac_try;; |
| 12729 | esac |
| 12730 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12731 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12732 | ac_status=$? |
| 12733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12734 | (exit $ac_status); }; } && |
| 12735 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12736 | { (case "(($ac_try" in |
| 12737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12738 | *) ac_try_echo=$ac_try;; |
| 12739 | esac |
| 12740 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12741 | (eval "$ac_try") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12742 | ac_status=$? |
| 12743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12744 | (exit $ac_status); }; }; then |
| 12745 | ac_cv_prog_cc_g=yes |
| 12746 | else |
| 12747 | echo "$as_me: failed program was:" >&5 |
| 12748 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12749 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12750 | CFLAGS="" |
| 12751 | cat >conftest.$ac_ext <<_ACEOF |
| 12752 | /* confdefs.h. */ |
| 12753 | _ACEOF |
| 12754 | cat confdefs.h >>conftest.$ac_ext |
| 12755 | cat >>conftest.$ac_ext <<_ACEOF |
| 12756 | /* end confdefs.h. */ |
| 12757 | |
| 12758 | int |
| 12759 | main () |
| 12760 | { |
| 12761 | |
| 12762 | ; |
| 12763 | return 0; |
| 12764 | } |
| 12765 | _ACEOF |
| 12766 | rm -f conftest.$ac_objext |
| 12767 | if { (ac_try="$ac_compile" |
| 12768 | case "(($ac_try" in |
| 12769 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12770 | *) ac_try_echo=$ac_try;; |
| 12771 | esac |
| 12772 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12773 | (eval "$ac_compile") 2>conftest.er1 |
| 12774 | ac_status=$? |
| 12775 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12776 | rm -f conftest.er1 |
| 12777 | cat conftest.err >&5 |
| 12778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12779 | (exit $ac_status); } && |
| 12780 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12781 | { (case "(($ac_try" in |
| 12782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12783 | *) ac_try_echo=$ac_try;; |
| 12784 | esac |
| 12785 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12786 | (eval "$ac_try") 2>&5 |
| 12787 | ac_status=$? |
| 12788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12789 | (exit $ac_status); }; } && |
| 12790 | { ac_try='test -s conftest.$ac_objext' |
| 12791 | { (case "(($ac_try" in |
| 12792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12793 | *) ac_try_echo=$ac_try;; |
| 12794 | esac |
| 12795 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12796 | (eval "$ac_try") 2>&5 |
| 12797 | ac_status=$? |
| 12798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12799 | (exit $ac_status); }; }; then |
| 12800 | : |
| 12801 | else |
| 12802 | echo "$as_me: failed program was:" >&5 |
| 12803 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12804 | |
| 12805 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 12806 | CFLAGS="-g" |
| 12807 | cat >conftest.$ac_ext <<_ACEOF |
| 12808 | /* confdefs.h. */ |
| 12809 | _ACEOF |
| 12810 | cat confdefs.h >>conftest.$ac_ext |
| 12811 | cat >>conftest.$ac_ext <<_ACEOF |
| 12812 | /* end confdefs.h. */ |
| 12813 | |
| 12814 | int |
| 12815 | main () |
| 12816 | { |
| 12817 | |
| 12818 | ; |
| 12819 | return 0; |
| 12820 | } |
| 12821 | _ACEOF |
| 12822 | rm -f conftest.$ac_objext |
| 12823 | if { (ac_try="$ac_compile" |
| 12824 | case "(($ac_try" in |
| 12825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12826 | *) ac_try_echo=$ac_try;; |
| 12827 | esac |
| 12828 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12829 | (eval "$ac_compile") 2>conftest.er1 |
| 12830 | ac_status=$? |
| 12831 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12832 | rm -f conftest.er1 |
| 12833 | cat conftest.err >&5 |
| 12834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12835 | (exit $ac_status); } && |
| 12836 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12837 | { (case "(($ac_try" in |
| 12838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12839 | *) ac_try_echo=$ac_try;; |
| 12840 | esac |
| 12841 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12842 | (eval "$ac_try") 2>&5 |
| 12843 | ac_status=$? |
| 12844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12845 | (exit $ac_status); }; } && |
| 12846 | { ac_try='test -s conftest.$ac_objext' |
| 12847 | { (case "(($ac_try" in |
| 12848 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12849 | *) ac_try_echo=$ac_try;; |
| 12850 | esac |
| 12851 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12852 | (eval "$ac_try") 2>&5 |
| 12853 | ac_status=$? |
| 12854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12855 | (exit $ac_status); }; }; then |
| 12856 | ac_cv_prog_cc_g=yes |
| 12857 | else |
| 12858 | echo "$as_me: failed program was:" >&5 |
| 12859 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12860 | |
| 12861 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12862 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12863 | |
| 12864 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12865 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12866 | |
| 12867 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12868 | fi |
| 12869 | |
| 12870 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12871 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 12872 | fi |
| 12873 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 12874 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12875 | if test "$ac_test_CFLAGS" = set; then |
| 12876 | CFLAGS=$ac_save_CFLAGS |
| 12877 | elif test $ac_cv_prog_cc_g = yes; then |
| 12878 | if test "$GCC" = yes; then |
| 12879 | CFLAGS="-g -O2" |
| 12880 | else |
| 12881 | CFLAGS="-g" |
| 12882 | fi |
| 12883 | else |
| 12884 | if test "$GCC" = yes; then |
| 12885 | CFLAGS="-O2" |
| 12886 | else |
| 12887 | CFLAGS= |
| 12888 | fi |
| 12889 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12890 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 12891 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 12892 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12894 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12895 | ac_cv_prog_cc_c89=no |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12896 | ac_save_CC=$CC |
| 12897 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12898 | /* confdefs.h. */ |
| 12899 | _ACEOF |
| 12900 | cat confdefs.h >>conftest.$ac_ext |
| 12901 | cat >>conftest.$ac_ext <<_ACEOF |
| 12902 | /* end confdefs.h. */ |
| 12903 | #include <stdarg.h> |
| 12904 | #include <stdio.h> |
| 12905 | #include <sys/types.h> |
| 12906 | #include <sys/stat.h> |
| 12907 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 12908 | struct buf { int x; }; |
| 12909 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 12910 | static char *e (p, i) |
| 12911 | char **p; |
| 12912 | int i; |
| 12913 | { |
| 12914 | return p[i]; |
| 12915 | } |
| 12916 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 12917 | { |
| 12918 | char *s; |
| 12919 | va_list v; |
| 12920 | va_start (v,p); |
| 12921 | s = g (p, va_arg (v,int)); |
| 12922 | va_end (v); |
| 12923 | return s; |
| 12924 | } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12925 | |
| 12926 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 12927 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 12928 | These don't provoke an error unfortunately, instead are silently treated |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12929 | as 'x'. The following induces an error, until -std is added to get |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12930 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 12931 | array size at least. It's necessary to write '\x00'==0 to get something |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12932 | that's true only with -std. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12933 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 12934 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12935 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 12936 | inside strings and character constants. */ |
| 12937 | #define FOO(x) 'x' |
| 12938 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 12939 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12940 | int test (int i, double x); |
| 12941 | struct s1 {int (*f) (int a);}; |
| 12942 | struct s2 {int (*f) (double a);}; |
| 12943 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 12944 | int argc; |
| 12945 | char **argv; |
| 12946 | int |
| 12947 | main () |
| 12948 | { |
| 12949 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 12950 | ; |
| 12951 | return 0; |
| 12952 | } |
| 12953 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12954 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 12955 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12956 | do |
| 12957 | CC="$ac_save_CC $ac_arg" |
| 12958 | rm -f conftest.$ac_objext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12959 | if { (ac_try="$ac_compile" |
| 12960 | case "(($ac_try" in |
| 12961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12962 | *) ac_try_echo=$ac_try;; |
| 12963 | esac |
| 12964 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12965 | (eval "$ac_compile") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12966 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12967 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12968 | rm -f conftest.er1 |
| 12969 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12971 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12972 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12973 | { (case "(($ac_try" in |
| 12974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12975 | *) ac_try_echo=$ac_try;; |
| 12976 | esac |
| 12977 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12978 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12979 | ac_status=$? |
| 12980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12981 | (exit $ac_status); }; } && |
| 12982 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12983 | { (case "(($ac_try" in |
| 12984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12985 | *) ac_try_echo=$ac_try;; |
| 12986 | esac |
| 12987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12988 | (eval "$ac_try") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12989 | ac_status=$? |
| 12990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12991 | (exit $ac_status); }; }; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12992 | ac_cv_prog_cc_c89=$ac_arg |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12993 | else |
| 12994 | echo "$as_me: failed program was:" >&5 |
| 12995 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12996 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12997 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12998 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12999 | |
| 13000 | rm -f core conftest.err conftest.$ac_objext |
| 13001 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13002 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13003 | rm -f conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13004 | CC=$ac_save_CC |
| 13005 | |
| 13006 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13007 | # AC_CACHE_VAL |
| 13008 | case "x$ac_cv_prog_cc_c89" in |
| 13009 | x) |
| 13010 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 13011 | echo "${ECHO_T}none needed" >&6; } ;; |
| 13012 | xno) |
| 13013 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 13014 | echo "${ECHO_T}unsupported" >&6; } ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13015 | *) |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13016 | CC="$CC $ac_cv_prog_cc_c89" |
| 13017 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 13018 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13019 | esac |
| 13020 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13021 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13022 | ac_ext=c |
| 13023 | ac_cpp='$CPP $CPPFLAGS' |
| 13024 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13025 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13026 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 13027 | |
| 13028 | depcc="$CC" am_compiler_list= |
| 13029 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13030 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 13031 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13032 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
| 13033 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13034 | else |
| 13035 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 13036 | # We make a subdir and do the tests there. Otherwise we can end up |
| 13037 | # making bogus files that we don't know about and never remove. For |
| 13038 | # instance it was reported that on HP-UX the gcc test will end up |
| 13039 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 13040 | # in D'. |
| 13041 | mkdir conftest.dir |
| 13042 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 13043 | # using a relative directory. |
| 13044 | cp "$am_depcomp" conftest.dir |
| 13045 | cd conftest.dir |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13046 | # We will build objects and dependencies in a subdirectory because |
| 13047 | # it helps to detect inapplicable dependency modes. For instance |
| 13048 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 13049 | # side effect of compilation, but ICC will put the dependencies in |
| 13050 | # the current directory while Tru64 will put them in the object |
| 13051 | # directory. |
| 13052 | mkdir sub |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13053 | |
| 13054 | am_cv_CC_dependencies_compiler_type=none |
| 13055 | if test "$am_compiler_list" = ""; then |
| 13056 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 13057 | fi |
| 13058 | for depmode in $am_compiler_list; do |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13059 | # Setup a source with many dependencies, because some compilers |
| 13060 | # like to wrap large dependency lists on column 80 (with \), and |
| 13061 | # we should not choose a depcomp mode which is confused by this. |
| 13062 | # |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13063 | # We need to recreate these files for each test, as the compiler may |
| 13064 | # overwrite some of them when testing with obscure command lines. |
| 13065 | # This happens at least with the AIX C compiler. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13066 | : > sub/conftest.c |
| 13067 | for i in 1 2 3 4 5 6; do |
| 13068 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 13069 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 13070 | # Solaris 8's {/usr,}/bin/sh. |
| 13071 | touch sub/conftst$i.h |
| 13072 | done |
| 13073 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13074 | |
| 13075 | case $depmode in |
| 13076 | nosideeffect) |
| 13077 | # after this tag, mechanisms are not by side-effect, so they'll |
| 13078 | # only be used when explicitly requested |
| 13079 | if test "x$enable_dependency_tracking" = xyes; then |
| 13080 | continue |
| 13081 | else |
| 13082 | break |
| 13083 | fi |
| 13084 | ;; |
| 13085 | none) break ;; |
| 13086 | esac |
| 13087 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 13088 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 13089 | # handle `-M -o', and we need to detect this. |
| 13090 | if depmode=$depmode \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13091 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| 13092 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 13093 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| 13094 | >/dev/null 2>conftest.err && |
| 13095 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 13096 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13097 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13098 | # icc doesn't choke on unknown options, it will just issue warnings |
| 13099 | # or remarks (even with -Werror). So we grep stderr for any message |
| 13100 | # that says an option was ignored or not supported. |
| 13101 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 13102 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 13103 | # The diagnosis changed in icc 8.0: |
| 13104 | # icc: Command line remark: option '-MP' not supported |
| 13105 | if (grep 'ignoring option' conftest.err || |
| 13106 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 13107 | am_cv_CC_dependencies_compiler_type=$depmode |
| 13108 | break |
| 13109 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13110 | fi |
| 13111 | done |
| 13112 | |
| 13113 | cd .. |
| 13114 | rm -rf conftest.dir |
| 13115 | else |
| 13116 | am_cv_CC_dependencies_compiler_type=none |
| 13117 | fi |
| 13118 | |
| 13119 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13120 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 13121 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13122 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 13123 | |
| 13124 | |
| 13125 | |
| 13126 | if |
| 13127 | test "x$enable_dependency_tracking" != xno \ |
| 13128 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 13129 | am__fastdepCC_TRUE= |
| 13130 | am__fastdepCC_FALSE='#' |
| 13131 | else |
| 13132 | am__fastdepCC_TRUE='#' |
| 13133 | am__fastdepCC_FALSE= |
| 13134 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13135 | |
| 13136 | |
| 13137 | ac_ext=c |
| 13138 | ac_cpp='$CPP $CPPFLAGS' |
| 13139 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13140 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13141 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13142 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 13143 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13144 | # On Suns, sometimes $CPP names a directory. |
| 13145 | if test -n "$CPP" && test -d "$CPP"; then |
| 13146 | CPP= |
| 13147 | fi |
| 13148 | if test -z "$CPP"; then |
| 13149 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 13150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13151 | else |
| 13152 | # Double quotes because CPP needs to be expanded |
| 13153 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 13154 | do |
| 13155 | ac_preproc_ok=false |
| 13156 | for ac_c_preproc_warn_flag in '' yes |
| 13157 | do |
| 13158 | # Use a header file that comes with gcc, so configuring glibc |
| 13159 | # with a fresh cross-compiler works. |
| 13160 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13161 | # <limits.h> exists even on freestanding compilers. |
| 13162 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 13163 | # not just through cpp. "Syntax error" is here to catch this case. |
| 13164 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13165 | /* confdefs.h. */ |
| 13166 | _ACEOF |
| 13167 | cat confdefs.h >>conftest.$ac_ext |
| 13168 | cat >>conftest.$ac_ext <<_ACEOF |
| 13169 | /* end confdefs.h. */ |
| 13170 | #ifdef __STDC__ |
| 13171 | # include <limits.h> |
| 13172 | #else |
| 13173 | # include <assert.h> |
| 13174 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13175 | Syntax error |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13176 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13177 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13178 | case "(($ac_try" in |
| 13179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13180 | *) ac_try_echo=$ac_try;; |
| 13181 | esac |
| 13182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13183 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13184 | ac_status=$? |
| 13185 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13186 | rm -f conftest.er1 |
| 13187 | cat conftest.err >&5 |
| 13188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13189 | (exit $ac_status); } >/dev/null; then |
| 13190 | if test -s conftest.err; then |
| 13191 | ac_cpp_err=$ac_c_preproc_warn_flag |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13192 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13193 | else |
| 13194 | ac_cpp_err= |
| 13195 | fi |
| 13196 | else |
| 13197 | ac_cpp_err=yes |
| 13198 | fi |
| 13199 | if test -z "$ac_cpp_err"; then |
| 13200 | : |
| 13201 | else |
| 13202 | echo "$as_me: failed program was:" >&5 |
| 13203 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13204 | |
| 13205 | # Broken: fails on valid input. |
| 13206 | continue |
| 13207 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13208 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13209 | rm -f conftest.err conftest.$ac_ext |
| 13210 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13211 | # OK, works on sane cases. Now check whether nonexistent headers |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13212 | # can be detected and how. |
| 13213 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13214 | /* confdefs.h. */ |
| 13215 | _ACEOF |
| 13216 | cat confdefs.h >>conftest.$ac_ext |
| 13217 | cat >>conftest.$ac_ext <<_ACEOF |
| 13218 | /* end confdefs.h. */ |
| 13219 | #include <ac_nonexistent.h> |
| 13220 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13221 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13222 | case "(($ac_try" in |
| 13223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13224 | *) ac_try_echo=$ac_try;; |
| 13225 | esac |
| 13226 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13227 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13228 | ac_status=$? |
| 13229 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13230 | rm -f conftest.er1 |
| 13231 | cat conftest.err >&5 |
| 13232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13233 | (exit $ac_status); } >/dev/null; then |
| 13234 | if test -s conftest.err; then |
| 13235 | ac_cpp_err=$ac_c_preproc_warn_flag |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13236 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13237 | else |
| 13238 | ac_cpp_err= |
| 13239 | fi |
| 13240 | else |
| 13241 | ac_cpp_err=yes |
| 13242 | fi |
| 13243 | if test -z "$ac_cpp_err"; then |
| 13244 | # Broken: success on invalid input. |
| 13245 | continue |
| 13246 | else |
| 13247 | echo "$as_me: failed program was:" >&5 |
| 13248 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13249 | |
| 13250 | # Passes both tests. |
| 13251 | ac_preproc_ok=: |
| 13252 | break |
| 13253 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13254 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13255 | rm -f conftest.err conftest.$ac_ext |
| 13256 | |
| 13257 | done |
| 13258 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 13259 | rm -f conftest.err conftest.$ac_ext |
| 13260 | if $ac_preproc_ok; then |
| 13261 | break |
| 13262 | fi |
| 13263 | |
| 13264 | done |
| 13265 | ac_cv_prog_CPP=$CPP |
| 13266 | |
| 13267 | fi |
| 13268 | CPP=$ac_cv_prog_CPP |
| 13269 | else |
| 13270 | ac_cv_prog_CPP=$CPP |
| 13271 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13272 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 13273 | echo "${ECHO_T}$CPP" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13274 | ac_preproc_ok=false |
| 13275 | for ac_c_preproc_warn_flag in '' yes |
| 13276 | do |
| 13277 | # Use a header file that comes with gcc, so configuring glibc |
| 13278 | # with a fresh cross-compiler works. |
| 13279 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13280 | # <limits.h> exists even on freestanding compilers. |
| 13281 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 13282 | # not just through cpp. "Syntax error" is here to catch this case. |
| 13283 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13284 | /* confdefs.h. */ |
| 13285 | _ACEOF |
| 13286 | cat confdefs.h >>conftest.$ac_ext |
| 13287 | cat >>conftest.$ac_ext <<_ACEOF |
| 13288 | /* end confdefs.h. */ |
| 13289 | #ifdef __STDC__ |
| 13290 | # include <limits.h> |
| 13291 | #else |
| 13292 | # include <assert.h> |
| 13293 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13294 | Syntax error |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13295 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13296 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13297 | case "(($ac_try" in |
| 13298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13299 | *) ac_try_echo=$ac_try;; |
| 13300 | esac |
| 13301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13302 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13303 | ac_status=$? |
| 13304 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13305 | rm -f conftest.er1 |
| 13306 | cat conftest.err >&5 |
| 13307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13308 | (exit $ac_status); } >/dev/null; then |
| 13309 | if test -s conftest.err; then |
| 13310 | ac_cpp_err=$ac_c_preproc_warn_flag |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13311 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13312 | else |
| 13313 | ac_cpp_err= |
| 13314 | fi |
| 13315 | else |
| 13316 | ac_cpp_err=yes |
| 13317 | fi |
| 13318 | if test -z "$ac_cpp_err"; then |
| 13319 | : |
| 13320 | else |
| 13321 | echo "$as_me: failed program was:" >&5 |
| 13322 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13323 | |
| 13324 | # Broken: fails on valid input. |
| 13325 | continue |
| 13326 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13327 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13328 | rm -f conftest.err conftest.$ac_ext |
| 13329 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13330 | # OK, works on sane cases. Now check whether nonexistent headers |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13331 | # can be detected and how. |
| 13332 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13333 | /* confdefs.h. */ |
| 13334 | _ACEOF |
| 13335 | cat confdefs.h >>conftest.$ac_ext |
| 13336 | cat >>conftest.$ac_ext <<_ACEOF |
| 13337 | /* end confdefs.h. */ |
| 13338 | #include <ac_nonexistent.h> |
| 13339 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13340 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13341 | case "(($ac_try" in |
| 13342 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13343 | *) ac_try_echo=$ac_try;; |
| 13344 | esac |
| 13345 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13346 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13347 | ac_status=$? |
| 13348 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13349 | rm -f conftest.er1 |
| 13350 | cat conftest.err >&5 |
| 13351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13352 | (exit $ac_status); } >/dev/null; then |
| 13353 | if test -s conftest.err; then |
| 13354 | ac_cpp_err=$ac_c_preproc_warn_flag |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13355 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13356 | else |
| 13357 | ac_cpp_err= |
| 13358 | fi |
| 13359 | else |
| 13360 | ac_cpp_err=yes |
| 13361 | fi |
| 13362 | if test -z "$ac_cpp_err"; then |
| 13363 | # Broken: success on invalid input. |
| 13364 | continue |
| 13365 | else |
| 13366 | echo "$as_me: failed program was:" >&5 |
| 13367 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13368 | |
| 13369 | # Passes both tests. |
| 13370 | ac_preproc_ok=: |
| 13371 | break |
| 13372 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13373 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13374 | rm -f conftest.err conftest.$ac_ext |
| 13375 | |
| 13376 | done |
| 13377 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 13378 | rm -f conftest.err conftest.$ac_ext |
| 13379 | if $ac_preproc_ok; then |
| 13380 | : |
| 13381 | else |
| 13382 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 13383 | See \`config.log' for more details." >&5 |
| 13384 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 13385 | See \`config.log' for more details." >&2;} |
| 13386 | { (exit 1); exit 1; }; } |
| 13387 | fi |
| 13388 | |
| 13389 | ac_ext=c |
| 13390 | ac_cpp='$CPP $CPPFLAGS' |
| 13391 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13392 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13393 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 13394 | |
| 13395 | # Find a good install program. We prefer a C program (faster), |
| 13396 | # so one script is as good as another. But avoid the broken or |
| 13397 | # incompatible versions: |
| 13398 | # SysV /etc/install, /usr/sbin/install |
| 13399 | # SunOS /usr/etc/install |
| 13400 | # IRIX /sbin/install |
| 13401 | # AIX /bin/install |
| 13402 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 13403 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 13404 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 13405 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13406 | # OS/2's system install, which has a completely different semantic |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13407 | # ./install, which can be erroneously created by make from ./install.sh. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13408 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 13409 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13410 | if test -z "$INSTALL"; then |
| 13411 | if test "${ac_cv_path_install+set}" = set; then |
| 13412 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13413 | else |
| 13414 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13415 | for as_dir in $PATH |
| 13416 | do |
| 13417 | IFS=$as_save_IFS |
| 13418 | test -z "$as_dir" && as_dir=. |
| 13419 | # Account for people who put trailing slashes in PATH elements. |
| 13420 | case $as_dir/ in |
| 13421 | ./ | .// | /cC/* | \ |
| 13422 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13423 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13424 | /usr/ucb/* ) ;; |
| 13425 | *) |
| 13426 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 13427 | # Don't use installbsd from OSF since it installs stuff as root |
| 13428 | # by default. |
| 13429 | for ac_prog in ginstall scoinst install; do |
| 13430 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13431 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13432 | if test $ac_prog = install && |
| 13433 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 13434 | # AIX install. It has an incompatible calling convention. |
| 13435 | : |
| 13436 | elif test $ac_prog = install && |
| 13437 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 13438 | # program-specific install script used by HP pwplus--don't use. |
| 13439 | : |
| 13440 | else |
| 13441 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 13442 | break 3 |
| 13443 | fi |
| 13444 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13445 | done |
| 13446 | done |
| 13447 | ;; |
| 13448 | esac |
| 13449 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13450 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13451 | |
| 13452 | |
| 13453 | fi |
| 13454 | if test "${ac_cv_path_install+set}" = set; then |
| 13455 | INSTALL=$ac_cv_path_install |
| 13456 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13457 | # As a last resort, use the slow shell script. Don't cache a |
| 13458 | # value for INSTALL within a source directory, because that will |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13459 | # break other packages using the cache if that directory is |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13460 | # removed, or if the value is a relative name. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13461 | INSTALL=$ac_install_sh |
| 13462 | fi |
| 13463 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13464 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 13465 | echo "${ECHO_T}$INSTALL" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13466 | |
| 13467 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 13468 | # It thinks the first close brace ends the variable substitution. |
| 13469 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 13470 | |
| 13471 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 13472 | |
| 13473 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 13474 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13475 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 13476 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13477 | LN_S=$as_ln_s |
| 13478 | if test "$LN_S" = "ln -s"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13479 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 13480 | echo "${ECHO_T}yes" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13481 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13482 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 13483 | echo "${ECHO_T}no, using $LN_S" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13484 | fi |
| 13485 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13486 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 13487 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
| 13488 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 13489 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13490 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13491 | else |
| 13492 | cat >conftest.make <<\_ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13493 | SHELL = /bin/sh |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13494 | all: |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13495 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13496 | _ACEOF |
| 13497 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13498 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 13499 | *@@@%%%=?*=@@@%%%*) |
| 13500 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 13501 | *) |
| 13502 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 13503 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13504 | rm -f conftest.make |
| 13505 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13506 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 13507 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 13508 | echo "${ECHO_T}yes" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13509 | SET_MAKE= |
| 13510 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13511 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13512 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13513 | SET_MAKE="MAKE=${MAKE-make}" |
| 13514 | fi |
| 13515 | |
| 13516 | for ac_prog in 'bison -y' byacc |
| 13517 | do |
| 13518 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 13519 | set dummy $ac_prog; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13520 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13521 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13522 | if test "${ac_cv_prog_YACC+set}" = set; then |
| 13523 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13524 | else |
| 13525 | if test -n "$YACC"; then |
| 13526 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 13527 | else |
| 13528 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13529 | for as_dir in $PATH |
| 13530 | do |
| 13531 | IFS=$as_save_IFS |
| 13532 | test -z "$as_dir" && as_dir=. |
| 13533 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13534 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13535 | ac_cv_prog_YACC="$ac_prog" |
| 13536 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13537 | break 2 |
| 13538 | fi |
| 13539 | done |
| 13540 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13541 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13542 | |
| 13543 | fi |
| 13544 | fi |
| 13545 | YACC=$ac_cv_prog_YACC |
| 13546 | if test -n "$YACC"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13547 | { echo "$as_me:$LINENO: result: $YACC" >&5 |
| 13548 | echo "${ECHO_T}$YACC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13549 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13550 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13551 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13552 | fi |
| 13553 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13554 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13555 | test -n "$YACC" && break |
| 13556 | done |
| 13557 | test -n "$YACC" || YACC="yacc" |
| 13558 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13559 | for ac_prog in flex lex |
| 13560 | do |
| 13561 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 13562 | set dummy $ac_prog; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13563 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13564 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13565 | if test "${ac_cv_prog_LEX+set}" = set; then |
| 13566 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13567 | else |
| 13568 | if test -n "$LEX"; then |
| 13569 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 13570 | else |
| 13571 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13572 | for as_dir in $PATH |
| 13573 | do |
| 13574 | IFS=$as_save_IFS |
| 13575 | test -z "$as_dir" && as_dir=. |
| 13576 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13577 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13578 | ac_cv_prog_LEX="$ac_prog" |
| 13579 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13580 | break 2 |
| 13581 | fi |
| 13582 | done |
| 13583 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13584 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13585 | |
| 13586 | fi |
| 13587 | fi |
| 13588 | LEX=$ac_cv_prog_LEX |
| 13589 | if test -n "$LEX"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13590 | { echo "$as_me:$LINENO: result: $LEX" >&5 |
| 13591 | echo "${ECHO_T}$LEX" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13592 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13593 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13594 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13595 | fi |
| 13596 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13597 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13598 | test -n "$LEX" && break |
| 13599 | done |
| 13600 | test -n "$LEX" || LEX=":" |
| 13601 | |
| 13602 | if test -z "$LEXLIB" |
| 13603 | then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13604 | { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
| 13605 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13606 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then |
| 13607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13608 | else |
| 13609 | ac_check_lib_save_LIBS=$LIBS |
| 13610 | LIBS="-lfl $LIBS" |
| 13611 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13612 | /* confdefs.h. */ |
| 13613 | _ACEOF |
| 13614 | cat confdefs.h >>conftest.$ac_ext |
| 13615 | cat >>conftest.$ac_ext <<_ACEOF |
| 13616 | /* end confdefs.h. */ |
| 13617 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13618 | /* Override any GCC internal prototype to avoid an error. |
| 13619 | Use char because int might match the return type of a GCC |
| 13620 | builtin and then its argument prototype would still apply. */ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13621 | #ifdef __cplusplus |
| 13622 | extern "C" |
| 13623 | #endif |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13624 | char yywrap (); |
| 13625 | int |
| 13626 | main () |
| 13627 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13628 | return yywrap (); |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13629 | ; |
| 13630 | return 0; |
| 13631 | } |
| 13632 | _ACEOF |
| 13633 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13634 | if { (ac_try="$ac_link" |
| 13635 | case "(($ac_try" in |
| 13636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13637 | *) ac_try_echo=$ac_try;; |
| 13638 | esac |
| 13639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13640 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13641 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13642 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13643 | rm -f conftest.er1 |
| 13644 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13646 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13647 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13648 | { (case "(($ac_try" in |
| 13649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13650 | *) ac_try_echo=$ac_try;; |
| 13651 | esac |
| 13652 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13653 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13654 | ac_status=$? |
| 13655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13656 | (exit $ac_status); }; } && |
| 13657 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13658 | { (case "(($ac_try" in |
| 13659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13660 | *) ac_try_echo=$ac_try;; |
| 13661 | esac |
| 13662 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13663 | (eval "$ac_try") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13664 | ac_status=$? |
| 13665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13666 | (exit $ac_status); }; }; then |
| 13667 | ac_cv_lib_fl_yywrap=yes |
| 13668 | else |
| 13669 | echo "$as_me: failed program was:" >&5 |
| 13670 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13671 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13672 | ac_cv_lib_fl_yywrap=no |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13673 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13674 | |
| 13675 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13676 | conftest$ac_exeext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13677 | LIBS=$ac_check_lib_save_LIBS |
| 13678 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13679 | { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
| 13680 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13681 | if test $ac_cv_lib_fl_yywrap = yes; then |
| 13682 | LEXLIB="-lfl" |
| 13683 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13684 | { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
| 13685 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13686 | if test "${ac_cv_lib_l_yywrap+set}" = set; then |
| 13687 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13688 | else |
| 13689 | ac_check_lib_save_LIBS=$LIBS |
| 13690 | LIBS="-ll $LIBS" |
| 13691 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13692 | /* confdefs.h. */ |
| 13693 | _ACEOF |
| 13694 | cat confdefs.h >>conftest.$ac_ext |
| 13695 | cat >>conftest.$ac_ext <<_ACEOF |
| 13696 | /* end confdefs.h. */ |
| 13697 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13698 | /* Override any GCC internal prototype to avoid an error. |
| 13699 | Use char because int might match the return type of a GCC |
| 13700 | builtin and then its argument prototype would still apply. */ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13701 | #ifdef __cplusplus |
| 13702 | extern "C" |
| 13703 | #endif |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13704 | char yywrap (); |
| 13705 | int |
| 13706 | main () |
| 13707 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13708 | return yywrap (); |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13709 | ; |
| 13710 | return 0; |
| 13711 | } |
| 13712 | _ACEOF |
| 13713 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13714 | if { (ac_try="$ac_link" |
| 13715 | case "(($ac_try" in |
| 13716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13717 | *) ac_try_echo=$ac_try;; |
| 13718 | esac |
| 13719 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13720 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13721 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13722 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13723 | rm -f conftest.er1 |
| 13724 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13726 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13727 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13728 | { (case "(($ac_try" in |
| 13729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13730 | *) ac_try_echo=$ac_try;; |
| 13731 | esac |
| 13732 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13733 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13734 | ac_status=$? |
| 13735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13736 | (exit $ac_status); }; } && |
| 13737 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13738 | { (case "(($ac_try" in |
| 13739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13740 | *) ac_try_echo=$ac_try;; |
| 13741 | esac |
| 13742 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13743 | (eval "$ac_try") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13744 | ac_status=$? |
| 13745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13746 | (exit $ac_status); }; }; then |
| 13747 | ac_cv_lib_l_yywrap=yes |
| 13748 | else |
| 13749 | echo "$as_me: failed program was:" >&5 |
| 13750 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13751 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13752 | ac_cv_lib_l_yywrap=no |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13753 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13754 | |
| 13755 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13756 | conftest$ac_exeext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13757 | LIBS=$ac_check_lib_save_LIBS |
| 13758 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13759 | { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
| 13760 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13761 | if test $ac_cv_lib_l_yywrap = yes; then |
| 13762 | LEXLIB="-ll" |
| 13763 | fi |
| 13764 | |
| 13765 | fi |
| 13766 | |
| 13767 | fi |
| 13768 | |
| 13769 | if test "x$LEX" != "x:"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13770 | { echo "$as_me:$LINENO: checking lex output file root" >&5 |
| 13771 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13772 | if test "${ac_cv_prog_lex_root+set}" = set; then |
| 13773 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13774 | else |
| 13775 | # The minimal lex program is just a single line: %%. But some broken lexes |
| 13776 | # (Solaris, I think it was) want two %% lines, so accommodate them. |
| 13777 | cat >conftest.l <<_ACEOF |
| 13778 | %% |
| 13779 | %% |
| 13780 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13781 | { (ac_try="$LEX conftest.l" |
| 13782 | case "(($ac_try" in |
| 13783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13784 | *) ac_try_echo=$ac_try;; |
| 13785 | esac |
| 13786 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13787 | (eval "$LEX conftest.l") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13788 | ac_status=$? |
| 13789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13790 | (exit $ac_status); } |
| 13791 | if test -f lex.yy.c; then |
| 13792 | ac_cv_prog_lex_root=lex.yy |
| 13793 | elif test -f lexyy.c; then |
| 13794 | ac_cv_prog_lex_root=lexyy |
| 13795 | else |
| 13796 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
| 13797 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
| 13798 | { (exit 1); exit 1; }; } |
| 13799 | fi |
| 13800 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13801 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
| 13802 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13803 | rm -f conftest.l |
| 13804 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
| 13805 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13806 | { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
| 13807 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13808 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
| 13809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13810 | else |
| 13811 | # POSIX says lex can declare yytext either as a pointer or an array; the |
| 13812 | # default is implementation-dependent. Figure out which it is, since |
| 13813 | # not all implementations provide the %pointer and %array declarations. |
| 13814 | ac_cv_prog_lex_yytext_pointer=no |
| 13815 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
| 13816 | ac_save_LIBS=$LIBS |
| 13817 | LIBS="$LIBS $LEXLIB" |
| 13818 | cat >conftest.$ac_ext <<_ACEOF |
| 13819 | `cat $LEX_OUTPUT_ROOT.c` |
| 13820 | _ACEOF |
| 13821 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13822 | if { (ac_try="$ac_link" |
| 13823 | case "(($ac_try" in |
| 13824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13825 | *) ac_try_echo=$ac_try;; |
| 13826 | esac |
| 13827 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13828 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13829 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13830 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13831 | rm -f conftest.er1 |
| 13832 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13834 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13835 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13836 | { (case "(($ac_try" in |
| 13837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13838 | *) ac_try_echo=$ac_try;; |
| 13839 | esac |
| 13840 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13841 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13842 | ac_status=$? |
| 13843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13844 | (exit $ac_status); }; } && |
| 13845 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13846 | { (case "(($ac_try" in |
| 13847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13848 | *) ac_try_echo=$ac_try;; |
| 13849 | esac |
| 13850 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13851 | (eval "$ac_try") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13852 | ac_status=$? |
| 13853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13854 | (exit $ac_status); }; }; then |
| 13855 | ac_cv_prog_lex_yytext_pointer=yes |
| 13856 | else |
| 13857 | echo "$as_me: failed program was:" >&5 |
| 13858 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13859 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13860 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13861 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13862 | |
| 13863 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13864 | conftest$ac_exeext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13865 | LIBS=$ac_save_LIBS |
| 13866 | rm -f "${LEX_OUTPUT_ROOT}.c" |
| 13867 | |
| 13868 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13869 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
| 13870 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13871 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
| 13872 | |
| 13873 | cat >>confdefs.h <<\_ACEOF |
| 13874 | #define YYTEXT_POINTER 1 |
| 13875 | _ACEOF |
| 13876 | |
| 13877 | fi |
| 13878 | |
| 13879 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13880 | if test "$LEX" = :; then |
| 13881 | LEX=${am_missing_run}flex |
| 13882 | fi |
Lev Walkin | c10e06c | 2005-03-30 05:14:26 +0000 | [diff] [blame] | 13883 | # Extract the first word of "ar", so it can be a program name with args. |
| 13884 | set dummy ar; ac_word=$2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13885 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13886 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Lev Walkin | c10e06c | 2005-03-30 05:14:26 +0000 | [diff] [blame] | 13887 | if test "${ac_cv_path_AR+set}" = set; then |
| 13888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13889 | else |
| 13890 | case $AR in |
| 13891 | [\\/]* | ?:[\\/]*) |
| 13892 | ac_cv_path_AR="$AR" # Let the user override the test with a path. |
| 13893 | ;; |
| 13894 | *) |
| 13895 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13896 | as_dummy="$PATH:/usr/ucb:/usr/ccs/bin" |
| 13897 | for as_dir in $as_dummy |
| 13898 | do |
| 13899 | IFS=$as_save_IFS |
| 13900 | test -z "$as_dir" && as_dir=. |
| 13901 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13902 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Lev Walkin | c10e06c | 2005-03-30 05:14:26 +0000 | [diff] [blame] | 13903 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" |
| 13904 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13905 | break 2 |
| 13906 | fi |
| 13907 | done |
| 13908 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13909 | IFS=$as_save_IFS |
Lev Walkin | c10e06c | 2005-03-30 05:14:26 +0000 | [diff] [blame] | 13910 | |
| 13911 | test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar" |
| 13912 | ;; |
| 13913 | esac |
| 13914 | fi |
| 13915 | AR=$ac_cv_path_AR |
Lev Walkin | c10e06c | 2005-03-30 05:14:26 +0000 | [diff] [blame] | 13916 | if test -n "$AR"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13917 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 13918 | echo "${ECHO_T}$AR" >&6; } |
Lev Walkin | c10e06c | 2005-03-30 05:14:26 +0000 | [diff] [blame] | 13919 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13920 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13921 | echo "${ECHO_T}no" >&6; } |
Lev Walkin | c10e06c | 2005-03-30 05:14:26 +0000 | [diff] [blame] | 13922 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13923 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13924 | |
Lev Walkin | 5f869d0 | 2004-08-23 10:41:38 +0000 | [diff] [blame] | 13925 | case "$host_os" in |
Lev Walkin | 7943230 | 2006-03-18 06:39:49 +0000 | [diff] [blame] | 13926 | cygwin) |
Lev Walkin | 59ec6ac | 2006-03-18 06:25:40 +0000 | [diff] [blame] | 13927 | case "$target" in |
Lev Walkin | 5f869d0 | 2004-08-23 10:41:38 +0000 | [diff] [blame] | 13928 | *mingw*) |
| 13929 | CC="$CC -mno-cygwin" |
| 13930 | esac |
| 13931 | ;; |
Lev Walkin | 59ec6ac | 2006-03-18 06:25:40 +0000 | [diff] [blame] | 13932 | esac |
| 13933 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13934 | # Check whether --enable-Werror was given. |
Lev Walkin | 04c2317 | 2004-09-26 14:18:32 +0000 | [diff] [blame] | 13935 | if test "${enable_Werror+set}" = set; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13936 | enableval=$enable_Werror; enable_werror=$enableval |
Lev Walkin | 04c2317 | 2004-09-26 14:18:32 +0000 | [diff] [blame] | 13937 | else |
| 13938 | enable_werror=no |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13939 | fi |
| 13940 | |
Lev Walkin | 04c2317 | 2004-09-26 14:18:32 +0000 | [diff] [blame] | 13941 | if test x$enable_werror = xyes; then |
| 13942 | ADD_CFLAGS="-Werror -W -Wpointer-arith" |
| 13943 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13944 | |
| 13945 | |
| 13946 | case "$GCC" in |
| 13947 | yes) |
| 13948 | CFLAGS="$CFLAGS -Wall" |
| 13949 | CFLAGS="$CFLAGS -Wshadow" |
| 13950 | CFLAGS="$CFLAGS -Wcast-qual" |
| 13951 | CFLAGS="$CFLAGS -Wcast-align" |
Lev Walkin | 9363674 | 2004-09-26 13:16:33 +0000 | [diff] [blame] | 13952 | CFLAGS="$CFLAGS -Wchar-subscripts" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13953 | CFLAGS="$CFLAGS -Wmissing-prototypes" |
| 13954 | CFLAGS="$CFLAGS -Wmissing-declarations" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13955 | ;; |
| 13956 | esac |
| 13957 | |
| 13958 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13959 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 13960 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13961 | if test "${ac_cv_header_stdc+set}" = set; then |
| 13962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13963 | else |
| 13964 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13965 | /* confdefs.h. */ |
| 13966 | _ACEOF |
| 13967 | cat confdefs.h >>conftest.$ac_ext |
| 13968 | cat >>conftest.$ac_ext <<_ACEOF |
| 13969 | /* end confdefs.h. */ |
| 13970 | #include <stdlib.h> |
| 13971 | #include <stdarg.h> |
| 13972 | #include <string.h> |
| 13973 | #include <float.h> |
| 13974 | |
| 13975 | int |
| 13976 | main () |
| 13977 | { |
| 13978 | |
| 13979 | ; |
| 13980 | return 0; |
| 13981 | } |
| 13982 | _ACEOF |
| 13983 | rm -f conftest.$ac_objext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13984 | if { (ac_try="$ac_compile" |
| 13985 | case "(($ac_try" in |
| 13986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13987 | *) ac_try_echo=$ac_try;; |
| 13988 | esac |
| 13989 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13990 | (eval "$ac_compile") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13991 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13992 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13993 | rm -f conftest.er1 |
| 13994 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13996 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13997 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13998 | { (case "(($ac_try" in |
| 13999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14000 | *) ac_try_echo=$ac_try;; |
| 14001 | esac |
| 14002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14003 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14004 | ac_status=$? |
| 14005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14006 | (exit $ac_status); }; } && |
| 14007 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14008 | { (case "(($ac_try" in |
| 14009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14010 | *) ac_try_echo=$ac_try;; |
| 14011 | esac |
| 14012 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14013 | (eval "$ac_try") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14014 | ac_status=$? |
| 14015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14016 | (exit $ac_status); }; }; then |
| 14017 | ac_cv_header_stdc=yes |
| 14018 | else |
| 14019 | echo "$as_me: failed program was:" >&5 |
| 14020 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14021 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14022 | ac_cv_header_stdc=no |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14023 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14024 | |
| 14025 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14026 | |
| 14027 | if test $ac_cv_header_stdc = yes; then |
| 14028 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 14029 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14030 | /* confdefs.h. */ |
| 14031 | _ACEOF |
| 14032 | cat confdefs.h >>conftest.$ac_ext |
| 14033 | cat >>conftest.$ac_ext <<_ACEOF |
| 14034 | /* end confdefs.h. */ |
| 14035 | #include <string.h> |
| 14036 | |
| 14037 | _ACEOF |
| 14038 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 14039 | $EGREP "memchr" >/dev/null 2>&1; then |
| 14040 | : |
| 14041 | else |
| 14042 | ac_cv_header_stdc=no |
| 14043 | fi |
| 14044 | rm -f conftest* |
| 14045 | |
| 14046 | fi |
| 14047 | |
| 14048 | if test $ac_cv_header_stdc = yes; then |
| 14049 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 14050 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14051 | /* confdefs.h. */ |
| 14052 | _ACEOF |
| 14053 | cat confdefs.h >>conftest.$ac_ext |
| 14054 | cat >>conftest.$ac_ext <<_ACEOF |
| 14055 | /* end confdefs.h. */ |
| 14056 | #include <stdlib.h> |
| 14057 | |
| 14058 | _ACEOF |
| 14059 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 14060 | $EGREP "free" >/dev/null 2>&1; then |
| 14061 | : |
| 14062 | else |
| 14063 | ac_cv_header_stdc=no |
| 14064 | fi |
| 14065 | rm -f conftest* |
| 14066 | |
| 14067 | fi |
| 14068 | |
| 14069 | if test $ac_cv_header_stdc = yes; then |
| 14070 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 14071 | if test "$cross_compiling" = yes; then |
| 14072 | : |
| 14073 | else |
| 14074 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14075 | /* confdefs.h. */ |
| 14076 | _ACEOF |
| 14077 | cat confdefs.h >>conftest.$ac_ext |
| 14078 | cat >>conftest.$ac_ext <<_ACEOF |
| 14079 | /* end confdefs.h. */ |
| 14080 | #include <ctype.h> |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14081 | #include <stdlib.h> |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14082 | #if ((' ' & 0x0FF) == 0x020) |
| 14083 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 14084 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 14085 | #else |
| 14086 | # define ISLOWER(c) \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14087 | (('a' <= (c) && (c) <= 'i') \ |
| 14088 | || ('j' <= (c) && (c) <= 'r') \ |
| 14089 | || ('s' <= (c) && (c) <= 'z')) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14090 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 14091 | #endif |
| 14092 | |
| 14093 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 14094 | int |
| 14095 | main () |
| 14096 | { |
| 14097 | int i; |
| 14098 | for (i = 0; i < 256; i++) |
| 14099 | if (XOR (islower (i), ISLOWER (i)) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14100 | || toupper (i) != TOUPPER (i)) |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14101 | return 2; |
| 14102 | return 0; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14103 | } |
| 14104 | _ACEOF |
| 14105 | rm -f conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14106 | if { (ac_try="$ac_link" |
| 14107 | case "(($ac_try" in |
| 14108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14109 | *) ac_try_echo=$ac_try;; |
| 14110 | esac |
| 14111 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14112 | (eval "$ac_link") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14113 | ac_status=$? |
| 14114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14115 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14116 | { (case "(($ac_try" in |
| 14117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14118 | *) ac_try_echo=$ac_try;; |
| 14119 | esac |
| 14120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14121 | (eval "$ac_try") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14122 | ac_status=$? |
| 14123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14124 | (exit $ac_status); }; }; then |
| 14125 | : |
| 14126 | else |
| 14127 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14128 | echo "$as_me: failed program was:" >&5 |
| 14129 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14130 | |
| 14131 | ( exit $ac_status ) |
| 14132 | ac_cv_header_stdc=no |
| 14133 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14134 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 14135 | fi |
| 14136 | |
| 14137 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14138 | fi |
| 14139 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14140 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 14141 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14142 | if test $ac_cv_header_stdc = yes; then |
| 14143 | |
| 14144 | cat >>confdefs.h <<\_ACEOF |
| 14145 | #define STDC_HEADERS 1 |
| 14146 | _ACEOF |
| 14147 | |
| 14148 | fi |
| 14149 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14150 | |
Lev Walkin | 79f5495 | 2004-08-13 16:58:19 +0000 | [diff] [blame] | 14151 | for ac_header in sys/param.h |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14152 | do |
| 14153 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14154 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14155 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14156 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14157 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14158 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14159 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14160 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14161 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14162 | echo "${ECHO_T}$ac_res" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14163 | else |
| 14164 | # Is the header compilable? |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14165 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 14166 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14167 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14168 | /* confdefs.h. */ |
| 14169 | _ACEOF |
| 14170 | cat confdefs.h >>conftest.$ac_ext |
| 14171 | cat >>conftest.$ac_ext <<_ACEOF |
| 14172 | /* end confdefs.h. */ |
| 14173 | $ac_includes_default |
| 14174 | #include <$ac_header> |
| 14175 | _ACEOF |
| 14176 | rm -f conftest.$ac_objext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14177 | if { (ac_try="$ac_compile" |
| 14178 | case "(($ac_try" in |
| 14179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14180 | *) ac_try_echo=$ac_try;; |
| 14181 | esac |
| 14182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14183 | (eval "$ac_compile") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14184 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14185 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14186 | rm -f conftest.er1 |
| 14187 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14189 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14190 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14191 | { (case "(($ac_try" in |
| 14192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14193 | *) ac_try_echo=$ac_try;; |
| 14194 | esac |
| 14195 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14196 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14197 | ac_status=$? |
| 14198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14199 | (exit $ac_status); }; } && |
| 14200 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14201 | { (case "(($ac_try" in |
| 14202 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14203 | *) ac_try_echo=$ac_try;; |
| 14204 | esac |
| 14205 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14206 | (eval "$ac_try") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14207 | ac_status=$? |
| 14208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14209 | (exit $ac_status); }; }; then |
| 14210 | ac_header_compiler=yes |
| 14211 | else |
| 14212 | echo "$as_me: failed program was:" >&5 |
| 14213 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14214 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14215 | ac_header_compiler=no |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14216 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14217 | |
| 14218 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14219 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14220 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14221 | |
| 14222 | # Is the header present? |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14223 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 14224 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14225 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14226 | /* confdefs.h. */ |
| 14227 | _ACEOF |
| 14228 | cat confdefs.h >>conftest.$ac_ext |
| 14229 | cat >>conftest.$ac_ext <<_ACEOF |
| 14230 | /* end confdefs.h. */ |
| 14231 | #include <$ac_header> |
| 14232 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14233 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14234 | case "(($ac_try" in |
| 14235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14236 | *) ac_try_echo=$ac_try;; |
| 14237 | esac |
| 14238 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14239 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14240 | ac_status=$? |
| 14241 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14242 | rm -f conftest.er1 |
| 14243 | cat conftest.err >&5 |
| 14244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14245 | (exit $ac_status); } >/dev/null; then |
| 14246 | if test -s conftest.err; then |
| 14247 | ac_cpp_err=$ac_c_preproc_warn_flag |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14248 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14249 | else |
| 14250 | ac_cpp_err= |
| 14251 | fi |
| 14252 | else |
| 14253 | ac_cpp_err=yes |
| 14254 | fi |
| 14255 | if test -z "$ac_cpp_err"; then |
| 14256 | ac_header_preproc=yes |
| 14257 | else |
| 14258 | echo "$as_me: failed program was:" >&5 |
| 14259 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14260 | |
| 14261 | ac_header_preproc=no |
| 14262 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14263 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14264 | rm -f conftest.err conftest.$ac_ext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14265 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14266 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14267 | |
| 14268 | # So? What about this header? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14269 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14270 | yes:no: ) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14271 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14272 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14273 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 14274 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 14275 | ac_header_preproc=yes |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14276 | ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14277 | no:yes:* ) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14278 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 14279 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14280 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 14281 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 14282 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 14283 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 14284 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 14285 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14286 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 14287 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14288 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 14289 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14290 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14291 | ;; |
| 14292 | esac |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14293 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14294 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14295 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14296 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14297 | else |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14298 | eval "$as_ac_Header=\$ac_header_preproc" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14299 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14300 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14301 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14302 | echo "${ECHO_T}$ac_res" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14303 | |
| 14304 | fi |
| 14305 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 14306 | cat >>confdefs.h <<_ACEOF |
| 14307 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 14308 | _ACEOF |
| 14309 | |
| 14310 | fi |
| 14311 | |
| 14312 | done |
| 14313 | |
| 14314 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14315 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 14316 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14317 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 14318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14319 | else |
| 14320 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 14321 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14322 | /* confdefs.h. */ |
| 14323 | _ACEOF |
| 14324 | cat confdefs.h >>conftest.$ac_ext |
| 14325 | cat >>conftest.$ac_ext <<_ACEOF |
| 14326 | /* end confdefs.h. */ |
| 14327 | #include <sys/types.h> |
| 14328 | #include <sys/param.h> |
| 14329 | |
| 14330 | int |
| 14331 | main () |
| 14332 | { |
| 14333 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 14334 | bogus endian macros |
| 14335 | #endif |
| 14336 | |
| 14337 | ; |
| 14338 | return 0; |
| 14339 | } |
| 14340 | _ACEOF |
| 14341 | rm -f conftest.$ac_objext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14342 | if { (ac_try="$ac_compile" |
| 14343 | case "(($ac_try" in |
| 14344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14345 | *) ac_try_echo=$ac_try;; |
| 14346 | esac |
| 14347 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14348 | (eval "$ac_compile") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14349 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14350 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14351 | rm -f conftest.er1 |
| 14352 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14354 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14355 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14356 | { (case "(($ac_try" in |
| 14357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14358 | *) ac_try_echo=$ac_try;; |
| 14359 | esac |
| 14360 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14361 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14362 | ac_status=$? |
| 14363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14364 | (exit $ac_status); }; } && |
| 14365 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14366 | { (case "(($ac_try" in |
| 14367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14368 | *) ac_try_echo=$ac_try;; |
| 14369 | esac |
| 14370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14371 | (eval "$ac_try") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14372 | ac_status=$? |
| 14373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14374 | (exit $ac_status); }; }; then |
| 14375 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 14376 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14377 | /* confdefs.h. */ |
| 14378 | _ACEOF |
| 14379 | cat confdefs.h >>conftest.$ac_ext |
| 14380 | cat >>conftest.$ac_ext <<_ACEOF |
| 14381 | /* end confdefs.h. */ |
| 14382 | #include <sys/types.h> |
| 14383 | #include <sys/param.h> |
| 14384 | |
| 14385 | int |
| 14386 | main () |
| 14387 | { |
| 14388 | #if BYTE_ORDER != BIG_ENDIAN |
| 14389 | not big endian |
| 14390 | #endif |
| 14391 | |
| 14392 | ; |
| 14393 | return 0; |
| 14394 | } |
| 14395 | _ACEOF |
| 14396 | rm -f conftest.$ac_objext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14397 | if { (ac_try="$ac_compile" |
| 14398 | case "(($ac_try" in |
| 14399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14400 | *) ac_try_echo=$ac_try;; |
| 14401 | esac |
| 14402 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14403 | (eval "$ac_compile") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14404 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14405 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14406 | rm -f conftest.er1 |
| 14407 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14409 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14410 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14411 | { (case "(($ac_try" in |
| 14412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14413 | *) ac_try_echo=$ac_try;; |
| 14414 | esac |
| 14415 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14416 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14417 | ac_status=$? |
| 14418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14419 | (exit $ac_status); }; } && |
| 14420 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14421 | { (case "(($ac_try" in |
| 14422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14423 | *) ac_try_echo=$ac_try;; |
| 14424 | esac |
| 14425 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14426 | (eval "$ac_try") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14427 | ac_status=$? |
| 14428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14429 | (exit $ac_status); }; }; then |
| 14430 | ac_cv_c_bigendian=yes |
| 14431 | else |
| 14432 | echo "$as_me: failed program was:" >&5 |
| 14433 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14434 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14435 | ac_cv_c_bigendian=no |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14436 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14437 | |
| 14438 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14439 | else |
| 14440 | echo "$as_me: failed program was:" >&5 |
| 14441 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14442 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14443 | # It does not; compile a test program. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14444 | if test "$cross_compiling" = yes; then |
| 14445 | # try to guess the endianness by grepping values into an object file |
| 14446 | ac_cv_c_bigendian=unknown |
| 14447 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14448 | /* confdefs.h. */ |
| 14449 | _ACEOF |
| 14450 | cat confdefs.h >>conftest.$ac_ext |
| 14451 | cat >>conftest.$ac_ext <<_ACEOF |
| 14452 | /* end confdefs.h. */ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14453 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 14454 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14455 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14456 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 14457 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14458 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 14459 | int |
| 14460 | main () |
| 14461 | { |
| 14462 | _ascii (); _ebcdic (); |
| 14463 | ; |
| 14464 | return 0; |
| 14465 | } |
| 14466 | _ACEOF |
| 14467 | rm -f conftest.$ac_objext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14468 | if { (ac_try="$ac_compile" |
| 14469 | case "(($ac_try" in |
| 14470 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14471 | *) ac_try_echo=$ac_try;; |
| 14472 | esac |
| 14473 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14474 | (eval "$ac_compile") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14475 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14476 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14477 | rm -f conftest.er1 |
| 14478 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14480 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14481 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14482 | { (case "(($ac_try" in |
| 14483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14484 | *) ac_try_echo=$ac_try;; |
| 14485 | esac |
| 14486 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14487 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14488 | ac_status=$? |
| 14489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14490 | (exit $ac_status); }; } && |
| 14491 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14492 | { (case "(($ac_try" in |
| 14493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14494 | *) ac_try_echo=$ac_try;; |
| 14495 | esac |
| 14496 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14497 | (eval "$ac_try") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14498 | ac_status=$? |
| 14499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14500 | (exit $ac_status); }; }; then |
| 14501 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 14502 | ac_cv_c_bigendian=yes |
| 14503 | fi |
| 14504 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 14505 | if test "$ac_cv_c_bigendian" = unknown; then |
| 14506 | ac_cv_c_bigendian=no |
| 14507 | else |
| 14508 | # finding both strings is unlikely to happen, but who knows? |
| 14509 | ac_cv_c_bigendian=unknown |
| 14510 | fi |
| 14511 | fi |
| 14512 | else |
| 14513 | echo "$as_me: failed program was:" >&5 |
| 14514 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14515 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14516 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14517 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14518 | |
| 14519 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14520 | else |
| 14521 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14522 | /* confdefs.h. */ |
| 14523 | _ACEOF |
| 14524 | cat confdefs.h >>conftest.$ac_ext |
| 14525 | cat >>conftest.$ac_ext <<_ACEOF |
| 14526 | /* end confdefs.h. */ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14527 | $ac_includes_default |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14528 | int |
| 14529 | main () |
| 14530 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14531 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14532 | /* Are we little or big endian? From Harbison&Steele. */ |
| 14533 | union |
| 14534 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14535 | long int l; |
| 14536 | char c[sizeof (long int)]; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14537 | } u; |
| 14538 | u.l = 1; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14539 | return u.c[sizeof (long int) - 1] == 1; |
| 14540 | |
| 14541 | ; |
| 14542 | return 0; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14543 | } |
| 14544 | _ACEOF |
| 14545 | rm -f conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14546 | if { (ac_try="$ac_link" |
| 14547 | case "(($ac_try" in |
| 14548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14549 | *) ac_try_echo=$ac_try;; |
| 14550 | esac |
| 14551 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14552 | (eval "$ac_link") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14553 | ac_status=$? |
| 14554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14555 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14556 | { (case "(($ac_try" in |
| 14557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14558 | *) ac_try_echo=$ac_try;; |
| 14559 | esac |
| 14560 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14561 | (eval "$ac_try") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14562 | ac_status=$? |
| 14563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14564 | (exit $ac_status); }; }; then |
| 14565 | ac_cv_c_bigendian=no |
| 14566 | else |
| 14567 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14568 | echo "$as_me: failed program was:" >&5 |
| 14569 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14570 | |
| 14571 | ( exit $ac_status ) |
| 14572 | ac_cv_c_bigendian=yes |
| 14573 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14574 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14575 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14576 | |
| 14577 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14578 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14579 | |
| 14580 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14581 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14582 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 14583 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14584 | case $ac_cv_c_bigendian in |
| 14585 | yes) |
| 14586 | |
| 14587 | cat >>confdefs.h <<\_ACEOF |
| 14588 | #define WORDS_BIGENDIAN 1 |
| 14589 | _ACEOF |
| 14590 | ;; |
| 14591 | no) |
| 14592 | ;; |
| 14593 | *) |
| 14594 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 14595 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 14596 | echo "$as_me: error: unknown endianness |
| 14597 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 14598 | { (exit 1); exit 1; }; } ;; |
| 14599 | esac |
| 14600 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14601 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
| 14602 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14603 | if test "${ac_cv_type_off_t+set}" = set; then |
| 14604 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14605 | else |
| 14606 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14607 | /* confdefs.h. */ |
| 14608 | _ACEOF |
| 14609 | cat confdefs.h >>conftest.$ac_ext |
| 14610 | cat >>conftest.$ac_ext <<_ACEOF |
| 14611 | /* end confdefs.h. */ |
| 14612 | $ac_includes_default |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14613 | typedef off_t ac__type_new_; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14614 | int |
| 14615 | main () |
| 14616 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14617 | if ((ac__type_new_ *) 0) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14618 | return 0; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14619 | if (sizeof (ac__type_new_)) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14620 | return 0; |
| 14621 | ; |
| 14622 | return 0; |
| 14623 | } |
| 14624 | _ACEOF |
| 14625 | rm -f conftest.$ac_objext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14626 | if { (ac_try="$ac_compile" |
| 14627 | case "(($ac_try" in |
| 14628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14629 | *) ac_try_echo=$ac_try;; |
| 14630 | esac |
| 14631 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14632 | (eval "$ac_compile") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14633 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14634 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14635 | rm -f conftest.er1 |
| 14636 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14638 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14639 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14640 | { (case "(($ac_try" in |
| 14641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14642 | *) ac_try_echo=$ac_try;; |
| 14643 | esac |
| 14644 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14645 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14646 | ac_status=$? |
| 14647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14648 | (exit $ac_status); }; } && |
| 14649 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14650 | { (case "(($ac_try" in |
| 14651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14652 | *) ac_try_echo=$ac_try;; |
| 14653 | esac |
| 14654 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14655 | (eval "$ac_try") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14656 | ac_status=$? |
| 14657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14658 | (exit $ac_status); }; }; then |
| 14659 | ac_cv_type_off_t=yes |
| 14660 | else |
| 14661 | echo "$as_me: failed program was:" >&5 |
| 14662 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14663 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14664 | ac_cv_type_off_t=no |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14665 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14666 | |
| 14667 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14668 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14669 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 14670 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14671 | if test $ac_cv_type_off_t = yes; then |
| 14672 | : |
| 14673 | else |
| 14674 | |
| 14675 | cat >>confdefs.h <<_ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14676 | #define off_t long int |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14677 | _ACEOF |
| 14678 | |
| 14679 | fi |
| 14680 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14681 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 14682 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14683 | if test "${ac_cv_type_size_t+set}" = set; then |
| 14684 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14685 | else |
| 14686 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14687 | /* confdefs.h. */ |
| 14688 | _ACEOF |
| 14689 | cat confdefs.h >>conftest.$ac_ext |
| 14690 | cat >>conftest.$ac_ext <<_ACEOF |
| 14691 | /* end confdefs.h. */ |
| 14692 | $ac_includes_default |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14693 | typedef size_t ac__type_new_; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14694 | int |
| 14695 | main () |
| 14696 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14697 | if ((ac__type_new_ *) 0) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14698 | return 0; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14699 | if (sizeof (ac__type_new_)) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14700 | return 0; |
| 14701 | ; |
| 14702 | return 0; |
| 14703 | } |
| 14704 | _ACEOF |
| 14705 | rm -f conftest.$ac_objext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14706 | if { (ac_try="$ac_compile" |
| 14707 | case "(($ac_try" in |
| 14708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14709 | *) ac_try_echo=$ac_try;; |
| 14710 | esac |
| 14711 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14712 | (eval "$ac_compile") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14713 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14714 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14715 | rm -f conftest.er1 |
| 14716 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14718 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14719 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14720 | { (case "(($ac_try" in |
| 14721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14722 | *) ac_try_echo=$ac_try;; |
| 14723 | esac |
| 14724 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14725 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14726 | ac_status=$? |
| 14727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14728 | (exit $ac_status); }; } && |
| 14729 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14730 | { (case "(($ac_try" in |
| 14731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14732 | *) ac_try_echo=$ac_try;; |
| 14733 | esac |
| 14734 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14735 | (eval "$ac_try") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14736 | ac_status=$? |
| 14737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14738 | (exit $ac_status); }; }; then |
| 14739 | ac_cv_type_size_t=yes |
| 14740 | else |
| 14741 | echo "$as_me: failed program was:" >&5 |
| 14742 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14743 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14744 | ac_cv_type_size_t=no |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14745 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14746 | |
| 14747 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14748 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14749 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 14750 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14751 | if test $ac_cv_type_size_t = yes; then |
| 14752 | : |
| 14753 | else |
| 14754 | |
| 14755 | cat >>confdefs.h <<_ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14756 | #define size_t unsigned int |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14757 | _ACEOF |
| 14758 | |
| 14759 | fi |
| 14760 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14761 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 14762 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14763 | if test "${ac_cv_struct_tm+set}" = set; then |
| 14764 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14765 | else |
| 14766 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14767 | /* confdefs.h. */ |
| 14768 | _ACEOF |
| 14769 | cat confdefs.h >>conftest.$ac_ext |
| 14770 | cat >>conftest.$ac_ext <<_ACEOF |
| 14771 | /* end confdefs.h. */ |
| 14772 | #include <sys/types.h> |
| 14773 | #include <time.h> |
| 14774 | |
| 14775 | int |
| 14776 | main () |
| 14777 | { |
| 14778 | struct tm *tp; tp->tm_sec; |
| 14779 | ; |
| 14780 | return 0; |
| 14781 | } |
| 14782 | _ACEOF |
| 14783 | rm -f conftest.$ac_objext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14784 | if { (ac_try="$ac_compile" |
| 14785 | case "(($ac_try" in |
| 14786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14787 | *) ac_try_echo=$ac_try;; |
| 14788 | esac |
| 14789 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14790 | (eval "$ac_compile") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14791 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14792 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14793 | rm -f conftest.er1 |
| 14794 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14796 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14797 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14798 | { (case "(($ac_try" in |
| 14799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14800 | *) ac_try_echo=$ac_try;; |
| 14801 | esac |
| 14802 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14803 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14804 | ac_status=$? |
| 14805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14806 | (exit $ac_status); }; } && |
| 14807 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14808 | { (case "(($ac_try" in |
| 14809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14810 | *) ac_try_echo=$ac_try;; |
| 14811 | esac |
| 14812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14813 | (eval "$ac_try") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14814 | ac_status=$? |
| 14815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14816 | (exit $ac_status); }; }; then |
| 14817 | ac_cv_struct_tm=time.h |
| 14818 | else |
| 14819 | echo "$as_me: failed program was:" >&5 |
| 14820 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14821 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14822 | ac_cv_struct_tm=sys/time.h |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14823 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14824 | |
| 14825 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14826 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14827 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 14828 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14829 | if test $ac_cv_struct_tm = sys/time.h; then |
| 14830 | |
| 14831 | cat >>confdefs.h <<\_ACEOF |
| 14832 | #define TM_IN_SYS_TIME 1 |
| 14833 | _ACEOF |
| 14834 | |
| 14835 | fi |
| 14836 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14837 | { echo "$as_me:$LINENO: checking for intmax_t" >&5 |
| 14838 | echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14839 | if test "${ac_cv_type_intmax_t+set}" = set; then |
| 14840 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14841 | else |
| 14842 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14843 | /* confdefs.h. */ |
| 14844 | _ACEOF |
| 14845 | cat confdefs.h >>conftest.$ac_ext |
| 14846 | cat >>conftest.$ac_ext <<_ACEOF |
| 14847 | /* end confdefs.h. */ |
| 14848 | $ac_includes_default |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14849 | typedef intmax_t ac__type_new_; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14850 | int |
| 14851 | main () |
| 14852 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14853 | if ((ac__type_new_ *) 0) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14854 | return 0; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14855 | if (sizeof (ac__type_new_)) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14856 | return 0; |
| 14857 | ; |
| 14858 | return 0; |
| 14859 | } |
| 14860 | _ACEOF |
| 14861 | rm -f conftest.$ac_objext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14862 | if { (ac_try="$ac_compile" |
| 14863 | case "(($ac_try" in |
| 14864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14865 | *) ac_try_echo=$ac_try;; |
| 14866 | esac |
| 14867 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14868 | (eval "$ac_compile") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14869 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14870 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14871 | rm -f conftest.er1 |
| 14872 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14874 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14875 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14876 | { (case "(($ac_try" in |
| 14877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14878 | *) ac_try_echo=$ac_try;; |
| 14879 | esac |
| 14880 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14881 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14882 | ac_status=$? |
| 14883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14884 | (exit $ac_status); }; } && |
| 14885 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14886 | { (case "(($ac_try" in |
| 14887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14888 | *) ac_try_echo=$ac_try;; |
| 14889 | esac |
| 14890 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14891 | (eval "$ac_try") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14892 | ac_status=$? |
| 14893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14894 | (exit $ac_status); }; }; then |
| 14895 | ac_cv_type_intmax_t=yes |
| 14896 | else |
| 14897 | echo "$as_me: failed program was:" >&5 |
| 14898 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14899 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14900 | ac_cv_type_intmax_t=no |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14901 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14902 | |
| 14903 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14904 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14905 | { echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5 |
| 14906 | echo "${ECHO_T}$ac_cv_type_intmax_t" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14907 | if test $ac_cv_type_intmax_t = yes; then |
| 14908 | : |
| 14909 | else |
| 14910 | |
| 14911 | cat >>confdefs.h <<_ACEOF |
| 14912 | #define intmax_t int64_t |
| 14913 | _ACEOF |
| 14914 | |
| 14915 | fi |
| 14916 | |
| 14917 | |
Lev Walkin | 058e222 | 2007-12-04 00:27:38 +0000 | [diff] [blame] | 14918 | { echo "$as_me:$LINENO: checking for library containing getopt" >&5 |
| 14919 | echo $ECHO_N "checking for library containing getopt... $ECHO_C" >&6; } |
| 14920 | if test "${ac_cv_search_getopt+set}" = set; then |
| 14921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14922 | else |
| 14923 | ac_func_search_save_LIBS=$LIBS |
| 14924 | cat >conftest.$ac_ext <<_ACEOF |
| 14925 | /* confdefs.h. */ |
| 14926 | _ACEOF |
| 14927 | cat confdefs.h >>conftest.$ac_ext |
| 14928 | cat >>conftest.$ac_ext <<_ACEOF |
| 14929 | /* end confdefs.h. */ |
| 14930 | |
| 14931 | /* Override any GCC internal prototype to avoid an error. |
| 14932 | Use char because int might match the return type of a GCC |
| 14933 | builtin and then its argument prototype would still apply. */ |
| 14934 | #ifdef __cplusplus |
| 14935 | extern "C" |
| 14936 | #endif |
| 14937 | char getopt (); |
| 14938 | int |
| 14939 | main () |
| 14940 | { |
| 14941 | return getopt (); |
| 14942 | ; |
| 14943 | return 0; |
| 14944 | } |
| 14945 | _ACEOF |
| 14946 | for ac_lib in '' iberty; do |
| 14947 | if test -z "$ac_lib"; then |
| 14948 | ac_res="none required" |
| 14949 | else |
| 14950 | ac_res=-l$ac_lib |
| 14951 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14952 | fi |
| 14953 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14954 | if { (ac_try="$ac_link" |
| 14955 | case "(($ac_try" in |
| 14956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14957 | *) ac_try_echo=$ac_try;; |
| 14958 | esac |
| 14959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14960 | (eval "$ac_link") 2>conftest.er1 |
| 14961 | ac_status=$? |
| 14962 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14963 | rm -f conftest.er1 |
| 14964 | cat conftest.err >&5 |
| 14965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14966 | (exit $ac_status); } && |
| 14967 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14968 | { (case "(($ac_try" in |
| 14969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14970 | *) ac_try_echo=$ac_try;; |
| 14971 | esac |
| 14972 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14973 | (eval "$ac_try") 2>&5 |
| 14974 | ac_status=$? |
| 14975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14976 | (exit $ac_status); }; } && |
| 14977 | { ac_try='test -s conftest$ac_exeext' |
| 14978 | { (case "(($ac_try" in |
| 14979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14980 | *) ac_try_echo=$ac_try;; |
| 14981 | esac |
| 14982 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14983 | (eval "$ac_try") 2>&5 |
| 14984 | ac_status=$? |
| 14985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14986 | (exit $ac_status); }; }; then |
| 14987 | ac_cv_search_getopt=$ac_res |
| 14988 | else |
| 14989 | echo "$as_me: failed program was:" >&5 |
| 14990 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14991 | |
| 14992 | |
| 14993 | fi |
| 14994 | |
| 14995 | rm -f core conftest.err conftest.$ac_objext \ |
| 14996 | conftest$ac_exeext |
| 14997 | if test "${ac_cv_search_getopt+set}" = set; then |
| 14998 | break |
| 14999 | fi |
| 15000 | done |
| 15001 | if test "${ac_cv_search_getopt+set}" = set; then |
| 15002 | : |
| 15003 | else |
| 15004 | ac_cv_search_getopt=no |
| 15005 | fi |
| 15006 | rm conftest.$ac_ext |
| 15007 | LIBS=$ac_func_search_save_LIBS |
| 15008 | fi |
| 15009 | { echo "$as_me:$LINENO: result: $ac_cv_search_getopt" >&5 |
| 15010 | echo "${ECHO_T}$ac_cv_search_getopt" >&6; } |
| 15011 | ac_res=$ac_cv_search_getopt |
| 15012 | if test "$ac_res" != no; then |
| 15013 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 15014 | |
| 15015 | fi |
| 15016 | |
| 15017 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15018 | |
| 15019 | |
| 15020 | for ac_func in strtoimax strtoll |
| 15021 | do |
| 15022 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15023 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15024 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 15025 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15027 | else |
| 15028 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15029 | /* confdefs.h. */ |
| 15030 | _ACEOF |
| 15031 | cat confdefs.h >>conftest.$ac_ext |
| 15032 | cat >>conftest.$ac_ext <<_ACEOF |
| 15033 | /* end confdefs.h. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15034 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 15035 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 15036 | #define $ac_func innocuous_$ac_func |
| 15037 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15038 | /* System header to define __stub macros and hopefully few prototypes, |
| 15039 | which can conflict with char $ac_func (); below. |
| 15040 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 15041 | <limits.h> exists even on freestanding compilers. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15042 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15043 | #ifdef __STDC__ |
| 15044 | # include <limits.h> |
| 15045 | #else |
| 15046 | # include <assert.h> |
| 15047 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15048 | |
| 15049 | #undef $ac_func |
| 15050 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15051 | /* Override any GCC internal prototype to avoid an error. |
| 15052 | Use char because int might match the return type of a GCC |
| 15053 | builtin and then its argument prototype would still apply. */ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15054 | #ifdef __cplusplus |
| 15055 | extern "C" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15056 | #endif |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15057 | char $ac_func (); |
| 15058 | /* The GNU C library defines this for functions which it implements |
| 15059 | to always fail with ENOSYS. Some functions are actually named |
| 15060 | something starting with __ and the normal name is an alias. */ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15061 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15062 | choke me |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15063 | #endif |
| 15064 | |
| 15065 | int |
| 15066 | main () |
| 15067 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15068 | return $ac_func (); |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15069 | ; |
| 15070 | return 0; |
| 15071 | } |
| 15072 | _ACEOF |
| 15073 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15074 | if { (ac_try="$ac_link" |
| 15075 | case "(($ac_try" in |
| 15076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15077 | *) ac_try_echo=$ac_try;; |
| 15078 | esac |
| 15079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15080 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15081 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15082 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15083 | rm -f conftest.er1 |
| 15084 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15086 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15087 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15088 | { (case "(($ac_try" in |
| 15089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15090 | *) ac_try_echo=$ac_try;; |
| 15091 | esac |
| 15092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15093 | (eval "$ac_try") 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15094 | ac_status=$? |
| 15095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15096 | (exit $ac_status); }; } && |
| 15097 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15098 | { (case "(($ac_try" in |
| 15099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15100 | *) ac_try_echo=$ac_try;; |
| 15101 | esac |
| 15102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15103 | (eval "$ac_try") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15104 | ac_status=$? |
| 15105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15106 | (exit $ac_status); }; }; then |
| 15107 | eval "$as_ac_var=yes" |
| 15108 | else |
| 15109 | echo "$as_me: failed program was:" >&5 |
| 15110 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15111 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15112 | eval "$as_ac_var=no" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15113 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15114 | |
| 15115 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15116 | conftest$ac_exeext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15117 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15118 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 15119 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15120 | echo "${ECHO_T}$ac_res" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15121 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15122 | cat >>confdefs.h <<_ACEOF |
| 15123 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15124 | _ACEOF |
| 15125 | |
| 15126 | fi |
| 15127 | done |
| 15128 | |
| 15129 | |
Lev Walkin | 49b0a3e | 2004-06-28 21:22:35 +0000 | [diff] [blame] | 15130 | for ac_func in mergesort |
| 15131 | do |
| 15132 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15133 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15134 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 15135 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Lev Walkin | 49b0a3e | 2004-06-28 21:22:35 +0000 | [diff] [blame] | 15136 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15137 | else |
| 15138 | cat >conftest.$ac_ext <<_ACEOF |
| 15139 | /* confdefs.h. */ |
| 15140 | _ACEOF |
| 15141 | cat confdefs.h >>conftest.$ac_ext |
| 15142 | cat >>conftest.$ac_ext <<_ACEOF |
| 15143 | /* end confdefs.h. */ |
| 15144 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 15145 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 15146 | #define $ac_func innocuous_$ac_func |
| 15147 | |
| 15148 | /* System header to define __stub macros and hopefully few prototypes, |
| 15149 | which can conflict with char $ac_func (); below. |
| 15150 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 15151 | <limits.h> exists even on freestanding compilers. */ |
| 15152 | |
| 15153 | #ifdef __STDC__ |
| 15154 | # include <limits.h> |
| 15155 | #else |
| 15156 | # include <assert.h> |
| 15157 | #endif |
| 15158 | |
| 15159 | #undef $ac_func |
| 15160 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15161 | /* Override any GCC internal prototype to avoid an error. |
| 15162 | Use char because int might match the return type of a GCC |
| 15163 | builtin and then its argument prototype would still apply. */ |
Lev Walkin | 49b0a3e | 2004-06-28 21:22:35 +0000 | [diff] [blame] | 15164 | #ifdef __cplusplus |
| 15165 | extern "C" |
Lev Walkin | 49b0a3e | 2004-06-28 21:22:35 +0000 | [diff] [blame] | 15166 | #endif |
Lev Walkin | 49b0a3e | 2004-06-28 21:22:35 +0000 | [diff] [blame] | 15167 | char $ac_func (); |
| 15168 | /* The GNU C library defines this for functions which it implements |
| 15169 | to always fail with ENOSYS. Some functions are actually named |
| 15170 | something starting with __ and the normal name is an alias. */ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15171 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Lev Walkin | 49b0a3e | 2004-06-28 21:22:35 +0000 | [diff] [blame] | 15172 | choke me |
Lev Walkin | 49b0a3e | 2004-06-28 21:22:35 +0000 | [diff] [blame] | 15173 | #endif |
| 15174 | |
| 15175 | int |
| 15176 | main () |
| 15177 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15178 | return $ac_func (); |
Lev Walkin | 49b0a3e | 2004-06-28 21:22:35 +0000 | [diff] [blame] | 15179 | ; |
| 15180 | return 0; |
| 15181 | } |
| 15182 | _ACEOF |
| 15183 | rm -f conftest.$ac_objext conftest$ac_exeext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15184 | if { (ac_try="$ac_link" |
| 15185 | case "(($ac_try" in |
| 15186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15187 | *) ac_try_echo=$ac_try;; |
| 15188 | esac |
| 15189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15190 | (eval "$ac_link") 2>conftest.er1 |
Lev Walkin | 49b0a3e | 2004-06-28 21:22:35 +0000 | [diff] [blame] | 15191 | ac_status=$? |
| 15192 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15193 | rm -f conftest.er1 |
| 15194 | cat conftest.err >&5 |
| 15195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15196 | (exit $ac_status); } && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15197 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15198 | { (case "(($ac_try" in |
| 15199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15200 | *) ac_try_echo=$ac_try;; |
| 15201 | esac |
| 15202 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15203 | (eval "$ac_try") 2>&5 |
Lev Walkin | 49b0a3e | 2004-06-28 21:22:35 +0000 | [diff] [blame] | 15204 | ac_status=$? |
| 15205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15206 | (exit $ac_status); }; } && |
| 15207 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15208 | { (case "(($ac_try" in |
| 15209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15210 | *) ac_try_echo=$ac_try;; |
| 15211 | esac |
| 15212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15213 | (eval "$ac_try") 2>&5 |
Lev Walkin | 49b0a3e | 2004-06-28 21:22:35 +0000 | [diff] [blame] | 15214 | ac_status=$? |
| 15215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15216 | (exit $ac_status); }; }; then |
| 15217 | eval "$as_ac_var=yes" |
| 15218 | else |
| 15219 | echo "$as_me: failed program was:" >&5 |
| 15220 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15221 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15222 | eval "$as_ac_var=no" |
Lev Walkin | 49b0a3e | 2004-06-28 21:22:35 +0000 | [diff] [blame] | 15223 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15224 | |
| 15225 | rm -f core conftest.err conftest.$ac_objext \ |
Lev Walkin | 49b0a3e | 2004-06-28 21:22:35 +0000 | [diff] [blame] | 15226 | conftest$ac_exeext conftest.$ac_ext |
| 15227 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15228 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 15229 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15230 | echo "${ECHO_T}$ac_res" >&6; } |
Lev Walkin | 49b0a3e | 2004-06-28 21:22:35 +0000 | [diff] [blame] | 15231 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15232 | cat >>confdefs.h <<_ACEOF |
| 15233 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15234 | _ACEOF |
| 15235 | |
| 15236 | fi |
| 15237 | done |
| 15238 | |
| 15239 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15240 | for ac_func in mkstemps |
| 15241 | do |
| 15242 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15243 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15244 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 15245 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15247 | else |
| 15248 | cat >conftest.$ac_ext <<_ACEOF |
| 15249 | /* confdefs.h. */ |
| 15250 | _ACEOF |
| 15251 | cat confdefs.h >>conftest.$ac_ext |
| 15252 | cat >>conftest.$ac_ext <<_ACEOF |
| 15253 | /* end confdefs.h. */ |
| 15254 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 15255 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 15256 | #define $ac_func innocuous_$ac_func |
| 15257 | |
| 15258 | /* System header to define __stub macros and hopefully few prototypes, |
| 15259 | which can conflict with char $ac_func (); below. |
| 15260 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 15261 | <limits.h> exists even on freestanding compilers. */ |
| 15262 | |
| 15263 | #ifdef __STDC__ |
| 15264 | # include <limits.h> |
| 15265 | #else |
| 15266 | # include <assert.h> |
| 15267 | #endif |
| 15268 | |
| 15269 | #undef $ac_func |
| 15270 | |
| 15271 | /* Override any GCC internal prototype to avoid an error. |
| 15272 | Use char because int might match the return type of a GCC |
| 15273 | builtin and then its argument prototype would still apply. */ |
| 15274 | #ifdef __cplusplus |
| 15275 | extern "C" |
| 15276 | #endif |
| 15277 | char $ac_func (); |
| 15278 | /* The GNU C library defines this for functions which it implements |
| 15279 | to always fail with ENOSYS. Some functions are actually named |
| 15280 | something starting with __ and the normal name is an alias. */ |
| 15281 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 15282 | choke me |
| 15283 | #endif |
| 15284 | |
| 15285 | int |
| 15286 | main () |
| 15287 | { |
| 15288 | return $ac_func (); |
| 15289 | ; |
| 15290 | return 0; |
| 15291 | } |
| 15292 | _ACEOF |
| 15293 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15294 | if { (ac_try="$ac_link" |
| 15295 | case "(($ac_try" in |
| 15296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15297 | *) ac_try_echo=$ac_try;; |
| 15298 | esac |
| 15299 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15300 | (eval "$ac_link") 2>conftest.er1 |
| 15301 | ac_status=$? |
| 15302 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15303 | rm -f conftest.er1 |
| 15304 | cat conftest.err >&5 |
| 15305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15306 | (exit $ac_status); } && |
| 15307 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15308 | { (case "(($ac_try" in |
| 15309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15310 | *) ac_try_echo=$ac_try;; |
| 15311 | esac |
| 15312 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15313 | (eval "$ac_try") 2>&5 |
| 15314 | ac_status=$? |
| 15315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15316 | (exit $ac_status); }; } && |
| 15317 | { ac_try='test -s conftest$ac_exeext' |
| 15318 | { (case "(($ac_try" in |
| 15319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15320 | *) ac_try_echo=$ac_try;; |
| 15321 | esac |
| 15322 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15323 | (eval "$ac_try") 2>&5 |
| 15324 | ac_status=$? |
| 15325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15326 | (exit $ac_status); }; }; then |
| 15327 | eval "$as_ac_var=yes" |
| 15328 | else |
| 15329 | echo "$as_me: failed program was:" >&5 |
| 15330 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15331 | |
| 15332 | eval "$as_ac_var=no" |
| 15333 | fi |
| 15334 | |
| 15335 | rm -f core conftest.err conftest.$ac_objext \ |
| 15336 | conftest$ac_exeext conftest.$ac_ext |
| 15337 | fi |
| 15338 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 15339 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15340 | echo "${ECHO_T}$ac_res" >&6; } |
| 15341 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15342 | cat >>confdefs.h <<_ACEOF |
| 15343 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15344 | _ACEOF |
| 15345 | |
| 15346 | fi |
| 15347 | done |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15348 | |
| 15349 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15350 | ac_config_headers="$ac_config_headers config.h" |
| 15351 | |
| 15352 | |
| 15353 | 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" |
| 15354 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15355 | cat >confcache <<\_ACEOF |
| 15356 | # This file is a shell script that caches the results of configure |
| 15357 | # tests run on this system so they can be shared between configure |
| 15358 | # scripts and configure runs, see configure's option --config-cache. |
| 15359 | # It is not useful on other systems. If it contains results you don't |
| 15360 | # want to keep, you may remove or edit it. |
| 15361 | # |
| 15362 | # config.status only pays attention to the cache file if you give it |
| 15363 | # the --recheck option to rerun configure. |
| 15364 | # |
| 15365 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 15366 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 15367 | # following values. |
| 15368 | |
| 15369 | _ACEOF |
| 15370 | |
| 15371 | # The following way of writing the cache mishandles newlines in values, |
| 15372 | # but we know of no workaround that is simple, portable, and efficient. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15373 | # So, we kill variables containing newlines. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15374 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 15375 | # and sets the high bit in the cache file unless we assign to the vars. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15376 | ( |
| 15377 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 15378 | eval ac_val=\$$ac_var |
| 15379 | case $ac_val in #( |
| 15380 | *${as_nl}*) |
| 15381 | case $ac_var in #( |
| 15382 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 15383 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 15384 | esac |
| 15385 | case $ac_var in #( |
| 15386 | _ | IFS | as_nl) ;; #( |
| 15387 | *) $as_unset $ac_var ;; |
| 15388 | esac ;; |
| 15389 | esac |
| 15390 | done |
| 15391 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15392 | (set) 2>&1 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15393 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 15394 | *${as_nl}ac_space=\ *) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15395 | # `set' does not quote correctly, so add quotes (double-quote |
| 15396 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 15397 | sed -n \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15398 | "s/'/'\\\\''/g; |
| 15399 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15400 | ;; #( |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15401 | *) |
| 15402 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15403 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15404 | ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15405 | esac | |
| 15406 | sort |
| 15407 | ) | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15408 | sed ' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15409 | /^ac_cv_env_/b end |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15410 | t clear |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15411 | :clear |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15412 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 15413 | t end |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15414 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 15415 | :end' >>confcache |
| 15416 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 15417 | if test -w "$cache_file"; then |
| 15418 | test "x$cache_file" != "x/dev/null" && |
| 15419 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 15420 | echo "$as_me: updating cache $cache_file" >&6;} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15421 | cat confcache >$cache_file |
| 15422 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15423 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 15424 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15425 | fi |
| 15426 | fi |
| 15427 | rm -f confcache |
| 15428 | |
| 15429 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 15430 | # Let make expand exec_prefix. |
| 15431 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 15432 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15433 | DEFS=-DHAVE_CONFIG_H |
| 15434 | |
| 15435 | ac_libobjs= |
| 15436 | ac_ltlibobjs= |
| 15437 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 15438 | # 1. Remove the extension, and $U if already installed. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15439 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 15440 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 15441 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 15442 | # will be set to the directory where LIBOBJS objects are built. |
| 15443 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 15444 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15445 | done |
| 15446 | LIBOBJS=$ac_libobjs |
| 15447 | |
| 15448 | LTLIBOBJS=$ac_ltlibobjs |
| 15449 | |
| 15450 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15451 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
| 15452 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. |
| 15453 | Usually this means the macro was only invoked conditionally." >&5 |
| 15454 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. |
| 15455 | Usually this means the macro was only invoked conditionally." >&2;} |
| 15456 | { (exit 1); exit 1; }; } |
| 15457 | fi |
| 15458 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 15459 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
| 15460 | Usually this means the macro was only invoked conditionally." >&5 |
| 15461 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
| 15462 | Usually this means the macro was only invoked conditionally." >&2;} |
| 15463 | { (exit 1); exit 1; }; } |
| 15464 | fi |
| 15465 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 15466 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
| 15467 | Usually this means the macro was only invoked conditionally." >&5 |
| 15468 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
| 15469 | Usually this means the macro was only invoked conditionally." >&2;} |
| 15470 | { (exit 1); exit 1; }; } |
| 15471 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15472 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 15473 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
| 15474 | Usually this means the macro was only invoked conditionally." >&5 |
| 15475 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
| 15476 | Usually this means the macro was only invoked conditionally." >&2;} |
| 15477 | { (exit 1); exit 1; }; } |
| 15478 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15479 | |
| 15480 | : ${CONFIG_STATUS=./config.status} |
| 15481 | ac_clean_files_save=$ac_clean_files |
| 15482 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 15483 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 15484 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 15485 | cat >$CONFIG_STATUS <<_ACEOF |
| 15486 | #! $SHELL |
| 15487 | # Generated by $as_me. |
| 15488 | # Run this file to recreate the current configuration. |
| 15489 | # Compiler output produced by configure, useful for debugging |
| 15490 | # configure, is in config.log if it exists. |
| 15491 | |
| 15492 | debug=false |
| 15493 | ac_cs_recheck=false |
| 15494 | ac_cs_silent=false |
| 15495 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 15496 | _ACEOF |
| 15497 | |
| 15498 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15499 | ## --------------------- ## |
| 15500 | ## M4sh Initialization. ## |
| 15501 | ## --------------------- ## |
| 15502 | |
| 15503 | # Be Bourne compatible |
| 15504 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 15505 | emulate sh |
| 15506 | NULLCMD=: |
| 15507 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 15508 | # is contrary to our usage. Disable this feature. |
| 15509 | alias -g '${1+"$@"}'='"$@"' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15510 | setopt NO_GLOB_SUBST |
| 15511 | else |
| 15512 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15513 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15514 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15515 | DUALCASE=1; export DUALCASE # for MKS sh |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15516 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15517 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15518 | # PATH needs CR |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15519 | # Avoid depending upon Character Ranges. |
| 15520 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 15521 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 15522 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 15523 | as_cr_digits='0123456789' |
| 15524 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 15525 | |
| 15526 | # The user is always right. |
| 15527 | if test "${PATH_SEPARATOR+set}" != set; then |
| 15528 | echo "#! /bin/sh" >conf$$.sh |
| 15529 | echo "exit 0" >>conf$$.sh |
| 15530 | chmod +x conf$$.sh |
| 15531 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 15532 | PATH_SEPARATOR=';' |
| 15533 | else |
| 15534 | PATH_SEPARATOR=: |
| 15535 | fi |
| 15536 | rm -f conf$$.sh |
| 15537 | fi |
| 15538 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15539 | # Support unset when possible. |
| 15540 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 15541 | as_unset=unset |
| 15542 | else |
| 15543 | as_unset=false |
| 15544 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15545 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15546 | |
| 15547 | # IFS |
| 15548 | # We need space, tab and new line, in precisely that order. Quoting is |
| 15549 | # there to prevent editors from complaining about space-tab. |
| 15550 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 15551 | # splitting by setting IFS to empty value.) |
| 15552 | as_nl=' |
| 15553 | ' |
| 15554 | IFS=" "" $as_nl" |
| 15555 | |
| 15556 | # Find who we are. Look in the path if we contain no directory separator. |
| 15557 | case $0 in |
| 15558 | *[\\/]* ) as_myself=$0 ;; |
| 15559 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15560 | for as_dir in $PATH |
| 15561 | do |
| 15562 | IFS=$as_save_IFS |
| 15563 | test -z "$as_dir" && as_dir=. |
| 15564 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 15565 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15566 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15567 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15568 | ;; |
| 15569 | esac |
| 15570 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 15571 | # in which case we are not to be found in the path. |
| 15572 | if test "x$as_myself" = x; then |
| 15573 | as_myself=$0 |
| 15574 | fi |
| 15575 | if test ! -f "$as_myself"; then |
| 15576 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 15577 | { (exit 1); exit 1; } |
| 15578 | fi |
| 15579 | |
| 15580 | # Work around bugs in pre-3.0 UWIN ksh. |
| 15581 | for as_var in ENV MAIL MAILPATH |
| 15582 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 15583 | done |
| 15584 | PS1='$ ' |
| 15585 | PS2='> ' |
| 15586 | PS4='+ ' |
| 15587 | |
| 15588 | # NLS nuisances. |
| 15589 | for as_var in \ |
| 15590 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 15591 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 15592 | LC_TELEPHONE LC_TIME |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15593 | do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15594 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 15595 | eval $as_var=C; export $as_var |
| 15596 | else |
| 15597 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 15598 | fi |
| 15599 | done |
| 15600 | |
| 15601 | # Required to use basename. |
| 15602 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 15603 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 15604 | as_expr=expr |
| 15605 | else |
| 15606 | as_expr=false |
| 15607 | fi |
| 15608 | |
| 15609 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 15610 | as_basename=basename |
| 15611 | else |
| 15612 | as_basename=false |
| 15613 | fi |
| 15614 | |
| 15615 | |
| 15616 | # Name of the executable. |
| 15617 | as_me=`$as_basename -- "$0" || |
| 15618 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 15619 | X"$0" : 'X\(//\)$' \| \ |
| 15620 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 15621 | echo X/"$0" | |
| 15622 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 15623 | s//\1/ |
| 15624 | q |
| 15625 | } |
| 15626 | /^X\/\(\/\/\)$/{ |
| 15627 | s//\1/ |
| 15628 | q |
| 15629 | } |
| 15630 | /^X\/\(\/\).*/{ |
| 15631 | s//\1/ |
| 15632 | q |
| 15633 | } |
| 15634 | s/.*/./; q'` |
| 15635 | |
| 15636 | # CDPATH. |
| 15637 | $as_unset CDPATH |
| 15638 | |
| 15639 | |
| 15640 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15641 | as_lineno_1=$LINENO |
| 15642 | as_lineno_2=$LINENO |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15643 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15644 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15645 | |
| 15646 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 15647 | # uniformly replaced by the line number. The first 'sed' inserts a |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15648 | # line-number line after each line using $LINENO; the second 'sed' |
| 15649 | # does the real work. The second script uses 'N' to pair each |
| 15650 | # line-number line with the line containing $LINENO, and appends |
| 15651 | # trailing '-' during substitution so that $LINENO is not a special |
| 15652 | # case at line end. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15653 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15654 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 15655 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 15656 | sed -n ' |
| 15657 | p |
| 15658 | /[$]LINENO/= |
| 15659 | ' <$as_myself | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15660 | sed ' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15661 | s/[$]LINENO.*/&-/ |
| 15662 | t lineno |
| 15663 | b |
| 15664 | :lineno |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15665 | N |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15666 | :loop |
| 15667 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15668 | t loop |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15669 | s/-\n.*// |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15670 | ' >$as_me.lineno && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15671 | chmod +x "$as_me.lineno" || |
| 15672 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15673 | { (exit 1); exit 1; }; } |
| 15674 | |
| 15675 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 15676 | # (the dirname of $[0] is not the place where we might find the |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15677 | # original and so on. Autoconf is especially sensitive to this). |
| 15678 | . "./$as_me.lineno" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15679 | # Exit status is that of the last command. |
| 15680 | exit |
| 15681 | } |
| 15682 | |
| 15683 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15684 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 15685 | as_dirname=dirname |
| 15686 | else |
| 15687 | as_dirname=false |
| 15688 | fi |
| 15689 | |
| 15690 | ECHO_C= ECHO_N= ECHO_T= |
| 15691 | case `echo -n x` in |
| 15692 | -n*) |
| 15693 | case `echo 'x\c'` in |
| 15694 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 15695 | *) ECHO_C='\c';; |
| 15696 | esac;; |
| 15697 | *) |
| 15698 | ECHO_N='-n';; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15699 | esac |
| 15700 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15701 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 15702 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15703 | as_expr=expr |
| 15704 | else |
| 15705 | as_expr=false |
| 15706 | fi |
| 15707 | |
| 15708 | rm -f conf$$ conf$$.exe conf$$.file |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15709 | if test -d conf$$.dir; then |
| 15710 | rm -f conf$$.dir/conf$$.file |
| 15711 | else |
| 15712 | rm -f conf$$.dir |
| 15713 | mkdir conf$$.dir |
| 15714 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15715 | echo >conf$$.file |
| 15716 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15717 | as_ln_s='ln -s' |
| 15718 | # ... but there are two gotchas: |
| 15719 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 15720 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 15721 | # In both cases, we have to default to `cp -p'. |
| 15722 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15723 | as_ln_s='cp -p' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15724 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 15725 | as_ln_s=ln |
| 15726 | else |
| 15727 | as_ln_s='cp -p' |
| 15728 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15729 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 15730 | rmdir conf$$.dir 2>/dev/null |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15731 | |
| 15732 | if mkdir -p . 2>/dev/null; then |
| 15733 | as_mkdir_p=: |
| 15734 | else |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15735 | test -d ./-p && rmdir ./-p |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15736 | as_mkdir_p=false |
| 15737 | fi |
| 15738 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15739 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 15740 | # systems may use methods other than mode bits to determine executability. |
| 15741 | cat >conf$$.file <<_ASEOF |
| 15742 | #! /bin/sh |
| 15743 | exit 0 |
| 15744 | _ASEOF |
| 15745 | chmod +x conf$$.file |
| 15746 | if test -x conf$$.file >/dev/null 2>&1; then |
| 15747 | as_executable_p="test -x" |
| 15748 | else |
| 15749 | as_executable_p=: |
| 15750 | fi |
| 15751 | rm -f conf$$.file |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15752 | |
| 15753 | # Sed expression to map a string onto a valid CPP name. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15754 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15755 | |
| 15756 | # Sed expression to map a string onto a valid variable name. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15757 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15758 | |
| 15759 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15760 | exec 6>&1 |
| 15761 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15762 | # Save the log message, to keep $[0] and so on meaningful, and to |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15763 | # report actual input values of CONFIG_FILES etc. instead of their |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15764 | # values after options handling. |
| 15765 | ac_log=" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15766 | This file was extended by $as_me, which was |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15767 | generated by GNU Autoconf 2.60. Invocation command line was |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15768 | |
| 15769 | CONFIG_FILES = $CONFIG_FILES |
| 15770 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 15771 | CONFIG_LINKS = $CONFIG_LINKS |
| 15772 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 15773 | $ $0 $@ |
| 15774 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15775 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 15776 | " |
| 15777 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15778 | _ACEOF |
| 15779 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15780 | cat >>$CONFIG_STATUS <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15781 | # Files that config.status was made for. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15782 | config_files="$ac_config_files" |
| 15783 | config_headers="$ac_config_headers" |
| 15784 | config_commands="$ac_config_commands" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15785 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15786 | _ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15787 | |
| 15788 | cat >>$CONFIG_STATUS <<\_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15789 | ac_cs_usage="\ |
| 15790 | \`$as_me' instantiates files from templates according to the |
| 15791 | current configuration. |
| 15792 | |
| 15793 | Usage: $0 [OPTIONS] [FILE]... |
| 15794 | |
| 15795 | -h, --help print this help, then exit |
| 15796 | -V, --version print version number, then exit |
| 15797 | -q, --quiet do not print progress messages |
| 15798 | -d, --debug don't remove temporary files |
| 15799 | --recheck update $as_me by reconfiguring in the same conditions |
| 15800 | --file=FILE[:TEMPLATE] |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15801 | instantiate the configuration file FILE |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15802 | --header=FILE[:TEMPLATE] |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15803 | instantiate the configuration header FILE |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15804 | |
| 15805 | Configuration files: |
| 15806 | $config_files |
| 15807 | |
| 15808 | Configuration headers: |
| 15809 | $config_headers |
| 15810 | |
| 15811 | Configuration commands: |
| 15812 | $config_commands |
| 15813 | |
| 15814 | Report bugs to <bug-autoconf@gnu.org>." |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15815 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15816 | _ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15817 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15818 | ac_cs_version="\\ |
| 15819 | config.status |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15820 | configured by $0, generated by GNU Autoconf 2.60, |
| 15821 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15822 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15823 | Copyright (C) 2006 Free Software Foundation, Inc. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15824 | This config.status script is free software; the Free Software Foundation |
| 15825 | gives unlimited permission to copy, distribute and modify it." |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15826 | |
| 15827 | ac_pwd='$ac_pwd' |
| 15828 | srcdir='$srcdir' |
| 15829 | INSTALL='$INSTALL' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15830 | _ACEOF |
| 15831 | |
| 15832 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15833 | # If no file are specified by the user, then we need to provide default |
| 15834 | # value. By we need to know if files were specified by the user. |
| 15835 | ac_need_defaults=: |
| 15836 | while test $# != 0 |
| 15837 | do |
| 15838 | case $1 in |
| 15839 | --*=*) |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15840 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 15841 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15842 | ac_shift=: |
| 15843 | ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15844 | *) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15845 | ac_option=$1 |
| 15846 | ac_optarg=$2 |
| 15847 | ac_shift=shift |
| 15848 | ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15849 | esac |
| 15850 | |
| 15851 | case $ac_option in |
| 15852 | # Handling of the options. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15853 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 15854 | ac_cs_recheck=: ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15855 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 15856 | echo "$ac_cs_version"; exit ;; |
| 15857 | --debug | --debu | --deb | --de | --d | -d ) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15858 | debug=: ;; |
| 15859 | --file | --fil | --fi | --f ) |
| 15860 | $ac_shift |
| 15861 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 15862 | ac_need_defaults=false;; |
| 15863 | --header | --heade | --head | --hea ) |
| 15864 | $ac_shift |
| 15865 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
| 15866 | ac_need_defaults=false;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15867 | --he | --h) |
| 15868 | # Conflict between --help and --header |
| 15869 | { echo "$as_me: error: ambiguous option: $1 |
| 15870 | Try \`$0 --help' for more information." >&2 |
| 15871 | { (exit 1); exit 1; }; };; |
| 15872 | --help | --hel | -h ) |
| 15873 | echo "$ac_cs_usage"; exit ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15874 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 15875 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 15876 | ac_cs_silent=: ;; |
| 15877 | |
| 15878 | # This is an error. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15879 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 15880 | Try \`$0 --help' for more information." >&2 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15881 | { (exit 1); exit 1; }; } ;; |
| 15882 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15883 | *) ac_config_targets="$ac_config_targets $1" |
| 15884 | ac_need_defaults=false ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15885 | |
| 15886 | esac |
| 15887 | shift |
| 15888 | done |
| 15889 | |
| 15890 | ac_configure_extra_args= |
| 15891 | |
| 15892 | if $ac_cs_silent; then |
| 15893 | exec 6>/dev/null |
| 15894 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 15895 | fi |
| 15896 | |
| 15897 | _ACEOF |
| 15898 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15899 | if \$ac_cs_recheck; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15900 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 15901 | CONFIG_SHELL=$SHELL |
| 15902 | export CONFIG_SHELL |
| 15903 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15904 | fi |
| 15905 | |
| 15906 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15907 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15908 | exec 5>>config.log |
| 15909 | { |
| 15910 | echo |
| 15911 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 15912 | ## Running $as_me. ## |
| 15913 | _ASBOX |
| 15914 | echo "$ac_log" |
| 15915 | } >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15916 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15917 | _ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15918 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15919 | # |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15920 | # INIT-COMMANDS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15921 | # |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15922 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15923 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 15924 | |
| 15925 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 15926 | # if CDPATH is set. |
| 15927 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 15928 | |
| 15929 | sed_quote_subst='$sed_quote_subst' |
| 15930 | double_quote_subst='$double_quote_subst' |
| 15931 | delay_variable_subst='$delay_variable_subst' |
| 15932 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
| 15933 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' |
| 15934 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' |
| 15935 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' |
| 15936 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' |
| 15937 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' |
| 15938 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
| 15939 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' |
| 15940 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
| 15941 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' |
| 15942 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' |
| 15943 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' |
| 15944 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' |
| 15945 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' |
| 15946 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' |
| 15947 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' |
| 15948 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' |
| 15949 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' |
| 15950 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' |
| 15951 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' |
| 15952 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' |
| 15953 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' |
| 15954 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' |
| 15955 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' |
| 15956 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' |
| 15957 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' |
| 15958 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' |
| 15959 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' |
| 15960 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' |
| 15961 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' |
| 15962 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' |
| 15963 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' |
| 15964 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' |
| 15965 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' |
| 15966 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' |
| 15967 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' |
| 15968 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' |
| 15969 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' |
| 15970 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' |
| 15971 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' |
| 15972 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' |
| 15973 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' |
| 15974 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' |
| 15975 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' |
| 15976 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 15977 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 15978 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 15979 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' |
| 15980 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' |
| 15981 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' |
| 15982 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' |
| 15983 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' |
| 15984 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' |
| 15985 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' |
| 15986 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
| 15987 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' |
| 15988 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 15989 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' |
| 15990 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
| 15991 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' |
| 15992 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' |
| 15993 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' |
| 15994 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' |
| 15995 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' |
| 15996 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' |
| 15997 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' |
| 15998 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' |
| 15999 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' |
| 16000 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' |
| 16001 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' |
| 16002 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' |
| 16003 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' |
| 16004 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' |
| 16005 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' |
| 16006 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 16007 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' |
| 16008 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' |
| 16009 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 16010 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 16011 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' |
| 16012 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' |
| 16013 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 16014 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 16015 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 16016 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' |
| 16017 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 16018 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' |
| 16019 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 16020 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 16021 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 16022 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' |
| 16023 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
| 16024 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' |
| 16025 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' |
| 16026 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' |
| 16027 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 16028 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' |
| 16029 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' |
| 16030 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' |
| 16031 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' |
| 16032 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' |
| 16033 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' |
| 16034 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' |
| 16035 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' |
| 16036 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' |
| 16037 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 16038 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' |
| 16039 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' |
| 16040 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' |
| 16041 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' |
| 16042 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' |
| 16043 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 16044 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' |
| 16045 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' |
| 16046 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' |
| 16047 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' |
| 16048 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' |
| 16049 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 16050 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 16051 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' |
| 16052 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' |
| 16053 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' |
| 16054 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' |
| 16055 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' |
| 16056 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
| 16057 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' |
| 16058 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' |
| 16059 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' |
| 16060 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' |
| 16061 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' |
| 16062 | |
| 16063 | LTCC='$LTCC' |
| 16064 | LTCFLAGS='$LTCFLAGS' |
| 16065 | compiler='$compiler_DEFAULT' |
| 16066 | |
| 16067 | # A function that is used when there is no print builtin or printf. |
| 16068 | func_fallback_echo () |
| 16069 | { |
| 16070 | eval 'cat <<_LTECHO_EOF |
| 16071 | \$1 |
| 16072 | _LTECHO_EOF' |
| 16073 | } |
| 16074 | |
| 16075 | # Quote evaled strings. |
| 16076 | for var in SHELL \ |
| 16077 | ECHO \ |
| 16078 | SED \ |
| 16079 | GREP \ |
| 16080 | EGREP \ |
| 16081 | FGREP \ |
| 16082 | LD \ |
| 16083 | NM \ |
| 16084 | LN_S \ |
| 16085 | lt_SP2NL \ |
| 16086 | lt_NL2SP \ |
| 16087 | reload_flag \ |
| 16088 | OBJDUMP \ |
| 16089 | deplibs_check_method \ |
| 16090 | file_magic_cmd \ |
| 16091 | file_magic_glob \ |
| 16092 | want_nocaseglob \ |
| 16093 | DLLTOOL \ |
| 16094 | sharedlib_from_linklib_cmd \ |
| 16095 | AR \ |
| 16096 | AR_FLAGS \ |
| 16097 | archiver_list_spec \ |
| 16098 | STRIP \ |
| 16099 | RANLIB \ |
| 16100 | CC \ |
| 16101 | CFLAGS \ |
| 16102 | compiler \ |
| 16103 | lt_cv_sys_global_symbol_pipe \ |
| 16104 | lt_cv_sys_global_symbol_to_cdecl \ |
| 16105 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 16106 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
| 16107 | nm_file_list_spec \ |
| 16108 | lt_prog_compiler_no_builtin_flag \ |
| 16109 | lt_prog_compiler_pic \ |
| 16110 | lt_prog_compiler_wl \ |
| 16111 | lt_prog_compiler_static \ |
| 16112 | lt_cv_prog_compiler_c_o \ |
| 16113 | need_locks \ |
| 16114 | MANIFEST_TOOL \ |
| 16115 | DSYMUTIL \ |
| 16116 | NMEDIT \ |
| 16117 | LIPO \ |
| 16118 | OTOOL \ |
| 16119 | OTOOL64 \ |
| 16120 | shrext_cmds \ |
| 16121 | export_dynamic_flag_spec \ |
| 16122 | whole_archive_flag_spec \ |
| 16123 | compiler_needs_object \ |
| 16124 | with_gnu_ld \ |
| 16125 | allow_undefined_flag \ |
| 16126 | no_undefined_flag \ |
| 16127 | hardcode_libdir_flag_spec \ |
| 16128 | hardcode_libdir_flag_spec_ld \ |
| 16129 | hardcode_libdir_separator \ |
| 16130 | exclude_expsyms \ |
| 16131 | include_expsyms \ |
| 16132 | file_list_spec \ |
| 16133 | variables_saved_for_relink \ |
| 16134 | libname_spec \ |
| 16135 | library_names_spec \ |
| 16136 | soname_spec \ |
| 16137 | install_override_mode \ |
| 16138 | finish_eval \ |
| 16139 | old_striplib \ |
| 16140 | striplib; do |
| 16141 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 16142 | *[\\\\\\\`\\"\\\$]*) |
| 16143 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
| 16144 | ;; |
| 16145 | *) |
| 16146 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 16147 | ;; |
| 16148 | esac |
| 16149 | done |
| 16150 | |
| 16151 | # Double-quote double-evaled strings. |
| 16152 | for var in reload_cmds \ |
| 16153 | old_postinstall_cmds \ |
| 16154 | old_postuninstall_cmds \ |
| 16155 | old_archive_cmds \ |
| 16156 | extract_expsyms_cmds \ |
| 16157 | old_archive_from_new_cmds \ |
| 16158 | old_archive_from_expsyms_cmds \ |
| 16159 | archive_cmds \ |
| 16160 | archive_expsym_cmds \ |
| 16161 | module_cmds \ |
| 16162 | module_expsym_cmds \ |
| 16163 | export_symbols_cmds \ |
| 16164 | prelink_cmds \ |
| 16165 | postlink_cmds \ |
| 16166 | postinstall_cmds \ |
| 16167 | postuninstall_cmds \ |
| 16168 | finish_cmds \ |
| 16169 | sys_lib_search_path_spec \ |
| 16170 | sys_lib_dlsearch_path_spec; do |
| 16171 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 16172 | *[\\\\\\\`\\"\\\$]*) |
| 16173 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
| 16174 | ;; |
| 16175 | *) |
| 16176 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 16177 | ;; |
| 16178 | esac |
| 16179 | done |
| 16180 | |
| 16181 | ac_aux_dir='$ac_aux_dir' |
| 16182 | xsi_shell='$xsi_shell' |
| 16183 | lt_shell_append='$lt_shell_append' |
| 16184 | |
| 16185 | # See if we are running on zsh, and set the options which allow our |
| 16186 | # commands through without removal of \ escapes INIT. |
| 16187 | if test -n "\${ZSH_VERSION+set}" ; then |
| 16188 | setopt NO_GLOB_SUBST |
| 16189 | fi |
| 16190 | |
| 16191 | |
| 16192 | PACKAGE='$PACKAGE' |
| 16193 | VERSION='$VERSION' |
| 16194 | TIMESTAMP='$TIMESTAMP' |
| 16195 | RM='$RM' |
| 16196 | ofile='$ofile' |
| 16197 | |
| 16198 | |
| 16199 | |
| 16200 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16201 | _ACEOF |
| 16202 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16203 | cat >>$CONFIG_STATUS <<\_ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16204 | |
| 16205 | # Handling of arguments. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16206 | for ac_config_target in $ac_config_targets |
| 16207 | do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16208 | case $ac_config_target in |
| 16209 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 16210 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16211 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
| 16212 | "skeletons/standard-modules/Makefile") CONFIG_FILES="$CONFIG_FILES skeletons/standard-modules/Makefile" ;; |
| 16213 | "skeletons/tests/Makefile") CONFIG_FILES="$CONFIG_FILES skeletons/tests/Makefile" ;; |
| 16214 | "libasn1compiler/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1compiler/Makefile" ;; |
| 16215 | "libasn1parser/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1parser/Makefile" ;; |
| 16216 | "libasn1print/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1print/Makefile" ;; |
| 16217 | "asn1c/webcgi/Makefile") CONFIG_FILES="$CONFIG_FILES asn1c/webcgi/Makefile" ;; |
| 16218 | "asn1c/tests/Makefile") CONFIG_FILES="$CONFIG_FILES asn1c/tests/Makefile" ;; |
| 16219 | "libasn1fix/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1fix/Makefile" ;; |
| 16220 | "skeletons/Makefile") CONFIG_FILES="$CONFIG_FILES skeletons/Makefile" ;; |
| 16221 | "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; |
| 16222 | "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; |
| 16223 | "asn1c/Makefile") CONFIG_FILES="$CONFIG_FILES asn1c/Makefile" ;; |
| 16224 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
| 16225 | "asn1c.spec") CONFIG_FILES="$CONFIG_FILES asn1c.spec" ;; |
| 16226 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 16227 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16228 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 16229 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 16230 | { (exit 1); exit 1; }; };; |
| 16231 | esac |
| 16232 | done |
| 16233 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16234 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16235 | # If the user did not use the arguments to specify the items to instantiate, |
| 16236 | # then the envvar interface is used. Set only those that are not. |
| 16237 | # We use the long form for the default assignment because of an extremely |
| 16238 | # bizarre bug on SunOS 4.1.3. |
| 16239 | if $ac_need_defaults; then |
| 16240 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 16241 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 16242 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 16243 | fi |
| 16244 | |
| 16245 | # Have a temporary directory for convenience. Make it in the build tree |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16246 | # simply because there is no reason against having it here, and in addition, |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16247 | # creating and moving files from /tmp can sometimes cause problems. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16248 | # Hook for its removal unless debugging. |
| 16249 | # Note that there is a small window in which the directory will not be cleaned: |
| 16250 | # after its creation but before its name has been assigned to `$tmp'. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16251 | $debug || |
| 16252 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16253 | tmp= |
| 16254 | trap 'exit_status=$? |
| 16255 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 16256 | ' 0 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16257 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 16258 | } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16259 | # Create a (secure) tmp directory for tmp files. |
| 16260 | |
| 16261 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16262 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16263 | test -n "$tmp" && test -d "$tmp" |
| 16264 | } || |
| 16265 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16266 | tmp=./conf$$-$RANDOM |
| 16267 | (umask 077 && mkdir "$tmp") |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16268 | } || |
| 16269 | { |
| 16270 | echo "$me: cannot create a temporary directory in ." >&2 |
| 16271 | { (exit 1); exit 1; } |
| 16272 | } |
| 16273 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16274 | # |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16275 | # Set up the sed scripts for CONFIG_FILES section. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16276 | # |
| 16277 | |
| 16278 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 16279 | # This happens for instance when ./config.status config.h |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16280 | if test -n "$CONFIG_FILES"; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16281 | |
| 16282 | _ACEOF |
| 16283 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16284 | |
| 16285 | |
| 16286 | ac_delim='%!_!# ' |
| 16287 | for ac_last_try in false false false false false :; do |
| 16288 | cat >conf$$subs.sed <<_ACEOF |
| 16289 | SHELL!$SHELL$ac_delim |
| 16290 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 16291 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 16292 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 16293 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 16294 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 16295 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 16296 | exec_prefix!$exec_prefix$ac_delim |
| 16297 | prefix!$prefix$ac_delim |
| 16298 | program_transform_name!$program_transform_name$ac_delim |
| 16299 | bindir!$bindir$ac_delim |
| 16300 | sbindir!$sbindir$ac_delim |
| 16301 | libexecdir!$libexecdir$ac_delim |
| 16302 | datarootdir!$datarootdir$ac_delim |
| 16303 | datadir!$datadir$ac_delim |
| 16304 | sysconfdir!$sysconfdir$ac_delim |
| 16305 | sharedstatedir!$sharedstatedir$ac_delim |
| 16306 | localstatedir!$localstatedir$ac_delim |
| 16307 | includedir!$includedir$ac_delim |
| 16308 | oldincludedir!$oldincludedir$ac_delim |
| 16309 | docdir!$docdir$ac_delim |
| 16310 | infodir!$infodir$ac_delim |
| 16311 | htmldir!$htmldir$ac_delim |
| 16312 | dvidir!$dvidir$ac_delim |
| 16313 | pdfdir!$pdfdir$ac_delim |
| 16314 | psdir!$psdir$ac_delim |
| 16315 | libdir!$libdir$ac_delim |
| 16316 | localedir!$localedir$ac_delim |
| 16317 | mandir!$mandir$ac_delim |
| 16318 | DEFS!$DEFS$ac_delim |
| 16319 | ECHO_C!$ECHO_C$ac_delim |
| 16320 | ECHO_N!$ECHO_N$ac_delim |
| 16321 | ECHO_T!$ECHO_T$ac_delim |
| 16322 | LIBS!$LIBS$ac_delim |
| 16323 | build_alias!$build_alias$ac_delim |
| 16324 | host_alias!$host_alias$ac_delim |
| 16325 | target_alias!$target_alias$ac_delim |
| 16326 | build!$build$ac_delim |
| 16327 | build_cpu!$build_cpu$ac_delim |
| 16328 | build_vendor!$build_vendor$ac_delim |
| 16329 | build_os!$build_os$ac_delim |
| 16330 | host!$host$ac_delim |
| 16331 | host_cpu!$host_cpu$ac_delim |
| 16332 | host_vendor!$host_vendor$ac_delim |
| 16333 | host_os!$host_os$ac_delim |
| 16334 | target!$target$ac_delim |
| 16335 | target_cpu!$target_cpu$ac_delim |
| 16336 | target_vendor!$target_vendor$ac_delim |
| 16337 | target_os!$target_os$ac_delim |
| 16338 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 16339 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 16340 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 16341 | CYGPATH_W!$CYGPATH_W$ac_delim |
| 16342 | PACKAGE!$PACKAGE$ac_delim |
| 16343 | VERSION!$VERSION$ac_delim |
| 16344 | ACLOCAL!$ACLOCAL$ac_delim |
| 16345 | AUTOCONF!$AUTOCONF$ac_delim |
| 16346 | AUTOMAKE!$AUTOMAKE$ac_delim |
| 16347 | AUTOHEADER!$AUTOHEADER$ac_delim |
| 16348 | MAKEINFO!$MAKEINFO$ac_delim |
| 16349 | install_sh!$install_sh$ac_delim |
| 16350 | STRIP!$STRIP$ac_delim |
| 16351 | INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim |
| 16352 | mkdir_p!$mkdir_p$ac_delim |
| 16353 | AWK!$AWK$ac_delim |
| 16354 | SET_MAKE!$SET_MAKE$ac_delim |
| 16355 | am__leading_dot!$am__leading_dot$ac_delim |
| 16356 | AMTAR!$AMTAR$ac_delim |
| 16357 | am__tar!$am__tar$ac_delim |
| 16358 | am__untar!$am__untar$ac_delim |
| 16359 | MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim |
| 16360 | MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim |
| 16361 | MAINT!$MAINT$ac_delim |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 16362 | LIBTOOL!$LIBTOOL$ac_delim |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16363 | CC!$CC$ac_delim |
| 16364 | CFLAGS!$CFLAGS$ac_delim |
| 16365 | LDFLAGS!$LDFLAGS$ac_delim |
| 16366 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 16367 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 16368 | EXEEXT!$EXEEXT$ac_delim |
| 16369 | OBJEXT!$OBJEXT$ac_delim |
| 16370 | DEPDIR!$DEPDIR$ac_delim |
| 16371 | am__include!$am__include$ac_delim |
| 16372 | am__quote!$am__quote$ac_delim |
| 16373 | AMDEP_TRUE!$AMDEP_TRUE$ac_delim |
| 16374 | AMDEP_FALSE!$AMDEP_FALSE$ac_delim |
| 16375 | AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim |
| 16376 | CCDEPMODE!$CCDEPMODE$ac_delim |
| 16377 | am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim |
| 16378 | am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 16379 | SED!$SED$ac_delim |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16380 | GREP!$GREP$ac_delim |
| 16381 | EGREP!$EGREP$ac_delim |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 16382 | FGREP!$FGREP$ac_delim |
| 16383 | LD!$LD$ac_delim |
| 16384 | DUMPBIN!$DUMPBIN$ac_delim |
| 16385 | ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16386 | _ACEOF |
| 16387 | |
| 16388 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
| 16389 | break |
| 16390 | elif $ac_last_try; then |
| 16391 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 16392 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 16393 | { (exit 1); exit 1; }; } |
| 16394 | else |
| 16395 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16396 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16397 | done |
| 16398 | |
| 16399 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 16400 | if test -n "$ac_eof"; then |
| 16401 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 16402 | ac_eof=`expr $ac_eof + 1` |
| 16403 | fi |
| 16404 | |
| 16405 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16406 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 16407 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 16408 | _ACEOF |
| 16409 | sed ' |
| 16410 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 16411 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 16412 | :n |
| 16413 | t n |
| 16414 | s/'"$ac_delim"'$/,g/; t |
| 16415 | s/$/\\/; p |
| 16416 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 16417 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 16418 | rm -f conf$$subs.sed |
| 16419 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16420 | CEOF$ac_eof |
| 16421 | _ACEOF |
| 16422 | |
| 16423 | |
| 16424 | ac_delim='%!_!# ' |
| 16425 | for ac_last_try in false false false false false :; do |
| 16426 | cat >conf$$subs.sed <<_ACEOF |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 16427 | NM!$NM$ac_delim |
| 16428 | LN_S!$LN_S$ac_delim |
| 16429 | OBJDUMP!$OBJDUMP$ac_delim |
| 16430 | DLLTOOL!$DLLTOOL$ac_delim |
| 16431 | AR!$AR$ac_delim |
| 16432 | ac_ct_AR!$ac_ct_AR$ac_delim |
| 16433 | RANLIB!$RANLIB$ac_delim |
| 16434 | MANIFEST_TOOL!$MANIFEST_TOOL$ac_delim |
| 16435 | DSYMUTIL!$DSYMUTIL$ac_delim |
| 16436 | NMEDIT!$NMEDIT$ac_delim |
| 16437 | LIPO!$LIPO$ac_delim |
| 16438 | OTOOL!$OTOOL$ac_delim |
| 16439 | OTOOL64!$OTOOL64$ac_delim |
| 16440 | CPP!$CPP$ac_delim |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16441 | CONFIGURE_DEPENDS!$CONFIGURE_DEPENDS$ac_delim |
| 16442 | YACC!$YACC$ac_delim |
| 16443 | YFLAGS!$YFLAGS$ac_delim |
| 16444 | LEX!$LEX$ac_delim |
| 16445 | LEXLIB!$LEXLIB$ac_delim |
| 16446 | LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim |
| 16447 | ADD_CFLAGS!$ADD_CFLAGS$ac_delim |
| 16448 | LIBOBJS!$LIBOBJS$ac_delim |
| 16449 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 16450 | _ACEOF |
| 16451 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 16452 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 23; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16453 | break |
| 16454 | elif $ac_last_try; then |
| 16455 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 16456 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 16457 | { (exit 1); exit 1; }; } |
| 16458 | else |
| 16459 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 16460 | fi |
| 16461 | done |
| 16462 | |
| 16463 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 16464 | if test -n "$ac_eof"; then |
| 16465 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 16466 | ac_eof=`expr $ac_eof + 1` |
| 16467 | fi |
| 16468 | |
| 16469 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16470 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 16471 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 16472 | _ACEOF |
| 16473 | sed ' |
| 16474 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 16475 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 16476 | :n |
| 16477 | t n |
| 16478 | s/'"$ac_delim"'$/,g/; t |
| 16479 | s/$/\\/; p |
| 16480 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 16481 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 16482 | rm -f conf$$subs.sed |
| 16483 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16484 | :end |
| 16485 | s/|#_!!_#|//g |
| 16486 | CEOF$ac_eof |
| 16487 | _ACEOF |
| 16488 | |
| 16489 | |
| 16490 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 16491 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 16492 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 16493 | # (actually we leave an empty line to preserve line numbers). |
| 16494 | if test "x$srcdir" = x.; then |
| 16495 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 16496 | s/:*\$(srcdir):*/:/ |
| 16497 | s/:*\${srcdir}:*/:/ |
| 16498 | s/:*@srcdir@:*/:/ |
| 16499 | s/^\([^=]*=[ ]*\):*/\1/ |
| 16500 | s/:*$// |
| 16501 | s/^[^=]*=[ ]*$// |
| 16502 | }' |
| 16503 | fi |
| 16504 | |
| 16505 | cat >>$CONFIG_STATUS <<\_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16506 | fi # test -n "$CONFIG_FILES" |
| 16507 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16508 | |
| 16509 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
| 16510 | do |
| 16511 | case $ac_tag in |
| 16512 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 16513 | esac |
| 16514 | case $ac_mode$ac_tag in |
| 16515 | :[FHL]*:*);; |
| 16516 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 16517 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 16518 | { (exit 1); exit 1; }; };; |
| 16519 | :[FH]-) ac_tag=-:-;; |
| 16520 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 16521 | esac |
| 16522 | ac_save_IFS=$IFS |
| 16523 | IFS=: |
| 16524 | set x $ac_tag |
| 16525 | IFS=$ac_save_IFS |
| 16526 | shift |
| 16527 | ac_file=$1 |
| 16528 | shift |
| 16529 | |
| 16530 | case $ac_mode in |
| 16531 | :L) ac_source=$1;; |
| 16532 | :[FH]) |
| 16533 | ac_file_inputs= |
| 16534 | for ac_f |
| 16535 | do |
| 16536 | case $ac_f in |
| 16537 | -) ac_f="$tmp/stdin";; |
| 16538 | *) # Look for the file first in the build tree, then in the source tree |
| 16539 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 16540 | # because $ac_f cannot contain `:'. |
| 16541 | test -f "$ac_f" || |
| 16542 | case $ac_f in |
| 16543 | [\\/$]*) false;; |
| 16544 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 16545 | esac || |
| 16546 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 16547 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 16548 | { (exit 1); exit 1; }; };; |
| 16549 | esac |
| 16550 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 16551 | done |
| 16552 | |
| 16553 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16554 | # use $as_me), people would be surprised to read: |
| 16555 | # /* config.h. Generated by config.status. */ |
| 16556 | configure_input="Generated from "`IFS=: |
| 16557 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 16558 | if test x"$ac_file" != x-; then |
| 16559 | configure_input="$ac_file. $configure_input" |
| 16560 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 16561 | echo "$as_me: creating $ac_file" >&6;} |
| 16562 | fi |
| 16563 | |
| 16564 | case $ac_tag in |
| 16565 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 16566 | esac |
| 16567 | ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16568 | esac |
| 16569 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16570 | ac_dir=`$as_dirname -- "$ac_file" || |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16571 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16572 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16573 | X"$ac_file" : 'X\(//\)$' \| \ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16574 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16575 | echo X"$ac_file" | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16576 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16577 | s//\1/ |
| 16578 | q |
| 16579 | } |
| 16580 | /^X\(\/\/\)[^/].*/{ |
| 16581 | s//\1/ |
| 16582 | q |
| 16583 | } |
| 16584 | /^X\(\/\/\)$/{ |
| 16585 | s//\1/ |
| 16586 | q |
| 16587 | } |
| 16588 | /^X\(\/\).*/{ |
| 16589 | s//\1/ |
| 16590 | q |
| 16591 | } |
| 16592 | s/.*/./; q'` |
| 16593 | { as_dir="$ac_dir" |
| 16594 | case $as_dir in #( |
| 16595 | -*) as_dir=./$as_dir;; |
| 16596 | esac |
| 16597 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16598 | as_dirs= |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16599 | while :; do |
| 16600 | case $as_dir in #( |
| 16601 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 16602 | *) as_qdir=$as_dir;; |
| 16603 | esac |
| 16604 | as_dirs="'$as_qdir' $as_dirs" |
| 16605 | as_dir=`$as_dirname -- "$as_dir" || |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16606 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16607 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 16608 | X"$as_dir" : 'X\(//\)$' \| \ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16609 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16610 | echo X"$as_dir" | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16611 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16612 | s//\1/ |
| 16613 | q |
| 16614 | } |
| 16615 | /^X\(\/\/\)[^/].*/{ |
| 16616 | s//\1/ |
| 16617 | q |
| 16618 | } |
| 16619 | /^X\(\/\/\)$/{ |
| 16620 | s//\1/ |
| 16621 | q |
| 16622 | } |
| 16623 | /^X\(\/\).*/{ |
| 16624 | s//\1/ |
| 16625 | q |
| 16626 | } |
| 16627 | s/.*/./; q'` |
| 16628 | test -d "$as_dir" && break |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16629 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16630 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 16631 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 16632 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16633 | { (exit 1); exit 1; }; }; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16634 | ac_builddir=. |
| 16635 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16636 | case "$ac_dir" in |
| 16637 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 16638 | *) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16639 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16640 | # A ".." for each directory in $ac_dir_suffix. |
| 16641 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 16642 | case $ac_top_builddir_sub in |
| 16643 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 16644 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 16645 | esac ;; |
| 16646 | esac |
| 16647 | ac_abs_top_builddir=$ac_pwd |
| 16648 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 16649 | # for backward compatibility: |
| 16650 | ac_top_builddir=$ac_top_build_prefix |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16651 | |
| 16652 | case $srcdir in |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16653 | .) # We are building in place. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16654 | ac_srcdir=. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16655 | ac_top_srcdir=$ac_top_builddir_sub |
| 16656 | ac_abs_top_srcdir=$ac_pwd ;; |
| 16657 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16658 | ac_srcdir=$srcdir$ac_dir_suffix; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16659 | ac_top_srcdir=$srcdir |
| 16660 | ac_abs_top_srcdir=$srcdir ;; |
| 16661 | *) # Relative name. |
| 16662 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 16663 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 16664 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16665 | esac |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16666 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16667 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16668 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16669 | case $ac_mode in |
| 16670 | :F) |
| 16671 | # |
| 16672 | # CONFIG_FILE |
| 16673 | # |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16674 | |
| 16675 | case $INSTALL in |
| 16676 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16677 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16678 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16679 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16680 | |
| 16681 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16682 | # If the template does not know about datarootdir, expand it. |
| 16683 | # FIXME: This hack should be removed a few years after 2.60. |
| 16684 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 16685 | |
| 16686 | case `sed -n '/datarootdir/ { |
| 16687 | p |
| 16688 | q |
| 16689 | } |
| 16690 | /@datadir@/p |
| 16691 | /@docdir@/p |
| 16692 | /@infodir@/p |
| 16693 | /@localedir@/p |
| 16694 | /@mandir@/p |
| 16695 | ' $ac_file_inputs` in |
| 16696 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 16697 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 16698 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 16699 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 16700 | _ACEOF |
| 16701 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16702 | ac_datarootdir_hack=' |
| 16703 | s&@datadir@&$datadir&g |
| 16704 | s&@docdir@&$docdir&g |
| 16705 | s&@infodir@&$infodir&g |
| 16706 | s&@localedir@&$localedir&g |
| 16707 | s&@mandir@&$mandir&g |
| 16708 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 16709 | esac |
| 16710 | _ACEOF |
| 16711 | |
| 16712 | # Neutralize VPATH when `$srcdir' = `.'. |
| 16713 | # Shell code in configure.ac might set extrasub. |
| 16714 | # FIXME: do we really want to maintain this feature? |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16715 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16716 | sed "$ac_vpsub |
| 16717 | $extrasub |
| 16718 | _ACEOF |
| 16719 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16720 | :t |
| 16721 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16722 | s&@configure_input@&$configure_input&;t t |
| 16723 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 16724 | s&@srcdir@&$ac_srcdir&;t t |
| 16725 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 16726 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 16727 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 16728 | s&@builddir@&$ac_builddir&;t t |
| 16729 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 16730 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 16731 | s&@INSTALL@&$ac_INSTALL&;t t |
| 16732 | $ac_datarootdir_hack |
| 16733 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16734 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16735 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 16736 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 16737 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 16738 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 16739 | which seems to be undefined. Please make sure it is defined." >&5 |
| 16740 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 16741 | which seems to be undefined. Please make sure it is defined." >&2;} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16742 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16743 | rm -f "$tmp/stdin" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16744 | case $ac_file in |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16745 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 16746 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16747 | esac |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16748 | ;; |
| 16749 | :H) |
| 16750 | # |
| 16751 | # CONFIG_HEADER |
| 16752 | # |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16753 | _ACEOF |
| 16754 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16755 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 16756 | # substitutes the proper values into config.h.in to produce config.h. |
| 16757 | rm -f conftest.defines conftest.tail |
| 16758 | # First, append a space to every undef/define line, to ease matching. |
| 16759 | echo 's/$/ /' >conftest.defines |
| 16760 | # Then, protect against being on the right side of a sed subst, or in |
| 16761 | # an unquoted here document, in config.status. If some macros were |
| 16762 | # called several times there might be several #defines for the same |
| 16763 | # symbol, which is useless. But do not sort them, since the last |
| 16764 | # AC_DEFINE must be honored. |
| 16765 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 16766 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 16767 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 16768 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 16769 | # just an empty string. |
| 16770 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 16771 | ac_dB='\\)[ (].*,\\1define\\2' |
| 16772 | ac_dC=' ' |
| 16773 | ac_dD=' ,' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16774 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16775 | uniq confdefs.h | |
| 16776 | sed -n ' |
| 16777 | t rset |
| 16778 | :rset |
| 16779 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 16780 | t ok |
| 16781 | d |
| 16782 | :ok |
| 16783 | s/[\\&,]/\\&/g |
| 16784 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 16785 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 16786 | ' >>conftest.defines |
| 16787 | |
| 16788 | # Remove the space that was appended to ease matching. |
| 16789 | # Then replace #undef with comments. This is necessary, for |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16790 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 16791 | # on some systems where configure will not decide to define it. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16792 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 16793 | echo 's/ $// |
| 16794 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16795 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16796 | # Break up conftest.defines: |
| 16797 | ac_max_sed_lines=50 |
| 16798 | |
| 16799 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 16800 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 16801 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 16802 | # et cetera. |
| 16803 | ac_in='$ac_file_inputs' |
| 16804 | ac_out='"$tmp/out1"' |
| 16805 | ac_nxt='"$tmp/out2"' |
| 16806 | |
| 16807 | while : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16808 | do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16809 | # Write a here document: |
| 16810 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16811 | # First, check the format of the line: |
| 16812 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 16813 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 16814 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 16815 | b |
| 16816 | :def |
| 16817 | _ACEOF |
| 16818 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16819 | echo 'CEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16820 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 16821 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 16822 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 16823 | grep . conftest.tail >/dev/null || break |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16824 | rm -f conftest.defines |
| 16825 | mv conftest.tail conftest.defines |
| 16826 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16827 | rm -f conftest.defines conftest.tail |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16828 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16829 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16830 | cat >>$CONFIG_STATUS <<\_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16831 | if test x"$ac_file" != x-; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16832 | echo "/* $configure_input */" >"$tmp/config.h" |
| 16833 | cat "$ac_result" >>"$tmp/config.h" |
| 16834 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16835 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 16836 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 16837 | else |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16838 | rm -f $ac_file |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16839 | mv "$tmp/config.h" $ac_file |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16840 | fi |
| 16841 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16842 | echo "/* $configure_input */" |
| 16843 | cat "$ac_result" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16844 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16845 | rm -f "$tmp/out12" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16846 | # Compute $ac_file's index in $config_headers. |
| 16847 | _am_stamp_count=1 |
| 16848 | for _am_header in $config_headers :; do |
| 16849 | case $_am_header in |
| 16850 | $ac_file | $ac_file:* ) |
| 16851 | break ;; |
| 16852 | * ) |
| 16853 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16854 | esac |
| 16855 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16856 | echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16857 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16858 | X$ac_file : 'X\(//\)[^/]' \| \ |
| 16859 | X$ac_file : 'X\(//\)$' \| \ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16860 | X$ac_file : 'X\(/\)' \| . 2>/dev/null || |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16861 | echo X$ac_file | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16862 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16863 | s//\1/ |
| 16864 | q |
| 16865 | } |
| 16866 | /^X\(\/\/\)[^/].*/{ |
| 16867 | s//\1/ |
| 16868 | q |
| 16869 | } |
| 16870 | /^X\(\/\/\)$/{ |
| 16871 | s//\1/ |
| 16872 | q |
| 16873 | } |
| 16874 | /^X\(\/\).*/{ |
| 16875 | s//\1/ |
| 16876 | q |
| 16877 | } |
| 16878 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 16879 | ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16880 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16881 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 16882 | echo "$as_me: executing $ac_file commands" >&6;} |
| 16883 | ;; |
| 16884 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16885 | |
| 16886 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16887 | case $ac_file$ac_mode in |
| 16888 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16889 | # Strip MF so we end up with the name of the file. |
| 16890 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 16891 | # Check whether this is an Automake generated Makefile or not. |
| 16892 | # We used to match only the files named `Makefile.in', but |
| 16893 | # some people rename them; so instead we look at the file content. |
| 16894 | # Grep'ing the first line is not enough: some people post-process |
| 16895 | # each Makefile.in and add a new line on top of each file to say so. |
| 16896 | # So let's grep whole file. |
| 16897 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16898 | dirpart=`$as_dirname -- "$mf" || |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16899 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16900 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 16901 | X"$mf" : 'X\(//\)$' \| \ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16902 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16903 | echo X"$mf" | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16904 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16905 | s//\1/ |
| 16906 | q |
| 16907 | } |
| 16908 | /^X\(\/\/\)[^/].*/{ |
| 16909 | s//\1/ |
| 16910 | q |
| 16911 | } |
| 16912 | /^X\(\/\/\)$/{ |
| 16913 | s//\1/ |
| 16914 | q |
| 16915 | } |
| 16916 | /^X\(\/\).*/{ |
| 16917 | s//\1/ |
| 16918 | q |
| 16919 | } |
| 16920 | s/.*/./; q'` |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16921 | else |
| 16922 | continue |
| 16923 | fi |
Lev Walkin | c46b7cb | 2006-08-18 02:27:55 +0000 | [diff] [blame] | 16924 | # Extract the definition of DEPDIR, am__include, and am__quote |
| 16925 | # from the Makefile without running `make'. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16926 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16927 | test -z "$DEPDIR" && continue |
Lev Walkin | c46b7cb | 2006-08-18 02:27:55 +0000 | [diff] [blame] | 16928 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 16929 | test -z "am__include" && continue |
| 16930 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16931 | # When using ansi2knr, U may be empty or an underscore; expand it |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16932 | U=`sed -n 's/^U = //p' < "$mf"` |
Lev Walkin | c46b7cb | 2006-08-18 02:27:55 +0000 | [diff] [blame] | 16933 | # Find all dependency output files, they are included files with |
| 16934 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 16935 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 16936 | # expansion. |
| 16937 | for file in `sed -n " |
| 16938 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16939 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 16940 | # Make sure the directory exists. |
| 16941 | test -f "$dirpart/$file" && continue |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16942 | fdir=`$as_dirname -- "$file" || |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16943 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16944 | X"$file" : 'X\(//\)[^/]' \| \ |
| 16945 | X"$file" : 'X\(//\)$' \| \ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16946 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16947 | echo X"$file" | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16948 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16949 | s//\1/ |
| 16950 | q |
| 16951 | } |
| 16952 | /^X\(\/\/\)[^/].*/{ |
| 16953 | s//\1/ |
| 16954 | q |
| 16955 | } |
| 16956 | /^X\(\/\/\)$/{ |
| 16957 | s//\1/ |
| 16958 | q |
| 16959 | } |
| 16960 | /^X\(\/\).*/{ |
| 16961 | s//\1/ |
| 16962 | q |
| 16963 | } |
| 16964 | s/.*/./; q'` |
| 16965 | { as_dir=$dirpart/$fdir |
| 16966 | case $as_dir in #( |
| 16967 | -*) as_dir=./$as_dir;; |
| 16968 | esac |
| 16969 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16970 | as_dirs= |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16971 | while :; do |
| 16972 | case $as_dir in #( |
| 16973 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 16974 | *) as_qdir=$as_dir;; |
| 16975 | esac |
| 16976 | as_dirs="'$as_qdir' $as_dirs" |
| 16977 | as_dir=`$as_dirname -- "$as_dir" || |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16978 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16979 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 16980 | X"$as_dir" : 'X\(//\)$' \| \ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16981 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 16982 | echo X"$as_dir" | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 16983 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16984 | s//\1/ |
| 16985 | q |
| 16986 | } |
| 16987 | /^X\(\/\/\)[^/].*/{ |
| 16988 | s//\1/ |
| 16989 | q |
| 16990 | } |
| 16991 | /^X\(\/\/\)$/{ |
| 16992 | s//\1/ |
| 16993 | q |
| 16994 | } |
| 16995 | /^X\(\/\).*/{ |
| 16996 | s//\1/ |
| 16997 | q |
| 16998 | } |
| 16999 | s/.*/./; q'` |
| 17000 | test -d "$as_dir" && break |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17001 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 17002 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 17003 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 17004 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17005 | { (exit 1); exit 1; }; }; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 17006 | # echo "creating $dirpart/$file" |
| 17007 | echo '# dummy' > "$dirpart/$file" |
| 17008 | done |
| 17009 | done |
| 17010 | ;; |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 17011 | "libtool":C) |
| 17012 | |
| 17013 | # See if we are running on zsh, and set the options which allow our |
| 17014 | # commands through without removal of \ escapes. |
| 17015 | if test -n "${ZSH_VERSION+set}" ; then |
| 17016 | setopt NO_GLOB_SUBST |
| 17017 | fi |
| 17018 | |
| 17019 | cfgfile="${ofile}T" |
| 17020 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 17021 | $RM "$cfgfile" |
| 17022 | |
| 17023 | cat <<_LT_EOF >> "$cfgfile" |
| 17024 | #! $SHELL |
| 17025 | |
| 17026 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 17027 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
| 17028 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 17029 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 17030 | # |
| 17031 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
| 17032 | # 2006, 2007, 2008, 2009, 2010 Free Software Foundation, |
| 17033 | # Inc. |
| 17034 | # Written by Gordon Matzigkeit, 1996 |
| 17035 | # |
| 17036 | # This file is part of GNU Libtool. |
| 17037 | # |
| 17038 | # GNU Libtool is free software; you can redistribute it and/or |
| 17039 | # modify it under the terms of the GNU General Public License as |
| 17040 | # published by the Free Software Foundation; either version 2 of |
| 17041 | # the License, or (at your option) any later version. |
| 17042 | # |
| 17043 | # As a special exception to the GNU General Public License, |
| 17044 | # if you distribute this file as part of a program or library that |
| 17045 | # is built using GNU Libtool, you may include this file under the |
| 17046 | # same distribution terms that you use for the rest of that program. |
| 17047 | # |
| 17048 | # GNU Libtool is distributed in the hope that it will be useful, |
| 17049 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17050 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17051 | # GNU General Public License for more details. |
| 17052 | # |
| 17053 | # You should have received a copy of the GNU General Public License |
| 17054 | # along with GNU Libtool; see the file COPYING. If not, a copy |
| 17055 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
| 17056 | # obtained by writing to the Free Software Foundation, Inc., |
| 17057 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 17058 | |
| 17059 | |
| 17060 | # The names of the tagged configurations supported by this script. |
| 17061 | available_tags="" |
| 17062 | |
| 17063 | # ### BEGIN LIBTOOL CONFIG |
| 17064 | |
| 17065 | # Which release of libtool.m4 was used? |
| 17066 | macro_version=$macro_version |
| 17067 | macro_revision=$macro_revision |
| 17068 | |
| 17069 | # Whether or not to build shared libraries. |
| 17070 | build_libtool_libs=$enable_shared |
| 17071 | |
| 17072 | # Whether or not to build static libraries. |
| 17073 | build_old_libs=$enable_static |
| 17074 | |
| 17075 | # What type of objects to build. |
| 17076 | pic_mode=$pic_mode |
| 17077 | |
| 17078 | # Whether or not to optimize for fast installation. |
| 17079 | fast_install=$enable_fast_install |
| 17080 | |
| 17081 | # Shell to use when invoking shell scripts. |
| 17082 | SHELL=$lt_SHELL |
| 17083 | |
| 17084 | # An echo program that protects backslashes. |
| 17085 | ECHO=$lt_ECHO |
| 17086 | |
| 17087 | # The host system. |
| 17088 | host_alias=$host_alias |
| 17089 | host=$host |
| 17090 | host_os=$host_os |
| 17091 | |
| 17092 | # The build system. |
| 17093 | build_alias=$build_alias |
| 17094 | build=$build |
| 17095 | build_os=$build_os |
| 17096 | |
| 17097 | # A sed program that does not truncate output. |
| 17098 | SED=$lt_SED |
| 17099 | |
| 17100 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 17101 | Xsed="\$SED -e 1s/^X//" |
| 17102 | |
| 17103 | # A grep program that handles long lines. |
| 17104 | GREP=$lt_GREP |
| 17105 | |
| 17106 | # An ERE matcher. |
| 17107 | EGREP=$lt_EGREP |
| 17108 | |
| 17109 | # A literal string matcher. |
| 17110 | FGREP=$lt_FGREP |
| 17111 | |
| 17112 | # A BSD- or MS-compatible name lister. |
| 17113 | NM=$lt_NM |
| 17114 | |
| 17115 | # Whether we need soft or hard links. |
| 17116 | LN_S=$lt_LN_S |
| 17117 | |
| 17118 | # What is the maximum length of a command? |
| 17119 | max_cmd_len=$max_cmd_len |
| 17120 | |
| 17121 | # Object file suffix (normally "o"). |
| 17122 | objext=$ac_objext |
| 17123 | |
| 17124 | # Executable file suffix (normally ""). |
| 17125 | exeext=$exeext |
| 17126 | |
| 17127 | # whether the shell understands "unset". |
| 17128 | lt_unset=$lt_unset |
| 17129 | |
| 17130 | # turn spaces into newlines. |
| 17131 | SP2NL=$lt_lt_SP2NL |
| 17132 | |
| 17133 | # turn newlines into spaces. |
| 17134 | NL2SP=$lt_lt_NL2SP |
| 17135 | |
| 17136 | # convert \$build file names to \$host format. |
| 17137 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 17138 | |
| 17139 | # convert \$build files to toolchain format. |
| 17140 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 17141 | |
| 17142 | # An object symbol dumper. |
| 17143 | OBJDUMP=$lt_OBJDUMP |
| 17144 | |
| 17145 | # Method to check whether dependent libraries are shared objects. |
| 17146 | deplibs_check_method=$lt_deplibs_check_method |
| 17147 | |
| 17148 | # Command to use when deplibs_check_method = "file_magic". |
| 17149 | file_magic_cmd=$lt_file_magic_cmd |
| 17150 | |
| 17151 | # How to find potential files when deplibs_check_method = "file_magic". |
| 17152 | file_magic_glob=$lt_file_magic_glob |
| 17153 | |
| 17154 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". |
| 17155 | want_nocaseglob=$lt_want_nocaseglob |
| 17156 | |
| 17157 | # DLL creation program. |
| 17158 | DLLTOOL=$lt_DLLTOOL |
| 17159 | |
| 17160 | # Command to associate shared and link libraries. |
| 17161 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd |
| 17162 | |
| 17163 | # The archiver. |
| 17164 | AR=$lt_AR |
| 17165 | |
| 17166 | # Flags to create an archive. |
| 17167 | AR_FLAGS=$lt_AR_FLAGS |
| 17168 | |
| 17169 | # How to feed a file listing to the archiver. |
| 17170 | archiver_list_spec=$lt_archiver_list_spec |
| 17171 | |
| 17172 | # A symbol stripping program. |
| 17173 | STRIP=$lt_STRIP |
| 17174 | |
| 17175 | # Commands used to install an old-style archive. |
| 17176 | RANLIB=$lt_RANLIB |
| 17177 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 17178 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 17179 | |
| 17180 | # Whether to use a lock for old archive extraction. |
| 17181 | lock_old_archive_extraction=$lock_old_archive_extraction |
| 17182 | |
| 17183 | # A C compiler. |
| 17184 | LTCC=$lt_CC |
| 17185 | |
| 17186 | # LTCC compiler flags. |
| 17187 | LTCFLAGS=$lt_CFLAGS |
| 17188 | |
| 17189 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 17190 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 17191 | |
| 17192 | # Transform the output of nm in a proper C declaration. |
| 17193 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 17194 | |
| 17195 | # Transform the output of nm in a C name address pair. |
| 17196 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 17197 | |
| 17198 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
| 17199 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
| 17200 | |
| 17201 | # Specify filename containing input files for \$NM. |
| 17202 | nm_file_list_spec=$lt_nm_file_list_spec |
| 17203 | |
| 17204 | # The root where to search for dependent libraries,and in which our libraries should be installed. |
| 17205 | lt_sysroot=$lt_sysroot |
| 17206 | |
| 17207 | # The name of the directory that contains temporary libtool files. |
| 17208 | objdir=$objdir |
| 17209 | |
| 17210 | # Used to examine libraries when file_magic_cmd begins with "file". |
| 17211 | MAGIC_CMD=$MAGIC_CMD |
| 17212 | |
| 17213 | # Must we lock files when doing compilation? |
| 17214 | need_locks=$lt_need_locks |
| 17215 | |
| 17216 | # Manifest tool. |
| 17217 | MANIFEST_TOOL=$lt_MANIFEST_TOOL |
| 17218 | |
| 17219 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
| 17220 | DSYMUTIL=$lt_DSYMUTIL |
| 17221 | |
| 17222 | # Tool to change global to local symbols on Mac OS X. |
| 17223 | NMEDIT=$lt_NMEDIT |
| 17224 | |
| 17225 | # Tool to manipulate fat objects and archives on Mac OS X. |
| 17226 | LIPO=$lt_LIPO |
| 17227 | |
| 17228 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
| 17229 | OTOOL=$lt_OTOOL |
| 17230 | |
| 17231 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
| 17232 | OTOOL64=$lt_OTOOL64 |
| 17233 | |
| 17234 | # Old archive suffix (normally "a"). |
| 17235 | libext=$libext |
| 17236 | |
| 17237 | # Shared library suffix (normally ".so"). |
| 17238 | shrext_cmds=$lt_shrext_cmds |
| 17239 | |
| 17240 | # The commands to extract the exported symbol list from a shared archive. |
| 17241 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 17242 | |
| 17243 | # Variables whose values should be saved in libtool wrapper scripts and |
| 17244 | # restored at link time. |
| 17245 | variables_saved_for_relink=$lt_variables_saved_for_relink |
| 17246 | |
| 17247 | # Do we need the "lib" prefix for modules? |
| 17248 | need_lib_prefix=$need_lib_prefix |
| 17249 | |
| 17250 | # Do we need a version for libraries? |
| 17251 | need_version=$need_version |
| 17252 | |
| 17253 | # Library versioning type. |
| 17254 | version_type=$version_type |
| 17255 | |
| 17256 | # Shared library runtime path variable. |
| 17257 | runpath_var=$runpath_var |
| 17258 | |
| 17259 | # Shared library path variable. |
| 17260 | shlibpath_var=$shlibpath_var |
| 17261 | |
| 17262 | # Is shlibpath searched before the hard-coded library search path? |
| 17263 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 17264 | |
| 17265 | # Format of library name prefix. |
| 17266 | libname_spec=$lt_libname_spec |
| 17267 | |
| 17268 | # List of archive names. First name is the real one, the rest are links. |
| 17269 | # The last name is the one that the linker finds with -lNAME |
| 17270 | library_names_spec=$lt_library_names_spec |
| 17271 | |
| 17272 | # The coded name of the library, if different from the real name. |
| 17273 | soname_spec=$lt_soname_spec |
| 17274 | |
| 17275 | # Permission mode override for installation of shared libraries. |
| 17276 | install_override_mode=$lt_install_override_mode |
| 17277 | |
| 17278 | # Command to use after installation of a shared archive. |
| 17279 | postinstall_cmds=$lt_postinstall_cmds |
| 17280 | |
| 17281 | # Command to use after uninstallation of a shared archive. |
| 17282 | postuninstall_cmds=$lt_postuninstall_cmds |
| 17283 | |
| 17284 | # Commands used to finish a libtool library installation in a directory. |
| 17285 | finish_cmds=$lt_finish_cmds |
| 17286 | |
| 17287 | # As "finish_cmds", except a single script fragment to be evaled but |
| 17288 | # not shown. |
| 17289 | finish_eval=$lt_finish_eval |
| 17290 | |
| 17291 | # Whether we should hardcode library paths into libraries. |
| 17292 | hardcode_into_libs=$hardcode_into_libs |
| 17293 | |
| 17294 | # Compile-time system search path for libraries. |
| 17295 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 17296 | |
| 17297 | # Run-time system search path for libraries. |
| 17298 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 17299 | |
| 17300 | # Whether dlopen is supported. |
| 17301 | dlopen_support=$enable_dlopen |
| 17302 | |
| 17303 | # Whether dlopen of programs is supported. |
| 17304 | dlopen_self=$enable_dlopen_self |
| 17305 | |
| 17306 | # Whether dlopen of statically linked programs is supported. |
| 17307 | dlopen_self_static=$enable_dlopen_self_static |
| 17308 | |
| 17309 | # Commands to strip libraries. |
| 17310 | old_striplib=$lt_old_striplib |
| 17311 | striplib=$lt_striplib |
| 17312 | |
| 17313 | |
| 17314 | # The linker used to build libraries. |
| 17315 | LD=$lt_LD |
| 17316 | |
| 17317 | # How to create reloadable object files. |
| 17318 | reload_flag=$lt_reload_flag |
| 17319 | reload_cmds=$lt_reload_cmds |
| 17320 | |
| 17321 | # Commands used to build an old-style archive. |
| 17322 | old_archive_cmds=$lt_old_archive_cmds |
| 17323 | |
| 17324 | # A language specific compiler. |
| 17325 | CC=$lt_compiler |
| 17326 | |
| 17327 | # Is the compiler the GNU compiler? |
| 17328 | with_gcc=$GCC |
| 17329 | |
| 17330 | # Compiler flag to turn off builtin functions. |
| 17331 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 17332 | |
| 17333 | # Additional compiler flags for building library objects. |
| 17334 | pic_flag=$lt_lt_prog_compiler_pic |
| 17335 | |
| 17336 | # How to pass a linker flag through the compiler. |
| 17337 | wl=$lt_lt_prog_compiler_wl |
| 17338 | |
| 17339 | # Compiler flag to prevent dynamic linking. |
| 17340 | link_static_flag=$lt_lt_prog_compiler_static |
| 17341 | |
| 17342 | # Does compiler simultaneously support -c and -o options? |
| 17343 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 17344 | |
| 17345 | # Whether or not to add -lc for building shared libraries. |
| 17346 | build_libtool_need_lc=$archive_cmds_need_lc |
| 17347 | |
| 17348 | # Whether or not to disallow shared libs when runtime libs are static. |
| 17349 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 17350 | |
| 17351 | # Compiler flag to allow reflexive dlopens. |
| 17352 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 17353 | |
| 17354 | # Compiler flag to generate shared objects directly from archives. |
| 17355 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 17356 | |
| 17357 | # Whether the compiler copes with passing no objects directly. |
| 17358 | compiler_needs_object=$lt_compiler_needs_object |
| 17359 | |
| 17360 | # Create an old-style archive from a shared archive. |
| 17361 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 17362 | |
| 17363 | # Create a temporary old-style archive to link instead of a shared archive. |
| 17364 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 17365 | |
| 17366 | # Commands used to build a shared archive. |
| 17367 | archive_cmds=$lt_archive_cmds |
| 17368 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 17369 | |
| 17370 | # Commands used to build a loadable module if different from building |
| 17371 | # a shared archive. |
| 17372 | module_cmds=$lt_module_cmds |
| 17373 | module_expsym_cmds=$lt_module_expsym_cmds |
| 17374 | |
| 17375 | # Whether we are building with GNU ld or not. |
| 17376 | with_gnu_ld=$lt_with_gnu_ld |
| 17377 | |
| 17378 | # Flag that allows shared libraries with undefined symbols to be built. |
| 17379 | allow_undefined_flag=$lt_allow_undefined_flag |
| 17380 | |
| 17381 | # Flag that enforces no undefined symbols. |
| 17382 | no_undefined_flag=$lt_no_undefined_flag |
| 17383 | |
| 17384 | # Flag to hardcode \$libdir into a binary during linking. |
| 17385 | # This must work even if \$libdir does not exist |
| 17386 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 17387 | |
| 17388 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
| 17389 | # during linking. This must work even if \$libdir does not exist. |
| 17390 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 17391 | |
| 17392 | # Whether we need a single "-rpath" flag with a separated argument. |
| 17393 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 17394 | |
| 17395 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 17396 | # DIR into the resulting binary. |
| 17397 | hardcode_direct=$hardcode_direct |
| 17398 | |
| 17399 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 17400 | # DIR into the resulting binary and the resulting library dependency is |
| 17401 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 17402 | # library is relocated. |
| 17403 | hardcode_direct_absolute=$hardcode_direct_absolute |
| 17404 | |
| 17405 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 17406 | # into the resulting binary. |
| 17407 | hardcode_minus_L=$hardcode_minus_L |
| 17408 | |
| 17409 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 17410 | # into the resulting binary. |
| 17411 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 17412 | |
| 17413 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 17414 | # into the library and all subsequent libraries and executables linked |
| 17415 | # against it. |
| 17416 | hardcode_automatic=$hardcode_automatic |
| 17417 | |
| 17418 | # Set to yes if linker adds runtime paths of dependent libraries |
| 17419 | # to runtime path list. |
| 17420 | inherit_rpath=$inherit_rpath |
| 17421 | |
| 17422 | # Whether libtool must link a program against all its dependency libraries. |
| 17423 | link_all_deplibs=$link_all_deplibs |
| 17424 | |
| 17425 | # Set to "yes" if exported symbols are required. |
| 17426 | always_export_symbols=$always_export_symbols |
| 17427 | |
| 17428 | # The commands to list exported symbols. |
| 17429 | export_symbols_cmds=$lt_export_symbols_cmds |
| 17430 | |
| 17431 | # Symbols that should not be listed in the preloaded symbols. |
| 17432 | exclude_expsyms=$lt_exclude_expsyms |
| 17433 | |
| 17434 | # Symbols that must always be exported. |
| 17435 | include_expsyms=$lt_include_expsyms |
| 17436 | |
| 17437 | # Commands necessary for linking programs (against libraries) with templates. |
| 17438 | prelink_cmds=$lt_prelink_cmds |
| 17439 | |
| 17440 | # Commands necessary for finishing linking programs. |
| 17441 | postlink_cmds=$lt_postlink_cmds |
| 17442 | |
| 17443 | # Specify filename containing input files. |
| 17444 | file_list_spec=$lt_file_list_spec |
| 17445 | |
| 17446 | # How to hardcode a shared library path into an executable. |
| 17447 | hardcode_action=$hardcode_action |
| 17448 | |
| 17449 | # ### END LIBTOOL CONFIG |
| 17450 | |
| 17451 | _LT_EOF |
| 17452 | |
| 17453 | case $host_os in |
| 17454 | aix3*) |
| 17455 | cat <<\_LT_EOF >> "$cfgfile" |
| 17456 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 17457 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 17458 | # vanish in a puff of smoke. |
| 17459 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 17460 | COLLECT_NAMES= |
| 17461 | export COLLECT_NAMES |
| 17462 | fi |
| 17463 | _LT_EOF |
| 17464 | ;; |
| 17465 | esac |
| 17466 | |
| 17467 | |
| 17468 | ltmain="$ac_aux_dir/ltmain.sh" |
| 17469 | |
| 17470 | |
| 17471 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 17472 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 17473 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 17474 | # is reportedly fixed, but why not run on old versions too? |
| 17475 | sed '$q' "$ltmain" >> "$cfgfile" \ |
| 17476 | || (rm -f "$cfgfile"; exit 1) |
| 17477 | |
| 17478 | if test x"$xsi_shell" = xyes; then |
| 17479 | sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ |
| 17480 | func_dirname ()\ |
| 17481 | {\ |
| 17482 | \ case ${1} in\ |
| 17483 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ |
| 17484 | \ * ) func_dirname_result="${3}" ;;\ |
| 17485 | \ esac\ |
| 17486 | } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ |
| 17487 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 17488 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 17489 | test 0 -eq $? || _lt_function_replace_fail=: |
| 17490 | |
| 17491 | |
| 17492 | sed -e '/^func_basename ()$/,/^} # func_basename /c\ |
| 17493 | func_basename ()\ |
| 17494 | {\ |
| 17495 | \ func_basename_result="${1##*/}"\ |
| 17496 | } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ |
| 17497 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 17498 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 17499 | test 0 -eq $? || _lt_function_replace_fail=: |
| 17500 | |
| 17501 | |
| 17502 | sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ |
| 17503 | func_dirname_and_basename ()\ |
| 17504 | {\ |
| 17505 | \ case ${1} in\ |
| 17506 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ |
| 17507 | \ * ) func_dirname_result="${3}" ;;\ |
| 17508 | \ esac\ |
| 17509 | \ func_basename_result="${1##*/}"\ |
| 17510 | } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ |
| 17511 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 17512 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 17513 | test 0 -eq $? || _lt_function_replace_fail=: |
| 17514 | |
| 17515 | |
| 17516 | sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ |
| 17517 | func_stripname ()\ |
| 17518 | {\ |
| 17519 | \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ |
| 17520 | \ # positional parameters, so assign one to ordinary parameter first.\ |
| 17521 | \ func_stripname_result=${3}\ |
| 17522 | \ func_stripname_result=${func_stripname_result#"${1}"}\ |
| 17523 | \ func_stripname_result=${func_stripname_result%"${2}"}\ |
| 17524 | } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ |
| 17525 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 17526 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 17527 | test 0 -eq $? || _lt_function_replace_fail=: |
| 17528 | |
| 17529 | |
| 17530 | sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ |
| 17531 | func_split_long_opt ()\ |
| 17532 | {\ |
| 17533 | \ func_split_long_opt_name=${1%%=*}\ |
| 17534 | \ func_split_long_opt_arg=${1#*=}\ |
| 17535 | } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ |
| 17536 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 17537 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 17538 | test 0 -eq $? || _lt_function_replace_fail=: |
| 17539 | |
| 17540 | |
| 17541 | sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ |
| 17542 | func_split_short_opt ()\ |
| 17543 | {\ |
| 17544 | \ func_split_short_opt_arg=${1#??}\ |
| 17545 | \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ |
| 17546 | } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ |
| 17547 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 17548 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 17549 | test 0 -eq $? || _lt_function_replace_fail=: |
| 17550 | |
| 17551 | |
| 17552 | sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ |
| 17553 | func_lo2o ()\ |
| 17554 | {\ |
| 17555 | \ case ${1} in\ |
| 17556 | \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ |
| 17557 | \ *) func_lo2o_result=${1} ;;\ |
| 17558 | \ esac\ |
| 17559 | } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ |
| 17560 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 17561 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 17562 | test 0 -eq $? || _lt_function_replace_fail=: |
| 17563 | |
| 17564 | |
| 17565 | sed -e '/^func_xform ()$/,/^} # func_xform /c\ |
| 17566 | func_xform ()\ |
| 17567 | {\ |
| 17568 | func_xform_result=${1%.*}.lo\ |
| 17569 | } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ |
| 17570 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 17571 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 17572 | test 0 -eq $? || _lt_function_replace_fail=: |
| 17573 | |
| 17574 | |
| 17575 | sed -e '/^func_arith ()$/,/^} # func_arith /c\ |
| 17576 | func_arith ()\ |
| 17577 | {\ |
| 17578 | func_arith_result=$(( $* ))\ |
| 17579 | } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ |
| 17580 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 17581 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 17582 | test 0 -eq $? || _lt_function_replace_fail=: |
| 17583 | |
| 17584 | |
| 17585 | sed -e '/^func_len ()$/,/^} # func_len /c\ |
| 17586 | func_len ()\ |
| 17587 | {\ |
| 17588 | func_len_result=${#1}\ |
| 17589 | } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ |
| 17590 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 17591 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 17592 | test 0 -eq $? || _lt_function_replace_fail=: |
| 17593 | |
| 17594 | fi |
| 17595 | |
| 17596 | if test x"$lt_shell_append" = xyes; then |
| 17597 | sed -e '/^func_append ()$/,/^} # func_append /c\ |
| 17598 | func_append ()\ |
| 17599 | {\ |
| 17600 | eval "${1}+=\\${2}"\ |
| 17601 | } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ |
| 17602 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 17603 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 17604 | test 0 -eq $? || _lt_function_replace_fail=: |
| 17605 | |
| 17606 | |
| 17607 | sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ |
| 17608 | func_append_quoted ()\ |
| 17609 | {\ |
| 17610 | \ func_quote_for_eval "${2}"\ |
| 17611 | \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ |
| 17612 | } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ |
| 17613 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 17614 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 17615 | test 0 -eq $? || _lt_function_replace_fail=: |
| 17616 | |
| 17617 | |
| 17618 | # Save a `func_append' function call where possible by direct use of '+=' |
| 17619 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ |
| 17620 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 17621 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 17622 | test 0 -eq $? || _lt_function_replace_fail=: |
| 17623 | else |
| 17624 | # Save a `func_append' function call even when '+=' is not available |
| 17625 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ |
| 17626 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 17627 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 17628 | test 0 -eq $? || _lt_function_replace_fail=: |
| 17629 | fi |
| 17630 | |
| 17631 | if test x"$_lt_function_replace_fail" = x":"; then |
| 17632 | { echo "$as_me:$LINENO: WARNING: Unable to substitute extended shell functions in $ofile" >&5 |
| 17633 | echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} |
| 17634 | fi |
| 17635 | |
| 17636 | |
| 17637 | mv -f "$cfgfile" "$ofile" || |
| 17638 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 17639 | chmod +x "$ofile" |
| 17640 | |
| 17641 | ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 17642 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 17643 | esac |
| 17644 | done # for ac_tag |
| 17645 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 17646 | |
| 17647 | { (exit 0); exit 0; } |
| 17648 | _ACEOF |
| 17649 | chmod +x $CONFIG_STATUS |
| 17650 | ac_clean_files=$ac_clean_files_save |
| 17651 | |
| 17652 | |
| 17653 | # configure is writing to config.log, and then calls config.status. |
| 17654 | # config.status does its own redirection, appending to config.log. |
| 17655 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 17656 | # by configure, so config.status won't be able to write to it; its |
| 17657 | # output is simply discarded. So we exec the FD to /dev/null, |
| 17658 | # effectively closing config.log, so it can be properly (re)opened and |
| 17659 | # appended to by config.status. When coming back to configure, we |
| 17660 | # need to make the FD available again. |
| 17661 | if test "$no_create" != yes; then |
| 17662 | ac_cs_success=: |
| 17663 | ac_config_status_args= |
| 17664 | test "$silent" = yes && |
| 17665 | ac_config_status_args="$ac_config_status_args --quiet" |
| 17666 | exec 5>/dev/null |
| 17667 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 17668 | exec 5>>config.log |
| 17669 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 17670 | # would make configure fail if this is the last instruction. |
| 17671 | $ac_cs_success || { (exit 1); exit 1; } |
| 17672 | fi |
| 17673 | |
| 17674 | |