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 | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.59. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4 | # |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 6 | # This configure script is free software; the Free Software Foundation |
| 7 | # gives unlimited permission to copy, distribute and modify it. |
| 8 | ## --------------------- ## |
| 9 | ## M4sh Initialization. ## |
| 10 | ## --------------------- ## |
| 11 | |
| 12 | # Be Bourne compatible |
| 13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 14 | emulate sh |
| 15 | NULLCMD=: |
| 16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 17 | # is contrary to our usage. Disable this feature. |
| 18 | alias -g '${1+"$@"}'='"$@"' |
| 19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 20 | set -o posix |
| 21 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22 | DUALCASE=1; export DUALCASE # for MKS sh |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23 | |
| 24 | # Support unset when possible. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 26 | as_unset=unset |
| 27 | else |
| 28 | as_unset=false |
| 29 | fi |
| 30 | |
| 31 | |
| 32 | # Work around bugs in pre-3.0 UWIN ksh. |
| 33 | $as_unset ENV MAIL MAILPATH |
| 34 | PS1='$ ' |
| 35 | PS2='> ' |
| 36 | PS4='+ ' |
| 37 | |
| 38 | # NLS nuisances. |
| 39 | for as_var in \ |
| 40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 42 | LC_TELEPHONE LC_TIME |
| 43 | do |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 45 | eval $as_var=C; export $as_var |
| 46 | else |
| 47 | $as_unset $as_var |
| 48 | fi |
| 49 | done |
| 50 | |
| 51 | # Required to use basename. |
| 52 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 53 | as_expr=expr |
| 54 | else |
| 55 | as_expr=false |
| 56 | fi |
| 57 | |
| 58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 59 | as_basename=basename |
| 60 | else |
| 61 | as_basename=false |
| 62 | fi |
| 63 | |
| 64 | |
| 65 | # Name of the executable. |
| 66 | as_me=`$as_basename "$0" || |
| 67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 68 | X"$0" : 'X\(//\)$' \| \ |
| 69 | X"$0" : 'X\(/\)$' \| \ |
| 70 | . : '\(.\)' 2>/dev/null || |
| 71 | echo X/"$0" | |
| 72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 73 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 74 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 75 | s/.*/./; q'` |
| 76 | |
| 77 | |
| 78 | # PATH needs CR, and LINENO needs CR and PATH. |
| 79 | # Avoid depending upon Character Ranges. |
| 80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 83 | as_cr_digits='0123456789' |
| 84 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 85 | |
| 86 | # The user is always right. |
| 87 | if test "${PATH_SEPARATOR+set}" != set; then |
| 88 | echo "#! /bin/sh" >conf$$.sh |
| 89 | echo "exit 0" >>conf$$.sh |
| 90 | chmod +x conf$$.sh |
| 91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 92 | PATH_SEPARATOR=';' |
| 93 | else |
| 94 | PATH_SEPARATOR=: |
| 95 | fi |
| 96 | rm -f conf$$.sh |
| 97 | fi |
| 98 | |
| 99 | |
| 100 | as_lineno_1=$LINENO |
| 101 | as_lineno_2=$LINENO |
| 102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 103 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 104 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 105 | # Find who we are. Look in the path if we contain no path at all |
| 106 | # relative or not. |
| 107 | case $0 in |
| 108 | *[\\/]* ) as_myself=$0 ;; |
| 109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 110 | for as_dir in $PATH |
| 111 | do |
| 112 | IFS=$as_save_IFS |
| 113 | test -z "$as_dir" && as_dir=. |
| 114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 115 | done |
| 116 | |
| 117 | ;; |
| 118 | esac |
| 119 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 120 | # in which case we are not to be found in the path. |
| 121 | if test "x$as_myself" = x; then |
| 122 | as_myself=$0 |
| 123 | fi |
| 124 | if test ! -f "$as_myself"; then |
| 125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 126 | { (exit 1); exit 1; }; } |
| 127 | fi |
| 128 | case $CONFIG_SHELL in |
| 129 | '') |
| 130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 132 | do |
| 133 | IFS=$as_save_IFS |
| 134 | test -z "$as_dir" && as_dir=. |
| 135 | for as_base in sh bash ksh sh5; do |
| 136 | case $as_dir in |
| 137 | /*) |
| 138 | if ("$as_dir/$as_base" -c ' |
| 139 | as_lineno_1=$LINENO |
| 140 | as_lineno_2=$LINENO |
| 141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 142 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 146 | CONFIG_SHELL=$as_dir/$as_base |
| 147 | export CONFIG_SHELL |
| 148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 149 | fi;; |
| 150 | esac |
| 151 | done |
| 152 | done |
| 153 | ;; |
| 154 | esac |
| 155 | |
| 156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 157 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 158 | # line-number line before each line; the second 'sed' does the real |
| 159 | # work. The second script uses 'N' to pair each line-number line |
| 160 | # with the numbered line, and appends trailing '-' during |
| 161 | # substitution so that $LINENO is not a special case at line end. |
| 162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 164 | sed '=' <$as_myself | |
| 165 | sed ' |
| 166 | N |
| 167 | s,$,-, |
| 168 | : loop |
| 169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 170 | t loop |
| 171 | s,-$,, |
| 172 | s,^['$as_cr_digits']*\n,, |
| 173 | ' >$as_me.lineno && |
| 174 | chmod +x $as_me.lineno || |
| 175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 176 | { (exit 1); exit 1; }; } |
| 177 | |
| 178 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 179 | # (the dirname of $[0] is not the place where we might find the |
| 180 | # original and so on. Autoconf is especially sensible to this). |
| 181 | . ./$as_me.lineno |
| 182 | # Exit status is that of the last command. |
| 183 | exit |
| 184 | } |
| 185 | |
| 186 | |
| 187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 188 | *c*,-n*) ECHO_N= ECHO_C=' |
| 189 | ' ECHO_T=' ' ;; |
| 190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 192 | esac |
| 193 | |
| 194 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 195 | as_expr=expr |
| 196 | else |
| 197 | as_expr=false |
| 198 | fi |
| 199 | |
| 200 | rm -f conf$$ conf$$.exe conf$$.file |
| 201 | echo >conf$$.file |
| 202 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 203 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 205 | if test -f conf$$.exe; then |
| 206 | # Don't use ln at all; we don't have any links |
| 207 | as_ln_s='cp -p' |
| 208 | else |
| 209 | as_ln_s='ln -s' |
| 210 | fi |
| 211 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 212 | as_ln_s=ln |
| 213 | else |
| 214 | as_ln_s='cp -p' |
| 215 | fi |
| 216 | rm -f conf$$ conf$$.exe conf$$.file |
| 217 | |
| 218 | if mkdir -p . 2>/dev/null; then |
| 219 | as_mkdir_p=: |
| 220 | else |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 221 | test -d ./-p && rmdir ./-p |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 222 | as_mkdir_p=false |
| 223 | fi |
| 224 | |
| 225 | as_executable_p="test -f" |
| 226 | |
| 227 | # Sed expression to map a string onto a valid CPP name. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 228 | 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] | 229 | |
| 230 | # Sed expression to map a string onto a valid variable name. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 232 | |
| 233 | |
| 234 | # IFS |
| 235 | # We need space, tab and new line, in precisely that order. |
| 236 | as_nl=' |
| 237 | ' |
| 238 | IFS=" $as_nl" |
| 239 | |
| 240 | # CDPATH. |
| 241 | $as_unset CDPATH |
| 242 | |
| 243 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 244 | |
| 245 | # Check that we are running under the correct shell. |
| 246 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 247 | |
| 248 | case X$ECHO in |
| 249 | X*--fallback-echo) |
| 250 | # Remove one level of quotation (which was required for Make). |
| 251 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
| 252 | ;; |
| 253 | esac |
| 254 | |
| 255 | echo=${ECHO-echo} |
| 256 | if test "X$1" = X--no-reexec; then |
| 257 | # Discard the --no-reexec flag, and continue. |
| 258 | shift |
| 259 | elif test "X$1" = X--fallback-echo; then |
| 260 | # Avoid inline document here, it may be left over |
| 261 | : |
| 262 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
| 263 | # Yippee, $echo works! |
| 264 | : |
| 265 | else |
| 266 | # Restart under the correct shell. |
| 267 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 268 | fi |
| 269 | |
| 270 | if test "X$1" = X--fallback-echo; then |
| 271 | # used as fallback echo |
| 272 | shift |
| 273 | cat <<EOF |
| 274 | $* |
| 275 | EOF |
| 276 | exit 0 |
| 277 | fi |
| 278 | |
| 279 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 280 | # if CDPATH is set. |
| 281 | if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| 282 | |
| 283 | if test -z "$ECHO"; then |
| 284 | if test "X${echo_test_string+set}" != Xset; then |
| 285 | # find a string as large as possible, as long as the shell can cope with it |
| 286 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 287 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 288 | if (echo_test_string="`eval $cmd`") 2>/dev/null && |
| 289 | echo_test_string="`eval $cmd`" && |
| 290 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
| 291 | then |
| 292 | break |
| 293 | fi |
| 294 | done |
| 295 | fi |
| 296 | |
| 297 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 298 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 299 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 300 | : |
| 301 | else |
| 302 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 303 | # backslashes. This makes it impossible to quote backslashes using |
| 304 | # echo "$something" | sed 's/\\/\\\\/g' |
| 305 | # |
| 306 | # So, first we look for a working echo in the user's PATH. |
| 307 | |
| 308 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 309 | for dir in $PATH /usr/ucb; do |
| 310 | IFS="$lt_save_ifs" |
| 311 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 312 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 313 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 314 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 315 | echo="$dir/echo" |
| 316 | break |
| 317 | fi |
| 318 | done |
| 319 | IFS="$lt_save_ifs" |
| 320 | |
| 321 | if test "X$echo" = Xecho; then |
| 322 | # We didn't find a better echo, so look for alternatives. |
| 323 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
| 324 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
| 325 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 326 | # This shell has a builtin print -r that does the trick. |
| 327 | echo='print -r' |
| 328 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
| 329 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 330 | # If we have ksh, try running configure again with it. |
| 331 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 332 | export ORIGINAL_CONFIG_SHELL |
| 333 | CONFIG_SHELL=/bin/ksh |
| 334 | export CONFIG_SHELL |
| 335 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
| 336 | else |
| 337 | # Try using printf. |
| 338 | echo='printf %s\n' |
| 339 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 340 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 341 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 342 | # Cool, printf works |
| 343 | : |
| 344 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 345 | test "X$echo_testing_string" = 'X\t' && |
| 346 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 347 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 348 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 349 | export CONFIG_SHELL |
| 350 | SHELL="$CONFIG_SHELL" |
| 351 | export SHELL |
| 352 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 353 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 354 | test "X$echo_testing_string" = 'X\t' && |
| 355 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 356 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 357 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 358 | else |
| 359 | # maybe with a smaller string... |
| 360 | prev=: |
| 361 | |
| 362 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 363 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
| 364 | then |
| 365 | break |
| 366 | fi |
| 367 | prev="$cmd" |
| 368 | done |
| 369 | |
| 370 | if test "$prev" != 'sed 50q "$0"'; then |
| 371 | echo_test_string=`eval $prev` |
| 372 | export echo_test_string |
| 373 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 374 | else |
| 375 | # Oops. We lost completely, so just stick with echo. |
| 376 | echo=echo |
| 377 | fi |
| 378 | fi |
| 379 | fi |
| 380 | fi |
| 381 | fi |
| 382 | fi |
| 383 | |
| 384 | # Copy echo and quote the copy suitably for passing to libtool from |
| 385 | # the Makefile, instead of quoting the original, which is used later. |
| 386 | ECHO=$echo |
| 387 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 388 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
| 389 | fi |
| 390 | |
| 391 | |
| 392 | |
| 393 | |
| 394 | tagnames=${tagnames+${tagnames},}CXX |
| 395 | |
| 396 | tagnames=${tagnames+${tagnames},}F77 |
| 397 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 398 | # Name of the host. |
| 399 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 400 | # so uname gets run too. |
| 401 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 402 | |
| 403 | exec 6>&1 |
| 404 | |
| 405 | # |
| 406 | # Initializations. |
| 407 | # |
| 408 | ac_default_prefix=/usr/local |
| 409 | ac_config_libobj_dir=. |
| 410 | cross_compiling=no |
| 411 | subdirs= |
| 412 | MFLAGS= |
| 413 | MAKEFLAGS= |
| 414 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 415 | |
| 416 | # Maximum number of lines to put in a shell here document. |
| 417 | # This variable seems obsolete. It should probably be removed, and |
| 418 | # only ac_max_sed_lines should be used. |
| 419 | : ${ac_max_here_lines=38} |
| 420 | |
| 421 | # Identity of this package. |
| 422 | PACKAGE_NAME= |
| 423 | PACKAGE_TARNAME= |
| 424 | PACKAGE_VERSION= |
| 425 | PACKAGE_STRING= |
| 426 | PACKAGE_BUGREPORT= |
| 427 | |
| 428 | ac_unique_file="libasn1parser/asn1p_y.y" |
| 429 | # Factoring default headers for most tests. |
| 430 | ac_includes_default="\ |
| 431 | #include <stdio.h> |
| 432 | #if HAVE_SYS_TYPES_H |
| 433 | # include <sys/types.h> |
| 434 | #endif |
| 435 | #if HAVE_SYS_STAT_H |
| 436 | # include <sys/stat.h> |
| 437 | #endif |
| 438 | #if STDC_HEADERS |
| 439 | # include <stdlib.h> |
| 440 | # include <stddef.h> |
| 441 | #else |
| 442 | # if HAVE_STDLIB_H |
| 443 | # include <stdlib.h> |
| 444 | # endif |
| 445 | #endif |
| 446 | #if HAVE_STRING_H |
| 447 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 448 | # include <memory.h> |
| 449 | # endif |
| 450 | # include <string.h> |
| 451 | #endif |
| 452 | #if HAVE_STRINGS_H |
| 453 | # include <strings.h> |
| 454 | #endif |
| 455 | #if HAVE_INTTYPES_H |
| 456 | # include <inttypes.h> |
| 457 | #else |
| 458 | # if HAVE_STDINT_H |
| 459 | # include <stdint.h> |
| 460 | # endif |
| 461 | #endif |
| 462 | #if HAVE_UNISTD_H |
| 463 | # include <unistd.h> |
| 464 | #endif" |
| 465 | |
Lev Walkin | 33cded1 | 2004-09-19 19:40:52 +0000 | [diff] [blame] | 466 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL CONFIGURE_DEPENDS CPLUSPLUS_FOUND_TRUE CPLUSPLUS_FOUND_FALSE YACC LEX LEXLIB LEX_OUTPUT_ROOT ADD_CFLAGS LIBOBJS LTLIBOBJS' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 467 | ac_subst_files='' |
| 468 | |
| 469 | # Initialize some variables set by options. |
| 470 | ac_init_help= |
| 471 | ac_init_version=false |
| 472 | # The variables have the same names as the options, with |
| 473 | # dashes changed to underlines. |
| 474 | cache_file=/dev/null |
| 475 | exec_prefix=NONE |
| 476 | no_create= |
| 477 | no_recursion= |
| 478 | prefix=NONE |
| 479 | program_prefix=NONE |
| 480 | program_suffix=NONE |
| 481 | program_transform_name=s,x,x, |
| 482 | silent= |
| 483 | site= |
| 484 | srcdir= |
| 485 | verbose= |
| 486 | x_includes=NONE |
| 487 | x_libraries=NONE |
| 488 | |
| 489 | # Installation directory options. |
| 490 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 491 | # and all the variables that are supposed to be based on exec_prefix |
| 492 | # by default will actually change. |
| 493 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 494 | bindir='${exec_prefix}/bin' |
| 495 | sbindir='${exec_prefix}/sbin' |
| 496 | libexecdir='${exec_prefix}/libexec' |
| 497 | datadir='${prefix}/share' |
| 498 | sysconfdir='${prefix}/etc' |
| 499 | sharedstatedir='${prefix}/com' |
| 500 | localstatedir='${prefix}/var' |
| 501 | libdir='${exec_prefix}/lib' |
| 502 | includedir='${prefix}/include' |
| 503 | oldincludedir='/usr/include' |
| 504 | infodir='${prefix}/info' |
| 505 | mandir='${prefix}/man' |
| 506 | |
| 507 | ac_prev= |
| 508 | for ac_option |
| 509 | do |
| 510 | # If the previous option needs an argument, assign it. |
| 511 | if test -n "$ac_prev"; then |
| 512 | eval "$ac_prev=\$ac_option" |
| 513 | ac_prev= |
| 514 | continue |
| 515 | fi |
| 516 | |
| 517 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
| 518 | |
| 519 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 520 | |
| 521 | case $ac_option in |
| 522 | |
| 523 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 524 | ac_prev=bindir ;; |
| 525 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 526 | bindir=$ac_optarg ;; |
| 527 | |
| 528 | -build | --build | --buil | --bui | --bu) |
| 529 | ac_prev=build_alias ;; |
| 530 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 531 | build_alias=$ac_optarg ;; |
| 532 | |
| 533 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 534 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 535 | ac_prev=cache_file ;; |
| 536 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 537 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 538 | cache_file=$ac_optarg ;; |
| 539 | |
| 540 | --config-cache | -C) |
| 541 | cache_file=config.cache ;; |
| 542 | |
| 543 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 544 | ac_prev=datadir ;; |
| 545 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 546 | | --da=*) |
| 547 | datadir=$ac_optarg ;; |
| 548 | |
| 549 | -disable-* | --disable-*) |
| 550 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 551 | # Reject names that are not valid shell variable names. |
| 552 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 553 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 554 | { (exit 1); exit 1; }; } |
| 555 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 556 | eval "enable_$ac_feature=no" ;; |
| 557 | |
| 558 | -enable-* | --enable-*) |
| 559 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 560 | # Reject names that are not valid shell variable names. |
| 561 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 562 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 563 | { (exit 1); exit 1; }; } |
| 564 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 565 | case $ac_option in |
| 566 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 567 | *) ac_optarg=yes ;; |
| 568 | esac |
| 569 | eval "enable_$ac_feature='$ac_optarg'" ;; |
| 570 | |
| 571 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 572 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 573 | | --exec | --exe | --ex) |
| 574 | ac_prev=exec_prefix ;; |
| 575 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 576 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 577 | | --exec=* | --exe=* | --ex=*) |
| 578 | exec_prefix=$ac_optarg ;; |
| 579 | |
| 580 | -gas | --gas | --ga | --g) |
| 581 | # Obsolete; use --with-gas. |
| 582 | with_gas=yes ;; |
| 583 | |
| 584 | -help | --help | --hel | --he | -h) |
| 585 | ac_init_help=long ;; |
| 586 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 587 | ac_init_help=recursive ;; |
| 588 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 589 | ac_init_help=short ;; |
| 590 | |
| 591 | -host | --host | --hos | --ho) |
| 592 | ac_prev=host_alias ;; |
| 593 | -host=* | --host=* | --hos=* | --ho=*) |
| 594 | host_alias=$ac_optarg ;; |
| 595 | |
| 596 | -includedir | --includedir | --includedi | --included | --include \ |
| 597 | | --includ | --inclu | --incl | --inc) |
| 598 | ac_prev=includedir ;; |
| 599 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 600 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 601 | includedir=$ac_optarg ;; |
| 602 | |
| 603 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 604 | ac_prev=infodir ;; |
| 605 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 606 | infodir=$ac_optarg ;; |
| 607 | |
| 608 | -libdir | --libdir | --libdi | --libd) |
| 609 | ac_prev=libdir ;; |
| 610 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 611 | libdir=$ac_optarg ;; |
| 612 | |
| 613 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 614 | | --libexe | --libex | --libe) |
| 615 | ac_prev=libexecdir ;; |
| 616 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 617 | | --libexe=* | --libex=* | --libe=*) |
| 618 | libexecdir=$ac_optarg ;; |
| 619 | |
| 620 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 621 | | --localstate | --localstat | --localsta | --localst \ |
| 622 | | --locals | --local | --loca | --loc | --lo) |
| 623 | ac_prev=localstatedir ;; |
| 624 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 625 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 626 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 627 | localstatedir=$ac_optarg ;; |
| 628 | |
| 629 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 630 | ac_prev=mandir ;; |
| 631 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 632 | mandir=$ac_optarg ;; |
| 633 | |
| 634 | -nfp | --nfp | --nf) |
| 635 | # Obsolete; use --without-fp. |
| 636 | with_fp=no ;; |
| 637 | |
| 638 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 639 | | --no-cr | --no-c | -n) |
| 640 | no_create=yes ;; |
| 641 | |
| 642 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 643 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 644 | no_recursion=yes ;; |
| 645 | |
| 646 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 647 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 648 | | --oldin | --oldi | --old | --ol | --o) |
| 649 | ac_prev=oldincludedir ;; |
| 650 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 651 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 652 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 653 | oldincludedir=$ac_optarg ;; |
| 654 | |
| 655 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 656 | ac_prev=prefix ;; |
| 657 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 658 | prefix=$ac_optarg ;; |
| 659 | |
| 660 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 661 | | --program-pre | --program-pr | --program-p) |
| 662 | ac_prev=program_prefix ;; |
| 663 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 664 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 665 | program_prefix=$ac_optarg ;; |
| 666 | |
| 667 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 668 | | --program-suf | --program-su | --program-s) |
| 669 | ac_prev=program_suffix ;; |
| 670 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 671 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 672 | program_suffix=$ac_optarg ;; |
| 673 | |
| 674 | -program-transform-name | --program-transform-name \ |
| 675 | | --program-transform-nam | --program-transform-na \ |
| 676 | | --program-transform-n | --program-transform- \ |
| 677 | | --program-transform | --program-transfor \ |
| 678 | | --program-transfo | --program-transf \ |
| 679 | | --program-trans | --program-tran \ |
| 680 | | --progr-tra | --program-tr | --program-t) |
| 681 | ac_prev=program_transform_name ;; |
| 682 | -program-transform-name=* | --program-transform-name=* \ |
| 683 | | --program-transform-nam=* | --program-transform-na=* \ |
| 684 | | --program-transform-n=* | --program-transform-=* \ |
| 685 | | --program-transform=* | --program-transfor=* \ |
| 686 | | --program-transfo=* | --program-transf=* \ |
| 687 | | --program-trans=* | --program-tran=* \ |
| 688 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 689 | program_transform_name=$ac_optarg ;; |
| 690 | |
| 691 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 692 | | -silent | --silent | --silen | --sile | --sil) |
| 693 | silent=yes ;; |
| 694 | |
| 695 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 696 | ac_prev=sbindir ;; |
| 697 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 698 | | --sbi=* | --sb=*) |
| 699 | sbindir=$ac_optarg ;; |
| 700 | |
| 701 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 702 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 703 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 704 | | --sha | --sh) |
| 705 | ac_prev=sharedstatedir ;; |
| 706 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 707 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 708 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 709 | | --sha=* | --sh=*) |
| 710 | sharedstatedir=$ac_optarg ;; |
| 711 | |
| 712 | -site | --site | --sit) |
| 713 | ac_prev=site ;; |
| 714 | -site=* | --site=* | --sit=*) |
| 715 | site=$ac_optarg ;; |
| 716 | |
| 717 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 718 | ac_prev=srcdir ;; |
| 719 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 720 | srcdir=$ac_optarg ;; |
| 721 | |
| 722 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 723 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 724 | ac_prev=sysconfdir ;; |
| 725 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 726 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 727 | sysconfdir=$ac_optarg ;; |
| 728 | |
| 729 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 730 | ac_prev=target_alias ;; |
| 731 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 732 | target_alias=$ac_optarg ;; |
| 733 | |
| 734 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 735 | verbose=yes ;; |
| 736 | |
| 737 | -version | --version | --versio | --versi | --vers | -V) |
| 738 | ac_init_version=: ;; |
| 739 | |
| 740 | -with-* | --with-*) |
| 741 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 742 | # Reject names that are not valid shell variable names. |
| 743 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 744 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 745 | { (exit 1); exit 1; }; } |
| 746 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 747 | case $ac_option in |
| 748 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 749 | *) ac_optarg=yes ;; |
| 750 | esac |
| 751 | eval "with_$ac_package='$ac_optarg'" ;; |
| 752 | |
| 753 | -without-* | --without-*) |
| 754 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 755 | # Reject names that are not valid shell variable names. |
| 756 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 757 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 758 | { (exit 1); exit 1; }; } |
| 759 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 760 | eval "with_$ac_package=no" ;; |
| 761 | |
| 762 | --x) |
| 763 | # Obsolete; use --with-x. |
| 764 | with_x=yes ;; |
| 765 | |
| 766 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 767 | | --x-incl | --x-inc | --x-in | --x-i) |
| 768 | ac_prev=x_includes ;; |
| 769 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 770 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 771 | x_includes=$ac_optarg ;; |
| 772 | |
| 773 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 774 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 775 | ac_prev=x_libraries ;; |
| 776 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 777 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 778 | x_libraries=$ac_optarg ;; |
| 779 | |
| 780 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 781 | Try \`$0 --help' for more information." >&2 |
| 782 | { (exit 1); exit 1; }; } |
| 783 | ;; |
| 784 | |
| 785 | *=*) |
| 786 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 787 | # Reject names that are not valid shell variable names. |
| 788 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 789 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 790 | { (exit 1); exit 1; }; } |
| 791 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 792 | eval "$ac_envvar='$ac_optarg'" |
| 793 | export $ac_envvar ;; |
| 794 | |
| 795 | *) |
| 796 | # FIXME: should be removed in autoconf 3.0. |
| 797 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 798 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 799 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 800 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 801 | ;; |
| 802 | |
| 803 | esac |
| 804 | done |
| 805 | |
| 806 | if test -n "$ac_prev"; then |
| 807 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 808 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 809 | { (exit 1); exit 1; }; } |
| 810 | fi |
| 811 | |
| 812 | # Be sure to have absolute paths. |
| 813 | for ac_var in exec_prefix prefix |
| 814 | do |
| 815 | eval ac_val=$`echo $ac_var` |
| 816 | case $ac_val in |
| 817 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 818 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 819 | { (exit 1); exit 1; }; };; |
| 820 | esac |
| 821 | done |
| 822 | |
| 823 | # Be sure to have absolute paths. |
| 824 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 825 | localstatedir libdir includedir oldincludedir infodir mandir |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 826 | do |
| 827 | eval ac_val=$`echo $ac_var` |
| 828 | case $ac_val in |
| 829 | [\\/$]* | ?:[\\/]* ) ;; |
| 830 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 831 | { (exit 1); exit 1; }; };; |
| 832 | esac |
| 833 | done |
| 834 | |
| 835 | # There might be people who depend on the old broken behavior: `$host' |
| 836 | # used to hold the argument of --host etc. |
| 837 | # FIXME: To remove some day. |
| 838 | build=$build_alias |
| 839 | host=$host_alias |
| 840 | target=$target_alias |
| 841 | |
| 842 | # FIXME: To remove some day. |
| 843 | if test "x$host_alias" != x; then |
| 844 | if test "x$build_alias" = x; then |
| 845 | cross_compiling=maybe |
| 846 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 847 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 848 | elif test "x$build_alias" != "x$host_alias"; then |
| 849 | cross_compiling=yes |
| 850 | fi |
| 851 | fi |
| 852 | |
| 853 | ac_tool_prefix= |
| 854 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 855 | |
| 856 | test "$silent" = yes && exec 6>/dev/null |
| 857 | |
| 858 | |
| 859 | # Find the source files, if location was not specified. |
| 860 | if test -z "$srcdir"; then |
| 861 | ac_srcdir_defaulted=yes |
| 862 | # Try the directory containing this script, then its parent. |
| 863 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 864 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 865 | X"$0" : 'X\(//\)[^/]' \| \ |
| 866 | X"$0" : 'X\(//\)$' \| \ |
| 867 | X"$0" : 'X\(/\)' \| \ |
| 868 | . : '\(.\)' 2>/dev/null || |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 869 | echo X"$0" | |
| 870 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 871 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 872 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 873 | /^X\(\/\).*/{ s//\1/; q; } |
| 874 | s/.*/./; q'` |
| 875 | srcdir=$ac_confdir |
| 876 | if test ! -r $srcdir/$ac_unique_file; then |
| 877 | srcdir=.. |
| 878 | fi |
| 879 | else |
| 880 | ac_srcdir_defaulted=no |
| 881 | fi |
| 882 | if test ! -r $srcdir/$ac_unique_file; then |
| 883 | if test "$ac_srcdir_defaulted" = yes; then |
| 884 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 885 | { (exit 1); exit 1; }; } |
| 886 | else |
| 887 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 888 | { (exit 1); exit 1; }; } |
| 889 | fi |
| 890 | fi |
| 891 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 892 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 893 | { (exit 1); exit 1; }; } |
| 894 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 895 | ac_env_build_alias_set=${build_alias+set} |
| 896 | ac_env_build_alias_value=$build_alias |
| 897 | ac_cv_env_build_alias_set=${build_alias+set} |
| 898 | ac_cv_env_build_alias_value=$build_alias |
| 899 | ac_env_host_alias_set=${host_alias+set} |
| 900 | ac_env_host_alias_value=$host_alias |
| 901 | ac_cv_env_host_alias_set=${host_alias+set} |
| 902 | ac_cv_env_host_alias_value=$host_alias |
| 903 | ac_env_target_alias_set=${target_alias+set} |
| 904 | ac_env_target_alias_value=$target_alias |
| 905 | ac_cv_env_target_alias_set=${target_alias+set} |
| 906 | ac_cv_env_target_alias_value=$target_alias |
| 907 | ac_env_CC_set=${CC+set} |
| 908 | ac_env_CC_value=$CC |
| 909 | ac_cv_env_CC_set=${CC+set} |
| 910 | ac_cv_env_CC_value=$CC |
| 911 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 912 | ac_env_CFLAGS_value=$CFLAGS |
| 913 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 914 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 915 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 916 | ac_env_LDFLAGS_value=$LDFLAGS |
| 917 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 918 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 919 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 920 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 921 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 922 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 923 | ac_env_CPP_set=${CPP+set} |
| 924 | ac_env_CPP_value=$CPP |
| 925 | ac_cv_env_CPP_set=${CPP+set} |
| 926 | ac_cv_env_CPP_value=$CPP |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 927 | ac_env_CXX_set=${CXX+set} |
| 928 | ac_env_CXX_value=$CXX |
| 929 | ac_cv_env_CXX_set=${CXX+set} |
| 930 | ac_cv_env_CXX_value=$CXX |
| 931 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 932 | ac_env_CXXFLAGS_value=$CXXFLAGS |
| 933 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 934 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
| 935 | ac_env_CXXCPP_set=${CXXCPP+set} |
| 936 | ac_env_CXXCPP_value=$CXXCPP |
| 937 | ac_cv_env_CXXCPP_set=${CXXCPP+set} |
| 938 | ac_cv_env_CXXCPP_value=$CXXCPP |
| 939 | ac_env_F77_set=${F77+set} |
| 940 | ac_env_F77_value=$F77 |
| 941 | ac_cv_env_F77_set=${F77+set} |
| 942 | ac_cv_env_F77_value=$F77 |
| 943 | ac_env_FFLAGS_set=${FFLAGS+set} |
| 944 | ac_env_FFLAGS_value=$FFLAGS |
| 945 | ac_cv_env_FFLAGS_set=${FFLAGS+set} |
| 946 | ac_cv_env_FFLAGS_value=$FFLAGS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 947 | |
| 948 | # |
| 949 | # Report the --help message. |
| 950 | # |
| 951 | if test "$ac_init_help" = "long"; then |
| 952 | # Omit some internal or obsolete options to make the list less imposing. |
| 953 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 954 | cat <<_ACEOF |
| 955 | \`configure' configures this package to adapt to many kinds of systems. |
| 956 | |
| 957 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 958 | |
| 959 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 960 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 961 | |
| 962 | Defaults for the options are specified in brackets. |
| 963 | |
| 964 | Configuration: |
| 965 | -h, --help display this help and exit |
| 966 | --help=short display options specific to this package |
| 967 | --help=recursive display the short help of all the included packages |
| 968 | -V, --version display version information and exit |
| 969 | -q, --quiet, --silent do not print \`checking...' messages |
| 970 | --cache-file=FILE cache test results in FILE [disabled] |
| 971 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 972 | -n, --no-create do not create output files |
| 973 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 974 | |
| 975 | _ACEOF |
| 976 | |
| 977 | cat <<_ACEOF |
| 978 | Installation directories: |
| 979 | --prefix=PREFIX install architecture-independent files in PREFIX |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 980 | [$ac_default_prefix] |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 981 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 982 | [PREFIX] |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 983 | |
| 984 | By default, \`make install' will install all the files in |
| 985 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 986 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 987 | for instance \`--prefix=\$HOME'. |
| 988 | |
| 989 | For better control, use the options below. |
| 990 | |
| 991 | Fine tuning of the installation directories: |
| 992 | --bindir=DIR user executables [EPREFIX/bin] |
| 993 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 994 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 995 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 996 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 997 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 998 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 999 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1000 | --includedir=DIR C header files [PREFIX/include] |
| 1001 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1002 | --infodir=DIR info documentation [PREFIX/info] |
| 1003 | --mandir=DIR man documentation [PREFIX/man] |
| 1004 | _ACEOF |
| 1005 | |
| 1006 | cat <<\_ACEOF |
| 1007 | |
| 1008 | Program names: |
| 1009 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1010 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1011 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1012 | |
| 1013 | System types: |
| 1014 | --build=BUILD configure for building on BUILD [guessed] |
| 1015 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1016 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1017 | _ACEOF |
| 1018 | fi |
| 1019 | |
| 1020 | if test -n "$ac_init_help"; then |
| 1021 | |
| 1022 | cat <<\_ACEOF |
| 1023 | |
| 1024 | Optional Features: |
| 1025 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1026 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1027 | --enable-maintainer-mode enable make rules and dependencies not useful |
| 1028 | (and sometimes confusing) to the casual installer |
| 1029 | --enable-shared[=PKGS] |
| 1030 | build shared libraries [default=yes] |
| 1031 | --enable-static[=PKGS] |
| 1032 | build static libraries [default=yes] |
| 1033 | --enable-fast-install[=PKGS] |
| 1034 | optimize for fast installation [default=yes] |
| 1035 | --disable-dependency-tracking speeds up one-time build |
| 1036 | --enable-dependency-tracking do not reject slow dependency extractors |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1037 | --disable-libtool-lock avoid locking (might break parallel builds) |
| 1038 | --disable-autoconf disable automatic generation of configure script |
| 1039 | --enable-Werror abort compilation after any C compiler warning |
| 1040 | |
| 1041 | Optional Packages: |
| 1042 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1043 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1044 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1045 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1046 | both] |
| 1047 | --with-tags[=TAGS] |
| 1048 | include additional configurations [automatic] |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1049 | |
| 1050 | Some influential environment variables: |
| 1051 | CC C compiler command |
| 1052 | CFLAGS C compiler flags |
| 1053 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1054 | nonstandard directory <lib dir> |
| 1055 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 1056 | headers in a nonstandard directory <include dir> |
| 1057 | CPP C preprocessor |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1058 | CXX C++ compiler command |
| 1059 | CXXFLAGS C++ compiler flags |
| 1060 | CXXCPP C++ preprocessor |
| 1061 | F77 Fortran 77 compiler command |
| 1062 | FFLAGS Fortran 77 compiler flags |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1063 | |
| 1064 | Use these variables to override the choices made by `configure' or to help |
| 1065 | it to find libraries and programs with nonstandard names/locations. |
| 1066 | |
| 1067 | _ACEOF |
| 1068 | fi |
| 1069 | |
| 1070 | if test "$ac_init_help" = "recursive"; then |
| 1071 | # If there are subdirs, report their specific --help. |
| 1072 | ac_popdir=`pwd` |
| 1073 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1074 | test -d $ac_dir || continue |
| 1075 | ac_builddir=. |
| 1076 | |
| 1077 | if test "$ac_dir" != .; then |
| 1078 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 1079 | # A "../" for each directory in $ac_dir_suffix. |
| 1080 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 1081 | else |
| 1082 | ac_dir_suffix= ac_top_builddir= |
| 1083 | fi |
| 1084 | |
| 1085 | case $srcdir in |
| 1086 | .) # No --srcdir option. We are building in place. |
| 1087 | ac_srcdir=. |
| 1088 | if test -z "$ac_top_builddir"; then |
| 1089 | ac_top_srcdir=. |
| 1090 | else |
| 1091 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 1092 | fi ;; |
| 1093 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 1094 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1095 | ac_top_srcdir=$srcdir ;; |
| 1096 | *) # Relative path. |
| 1097 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 1098 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 1099 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1100 | |
| 1101 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 1102 | # the directories may not exist. |
| 1103 | case `pwd` in |
| 1104 | .) ac_abs_builddir="$ac_dir";; |
| 1105 | *) |
| 1106 | case "$ac_dir" in |
| 1107 | .) ac_abs_builddir=`pwd`;; |
| 1108 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 1109 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 1110 | esac;; |
| 1111 | esac |
| 1112 | case $ac_abs_builddir in |
| 1113 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 1114 | *) |
| 1115 | case ${ac_top_builddir}. in |
| 1116 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 1117 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 1118 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 1119 | esac;; |
| 1120 | esac |
| 1121 | case $ac_abs_builddir in |
| 1122 | .) ac_abs_srcdir=$ac_srcdir;; |
| 1123 | *) |
| 1124 | case $ac_srcdir in |
| 1125 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 1126 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 1127 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 1128 | esac;; |
| 1129 | esac |
| 1130 | case $ac_abs_builddir in |
| 1131 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 1132 | *) |
| 1133 | case $ac_top_srcdir in |
| 1134 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 1135 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 1136 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 1137 | esac;; |
| 1138 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1139 | |
| 1140 | cd $ac_dir |
| 1141 | # Check for guested configure; otherwise get Cygnus style configure. |
| 1142 | if test -f $ac_srcdir/configure.gnu; then |
| 1143 | echo |
| 1144 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 1145 | elif test -f $ac_srcdir/configure; then |
| 1146 | echo |
| 1147 | $SHELL $ac_srcdir/configure --help=recursive |
| 1148 | elif test -f $ac_srcdir/configure.ac || |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1149 | test -f $ac_srcdir/configure.in; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1150 | echo |
| 1151 | $ac_configure --help |
| 1152 | else |
| 1153 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1154 | fi |
| 1155 | cd $ac_popdir |
| 1156 | done |
| 1157 | fi |
| 1158 | |
| 1159 | test -n "$ac_init_help" && exit 0 |
| 1160 | if $ac_init_version; then |
| 1161 | cat <<\_ACEOF |
| 1162 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1163 | Copyright (C) 2003 Free Software Foundation, Inc. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1164 | This configure script is free software; the Free Software Foundation |
| 1165 | gives unlimited permission to copy, distribute and modify it. |
| 1166 | _ACEOF |
| 1167 | exit 0 |
| 1168 | fi |
| 1169 | exec 5>config.log |
| 1170 | cat >&5 <<_ACEOF |
| 1171 | This file contains any messages produced by compilers while |
| 1172 | running configure, to aid debugging if configure makes a mistake. |
| 1173 | |
| 1174 | It was created by $as_me, which was |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1175 | generated by GNU Autoconf 2.59. Invocation command line was |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1176 | |
| 1177 | $ $0 $@ |
| 1178 | |
| 1179 | _ACEOF |
| 1180 | { |
| 1181 | cat <<_ASUNAME |
| 1182 | ## --------- ## |
| 1183 | ## Platform. ## |
| 1184 | ## --------- ## |
| 1185 | |
| 1186 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1187 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1188 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1189 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1190 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1191 | |
| 1192 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1193 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1194 | |
| 1195 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1196 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1197 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1198 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1199 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1200 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1201 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1202 | |
| 1203 | _ASUNAME |
| 1204 | |
| 1205 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1206 | for as_dir in $PATH |
| 1207 | do |
| 1208 | IFS=$as_save_IFS |
| 1209 | test -z "$as_dir" && as_dir=. |
| 1210 | echo "PATH: $as_dir" |
| 1211 | done |
| 1212 | |
| 1213 | } >&5 |
| 1214 | |
| 1215 | cat >&5 <<_ACEOF |
| 1216 | |
| 1217 | |
| 1218 | ## ----------- ## |
| 1219 | ## Core tests. ## |
| 1220 | ## ----------- ## |
| 1221 | |
| 1222 | _ACEOF |
| 1223 | |
| 1224 | |
| 1225 | # Keep a trace of the command line. |
| 1226 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1227 | # Strip out --silent because we don't want to record it for future runs. |
| 1228 | # Also quote any args containing shell meta-characters. |
| 1229 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1230 | ac_configure_args= |
| 1231 | ac_configure_args0= |
| 1232 | ac_configure_args1= |
| 1233 | ac_sep= |
| 1234 | ac_must_keep_next=false |
| 1235 | for ac_pass in 1 2 |
| 1236 | do |
| 1237 | for ac_arg |
| 1238 | do |
| 1239 | case $ac_arg in |
| 1240 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1241 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1242 | | -silent | --silent | --silen | --sile | --sil) |
| 1243 | continue ;; |
| 1244 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1245 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1246 | esac |
| 1247 | case $ac_pass in |
| 1248 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1249 | 2) |
| 1250 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1251 | if test $ac_must_keep_next = true; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1252 | ac_must_keep_next=false # Got value, back to normal. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1253 | else |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1254 | case $ac_arg in |
| 1255 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1256 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1257 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1258 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1259 | case "$ac_configure_args0 " in |
| 1260 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1261 | esac |
| 1262 | ;; |
| 1263 | -* ) ac_must_keep_next=true ;; |
| 1264 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1265 | fi |
| 1266 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1267 | # Get rid of the leading space. |
| 1268 | ac_sep=" " |
| 1269 | ;; |
| 1270 | esac |
| 1271 | done |
| 1272 | done |
| 1273 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1274 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1275 | |
| 1276 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1277 | # config.log. We remove comments because anyway the quotes in there |
| 1278 | # would cause problems or look ugly. |
| 1279 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1280 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1281 | trap 'exit_status=$? |
| 1282 | # Save into config.log some information that might help in debugging. |
| 1283 | { |
| 1284 | echo |
| 1285 | |
| 1286 | cat <<\_ASBOX |
| 1287 | ## ---------------- ## |
| 1288 | ## Cache variables. ## |
| 1289 | ## ---------------- ## |
| 1290 | _ASBOX |
| 1291 | echo |
| 1292 | # The following way of writing the cache mishandles newlines in values, |
| 1293 | { |
| 1294 | (set) 2>&1 | |
| 1295 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1296 | *ac_space=\ *) |
| 1297 | sed -n \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1298 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1299 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1300 | ;; |
| 1301 | *) |
| 1302 | sed -n \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1303 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1304 | ;; |
| 1305 | esac; |
| 1306 | } |
| 1307 | echo |
| 1308 | |
| 1309 | cat <<\_ASBOX |
| 1310 | ## ----------------- ## |
| 1311 | ## Output variables. ## |
| 1312 | ## ----------------- ## |
| 1313 | _ASBOX |
| 1314 | echo |
| 1315 | for ac_var in $ac_subst_vars |
| 1316 | do |
| 1317 | eval ac_val=$`echo $ac_var` |
| 1318 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1319 | done | sort |
| 1320 | echo |
| 1321 | |
| 1322 | if test -n "$ac_subst_files"; then |
| 1323 | cat <<\_ASBOX |
| 1324 | ## ------------- ## |
| 1325 | ## Output files. ## |
| 1326 | ## ------------- ## |
| 1327 | _ASBOX |
| 1328 | echo |
| 1329 | for ac_var in $ac_subst_files |
| 1330 | do |
| 1331 | eval ac_val=$`echo $ac_var` |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1332 | echo "$ac_var='"'"'$ac_val'"'"'" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1333 | done | sort |
| 1334 | echo |
| 1335 | fi |
| 1336 | |
| 1337 | if test -s confdefs.h; then |
| 1338 | cat <<\_ASBOX |
| 1339 | ## ----------- ## |
| 1340 | ## confdefs.h. ## |
| 1341 | ## ----------- ## |
| 1342 | _ASBOX |
| 1343 | echo |
| 1344 | sed "/^$/d" confdefs.h | sort |
| 1345 | echo |
| 1346 | fi |
| 1347 | test "$ac_signal" != 0 && |
| 1348 | echo "$as_me: caught signal $ac_signal" |
| 1349 | echo "$as_me: exit $exit_status" |
| 1350 | } >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1351 | rm -f core *.core && |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1352 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1353 | exit $exit_status |
| 1354 | ' 0 |
| 1355 | for ac_signal in 1 2 13 15; do |
| 1356 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1357 | done |
| 1358 | ac_signal=0 |
| 1359 | |
| 1360 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1361 | rm -rf conftest* confdefs.h |
| 1362 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1363 | echo >confdefs.h |
| 1364 | |
| 1365 | # Predefined preprocessor variables. |
| 1366 | |
| 1367 | cat >>confdefs.h <<_ACEOF |
| 1368 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1369 | _ACEOF |
| 1370 | |
| 1371 | |
| 1372 | cat >>confdefs.h <<_ACEOF |
| 1373 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1374 | _ACEOF |
| 1375 | |
| 1376 | |
| 1377 | cat >>confdefs.h <<_ACEOF |
| 1378 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1379 | _ACEOF |
| 1380 | |
| 1381 | |
| 1382 | cat >>confdefs.h <<_ACEOF |
| 1383 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1384 | _ACEOF |
| 1385 | |
| 1386 | |
| 1387 | cat >>confdefs.h <<_ACEOF |
| 1388 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1389 | _ACEOF |
| 1390 | |
| 1391 | |
| 1392 | # Let the site file select an alternate cache file if it wants to. |
| 1393 | # Prefer explicitly selected file to automatically selected ones. |
| 1394 | if test -z "$CONFIG_SITE"; then |
| 1395 | if test "x$prefix" != xNONE; then |
| 1396 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1397 | else |
| 1398 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1399 | fi |
| 1400 | fi |
| 1401 | for ac_site_file in $CONFIG_SITE; do |
| 1402 | if test -r "$ac_site_file"; then |
| 1403 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1404 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1405 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1406 | . "$ac_site_file" |
| 1407 | fi |
| 1408 | done |
| 1409 | |
| 1410 | if test -r "$cache_file"; then |
| 1411 | # Some versions of bash will fail to source /dev/null (special |
| 1412 | # files actually), so we avoid doing that. |
| 1413 | if test -f "$cache_file"; then |
| 1414 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1415 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1416 | case $cache_file in |
| 1417 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1418 | *) . ./$cache_file;; |
| 1419 | esac |
| 1420 | fi |
| 1421 | else |
| 1422 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1423 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1424 | >$cache_file |
| 1425 | fi |
| 1426 | |
| 1427 | # Check that the precious variables saved in the cache have kept the same |
| 1428 | # value. |
| 1429 | ac_cache_corrupted=false |
| 1430 | for ac_var in `(set) 2>&1 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1431 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1432 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1433 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1434 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1435 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1436 | case $ac_old_set,$ac_new_set in |
| 1437 | set,) |
| 1438 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1439 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1440 | ac_cache_corrupted=: ;; |
| 1441 | ,set) |
| 1442 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1443 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1444 | ac_cache_corrupted=: ;; |
| 1445 | ,);; |
| 1446 | *) |
| 1447 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1448 | { 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] | 1449 | 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] | 1450 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1451 | echo "$as_me: former value: $ac_old_val" >&2;} |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1452 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1453 | echo "$as_me: current value: $ac_new_val" >&2;} |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1454 | ac_cache_corrupted=: |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1455 | fi;; |
| 1456 | esac |
| 1457 | # Pass precious variables to config.status. |
| 1458 | if test "$ac_new_set" = set; then |
| 1459 | case $ac_new_val in |
| 1460 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1461 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1462 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1463 | esac |
| 1464 | case " $ac_configure_args " in |
| 1465 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1466 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1467 | esac |
| 1468 | fi |
| 1469 | done |
| 1470 | if $ac_cache_corrupted; then |
| 1471 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1472 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1473 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1474 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1475 | { (exit 1); exit 1; }; } |
| 1476 | fi |
| 1477 | |
| 1478 | ac_ext=c |
| 1479 | ac_cpp='$CPP $CPPFLAGS' |
| 1480 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1481 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1482 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1483 | |
| 1484 | |
| 1485 | |
| 1486 | |
| 1487 | |
| 1488 | |
| 1489 | |
| 1490 | |
| 1491 | |
| 1492 | |
| 1493 | |
| 1494 | |
| 1495 | |
| 1496 | |
| 1497 | |
| 1498 | |
| 1499 | |
| 1500 | |
| 1501 | |
| 1502 | ac_aux_dir= |
| 1503 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 1504 | if test -f $ac_dir/install-sh; then |
| 1505 | ac_aux_dir=$ac_dir |
| 1506 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1507 | break |
| 1508 | elif test -f $ac_dir/install.sh; then |
| 1509 | ac_aux_dir=$ac_dir |
| 1510 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1511 | break |
| 1512 | elif test -f $ac_dir/shtool; then |
| 1513 | ac_aux_dir=$ac_dir |
| 1514 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1515 | break |
| 1516 | fi |
| 1517 | done |
| 1518 | if test -z "$ac_aux_dir"; then |
| 1519 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 1520 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 1521 | { (exit 1); exit 1; }; } |
| 1522 | fi |
| 1523 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1524 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1525 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| 1526 | |
| 1527 | # Make sure we can run config.sub. |
| 1528 | $ac_config_sub sun4 >/dev/null 2>&1 || |
| 1529 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
| 1530 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 1531 | { (exit 1); exit 1; }; } |
| 1532 | |
| 1533 | echo "$as_me:$LINENO: checking build system type" >&5 |
| 1534 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 1535 | if test "${ac_cv_build+set}" = set; then |
| 1536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1537 | else |
| 1538 | ac_cv_build_alias=$build_alias |
| 1539 | test -z "$ac_cv_build_alias" && |
| 1540 | ac_cv_build_alias=`$ac_config_guess` |
| 1541 | test -z "$ac_cv_build_alias" && |
| 1542 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 1543 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1544 | { (exit 1); exit 1; }; } |
| 1545 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| 1546 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 1547 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
| 1548 | { (exit 1); exit 1; }; } |
| 1549 | |
| 1550 | fi |
| 1551 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1552 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 1553 | build=$ac_cv_build |
| 1554 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1555 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1556 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1557 | |
| 1558 | |
| 1559 | echo "$as_me:$LINENO: checking host system type" >&5 |
| 1560 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 1561 | if test "${ac_cv_host+set}" = set; then |
| 1562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1563 | else |
| 1564 | ac_cv_host_alias=$host_alias |
| 1565 | test -z "$ac_cv_host_alias" && |
| 1566 | ac_cv_host_alias=$ac_cv_build_alias |
| 1567 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| 1568 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| 1569 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 1570 | { (exit 1); exit 1; }; } |
| 1571 | |
| 1572 | fi |
| 1573 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1574 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 1575 | host=$ac_cv_host |
| 1576 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1577 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1578 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1579 | |
| 1580 | |
| 1581 | echo "$as_me:$LINENO: checking target system type" >&5 |
| 1582 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
| 1583 | if test "${ac_cv_target+set}" = set; then |
| 1584 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1585 | else |
| 1586 | ac_cv_target_alias=$target_alias |
| 1587 | test "x$ac_cv_target_alias" = "x" && |
| 1588 | ac_cv_target_alias=$ac_cv_host_alias |
| 1589 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
| 1590 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
| 1591 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
| 1592 | { (exit 1); exit 1; }; } |
| 1593 | |
| 1594 | fi |
| 1595 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 1596 | echo "${ECHO_T}$ac_cv_target" >&6 |
| 1597 | target=$ac_cv_target |
| 1598 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1599 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1600 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1601 | |
| 1602 | |
| 1603 | # The aliases save the names the user supplied, while $host etc. |
| 1604 | # will get canonicalized. |
| 1605 | test -n "$target_alias" && |
| 1606 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 1607 | NONENONEs,x,x, && |
| 1608 | program_prefix=${target_alias}- |
| 1609 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1610 | am__api_version="1.8" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1611 | # Find a good install program. We prefer a C program (faster), |
| 1612 | # so one script is as good as another. But avoid the broken or |
| 1613 | # incompatible versions: |
| 1614 | # SysV /etc/install, /usr/sbin/install |
| 1615 | # SunOS /usr/etc/install |
| 1616 | # IRIX /sbin/install |
| 1617 | # AIX /bin/install |
| 1618 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 1619 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 1620 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1621 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1622 | # OS/2's system install, which has a completely different semantic |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1623 | # ./install, which can be erroneously created by make from ./install.sh. |
| 1624 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 1625 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 1626 | if test -z "$INSTALL"; then |
| 1627 | if test "${ac_cv_path_install+set}" = set; then |
| 1628 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1629 | else |
| 1630 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1631 | for as_dir in $PATH |
| 1632 | do |
| 1633 | IFS=$as_save_IFS |
| 1634 | test -z "$as_dir" && as_dir=. |
| 1635 | # Account for people who put trailing slashes in PATH elements. |
| 1636 | case $as_dir/ in |
| 1637 | ./ | .// | /cC/* | \ |
| 1638 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1639 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1640 | /usr/ucb/* ) ;; |
| 1641 | *) |
| 1642 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 1643 | # Don't use installbsd from OSF since it installs stuff as root |
| 1644 | # by default. |
| 1645 | for ac_prog in ginstall scoinst install; do |
| 1646 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1647 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 1648 | if test $ac_prog = install && |
| 1649 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1650 | # AIX install. It has an incompatible calling convention. |
| 1651 | : |
| 1652 | elif test $ac_prog = install && |
| 1653 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1654 | # program-specific install script used by HP pwplus--don't use. |
| 1655 | : |
| 1656 | else |
| 1657 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 1658 | break 3 |
| 1659 | fi |
| 1660 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1661 | done |
| 1662 | done |
| 1663 | ;; |
| 1664 | esac |
| 1665 | done |
| 1666 | |
| 1667 | |
| 1668 | fi |
| 1669 | if test "${ac_cv_path_install+set}" = set; then |
| 1670 | INSTALL=$ac_cv_path_install |
| 1671 | else |
| 1672 | # As a last resort, use the slow shell script. We don't cache a |
| 1673 | # path for INSTALL within a source directory, because that will |
| 1674 | # break other packages using the cache if that directory is |
| 1675 | # removed, or if the path is relative. |
| 1676 | INSTALL=$ac_install_sh |
| 1677 | fi |
| 1678 | fi |
| 1679 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 1680 | echo "${ECHO_T}$INSTALL" >&6 |
| 1681 | |
| 1682 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 1683 | # It thinks the first close brace ends the variable substitution. |
| 1684 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 1685 | |
| 1686 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 1687 | |
| 1688 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 1689 | |
| 1690 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
| 1691 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
| 1692 | # Just in case |
| 1693 | sleep 1 |
| 1694 | echo timestamp > conftest.file |
| 1695 | # Do `set' in a subshell so we don't clobber the current shell's |
| 1696 | # arguments. Must try -L first in case configure is actually a |
| 1697 | # symlink; some systems play weird games with the mod time of symlinks |
| 1698 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 1699 | # directory). |
| 1700 | if ( |
| 1701 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
| 1702 | if test "$*" = "X"; then |
| 1703 | # -L didn't work. |
| 1704 | set X `ls -t $srcdir/configure conftest.file` |
| 1705 | fi |
| 1706 | rm -f conftest.file |
| 1707 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 1708 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 1709 | |
| 1710 | # If neither matched, then we have a broken ls. This can happen |
| 1711 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 1712 | # broken ls alias from the environment. This has actually |
| 1713 | # happened. Such a system could not be considered "sane". |
| 1714 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
| 1715 | alias in your environment" >&5 |
| 1716 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
| 1717 | alias in your environment" >&2;} |
| 1718 | { (exit 1); exit 1; }; } |
| 1719 | fi |
| 1720 | |
| 1721 | test "$2" = conftest.file |
| 1722 | ) |
| 1723 | then |
| 1724 | # Ok. |
| 1725 | : |
| 1726 | else |
| 1727 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
| 1728 | Check your system clock" >&5 |
| 1729 | echo "$as_me: error: newly created file is older than distributed files! |
| 1730 | Check your system clock" >&2;} |
| 1731 | { (exit 1); exit 1; }; } |
| 1732 | fi |
| 1733 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1734 | echo "${ECHO_T}yes" >&6 |
| 1735 | test "$program_prefix" != NONE && |
| 1736 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
| 1737 | # Use a double $ so make ignores it. |
| 1738 | test "$program_suffix" != NONE && |
| 1739 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
| 1740 | # Double any \ or $. echo might interpret backslashes. |
| 1741 | # By default was `s,x,x', remove it if useless. |
| 1742 | cat <<\_ACEOF >conftest.sed |
| 1743 | s/[\\$]/&&/g;s/;s,x,x,$// |
| 1744 | _ACEOF |
| 1745 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
| 1746 | rm conftest.sed |
| 1747 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1748 | # expand $ac_aux_dir to an absolute path |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1749 | am_aux_dir=`cd $ac_aux_dir && pwd` |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1750 | |
| 1751 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
| 1752 | # Use eval to expand $SHELL |
| 1753 | if eval "$MISSING --run true"; then |
| 1754 | am_missing_run="$MISSING --run " |
| 1755 | else |
| 1756 | am_missing_run= |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1757 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
| 1758 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
| 1759 | fi |
| 1760 | |
| 1761 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
| 1762 | # Keeping the `.' argument allows $(mkdir_p) to be used without |
| 1763 | # argument. Indeed, we sometimes output rules like |
| 1764 | # $(mkdir_p) $(somedir) |
| 1765 | # where $(somedir) is conditionally defined. |
| 1766 | # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more |
| 1767 | # expensive solution, as it forces Make to start a sub-shell.) |
| 1768 | mkdir_p='mkdir -p -- .' |
| 1769 | else |
| 1770 | # On NextStep and OpenStep, the `mkdir' command does not |
| 1771 | # recognize any option. It will interpret all options as |
| 1772 | # directories to create, and then abort because `.' already |
| 1773 | # exists. |
| 1774 | for d in ./-p ./--version; |
| 1775 | do |
| 1776 | test -d $d && rmdir $d |
| 1777 | done |
| 1778 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
| 1779 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
| 1780 | mkdir_p='$(mkinstalldirs)' |
| 1781 | else |
| 1782 | mkdir_p='$(install_sh) -d' |
| 1783 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1784 | fi |
| 1785 | |
| 1786 | for ac_prog in gawk mawk nawk awk |
| 1787 | do |
| 1788 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1789 | set dummy $ac_prog; ac_word=$2 |
| 1790 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1791 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1792 | if test "${ac_cv_prog_AWK+set}" = set; then |
| 1793 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1794 | else |
| 1795 | if test -n "$AWK"; then |
| 1796 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 1797 | else |
| 1798 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1799 | for as_dir in $PATH |
| 1800 | do |
| 1801 | IFS=$as_save_IFS |
| 1802 | test -z "$as_dir" && as_dir=. |
| 1803 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1804 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1805 | ac_cv_prog_AWK="$ac_prog" |
| 1806 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1807 | break 2 |
| 1808 | fi |
| 1809 | done |
| 1810 | done |
| 1811 | |
| 1812 | fi |
| 1813 | fi |
| 1814 | AWK=$ac_cv_prog_AWK |
| 1815 | if test -n "$AWK"; then |
| 1816 | echo "$as_me:$LINENO: result: $AWK" >&5 |
| 1817 | echo "${ECHO_T}$AWK" >&6 |
| 1818 | else |
| 1819 | echo "$as_me:$LINENO: result: no" >&5 |
| 1820 | echo "${ECHO_T}no" >&6 |
| 1821 | fi |
| 1822 | |
| 1823 | test -n "$AWK" && break |
| 1824 | done |
| 1825 | |
| 1826 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 1827 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1828 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1829 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 1830 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1831 | else |
| 1832 | cat >conftest.make <<\_ACEOF |
| 1833 | all: |
| 1834 | @echo 'ac_maketemp="$(MAKE)"' |
| 1835 | _ACEOF |
| 1836 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 1837 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
| 1838 | if test -n "$ac_maketemp"; then |
| 1839 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 1840 | else |
| 1841 | eval ac_cv_prog_make_${ac_make}_set=no |
| 1842 | fi |
| 1843 | rm -f conftest.make |
| 1844 | fi |
| 1845 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 1846 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1847 | echo "${ECHO_T}yes" >&6 |
| 1848 | SET_MAKE= |
| 1849 | else |
| 1850 | echo "$as_me:$LINENO: result: no" >&5 |
| 1851 | echo "${ECHO_T}no" >&6 |
| 1852 | SET_MAKE="MAKE=${MAKE-make}" |
| 1853 | fi |
| 1854 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1855 | rm -rf .tst 2>/dev/null |
| 1856 | mkdir .tst 2>/dev/null |
| 1857 | if test -d .tst; then |
| 1858 | am__leading_dot=. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1859 | else |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1860 | am__leading_dot=_ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1861 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1862 | rmdir .tst 2>/dev/null |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1863 | |
| 1864 | # test to see if srcdir already configured |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1865 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1866 | test -f $srcdir/config.status; then |
| 1867 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
| 1868 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
| 1869 | { (exit 1); exit 1; }; } |
| 1870 | fi |
| 1871 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1872 | # test whether we have cygpath |
| 1873 | if test -z "$CYGPATH_W"; then |
| 1874 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 1875 | CYGPATH_W='cygpath -w' |
| 1876 | else |
| 1877 | CYGPATH_W=echo |
| 1878 | fi |
| 1879 | fi |
| 1880 | |
| 1881 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1882 | # Define the identity of the package. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1883 | PACKAGE=asn1c |
Lev Walkin | 0ca7aec | 2004-10-02 00:12:11 +0000 | [diff] [blame] | 1884 | VERSION=0.9.6.1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1885 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1886 | |
| 1887 | cat >>confdefs.h <<_ACEOF |
| 1888 | #define PACKAGE "$PACKAGE" |
| 1889 | _ACEOF |
| 1890 | |
| 1891 | |
| 1892 | cat >>confdefs.h <<_ACEOF |
| 1893 | #define VERSION "$VERSION" |
| 1894 | _ACEOF |
| 1895 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1896 | # Some tools Automake needs. |
| 1897 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1898 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1899 | |
| 1900 | |
| 1901 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 1902 | |
| 1903 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1904 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1905 | |
| 1906 | |
| 1907 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 1908 | |
| 1909 | |
| 1910 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 1911 | |
| 1912 | |
| 1913 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 1914 | |
| 1915 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
| 1916 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1917 | # Installed binaries are usually stripped using `strip' when the user |
| 1918 | # run `make install-strip'. However `strip' might not be the right |
| 1919 | # tool to use in cross-compilation environments, therefore Automake |
| 1920 | # will honor the `STRIP' environment variable to overrule this program. |
| 1921 | if test "$cross_compiling" != no; then |
| 1922 | if test -n "$ac_tool_prefix"; then |
| 1923 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 1924 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 1925 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1926 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1927 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 1928 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1929 | else |
| 1930 | if test -n "$STRIP"; then |
| 1931 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 1932 | else |
| 1933 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1934 | for as_dir in $PATH |
| 1935 | do |
| 1936 | IFS=$as_save_IFS |
| 1937 | test -z "$as_dir" && as_dir=. |
| 1938 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1939 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1940 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 1941 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1942 | break 2 |
| 1943 | fi |
| 1944 | done |
| 1945 | done |
| 1946 | |
| 1947 | fi |
| 1948 | fi |
| 1949 | STRIP=$ac_cv_prog_STRIP |
| 1950 | if test -n "$STRIP"; then |
| 1951 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 1952 | echo "${ECHO_T}$STRIP" >&6 |
| 1953 | else |
| 1954 | echo "$as_me:$LINENO: result: no" >&5 |
| 1955 | echo "${ECHO_T}no" >&6 |
| 1956 | fi |
| 1957 | |
| 1958 | fi |
| 1959 | if test -z "$ac_cv_prog_STRIP"; then |
| 1960 | ac_ct_STRIP=$STRIP |
| 1961 | # Extract the first word of "strip", so it can be a program name with args. |
| 1962 | set dummy strip; ac_word=$2 |
| 1963 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1964 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1965 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 1966 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1967 | else |
| 1968 | if test -n "$ac_ct_STRIP"; then |
| 1969 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 1970 | else |
| 1971 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1972 | for as_dir in $PATH |
| 1973 | do |
| 1974 | IFS=$as_save_IFS |
| 1975 | test -z "$as_dir" && as_dir=. |
| 1976 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1977 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1978 | ac_cv_prog_ac_ct_STRIP="strip" |
| 1979 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1980 | break 2 |
| 1981 | fi |
| 1982 | done |
| 1983 | done |
| 1984 | |
| 1985 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 1986 | fi |
| 1987 | fi |
| 1988 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 1989 | if test -n "$ac_ct_STRIP"; then |
| 1990 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 1991 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 1992 | else |
| 1993 | echo "$as_me:$LINENO: result: no" >&5 |
| 1994 | echo "${ECHO_T}no" >&6 |
| 1995 | fi |
| 1996 | |
| 1997 | STRIP=$ac_ct_STRIP |
| 1998 | else |
| 1999 | STRIP="$ac_cv_prog_STRIP" |
| 2000 | fi |
| 2001 | |
| 2002 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2003 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
| 2004 | |
| 2005 | # We need awk for the "check" target. The system "awk" is bad on |
| 2006 | # some platforms. |
| 2007 | |
| 2008 | |
| 2009 | |
| 2010 | |
| 2011 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 2012 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 |
| 2013 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
| 2014 | if test "${enable_maintainer_mode+set}" = set; then |
| 2015 | enableval="$enable_maintainer_mode" |
| 2016 | USE_MAINTAINER_MODE=$enableval |
| 2017 | else |
| 2018 | USE_MAINTAINER_MODE=no |
| 2019 | fi; |
| 2020 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 |
| 2021 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 |
| 2022 | |
| 2023 | |
| 2024 | if test $USE_MAINTAINER_MODE = yes; then |
| 2025 | MAINTAINER_MODE_TRUE= |
| 2026 | MAINTAINER_MODE_FALSE='#' |
| 2027 | else |
| 2028 | MAINTAINER_MODE_TRUE='#' |
| 2029 | MAINTAINER_MODE_FALSE= |
| 2030 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2031 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2032 | MAINT=$MAINTAINER_MODE_TRUE |
| 2033 | |
| 2034 | |
| 2035 | |
| 2036 | # Check whether --enable-shared or --disable-shared was given. |
| 2037 | if test "${enable_shared+set}" = set; then |
| 2038 | enableval="$enable_shared" |
| 2039 | p=${PACKAGE-default} |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2040 | case $enableval in |
| 2041 | yes) enable_shared=yes ;; |
| 2042 | no) enable_shared=no ;; |
| 2043 | *) |
| 2044 | enable_shared=no |
| 2045 | # Look at the argument we got. We use all the common list separators. |
| 2046 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 2047 | for pkg in $enableval; do |
| 2048 | IFS="$lt_save_ifs" |
| 2049 | if test "X$pkg" = "X$p"; then |
| 2050 | enable_shared=yes |
| 2051 | fi |
| 2052 | done |
| 2053 | IFS="$lt_save_ifs" |
| 2054 | ;; |
| 2055 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2056 | else |
| 2057 | enable_shared=yes |
| 2058 | fi; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2059 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2060 | # Check whether --enable-static or --disable-static was given. |
| 2061 | if test "${enable_static+set}" = set; then |
| 2062 | enableval="$enable_static" |
| 2063 | p=${PACKAGE-default} |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2064 | case $enableval in |
| 2065 | yes) enable_static=yes ;; |
| 2066 | no) enable_static=no ;; |
| 2067 | *) |
| 2068 | enable_static=no |
| 2069 | # Look at the argument we got. We use all the common list separators. |
| 2070 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 2071 | for pkg in $enableval; do |
| 2072 | IFS="$lt_save_ifs" |
| 2073 | if test "X$pkg" = "X$p"; then |
| 2074 | enable_static=yes |
| 2075 | fi |
| 2076 | done |
| 2077 | IFS="$lt_save_ifs" |
| 2078 | ;; |
| 2079 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2080 | else |
| 2081 | enable_static=yes |
| 2082 | fi; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2083 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2084 | # Check whether --enable-fast-install or --disable-fast-install was given. |
| 2085 | if test "${enable_fast_install+set}" = set; then |
| 2086 | enableval="$enable_fast_install" |
| 2087 | p=${PACKAGE-default} |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2088 | case $enableval in |
| 2089 | yes) enable_fast_install=yes ;; |
| 2090 | no) enable_fast_install=no ;; |
| 2091 | *) |
| 2092 | enable_fast_install=no |
| 2093 | # Look at the argument we got. We use all the common list separators. |
| 2094 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 2095 | for pkg in $enableval; do |
| 2096 | IFS="$lt_save_ifs" |
| 2097 | if test "X$pkg" = "X$p"; then |
| 2098 | enable_fast_install=yes |
| 2099 | fi |
| 2100 | done |
| 2101 | IFS="$lt_save_ifs" |
| 2102 | ;; |
| 2103 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2104 | else |
| 2105 | enable_fast_install=yes |
| 2106 | fi; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2107 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2108 | DEPDIR="${am__leading_dot}deps" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2109 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2110 | ac_config_commands="$ac_config_commands depfiles" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2111 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2112 | |
| 2113 | am_make=${MAKE-make} |
| 2114 | cat > confinc << 'END' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2115 | am__doit: |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2116 | @echo done |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2117 | .PHONY: am__doit |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2118 | END |
| 2119 | # If we don't find an include directive, just comment out the code. |
| 2120 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
| 2121 | 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] | 2122 | am__include="#" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2123 | am__quote= |
| 2124 | _am_result=none |
| 2125 | # First try GNU make style include. |
| 2126 | echo "include confinc" > confmf |
| 2127 | # We grep out `Entering directory' and `Leaving directory' |
| 2128 | # messages which can occur if `w' ends up in MAKEFLAGS. |
| 2129 | # In particular we don't look at `^make:' because GNU make might |
| 2130 | # be invoked under some other name (usually "gmake"), in which |
| 2131 | # case it prints its new name instead of `make'. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2132 | 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] | 2133 | am__include=include |
| 2134 | am__quote= |
| 2135 | _am_result=GNU |
| 2136 | fi |
| 2137 | # Now try BSD make style include. |
| 2138 | if test "$am__include" = "#"; then |
| 2139 | echo '.include "confinc"' > confmf |
| 2140 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
| 2141 | am__include=.include |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2142 | am__quote="\"" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2143 | _am_result=BSD |
| 2144 | fi |
| 2145 | fi |
| 2146 | |
| 2147 | |
| 2148 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
| 2149 | echo "${ECHO_T}$_am_result" >&6 |
| 2150 | rm -f confinc confmf |
| 2151 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2152 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
| 2153 | if test "${enable_dependency_tracking+set}" = set; then |
| 2154 | enableval="$enable_dependency_tracking" |
| 2155 | |
| 2156 | fi; |
| 2157 | if test "x$enable_dependency_tracking" != xno; then |
| 2158 | am_depcomp="$ac_aux_dir/depcomp" |
| 2159 | AMDEPBACKSLASH='\' |
| 2160 | fi |
| 2161 | |
| 2162 | |
| 2163 | if test "x$enable_dependency_tracking" != xno; then |
| 2164 | AMDEP_TRUE= |
| 2165 | AMDEP_FALSE='#' |
| 2166 | else |
| 2167 | AMDEP_TRUE='#' |
| 2168 | AMDEP_FALSE= |
| 2169 | fi |
| 2170 | |
| 2171 | |
| 2172 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2173 | ac_ext=c |
| 2174 | ac_cpp='$CPP $CPPFLAGS' |
| 2175 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2176 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2177 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2178 | if test -n "$ac_tool_prefix"; then |
| 2179 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2180 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 2181 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2182 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2183 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2185 | else |
| 2186 | if test -n "$CC"; then |
| 2187 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2188 | else |
| 2189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2190 | for as_dir in $PATH |
| 2191 | do |
| 2192 | IFS=$as_save_IFS |
| 2193 | test -z "$as_dir" && as_dir=. |
| 2194 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2195 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2196 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2197 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2198 | break 2 |
| 2199 | fi |
| 2200 | done |
| 2201 | done |
| 2202 | |
| 2203 | fi |
| 2204 | fi |
| 2205 | CC=$ac_cv_prog_CC |
| 2206 | if test -n "$CC"; then |
| 2207 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2208 | echo "${ECHO_T}$CC" >&6 |
| 2209 | else |
| 2210 | echo "$as_me:$LINENO: result: no" >&5 |
| 2211 | echo "${ECHO_T}no" >&6 |
| 2212 | fi |
| 2213 | |
| 2214 | fi |
| 2215 | if test -z "$ac_cv_prog_CC"; then |
| 2216 | ac_ct_CC=$CC |
| 2217 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2218 | set dummy gcc; ac_word=$2 |
| 2219 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2220 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2221 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2223 | else |
| 2224 | if test -n "$ac_ct_CC"; then |
| 2225 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2226 | else |
| 2227 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2228 | for as_dir in $PATH |
| 2229 | do |
| 2230 | IFS=$as_save_IFS |
| 2231 | test -z "$as_dir" && as_dir=. |
| 2232 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2233 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2234 | ac_cv_prog_ac_ct_CC="gcc" |
| 2235 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2236 | break 2 |
| 2237 | fi |
| 2238 | done |
| 2239 | done |
| 2240 | |
| 2241 | fi |
| 2242 | fi |
| 2243 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2244 | if test -n "$ac_ct_CC"; then |
| 2245 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2246 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2247 | else |
| 2248 | echo "$as_me:$LINENO: result: no" >&5 |
| 2249 | echo "${ECHO_T}no" >&6 |
| 2250 | fi |
| 2251 | |
| 2252 | CC=$ac_ct_CC |
| 2253 | else |
| 2254 | CC="$ac_cv_prog_CC" |
| 2255 | fi |
| 2256 | |
| 2257 | if test -z "$CC"; then |
| 2258 | if test -n "$ac_tool_prefix"; then |
| 2259 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 2260 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 2261 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2262 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2263 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2264 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2265 | else |
| 2266 | if test -n "$CC"; then |
| 2267 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2268 | else |
| 2269 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2270 | for as_dir in $PATH |
| 2271 | do |
| 2272 | IFS=$as_save_IFS |
| 2273 | test -z "$as_dir" && as_dir=. |
| 2274 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2275 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2276 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2277 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2278 | break 2 |
| 2279 | fi |
| 2280 | done |
| 2281 | done |
| 2282 | |
| 2283 | fi |
| 2284 | fi |
| 2285 | CC=$ac_cv_prog_CC |
| 2286 | if test -n "$CC"; then |
| 2287 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2288 | echo "${ECHO_T}$CC" >&6 |
| 2289 | else |
| 2290 | echo "$as_me:$LINENO: result: no" >&5 |
| 2291 | echo "${ECHO_T}no" >&6 |
| 2292 | fi |
| 2293 | |
| 2294 | fi |
| 2295 | if test -z "$ac_cv_prog_CC"; then |
| 2296 | ac_ct_CC=$CC |
| 2297 | # Extract the first word of "cc", so it can be a program name with args. |
| 2298 | set dummy cc; ac_word=$2 |
| 2299 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2300 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2301 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2302 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2303 | else |
| 2304 | if test -n "$ac_ct_CC"; then |
| 2305 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2306 | else |
| 2307 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2308 | for as_dir in $PATH |
| 2309 | do |
| 2310 | IFS=$as_save_IFS |
| 2311 | test -z "$as_dir" && as_dir=. |
| 2312 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2313 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2314 | ac_cv_prog_ac_ct_CC="cc" |
| 2315 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2316 | break 2 |
| 2317 | fi |
| 2318 | done |
| 2319 | done |
| 2320 | |
| 2321 | fi |
| 2322 | fi |
| 2323 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2324 | if test -n "$ac_ct_CC"; then |
| 2325 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2326 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2327 | else |
| 2328 | echo "$as_me:$LINENO: result: no" >&5 |
| 2329 | echo "${ECHO_T}no" >&6 |
| 2330 | fi |
| 2331 | |
| 2332 | CC=$ac_ct_CC |
| 2333 | else |
| 2334 | CC="$ac_cv_prog_CC" |
| 2335 | fi |
| 2336 | |
| 2337 | fi |
| 2338 | if test -z "$CC"; then |
| 2339 | # Extract the first word of "cc", so it can be a program name with args. |
| 2340 | set dummy cc; ac_word=$2 |
| 2341 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2342 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2343 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2344 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2345 | else |
| 2346 | if test -n "$CC"; then |
| 2347 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2348 | else |
| 2349 | ac_prog_rejected=no |
| 2350 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2351 | for as_dir in $PATH |
| 2352 | do |
| 2353 | IFS=$as_save_IFS |
| 2354 | test -z "$as_dir" && as_dir=. |
| 2355 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2356 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2357 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2358 | ac_prog_rejected=yes |
| 2359 | continue |
| 2360 | fi |
| 2361 | ac_cv_prog_CC="cc" |
| 2362 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2363 | break 2 |
| 2364 | fi |
| 2365 | done |
| 2366 | done |
| 2367 | |
| 2368 | if test $ac_prog_rejected = yes; then |
| 2369 | # We found a bogon in the path, so make sure we never use it. |
| 2370 | set dummy $ac_cv_prog_CC |
| 2371 | shift |
| 2372 | if test $# != 0; then |
| 2373 | # We chose a different compiler from the bogus one. |
| 2374 | # However, it has the same basename, so the bogon will be chosen |
| 2375 | # first if we set CC to just the basename; use the full file name. |
| 2376 | shift |
| 2377 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2378 | fi |
| 2379 | fi |
| 2380 | fi |
| 2381 | fi |
| 2382 | CC=$ac_cv_prog_CC |
| 2383 | if test -n "$CC"; then |
| 2384 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2385 | echo "${ECHO_T}$CC" >&6 |
| 2386 | else |
| 2387 | echo "$as_me:$LINENO: result: no" >&5 |
| 2388 | echo "${ECHO_T}no" >&6 |
| 2389 | fi |
| 2390 | |
| 2391 | fi |
| 2392 | if test -z "$CC"; then |
| 2393 | if test -n "$ac_tool_prefix"; then |
| 2394 | for ac_prog in cl |
| 2395 | do |
| 2396 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2397 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2398 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2399 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2400 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2401 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2402 | else |
| 2403 | if test -n "$CC"; then |
| 2404 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2405 | else |
| 2406 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2407 | for as_dir in $PATH |
| 2408 | do |
| 2409 | IFS=$as_save_IFS |
| 2410 | test -z "$as_dir" && as_dir=. |
| 2411 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2412 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2413 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2414 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2415 | break 2 |
| 2416 | fi |
| 2417 | done |
| 2418 | done |
| 2419 | |
| 2420 | fi |
| 2421 | fi |
| 2422 | CC=$ac_cv_prog_CC |
| 2423 | if test -n "$CC"; then |
| 2424 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2425 | echo "${ECHO_T}$CC" >&6 |
| 2426 | else |
| 2427 | echo "$as_me:$LINENO: result: no" >&5 |
| 2428 | echo "${ECHO_T}no" >&6 |
| 2429 | fi |
| 2430 | |
| 2431 | test -n "$CC" && break |
| 2432 | done |
| 2433 | fi |
| 2434 | if test -z "$CC"; then |
| 2435 | ac_ct_CC=$CC |
| 2436 | for ac_prog in cl |
| 2437 | do |
| 2438 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2439 | set dummy $ac_prog; ac_word=$2 |
| 2440 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2441 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2442 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2443 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2444 | else |
| 2445 | if test -n "$ac_ct_CC"; then |
| 2446 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2447 | else |
| 2448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2449 | for as_dir in $PATH |
| 2450 | do |
| 2451 | IFS=$as_save_IFS |
| 2452 | test -z "$as_dir" && as_dir=. |
| 2453 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2454 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2455 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2456 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2457 | break 2 |
| 2458 | fi |
| 2459 | done |
| 2460 | done |
| 2461 | |
| 2462 | fi |
| 2463 | fi |
| 2464 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2465 | if test -n "$ac_ct_CC"; then |
| 2466 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2467 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2468 | else |
| 2469 | echo "$as_me:$LINENO: result: no" >&5 |
| 2470 | echo "${ECHO_T}no" >&6 |
| 2471 | fi |
| 2472 | |
| 2473 | test -n "$ac_ct_CC" && break |
| 2474 | done |
| 2475 | |
| 2476 | CC=$ac_ct_CC |
| 2477 | fi |
| 2478 | |
| 2479 | fi |
| 2480 | |
| 2481 | |
| 2482 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2483 | See \`config.log' for more details." >&5 |
| 2484 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2485 | See \`config.log' for more details." >&2;} |
| 2486 | { (exit 1); exit 1; }; } |
| 2487 | |
| 2488 | # Provide some information about the compiler. |
| 2489 | echo "$as_me:$LINENO:" \ |
| 2490 | "checking for C compiler version" >&5 |
| 2491 | ac_compiler=`set X $ac_compile; echo $2` |
| 2492 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2493 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2494 | ac_status=$? |
| 2495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2496 | (exit $ac_status); } |
| 2497 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2498 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2499 | ac_status=$? |
| 2500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2501 | (exit $ac_status); } |
| 2502 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2503 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2504 | ac_status=$? |
| 2505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2506 | (exit $ac_status); } |
| 2507 | |
| 2508 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2509 | /* confdefs.h. */ |
| 2510 | _ACEOF |
| 2511 | cat confdefs.h >>conftest.$ac_ext |
| 2512 | cat >>conftest.$ac_ext <<_ACEOF |
| 2513 | /* end confdefs.h. */ |
| 2514 | |
| 2515 | int |
| 2516 | main () |
| 2517 | { |
| 2518 | |
| 2519 | ; |
| 2520 | return 0; |
| 2521 | } |
| 2522 | _ACEOF |
| 2523 | ac_clean_files_save=$ac_clean_files |
| 2524 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 2525 | # Try to create an executable without -o first, disregard a.out. |
| 2526 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2527 | # of exeext. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2528 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2529 | 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] | 2530 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2531 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2532 | (eval $ac_link_default) 2>&5 |
| 2533 | ac_status=$? |
| 2534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2535 | (exit $ac_status); }; then |
| 2536 | # Find the output, starting from the most likely. This scheme is |
| 2537 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2538 | # resort. |
| 2539 | |
| 2540 | # Be careful to initialize this variable, since it used to be cached. |
| 2541 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2542 | ac_cv_exeext= |
| 2543 | # b.out is created by i960 compilers. |
| 2544 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 2545 | do |
| 2546 | test -f "$ac_file" || continue |
| 2547 | case $ac_file in |
| 2548 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2549 | ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2550 | conftest.$ac_ext ) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2551 | # This is the source file. |
| 2552 | ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2553 | [ab].out ) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2554 | # We found the default executable, but exeext='' is most |
| 2555 | # certainly right. |
| 2556 | break;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2557 | *.* ) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2558 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2559 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 2560 | # but it would be cool to find out if it's true. Does anybody |
| 2561 | # maintain Libtool? --akim. |
| 2562 | export ac_cv_exeext |
| 2563 | break;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2564 | * ) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2565 | break;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2566 | esac |
| 2567 | done |
| 2568 | else |
| 2569 | echo "$as_me: failed program was:" >&5 |
| 2570 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2571 | |
| 2572 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2573 | See \`config.log' for more details." >&5 |
| 2574 | echo "$as_me: error: C compiler cannot create executables |
| 2575 | See \`config.log' for more details." >&2;} |
| 2576 | { (exit 77); exit 77; }; } |
| 2577 | fi |
| 2578 | |
| 2579 | ac_exeext=$ac_cv_exeext |
| 2580 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2581 | echo "${ECHO_T}$ac_file" >&6 |
| 2582 | |
| 2583 | # Check the compiler produces executables we can run. If not, either |
| 2584 | # the compiler is broken, or we cross compile. |
| 2585 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2586 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2587 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2588 | # If not cross compiling, check that we can run a simple program. |
| 2589 | if test "$cross_compiling" != yes; then |
| 2590 | if { ac_try='./$ac_file' |
| 2591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2592 | (eval $ac_try) 2>&5 |
| 2593 | ac_status=$? |
| 2594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2595 | (exit $ac_status); }; }; then |
| 2596 | cross_compiling=no |
| 2597 | else |
| 2598 | if test "$cross_compiling" = maybe; then |
| 2599 | cross_compiling=yes |
| 2600 | else |
| 2601 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2602 | If you meant to cross compile, use \`--host'. |
| 2603 | See \`config.log' for more details." >&5 |
| 2604 | echo "$as_me: error: cannot run C compiled programs. |
| 2605 | If you meant to cross compile, use \`--host'. |
| 2606 | See \`config.log' for more details." >&2;} |
| 2607 | { (exit 1); exit 1; }; } |
| 2608 | fi |
| 2609 | fi |
| 2610 | fi |
| 2611 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2612 | echo "${ECHO_T}yes" >&6 |
| 2613 | |
| 2614 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 2615 | ac_clean_files=$ac_clean_files_save |
| 2616 | # Check the compiler produces executables we can run. If not, either |
| 2617 | # the compiler is broken, or we cross compile. |
| 2618 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2619 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2620 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2621 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2622 | |
| 2623 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2624 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2625 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2626 | (eval $ac_link) 2>&5 |
| 2627 | ac_status=$? |
| 2628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2629 | (exit $ac_status); }; then |
| 2630 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2631 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2632 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2633 | # `rm'. |
| 2634 | for ac_file in conftest.exe conftest conftest.*; do |
| 2635 | test -f "$ac_file" || continue |
| 2636 | case $ac_file in |
| 2637 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
| 2638 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2639 | export ac_cv_exeext |
| 2640 | break;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2641 | * ) break;; |
| 2642 | esac |
| 2643 | done |
| 2644 | else |
| 2645 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2646 | See \`config.log' for more details." >&5 |
| 2647 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2648 | See \`config.log' for more details." >&2;} |
| 2649 | { (exit 1); exit 1; }; } |
| 2650 | fi |
| 2651 | |
| 2652 | rm -f conftest$ac_cv_exeext |
| 2653 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2654 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2655 | |
| 2656 | rm -f conftest.$ac_ext |
| 2657 | EXEEXT=$ac_cv_exeext |
| 2658 | ac_exeext=$EXEEXT |
| 2659 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2660 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2661 | if test "${ac_cv_objext+set}" = set; then |
| 2662 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2663 | else |
| 2664 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2665 | /* confdefs.h. */ |
| 2666 | _ACEOF |
| 2667 | cat confdefs.h >>conftest.$ac_ext |
| 2668 | cat >>conftest.$ac_ext <<_ACEOF |
| 2669 | /* end confdefs.h. */ |
| 2670 | |
| 2671 | int |
| 2672 | main () |
| 2673 | { |
| 2674 | |
| 2675 | ; |
| 2676 | return 0; |
| 2677 | } |
| 2678 | _ACEOF |
| 2679 | rm -f conftest.o conftest.obj |
| 2680 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2681 | (eval $ac_compile) 2>&5 |
| 2682 | ac_status=$? |
| 2683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2684 | (exit $ac_status); }; then |
| 2685 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2686 | case $ac_file in |
| 2687 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
| 2688 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2689 | break;; |
| 2690 | esac |
| 2691 | done |
| 2692 | else |
| 2693 | echo "$as_me: failed program was:" >&5 |
| 2694 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2695 | |
| 2696 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2697 | See \`config.log' for more details." >&5 |
| 2698 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2699 | See \`config.log' for more details." >&2;} |
| 2700 | { (exit 1); exit 1; }; } |
| 2701 | fi |
| 2702 | |
| 2703 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2704 | fi |
| 2705 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2706 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2707 | OBJEXT=$ac_cv_objext |
| 2708 | ac_objext=$OBJEXT |
| 2709 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2710 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2711 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2712 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2713 | else |
| 2714 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2715 | /* confdefs.h. */ |
| 2716 | _ACEOF |
| 2717 | cat confdefs.h >>conftest.$ac_ext |
| 2718 | cat >>conftest.$ac_ext <<_ACEOF |
| 2719 | /* end confdefs.h. */ |
| 2720 | |
| 2721 | int |
| 2722 | main () |
| 2723 | { |
| 2724 | #ifndef __GNUC__ |
| 2725 | choke me |
| 2726 | #endif |
| 2727 | |
| 2728 | ; |
| 2729 | return 0; |
| 2730 | } |
| 2731 | _ACEOF |
| 2732 | rm -f conftest.$ac_objext |
| 2733 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2734 | (eval $ac_compile) 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2735 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2736 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2737 | rm -f conftest.er1 |
| 2738 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2740 | (exit $ac_status); } && |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2741 | { ac_try='test -z "$ac_c_werror_flag" |
| 2742 | || test ! -s conftest.err' |
| 2743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2744 | (eval $ac_try) 2>&5 |
| 2745 | ac_status=$? |
| 2746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2747 | (exit $ac_status); }; } && |
| 2748 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2750 | (eval $ac_try) 2>&5 |
| 2751 | ac_status=$? |
| 2752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2753 | (exit $ac_status); }; }; then |
| 2754 | ac_compiler_gnu=yes |
| 2755 | else |
| 2756 | echo "$as_me: failed program was:" >&5 |
| 2757 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2758 | |
| 2759 | ac_compiler_gnu=no |
| 2760 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2761 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2762 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2763 | |
| 2764 | fi |
| 2765 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2766 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2767 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2768 | ac_test_CFLAGS=${CFLAGS+set} |
| 2769 | ac_save_CFLAGS=$CFLAGS |
| 2770 | CFLAGS="-g" |
| 2771 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2772 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2773 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2774 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2775 | else |
| 2776 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2777 | /* confdefs.h. */ |
| 2778 | _ACEOF |
| 2779 | cat confdefs.h >>conftest.$ac_ext |
| 2780 | cat >>conftest.$ac_ext <<_ACEOF |
| 2781 | /* end confdefs.h. */ |
| 2782 | |
| 2783 | int |
| 2784 | main () |
| 2785 | { |
| 2786 | |
| 2787 | ; |
| 2788 | return 0; |
| 2789 | } |
| 2790 | _ACEOF |
| 2791 | rm -f conftest.$ac_objext |
| 2792 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2793 | (eval $ac_compile) 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2794 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2795 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2796 | rm -f conftest.er1 |
| 2797 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2799 | (exit $ac_status); } && |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2800 | { ac_try='test -z "$ac_c_werror_flag" |
| 2801 | || test ! -s conftest.err' |
| 2802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2803 | (eval $ac_try) 2>&5 |
| 2804 | ac_status=$? |
| 2805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2806 | (exit $ac_status); }; } && |
| 2807 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2809 | (eval $ac_try) 2>&5 |
| 2810 | ac_status=$? |
| 2811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2812 | (exit $ac_status); }; }; then |
| 2813 | ac_cv_prog_cc_g=yes |
| 2814 | else |
| 2815 | echo "$as_me: failed program was:" >&5 |
| 2816 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2817 | |
| 2818 | ac_cv_prog_cc_g=no |
| 2819 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2820 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2821 | fi |
| 2822 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2823 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 2824 | if test "$ac_test_CFLAGS" = set; then |
| 2825 | CFLAGS=$ac_save_CFLAGS |
| 2826 | elif test $ac_cv_prog_cc_g = yes; then |
| 2827 | if test "$GCC" = yes; then |
| 2828 | CFLAGS="-g -O2" |
| 2829 | else |
| 2830 | CFLAGS="-g" |
| 2831 | fi |
| 2832 | else |
| 2833 | if test "$GCC" = yes; then |
| 2834 | CFLAGS="-O2" |
| 2835 | else |
| 2836 | CFLAGS= |
| 2837 | fi |
| 2838 | fi |
| 2839 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2840 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2841 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2843 | else |
| 2844 | ac_cv_prog_cc_stdc=no |
| 2845 | ac_save_CC=$CC |
| 2846 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2847 | /* confdefs.h. */ |
| 2848 | _ACEOF |
| 2849 | cat confdefs.h >>conftest.$ac_ext |
| 2850 | cat >>conftest.$ac_ext <<_ACEOF |
| 2851 | /* end confdefs.h. */ |
| 2852 | #include <stdarg.h> |
| 2853 | #include <stdio.h> |
| 2854 | #include <sys/types.h> |
| 2855 | #include <sys/stat.h> |
| 2856 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2857 | struct buf { int x; }; |
| 2858 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2859 | static char *e (p, i) |
| 2860 | char **p; |
| 2861 | int i; |
| 2862 | { |
| 2863 | return p[i]; |
| 2864 | } |
| 2865 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2866 | { |
| 2867 | char *s; |
| 2868 | va_list v; |
| 2869 | va_start (v,p); |
| 2870 | s = g (p, va_arg (v,int)); |
| 2871 | va_end (v); |
| 2872 | return s; |
| 2873 | } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2874 | |
| 2875 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2876 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2877 | These don't provoke an error unfortunately, instead are silently treated |
| 2878 | as 'x'. The following induces an error, until -std1 is added to get |
| 2879 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2880 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2881 | that's true only with -std1. */ |
| 2882 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2883 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2884 | int test (int i, double x); |
| 2885 | struct s1 {int (*f) (int a);}; |
| 2886 | struct s2 {int (*f) (double a);}; |
| 2887 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2888 | int argc; |
| 2889 | char **argv; |
| 2890 | int |
| 2891 | main () |
| 2892 | { |
| 2893 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2894 | ; |
| 2895 | return 0; |
| 2896 | } |
| 2897 | _ACEOF |
| 2898 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2899 | # breaks some systems' header files. |
| 2900 | # AIX -qlanglvl=ansi |
| 2901 | # Ultrix and OSF/1 -std1 |
| 2902 | # HP-UX 10.20 and later -Ae |
| 2903 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2904 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2905 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2906 | do |
| 2907 | CC="$ac_save_CC $ac_arg" |
| 2908 | rm -f conftest.$ac_objext |
| 2909 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2910 | (eval $ac_compile) 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2911 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2912 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2913 | rm -f conftest.er1 |
| 2914 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2916 | (exit $ac_status); } && |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2917 | { ac_try='test -z "$ac_c_werror_flag" |
| 2918 | || test ! -s conftest.err' |
| 2919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2920 | (eval $ac_try) 2>&5 |
| 2921 | ac_status=$? |
| 2922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2923 | (exit $ac_status); }; } && |
| 2924 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2926 | (eval $ac_try) 2>&5 |
| 2927 | ac_status=$? |
| 2928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2929 | (exit $ac_status); }; }; then |
| 2930 | ac_cv_prog_cc_stdc=$ac_arg |
| 2931 | break |
| 2932 | else |
| 2933 | echo "$as_me: failed program was:" >&5 |
| 2934 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2935 | |
| 2936 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2937 | rm -f conftest.err conftest.$ac_objext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2938 | done |
| 2939 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2940 | CC=$ac_save_CC |
| 2941 | |
| 2942 | fi |
| 2943 | |
| 2944 | case "x$ac_cv_prog_cc_stdc" in |
| 2945 | x|xno) |
| 2946 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2947 | echo "${ECHO_T}none needed" >&6 ;; |
| 2948 | *) |
| 2949 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2950 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2951 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2952 | esac |
| 2953 | |
| 2954 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2955 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2956 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2957 | # the declaration of exit, since it's the most demanding environment. |
| 2958 | cat >conftest.$ac_ext <<_ACEOF |
| 2959 | #ifndef __cplusplus |
| 2960 | choke me |
| 2961 | #endif |
| 2962 | _ACEOF |
| 2963 | rm -f conftest.$ac_objext |
| 2964 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2965 | (eval $ac_compile) 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2966 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2967 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2968 | rm -f conftest.er1 |
| 2969 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2971 | (exit $ac_status); } && |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2972 | { ac_try='test -z "$ac_c_werror_flag" |
| 2973 | || test ! -s conftest.err' |
| 2974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2975 | (eval $ac_try) 2>&5 |
| 2976 | ac_status=$? |
| 2977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2978 | (exit $ac_status); }; } && |
| 2979 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2981 | (eval $ac_try) 2>&5 |
| 2982 | ac_status=$? |
| 2983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2984 | (exit $ac_status); }; }; then |
| 2985 | for ac_declaration in \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2986 | '' \ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2987 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2988 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2989 | 'extern "C" void exit (int) throw ();' \ |
| 2990 | 'extern "C" void exit (int);' \ |
| 2991 | 'void exit (int);' |
| 2992 | do |
| 2993 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2994 | /* confdefs.h. */ |
| 2995 | _ACEOF |
| 2996 | cat confdefs.h >>conftest.$ac_ext |
| 2997 | cat >>conftest.$ac_ext <<_ACEOF |
| 2998 | /* end confdefs.h. */ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2999 | $ac_declaration |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3000 | #include <stdlib.h> |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3001 | int |
| 3002 | main () |
| 3003 | { |
| 3004 | exit (42); |
| 3005 | ; |
| 3006 | return 0; |
| 3007 | } |
| 3008 | _ACEOF |
| 3009 | rm -f conftest.$ac_objext |
| 3010 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3011 | (eval $ac_compile) 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3012 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3013 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3014 | rm -f conftest.er1 |
| 3015 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3017 | (exit $ac_status); } && |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3018 | { ac_try='test -z "$ac_c_werror_flag" |
| 3019 | || test ! -s conftest.err' |
| 3020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3021 | (eval $ac_try) 2>&5 |
| 3022 | ac_status=$? |
| 3023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3024 | (exit $ac_status); }; } && |
| 3025 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3027 | (eval $ac_try) 2>&5 |
| 3028 | ac_status=$? |
| 3029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3030 | (exit $ac_status); }; }; then |
| 3031 | : |
| 3032 | else |
| 3033 | echo "$as_me: failed program was:" >&5 |
| 3034 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3035 | |
| 3036 | continue |
| 3037 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3038 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3039 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3040 | /* confdefs.h. */ |
| 3041 | _ACEOF |
| 3042 | cat confdefs.h >>conftest.$ac_ext |
| 3043 | cat >>conftest.$ac_ext <<_ACEOF |
| 3044 | /* end confdefs.h. */ |
| 3045 | $ac_declaration |
| 3046 | int |
| 3047 | main () |
| 3048 | { |
| 3049 | exit (42); |
| 3050 | ; |
| 3051 | return 0; |
| 3052 | } |
| 3053 | _ACEOF |
| 3054 | rm -f conftest.$ac_objext |
| 3055 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3056 | (eval $ac_compile) 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3057 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3058 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3059 | rm -f conftest.er1 |
| 3060 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3062 | (exit $ac_status); } && |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3063 | { ac_try='test -z "$ac_c_werror_flag" |
| 3064 | || test ! -s conftest.err' |
| 3065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3066 | (eval $ac_try) 2>&5 |
| 3067 | ac_status=$? |
| 3068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3069 | (exit $ac_status); }; } && |
| 3070 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3072 | (eval $ac_try) 2>&5 |
| 3073 | ac_status=$? |
| 3074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3075 | (exit $ac_status); }; }; then |
| 3076 | break |
| 3077 | else |
| 3078 | echo "$as_me: failed program was:" >&5 |
| 3079 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3080 | |
| 3081 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3082 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3083 | done |
| 3084 | rm -f conftest* |
| 3085 | if test -n "$ac_declaration"; then |
| 3086 | echo '#ifdef __cplusplus' >>confdefs.h |
| 3087 | echo $ac_declaration >>confdefs.h |
| 3088 | echo '#endif' >>confdefs.h |
| 3089 | fi |
| 3090 | |
| 3091 | else |
| 3092 | echo "$as_me: failed program was:" >&5 |
| 3093 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3094 | |
| 3095 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3096 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3097 | ac_ext=c |
| 3098 | ac_cpp='$CPP $CPPFLAGS' |
| 3099 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3100 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3101 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3102 | |
| 3103 | depcc="$CC" am_compiler_list= |
| 3104 | |
| 3105 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 3106 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
| 3107 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
| 3108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3109 | else |
| 3110 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 3111 | # We make a subdir and do the tests there. Otherwise we can end up |
| 3112 | # making bogus files that we don't know about and never remove. For |
| 3113 | # instance it was reported that on HP-UX the gcc test will end up |
| 3114 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 3115 | # in D'. |
| 3116 | mkdir conftest.dir |
| 3117 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 3118 | # using a relative directory. |
| 3119 | cp "$am_depcomp" conftest.dir |
| 3120 | cd conftest.dir |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3121 | # We will build objects and dependencies in a subdirectory because |
| 3122 | # it helps to detect inapplicable dependency modes. For instance |
| 3123 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 3124 | # side effect of compilation, but ICC will put the dependencies in |
| 3125 | # the current directory while Tru64 will put them in the object |
| 3126 | # directory. |
| 3127 | mkdir sub |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3128 | |
| 3129 | am_cv_CC_dependencies_compiler_type=none |
| 3130 | if test "$am_compiler_list" = ""; then |
| 3131 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 3132 | fi |
| 3133 | for depmode in $am_compiler_list; do |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3134 | # Setup a source with many dependencies, because some compilers |
| 3135 | # like to wrap large dependency lists on column 80 (with \), and |
| 3136 | # we should not choose a depcomp mode which is confused by this. |
| 3137 | # |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3138 | # We need to recreate these files for each test, as the compiler may |
| 3139 | # overwrite some of them when testing with obscure command lines. |
| 3140 | # This happens at least with the AIX C compiler. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3141 | : > sub/conftest.c |
| 3142 | for i in 1 2 3 4 5 6; do |
| 3143 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 3144 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 3145 | # Solaris 8's {/usr,}/bin/sh. |
| 3146 | touch sub/conftst$i.h |
| 3147 | done |
| 3148 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3149 | |
| 3150 | case $depmode in |
| 3151 | nosideeffect) |
| 3152 | # after this tag, mechanisms are not by side-effect, so they'll |
| 3153 | # only be used when explicitly requested |
| 3154 | if test "x$enable_dependency_tracking" = xyes; then |
| 3155 | continue |
| 3156 | else |
| 3157 | break |
| 3158 | fi |
| 3159 | ;; |
| 3160 | none) break ;; |
| 3161 | esac |
| 3162 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 3163 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 3164 | # handle `-M -o', and we need to detect this. |
| 3165 | if depmode=$depmode \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3166 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| 3167 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 3168 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| 3169 | >/dev/null 2>conftest.err && |
| 3170 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 3171 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3172 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3173 | # icc doesn't choke on unknown options, it will just issue warnings |
| 3174 | # or remarks (even with -Werror). So we grep stderr for any message |
| 3175 | # that says an option was ignored or not supported. |
| 3176 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 3177 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 3178 | # The diagnosis changed in icc 8.0: |
| 3179 | # icc: Command line remark: option '-MP' not supported |
| 3180 | if (grep 'ignoring option' conftest.err || |
| 3181 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 3182 | am_cv_CC_dependencies_compiler_type=$depmode |
| 3183 | break |
| 3184 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3185 | fi |
| 3186 | done |
| 3187 | |
| 3188 | cd .. |
| 3189 | rm -rf conftest.dir |
| 3190 | else |
| 3191 | am_cv_CC_dependencies_compiler_type=none |
| 3192 | fi |
| 3193 | |
| 3194 | fi |
| 3195 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 3196 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3197 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 3198 | |
| 3199 | |
| 3200 | |
| 3201 | if |
| 3202 | test "x$enable_dependency_tracking" != xno \ |
| 3203 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 3204 | am__fastdepCC_TRUE= |
| 3205 | am__fastdepCC_FALSE='#' |
| 3206 | else |
| 3207 | am__fastdepCC_TRUE='#' |
| 3208 | am__fastdepCC_FALSE= |
| 3209 | fi |
| 3210 | |
| 3211 | |
| 3212 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 3213 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
| 3214 | if test "${lt_cv_path_SED+set}" = set; then |
| 3215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3216 | else |
| 3217 | # Loop through the user's path and test for sed and gsed. |
| 3218 | # Then use that list of sed's as ones to test for truncation. |
| 3219 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3220 | for as_dir in $PATH |
| 3221 | do |
| 3222 | IFS=$as_save_IFS |
| 3223 | test -z "$as_dir" && as_dir=. |
| 3224 | for lt_ac_prog in sed gsed; do |
| 3225 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3226 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
| 3227 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
| 3228 | fi |
| 3229 | done |
| 3230 | done |
| 3231 | done |
| 3232 | lt_ac_max=0 |
| 3233 | lt_ac_count=0 |
| 3234 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 3235 | # along with /bin/sed that truncates output. |
| 3236 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
| 3237 | test ! -f $lt_ac_sed && break |
| 3238 | cat /dev/null > conftest.in |
| 3239 | lt_ac_count=0 |
| 3240 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| 3241 | # Check for GNU sed and select it if it is found. |
| 3242 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
| 3243 | lt_cv_path_SED=$lt_ac_sed |
| 3244 | break |
| 3245 | fi |
| 3246 | while true; do |
| 3247 | cat conftest.in conftest.in >conftest.tmp |
| 3248 | mv conftest.tmp conftest.in |
| 3249 | cp conftest.in conftest.nl |
| 3250 | echo >>conftest.nl |
| 3251 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
| 3252 | cmp -s conftest.out conftest.nl || break |
| 3253 | # 10000 chars as input seems more than enough |
| 3254 | test $lt_ac_count -gt 10 && break |
| 3255 | lt_ac_count=`expr $lt_ac_count + 1` |
| 3256 | if test $lt_ac_count -gt $lt_ac_max; then |
| 3257 | lt_ac_max=$lt_ac_count |
| 3258 | lt_cv_path_SED=$lt_ac_sed |
| 3259 | fi |
| 3260 | done |
| 3261 | done |
| 3262 | SED=$lt_cv_path_SED |
| 3263 | |
| 3264 | fi |
| 3265 | |
| 3266 | echo "$as_me:$LINENO: result: $SED" >&5 |
| 3267 | echo "${ECHO_T}$SED" >&6 |
| 3268 | |
| 3269 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3270 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 3271 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 3272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3273 | else |
| 3274 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 3275 | then ac_cv_prog_egrep='grep -E' |
| 3276 | else ac_cv_prog_egrep='egrep' |
| 3277 | fi |
| 3278 | fi |
| 3279 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 3280 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 3281 | EGREP=$ac_cv_prog_egrep |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3282 | |
| 3283 | |
| 3284 | |
| 3285 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 3286 | if test "${with_gnu_ld+set}" = set; then |
| 3287 | withval="$with_gnu_ld" |
| 3288 | test "$withval" = no || with_gnu_ld=yes |
| 3289 | else |
| 3290 | with_gnu_ld=no |
| 3291 | fi; |
| 3292 | ac_prog=ld |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3293 | if test "$GCC" = yes; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3294 | # Check if gcc -print-prog-name=ld gives a path. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3295 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 3296 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
| 3297 | case $host in |
| 3298 | *-*-mingw*) |
| 3299 | # gcc leaves a trailing carriage return which upsets mingw |
| 3300 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 3301 | *) |
| 3302 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 3303 | esac |
| 3304 | case $ac_prog in |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3305 | # Accept absolute paths. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3306 | [\\/]* | ?:[\\/]*) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3307 | re_direlt='/[^/][^/]*/\.\./' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3308 | # Canonicalize the pathname of ld |
| 3309 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3310 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3311 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3312 | done |
| 3313 | test -z "$LD" && LD="$ac_prog" |
| 3314 | ;; |
| 3315 | "") |
| 3316 | # If it fails, then pretend we aren't using GCC. |
| 3317 | ac_prog=ld |
| 3318 | ;; |
| 3319 | *) |
| 3320 | # If it is relative, then search for the first ld in PATH. |
| 3321 | with_gnu_ld=unknown |
| 3322 | ;; |
| 3323 | esac |
| 3324 | elif test "$with_gnu_ld" = yes; then |
| 3325 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 3326 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 3327 | else |
| 3328 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 3329 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 3330 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3331 | if test "${lt_cv_path_LD+set}" = set; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3332 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3333 | else |
| 3334 | if test -z "$LD"; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3335 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3336 | for ac_dir in $PATH; do |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3337 | IFS="$lt_save_ifs" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3338 | test -z "$ac_dir" && ac_dir=. |
| 3339 | 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] | 3340 | lt_cv_path_LD="$ac_dir/$ac_prog" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3341 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 3342 | # but apparently some GNU ld's only accept -v. |
| 3343 | # 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] | 3344 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 3345 | *GNU* | *'with BFD'*) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3346 | test "$with_gnu_ld" != no && break |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3347 | ;; |
| 3348 | *) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3349 | test "$with_gnu_ld" != yes && break |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3350 | ;; |
| 3351 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3352 | fi |
| 3353 | done |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3354 | IFS="$lt_save_ifs" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3355 | else |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3356 | 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] | 3357 | fi |
| 3358 | fi |
| 3359 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3360 | LD="$lt_cv_path_LD" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3361 | if test -n "$LD"; then |
| 3362 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 3363 | echo "${ECHO_T}$LD" >&6 |
| 3364 | else |
| 3365 | echo "$as_me:$LINENO: result: no" >&5 |
| 3366 | echo "${ECHO_T}no" >&6 |
| 3367 | fi |
| 3368 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 3369 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 3370 | { (exit 1); exit 1; }; } |
| 3371 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 3372 | 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] | 3373 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3374 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3375 | else |
| 3376 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3377 | case `$LD -v 2>&1 </dev/null` in |
| 3378 | *GNU* | *'with BFD'*) |
| 3379 | lt_cv_prog_gnu_ld=yes |
| 3380 | ;; |
| 3381 | *) |
| 3382 | lt_cv_prog_gnu_ld=no |
| 3383 | ;; |
| 3384 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3385 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3386 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 3387 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
| 3388 | with_gnu_ld=$lt_cv_prog_gnu_ld |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3389 | |
| 3390 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3391 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 3392 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
| 3393 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 3394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3395 | else |
| 3396 | lt_cv_ld_reload_flag='-r' |
| 3397 | fi |
| 3398 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 3399 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
| 3400 | reload_flag=$lt_cv_ld_reload_flag |
| 3401 | case $reload_flag in |
| 3402 | "" | " "*) ;; |
| 3403 | *) reload_flag=" $reload_flag" ;; |
| 3404 | esac |
| 3405 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 3406 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3407 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 3408 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3409 | if test "${lt_cv_path_NM+set}" = set; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3411 | else |
| 3412 | if test -n "$NM"; then |
| 3413 | # Let the user override the test. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3414 | lt_cv_path_NM="$NM" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3415 | else |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3416 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3417 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3418 | IFS="$lt_save_ifs" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3419 | test -z "$ac_dir" && ac_dir=. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3420 | tmp_nm="$ac_dir/${ac_tool_prefix}nm" |
| 3421 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3422 | # Check to see if the nm accepts a BSD-compat flag. |
| 3423 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 3424 | # nm: unknown option "B" ignored |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3425 | # Tru64's nm complains that /dev/null is an invalid object file |
| 3426 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 3427 | */dev/null* | *'Invalid file or object type'*) |
| 3428 | lt_cv_path_NM="$tmp_nm -B" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3429 | break |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3430 | ;; |
| 3431 | *) |
| 3432 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 3433 | */dev/null*) |
| 3434 | lt_cv_path_NM="$tmp_nm -p" |
| 3435 | break |
| 3436 | ;; |
| 3437 | *) |
| 3438 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 3439 | continue # so that we can try to find one that supports BSD flags |
| 3440 | ;; |
| 3441 | esac |
| 3442 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3443 | fi |
| 3444 | done |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3445 | IFS="$lt_save_ifs" |
| 3446 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3447 | fi |
| 3448 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3449 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 3450 | echo "${ECHO_T}$lt_cv_path_NM" >&6 |
| 3451 | NM="$lt_cv_path_NM" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3452 | |
| 3453 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 3454 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 3455 | LN_S=$as_ln_s |
| 3456 | if test "$LN_S" = "ln -s"; then |
| 3457 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3458 | echo "${ECHO_T}yes" >&6 |
| 3459 | else |
| 3460 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 3461 | echo "${ECHO_T}no, using $LN_S" >&6 |
| 3462 | fi |
| 3463 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3464 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 3465 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
| 3466 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 3467 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3468 | else |
| 3469 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 3470 | lt_cv_file_magic_test_file= |
| 3471 | lt_cv_deplibs_check_method='unknown' |
| 3472 | # Need to set the preceding variable on all platforms that support |
| 3473 | # interlibrary dependencies. |
| 3474 | # 'none' -- dependencies not supported. |
| 3475 | # `unknown' -- same as none, but documents that we really don't know. |
| 3476 | # 'pass_all' -- all dependencies passed with no checks. |
| 3477 | # 'test_compile' -- check by making test program. |
| 3478 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 3479 | # which responds to the $file_magic_cmd with a given extended regex. |
| 3480 | # If you have `file' or equivalent on your system and you're not sure |
| 3481 | # whether `pass_all' will *always* work, you probably want this one. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3482 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3483 | case $host_os in |
| 3484 | aix4* | aix5*) |
| 3485 | lt_cv_deplibs_check_method=pass_all |
| 3486 | ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3487 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3488 | beos*) |
| 3489 | lt_cv_deplibs_check_method=pass_all |
| 3490 | ;; |
| 3491 | |
| 3492 | bsdi4*) |
| 3493 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 3494 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 3495 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 3496 | ;; |
| 3497 | |
| 3498 | cygwin*) |
| 3499 | # func_win32_libid is a shell function defined in ltmain.sh |
| 3500 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 3501 | lt_cv_file_magic_cmd='func_win32_libid' |
| 3502 | ;; |
| 3503 | |
| 3504 | mingw* | pw32*) |
| 3505 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 3506 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
| 3507 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 3508 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 3509 | ;; |
| 3510 | |
| 3511 | darwin* | rhapsody*) |
| 3512 | lt_cv_deplibs_check_method=pass_all |
| 3513 | ;; |
| 3514 | |
| 3515 | freebsd* | kfreebsd*-gnu) |
| 3516 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 3517 | case $host_cpu in |
| 3518 | i*86 ) |
| 3519 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 3520 | # Let's accept both of them until this is cleared up. |
| 3521 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
| 3522 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3523 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 3524 | ;; |
| 3525 | esac |
| 3526 | else |
| 3527 | lt_cv_deplibs_check_method=pass_all |
| 3528 | fi |
| 3529 | ;; |
| 3530 | |
| 3531 | gnu*) |
| 3532 | lt_cv_deplibs_check_method=pass_all |
| 3533 | ;; |
| 3534 | |
| 3535 | hpux10.20* | hpux11*) |
| 3536 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3537 | case "$host_cpu" in |
| 3538 | ia64*) |
| 3539 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 3540 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 3541 | ;; |
| 3542 | hppa*64*) |
| 3543 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' |
| 3544 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 3545 | ;; |
| 3546 | *) |
| 3547 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 3548 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 3549 | ;; |
| 3550 | esac |
| 3551 | ;; |
| 3552 | |
| 3553 | irix5* | irix6* | nonstopux*) |
| 3554 | case $LD in |
| 3555 | *-32|*"-32 ") libmagic=32-bit;; |
| 3556 | *-n32|*"-n32 ") libmagic=N32;; |
| 3557 | *-64|*"-64 ") libmagic=64-bit;; |
| 3558 | *) libmagic=never-match;; |
| 3559 | esac |
| 3560 | lt_cv_deplibs_check_method=pass_all |
| 3561 | ;; |
| 3562 | |
| 3563 | # This must be Linux ELF. |
| 3564 | linux*) |
| 3565 | case $host_cpu in |
| 3566 | alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*) |
| 3567 | lt_cv_deplibs_check_method=pass_all ;; |
| 3568 | *) |
| 3569 | # glibc up to 2.1.1 does not perform some relocations on ARM |
| 3570 | # this will be overridden with pass_all, but let us keep it just in case |
| 3571 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
| 3572 | esac |
| 3573 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
| 3574 | lt_cv_deplibs_check_method=pass_all |
| 3575 | ;; |
| 3576 | |
| 3577 | netbsd*) |
| 3578 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 3579 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 3580 | else |
| 3581 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 3582 | fi |
| 3583 | ;; |
| 3584 | |
| 3585 | newos6*) |
| 3586 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 3587 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3588 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 3589 | ;; |
| 3590 | |
| 3591 | nto-qnx*) |
| 3592 | lt_cv_deplibs_check_method=unknown |
| 3593 | ;; |
| 3594 | |
| 3595 | openbsd*) |
| 3596 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3597 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 3598 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 3599 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' |
| 3600 | else |
| 3601 | lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' |
| 3602 | fi |
| 3603 | ;; |
| 3604 | |
| 3605 | osf3* | osf4* | osf5*) |
| 3606 | lt_cv_deplibs_check_method=pass_all |
| 3607 | ;; |
| 3608 | |
| 3609 | sco3.2v5*) |
| 3610 | lt_cv_deplibs_check_method=pass_all |
| 3611 | ;; |
| 3612 | |
| 3613 | solaris*) |
| 3614 | lt_cv_deplibs_check_method=pass_all |
| 3615 | ;; |
| 3616 | |
| 3617 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 3618 | case $host_vendor in |
| 3619 | motorola) |
| 3620 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' |
| 3621 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 3622 | ;; |
| 3623 | ncr) |
| 3624 | lt_cv_deplibs_check_method=pass_all |
| 3625 | ;; |
| 3626 | sequent) |
| 3627 | lt_cv_file_magic_cmd='/bin/file' |
| 3628 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 3629 | ;; |
| 3630 | sni) |
| 3631 | lt_cv_file_magic_cmd='/bin/file' |
| 3632 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 3633 | lt_cv_file_magic_test_file=/lib/libc.so |
| 3634 | ;; |
| 3635 | siemens) |
| 3636 | lt_cv_deplibs_check_method=pass_all |
| 3637 | ;; |
| 3638 | esac |
| 3639 | ;; |
| 3640 | |
| 3641 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) |
| 3642 | lt_cv_deplibs_check_method=pass_all |
| 3643 | ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3644 | esac |
| 3645 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3646 | fi |
| 3647 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 3648 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
| 3649 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 3650 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 3651 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 3652 | |
| 3653 | |
| 3654 | |
| 3655 | |
| 3656 | # If no C compiler was specified, use CC. |
| 3657 | LTCC=${LTCC-"$CC"} |
| 3658 | |
| 3659 | # Allow CC to be a program name with arguments. |
| 3660 | compiler=$CC |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3661 | |
| 3662 | |
| 3663 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 3664 | if test "${enable_libtool_lock+set}" = set; then |
| 3665 | enableval="$enable_libtool_lock" |
| 3666 | |
| 3667 | fi; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3668 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3669 | |
| 3670 | # Some flags need to be propagated to the compiler or linker for good |
| 3671 | # libtool support. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3672 | case $host in |
| 3673 | ia64-*-hpux*) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3674 | # Find out which ABI we are using. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3675 | echo 'int i;' > conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3676 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3677 | (eval $ac_compile) 2>&5 |
| 3678 | ac_status=$? |
| 3679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3680 | (exit $ac_status); }; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3681 | case `/usr/bin/file conftest.$ac_objext` in |
| 3682 | *ELF-32*) |
| 3683 | HPUX_IA64_MODE="32" |
| 3684 | ;; |
| 3685 | *ELF-64*) |
| 3686 | HPUX_IA64_MODE="64" |
| 3687 | ;; |
| 3688 | esac |
| 3689 | fi |
| 3690 | rm -rf conftest* |
| 3691 | ;; |
| 3692 | *-*-irix6*) |
| 3693 | # Find out which ABI we are using. |
Lev Walkin | 33cded1 | 2004-09-19 19:40:52 +0000 | [diff] [blame] | 3694 | echo '#line 3694 "configure"' > conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3695 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3696 | (eval $ac_compile) 2>&5 |
| 3697 | ac_status=$? |
| 3698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3699 | (exit $ac_status); }; then |
| 3700 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 3701 | case `/usr/bin/file conftest.$ac_objext` in |
| 3702 | *32-bit*) |
| 3703 | LD="${LD-ld} -melf32bsmip" |
| 3704 | ;; |
| 3705 | *N32*) |
| 3706 | LD="${LD-ld} -melf32bmipn32" |
| 3707 | ;; |
| 3708 | *64-bit*) |
| 3709 | LD="${LD-ld} -melf64bmip" |
| 3710 | ;; |
| 3711 | esac |
| 3712 | else |
| 3713 | case `/usr/bin/file conftest.$ac_objext` in |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3714 | *32-bit*) |
| 3715 | LD="${LD-ld} -32" |
| 3716 | ;; |
| 3717 | *N32*) |
| 3718 | LD="${LD-ld} -n32" |
| 3719 | ;; |
| 3720 | *64-bit*) |
| 3721 | LD="${LD-ld} -64" |
| 3722 | ;; |
| 3723 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3724 | fi |
| 3725 | fi |
| 3726 | rm -rf conftest* |
| 3727 | ;; |
| 3728 | |
| 3729 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| 3730 | # Find out which ABI we are using. |
| 3731 | echo 'int i;' > conftest.$ac_ext |
| 3732 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3733 | (eval $ac_compile) 2>&5 |
| 3734 | ac_status=$? |
| 3735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3736 | (exit $ac_status); }; then |
| 3737 | case "`/usr/bin/file conftest.o`" in |
| 3738 | *32-bit*) |
| 3739 | case $host in |
| 3740 | x86_64-*linux*) |
| 3741 | LD="${LD-ld} -m elf_i386" |
| 3742 | ;; |
| 3743 | ppc64-*linux*|powerpc64-*linux*) |
| 3744 | LD="${LD-ld} -m elf32ppclinux" |
| 3745 | ;; |
| 3746 | s390x-*linux*) |
| 3747 | LD="${LD-ld} -m elf_s390" |
| 3748 | ;; |
| 3749 | sparc64-*linux*) |
| 3750 | LD="${LD-ld} -m elf32_sparc" |
| 3751 | ;; |
| 3752 | esac |
| 3753 | ;; |
| 3754 | *64-bit*) |
| 3755 | case $host in |
| 3756 | x86_64-*linux*) |
| 3757 | LD="${LD-ld} -m elf_x86_64" |
| 3758 | ;; |
| 3759 | ppc*-*linux*|powerpc*-*linux*) |
| 3760 | LD="${LD-ld} -m elf64ppc" |
| 3761 | ;; |
| 3762 | s390*-*linux*) |
| 3763 | LD="${LD-ld} -m elf64_s390" |
| 3764 | ;; |
| 3765 | sparc*-*linux*) |
| 3766 | LD="${LD-ld} -m elf64_sparc" |
| 3767 | ;; |
| 3768 | esac |
| 3769 | ;; |
| 3770 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3771 | fi |
| 3772 | rm -rf conftest* |
| 3773 | ;; |
| 3774 | |
| 3775 | *-*-sco3.2v5*) |
| 3776 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 3777 | SAVE_CFLAGS="$CFLAGS" |
| 3778 | CFLAGS="$CFLAGS -belf" |
| 3779 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 3780 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
| 3781 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 3782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3783 | else |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3784 | ac_ext=c |
| 3785 | ac_cpp='$CPP $CPPFLAGS' |
| 3786 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3787 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3788 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3789 | |
| 3790 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3791 | /* confdefs.h. */ |
| 3792 | _ACEOF |
| 3793 | cat confdefs.h >>conftest.$ac_ext |
| 3794 | cat >>conftest.$ac_ext <<_ACEOF |
| 3795 | /* end confdefs.h. */ |
| 3796 | |
| 3797 | int |
| 3798 | main () |
| 3799 | { |
| 3800 | |
| 3801 | ; |
| 3802 | return 0; |
| 3803 | } |
| 3804 | _ACEOF |
| 3805 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3806 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3807 | (eval $ac_link) 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3808 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3809 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3810 | rm -f conftest.er1 |
| 3811 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3813 | (exit $ac_status); } && |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3814 | { ac_try='test -z "$ac_c_werror_flag" |
| 3815 | || test ! -s conftest.err' |
| 3816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3817 | (eval $ac_try) 2>&5 |
| 3818 | ac_status=$? |
| 3819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3820 | (exit $ac_status); }; } && |
| 3821 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3823 | (eval $ac_try) 2>&5 |
| 3824 | ac_status=$? |
| 3825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3826 | (exit $ac_status); }; }; then |
| 3827 | lt_cv_cc_needs_belf=yes |
| 3828 | else |
| 3829 | echo "$as_me: failed program was:" >&5 |
| 3830 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3831 | |
| 3832 | lt_cv_cc_needs_belf=no |
| 3833 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3834 | rm -f conftest.err conftest.$ac_objext \ |
| 3835 | conftest$ac_exeext conftest.$ac_ext |
| 3836 | ac_ext=c |
| 3837 | ac_cpp='$CPP $CPPFLAGS' |
| 3838 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3839 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3840 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3841 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3842 | fi |
| 3843 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 3844 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
| 3845 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 3846 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 3847 | CFLAGS="$SAVE_CFLAGS" |
| 3848 | fi |
| 3849 | ;; |
| 3850 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3851 | esac |
| 3852 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3853 | need_locks="$enable_libtool_lock" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3854 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3855 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3856 | ac_ext=c |
| 3857 | ac_cpp='$CPP $CPPFLAGS' |
| 3858 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3859 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3860 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3861 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3862 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 3863 | # On Suns, sometimes $CPP names a directory. |
| 3864 | if test -n "$CPP" && test -d "$CPP"; then |
| 3865 | CPP= |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3866 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3867 | if test -z "$CPP"; then |
| 3868 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3870 | else |
| 3871 | # Double quotes because CPP needs to be expanded |
| 3872 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3873 | do |
| 3874 | ac_preproc_ok=false |
| 3875 | for ac_c_preproc_warn_flag in '' yes |
| 3876 | do |
| 3877 | # Use a header file that comes with gcc, so configuring glibc |
| 3878 | # with a fresh cross-compiler works. |
| 3879 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3880 | # <limits.h> exists even on freestanding compilers. |
| 3881 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3882 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3883 | cat >conftest.$ac_ext <<_ACEOF |
| 3884 | /* confdefs.h. */ |
| 3885 | _ACEOF |
| 3886 | cat confdefs.h >>conftest.$ac_ext |
| 3887 | cat >>conftest.$ac_ext <<_ACEOF |
| 3888 | /* end confdefs.h. */ |
| 3889 | #ifdef __STDC__ |
| 3890 | # include <limits.h> |
| 3891 | #else |
| 3892 | # include <assert.h> |
| 3893 | #endif |
| 3894 | Syntax error |
| 3895 | _ACEOF |
| 3896 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3897 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3898 | ac_status=$? |
| 3899 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3900 | rm -f conftest.er1 |
| 3901 | cat conftest.err >&5 |
| 3902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3903 | (exit $ac_status); } >/dev/null; then |
| 3904 | if test -s conftest.err; then |
| 3905 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3906 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3907 | else |
| 3908 | ac_cpp_err= |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3909 | fi |
| 3910 | else |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3911 | ac_cpp_err=yes |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3912 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3913 | if test -z "$ac_cpp_err"; then |
| 3914 | : |
| 3915 | else |
| 3916 | echo "$as_me: failed program was:" >&5 |
| 3917 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3918 | |
| 3919 | # Broken: fails on valid input. |
| 3920 | continue |
| 3921 | fi |
| 3922 | rm -f conftest.err conftest.$ac_ext |
| 3923 | |
| 3924 | # OK, works on sane cases. Now check whether non-existent headers |
| 3925 | # can be detected and how. |
| 3926 | cat >conftest.$ac_ext <<_ACEOF |
| 3927 | /* confdefs.h. */ |
| 3928 | _ACEOF |
| 3929 | cat confdefs.h >>conftest.$ac_ext |
| 3930 | cat >>conftest.$ac_ext <<_ACEOF |
| 3931 | /* end confdefs.h. */ |
| 3932 | #include <ac_nonexistent.h> |
| 3933 | _ACEOF |
| 3934 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3935 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3936 | ac_status=$? |
| 3937 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3938 | rm -f conftest.er1 |
| 3939 | cat conftest.err >&5 |
| 3940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3941 | (exit $ac_status); } >/dev/null; then |
| 3942 | if test -s conftest.err; then |
| 3943 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3944 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3945 | else |
| 3946 | ac_cpp_err= |
| 3947 | fi |
| 3948 | else |
| 3949 | ac_cpp_err=yes |
| 3950 | fi |
| 3951 | if test -z "$ac_cpp_err"; then |
| 3952 | # Broken: success on invalid input. |
| 3953 | continue |
| 3954 | else |
| 3955 | echo "$as_me: failed program was:" >&5 |
| 3956 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3957 | |
| 3958 | # Passes both tests. |
| 3959 | ac_preproc_ok=: |
| 3960 | break |
| 3961 | fi |
| 3962 | rm -f conftest.err conftest.$ac_ext |
| 3963 | |
| 3964 | done |
| 3965 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3966 | rm -f conftest.err conftest.$ac_ext |
| 3967 | if $ac_preproc_ok; then |
| 3968 | break |
| 3969 | fi |
| 3970 | |
| 3971 | done |
| 3972 | ac_cv_prog_CPP=$CPP |
| 3973 | |
| 3974 | fi |
| 3975 | CPP=$ac_cv_prog_CPP |
| 3976 | else |
| 3977 | ac_cv_prog_CPP=$CPP |
| 3978 | fi |
| 3979 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3980 | echo "${ECHO_T}$CPP" >&6 |
| 3981 | ac_preproc_ok=false |
| 3982 | for ac_c_preproc_warn_flag in '' yes |
| 3983 | do |
| 3984 | # Use a header file that comes with gcc, so configuring glibc |
| 3985 | # with a fresh cross-compiler works. |
| 3986 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3987 | # <limits.h> exists even on freestanding compilers. |
| 3988 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3989 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3990 | cat >conftest.$ac_ext <<_ACEOF |
| 3991 | /* confdefs.h. */ |
| 3992 | _ACEOF |
| 3993 | cat confdefs.h >>conftest.$ac_ext |
| 3994 | cat >>conftest.$ac_ext <<_ACEOF |
| 3995 | /* end confdefs.h. */ |
| 3996 | #ifdef __STDC__ |
| 3997 | # include <limits.h> |
| 3998 | #else |
| 3999 | # include <assert.h> |
| 4000 | #endif |
| 4001 | Syntax error |
| 4002 | _ACEOF |
| 4003 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4004 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4005 | ac_status=$? |
| 4006 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4007 | rm -f conftest.er1 |
| 4008 | cat conftest.err >&5 |
| 4009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4010 | (exit $ac_status); } >/dev/null; then |
| 4011 | if test -s conftest.err; then |
| 4012 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4013 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4014 | else |
| 4015 | ac_cpp_err= |
| 4016 | fi |
| 4017 | else |
| 4018 | ac_cpp_err=yes |
| 4019 | fi |
| 4020 | if test -z "$ac_cpp_err"; then |
| 4021 | : |
| 4022 | else |
| 4023 | echo "$as_me: failed program was:" >&5 |
| 4024 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4025 | |
| 4026 | # Broken: fails on valid input. |
| 4027 | continue |
| 4028 | fi |
| 4029 | rm -f conftest.err conftest.$ac_ext |
| 4030 | |
| 4031 | # OK, works on sane cases. Now check whether non-existent headers |
| 4032 | # can be detected and how. |
| 4033 | cat >conftest.$ac_ext <<_ACEOF |
| 4034 | /* confdefs.h. */ |
| 4035 | _ACEOF |
| 4036 | cat confdefs.h >>conftest.$ac_ext |
| 4037 | cat >>conftest.$ac_ext <<_ACEOF |
| 4038 | /* end confdefs.h. */ |
| 4039 | #include <ac_nonexistent.h> |
| 4040 | _ACEOF |
| 4041 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4042 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4043 | ac_status=$? |
| 4044 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4045 | rm -f conftest.er1 |
| 4046 | cat conftest.err >&5 |
| 4047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4048 | (exit $ac_status); } >/dev/null; then |
| 4049 | if test -s conftest.err; then |
| 4050 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4051 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4052 | else |
| 4053 | ac_cpp_err= |
| 4054 | fi |
| 4055 | else |
| 4056 | ac_cpp_err=yes |
| 4057 | fi |
| 4058 | if test -z "$ac_cpp_err"; then |
| 4059 | # Broken: success on invalid input. |
| 4060 | continue |
| 4061 | else |
| 4062 | echo "$as_me: failed program was:" >&5 |
| 4063 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4064 | |
| 4065 | # Passes both tests. |
| 4066 | ac_preproc_ok=: |
| 4067 | break |
| 4068 | fi |
| 4069 | rm -f conftest.err conftest.$ac_ext |
| 4070 | |
| 4071 | done |
| 4072 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4073 | rm -f conftest.err conftest.$ac_ext |
| 4074 | if $ac_preproc_ok; then |
| 4075 | : |
| 4076 | else |
| 4077 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 4078 | See \`config.log' for more details." >&5 |
| 4079 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 4080 | See \`config.log' for more details." >&2;} |
| 4081 | { (exit 1); exit 1; }; } |
| 4082 | fi |
| 4083 | |
| 4084 | ac_ext=c |
| 4085 | ac_cpp='$CPP $CPPFLAGS' |
| 4086 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4087 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4088 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4089 | |
| 4090 | |
| 4091 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4092 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 4093 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4094 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4095 | else |
| 4096 | cat >conftest.$ac_ext <<_ACEOF |
| 4097 | /* confdefs.h. */ |
| 4098 | _ACEOF |
| 4099 | cat confdefs.h >>conftest.$ac_ext |
| 4100 | cat >>conftest.$ac_ext <<_ACEOF |
| 4101 | /* end confdefs.h. */ |
| 4102 | #include <stdlib.h> |
| 4103 | #include <stdarg.h> |
| 4104 | #include <string.h> |
| 4105 | #include <float.h> |
| 4106 | |
| 4107 | int |
| 4108 | main () |
| 4109 | { |
| 4110 | |
| 4111 | ; |
| 4112 | return 0; |
| 4113 | } |
| 4114 | _ACEOF |
| 4115 | rm -f conftest.$ac_objext |
| 4116 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4117 | (eval $ac_compile) 2>conftest.er1 |
| 4118 | ac_status=$? |
| 4119 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4120 | rm -f conftest.er1 |
| 4121 | cat conftest.err >&5 |
| 4122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4123 | (exit $ac_status); } && |
| 4124 | { ac_try='test -z "$ac_c_werror_flag" |
| 4125 | || test ! -s conftest.err' |
| 4126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4127 | (eval $ac_try) 2>&5 |
| 4128 | ac_status=$? |
| 4129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4130 | (exit $ac_status); }; } && |
| 4131 | { ac_try='test -s conftest.$ac_objext' |
| 4132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4133 | (eval $ac_try) 2>&5 |
| 4134 | ac_status=$? |
| 4135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4136 | (exit $ac_status); }; }; then |
| 4137 | ac_cv_header_stdc=yes |
| 4138 | else |
| 4139 | echo "$as_me: failed program was:" >&5 |
| 4140 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4141 | |
| 4142 | ac_cv_header_stdc=no |
| 4143 | fi |
| 4144 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4145 | |
| 4146 | if test $ac_cv_header_stdc = yes; then |
| 4147 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4148 | cat >conftest.$ac_ext <<_ACEOF |
| 4149 | /* confdefs.h. */ |
| 4150 | _ACEOF |
| 4151 | cat confdefs.h >>conftest.$ac_ext |
| 4152 | cat >>conftest.$ac_ext <<_ACEOF |
| 4153 | /* end confdefs.h. */ |
| 4154 | #include <string.h> |
| 4155 | |
| 4156 | _ACEOF |
| 4157 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4158 | $EGREP "memchr" >/dev/null 2>&1; then |
| 4159 | : |
| 4160 | else |
| 4161 | ac_cv_header_stdc=no |
| 4162 | fi |
| 4163 | rm -f conftest* |
| 4164 | |
| 4165 | fi |
| 4166 | |
| 4167 | if test $ac_cv_header_stdc = yes; then |
| 4168 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4169 | cat >conftest.$ac_ext <<_ACEOF |
| 4170 | /* confdefs.h. */ |
| 4171 | _ACEOF |
| 4172 | cat confdefs.h >>conftest.$ac_ext |
| 4173 | cat >>conftest.$ac_ext <<_ACEOF |
| 4174 | /* end confdefs.h. */ |
| 4175 | #include <stdlib.h> |
| 4176 | |
| 4177 | _ACEOF |
| 4178 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4179 | $EGREP "free" >/dev/null 2>&1; then |
| 4180 | : |
| 4181 | else |
| 4182 | ac_cv_header_stdc=no |
| 4183 | fi |
| 4184 | rm -f conftest* |
| 4185 | |
| 4186 | fi |
| 4187 | |
| 4188 | if test $ac_cv_header_stdc = yes; then |
| 4189 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4190 | if test "$cross_compiling" = yes; then |
| 4191 | : |
| 4192 | else |
| 4193 | cat >conftest.$ac_ext <<_ACEOF |
| 4194 | /* confdefs.h. */ |
| 4195 | _ACEOF |
| 4196 | cat confdefs.h >>conftest.$ac_ext |
| 4197 | cat >>conftest.$ac_ext <<_ACEOF |
| 4198 | /* end confdefs.h. */ |
| 4199 | #include <ctype.h> |
| 4200 | #if ((' ' & 0x0FF) == 0x020) |
| 4201 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4202 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4203 | #else |
| 4204 | # define ISLOWER(c) \ |
| 4205 | (('a' <= (c) && (c) <= 'i') \ |
| 4206 | || ('j' <= (c) && (c) <= 'r') \ |
| 4207 | || ('s' <= (c) && (c) <= 'z')) |
| 4208 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4209 | #endif |
| 4210 | |
| 4211 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4212 | int |
| 4213 | main () |
| 4214 | { |
| 4215 | int i; |
| 4216 | for (i = 0; i < 256; i++) |
| 4217 | if (XOR (islower (i), ISLOWER (i)) |
| 4218 | || toupper (i) != TOUPPER (i)) |
| 4219 | exit(2); |
| 4220 | exit (0); |
| 4221 | } |
| 4222 | _ACEOF |
| 4223 | rm -f conftest$ac_exeext |
| 4224 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4225 | (eval $ac_link) 2>&5 |
| 4226 | ac_status=$? |
| 4227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4228 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4230 | (eval $ac_try) 2>&5 |
| 4231 | ac_status=$? |
| 4232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4233 | (exit $ac_status); }; }; then |
| 4234 | : |
| 4235 | else |
| 4236 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4237 | echo "$as_me: failed program was:" >&5 |
| 4238 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4239 | |
| 4240 | ( exit $ac_status ) |
| 4241 | ac_cv_header_stdc=no |
| 4242 | fi |
| 4243 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4244 | fi |
| 4245 | fi |
| 4246 | fi |
| 4247 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4248 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 4249 | if test $ac_cv_header_stdc = yes; then |
| 4250 | |
| 4251 | cat >>confdefs.h <<\_ACEOF |
| 4252 | #define STDC_HEADERS 1 |
| 4253 | _ACEOF |
| 4254 | |
| 4255 | fi |
| 4256 | |
| 4257 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4258 | |
| 4259 | |
| 4260 | |
| 4261 | |
| 4262 | |
| 4263 | |
| 4264 | |
| 4265 | |
| 4266 | |
| 4267 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4268 | inttypes.h stdint.h unistd.h |
| 4269 | do |
| 4270 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4271 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4272 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4273 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4274 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4275 | else |
| 4276 | cat >conftest.$ac_ext <<_ACEOF |
| 4277 | /* confdefs.h. */ |
| 4278 | _ACEOF |
| 4279 | cat confdefs.h >>conftest.$ac_ext |
| 4280 | cat >>conftest.$ac_ext <<_ACEOF |
| 4281 | /* end confdefs.h. */ |
| 4282 | $ac_includes_default |
| 4283 | |
| 4284 | #include <$ac_header> |
| 4285 | _ACEOF |
| 4286 | rm -f conftest.$ac_objext |
| 4287 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4288 | (eval $ac_compile) 2>conftest.er1 |
| 4289 | ac_status=$? |
| 4290 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4291 | rm -f conftest.er1 |
| 4292 | cat conftest.err >&5 |
| 4293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4294 | (exit $ac_status); } && |
| 4295 | { ac_try='test -z "$ac_c_werror_flag" |
| 4296 | || test ! -s conftest.err' |
| 4297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4298 | (eval $ac_try) 2>&5 |
| 4299 | ac_status=$? |
| 4300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4301 | (exit $ac_status); }; } && |
| 4302 | { ac_try='test -s conftest.$ac_objext' |
| 4303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4304 | (eval $ac_try) 2>&5 |
| 4305 | ac_status=$? |
| 4306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4307 | (exit $ac_status); }; }; then |
| 4308 | eval "$as_ac_Header=yes" |
| 4309 | else |
| 4310 | echo "$as_me: failed program was:" >&5 |
| 4311 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4312 | |
| 4313 | eval "$as_ac_Header=no" |
| 4314 | fi |
| 4315 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4316 | fi |
| 4317 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4318 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4319 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4320 | cat >>confdefs.h <<_ACEOF |
| 4321 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4322 | _ACEOF |
| 4323 | |
| 4324 | fi |
| 4325 | |
| 4326 | done |
| 4327 | |
| 4328 | |
| 4329 | |
| 4330 | for ac_header in dlfcn.h |
| 4331 | do |
| 4332 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4333 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4334 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4335 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4336 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4338 | fi |
| 4339 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4340 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4341 | else |
| 4342 | # Is the header compilable? |
| 4343 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 4344 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 4345 | cat >conftest.$ac_ext <<_ACEOF |
| 4346 | /* confdefs.h. */ |
| 4347 | _ACEOF |
| 4348 | cat confdefs.h >>conftest.$ac_ext |
| 4349 | cat >>conftest.$ac_ext <<_ACEOF |
| 4350 | /* end confdefs.h. */ |
| 4351 | $ac_includes_default |
| 4352 | #include <$ac_header> |
| 4353 | _ACEOF |
| 4354 | rm -f conftest.$ac_objext |
| 4355 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4356 | (eval $ac_compile) 2>conftest.er1 |
| 4357 | ac_status=$? |
| 4358 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4359 | rm -f conftest.er1 |
| 4360 | cat conftest.err >&5 |
| 4361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4362 | (exit $ac_status); } && |
| 4363 | { ac_try='test -z "$ac_c_werror_flag" |
| 4364 | || test ! -s conftest.err' |
| 4365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4366 | (eval $ac_try) 2>&5 |
| 4367 | ac_status=$? |
| 4368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4369 | (exit $ac_status); }; } && |
| 4370 | { ac_try='test -s conftest.$ac_objext' |
| 4371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4372 | (eval $ac_try) 2>&5 |
| 4373 | ac_status=$? |
| 4374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4375 | (exit $ac_status); }; }; then |
| 4376 | ac_header_compiler=yes |
| 4377 | else |
| 4378 | echo "$as_me: failed program was:" >&5 |
| 4379 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4380 | |
| 4381 | ac_header_compiler=no |
| 4382 | fi |
| 4383 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4384 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4385 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4386 | |
| 4387 | # Is the header present? |
| 4388 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 4389 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 4390 | cat >conftest.$ac_ext <<_ACEOF |
| 4391 | /* confdefs.h. */ |
| 4392 | _ACEOF |
| 4393 | cat confdefs.h >>conftest.$ac_ext |
| 4394 | cat >>conftest.$ac_ext <<_ACEOF |
| 4395 | /* end confdefs.h. */ |
| 4396 | #include <$ac_header> |
| 4397 | _ACEOF |
| 4398 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4399 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4400 | ac_status=$? |
| 4401 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4402 | rm -f conftest.er1 |
| 4403 | cat conftest.err >&5 |
| 4404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4405 | (exit $ac_status); } >/dev/null; then |
| 4406 | if test -s conftest.err; then |
| 4407 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4408 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4409 | else |
| 4410 | ac_cpp_err= |
| 4411 | fi |
| 4412 | else |
| 4413 | ac_cpp_err=yes |
| 4414 | fi |
| 4415 | if test -z "$ac_cpp_err"; then |
| 4416 | ac_header_preproc=yes |
| 4417 | else |
| 4418 | echo "$as_me: failed program was:" >&5 |
| 4419 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4420 | |
| 4421 | ac_header_preproc=no |
| 4422 | fi |
| 4423 | rm -f conftest.err conftest.$ac_ext |
| 4424 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4425 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4426 | |
| 4427 | # So? What about this header? |
| 4428 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4429 | yes:no: ) |
| 4430 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4431 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4432 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 4433 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 4434 | ac_header_preproc=yes |
| 4435 | ;; |
| 4436 | no:yes:* ) |
| 4437 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4438 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 4439 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4440 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4441 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 4442 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 4443 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 4444 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 4445 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4446 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 4447 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 4448 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 4449 | ( |
| 4450 | cat <<\_ASBOX |
| 4451 | ## ------------------------------------------ ## |
| 4452 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 4453 | ## ------------------------------------------ ## |
| 4454 | _ASBOX |
| 4455 | ) | |
| 4456 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4457 | ;; |
| 4458 | esac |
| 4459 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4460 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4461 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4462 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4463 | else |
| 4464 | eval "$as_ac_Header=\$ac_header_preproc" |
| 4465 | fi |
| 4466 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4467 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4468 | |
| 4469 | fi |
| 4470 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4471 | cat >>confdefs.h <<_ACEOF |
| 4472 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4473 | _ACEOF |
| 4474 | |
| 4475 | fi |
| 4476 | |
| 4477 | done |
| 4478 | |
| 4479 | ac_ext=cc |
| 4480 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 4481 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4482 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4483 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4484 | if test -n "$ac_tool_prefix"; then |
| 4485 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 4486 | do |
| 4487 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4488 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4489 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4490 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4491 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 4492 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4493 | else |
| 4494 | if test -n "$CXX"; then |
| 4495 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 4496 | else |
| 4497 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4498 | for as_dir in $PATH |
| 4499 | do |
| 4500 | IFS=$as_save_IFS |
| 4501 | test -z "$as_dir" && as_dir=. |
| 4502 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4503 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4504 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 4505 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4506 | break 2 |
| 4507 | fi |
| 4508 | done |
| 4509 | done |
| 4510 | |
| 4511 | fi |
| 4512 | fi |
| 4513 | CXX=$ac_cv_prog_CXX |
| 4514 | if test -n "$CXX"; then |
| 4515 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 4516 | echo "${ECHO_T}$CXX" >&6 |
| 4517 | else |
| 4518 | echo "$as_me:$LINENO: result: no" >&5 |
| 4519 | echo "${ECHO_T}no" >&6 |
| 4520 | fi |
| 4521 | |
| 4522 | test -n "$CXX" && break |
| 4523 | done |
| 4524 | fi |
| 4525 | if test -z "$CXX"; then |
| 4526 | ac_ct_CXX=$CXX |
| 4527 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 4528 | do |
| 4529 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4530 | set dummy $ac_prog; ac_word=$2 |
| 4531 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4532 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4533 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 4534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4535 | else |
| 4536 | if test -n "$ac_ct_CXX"; then |
| 4537 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 4538 | else |
| 4539 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4540 | for as_dir in $PATH |
| 4541 | do |
| 4542 | IFS=$as_save_IFS |
| 4543 | test -z "$as_dir" && as_dir=. |
| 4544 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4545 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4546 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 4547 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4548 | break 2 |
| 4549 | fi |
| 4550 | done |
| 4551 | done |
| 4552 | |
| 4553 | fi |
| 4554 | fi |
| 4555 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 4556 | if test -n "$ac_ct_CXX"; then |
| 4557 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 4558 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
| 4559 | else |
| 4560 | echo "$as_me:$LINENO: result: no" >&5 |
| 4561 | echo "${ECHO_T}no" >&6 |
| 4562 | fi |
| 4563 | |
| 4564 | test -n "$ac_ct_CXX" && break |
| 4565 | done |
| 4566 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
| 4567 | |
| 4568 | CXX=$ac_ct_CXX |
| 4569 | fi |
| 4570 | |
| 4571 | |
| 4572 | # Provide some information about the compiler. |
| 4573 | echo "$as_me:$LINENO:" \ |
| 4574 | "checking for C++ compiler version" >&5 |
| 4575 | ac_compiler=`set X $ac_compile; echo $2` |
| 4576 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 4577 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 4578 | ac_status=$? |
| 4579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4580 | (exit $ac_status); } |
| 4581 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 4582 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 4583 | ac_status=$? |
| 4584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4585 | (exit $ac_status); } |
| 4586 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 4587 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 4588 | ac_status=$? |
| 4589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4590 | (exit $ac_status); } |
| 4591 | |
| 4592 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 4593 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
| 4594 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 4595 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4596 | else |
| 4597 | cat >conftest.$ac_ext <<_ACEOF |
| 4598 | /* confdefs.h. */ |
| 4599 | _ACEOF |
| 4600 | cat confdefs.h >>conftest.$ac_ext |
| 4601 | cat >>conftest.$ac_ext <<_ACEOF |
| 4602 | /* end confdefs.h. */ |
| 4603 | |
| 4604 | int |
| 4605 | main () |
| 4606 | { |
| 4607 | #ifndef __GNUC__ |
| 4608 | choke me |
| 4609 | #endif |
| 4610 | |
| 4611 | ; |
| 4612 | return 0; |
| 4613 | } |
| 4614 | _ACEOF |
| 4615 | rm -f conftest.$ac_objext |
| 4616 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4617 | (eval $ac_compile) 2>conftest.er1 |
| 4618 | ac_status=$? |
| 4619 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4620 | rm -f conftest.er1 |
| 4621 | cat conftest.err >&5 |
| 4622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4623 | (exit $ac_status); } && |
| 4624 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 4625 | || test ! -s conftest.err' |
| 4626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4627 | (eval $ac_try) 2>&5 |
| 4628 | ac_status=$? |
| 4629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4630 | (exit $ac_status); }; } && |
| 4631 | { ac_try='test -s conftest.$ac_objext' |
| 4632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4633 | (eval $ac_try) 2>&5 |
| 4634 | ac_status=$? |
| 4635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4636 | (exit $ac_status); }; }; then |
| 4637 | ac_compiler_gnu=yes |
| 4638 | else |
| 4639 | echo "$as_me: failed program was:" >&5 |
| 4640 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4641 | |
| 4642 | ac_compiler_gnu=no |
| 4643 | fi |
| 4644 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4645 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 4646 | |
| 4647 | fi |
| 4648 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 4649 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
| 4650 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 4651 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 4652 | ac_save_CXXFLAGS=$CXXFLAGS |
| 4653 | CXXFLAGS="-g" |
| 4654 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 4655 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
| 4656 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 4657 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4658 | else |
| 4659 | cat >conftest.$ac_ext <<_ACEOF |
| 4660 | /* confdefs.h. */ |
| 4661 | _ACEOF |
| 4662 | cat confdefs.h >>conftest.$ac_ext |
| 4663 | cat >>conftest.$ac_ext <<_ACEOF |
| 4664 | /* end confdefs.h. */ |
| 4665 | |
| 4666 | int |
| 4667 | main () |
| 4668 | { |
| 4669 | |
| 4670 | ; |
| 4671 | return 0; |
| 4672 | } |
| 4673 | _ACEOF |
| 4674 | rm -f conftest.$ac_objext |
| 4675 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4676 | (eval $ac_compile) 2>conftest.er1 |
| 4677 | ac_status=$? |
| 4678 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4679 | rm -f conftest.er1 |
| 4680 | cat conftest.err >&5 |
| 4681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4682 | (exit $ac_status); } && |
| 4683 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 4684 | || test ! -s conftest.err' |
| 4685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4686 | (eval $ac_try) 2>&5 |
| 4687 | ac_status=$? |
| 4688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4689 | (exit $ac_status); }; } && |
| 4690 | { ac_try='test -s conftest.$ac_objext' |
| 4691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4692 | (eval $ac_try) 2>&5 |
| 4693 | ac_status=$? |
| 4694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4695 | (exit $ac_status); }; }; then |
| 4696 | ac_cv_prog_cxx_g=yes |
| 4697 | else |
| 4698 | echo "$as_me: failed program was:" >&5 |
| 4699 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4700 | |
| 4701 | ac_cv_prog_cxx_g=no |
| 4702 | fi |
| 4703 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4704 | fi |
| 4705 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 4706 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
| 4707 | if test "$ac_test_CXXFLAGS" = set; then |
| 4708 | CXXFLAGS=$ac_save_CXXFLAGS |
| 4709 | elif test $ac_cv_prog_cxx_g = yes; then |
| 4710 | if test "$GXX" = yes; then |
| 4711 | CXXFLAGS="-g -O2" |
| 4712 | else |
| 4713 | CXXFLAGS="-g" |
| 4714 | fi |
| 4715 | else |
| 4716 | if test "$GXX" = yes; then |
| 4717 | CXXFLAGS="-O2" |
| 4718 | else |
| 4719 | CXXFLAGS= |
| 4720 | fi |
| 4721 | fi |
| 4722 | for ac_declaration in \ |
| 4723 | '' \ |
| 4724 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 4725 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 4726 | 'extern "C" void exit (int) throw ();' \ |
| 4727 | 'extern "C" void exit (int);' \ |
| 4728 | 'void exit (int);' |
| 4729 | do |
| 4730 | cat >conftest.$ac_ext <<_ACEOF |
| 4731 | /* confdefs.h. */ |
| 4732 | _ACEOF |
| 4733 | cat confdefs.h >>conftest.$ac_ext |
| 4734 | cat >>conftest.$ac_ext <<_ACEOF |
| 4735 | /* end confdefs.h. */ |
| 4736 | $ac_declaration |
| 4737 | #include <stdlib.h> |
| 4738 | int |
| 4739 | main () |
| 4740 | { |
| 4741 | exit (42); |
| 4742 | ; |
| 4743 | return 0; |
| 4744 | } |
| 4745 | _ACEOF |
| 4746 | rm -f conftest.$ac_objext |
| 4747 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4748 | (eval $ac_compile) 2>conftest.er1 |
| 4749 | ac_status=$? |
| 4750 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4751 | rm -f conftest.er1 |
| 4752 | cat conftest.err >&5 |
| 4753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4754 | (exit $ac_status); } && |
| 4755 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 4756 | || test ! -s conftest.err' |
| 4757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4758 | (eval $ac_try) 2>&5 |
| 4759 | ac_status=$? |
| 4760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4761 | (exit $ac_status); }; } && |
| 4762 | { ac_try='test -s conftest.$ac_objext' |
| 4763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4764 | (eval $ac_try) 2>&5 |
| 4765 | ac_status=$? |
| 4766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4767 | (exit $ac_status); }; }; then |
| 4768 | : |
| 4769 | else |
| 4770 | echo "$as_me: failed program was:" >&5 |
| 4771 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4772 | |
| 4773 | continue |
| 4774 | fi |
| 4775 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4776 | cat >conftest.$ac_ext <<_ACEOF |
| 4777 | /* confdefs.h. */ |
| 4778 | _ACEOF |
| 4779 | cat confdefs.h >>conftest.$ac_ext |
| 4780 | cat >>conftest.$ac_ext <<_ACEOF |
| 4781 | /* end confdefs.h. */ |
| 4782 | $ac_declaration |
| 4783 | int |
| 4784 | main () |
| 4785 | { |
| 4786 | exit (42); |
| 4787 | ; |
| 4788 | return 0; |
| 4789 | } |
| 4790 | _ACEOF |
| 4791 | rm -f conftest.$ac_objext |
| 4792 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4793 | (eval $ac_compile) 2>conftest.er1 |
| 4794 | ac_status=$? |
| 4795 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4796 | rm -f conftest.er1 |
| 4797 | cat conftest.err >&5 |
| 4798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4799 | (exit $ac_status); } && |
| 4800 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 4801 | || test ! -s conftest.err' |
| 4802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4803 | (eval $ac_try) 2>&5 |
| 4804 | ac_status=$? |
| 4805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4806 | (exit $ac_status); }; } && |
| 4807 | { ac_try='test -s conftest.$ac_objext' |
| 4808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4809 | (eval $ac_try) 2>&5 |
| 4810 | ac_status=$? |
| 4811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4812 | (exit $ac_status); }; }; then |
| 4813 | break |
| 4814 | else |
| 4815 | echo "$as_me: failed program was:" >&5 |
| 4816 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4817 | |
| 4818 | fi |
| 4819 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4820 | done |
| 4821 | rm -f conftest* |
| 4822 | if test -n "$ac_declaration"; then |
| 4823 | echo '#ifdef __cplusplus' >>confdefs.h |
| 4824 | echo $ac_declaration >>confdefs.h |
| 4825 | echo '#endif' >>confdefs.h |
| 4826 | fi |
| 4827 | |
| 4828 | ac_ext=cc |
| 4829 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 4830 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4831 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4832 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4833 | |
| 4834 | depcc="$CXX" am_compiler_list= |
| 4835 | |
| 4836 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 4837 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
| 4838 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
| 4839 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4840 | else |
| 4841 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 4842 | # We make a subdir and do the tests there. Otherwise we can end up |
| 4843 | # making bogus files that we don't know about and never remove. For |
| 4844 | # instance it was reported that on HP-UX the gcc test will end up |
| 4845 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 4846 | # in D'. |
| 4847 | mkdir conftest.dir |
| 4848 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 4849 | # using a relative directory. |
| 4850 | cp "$am_depcomp" conftest.dir |
| 4851 | cd conftest.dir |
| 4852 | # We will build objects and dependencies in a subdirectory because |
| 4853 | # it helps to detect inapplicable dependency modes. For instance |
| 4854 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 4855 | # side effect of compilation, but ICC will put the dependencies in |
| 4856 | # the current directory while Tru64 will put them in the object |
| 4857 | # directory. |
| 4858 | mkdir sub |
| 4859 | |
| 4860 | am_cv_CXX_dependencies_compiler_type=none |
| 4861 | if test "$am_compiler_list" = ""; then |
| 4862 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 4863 | fi |
| 4864 | for depmode in $am_compiler_list; do |
| 4865 | # Setup a source with many dependencies, because some compilers |
| 4866 | # like to wrap large dependency lists on column 80 (with \), and |
| 4867 | # we should not choose a depcomp mode which is confused by this. |
| 4868 | # |
| 4869 | # We need to recreate these files for each test, as the compiler may |
| 4870 | # overwrite some of them when testing with obscure command lines. |
| 4871 | # This happens at least with the AIX C compiler. |
| 4872 | : > sub/conftest.c |
| 4873 | for i in 1 2 3 4 5 6; do |
| 4874 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 4875 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 4876 | # Solaris 8's {/usr,}/bin/sh. |
| 4877 | touch sub/conftst$i.h |
| 4878 | done |
| 4879 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 4880 | |
| 4881 | case $depmode in |
| 4882 | nosideeffect) |
| 4883 | # after this tag, mechanisms are not by side-effect, so they'll |
| 4884 | # only be used when explicitly requested |
| 4885 | if test "x$enable_dependency_tracking" = xyes; then |
| 4886 | continue |
| 4887 | else |
| 4888 | break |
| 4889 | fi |
| 4890 | ;; |
| 4891 | none) break ;; |
| 4892 | esac |
| 4893 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 4894 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 4895 | # handle `-M -o', and we need to detect this. |
| 4896 | if depmode=$depmode \ |
| 4897 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| 4898 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 4899 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| 4900 | >/dev/null 2>conftest.err && |
| 4901 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 4902 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
| 4903 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 4904 | # icc doesn't choke on unknown options, it will just issue warnings |
| 4905 | # or remarks (even with -Werror). So we grep stderr for any message |
| 4906 | # that says an option was ignored or not supported. |
| 4907 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 4908 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 4909 | # The diagnosis changed in icc 8.0: |
| 4910 | # icc: Command line remark: option '-MP' not supported |
| 4911 | if (grep 'ignoring option' conftest.err || |
| 4912 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 4913 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 4914 | break |
| 4915 | fi |
| 4916 | fi |
| 4917 | done |
| 4918 | |
| 4919 | cd .. |
| 4920 | rm -rf conftest.dir |
| 4921 | else |
| 4922 | am_cv_CXX_dependencies_compiler_type=none |
| 4923 | fi |
| 4924 | |
| 4925 | fi |
| 4926 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 4927 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
| 4928 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 4929 | |
| 4930 | |
| 4931 | |
| 4932 | if |
| 4933 | test "x$enable_dependency_tracking" != xno \ |
| 4934 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 4935 | am__fastdepCXX_TRUE= |
| 4936 | am__fastdepCXX_FALSE='#' |
| 4937 | else |
| 4938 | am__fastdepCXX_TRUE='#' |
| 4939 | am__fastdepCXX_FALSE= |
| 4940 | fi |
| 4941 | |
| 4942 | |
| 4943 | ac_ext=cc |
| 4944 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 4945 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4946 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4947 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4948 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 4949 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
| 4950 | if test -z "$CXXCPP"; then |
| 4951 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
| 4952 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4953 | else |
| 4954 | # Double quotes because CXXCPP needs to be expanded |
| 4955 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 4956 | do |
| 4957 | ac_preproc_ok=false |
| 4958 | for ac_cxx_preproc_warn_flag in '' yes |
| 4959 | do |
| 4960 | # Use a header file that comes with gcc, so configuring glibc |
| 4961 | # with a fresh cross-compiler works. |
| 4962 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4963 | # <limits.h> exists even on freestanding compilers. |
| 4964 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4965 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4966 | cat >conftest.$ac_ext <<_ACEOF |
| 4967 | /* confdefs.h. */ |
| 4968 | _ACEOF |
| 4969 | cat confdefs.h >>conftest.$ac_ext |
| 4970 | cat >>conftest.$ac_ext <<_ACEOF |
| 4971 | /* end confdefs.h. */ |
| 4972 | #ifdef __STDC__ |
| 4973 | # include <limits.h> |
| 4974 | #else |
| 4975 | # include <assert.h> |
| 4976 | #endif |
| 4977 | Syntax error |
| 4978 | _ACEOF |
| 4979 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4980 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4981 | ac_status=$? |
| 4982 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4983 | rm -f conftest.er1 |
| 4984 | cat conftest.err >&5 |
| 4985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4986 | (exit $ac_status); } >/dev/null; then |
| 4987 | if test -s conftest.err; then |
| 4988 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 4989 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 4990 | else |
| 4991 | ac_cpp_err= |
| 4992 | fi |
| 4993 | else |
| 4994 | ac_cpp_err=yes |
| 4995 | fi |
| 4996 | if test -z "$ac_cpp_err"; then |
| 4997 | : |
| 4998 | else |
| 4999 | echo "$as_me: failed program was:" >&5 |
| 5000 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5001 | |
| 5002 | # Broken: fails on valid input. |
| 5003 | continue |
| 5004 | fi |
| 5005 | rm -f conftest.err conftest.$ac_ext |
| 5006 | |
| 5007 | # OK, works on sane cases. Now check whether non-existent headers |
| 5008 | # can be detected and how. |
| 5009 | cat >conftest.$ac_ext <<_ACEOF |
| 5010 | /* confdefs.h. */ |
| 5011 | _ACEOF |
| 5012 | cat confdefs.h >>conftest.$ac_ext |
| 5013 | cat >>conftest.$ac_ext <<_ACEOF |
| 5014 | /* end confdefs.h. */ |
| 5015 | #include <ac_nonexistent.h> |
| 5016 | _ACEOF |
| 5017 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5018 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5019 | ac_status=$? |
| 5020 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5021 | rm -f conftest.er1 |
| 5022 | cat conftest.err >&5 |
| 5023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5024 | (exit $ac_status); } >/dev/null; then |
| 5025 | if test -s conftest.err; then |
| 5026 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 5027 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 5028 | else |
| 5029 | ac_cpp_err= |
| 5030 | fi |
| 5031 | else |
| 5032 | ac_cpp_err=yes |
| 5033 | fi |
| 5034 | if test -z "$ac_cpp_err"; then |
| 5035 | # Broken: success on invalid input. |
| 5036 | continue |
| 5037 | else |
| 5038 | echo "$as_me: failed program was:" >&5 |
| 5039 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5040 | |
| 5041 | # Passes both tests. |
| 5042 | ac_preproc_ok=: |
| 5043 | break |
| 5044 | fi |
| 5045 | rm -f conftest.err conftest.$ac_ext |
| 5046 | |
| 5047 | done |
| 5048 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5049 | rm -f conftest.err conftest.$ac_ext |
| 5050 | if $ac_preproc_ok; then |
| 5051 | break |
| 5052 | fi |
| 5053 | |
| 5054 | done |
| 5055 | ac_cv_prog_CXXCPP=$CXXCPP |
| 5056 | |
| 5057 | fi |
| 5058 | CXXCPP=$ac_cv_prog_CXXCPP |
| 5059 | else |
| 5060 | ac_cv_prog_CXXCPP=$CXXCPP |
| 5061 | fi |
| 5062 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 5063 | echo "${ECHO_T}$CXXCPP" >&6 |
| 5064 | ac_preproc_ok=false |
| 5065 | for ac_cxx_preproc_warn_flag in '' yes |
| 5066 | do |
| 5067 | # Use a header file that comes with gcc, so configuring glibc |
| 5068 | # with a fresh cross-compiler works. |
| 5069 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5070 | # <limits.h> exists even on freestanding compilers. |
| 5071 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5072 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5073 | cat >conftest.$ac_ext <<_ACEOF |
| 5074 | /* confdefs.h. */ |
| 5075 | _ACEOF |
| 5076 | cat confdefs.h >>conftest.$ac_ext |
| 5077 | cat >>conftest.$ac_ext <<_ACEOF |
| 5078 | /* end confdefs.h. */ |
| 5079 | #ifdef __STDC__ |
| 5080 | # include <limits.h> |
| 5081 | #else |
| 5082 | # include <assert.h> |
| 5083 | #endif |
| 5084 | Syntax error |
| 5085 | _ACEOF |
| 5086 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5087 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5088 | ac_status=$? |
| 5089 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5090 | rm -f conftest.er1 |
| 5091 | cat conftest.err >&5 |
| 5092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5093 | (exit $ac_status); } >/dev/null; then |
| 5094 | if test -s conftest.err; then |
| 5095 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 5096 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 5097 | else |
| 5098 | ac_cpp_err= |
| 5099 | fi |
| 5100 | else |
| 5101 | ac_cpp_err=yes |
| 5102 | fi |
| 5103 | if test -z "$ac_cpp_err"; then |
| 5104 | : |
| 5105 | else |
| 5106 | echo "$as_me: failed program was:" >&5 |
| 5107 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5108 | |
| 5109 | # Broken: fails on valid input. |
| 5110 | continue |
| 5111 | fi |
| 5112 | rm -f conftest.err conftest.$ac_ext |
| 5113 | |
| 5114 | # OK, works on sane cases. Now check whether non-existent headers |
| 5115 | # can be detected and how. |
| 5116 | cat >conftest.$ac_ext <<_ACEOF |
| 5117 | /* confdefs.h. */ |
| 5118 | _ACEOF |
| 5119 | cat confdefs.h >>conftest.$ac_ext |
| 5120 | cat >>conftest.$ac_ext <<_ACEOF |
| 5121 | /* end confdefs.h. */ |
| 5122 | #include <ac_nonexistent.h> |
| 5123 | _ACEOF |
| 5124 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5125 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5126 | ac_status=$? |
| 5127 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5128 | rm -f conftest.er1 |
| 5129 | cat conftest.err >&5 |
| 5130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5131 | (exit $ac_status); } >/dev/null; then |
| 5132 | if test -s conftest.err; then |
| 5133 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 5134 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 5135 | else |
| 5136 | ac_cpp_err= |
| 5137 | fi |
| 5138 | else |
| 5139 | ac_cpp_err=yes |
| 5140 | fi |
| 5141 | if test -z "$ac_cpp_err"; then |
| 5142 | # Broken: success on invalid input. |
| 5143 | continue |
| 5144 | else |
| 5145 | echo "$as_me: failed program was:" >&5 |
| 5146 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5147 | |
| 5148 | # Passes both tests. |
| 5149 | ac_preproc_ok=: |
| 5150 | break |
| 5151 | fi |
| 5152 | rm -f conftest.err conftest.$ac_ext |
| 5153 | |
| 5154 | done |
| 5155 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5156 | rm -f conftest.err conftest.$ac_ext |
| 5157 | if $ac_preproc_ok; then |
| 5158 | : |
| 5159 | else |
| 5160 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 5161 | See \`config.log' for more details." >&5 |
| 5162 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 5163 | See \`config.log' for more details." >&2;} |
| 5164 | { (exit 1); exit 1; }; } |
| 5165 | fi |
| 5166 | |
| 5167 | ac_ext=cc |
| 5168 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5169 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5170 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5171 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5172 | |
| 5173 | |
| 5174 | ac_ext=f |
| 5175 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 5176 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5177 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 5178 | if test -n "$ac_tool_prefix"; then |
| 5179 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
| 5180 | do |
| 5181 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5182 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5183 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5184 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5185 | if test "${ac_cv_prog_F77+set}" = set; then |
| 5186 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5187 | else |
| 5188 | if test -n "$F77"; then |
| 5189 | ac_cv_prog_F77="$F77" # Let the user override the test. |
| 5190 | else |
| 5191 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5192 | for as_dir in $PATH |
| 5193 | do |
| 5194 | IFS=$as_save_IFS |
| 5195 | test -z "$as_dir" && as_dir=. |
| 5196 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5197 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5198 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
| 5199 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5200 | break 2 |
| 5201 | fi |
| 5202 | done |
| 5203 | done |
| 5204 | |
| 5205 | fi |
| 5206 | fi |
| 5207 | F77=$ac_cv_prog_F77 |
| 5208 | if test -n "$F77"; then |
| 5209 | echo "$as_me:$LINENO: result: $F77" >&5 |
| 5210 | echo "${ECHO_T}$F77" >&6 |
| 5211 | else |
| 5212 | echo "$as_me:$LINENO: result: no" >&5 |
| 5213 | echo "${ECHO_T}no" >&6 |
| 5214 | fi |
| 5215 | |
| 5216 | test -n "$F77" && break |
| 5217 | done |
| 5218 | fi |
| 5219 | if test -z "$F77"; then |
| 5220 | ac_ct_F77=$F77 |
| 5221 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
| 5222 | do |
| 5223 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5224 | set dummy $ac_prog; ac_word=$2 |
| 5225 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5226 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5227 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
| 5228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5229 | else |
| 5230 | if test -n "$ac_ct_F77"; then |
| 5231 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
| 5232 | else |
| 5233 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5234 | for as_dir in $PATH |
| 5235 | do |
| 5236 | IFS=$as_save_IFS |
| 5237 | test -z "$as_dir" && as_dir=. |
| 5238 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5239 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5240 | ac_cv_prog_ac_ct_F77="$ac_prog" |
| 5241 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5242 | break 2 |
| 5243 | fi |
| 5244 | done |
| 5245 | done |
| 5246 | |
| 5247 | fi |
| 5248 | fi |
| 5249 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
| 5250 | if test -n "$ac_ct_F77"; then |
| 5251 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
| 5252 | echo "${ECHO_T}$ac_ct_F77" >&6 |
| 5253 | else |
| 5254 | echo "$as_me:$LINENO: result: no" >&5 |
| 5255 | echo "${ECHO_T}no" >&6 |
| 5256 | fi |
| 5257 | |
| 5258 | test -n "$ac_ct_F77" && break |
| 5259 | done |
| 5260 | |
| 5261 | F77=$ac_ct_F77 |
| 5262 | fi |
| 5263 | |
| 5264 | |
| 5265 | # Provide some information about the compiler. |
Lev Walkin | 33cded1 | 2004-09-19 19:40:52 +0000 | [diff] [blame] | 5266 | echo "$as_me:5266:" \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5267 | "checking for Fortran 77 compiler version" >&5 |
| 5268 | ac_compiler=`set X $ac_compile; echo $2` |
| 5269 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 5270 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 5271 | ac_status=$? |
| 5272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5273 | (exit $ac_status); } |
| 5274 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 5275 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 5276 | ac_status=$? |
| 5277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5278 | (exit $ac_status); } |
| 5279 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 5280 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 5281 | ac_status=$? |
| 5282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5283 | (exit $ac_status); } |
| 5284 | rm -f a.out |
| 5285 | |
| 5286 | # If we don't use `.F' as extension, the preprocessor is not run on the |
| 5287 | # input file. (Note that this only needs to work for GNU compilers.) |
| 5288 | ac_save_ext=$ac_ext |
| 5289 | ac_ext=F |
| 5290 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
| 5291 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 |
| 5292 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
| 5293 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5294 | else |
| 5295 | cat >conftest.$ac_ext <<_ACEOF |
| 5296 | program main |
| 5297 | #ifndef __GNUC__ |
| 5298 | choke me |
| 5299 | #endif |
| 5300 | |
| 5301 | end |
| 5302 | _ACEOF |
| 5303 | rm -f conftest.$ac_objext |
| 5304 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5305 | (eval $ac_compile) 2>conftest.er1 |
| 5306 | ac_status=$? |
| 5307 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5308 | rm -f conftest.er1 |
| 5309 | cat conftest.err >&5 |
| 5310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5311 | (exit $ac_status); } && |
| 5312 | { ac_try='test -z "$ac_f77_werror_flag" |
| 5313 | || test ! -s conftest.err' |
| 5314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5315 | (eval $ac_try) 2>&5 |
| 5316 | ac_status=$? |
| 5317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5318 | (exit $ac_status); }; } && |
| 5319 | { ac_try='test -s conftest.$ac_objext' |
| 5320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5321 | (eval $ac_try) 2>&5 |
| 5322 | ac_status=$? |
| 5323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5324 | (exit $ac_status); }; }; then |
| 5325 | ac_compiler_gnu=yes |
| 5326 | else |
| 5327 | echo "$as_me: failed program was:" >&5 |
| 5328 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5329 | |
| 5330 | ac_compiler_gnu=no |
| 5331 | fi |
| 5332 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5333 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
| 5334 | |
| 5335 | fi |
| 5336 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
| 5337 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 |
| 5338 | ac_ext=$ac_save_ext |
| 5339 | ac_test_FFLAGS=${FFLAGS+set} |
| 5340 | ac_save_FFLAGS=$FFLAGS |
| 5341 | FFLAGS= |
| 5342 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
| 5343 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 |
| 5344 | if test "${ac_cv_prog_f77_g+set}" = set; then |
| 5345 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5346 | else |
| 5347 | FFLAGS=-g |
| 5348 | cat >conftest.$ac_ext <<_ACEOF |
| 5349 | program main |
| 5350 | |
| 5351 | end |
| 5352 | _ACEOF |
| 5353 | rm -f conftest.$ac_objext |
| 5354 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5355 | (eval $ac_compile) 2>conftest.er1 |
| 5356 | ac_status=$? |
| 5357 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5358 | rm -f conftest.er1 |
| 5359 | cat conftest.err >&5 |
| 5360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5361 | (exit $ac_status); } && |
| 5362 | { ac_try='test -z "$ac_f77_werror_flag" |
| 5363 | || test ! -s conftest.err' |
| 5364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5365 | (eval $ac_try) 2>&5 |
| 5366 | ac_status=$? |
| 5367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5368 | (exit $ac_status); }; } && |
| 5369 | { ac_try='test -s conftest.$ac_objext' |
| 5370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5371 | (eval $ac_try) 2>&5 |
| 5372 | ac_status=$? |
| 5373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5374 | (exit $ac_status); }; }; then |
| 5375 | ac_cv_prog_f77_g=yes |
| 5376 | else |
| 5377 | echo "$as_me: failed program was:" >&5 |
| 5378 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5379 | |
| 5380 | ac_cv_prog_f77_g=no |
| 5381 | fi |
| 5382 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5383 | |
| 5384 | fi |
| 5385 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
| 5386 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 |
| 5387 | if test "$ac_test_FFLAGS" = set; then |
| 5388 | FFLAGS=$ac_save_FFLAGS |
| 5389 | elif test $ac_cv_prog_f77_g = yes; then |
| 5390 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
| 5391 | FFLAGS="-g -O2" |
| 5392 | else |
| 5393 | FFLAGS="-g" |
| 5394 | fi |
| 5395 | else |
| 5396 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
| 5397 | FFLAGS="-O2" |
| 5398 | else |
| 5399 | FFLAGS= |
| 5400 | fi |
| 5401 | fi |
| 5402 | |
| 5403 | G77=`test $ac_compiler_gnu = yes && echo yes` |
| 5404 | ac_ext=c |
| 5405 | ac_cpp='$CPP $CPPFLAGS' |
| 5406 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5407 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5408 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5409 | |
| 5410 | |
| 5411 | |
| 5412 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| 5413 | |
| 5414 | # find the maximum length of command line arguments |
| 5415 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 5416 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
| 5417 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| 5418 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5419 | else |
| 5420 | i=0 |
| 5421 | teststring="ABCD" |
| 5422 | |
| 5423 | case $build_os in |
| 5424 | msdosdjgpp*) |
| 5425 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 5426 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 5427 | # during glob expansion). Even if it were fixed, the result of this |
| 5428 | # check would be larger than it should be. |
| 5429 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 5430 | ;; |
| 5431 | |
| 5432 | gnu*) |
| 5433 | # Under GNU Hurd, this test is not required because there is |
| 5434 | # no limit to the length of command line arguments. |
| 5435 | # Libtool will interpret -1 as no limit whatsoever |
| 5436 | lt_cv_sys_max_cmd_len=-1; |
| 5437 | ;; |
| 5438 | |
| 5439 | cygwin* | mingw*) |
| 5440 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 5441 | # about 5 minutes as the teststring grows exponentially. |
| 5442 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 5443 | # you end up with a "frozen" computer, even though with patience |
| 5444 | # the test eventually succeeds (with a max line length of 256k). |
| 5445 | # Instead, let's just punt: use the minimum linelength reported by |
| 5446 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 5447 | lt_cv_sys_max_cmd_len=8192; |
| 5448 | ;; |
| 5449 | |
| 5450 | amigaos*) |
| 5451 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 5452 | # So we just punt and use a minimum line length of 8192. |
| 5453 | lt_cv_sys_max_cmd_len=8192; |
| 5454 | ;; |
| 5455 | |
| 5456 | *) |
| 5457 | # If test is not a shell built-in, we'll probably end up computing a |
| 5458 | # maximum length that is only half of the actual maximum length, but |
| 5459 | # we can't tell. |
| 5460 | while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
| 5461 | = "XX$teststring") >/dev/null 2>&1 && |
| 5462 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
| 5463 | lt_cv_sys_max_cmd_len=$new_result && |
| 5464 | test $i != 17 # 1/2 MB should be enough |
| 5465 | do |
| 5466 | i=`expr $i + 1` |
| 5467 | teststring=$teststring$teststring |
| 5468 | done |
| 5469 | teststring= |
| 5470 | # Add a significant safety factor because C++ compilers can tack on massive |
| 5471 | # amounts of additional arguments before passing them to the linker. |
| 5472 | # It appears as though 1/2 is a usable value. |
| 5473 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 5474 | ;; |
| 5475 | esac |
| 5476 | |
| 5477 | fi |
| 5478 | |
| 5479 | if test -n $lt_cv_sys_max_cmd_len ; then |
| 5480 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 5481 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
| 5482 | else |
| 5483 | echo "$as_me:$LINENO: result: none" >&5 |
| 5484 | echo "${ECHO_T}none" >&6 |
| 5485 | fi |
| 5486 | |
| 5487 | |
| 5488 | |
| 5489 | |
| 5490 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 5491 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 5492 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
| 5493 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 5494 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5495 | else |
| 5496 | |
| 5497 | # These are sane defaults that work on at least a few old systems. |
| 5498 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 5499 | |
| 5500 | # Character class describing NM global symbol codes. |
| 5501 | symcode='[BCDEGRST]' |
| 5502 | |
| 5503 | # Regexp to match symbols that can be accessed directly from C. |
| 5504 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 5505 | |
| 5506 | # Transform the above into a raw symbol and a C symbol. |
| 5507 | symxfrm='\1 \2\3 \3' |
| 5508 | |
| 5509 | # Transform an extracted symbol line into a proper C declaration |
| 5510 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 5511 | |
| 5512 | # Transform an extracted symbol line into symbol name and symbol address |
| 5513 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
| 5514 | |
| 5515 | # Define system-specific variables. |
| 5516 | case $host_os in |
| 5517 | aix*) |
| 5518 | symcode='[BCDT]' |
| 5519 | ;; |
| 5520 | cygwin* | mingw* | pw32*) |
| 5521 | symcode='[ABCDGISTW]' |
| 5522 | ;; |
| 5523 | hpux*) # Its linker distinguishes data from code symbols |
| 5524 | if test "$host_cpu" = ia64; then |
| 5525 | symcode='[ABCDEGRST]' |
| 5526 | fi |
| 5527 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 5528 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
| 5529 | ;; |
| 5530 | irix* | nonstopux*) |
| 5531 | symcode='[BCDEGRST]' |
| 5532 | ;; |
| 5533 | osf*) |
| 5534 | symcode='[BCDEGQRST]' |
| 5535 | ;; |
| 5536 | solaris* | sysv5*) |
| 5537 | symcode='[BDRT]' |
| 5538 | ;; |
| 5539 | sysv4) |
| 5540 | symcode='[DFNSTU]' |
| 5541 | ;; |
| 5542 | esac |
| 5543 | |
| 5544 | # Handle CRLF in mingw tool chain |
| 5545 | opt_cr= |
| 5546 | case $build_os in |
| 5547 | mingw*) |
| 5548 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 5549 | ;; |
| 5550 | esac |
| 5551 | |
| 5552 | # If we're using GNU nm, then use its standard symbol codes. |
| 5553 | case `$NM -V 2>&1` in |
| 5554 | *GNU* | *'with BFD'*) |
| 5555 | symcode='[ABCDGIRSTW]' ;; |
| 5556 | esac |
| 5557 | |
| 5558 | # Try without a prefix undercore, then with it. |
| 5559 | for ac_symprfx in "" "_"; do |
| 5560 | |
| 5561 | # Write the raw and C identifiers. |
| 5562 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
| 5563 | |
| 5564 | # Check to see that the pipe works correctly. |
| 5565 | pipe_works=no |
| 5566 | |
| 5567 | rm -f conftest* |
| 5568 | cat > conftest.$ac_ext <<EOF |
| 5569 | #ifdef __cplusplus |
| 5570 | extern "C" { |
| 5571 | #endif |
| 5572 | char nm_test_var; |
| 5573 | void nm_test_func(){} |
| 5574 | #ifdef __cplusplus |
| 5575 | } |
| 5576 | #endif |
| 5577 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 5578 | EOF |
| 5579 | |
| 5580 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5581 | (eval $ac_compile) 2>&5 |
| 5582 | ac_status=$? |
| 5583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5584 | (exit $ac_status); }; then |
| 5585 | # Now try to grab the symbols. |
| 5586 | nlist=conftest.nm |
| 5587 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 5588 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 5589 | ac_status=$? |
| 5590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5591 | (exit $ac_status); } && test -s "$nlist"; then |
| 5592 | # Try sorting and uniquifying the output. |
| 5593 | if sort "$nlist" | uniq > "$nlist"T; then |
| 5594 | mv -f "$nlist"T "$nlist" |
| 5595 | else |
| 5596 | rm -f "$nlist"T |
| 5597 | fi |
| 5598 | |
| 5599 | # Make sure that we snagged all the symbols we need. |
| 5600 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 5601 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 5602 | cat <<EOF > conftest.$ac_ext |
| 5603 | #ifdef __cplusplus |
| 5604 | extern "C" { |
| 5605 | #endif |
| 5606 | |
| 5607 | EOF |
| 5608 | # Now generate the symbol file. |
| 5609 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 5610 | |
| 5611 | cat <<EOF >> conftest.$ac_ext |
| 5612 | #if defined (__STDC__) && __STDC__ |
| 5613 | # define lt_ptr_t void * |
| 5614 | #else |
| 5615 | # define lt_ptr_t char * |
| 5616 | # define const |
| 5617 | #endif |
| 5618 | |
| 5619 | /* The mapping between symbol names and symbols. */ |
| 5620 | const struct { |
| 5621 | const char *name; |
| 5622 | lt_ptr_t address; |
| 5623 | } |
| 5624 | lt_preloaded_symbols[] = |
| 5625 | { |
| 5626 | EOF |
| 5627 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 5628 | cat <<\EOF >> conftest.$ac_ext |
| 5629 | {0, (lt_ptr_t) 0} |
| 5630 | }; |
| 5631 | |
| 5632 | #ifdef __cplusplus |
| 5633 | } |
| 5634 | #endif |
| 5635 | EOF |
| 5636 | # Now try linking the two files. |
| 5637 | mv conftest.$ac_objext conftstm.$ac_objext |
| 5638 | lt_save_LIBS="$LIBS" |
| 5639 | lt_save_CFLAGS="$CFLAGS" |
| 5640 | LIBS="conftstm.$ac_objext" |
| 5641 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 5642 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5643 | (eval $ac_link) 2>&5 |
| 5644 | ac_status=$? |
| 5645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5646 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 5647 | pipe_works=yes |
| 5648 | fi |
| 5649 | LIBS="$lt_save_LIBS" |
| 5650 | CFLAGS="$lt_save_CFLAGS" |
| 5651 | else |
| 5652 | echo "cannot find nm_test_func in $nlist" >&5 |
| 5653 | fi |
| 5654 | else |
| 5655 | echo "cannot find nm_test_var in $nlist" >&5 |
| 5656 | fi |
| 5657 | else |
| 5658 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 5659 | fi |
| 5660 | else |
| 5661 | echo "$progname: failed program was:" >&5 |
| 5662 | cat conftest.$ac_ext >&5 |
| 5663 | fi |
| 5664 | rm -f conftest* conftst* |
| 5665 | |
| 5666 | # Do not use the global_symbol_pipe unless it works. |
| 5667 | if test "$pipe_works" = yes; then |
| 5668 | break |
| 5669 | else |
| 5670 | lt_cv_sys_global_symbol_pipe= |
| 5671 | fi |
| 5672 | done |
| 5673 | |
| 5674 | fi |
| 5675 | |
| 5676 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 5677 | lt_cv_sys_global_symbol_to_cdecl= |
| 5678 | fi |
| 5679 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 5680 | echo "$as_me:$LINENO: result: failed" >&5 |
| 5681 | echo "${ECHO_T}failed" >&6 |
| 5682 | else |
| 5683 | echo "$as_me:$LINENO: result: ok" >&5 |
| 5684 | echo "${ECHO_T}ok" >&6 |
| 5685 | fi |
| 5686 | |
| 5687 | echo "$as_me:$LINENO: checking for objdir" >&5 |
| 5688 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
| 5689 | if test "${lt_cv_objdir+set}" = set; then |
| 5690 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5691 | else |
| 5692 | rm -f .libs 2>/dev/null |
| 5693 | mkdir .libs 2>/dev/null |
| 5694 | if test -d .libs; then |
| 5695 | lt_cv_objdir=.libs |
| 5696 | else |
| 5697 | # MS-DOS does not allow filenames that begin with a dot. |
| 5698 | lt_cv_objdir=_libs |
| 5699 | fi |
| 5700 | rmdir .libs 2>/dev/null |
| 5701 | fi |
| 5702 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
| 5703 | echo "${ECHO_T}$lt_cv_objdir" >&6 |
| 5704 | objdir=$lt_cv_objdir |
| 5705 | |
| 5706 | |
| 5707 | |
| 5708 | |
| 5709 | |
| 5710 | case $host_os in |
| 5711 | aix3*) |
| 5712 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 5713 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 5714 | # vanish in a puff of smoke. |
| 5715 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 5716 | COLLECT_NAMES= |
| 5717 | export COLLECT_NAMES |
| 5718 | fi |
| 5719 | ;; |
| 5720 | esac |
| 5721 | |
| 5722 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 5723 | # metacharacters that are still active within double-quoted strings. |
| 5724 | Xsed='sed -e s/^X//' |
| 5725 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 5726 | |
| 5727 | # Same as above, but do not quote variable references. |
| 5728 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 5729 | |
| 5730 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 5731 | # double_quote_subst'ed string. |
| 5732 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 5733 | |
| 5734 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 5735 | no_glob_subst='s/\*/\\\*/g' |
| 5736 | |
| 5737 | # Constants: |
| 5738 | rm="rm -f" |
| 5739 | |
| 5740 | # Global variables: |
| 5741 | default_ofile=libtool |
| 5742 | can_build_shared=yes |
| 5743 | |
| 5744 | # All known linkers require a `.a' archive for static linking (except M$VC, |
| 5745 | # which needs '.lib'). |
| 5746 | libext=a |
| 5747 | ltmain="$ac_aux_dir/ltmain.sh" |
| 5748 | ofile="$default_ofile" |
| 5749 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 5750 | |
| 5751 | if test -n "$ac_tool_prefix"; then |
| 5752 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 5753 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 5754 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5755 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5756 | if test "${ac_cv_prog_AR+set}" = set; then |
| 5757 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5758 | else |
| 5759 | if test -n "$AR"; then |
| 5760 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 5761 | else |
| 5762 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5763 | for as_dir in $PATH |
| 5764 | do |
| 5765 | IFS=$as_save_IFS |
| 5766 | test -z "$as_dir" && as_dir=. |
| 5767 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5768 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5769 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 5770 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5771 | break 2 |
| 5772 | fi |
| 5773 | done |
| 5774 | done |
| 5775 | |
| 5776 | fi |
| 5777 | fi |
| 5778 | AR=$ac_cv_prog_AR |
| 5779 | if test -n "$AR"; then |
| 5780 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 5781 | echo "${ECHO_T}$AR" >&6 |
| 5782 | else |
| 5783 | echo "$as_me:$LINENO: result: no" >&5 |
| 5784 | echo "${ECHO_T}no" >&6 |
| 5785 | fi |
| 5786 | |
| 5787 | fi |
| 5788 | if test -z "$ac_cv_prog_AR"; then |
| 5789 | ac_ct_AR=$AR |
| 5790 | # Extract the first word of "ar", so it can be a program name with args. |
| 5791 | set dummy ar; ac_word=$2 |
| 5792 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5793 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5794 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 5795 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5796 | else |
| 5797 | if test -n "$ac_ct_AR"; then |
| 5798 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 5799 | else |
| 5800 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5801 | for as_dir in $PATH |
| 5802 | do |
| 5803 | IFS=$as_save_IFS |
| 5804 | test -z "$as_dir" && as_dir=. |
| 5805 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5806 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5807 | ac_cv_prog_ac_ct_AR="ar" |
| 5808 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5809 | break 2 |
| 5810 | fi |
| 5811 | done |
| 5812 | done |
| 5813 | |
| 5814 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
| 5815 | fi |
| 5816 | fi |
| 5817 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 5818 | if test -n "$ac_ct_AR"; then |
| 5819 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 5820 | echo "${ECHO_T}$ac_ct_AR" >&6 |
| 5821 | else |
| 5822 | echo "$as_me:$LINENO: result: no" >&5 |
| 5823 | echo "${ECHO_T}no" >&6 |
| 5824 | fi |
| 5825 | |
| 5826 | AR=$ac_ct_AR |
| 5827 | else |
| 5828 | AR="$ac_cv_prog_AR" |
| 5829 | fi |
| 5830 | |
| 5831 | if test -n "$ac_tool_prefix"; then |
| 5832 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5833 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 5834 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5835 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5836 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 5837 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5838 | else |
| 5839 | if test -n "$RANLIB"; then |
| 5840 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5841 | else |
| 5842 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5843 | for as_dir in $PATH |
| 5844 | do |
| 5845 | IFS=$as_save_IFS |
| 5846 | test -z "$as_dir" && as_dir=. |
| 5847 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5848 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5849 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 5850 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5851 | break 2 |
| 5852 | fi |
| 5853 | done |
| 5854 | done |
| 5855 | |
| 5856 | fi |
| 5857 | fi |
| 5858 | RANLIB=$ac_cv_prog_RANLIB |
| 5859 | if test -n "$RANLIB"; then |
| 5860 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 5861 | echo "${ECHO_T}$RANLIB" >&6 |
| 5862 | else |
| 5863 | echo "$as_me:$LINENO: result: no" >&5 |
| 5864 | echo "${ECHO_T}no" >&6 |
| 5865 | fi |
| 5866 | |
| 5867 | fi |
| 5868 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5869 | ac_ct_RANLIB=$RANLIB |
| 5870 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5871 | set dummy ranlib; ac_word=$2 |
| 5872 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5873 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5874 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 5875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5876 | else |
| 5877 | if test -n "$ac_ct_RANLIB"; then |
| 5878 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5879 | else |
| 5880 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5881 | for as_dir in $PATH |
| 5882 | do |
| 5883 | IFS=$as_save_IFS |
| 5884 | test -z "$as_dir" && as_dir=. |
| 5885 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5886 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5887 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 5888 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5889 | break 2 |
| 5890 | fi |
| 5891 | done |
| 5892 | done |
| 5893 | |
| 5894 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 5895 | fi |
| 5896 | fi |
| 5897 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5898 | if test -n "$ac_ct_RANLIB"; then |
| 5899 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 5900 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 5901 | else |
| 5902 | echo "$as_me:$LINENO: result: no" >&5 |
| 5903 | echo "${ECHO_T}no" >&6 |
| 5904 | fi |
| 5905 | |
| 5906 | RANLIB=$ac_ct_RANLIB |
| 5907 | else |
| 5908 | RANLIB="$ac_cv_prog_RANLIB" |
| 5909 | fi |
| 5910 | |
| 5911 | if test -n "$ac_tool_prefix"; then |
| 5912 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 5913 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 5914 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5915 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5916 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 5917 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5918 | else |
| 5919 | if test -n "$STRIP"; then |
| 5920 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 5921 | else |
| 5922 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5923 | for as_dir in $PATH |
| 5924 | do |
| 5925 | IFS=$as_save_IFS |
| 5926 | test -z "$as_dir" && as_dir=. |
| 5927 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5928 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5929 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 5930 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5931 | break 2 |
| 5932 | fi |
| 5933 | done |
| 5934 | done |
| 5935 | |
| 5936 | fi |
| 5937 | fi |
| 5938 | STRIP=$ac_cv_prog_STRIP |
| 5939 | if test -n "$STRIP"; then |
| 5940 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 5941 | echo "${ECHO_T}$STRIP" >&6 |
| 5942 | else |
| 5943 | echo "$as_me:$LINENO: result: no" >&5 |
| 5944 | echo "${ECHO_T}no" >&6 |
| 5945 | fi |
| 5946 | |
| 5947 | fi |
| 5948 | if test -z "$ac_cv_prog_STRIP"; then |
| 5949 | ac_ct_STRIP=$STRIP |
| 5950 | # Extract the first word of "strip", so it can be a program name with args. |
| 5951 | set dummy strip; ac_word=$2 |
| 5952 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5953 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5954 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 5955 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5956 | else |
| 5957 | if test -n "$ac_ct_STRIP"; then |
| 5958 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 5959 | else |
| 5960 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5961 | for as_dir in $PATH |
| 5962 | do |
| 5963 | IFS=$as_save_IFS |
| 5964 | test -z "$as_dir" && as_dir=. |
| 5965 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5966 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5967 | ac_cv_prog_ac_ct_STRIP="strip" |
| 5968 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5969 | break 2 |
| 5970 | fi |
| 5971 | done |
| 5972 | done |
| 5973 | |
| 5974 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 5975 | fi |
| 5976 | fi |
| 5977 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 5978 | if test -n "$ac_ct_STRIP"; then |
| 5979 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 5980 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 5981 | else |
| 5982 | echo "$as_me:$LINENO: result: no" >&5 |
| 5983 | echo "${ECHO_T}no" >&6 |
| 5984 | fi |
| 5985 | |
| 5986 | STRIP=$ac_ct_STRIP |
| 5987 | else |
| 5988 | STRIP="$ac_cv_prog_STRIP" |
| 5989 | fi |
| 5990 | |
| 5991 | |
| 5992 | old_CC="$CC" |
| 5993 | old_CFLAGS="$CFLAGS" |
| 5994 | |
| 5995 | # Set sane defaults for various variables |
| 5996 | test -z "$AR" && AR=ar |
| 5997 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 5998 | test -z "$AS" && AS=as |
| 5999 | test -z "$CC" && CC=cc |
| 6000 | test -z "$LTCC" && LTCC=$CC |
| 6001 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 6002 | test -z "$LD" && LD=ld |
| 6003 | test -z "$LN_S" && LN_S="ln -s" |
| 6004 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 6005 | test -z "$NM" && NM=nm |
| 6006 | test -z "$SED" && SED=sed |
| 6007 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 6008 | test -z "$RANLIB" && RANLIB=: |
| 6009 | test -z "$STRIP" && STRIP=: |
| 6010 | test -z "$ac_objext" && ac_objext=o |
| 6011 | |
| 6012 | # Determine commands to create old-style static archives. |
| 6013 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 6014 | old_postinstall_cmds='chmod 644 $oldlib' |
| 6015 | old_postuninstall_cmds= |
| 6016 | |
| 6017 | if test -n "$RANLIB"; then |
| 6018 | case $host_os in |
| 6019 | openbsd*) |
| 6020 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
| 6021 | ;; |
| 6022 | *) |
| 6023 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
| 6024 | ;; |
| 6025 | esac |
| 6026 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 6027 | fi |
| 6028 | |
| 6029 | # Only perform the check for file, if the check method requires it |
| 6030 | case $deplibs_check_method in |
| 6031 | file_magic*) |
| 6032 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 6033 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 6034 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
| 6035 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 6036 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6037 | else |
| 6038 | case $MAGIC_CMD in |
| 6039 | [\\/*] | ?:[\\/]*) |
| 6040 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 6041 | ;; |
| 6042 | *) |
| 6043 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 6044 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6045 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 6046 | for ac_dir in $ac_dummy; do |
| 6047 | IFS="$lt_save_ifs" |
| 6048 | test -z "$ac_dir" && ac_dir=. |
| 6049 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 6050 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 6051 | if test -n "$file_magic_test_file"; then |
| 6052 | case $deplibs_check_method in |
| 6053 | "file_magic "*) |
| 6054 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 6055 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 6056 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 6057 | $EGREP "$file_magic_regex" > /dev/null; then |
| 6058 | : |
| 6059 | else |
| 6060 | cat <<EOF 1>&2 |
| 6061 | |
| 6062 | *** Warning: the command libtool uses to detect shared libraries, |
| 6063 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 6064 | *** The result is that libtool may fail to recognize shared libraries |
| 6065 | *** as such. This will affect the creation of libtool libraries that |
| 6066 | *** depend on shared libraries, but programs linked with such libtool |
| 6067 | *** libraries will work regardless of this problem. Nevertheless, you |
| 6068 | *** may want to report the problem to your system manager and/or to |
| 6069 | *** bug-libtool@gnu.org |
| 6070 | |
| 6071 | EOF |
| 6072 | fi ;; |
| 6073 | esac |
| 6074 | fi |
| 6075 | break |
| 6076 | fi |
| 6077 | done |
| 6078 | IFS="$lt_save_ifs" |
| 6079 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 6080 | ;; |
| 6081 | esac |
| 6082 | fi |
| 6083 | |
| 6084 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 6085 | if test -n "$MAGIC_CMD"; then |
| 6086 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 6087 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 6088 | else |
| 6089 | echo "$as_me:$LINENO: result: no" >&5 |
| 6090 | echo "${ECHO_T}no" >&6 |
| 6091 | fi |
| 6092 | |
| 6093 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 6094 | if test -n "$ac_tool_prefix"; then |
| 6095 | echo "$as_me:$LINENO: checking for file" >&5 |
| 6096 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
| 6097 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 6098 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6099 | else |
| 6100 | case $MAGIC_CMD in |
| 6101 | [\\/*] | ?:[\\/]*) |
| 6102 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 6103 | ;; |
| 6104 | *) |
| 6105 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 6106 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6107 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 6108 | for ac_dir in $ac_dummy; do |
| 6109 | IFS="$lt_save_ifs" |
| 6110 | test -z "$ac_dir" && ac_dir=. |
| 6111 | if test -f $ac_dir/file; then |
| 6112 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 6113 | if test -n "$file_magic_test_file"; then |
| 6114 | case $deplibs_check_method in |
| 6115 | "file_magic "*) |
| 6116 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 6117 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 6118 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 6119 | $EGREP "$file_magic_regex" > /dev/null; then |
| 6120 | : |
| 6121 | else |
| 6122 | cat <<EOF 1>&2 |
| 6123 | |
| 6124 | *** Warning: the command libtool uses to detect shared libraries, |
| 6125 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 6126 | *** The result is that libtool may fail to recognize shared libraries |
| 6127 | *** as such. This will affect the creation of libtool libraries that |
| 6128 | *** depend on shared libraries, but programs linked with such libtool |
| 6129 | *** libraries will work regardless of this problem. Nevertheless, you |
| 6130 | *** may want to report the problem to your system manager and/or to |
| 6131 | *** bug-libtool@gnu.org |
| 6132 | |
| 6133 | EOF |
| 6134 | fi ;; |
| 6135 | esac |
| 6136 | fi |
| 6137 | break |
| 6138 | fi |
| 6139 | done |
| 6140 | IFS="$lt_save_ifs" |
| 6141 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 6142 | ;; |
| 6143 | esac |
| 6144 | fi |
| 6145 | |
| 6146 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 6147 | if test -n "$MAGIC_CMD"; then |
| 6148 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 6149 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 6150 | else |
| 6151 | echo "$as_me:$LINENO: result: no" >&5 |
| 6152 | echo "${ECHO_T}no" >&6 |
| 6153 | fi |
| 6154 | |
| 6155 | else |
| 6156 | MAGIC_CMD=: |
| 6157 | fi |
| 6158 | fi |
| 6159 | |
| 6160 | fi |
| 6161 | ;; |
| 6162 | esac |
| 6163 | |
| 6164 | enable_dlopen=no |
| 6165 | enable_win32_dll=no |
| 6166 | |
| 6167 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 6168 | if test "${enable_libtool_lock+set}" = set; then |
| 6169 | enableval="$enable_libtool_lock" |
| 6170 | |
| 6171 | fi; |
| 6172 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 6173 | |
| 6174 | |
| 6175 | # Check whether --with-pic or --without-pic was given. |
| 6176 | if test "${with_pic+set}" = set; then |
| 6177 | withval="$with_pic" |
| 6178 | pic_mode="$withval" |
| 6179 | else |
| 6180 | pic_mode=default |
| 6181 | fi; |
| 6182 | test -z "$pic_mode" && pic_mode=default |
| 6183 | |
| 6184 | # Use C for the default configuration in the libtool script |
| 6185 | tagname= |
| 6186 | lt_save_CC="$CC" |
| 6187 | ac_ext=c |
| 6188 | ac_cpp='$CPP $CPPFLAGS' |
| 6189 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6190 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6191 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6192 | |
| 6193 | |
| 6194 | # Source file extension for C test sources. |
| 6195 | ac_ext=c |
| 6196 | |
| 6197 | # Object file extension for compiled C test sources. |
| 6198 | objext=o |
| 6199 | objext=$objext |
| 6200 | |
| 6201 | # Code to be used in simple compile tests |
| 6202 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 6203 | |
| 6204 | # Code to be used in simple link tests |
| 6205 | lt_simple_link_test_code='int main(){return(0);}\n' |
| 6206 | |
| 6207 | |
| 6208 | # If no C compiler was specified, use CC. |
| 6209 | LTCC=${LTCC-"$CC"} |
| 6210 | |
| 6211 | # Allow CC to be a program name with arguments. |
| 6212 | compiler=$CC |
| 6213 | |
| 6214 | |
| 6215 | # |
| 6216 | # Check for any special shared library compilation flags. |
| 6217 | # |
| 6218 | lt_prog_cc_shlib= |
| 6219 | if test "$GCC" = no; then |
| 6220 | case $host_os in |
| 6221 | sco3.2v5*) |
| 6222 | lt_prog_cc_shlib='-belf' |
| 6223 | ;; |
| 6224 | esac |
| 6225 | fi |
| 6226 | if test -n "$lt_prog_cc_shlib"; then |
| 6227 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 |
| 6228 | echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} |
| 6229 | if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : |
| 6230 | else |
| 6231 | { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
| 6232 | echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
| 6233 | lt_cv_prog_cc_can_build_shared=no |
| 6234 | fi |
| 6235 | fi |
| 6236 | |
| 6237 | |
| 6238 | # |
| 6239 | # Check to make sure the static flag actually works. |
| 6240 | # |
| 6241 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 |
| 6242 | echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 |
| 6243 | if test "${lt_prog_compiler_static_works+set}" = set; then |
| 6244 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6245 | else |
| 6246 | lt_prog_compiler_static_works=no |
| 6247 | save_LDFLAGS="$LDFLAGS" |
| 6248 | LDFLAGS="$LDFLAGS $lt_prog_compiler_static" |
| 6249 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 6250 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 6251 | # The compiler can only warn and ignore the option if not recognized |
| 6252 | # So say no if there are warnings |
| 6253 | if test -s conftest.err; then |
| 6254 | # Append any errors to the config.log. |
| 6255 | cat conftest.err 1>&5 |
| 6256 | else |
| 6257 | lt_prog_compiler_static_works=yes |
| 6258 | fi |
| 6259 | fi |
| 6260 | $rm conftest* |
| 6261 | LDFLAGS="$save_LDFLAGS" |
| 6262 | |
| 6263 | fi |
| 6264 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
| 6265 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
| 6266 | |
| 6267 | if test x"$lt_prog_compiler_static_works" = xyes; then |
| 6268 | : |
| 6269 | else |
| 6270 | lt_prog_compiler_static= |
| 6271 | fi |
| 6272 | |
| 6273 | |
| 6274 | |
| 6275 | |
| 6276 | lt_prog_compiler_no_builtin_flag= |
| 6277 | |
| 6278 | if test "$GCC" = yes; then |
| 6279 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 6280 | |
| 6281 | |
| 6282 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 6283 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| 6284 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 6285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6286 | else |
| 6287 | lt_cv_prog_compiler_rtti_exceptions=no |
| 6288 | ac_outfile=conftest.$ac_objext |
| 6289 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 6290 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 6291 | # Insert the option either (1) after the last *FLAGS variable, or |
| 6292 | # (2) before a word containing "conftest.", or (3) at the end. |
| 6293 | # Note that $ac_compile itself does not contain backslashes and begins |
| 6294 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 6295 | # The option is referenced via a variable to avoid confusing sed. |
| 6296 | lt_compile=`echo "$ac_compile" | $SED \ |
| 6297 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 6298 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 6299 | -e 's:$: $lt_compiler_flag:'` |
Lev Walkin | 33cded1 | 2004-09-19 19:40:52 +0000 | [diff] [blame] | 6300 | (eval echo "\"\$as_me:6300: $lt_compile\"" >&5) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6301 | (eval "$lt_compile" 2>conftest.err) |
| 6302 | ac_status=$? |
| 6303 | cat conftest.err >&5 |
Lev Walkin | 33cded1 | 2004-09-19 19:40:52 +0000 | [diff] [blame] | 6304 | echo "$as_me:6304: \$? = $ac_status" >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6305 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 6306 | # The compiler can only warn and ignore the option if not recognized |
| 6307 | # So say no if there are warnings |
| 6308 | if test ! -s conftest.err; then |
| 6309 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 6310 | fi |
| 6311 | fi |
| 6312 | $rm conftest* |
| 6313 | |
| 6314 | fi |
| 6315 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 6316 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
| 6317 | |
| 6318 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 6319 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 6320 | else |
| 6321 | : |
| 6322 | fi |
| 6323 | |
| 6324 | fi |
| 6325 | |
| 6326 | lt_prog_compiler_wl= |
| 6327 | lt_prog_compiler_pic= |
| 6328 | lt_prog_compiler_static= |
| 6329 | |
| 6330 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 6331 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 6332 | |
| 6333 | if test "$GCC" = yes; then |
| 6334 | lt_prog_compiler_wl='-Wl,' |
| 6335 | lt_prog_compiler_static='-static' |
| 6336 | |
| 6337 | case $host_os in |
| 6338 | aix*) |
| 6339 | # All AIX code is PIC. |
| 6340 | if test "$host_cpu" = ia64; then |
| 6341 | # AIX 5 now supports IA64 processor |
| 6342 | lt_prog_compiler_static='-Bstatic' |
| 6343 | fi |
| 6344 | ;; |
| 6345 | |
| 6346 | amigaos*) |
| 6347 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 6348 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 6349 | # like `-m68040'. |
| 6350 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 6351 | ;; |
| 6352 | |
| 6353 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 6354 | # PIC is the default for these OSes. |
| 6355 | ;; |
| 6356 | |
| 6357 | mingw* | pw32* | os2*) |
| 6358 | # This hack is so that the source file can tell whether it is being |
| 6359 | # built for inclusion in a dll (and should export symbols for example). |
| 6360 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 6361 | ;; |
| 6362 | |
| 6363 | darwin* | rhapsody*) |
| 6364 | # PIC is the default on this platform |
| 6365 | # Common symbols not allowed in MH_DYLIB files |
| 6366 | lt_prog_compiler_pic='-fno-common' |
| 6367 | ;; |
| 6368 | |
| 6369 | msdosdjgpp*) |
| 6370 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 6371 | # on systems that don't support them. |
| 6372 | lt_prog_compiler_can_build_shared=no |
| 6373 | enable_shared=no |
| 6374 | ;; |
| 6375 | |
| 6376 | sysv4*MP*) |
| 6377 | if test -d /usr/nec; then |
| 6378 | lt_prog_compiler_pic=-Kconform_pic |
| 6379 | fi |
| 6380 | ;; |
| 6381 | |
| 6382 | hpux*) |
| 6383 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 6384 | # not for PA HP-UX. |
| 6385 | case "$host_cpu" in |
| 6386 | hppa*64*|ia64*) |
| 6387 | # +Z the default |
| 6388 | ;; |
| 6389 | *) |
| 6390 | lt_prog_compiler_pic='-fPIC' |
| 6391 | ;; |
| 6392 | esac |
| 6393 | ;; |
| 6394 | |
| 6395 | *) |
| 6396 | lt_prog_compiler_pic='-fPIC' |
| 6397 | ;; |
| 6398 | esac |
| 6399 | else |
| 6400 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 6401 | case $host_os in |
| 6402 | aix*) |
| 6403 | lt_prog_compiler_wl='-Wl,' |
| 6404 | if test "$host_cpu" = ia64; then |
| 6405 | # AIX 5 now supports IA64 processor |
| 6406 | lt_prog_compiler_static='-Bstatic' |
| 6407 | else |
| 6408 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 6409 | fi |
| 6410 | ;; |
| 6411 | |
| 6412 | mingw* | pw32* | os2*) |
| 6413 | # This hack is so that the source file can tell whether it is being |
| 6414 | # built for inclusion in a dll (and should export symbols for example). |
| 6415 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 6416 | ;; |
| 6417 | |
| 6418 | hpux9* | hpux10* | hpux11*) |
| 6419 | lt_prog_compiler_wl='-Wl,' |
| 6420 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 6421 | # not for PA HP-UX. |
| 6422 | case "$host_cpu" in |
| 6423 | hppa*64*|ia64*) |
| 6424 | # +Z the default |
| 6425 | ;; |
| 6426 | *) |
| 6427 | lt_prog_compiler_pic='+Z' |
| 6428 | ;; |
| 6429 | esac |
| 6430 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 6431 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
| 6432 | ;; |
| 6433 | |
| 6434 | irix5* | irix6* | nonstopux*) |
| 6435 | lt_prog_compiler_wl='-Wl,' |
| 6436 | # PIC (with -KPIC) is the default. |
| 6437 | lt_prog_compiler_static='-non_shared' |
| 6438 | ;; |
| 6439 | |
| 6440 | newsos6) |
| 6441 | lt_prog_compiler_pic='-KPIC' |
| 6442 | lt_prog_compiler_static='-Bstatic' |
| 6443 | ;; |
| 6444 | |
| 6445 | linux*) |
| 6446 | case $CC in |
| 6447 | icc* | ecc*) |
| 6448 | lt_prog_compiler_wl='-Wl,' |
| 6449 | lt_prog_compiler_pic='-KPIC' |
| 6450 | lt_prog_compiler_static='-static' |
| 6451 | ;; |
| 6452 | ccc*) |
| 6453 | lt_prog_compiler_wl='-Wl,' |
| 6454 | # All Alpha code is PIC. |
| 6455 | lt_prog_compiler_static='-non_shared' |
| 6456 | ;; |
| 6457 | esac |
| 6458 | ;; |
| 6459 | |
| 6460 | osf3* | osf4* | osf5*) |
| 6461 | lt_prog_compiler_wl='-Wl,' |
| 6462 | # All OSF/1 code is PIC. |
| 6463 | lt_prog_compiler_static='-non_shared' |
| 6464 | ;; |
| 6465 | |
| 6466 | sco3.2v5*) |
| 6467 | lt_prog_compiler_pic='-Kpic' |
| 6468 | lt_prog_compiler_static='-dn' |
| 6469 | ;; |
| 6470 | |
| 6471 | solaris*) |
| 6472 | lt_prog_compiler_wl='-Wl,' |
| 6473 | lt_prog_compiler_pic='-KPIC' |
| 6474 | lt_prog_compiler_static='-Bstatic' |
| 6475 | ;; |
| 6476 | |
| 6477 | sunos4*) |
| 6478 | lt_prog_compiler_wl='-Qoption ld ' |
| 6479 | lt_prog_compiler_pic='-PIC' |
| 6480 | lt_prog_compiler_static='-Bstatic' |
| 6481 | ;; |
| 6482 | |
| 6483 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 6484 | lt_prog_compiler_wl='-Wl,' |
| 6485 | lt_prog_compiler_pic='-KPIC' |
| 6486 | lt_prog_compiler_static='-Bstatic' |
| 6487 | ;; |
| 6488 | |
| 6489 | sysv4*MP*) |
| 6490 | if test -d /usr/nec ;then |
| 6491 | lt_prog_compiler_pic='-Kconform_pic' |
| 6492 | lt_prog_compiler_static='-Bstatic' |
| 6493 | fi |
| 6494 | ;; |
| 6495 | |
| 6496 | uts4*) |
| 6497 | lt_prog_compiler_pic='-pic' |
| 6498 | lt_prog_compiler_static='-Bstatic' |
| 6499 | ;; |
| 6500 | |
| 6501 | *) |
| 6502 | lt_prog_compiler_can_build_shared=no |
| 6503 | ;; |
| 6504 | esac |
| 6505 | fi |
| 6506 | |
| 6507 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
| 6508 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
| 6509 | |
| 6510 | # |
| 6511 | # Check to make sure the PIC flag actually works. |
| 6512 | # |
| 6513 | if test -n "$lt_prog_compiler_pic"; then |
| 6514 | |
| 6515 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 6516 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
| 6517 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
| 6518 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6519 | else |
| 6520 | lt_prog_compiler_pic_works=no |
| 6521 | ac_outfile=conftest.$ac_objext |
| 6522 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 6523 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 6524 | # Insert the option either (1) after the last *FLAGS variable, or |
| 6525 | # (2) before a word containing "conftest.", or (3) at the end. |
| 6526 | # Note that $ac_compile itself does not contain backslashes and begins |
| 6527 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 6528 | # The option is referenced via a variable to avoid confusing sed. |
| 6529 | lt_compile=`echo "$ac_compile" | $SED \ |
| 6530 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 6531 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 6532 | -e 's:$: $lt_compiler_flag:'` |
Lev Walkin | 33cded1 | 2004-09-19 19:40:52 +0000 | [diff] [blame] | 6533 | (eval echo "\"\$as_me:6533: $lt_compile\"" >&5) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6534 | (eval "$lt_compile" 2>conftest.err) |
| 6535 | ac_status=$? |
| 6536 | cat conftest.err >&5 |
Lev Walkin | 33cded1 | 2004-09-19 19:40:52 +0000 | [diff] [blame] | 6537 | echo "$as_me:6537: \$? = $ac_status" >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6538 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 6539 | # The compiler can only warn and ignore the option if not recognized |
| 6540 | # So say no if there are warnings |
| 6541 | if test ! -s conftest.err; then |
| 6542 | lt_prog_compiler_pic_works=yes |
| 6543 | fi |
| 6544 | fi |
| 6545 | $rm conftest* |
| 6546 | |
| 6547 | fi |
| 6548 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
| 6549 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
| 6550 | |
| 6551 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
| 6552 | case $lt_prog_compiler_pic in |
| 6553 | "" | " "*) ;; |
| 6554 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 6555 | esac |
| 6556 | else |
| 6557 | lt_prog_compiler_pic= |
| 6558 | lt_prog_compiler_can_build_shared=no |
| 6559 | fi |
| 6560 | |
| 6561 | fi |
| 6562 | case "$host_os" in |
| 6563 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 6564 | *djgpp*) |
| 6565 | lt_prog_compiler_pic= |
| 6566 | ;; |
| 6567 | *) |
| 6568 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 6569 | ;; |
| 6570 | esac |
| 6571 | |
| 6572 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 6573 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 6574 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
| 6575 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6576 | else |
| 6577 | lt_cv_prog_compiler_c_o=no |
| 6578 | $rm -r conftest 2>/dev/null |
| 6579 | mkdir conftest |
| 6580 | cd conftest |
| 6581 | mkdir out |
| 6582 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 6583 | |
| 6584 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 6585 | # Insert the option either (1) after the last *FLAGS variable, or |
| 6586 | # (2) before a word containing "conftest.", or (3) at the end. |
| 6587 | # Note that $ac_compile itself does not contain backslashes and begins |
| 6588 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 6589 | lt_compile=`echo "$ac_compile" | $SED \ |
| 6590 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 6591 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 6592 | -e 's:$: $lt_compiler_flag:'` |
Lev Walkin | 33cded1 | 2004-09-19 19:40:52 +0000 | [diff] [blame] | 6593 | (eval echo "\"\$as_me:6593: $lt_compile\"" >&5) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6594 | (eval "$lt_compile" 2>out/conftest.err) |
| 6595 | ac_status=$? |
| 6596 | cat out/conftest.err >&5 |
Lev Walkin | 33cded1 | 2004-09-19 19:40:52 +0000 | [diff] [blame] | 6597 | echo "$as_me:6597: \$? = $ac_status" >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6598 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 6599 | then |
| 6600 | # The compiler can only warn and ignore the option if not recognized |
| 6601 | # So say no if there are warnings |
| 6602 | if test ! -s out/conftest.err; then |
| 6603 | lt_cv_prog_compiler_c_o=yes |
| 6604 | fi |
| 6605 | fi |
| 6606 | chmod u+w . |
| 6607 | $rm conftest* |
| 6608 | # SGI C++ compiler will create directory out/ii_files/ for |
| 6609 | # template instantiation |
| 6610 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 6611 | $rm out/* && rmdir out |
| 6612 | cd .. |
| 6613 | rmdir conftest |
| 6614 | $rm conftest* |
| 6615 | |
| 6616 | fi |
| 6617 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 6618 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
| 6619 | |
| 6620 | |
| 6621 | hard_links="nottested" |
| 6622 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
| 6623 | # do not overwrite the value of need_locks provided by the user |
| 6624 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 6625 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 6626 | hard_links=yes |
| 6627 | $rm conftest* |
| 6628 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 6629 | touch conftest.a |
| 6630 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 6631 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 6632 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 6633 | echo "${ECHO_T}$hard_links" >&6 |
| 6634 | if test "$hard_links" = no; then |
| 6635 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 6636 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 6637 | need_locks=warn |
| 6638 | fi |
| 6639 | else |
| 6640 | need_locks=no |
| 6641 | fi |
| 6642 | |
| 6643 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 6644 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 6645 | |
| 6646 | runpath_var= |
| 6647 | allow_undefined_flag= |
| 6648 | enable_shared_with_static_runtimes=no |
| 6649 | archive_cmds= |
| 6650 | archive_expsym_cmds= |
| 6651 | old_archive_From_new_cmds= |
| 6652 | old_archive_from_expsyms_cmds= |
| 6653 | export_dynamic_flag_spec= |
| 6654 | whole_archive_flag_spec= |
| 6655 | thread_safe_flag_spec= |
| 6656 | hardcode_libdir_flag_spec= |
| 6657 | hardcode_libdir_flag_spec_ld= |
| 6658 | hardcode_libdir_separator= |
| 6659 | hardcode_direct=no |
| 6660 | hardcode_minus_L=no |
| 6661 | hardcode_shlibpath_var=unsupported |
| 6662 | link_all_deplibs=unknown |
| 6663 | hardcode_automatic=no |
| 6664 | module_cmds= |
| 6665 | module_expsym_cmds= |
| 6666 | always_export_symbols=no |
| 6667 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 6668 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 6669 | # included in the symbol list |
| 6670 | include_expsyms= |
| 6671 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 6672 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 6673 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 6674 | # as well as any symbol that contains `d'. |
| 6675 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 6676 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 6677 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 6678 | # the symbol is explicitly referenced. Since portable code cannot |
| 6679 | # rely on this symbol name, it's probably fine to never include it in |
| 6680 | # preloaded symbol tables. |
| 6681 | extract_expsyms_cmds= |
| 6682 | |
| 6683 | case $host_os in |
| 6684 | cygwin* | mingw* | pw32*) |
| 6685 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 6686 | # When not using gcc, we currently assume that we are using |
| 6687 | # Microsoft Visual C++. |
| 6688 | if test "$GCC" != yes; then |
| 6689 | with_gnu_ld=no |
| 6690 | fi |
| 6691 | ;; |
| 6692 | openbsd*) |
| 6693 | with_gnu_ld=no |
| 6694 | ;; |
| 6695 | esac |
| 6696 | |
| 6697 | ld_shlibs=yes |
| 6698 | if test "$with_gnu_ld" = yes; then |
| 6699 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 6700 | wlarc='${wl}' |
| 6701 | |
| 6702 | # See if GNU ld supports shared libraries. |
| 6703 | case $host_os in |
| 6704 | aix3* | aix4* | aix5*) |
| 6705 | # On AIX/PPC, the GNU linker is very broken |
| 6706 | if test "$host_cpu" != ia64; then |
| 6707 | ld_shlibs=no |
| 6708 | cat <<EOF 1>&2 |
| 6709 | |
| 6710 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 6711 | *** to be unable to reliably create shared libraries on AIX. |
| 6712 | *** Therefore, libtool is disabling shared libraries support. If you |
| 6713 | *** really care for shared libraries, you may want to modify your PATH |
| 6714 | *** so that a non-GNU linker is found, and then restart. |
| 6715 | |
| 6716 | EOF |
| 6717 | fi |
| 6718 | ;; |
| 6719 | |
| 6720 | amigaos*) |
| 6721 | 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)' |
| 6722 | hardcode_libdir_flag_spec='-L$libdir' |
| 6723 | hardcode_minus_L=yes |
| 6724 | |
| 6725 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 6726 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 6727 | # to version 4, is to share data among multiple programs linked |
| 6728 | # with the same dynamic library. Since this doesn't match the |
| 6729 | # behavior of shared libraries on other platforms, we can't use |
| 6730 | # them. |
| 6731 | ld_shlibs=no |
| 6732 | ;; |
| 6733 | |
| 6734 | beos*) |
| 6735 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 6736 | allow_undefined_flag=unsupported |
| 6737 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 6738 | # support --undefined. This deserves some investigation. FIXME |
| 6739 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6740 | else |
| 6741 | ld_shlibs=no |
| 6742 | fi |
| 6743 | ;; |
| 6744 | |
| 6745 | cygwin* | mingw* | pw32*) |
| 6746 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 6747 | # as there is no search path for DLLs. |
| 6748 | hardcode_libdir_flag_spec='-L$libdir' |
| 6749 | allow_undefined_flag=unsupported |
| 6750 | always_export_symbols=no |
| 6751 | enable_shared_with_static_runtimes=yes |
| 6752 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 6753 | |
| 6754 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 6755 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 6756 | # If the export-symbols file already is a .def file (1st line |
| 6757 | # is EXPORTS), use it as is; otherwise, prepend... |
| 6758 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 6759 | cp $export_symbols $output_objdir/$soname.def; |
| 6760 | else |
| 6761 | echo EXPORTS > $output_objdir/$soname.def; |
| 6762 | cat $export_symbols >> $output_objdir/$soname.def; |
| 6763 | fi~ |
| 6764 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 6765 | else |
| 6766 | ld_shlibs=no |
| 6767 | fi |
| 6768 | ;; |
| 6769 | |
| 6770 | netbsd*) |
| 6771 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 6772 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 6773 | wlarc= |
| 6774 | else |
| 6775 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6776 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 6777 | fi |
| 6778 | ;; |
| 6779 | |
| 6780 | solaris* | sysv5*) |
| 6781 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 6782 | ld_shlibs=no |
| 6783 | cat <<EOF 1>&2 |
| 6784 | |
| 6785 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 6786 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 6787 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 6788 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 6789 | *** your PATH or compiler configuration so that the native linker is |
| 6790 | *** used, and then restart. |
| 6791 | |
| 6792 | EOF |
| 6793 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 6794 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6795 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 6796 | else |
| 6797 | ld_shlibs=no |
| 6798 | fi |
| 6799 | ;; |
| 6800 | |
| 6801 | sunos4*) |
| 6802 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 6803 | wlarc= |
| 6804 | hardcode_direct=yes |
| 6805 | hardcode_shlibpath_var=no |
| 6806 | ;; |
| 6807 | |
| 6808 | linux*) |
| 6809 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 6810 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6811 | archive_cmds="$tmp_archive_cmds" |
| 6812 | supports_anon_versioning=no |
| 6813 | case `$LD -v 2>/dev/null` in |
| 6814 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 6815 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 6816 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 6817 | *\ 2.11.*) ;; # other 2.11 versions |
| 6818 | *) supports_anon_versioning=yes ;; |
| 6819 | esac |
| 6820 | if test $supports_anon_versioning = yes; then |
| 6821 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 6822 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 6823 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 6824 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 6825 | else |
| 6826 | archive_expsym_cmds="$tmp_archive_cmds" |
| 6827 | fi |
| 6828 | else |
| 6829 | ld_shlibs=no |
| 6830 | fi |
| 6831 | ;; |
| 6832 | |
| 6833 | *) |
| 6834 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 6835 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6836 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 6837 | else |
| 6838 | ld_shlibs=no |
| 6839 | fi |
| 6840 | ;; |
| 6841 | esac |
| 6842 | |
| 6843 | if test "$ld_shlibs" = yes; then |
| 6844 | runpath_var=LD_RUN_PATH |
| 6845 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 6846 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 6847 | # ancient GNU ld didn't support --whole-archive et. al. |
| 6848 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 6849 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 6850 | else |
| 6851 | whole_archive_flag_spec= |
| 6852 | fi |
| 6853 | fi |
| 6854 | else |
| 6855 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 6856 | case $host_os in |
| 6857 | aix3*) |
| 6858 | allow_undefined_flag=unsupported |
| 6859 | always_export_symbols=yes |
| 6860 | 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' |
| 6861 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 6862 | # are no directories specified by -L. |
| 6863 | hardcode_minus_L=yes |
| 6864 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 6865 | # Neither direct hardcoding nor static linking is supported with a |
| 6866 | # broken collect2. |
| 6867 | hardcode_direct=unsupported |
| 6868 | fi |
| 6869 | ;; |
| 6870 | |
| 6871 | aix4* | aix5*) |
| 6872 | if test "$host_cpu" = ia64; then |
| 6873 | # On IA64, the linker does run time linking by default, so we don't |
| 6874 | # have to do anything special. |
| 6875 | aix_use_runtimelinking=no |
| 6876 | exp_sym_flag='-Bexport' |
| 6877 | no_entry_flag="" |
| 6878 | else |
| 6879 | # If we're using GNU nm, then we don't want the "-C" option. |
| 6880 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 6881 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 6882 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 6883 | else |
| 6884 | 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' |
| 6885 | fi |
| 6886 | aix_use_runtimelinking=no |
| 6887 | |
| 6888 | # Test if we are trying to use run time linking or normal |
| 6889 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 6890 | # need to do runtime linking. |
| 6891 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 6892 | for ld_flag in $LDFLAGS; do |
| 6893 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 6894 | aix_use_runtimelinking=yes |
| 6895 | break |
| 6896 | fi |
| 6897 | done |
| 6898 | esac |
| 6899 | |
| 6900 | exp_sym_flag='-bexport' |
| 6901 | no_entry_flag='-bnoentry' |
| 6902 | fi |
| 6903 | |
| 6904 | # When large executables or shared objects are built, AIX ld can |
| 6905 | # have problems creating the table of contents. If linking a library |
| 6906 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 6907 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 6908 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 6909 | |
| 6910 | archive_cmds='' |
| 6911 | hardcode_direct=yes |
| 6912 | hardcode_libdir_separator=':' |
| 6913 | link_all_deplibs=yes |
| 6914 | |
| 6915 | if test "$GCC" = yes; then |
| 6916 | case $host_os in aix4.012|aix4.012.*) |
| 6917 | # We only want to do this on AIX 4.2 and lower, the check |
| 6918 | # below for broken collect2 doesn't work under 4.3+ |
| 6919 | collect2name=`${CC} -print-prog-name=collect2` |
| 6920 | if test -f "$collect2name" && \ |
| 6921 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 6922 | then |
| 6923 | # We have reworked collect2 |
| 6924 | hardcode_direct=yes |
| 6925 | else |
| 6926 | # We have old collect2 |
| 6927 | hardcode_direct=unsupported |
| 6928 | # It fails to find uninstalled libraries when the uninstalled |
| 6929 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 6930 | # to unsupported forces relinking |
| 6931 | hardcode_minus_L=yes |
| 6932 | hardcode_libdir_flag_spec='-L$libdir' |
| 6933 | hardcode_libdir_separator= |
| 6934 | fi |
| 6935 | esac |
| 6936 | shared_flag='-shared' |
| 6937 | else |
| 6938 | # not using gcc |
| 6939 | if test "$host_cpu" = ia64; then |
| 6940 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 6941 | # chokes on -Wl,-G. The following line is correct: |
| 6942 | shared_flag='-G' |
| 6943 | else |
| 6944 | if test "$aix_use_runtimelinking" = yes; then |
| 6945 | shared_flag='${wl}-G' |
| 6946 | else |
| 6947 | shared_flag='${wl}-bM:SRE' |
| 6948 | fi |
| 6949 | fi |
| 6950 | fi |
| 6951 | |
| 6952 | # It seems that -bexpall does not export symbols beginning with |
| 6953 | # underscore (_), so it is better to generate a list of symbols to export. |
| 6954 | always_export_symbols=yes |
| 6955 | if test "$aix_use_runtimelinking" = yes; then |
| 6956 | # Warning - without using the other runtime loading flags (-brtl), |
| 6957 | # -berok will link without error, but may produce a broken library. |
| 6958 | allow_undefined_flag='-berok' |
| 6959 | # Determine the default libpath from the value encoded in an empty executable. |
| 6960 | cat >conftest.$ac_ext <<_ACEOF |
| 6961 | /* confdefs.h. */ |
| 6962 | _ACEOF |
| 6963 | cat confdefs.h >>conftest.$ac_ext |
| 6964 | cat >>conftest.$ac_ext <<_ACEOF |
| 6965 | /* end confdefs.h. */ |
| 6966 | |
| 6967 | int |
| 6968 | main () |
| 6969 | { |
| 6970 | |
| 6971 | ; |
| 6972 | return 0; |
| 6973 | } |
| 6974 | _ACEOF |
| 6975 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6976 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6977 | (eval $ac_link) 2>conftest.er1 |
| 6978 | ac_status=$? |
| 6979 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6980 | rm -f conftest.er1 |
| 6981 | cat conftest.err >&5 |
| 6982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6983 | (exit $ac_status); } && |
| 6984 | { ac_try='test -z "$ac_c_werror_flag" |
| 6985 | || test ! -s conftest.err' |
| 6986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6987 | (eval $ac_try) 2>&5 |
| 6988 | ac_status=$? |
| 6989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6990 | (exit $ac_status); }; } && |
| 6991 | { ac_try='test -s conftest$ac_exeext' |
| 6992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6993 | (eval $ac_try) 2>&5 |
| 6994 | ac_status=$? |
| 6995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6996 | (exit $ac_status); }; }; then |
| 6997 | |
| 6998 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 6999 | }'` |
| 7000 | # Check for a 64-bit object if we didn't find anything. |
| 7001 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 7002 | }'`; fi |
| 7003 | else |
| 7004 | echo "$as_me: failed program was:" >&5 |
| 7005 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7006 | |
| 7007 | fi |
| 7008 | rm -f conftest.err conftest.$ac_objext \ |
| 7009 | conftest$ac_exeext conftest.$ac_ext |
| 7010 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 7011 | |
| 7012 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 7013 | archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 7014 | else |
| 7015 | if test "$host_cpu" = ia64; then |
| 7016 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 7017 | allow_undefined_flag="-z nodefs" |
| 7018 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
| 7019 | else |
| 7020 | # Determine the default libpath from the value encoded in an empty executable. |
| 7021 | cat >conftest.$ac_ext <<_ACEOF |
| 7022 | /* confdefs.h. */ |
| 7023 | _ACEOF |
| 7024 | cat confdefs.h >>conftest.$ac_ext |
| 7025 | cat >>conftest.$ac_ext <<_ACEOF |
| 7026 | /* end confdefs.h. */ |
| 7027 | |
| 7028 | int |
| 7029 | main () |
| 7030 | { |
| 7031 | |
| 7032 | ; |
| 7033 | return 0; |
| 7034 | } |
| 7035 | _ACEOF |
| 7036 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7037 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7038 | (eval $ac_link) 2>conftest.er1 |
| 7039 | ac_status=$? |
| 7040 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7041 | rm -f conftest.er1 |
| 7042 | cat conftest.err >&5 |
| 7043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7044 | (exit $ac_status); } && |
| 7045 | { ac_try='test -z "$ac_c_werror_flag" |
| 7046 | || test ! -s conftest.err' |
| 7047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7048 | (eval $ac_try) 2>&5 |
| 7049 | ac_status=$? |
| 7050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7051 | (exit $ac_status); }; } && |
| 7052 | { ac_try='test -s conftest$ac_exeext' |
| 7053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7054 | (eval $ac_try) 2>&5 |
| 7055 | ac_status=$? |
| 7056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7057 | (exit $ac_status); }; }; then |
| 7058 | |
| 7059 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 7060 | }'` |
| 7061 | # Check for a 64-bit object if we didn't find anything. |
| 7062 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 7063 | }'`; fi |
| 7064 | else |
| 7065 | echo "$as_me: failed program was:" >&5 |
| 7066 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7067 | |
| 7068 | fi |
| 7069 | rm -f conftest.err conftest.$ac_objext \ |
| 7070 | conftest$ac_exeext conftest.$ac_ext |
| 7071 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 7072 | |
| 7073 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 7074 | # Warning - without using the other run time loading flags, |
| 7075 | # -berok will link without error, but may produce a broken library. |
| 7076 | no_undefined_flag=' ${wl}-bernotok' |
| 7077 | allow_undefined_flag=' ${wl}-berok' |
| 7078 | # -bexpall does not export symbols beginning with underscore (_) |
| 7079 | always_export_symbols=yes |
| 7080 | # Exported symbols can be pulled into shared objects from archives |
| 7081 | whole_archive_flag_spec=' ' |
| 7082 | archive_cmds_need_lc=yes |
| 7083 | # This is similar to how AIX traditionally builds it's shared libraries. |
| 7084 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 7085 | fi |
| 7086 | fi |
| 7087 | ;; |
| 7088 | |
| 7089 | amigaos*) |
| 7090 | 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)' |
| 7091 | hardcode_libdir_flag_spec='-L$libdir' |
| 7092 | hardcode_minus_L=yes |
| 7093 | # see comment about different semantics on the GNU ld section |
| 7094 | ld_shlibs=no |
| 7095 | ;; |
| 7096 | |
| 7097 | bsdi4*) |
| 7098 | export_dynamic_flag_spec=-rdynamic |
| 7099 | ;; |
| 7100 | |
| 7101 | cygwin* | mingw* | pw32*) |
| 7102 | # When not using gcc, we currently assume that we are using |
| 7103 | # Microsoft Visual C++. |
| 7104 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 7105 | # no search path for DLLs. |
| 7106 | hardcode_libdir_flag_spec=' ' |
| 7107 | allow_undefined_flag=unsupported |
| 7108 | # Tell ltmain to make .lib files, not .a files. |
| 7109 | libext=lib |
| 7110 | # Tell ltmain to make .dll files, not .so files. |
| 7111 | shrext_cmds=".dll" |
| 7112 | # FIXME: Setting linknames here is a bad hack. |
| 7113 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 7114 | # The linker will automatically build a .lib file if we build a DLL. |
| 7115 | old_archive_From_new_cmds='true' |
| 7116 | # FIXME: Should let the user specify the lib program. |
| 7117 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 7118 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 7119 | enable_shared_with_static_runtimes=yes |
| 7120 | ;; |
| 7121 | |
| 7122 | darwin* | rhapsody*) |
| 7123 | if test "$GXX" = yes ; then |
| 7124 | archive_cmds_need_lc=no |
| 7125 | case "$host_os" in |
| 7126 | rhapsody* | darwin1.[012]) |
| 7127 | allow_undefined_flag='-undefined suppress' |
| 7128 | ;; |
| 7129 | *) # Darwin 1.3 on |
| 7130 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 7131 | allow_undefined_flag='-flat_namespace -undefined suppress' |
| 7132 | else |
| 7133 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 7134 | 10.[012]) |
| 7135 | allow_undefined_flag='-flat_namespace -undefined suppress' |
| 7136 | ;; |
| 7137 | 10.*) |
| 7138 | allow_undefined_flag='-undefined dynamic_lookup' |
| 7139 | ;; |
| 7140 | esac |
| 7141 | fi |
| 7142 | ;; |
| 7143 | esac |
| 7144 | lt_int_apple_cc_single_mod=no |
| 7145 | output_verbose_link_cmd='echo' |
| 7146 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
| 7147 | lt_int_apple_cc_single_mod=yes |
| 7148 | fi |
| 7149 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 7150 | archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 7151 | else |
| 7152 | archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 7153 | fi |
| 7154 | module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 7155 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 7156 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 7157 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 7158 | else |
| 7159 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 7160 | fi |
| 7161 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 7162 | hardcode_direct=no |
| 7163 | hardcode_automatic=yes |
| 7164 | hardcode_shlibpath_var=unsupported |
| 7165 | whole_archive_flag_spec='-all_load $convenience' |
| 7166 | link_all_deplibs=yes |
| 7167 | else |
| 7168 | ld_shlibs=no |
| 7169 | fi |
| 7170 | ;; |
| 7171 | |
| 7172 | dgux*) |
| 7173 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7174 | hardcode_libdir_flag_spec='-L$libdir' |
| 7175 | hardcode_shlibpath_var=no |
| 7176 | ;; |
| 7177 | |
| 7178 | freebsd1*) |
| 7179 | ld_shlibs=no |
| 7180 | ;; |
| 7181 | |
| 7182 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 7183 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 7184 | # does not break anything, and helps significantly (at the cost of a little |
| 7185 | # extra space). |
| 7186 | freebsd2.2*) |
| 7187 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 7188 | hardcode_libdir_flag_spec='-R$libdir' |
| 7189 | hardcode_direct=yes |
| 7190 | hardcode_shlibpath_var=no |
| 7191 | ;; |
| 7192 | |
| 7193 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 7194 | freebsd2*) |
| 7195 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 7196 | hardcode_direct=yes |
| 7197 | hardcode_minus_L=yes |
| 7198 | hardcode_shlibpath_var=no |
| 7199 | ;; |
| 7200 | |
| 7201 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 7202 | freebsd* | kfreebsd*-gnu) |
| 7203 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 7204 | hardcode_libdir_flag_spec='-R$libdir' |
| 7205 | hardcode_direct=yes |
| 7206 | hardcode_shlibpath_var=no |
| 7207 | ;; |
| 7208 | |
| 7209 | hpux9*) |
| 7210 | if test "$GCC" = yes; then |
| 7211 | archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 7212 | else |
| 7213 | 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' |
| 7214 | fi |
| 7215 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 7216 | hardcode_libdir_separator=: |
| 7217 | hardcode_direct=yes |
| 7218 | |
| 7219 | # hardcode_minus_L: Not really in the search PATH, |
| 7220 | # but as the default location of the library. |
| 7221 | hardcode_minus_L=yes |
| 7222 | export_dynamic_flag_spec='${wl}-E' |
| 7223 | ;; |
| 7224 | |
| 7225 | hpux10* | hpux11*) |
| 7226 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 7227 | case "$host_cpu" in |
| 7228 | hppa*64*|ia64*) |
| 7229 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7230 | ;; |
| 7231 | *) |
| 7232 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 7233 | ;; |
| 7234 | esac |
| 7235 | else |
| 7236 | case "$host_cpu" in |
| 7237 | hppa*64*|ia64*) |
| 7238 | archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7239 | ;; |
| 7240 | *) |
| 7241 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 7242 | ;; |
| 7243 | esac |
| 7244 | fi |
| 7245 | if test "$with_gnu_ld" = no; then |
| 7246 | case "$host_cpu" in |
| 7247 | hppa*64*) |
| 7248 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 7249 | hardcode_libdir_flag_spec_ld='+b $libdir' |
| 7250 | hardcode_libdir_separator=: |
| 7251 | hardcode_direct=no |
| 7252 | hardcode_shlibpath_var=no |
| 7253 | ;; |
| 7254 | ia64*) |
| 7255 | hardcode_libdir_flag_spec='-L$libdir' |
| 7256 | hardcode_direct=no |
| 7257 | hardcode_shlibpath_var=no |
| 7258 | |
| 7259 | # hardcode_minus_L: Not really in the search PATH, |
| 7260 | # but as the default location of the library. |
| 7261 | hardcode_minus_L=yes |
| 7262 | ;; |
| 7263 | *) |
| 7264 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 7265 | hardcode_libdir_separator=: |
| 7266 | hardcode_direct=yes |
| 7267 | export_dynamic_flag_spec='${wl}-E' |
| 7268 | |
| 7269 | # hardcode_minus_L: Not really in the search PATH, |
| 7270 | # but as the default location of the library. |
| 7271 | hardcode_minus_L=yes |
| 7272 | ;; |
| 7273 | esac |
| 7274 | fi |
| 7275 | ;; |
| 7276 | |
| 7277 | irix5* | irix6* | nonstopux*) |
| 7278 | if test "$GCC" = yes; then |
| 7279 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 7280 | else |
| 7281 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 7282 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 7283 | fi |
| 7284 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 7285 | hardcode_libdir_separator=: |
| 7286 | link_all_deplibs=yes |
| 7287 | ;; |
| 7288 | |
| 7289 | netbsd*) |
| 7290 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 7291 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 7292 | else |
| 7293 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 7294 | fi |
| 7295 | hardcode_libdir_flag_spec='-R$libdir' |
| 7296 | hardcode_direct=yes |
| 7297 | hardcode_shlibpath_var=no |
| 7298 | ;; |
| 7299 | |
| 7300 | newsos6) |
| 7301 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7302 | hardcode_direct=yes |
| 7303 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 7304 | hardcode_libdir_separator=: |
| 7305 | hardcode_shlibpath_var=no |
| 7306 | ;; |
| 7307 | |
| 7308 | openbsd*) |
| 7309 | hardcode_direct=yes |
| 7310 | hardcode_shlibpath_var=no |
| 7311 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 7312 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 7313 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 7314 | export_dynamic_flag_spec='${wl}-E' |
| 7315 | else |
| 7316 | case $host_os in |
| 7317 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 7318 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 7319 | hardcode_libdir_flag_spec='-R$libdir' |
| 7320 | ;; |
| 7321 | *) |
| 7322 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 7323 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 7324 | ;; |
| 7325 | esac |
| 7326 | fi |
| 7327 | ;; |
| 7328 | |
| 7329 | os2*) |
| 7330 | hardcode_libdir_flag_spec='-L$libdir' |
| 7331 | hardcode_minus_L=yes |
| 7332 | allow_undefined_flag=unsupported |
| 7333 | 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' |
| 7334 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 7335 | ;; |
| 7336 | |
| 7337 | osf3*) |
| 7338 | if test "$GCC" = yes; then |
| 7339 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 7340 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 7341 | else |
| 7342 | allow_undefined_flag=' -expect_unresolved \*' |
| 7343 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 7344 | fi |
| 7345 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 7346 | hardcode_libdir_separator=: |
| 7347 | ;; |
| 7348 | |
| 7349 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 7350 | if test "$GCC" = yes; then |
| 7351 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 7352 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 7353 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 7354 | else |
| 7355 | allow_undefined_flag=' -expect_unresolved \*' |
| 7356 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 7357 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
| 7358 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' |
| 7359 | |
| 7360 | # Both c and cxx compiler support -rpath directly |
| 7361 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 7362 | fi |
| 7363 | hardcode_libdir_separator=: |
| 7364 | ;; |
| 7365 | |
| 7366 | sco3.2v5*) |
| 7367 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7368 | hardcode_shlibpath_var=no |
| 7369 | export_dynamic_flag_spec='${wl}-Bexport' |
| 7370 | runpath_var=LD_RUN_PATH |
| 7371 | hardcode_runpath_var=yes |
| 7372 | ;; |
| 7373 | |
| 7374 | solaris*) |
| 7375 | no_undefined_flag=' -z text' |
| 7376 | if test "$GCC" = yes; then |
| 7377 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7378 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 7379 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 7380 | else |
| 7381 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7382 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 7383 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 7384 | fi |
| 7385 | hardcode_libdir_flag_spec='-R$libdir' |
| 7386 | hardcode_shlibpath_var=no |
| 7387 | case $host_os in |
| 7388 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 7389 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 7390 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 7391 | esac |
| 7392 | link_all_deplibs=yes |
| 7393 | ;; |
| 7394 | |
| 7395 | sunos4*) |
| 7396 | if test "x$host_vendor" = xsequent; then |
| 7397 | # Use $CC to link under sequent, because it throws in some extra .o |
| 7398 | # files that make .init and .fini sections work. |
| 7399 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7400 | else |
| 7401 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 7402 | fi |
| 7403 | hardcode_libdir_flag_spec='-L$libdir' |
| 7404 | hardcode_direct=yes |
| 7405 | hardcode_minus_L=yes |
| 7406 | hardcode_shlibpath_var=no |
| 7407 | ;; |
| 7408 | |
| 7409 | sysv4) |
| 7410 | case $host_vendor in |
| 7411 | sni) |
| 7412 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7413 | hardcode_direct=yes # is this really true??? |
| 7414 | ;; |
| 7415 | siemens) |
| 7416 | ## LD is ld it makes a PLAMLIB |
| 7417 | ## CC just makes a GrossModule. |
| 7418 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 7419 | reload_cmds='$CC -r -o $output$reload_objs' |
| 7420 | hardcode_direct=no |
| 7421 | ;; |
| 7422 | motorola) |
| 7423 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7424 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 7425 | ;; |
| 7426 | esac |
| 7427 | runpath_var='LD_RUN_PATH' |
| 7428 | hardcode_shlibpath_var=no |
| 7429 | ;; |
| 7430 | |
| 7431 | sysv4.3*) |
| 7432 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7433 | hardcode_shlibpath_var=no |
| 7434 | export_dynamic_flag_spec='-Bexport' |
| 7435 | ;; |
| 7436 | |
| 7437 | sysv4*MP*) |
| 7438 | if test -d /usr/nec; then |
| 7439 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7440 | hardcode_shlibpath_var=no |
| 7441 | runpath_var=LD_RUN_PATH |
| 7442 | hardcode_runpath_var=yes |
| 7443 | ld_shlibs=yes |
| 7444 | fi |
| 7445 | ;; |
| 7446 | |
| 7447 | sysv4.2uw2*) |
| 7448 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 7449 | hardcode_direct=yes |
| 7450 | hardcode_minus_L=no |
| 7451 | hardcode_shlibpath_var=no |
| 7452 | hardcode_runpath_var=yes |
| 7453 | runpath_var=LD_RUN_PATH |
| 7454 | ;; |
| 7455 | |
| 7456 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 7457 | no_undefined_flag='${wl}-z ${wl}text' |
| 7458 | if test "$GCC" = yes; then |
| 7459 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7460 | else |
| 7461 | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7462 | fi |
| 7463 | runpath_var='LD_RUN_PATH' |
| 7464 | hardcode_shlibpath_var=no |
| 7465 | ;; |
| 7466 | |
| 7467 | sysv5*) |
| 7468 | no_undefined_flag=' -z text' |
| 7469 | # $CC -shared without GNU ld will not create a library from C++ |
| 7470 | # object files and a static libstdc++, better avoid it by now |
| 7471 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7472 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 7473 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 7474 | hardcode_libdir_flag_spec= |
| 7475 | hardcode_shlibpath_var=no |
| 7476 | runpath_var='LD_RUN_PATH' |
| 7477 | ;; |
| 7478 | |
| 7479 | uts4*) |
| 7480 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7481 | hardcode_libdir_flag_spec='-L$libdir' |
| 7482 | hardcode_shlibpath_var=no |
| 7483 | ;; |
| 7484 | |
| 7485 | *) |
| 7486 | ld_shlibs=no |
| 7487 | ;; |
| 7488 | esac |
| 7489 | fi |
| 7490 | |
| 7491 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 7492 | echo "${ECHO_T}$ld_shlibs" >&6 |
| 7493 | test "$ld_shlibs" = no && can_build_shared=no |
| 7494 | |
| 7495 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 7496 | if test "$GCC" = yes; then |
| 7497 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 7498 | fi |
| 7499 | |
| 7500 | # |
| 7501 | # Do we need to explicitly link libc? |
| 7502 | # |
| 7503 | case "x$archive_cmds_need_lc" in |
| 7504 | x|xyes) |
| 7505 | # Assume -lc should be added |
| 7506 | archive_cmds_need_lc=yes |
| 7507 | |
| 7508 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 7509 | case $archive_cmds in |
| 7510 | *'~'*) |
| 7511 | # FIXME: we may have to deal with multi-command sequences. |
| 7512 | ;; |
| 7513 | '$CC '*) |
| 7514 | # Test whether the compiler implicitly links with -lc since on some |
| 7515 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 7516 | # to ld, don't add -lc before -lgcc. |
| 7517 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 7518 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 7519 | $rm conftest* |
| 7520 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 7521 | |
| 7522 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7523 | (eval $ac_compile) 2>&5 |
| 7524 | ac_status=$? |
| 7525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7526 | (exit $ac_status); } 2>conftest.err; then |
| 7527 | soname=conftest |
| 7528 | lib=conftest |
| 7529 | libobjs=conftest.$ac_objext |
| 7530 | deplibs= |
| 7531 | wl=$lt_prog_compiler_wl |
| 7532 | compiler_flags=-v |
| 7533 | linker_flags=-v |
| 7534 | verstring= |
| 7535 | output_objdir=. |
| 7536 | libname=conftest |
| 7537 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 7538 | allow_undefined_flag= |
| 7539 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 7540 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 7541 | ac_status=$? |
| 7542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7543 | (exit $ac_status); } |
| 7544 | then |
| 7545 | archive_cmds_need_lc=no |
| 7546 | else |
| 7547 | archive_cmds_need_lc=yes |
| 7548 | fi |
| 7549 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 7550 | else |
| 7551 | cat conftest.err 1>&5 |
| 7552 | fi |
| 7553 | $rm conftest* |
| 7554 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
| 7555 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 |
| 7556 | ;; |
| 7557 | esac |
| 7558 | fi |
| 7559 | ;; |
| 7560 | esac |
| 7561 | |
| 7562 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 7563 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 7564 | library_names_spec= |
| 7565 | libname_spec='lib$name' |
| 7566 | soname_spec= |
| 7567 | shrext_cmds=".so" |
| 7568 | postinstall_cmds= |
| 7569 | postuninstall_cmds= |
| 7570 | finish_cmds= |
| 7571 | finish_eval= |
| 7572 | shlibpath_var= |
| 7573 | shlibpath_overrides_runpath=unknown |
| 7574 | version_type=none |
| 7575 | dynamic_linker="$host_os ld.so" |
| 7576 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 7577 | if test "$GCC" = yes; then |
| 7578 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 7579 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 7580 | # if the path contains ";" then we assume it to be the separator |
| 7581 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 7582 | # assumed that no part of a normal pathname contains ";" but that should |
| 7583 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 7584 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 7585 | else |
| 7586 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 7587 | fi |
| 7588 | else |
| 7589 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 7590 | fi |
| 7591 | need_lib_prefix=unknown |
| 7592 | hardcode_into_libs=no |
| 7593 | |
| 7594 | # when you set need_version to no, make sure it does not cause -set_version |
| 7595 | # flags to be left without arguments |
| 7596 | need_version=unknown |
| 7597 | |
| 7598 | case $host_os in |
| 7599 | aix3*) |
| 7600 | version_type=linux |
| 7601 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 7602 | shlibpath_var=LIBPATH |
| 7603 | |
| 7604 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 7605 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7606 | ;; |
| 7607 | |
| 7608 | aix4* | aix5*) |
| 7609 | version_type=linux |
| 7610 | need_lib_prefix=no |
| 7611 | need_version=no |
| 7612 | hardcode_into_libs=yes |
| 7613 | if test "$host_cpu" = ia64; then |
| 7614 | # AIX 5 supports IA64 |
| 7615 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 7616 | shlibpath_var=LD_LIBRARY_PATH |
| 7617 | else |
| 7618 | # With GCC up to 2.95.x, collect2 would create an import file |
| 7619 | # for dependence libraries. The import file would start with |
| 7620 | # the line `#! .'. This would cause the generated library to |
| 7621 | # depend on `.', always an invalid library. This was fixed in |
| 7622 | # development snapshots of GCC prior to 3.0. |
| 7623 | case $host_os in |
| 7624 | aix4 | aix4.[01] | aix4.[01].*) |
| 7625 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 7626 | echo ' yes ' |
| 7627 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 7628 | : |
| 7629 | else |
| 7630 | can_build_shared=no |
| 7631 | fi |
| 7632 | ;; |
| 7633 | esac |
| 7634 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 7635 | # soname into executable. Probably we can add versioning support to |
| 7636 | # collect2, so additional links can be useful in future. |
| 7637 | if test "$aix_use_runtimelinking" = yes; then |
| 7638 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 7639 | # instead of lib<name>.a to let people know that these are not |
| 7640 | # typical AIX shared libraries. |
| 7641 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7642 | else |
| 7643 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 7644 | # and later when we are not doing run time linking. |
| 7645 | library_names_spec='${libname}${release}.a $libname.a' |
| 7646 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7647 | fi |
| 7648 | shlibpath_var=LIBPATH |
| 7649 | fi |
| 7650 | ;; |
| 7651 | |
| 7652 | amigaos*) |
| 7653 | library_names_spec='$libname.ixlibrary $libname.a' |
| 7654 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 7655 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
| 7656 | ;; |
| 7657 | |
| 7658 | beos*) |
| 7659 | library_names_spec='${libname}${shared_ext}' |
| 7660 | dynamic_linker="$host_os ld.so" |
| 7661 | shlibpath_var=LIBRARY_PATH |
| 7662 | ;; |
| 7663 | |
| 7664 | bsdi4*) |
| 7665 | version_type=linux |
| 7666 | need_version=no |
| 7667 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7668 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7669 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 7670 | shlibpath_var=LD_LIBRARY_PATH |
| 7671 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 7672 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 7673 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 7674 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 7675 | # libtool to hard-code these into programs |
| 7676 | ;; |
| 7677 | |
| 7678 | cygwin* | mingw* | pw32*) |
| 7679 | version_type=windows |
| 7680 | shrext_cmds=".dll" |
| 7681 | need_version=no |
| 7682 | need_lib_prefix=no |
| 7683 | |
| 7684 | case $GCC,$host_os in |
| 7685 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 7686 | library_names_spec='$libname.dll.a' |
| 7687 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 7688 | postinstall_cmds='base_file=`basename \${file}`~ |
| 7689 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 7690 | dldir=$destdir/`dirname \$dlpath`~ |
| 7691 | test -d \$dldir || mkdir -p \$dldir~ |
| 7692 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 7693 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 7694 | dlpath=$dir/\$dldll~ |
| 7695 | $rm \$dlpath' |
| 7696 | shlibpath_overrides_runpath=yes |
| 7697 | |
| 7698 | case $host_os in |
| 7699 | cygwin*) |
| 7700 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 7701 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 7702 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 7703 | ;; |
| 7704 | mingw*) |
| 7705 | # MinGW DLLs use traditional 'lib' prefix |
| 7706 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 7707 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 7708 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 7709 | # It is most probably a Windows format PATH printed by |
| 7710 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 7711 | # path with ; separators, and with drive letters. We can handle the |
| 7712 | # drive letters (cygwin fileutils understands them), so leave them, |
| 7713 | # especially as we might pass files found there to a mingw objdump, |
| 7714 | # which wouldn't understand a cygwinified path. Ahh. |
| 7715 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 7716 | else |
| 7717 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 7718 | fi |
| 7719 | ;; |
| 7720 | pw32*) |
| 7721 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 7722 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 7723 | ;; |
| 7724 | esac |
| 7725 | ;; |
| 7726 | |
| 7727 | *) |
| 7728 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 7729 | ;; |
| 7730 | esac |
| 7731 | dynamic_linker='Win32 ld.exe' |
| 7732 | # FIXME: first we should search . and the directory the executable is in |
| 7733 | shlibpath_var=PATH |
| 7734 | ;; |
| 7735 | |
| 7736 | darwin* | rhapsody*) |
| 7737 | dynamic_linker="$host_os dyld" |
| 7738 | version_type=darwin |
| 7739 | need_lib_prefix=no |
| 7740 | need_version=no |
| 7741 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 7742 | soname_spec='${libname}${release}${major}$shared_ext' |
| 7743 | shlibpath_overrides_runpath=yes |
| 7744 | shlibpath_var=DYLD_LIBRARY_PATH |
| 7745 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
| 7746 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 7747 | if test "$GCC" = yes; then |
| 7748 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
| 7749 | else |
| 7750 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 7751 | fi |
| 7752 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 7753 | ;; |
| 7754 | |
| 7755 | dgux*) |
| 7756 | version_type=linux |
| 7757 | need_lib_prefix=no |
| 7758 | need_version=no |
| 7759 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 7760 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7761 | shlibpath_var=LD_LIBRARY_PATH |
| 7762 | ;; |
| 7763 | |
| 7764 | freebsd1*) |
| 7765 | dynamic_linker=no |
| 7766 | ;; |
| 7767 | |
| 7768 | kfreebsd*-gnu) |
| 7769 | version_type=linux |
| 7770 | need_lib_prefix=no |
| 7771 | need_version=no |
| 7772 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 7773 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7774 | shlibpath_var=LD_LIBRARY_PATH |
| 7775 | shlibpath_overrides_runpath=no |
| 7776 | hardcode_into_libs=yes |
| 7777 | dynamic_linker='GNU ld.so' |
| 7778 | ;; |
| 7779 | |
| 7780 | freebsd*) |
| 7781 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 7782 | version_type=freebsd-$objformat |
| 7783 | case $version_type in |
| 7784 | freebsd-elf*) |
| 7785 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 7786 | need_version=no |
| 7787 | need_lib_prefix=no |
| 7788 | ;; |
| 7789 | freebsd-*) |
| 7790 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 7791 | need_version=yes |
| 7792 | ;; |
| 7793 | esac |
| 7794 | shlibpath_var=LD_LIBRARY_PATH |
| 7795 | case $host_os in |
| 7796 | freebsd2*) |
| 7797 | shlibpath_overrides_runpath=yes |
| 7798 | ;; |
| 7799 | freebsd3.01* | freebsdelf3.01*) |
| 7800 | shlibpath_overrides_runpath=yes |
| 7801 | hardcode_into_libs=yes |
| 7802 | ;; |
| 7803 | *) # from 3.2 on |
| 7804 | shlibpath_overrides_runpath=no |
| 7805 | hardcode_into_libs=yes |
| 7806 | ;; |
| 7807 | esac |
| 7808 | ;; |
| 7809 | |
| 7810 | gnu*) |
| 7811 | version_type=linux |
| 7812 | need_lib_prefix=no |
| 7813 | need_version=no |
| 7814 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 7815 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7816 | shlibpath_var=LD_LIBRARY_PATH |
| 7817 | hardcode_into_libs=yes |
| 7818 | ;; |
| 7819 | |
| 7820 | hpux9* | hpux10* | hpux11*) |
| 7821 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 7822 | # link against other versions. |
| 7823 | version_type=sunos |
| 7824 | need_lib_prefix=no |
| 7825 | need_version=no |
| 7826 | case "$host_cpu" in |
| 7827 | ia64*) |
| 7828 | shrext_cmds='.so' |
| 7829 | hardcode_into_libs=yes |
| 7830 | dynamic_linker="$host_os dld.so" |
| 7831 | shlibpath_var=LD_LIBRARY_PATH |
| 7832 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 7833 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7834 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7835 | if test "X$HPUX_IA64_MODE" = X32; then |
| 7836 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 7837 | else |
| 7838 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 7839 | fi |
| 7840 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 7841 | ;; |
| 7842 | hppa*64*) |
| 7843 | shrext_cmds='.sl' |
| 7844 | hardcode_into_libs=yes |
| 7845 | dynamic_linker="$host_os dld.sl" |
| 7846 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 7847 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 7848 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7849 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7850 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 7851 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 7852 | ;; |
| 7853 | *) |
| 7854 | shrext_cmds='.sl' |
| 7855 | dynamic_linker="$host_os dld.sl" |
| 7856 | shlibpath_var=SHLIB_PATH |
| 7857 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 7858 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7859 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7860 | ;; |
| 7861 | esac |
| 7862 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 7863 | postinstall_cmds='chmod 555 $lib' |
| 7864 | ;; |
| 7865 | |
| 7866 | irix5* | irix6* | nonstopux*) |
| 7867 | case $host_os in |
| 7868 | nonstopux*) version_type=nonstopux ;; |
| 7869 | *) |
| 7870 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 7871 | version_type=linux |
| 7872 | else |
| 7873 | version_type=irix |
| 7874 | fi ;; |
| 7875 | esac |
| 7876 | need_lib_prefix=no |
| 7877 | need_version=no |
| 7878 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7879 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 7880 | case $host_os in |
| 7881 | irix5* | nonstopux*) |
| 7882 | libsuff= shlibsuff= |
| 7883 | ;; |
| 7884 | *) |
| 7885 | case $LD in # libtool.m4 will add one of these switches to LD |
| 7886 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 7887 | libsuff= shlibsuff= libmagic=32-bit;; |
| 7888 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 7889 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 7890 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 7891 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 7892 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 7893 | esac |
| 7894 | ;; |
| 7895 | esac |
| 7896 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 7897 | shlibpath_overrides_runpath=no |
| 7898 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 7899 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 7900 | hardcode_into_libs=yes |
| 7901 | ;; |
| 7902 | |
| 7903 | # No shared lib support for Linux oldld, aout, or coff. |
| 7904 | linux*oldld* | linux*aout* | linux*coff*) |
| 7905 | dynamic_linker=no |
| 7906 | ;; |
| 7907 | |
| 7908 | # This must be Linux ELF. |
| 7909 | linux*) |
| 7910 | version_type=linux |
| 7911 | need_lib_prefix=no |
| 7912 | need_version=no |
| 7913 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7914 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7915 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 7916 | shlibpath_var=LD_LIBRARY_PATH |
| 7917 | shlibpath_overrides_runpath=no |
| 7918 | # This implies no fast_install, which is unacceptable. |
| 7919 | # Some rework will be needed to allow for fast_install |
| 7920 | # before this can be enabled. |
| 7921 | hardcode_into_libs=yes |
| 7922 | |
| 7923 | # Append ld.so.conf contents to the search path |
| 7924 | if test -f /etc/ld.so.conf; then |
| 7925 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
| 7926 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 7927 | fi |
| 7928 | |
| 7929 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 7930 | # powerpc, because MkLinux only supported shared libraries with the |
| 7931 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 7932 | # most powerpc-linux boxes support dynamic linking these days and |
| 7933 | # people can always --disable-shared, the test was removed, and we |
| 7934 | # assume the GNU/Linux dynamic linker is in use. |
| 7935 | dynamic_linker='GNU/Linux ld.so' |
| 7936 | ;; |
| 7937 | |
| 7938 | knetbsd*-gnu) |
| 7939 | version_type=linux |
| 7940 | need_lib_prefix=no |
| 7941 | need_version=no |
| 7942 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 7943 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7944 | shlibpath_var=LD_LIBRARY_PATH |
| 7945 | shlibpath_overrides_runpath=no |
| 7946 | hardcode_into_libs=yes |
| 7947 | dynamic_linker='GNU ld.so' |
| 7948 | ;; |
| 7949 | |
| 7950 | netbsd*) |
| 7951 | version_type=sunos |
| 7952 | need_lib_prefix=no |
| 7953 | need_version=no |
| 7954 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 7955 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 7956 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 7957 | dynamic_linker='NetBSD (a.out) ld.so' |
| 7958 | else |
| 7959 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 7960 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7961 | dynamic_linker='NetBSD ld.elf_so' |
| 7962 | fi |
| 7963 | shlibpath_var=LD_LIBRARY_PATH |
| 7964 | shlibpath_overrides_runpath=yes |
| 7965 | hardcode_into_libs=yes |
| 7966 | ;; |
| 7967 | |
| 7968 | newsos6) |
| 7969 | version_type=linux |
| 7970 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7971 | shlibpath_var=LD_LIBRARY_PATH |
| 7972 | shlibpath_overrides_runpath=yes |
| 7973 | ;; |
| 7974 | |
| 7975 | nto-qnx*) |
| 7976 | version_type=linux |
| 7977 | need_lib_prefix=no |
| 7978 | need_version=no |
| 7979 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7980 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7981 | shlibpath_var=LD_LIBRARY_PATH |
| 7982 | shlibpath_overrides_runpath=yes |
| 7983 | ;; |
| 7984 | |
| 7985 | openbsd*) |
| 7986 | version_type=sunos |
| 7987 | need_lib_prefix=no |
| 7988 | need_version=yes |
| 7989 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 7990 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 7991 | shlibpath_var=LD_LIBRARY_PATH |
| 7992 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 7993 | case $host_os in |
| 7994 | openbsd2.[89] | openbsd2.[89].*) |
| 7995 | shlibpath_overrides_runpath=no |
| 7996 | ;; |
| 7997 | *) |
| 7998 | shlibpath_overrides_runpath=yes |
| 7999 | ;; |
| 8000 | esac |
| 8001 | else |
| 8002 | shlibpath_overrides_runpath=yes |
| 8003 | fi |
| 8004 | ;; |
| 8005 | |
| 8006 | os2*) |
| 8007 | libname_spec='$name' |
| 8008 | shrext_cmds=".dll" |
| 8009 | need_lib_prefix=no |
| 8010 | library_names_spec='$libname${shared_ext} $libname.a' |
| 8011 | dynamic_linker='OS/2 ld.exe' |
| 8012 | shlibpath_var=LIBPATH |
| 8013 | ;; |
| 8014 | |
| 8015 | osf3* | osf4* | osf5*) |
| 8016 | version_type=osf |
| 8017 | need_lib_prefix=no |
| 8018 | need_version=no |
| 8019 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8020 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8021 | shlibpath_var=LD_LIBRARY_PATH |
| 8022 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 8023 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 8024 | ;; |
| 8025 | |
| 8026 | sco3.2v5*) |
| 8027 | version_type=osf |
| 8028 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8029 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8030 | shlibpath_var=LD_LIBRARY_PATH |
| 8031 | ;; |
| 8032 | |
| 8033 | solaris*) |
| 8034 | version_type=linux |
| 8035 | need_lib_prefix=no |
| 8036 | need_version=no |
| 8037 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8038 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8039 | shlibpath_var=LD_LIBRARY_PATH |
| 8040 | shlibpath_overrides_runpath=yes |
| 8041 | hardcode_into_libs=yes |
| 8042 | # ldd complains unless libraries are executable |
| 8043 | postinstall_cmds='chmod +x $lib' |
| 8044 | ;; |
| 8045 | |
| 8046 | sunos4*) |
| 8047 | version_type=sunos |
| 8048 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 8049 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 8050 | shlibpath_var=LD_LIBRARY_PATH |
| 8051 | shlibpath_overrides_runpath=yes |
| 8052 | if test "$with_gnu_ld" = yes; then |
| 8053 | need_lib_prefix=no |
| 8054 | fi |
| 8055 | need_version=yes |
| 8056 | ;; |
| 8057 | |
| 8058 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 8059 | version_type=linux |
| 8060 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8061 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8062 | shlibpath_var=LD_LIBRARY_PATH |
| 8063 | case $host_vendor in |
| 8064 | sni) |
| 8065 | shlibpath_overrides_runpath=no |
| 8066 | need_lib_prefix=no |
| 8067 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 8068 | runpath_var=LD_RUN_PATH |
| 8069 | ;; |
| 8070 | siemens) |
| 8071 | need_lib_prefix=no |
| 8072 | ;; |
| 8073 | motorola) |
| 8074 | need_lib_prefix=no |
| 8075 | need_version=no |
| 8076 | shlibpath_overrides_runpath=no |
| 8077 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 8078 | ;; |
| 8079 | esac |
| 8080 | ;; |
| 8081 | |
| 8082 | sysv4*MP*) |
| 8083 | if test -d /usr/nec ;then |
| 8084 | version_type=linux |
| 8085 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 8086 | soname_spec='$libname${shared_ext}.$major' |
| 8087 | shlibpath_var=LD_LIBRARY_PATH |
| 8088 | fi |
| 8089 | ;; |
| 8090 | |
| 8091 | uts4*) |
| 8092 | version_type=linux |
| 8093 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8094 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8095 | shlibpath_var=LD_LIBRARY_PATH |
| 8096 | ;; |
| 8097 | |
| 8098 | *) |
| 8099 | dynamic_linker=no |
| 8100 | ;; |
| 8101 | esac |
| 8102 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 8103 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 8104 | test "$dynamic_linker" = no && can_build_shared=no |
| 8105 | |
| 8106 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 8107 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 8108 | hardcode_action= |
| 8109 | if test -n "$hardcode_libdir_flag_spec" || \ |
| 8110 | test -n "$runpath_var " || \ |
| 8111 | test "X$hardcode_automatic"="Xyes" ; then |
| 8112 | |
| 8113 | # We can hardcode non-existant directories. |
| 8114 | if test "$hardcode_direct" != no && |
| 8115 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 8116 | # have to relink, otherwise we might link with an installed library |
| 8117 | # when we should be linking with a yet-to-be-installed one |
| 8118 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 8119 | test "$hardcode_minus_L" != no; then |
| 8120 | # Linking always hardcodes the temporary library directory. |
| 8121 | hardcode_action=relink |
| 8122 | else |
| 8123 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 8124 | hardcode_action=immediate |
| 8125 | fi |
| 8126 | else |
| 8127 | # We cannot hardcode anything, or else we can only hardcode existing |
| 8128 | # directories. |
| 8129 | hardcode_action=unsupported |
| 8130 | fi |
| 8131 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 8132 | echo "${ECHO_T}$hardcode_action" >&6 |
| 8133 | |
| 8134 | if test "$hardcode_action" = relink; then |
| 8135 | # Fast installation is not supported |
| 8136 | enable_fast_install=no |
| 8137 | elif test "$shlibpath_overrides_runpath" = yes || |
| 8138 | test "$enable_shared" = no; then |
| 8139 | # Fast installation is not necessary |
| 8140 | enable_fast_install=needless |
| 8141 | fi |
| 8142 | |
| 8143 | striplib= |
| 8144 | old_striplib= |
| 8145 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 8146 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 8147 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 8148 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 8149 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 8150 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8151 | echo "${ECHO_T}yes" >&6 |
| 8152 | else |
| 8153 | # FIXME - insert some real tests, host_os isn't really good enough |
| 8154 | case $host_os in |
| 8155 | darwin*) |
| 8156 | if test -n "$STRIP" ; then |
| 8157 | striplib="$STRIP -x" |
| 8158 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8159 | echo "${ECHO_T}yes" >&6 |
| 8160 | else |
| 8161 | echo "$as_me:$LINENO: result: no" >&5 |
| 8162 | echo "${ECHO_T}no" >&6 |
| 8163 | fi |
| 8164 | ;; |
| 8165 | *) |
| 8166 | echo "$as_me:$LINENO: result: no" >&5 |
| 8167 | echo "${ECHO_T}no" >&6 |
| 8168 | ;; |
| 8169 | esac |
| 8170 | fi |
| 8171 | |
| 8172 | if test "x$enable_dlopen" != xyes; then |
| 8173 | enable_dlopen=unknown |
| 8174 | enable_dlopen_self=unknown |
| 8175 | enable_dlopen_self_static=unknown |
| 8176 | else |
| 8177 | lt_cv_dlopen=no |
| 8178 | lt_cv_dlopen_libs= |
| 8179 | |
| 8180 | case $host_os in |
| 8181 | beos*) |
| 8182 | lt_cv_dlopen="load_add_on" |
| 8183 | lt_cv_dlopen_libs= |
| 8184 | lt_cv_dlopen_self=yes |
| 8185 | ;; |
| 8186 | |
| 8187 | mingw* | pw32*) |
| 8188 | lt_cv_dlopen="LoadLibrary" |
| 8189 | lt_cv_dlopen_libs= |
| 8190 | ;; |
| 8191 | |
| 8192 | cygwin*) |
| 8193 | lt_cv_dlopen="dlopen" |
| 8194 | lt_cv_dlopen_libs= |
| 8195 | ;; |
| 8196 | |
| 8197 | darwin*) |
| 8198 | # if libdl is installed we need to link against it |
| 8199 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 8200 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 8201 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 8202 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8203 | else |
| 8204 | ac_check_lib_save_LIBS=$LIBS |
| 8205 | LIBS="-ldl $LIBS" |
| 8206 | cat >conftest.$ac_ext <<_ACEOF |
| 8207 | /* confdefs.h. */ |
| 8208 | _ACEOF |
| 8209 | cat confdefs.h >>conftest.$ac_ext |
| 8210 | cat >>conftest.$ac_ext <<_ACEOF |
| 8211 | /* end confdefs.h. */ |
| 8212 | |
| 8213 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8214 | #ifdef __cplusplus |
| 8215 | extern "C" |
| 8216 | #endif |
| 8217 | /* We use char because int might match the return type of a gcc2 |
| 8218 | builtin and then its argument prototype would still apply. */ |
| 8219 | char dlopen (); |
| 8220 | int |
| 8221 | main () |
| 8222 | { |
| 8223 | dlopen (); |
| 8224 | ; |
| 8225 | return 0; |
| 8226 | } |
| 8227 | _ACEOF |
| 8228 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8229 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8230 | (eval $ac_link) 2>conftest.er1 |
| 8231 | ac_status=$? |
| 8232 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8233 | rm -f conftest.er1 |
| 8234 | cat conftest.err >&5 |
| 8235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8236 | (exit $ac_status); } && |
| 8237 | { ac_try='test -z "$ac_c_werror_flag" |
| 8238 | || test ! -s conftest.err' |
| 8239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8240 | (eval $ac_try) 2>&5 |
| 8241 | ac_status=$? |
| 8242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8243 | (exit $ac_status); }; } && |
| 8244 | { ac_try='test -s conftest$ac_exeext' |
| 8245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8246 | (eval $ac_try) 2>&5 |
| 8247 | ac_status=$? |
| 8248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8249 | (exit $ac_status); }; }; then |
| 8250 | ac_cv_lib_dl_dlopen=yes |
| 8251 | else |
| 8252 | echo "$as_me: failed program was:" >&5 |
| 8253 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8254 | |
| 8255 | ac_cv_lib_dl_dlopen=no |
| 8256 | fi |
| 8257 | rm -f conftest.err conftest.$ac_objext \ |
| 8258 | conftest$ac_exeext conftest.$ac_ext |
| 8259 | LIBS=$ac_check_lib_save_LIBS |
| 8260 | fi |
| 8261 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 8262 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 8263 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 8264 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 8265 | else |
| 8266 | |
| 8267 | lt_cv_dlopen="dyld" |
| 8268 | lt_cv_dlopen_libs= |
| 8269 | lt_cv_dlopen_self=yes |
| 8270 | |
| 8271 | fi |
| 8272 | |
| 8273 | ;; |
| 8274 | |
| 8275 | *) |
| 8276 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 8277 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 8278 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 8279 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8280 | else |
| 8281 | cat >conftest.$ac_ext <<_ACEOF |
| 8282 | /* confdefs.h. */ |
| 8283 | _ACEOF |
| 8284 | cat confdefs.h >>conftest.$ac_ext |
| 8285 | cat >>conftest.$ac_ext <<_ACEOF |
| 8286 | /* end confdefs.h. */ |
| 8287 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 8288 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 8289 | #define shl_load innocuous_shl_load |
| 8290 | |
| 8291 | /* System header to define __stub macros and hopefully few prototypes, |
| 8292 | which can conflict with char shl_load (); below. |
| 8293 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 8294 | <limits.h> exists even on freestanding compilers. */ |
| 8295 | |
| 8296 | #ifdef __STDC__ |
| 8297 | # include <limits.h> |
| 8298 | #else |
| 8299 | # include <assert.h> |
| 8300 | #endif |
| 8301 | |
| 8302 | #undef shl_load |
| 8303 | |
| 8304 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8305 | #ifdef __cplusplus |
| 8306 | extern "C" |
| 8307 | { |
| 8308 | #endif |
| 8309 | /* We use char because int might match the return type of a gcc2 |
| 8310 | builtin and then its argument prototype would still apply. */ |
| 8311 | char shl_load (); |
| 8312 | /* The GNU C library defines this for functions which it implements |
| 8313 | to always fail with ENOSYS. Some functions are actually named |
| 8314 | something starting with __ and the normal name is an alias. */ |
| 8315 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 8316 | choke me |
| 8317 | #else |
| 8318 | char (*f) () = shl_load; |
| 8319 | #endif |
| 8320 | #ifdef __cplusplus |
| 8321 | } |
| 8322 | #endif |
| 8323 | |
| 8324 | int |
| 8325 | main () |
| 8326 | { |
| 8327 | return f != shl_load; |
| 8328 | ; |
| 8329 | return 0; |
| 8330 | } |
| 8331 | _ACEOF |
| 8332 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8333 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8334 | (eval $ac_link) 2>conftest.er1 |
| 8335 | ac_status=$? |
| 8336 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8337 | rm -f conftest.er1 |
| 8338 | cat conftest.err >&5 |
| 8339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8340 | (exit $ac_status); } && |
| 8341 | { ac_try='test -z "$ac_c_werror_flag" |
| 8342 | || test ! -s conftest.err' |
| 8343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8344 | (eval $ac_try) 2>&5 |
| 8345 | ac_status=$? |
| 8346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8347 | (exit $ac_status); }; } && |
| 8348 | { ac_try='test -s conftest$ac_exeext' |
| 8349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8350 | (eval $ac_try) 2>&5 |
| 8351 | ac_status=$? |
| 8352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8353 | (exit $ac_status); }; }; then |
| 8354 | ac_cv_func_shl_load=yes |
| 8355 | else |
| 8356 | echo "$as_me: failed program was:" >&5 |
| 8357 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8358 | |
| 8359 | ac_cv_func_shl_load=no |
| 8360 | fi |
| 8361 | rm -f conftest.err conftest.$ac_objext \ |
| 8362 | conftest$ac_exeext conftest.$ac_ext |
| 8363 | fi |
| 8364 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 8365 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 8366 | if test $ac_cv_func_shl_load = yes; then |
| 8367 | lt_cv_dlopen="shl_load" |
| 8368 | else |
| 8369 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 8370 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 8371 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 8372 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8373 | else |
| 8374 | ac_check_lib_save_LIBS=$LIBS |
| 8375 | LIBS="-ldld $LIBS" |
| 8376 | cat >conftest.$ac_ext <<_ACEOF |
| 8377 | /* confdefs.h. */ |
| 8378 | _ACEOF |
| 8379 | cat confdefs.h >>conftest.$ac_ext |
| 8380 | cat >>conftest.$ac_ext <<_ACEOF |
| 8381 | /* end confdefs.h. */ |
| 8382 | |
| 8383 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8384 | #ifdef __cplusplus |
| 8385 | extern "C" |
| 8386 | #endif |
| 8387 | /* We use char because int might match the return type of a gcc2 |
| 8388 | builtin and then its argument prototype would still apply. */ |
| 8389 | char shl_load (); |
| 8390 | int |
| 8391 | main () |
| 8392 | { |
| 8393 | shl_load (); |
| 8394 | ; |
| 8395 | return 0; |
| 8396 | } |
| 8397 | _ACEOF |
| 8398 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8399 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8400 | (eval $ac_link) 2>conftest.er1 |
| 8401 | ac_status=$? |
| 8402 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8403 | rm -f conftest.er1 |
| 8404 | cat conftest.err >&5 |
| 8405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8406 | (exit $ac_status); } && |
| 8407 | { ac_try='test -z "$ac_c_werror_flag" |
| 8408 | || test ! -s conftest.err' |
| 8409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8410 | (eval $ac_try) 2>&5 |
| 8411 | ac_status=$? |
| 8412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8413 | (exit $ac_status); }; } && |
| 8414 | { ac_try='test -s conftest$ac_exeext' |
| 8415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8416 | (eval $ac_try) 2>&5 |
| 8417 | ac_status=$? |
| 8418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8419 | (exit $ac_status); }; }; then |
| 8420 | ac_cv_lib_dld_shl_load=yes |
| 8421 | else |
| 8422 | echo "$as_me: failed program was:" >&5 |
| 8423 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8424 | |
| 8425 | ac_cv_lib_dld_shl_load=no |
| 8426 | fi |
| 8427 | rm -f conftest.err conftest.$ac_objext \ |
| 8428 | conftest$ac_exeext conftest.$ac_ext |
| 8429 | LIBS=$ac_check_lib_save_LIBS |
| 8430 | fi |
| 8431 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 8432 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 8433 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 8434 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 8435 | else |
| 8436 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 8437 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 8438 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 8439 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8440 | else |
| 8441 | cat >conftest.$ac_ext <<_ACEOF |
| 8442 | /* confdefs.h. */ |
| 8443 | _ACEOF |
| 8444 | cat confdefs.h >>conftest.$ac_ext |
| 8445 | cat >>conftest.$ac_ext <<_ACEOF |
| 8446 | /* end confdefs.h. */ |
| 8447 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 8448 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 8449 | #define dlopen innocuous_dlopen |
| 8450 | |
| 8451 | /* System header to define __stub macros and hopefully few prototypes, |
| 8452 | which can conflict with char dlopen (); below. |
| 8453 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 8454 | <limits.h> exists even on freestanding compilers. */ |
| 8455 | |
| 8456 | #ifdef __STDC__ |
| 8457 | # include <limits.h> |
| 8458 | #else |
| 8459 | # include <assert.h> |
| 8460 | #endif |
| 8461 | |
| 8462 | #undef dlopen |
| 8463 | |
| 8464 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8465 | #ifdef __cplusplus |
| 8466 | extern "C" |
| 8467 | { |
| 8468 | #endif |
| 8469 | /* We use char because int might match the return type of a gcc2 |
| 8470 | builtin and then its argument prototype would still apply. */ |
| 8471 | char dlopen (); |
| 8472 | /* The GNU C library defines this for functions which it implements |
| 8473 | to always fail with ENOSYS. Some functions are actually named |
| 8474 | something starting with __ and the normal name is an alias. */ |
| 8475 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 8476 | choke me |
| 8477 | #else |
| 8478 | char (*f) () = dlopen; |
| 8479 | #endif |
| 8480 | #ifdef __cplusplus |
| 8481 | } |
| 8482 | #endif |
| 8483 | |
| 8484 | int |
| 8485 | main () |
| 8486 | { |
| 8487 | return f != dlopen; |
| 8488 | ; |
| 8489 | return 0; |
| 8490 | } |
| 8491 | _ACEOF |
| 8492 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8493 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8494 | (eval $ac_link) 2>conftest.er1 |
| 8495 | ac_status=$? |
| 8496 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8497 | rm -f conftest.er1 |
| 8498 | cat conftest.err >&5 |
| 8499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8500 | (exit $ac_status); } && |
| 8501 | { ac_try='test -z "$ac_c_werror_flag" |
| 8502 | || test ! -s conftest.err' |
| 8503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8504 | (eval $ac_try) 2>&5 |
| 8505 | ac_status=$? |
| 8506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8507 | (exit $ac_status); }; } && |
| 8508 | { ac_try='test -s conftest$ac_exeext' |
| 8509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8510 | (eval $ac_try) 2>&5 |
| 8511 | ac_status=$? |
| 8512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8513 | (exit $ac_status); }; }; then |
| 8514 | ac_cv_func_dlopen=yes |
| 8515 | else |
| 8516 | echo "$as_me: failed program was:" >&5 |
| 8517 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8518 | |
| 8519 | ac_cv_func_dlopen=no |
| 8520 | fi |
| 8521 | rm -f conftest.err conftest.$ac_objext \ |
| 8522 | conftest$ac_exeext conftest.$ac_ext |
| 8523 | fi |
| 8524 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 8525 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 8526 | if test $ac_cv_func_dlopen = yes; then |
| 8527 | lt_cv_dlopen="dlopen" |
| 8528 | else |
| 8529 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 8530 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 8531 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 8532 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8533 | else |
| 8534 | ac_check_lib_save_LIBS=$LIBS |
| 8535 | LIBS="-ldl $LIBS" |
| 8536 | cat >conftest.$ac_ext <<_ACEOF |
| 8537 | /* confdefs.h. */ |
| 8538 | _ACEOF |
| 8539 | cat confdefs.h >>conftest.$ac_ext |
| 8540 | cat >>conftest.$ac_ext <<_ACEOF |
| 8541 | /* end confdefs.h. */ |
| 8542 | |
| 8543 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8544 | #ifdef __cplusplus |
| 8545 | extern "C" |
| 8546 | #endif |
| 8547 | /* We use char because int might match the return type of a gcc2 |
| 8548 | builtin and then its argument prototype would still apply. */ |
| 8549 | char dlopen (); |
| 8550 | int |
| 8551 | main () |
| 8552 | { |
| 8553 | dlopen (); |
| 8554 | ; |
| 8555 | return 0; |
| 8556 | } |
| 8557 | _ACEOF |
| 8558 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8559 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8560 | (eval $ac_link) 2>conftest.er1 |
| 8561 | ac_status=$? |
| 8562 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8563 | rm -f conftest.er1 |
| 8564 | cat conftest.err >&5 |
| 8565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8566 | (exit $ac_status); } && |
| 8567 | { ac_try='test -z "$ac_c_werror_flag" |
| 8568 | || test ! -s conftest.err' |
| 8569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8570 | (eval $ac_try) 2>&5 |
| 8571 | ac_status=$? |
| 8572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8573 | (exit $ac_status); }; } && |
| 8574 | { ac_try='test -s conftest$ac_exeext' |
| 8575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8576 | (eval $ac_try) 2>&5 |
| 8577 | ac_status=$? |
| 8578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8579 | (exit $ac_status); }; }; then |
| 8580 | ac_cv_lib_dl_dlopen=yes |
| 8581 | else |
| 8582 | echo "$as_me: failed program was:" >&5 |
| 8583 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8584 | |
| 8585 | ac_cv_lib_dl_dlopen=no |
| 8586 | fi |
| 8587 | rm -f conftest.err conftest.$ac_objext \ |
| 8588 | conftest$ac_exeext conftest.$ac_ext |
| 8589 | LIBS=$ac_check_lib_save_LIBS |
| 8590 | fi |
| 8591 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 8592 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 8593 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 8594 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 8595 | else |
| 8596 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 8597 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 8598 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 8599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8600 | else |
| 8601 | ac_check_lib_save_LIBS=$LIBS |
| 8602 | LIBS="-lsvld $LIBS" |
| 8603 | cat >conftest.$ac_ext <<_ACEOF |
| 8604 | /* confdefs.h. */ |
| 8605 | _ACEOF |
| 8606 | cat confdefs.h >>conftest.$ac_ext |
| 8607 | cat >>conftest.$ac_ext <<_ACEOF |
| 8608 | /* end confdefs.h. */ |
| 8609 | |
| 8610 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8611 | #ifdef __cplusplus |
| 8612 | extern "C" |
| 8613 | #endif |
| 8614 | /* We use char because int might match the return type of a gcc2 |
| 8615 | builtin and then its argument prototype would still apply. */ |
| 8616 | char dlopen (); |
| 8617 | int |
| 8618 | main () |
| 8619 | { |
| 8620 | dlopen (); |
| 8621 | ; |
| 8622 | return 0; |
| 8623 | } |
| 8624 | _ACEOF |
| 8625 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8626 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8627 | (eval $ac_link) 2>conftest.er1 |
| 8628 | ac_status=$? |
| 8629 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8630 | rm -f conftest.er1 |
| 8631 | cat conftest.err >&5 |
| 8632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8633 | (exit $ac_status); } && |
| 8634 | { ac_try='test -z "$ac_c_werror_flag" |
| 8635 | || test ! -s conftest.err' |
| 8636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8637 | (eval $ac_try) 2>&5 |
| 8638 | ac_status=$? |
| 8639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8640 | (exit $ac_status); }; } && |
| 8641 | { ac_try='test -s conftest$ac_exeext' |
| 8642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8643 | (eval $ac_try) 2>&5 |
| 8644 | ac_status=$? |
| 8645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8646 | (exit $ac_status); }; }; then |
| 8647 | ac_cv_lib_svld_dlopen=yes |
| 8648 | else |
| 8649 | echo "$as_me: failed program was:" >&5 |
| 8650 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8651 | |
| 8652 | ac_cv_lib_svld_dlopen=no |
| 8653 | fi |
| 8654 | rm -f conftest.err conftest.$ac_objext \ |
| 8655 | conftest$ac_exeext conftest.$ac_ext |
| 8656 | LIBS=$ac_check_lib_save_LIBS |
| 8657 | fi |
| 8658 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 8659 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 8660 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 8661 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 8662 | else |
| 8663 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 8664 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 8665 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 8666 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8667 | else |
| 8668 | ac_check_lib_save_LIBS=$LIBS |
| 8669 | LIBS="-ldld $LIBS" |
| 8670 | cat >conftest.$ac_ext <<_ACEOF |
| 8671 | /* confdefs.h. */ |
| 8672 | _ACEOF |
| 8673 | cat confdefs.h >>conftest.$ac_ext |
| 8674 | cat >>conftest.$ac_ext <<_ACEOF |
| 8675 | /* end confdefs.h. */ |
| 8676 | |
| 8677 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8678 | #ifdef __cplusplus |
| 8679 | extern "C" |
| 8680 | #endif |
| 8681 | /* We use char because int might match the return type of a gcc2 |
| 8682 | builtin and then its argument prototype would still apply. */ |
| 8683 | char dld_link (); |
| 8684 | int |
| 8685 | main () |
| 8686 | { |
| 8687 | dld_link (); |
| 8688 | ; |
| 8689 | return 0; |
| 8690 | } |
| 8691 | _ACEOF |
| 8692 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8693 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8694 | (eval $ac_link) 2>conftest.er1 |
| 8695 | ac_status=$? |
| 8696 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8697 | rm -f conftest.er1 |
| 8698 | cat conftest.err >&5 |
| 8699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8700 | (exit $ac_status); } && |
| 8701 | { ac_try='test -z "$ac_c_werror_flag" |
| 8702 | || test ! -s conftest.err' |
| 8703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8704 | (eval $ac_try) 2>&5 |
| 8705 | ac_status=$? |
| 8706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8707 | (exit $ac_status); }; } && |
| 8708 | { ac_try='test -s conftest$ac_exeext' |
| 8709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8710 | (eval $ac_try) 2>&5 |
| 8711 | ac_status=$? |
| 8712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8713 | (exit $ac_status); }; }; then |
| 8714 | ac_cv_lib_dld_dld_link=yes |
| 8715 | else |
| 8716 | echo "$as_me: failed program was:" >&5 |
| 8717 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8718 | |
| 8719 | ac_cv_lib_dld_dld_link=no |
| 8720 | fi |
| 8721 | rm -f conftest.err conftest.$ac_objext \ |
| 8722 | conftest$ac_exeext conftest.$ac_ext |
| 8723 | LIBS=$ac_check_lib_save_LIBS |
| 8724 | fi |
| 8725 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 8726 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 8727 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 8728 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 8729 | fi |
| 8730 | |
| 8731 | |
| 8732 | fi |
| 8733 | |
| 8734 | |
| 8735 | fi |
| 8736 | |
| 8737 | |
| 8738 | fi |
| 8739 | |
| 8740 | |
| 8741 | fi |
| 8742 | |
| 8743 | |
| 8744 | fi |
| 8745 | |
| 8746 | ;; |
| 8747 | esac |
| 8748 | |
| 8749 | if test "x$lt_cv_dlopen" != xno; then |
| 8750 | enable_dlopen=yes |
| 8751 | else |
| 8752 | enable_dlopen=no |
| 8753 | fi |
| 8754 | |
| 8755 | case $lt_cv_dlopen in |
| 8756 | dlopen) |
| 8757 | save_CPPFLAGS="$CPPFLAGS" |
| 8758 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 8759 | |
| 8760 | save_LDFLAGS="$LDFLAGS" |
| 8761 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 8762 | |
| 8763 | save_LIBS="$LIBS" |
| 8764 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 8765 | |
| 8766 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 8767 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 8768 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 8769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8770 | else |
| 8771 | if test "$cross_compiling" = yes; then : |
| 8772 | lt_cv_dlopen_self=cross |
| 8773 | else |
| 8774 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 8775 | lt_status=$lt_dlunknown |
| 8776 | cat > conftest.$ac_ext <<EOF |
Lev Walkin | 33cded1 | 2004-09-19 19:40:52 +0000 | [diff] [blame] | 8777 | #line 8777 "configure" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8778 | #include "confdefs.h" |
| 8779 | |
| 8780 | #if HAVE_DLFCN_H |
| 8781 | #include <dlfcn.h> |
| 8782 | #endif |
| 8783 | |
| 8784 | #include <stdio.h> |
| 8785 | |
| 8786 | #ifdef RTLD_GLOBAL |
| 8787 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 8788 | #else |
| 8789 | # ifdef DL_GLOBAL |
| 8790 | # define LT_DLGLOBAL DL_GLOBAL |
| 8791 | # else |
| 8792 | # define LT_DLGLOBAL 0 |
| 8793 | # endif |
| 8794 | #endif |
| 8795 | |
| 8796 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 8797 | find out it does not work in some platform. */ |
| 8798 | #ifndef LT_DLLAZY_OR_NOW |
| 8799 | # ifdef RTLD_LAZY |
| 8800 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 8801 | # else |
| 8802 | # ifdef DL_LAZY |
| 8803 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 8804 | # else |
| 8805 | # ifdef RTLD_NOW |
| 8806 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 8807 | # else |
| 8808 | # ifdef DL_NOW |
| 8809 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 8810 | # else |
| 8811 | # define LT_DLLAZY_OR_NOW 0 |
| 8812 | # endif |
| 8813 | # endif |
| 8814 | # endif |
| 8815 | # endif |
| 8816 | #endif |
| 8817 | |
| 8818 | #ifdef __cplusplus |
| 8819 | extern "C" void exit (int); |
| 8820 | #endif |
| 8821 | |
| 8822 | void fnord() { int i=42;} |
| 8823 | int main () |
| 8824 | { |
| 8825 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 8826 | int status = $lt_dlunknown; |
| 8827 | |
| 8828 | if (self) |
| 8829 | { |
| 8830 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 8831 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 8832 | /* dlclose (self); */ |
| 8833 | } |
| 8834 | |
| 8835 | exit (status); |
| 8836 | } |
| 8837 | EOF |
| 8838 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8839 | (eval $ac_link) 2>&5 |
| 8840 | ac_status=$? |
| 8841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8842 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 8843 | (./conftest; exit; ) 2>/dev/null |
| 8844 | lt_status=$? |
| 8845 | case x$lt_status in |
| 8846 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 8847 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 8848 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 8849 | esac |
| 8850 | else : |
| 8851 | # compilation failed |
| 8852 | lt_cv_dlopen_self=no |
| 8853 | fi |
| 8854 | fi |
| 8855 | rm -fr conftest* |
| 8856 | |
| 8857 | |
| 8858 | fi |
| 8859 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 8860 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 8861 | |
| 8862 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 8863 | LDFLAGS="$LDFLAGS $link_static_flag" |
| 8864 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 8865 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 8866 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 8867 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8868 | else |
| 8869 | if test "$cross_compiling" = yes; then : |
| 8870 | lt_cv_dlopen_self_static=cross |
| 8871 | else |
| 8872 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 8873 | lt_status=$lt_dlunknown |
| 8874 | cat > conftest.$ac_ext <<EOF |
Lev Walkin | 33cded1 | 2004-09-19 19:40:52 +0000 | [diff] [blame] | 8875 | #line 8875 "configure" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8876 | #include "confdefs.h" |
| 8877 | |
| 8878 | #if HAVE_DLFCN_H |
| 8879 | #include <dlfcn.h> |
| 8880 | #endif |
| 8881 | |
| 8882 | #include <stdio.h> |
| 8883 | |
| 8884 | #ifdef RTLD_GLOBAL |
| 8885 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 8886 | #else |
| 8887 | # ifdef DL_GLOBAL |
| 8888 | # define LT_DLGLOBAL DL_GLOBAL |
| 8889 | # else |
| 8890 | # define LT_DLGLOBAL 0 |
| 8891 | # endif |
| 8892 | #endif |
| 8893 | |
| 8894 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 8895 | find out it does not work in some platform. */ |
| 8896 | #ifndef LT_DLLAZY_OR_NOW |
| 8897 | # ifdef RTLD_LAZY |
| 8898 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 8899 | # else |
| 8900 | # ifdef DL_LAZY |
| 8901 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 8902 | # else |
| 8903 | # ifdef RTLD_NOW |
| 8904 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 8905 | # else |
| 8906 | # ifdef DL_NOW |
| 8907 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 8908 | # else |
| 8909 | # define LT_DLLAZY_OR_NOW 0 |
| 8910 | # endif |
| 8911 | # endif |
| 8912 | # endif |
| 8913 | # endif |
| 8914 | #endif |
| 8915 | |
| 8916 | #ifdef __cplusplus |
| 8917 | extern "C" void exit (int); |
| 8918 | #endif |
| 8919 | |
| 8920 | void fnord() { int i=42;} |
| 8921 | int main () |
| 8922 | { |
| 8923 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 8924 | int status = $lt_dlunknown; |
| 8925 | |
| 8926 | if (self) |
| 8927 | { |
| 8928 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 8929 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 8930 | /* dlclose (self); */ |
| 8931 | } |
| 8932 | |
| 8933 | exit (status); |
| 8934 | } |
| 8935 | EOF |
| 8936 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8937 | (eval $ac_link) 2>&5 |
| 8938 | ac_status=$? |
| 8939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8940 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 8941 | (./conftest; exit; ) 2>/dev/null |
| 8942 | lt_status=$? |
| 8943 | case x$lt_status in |
| 8944 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 8945 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 8946 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 8947 | esac |
| 8948 | else : |
| 8949 | # compilation failed |
| 8950 | lt_cv_dlopen_self_static=no |
| 8951 | fi |
| 8952 | fi |
| 8953 | rm -fr conftest* |
| 8954 | |
| 8955 | |
| 8956 | fi |
| 8957 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 8958 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 8959 | fi |
| 8960 | |
| 8961 | CPPFLAGS="$save_CPPFLAGS" |
| 8962 | LDFLAGS="$save_LDFLAGS" |
| 8963 | LIBS="$save_LIBS" |
| 8964 | ;; |
| 8965 | esac |
| 8966 | |
| 8967 | case $lt_cv_dlopen_self in |
| 8968 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 8969 | *) enable_dlopen_self=unknown ;; |
| 8970 | esac |
| 8971 | |
| 8972 | case $lt_cv_dlopen_self_static in |
| 8973 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 8974 | *) enable_dlopen_self_static=unknown ;; |
| 8975 | esac |
| 8976 | fi |
| 8977 | |
| 8978 | |
| 8979 | # Report which librarie types wil actually be built |
| 8980 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 8981 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
| 8982 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 8983 | echo "${ECHO_T}$can_build_shared" >&6 |
| 8984 | |
| 8985 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 8986 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
| 8987 | test "$can_build_shared" = "no" && enable_shared=no |
| 8988 | |
| 8989 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 8990 | # are all built from PIC. |
| 8991 | case "$host_os" in |
| 8992 | aix3*) |
| 8993 | test "$enable_shared" = yes && enable_static=no |
| 8994 | if test -n "$RANLIB"; then |
| 8995 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 8996 | postinstall_cmds='$RANLIB $lib' |
| 8997 | fi |
| 8998 | ;; |
| 8999 | |
| 9000 | aix4* | aix5*) |
| 9001 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 9002 | test "$enable_shared" = yes && enable_static=no |
| 9003 | fi |
| 9004 | ;; |
| 9005 | darwin* | rhapsody*) |
| 9006 | if test "$GCC" = yes; then |
| 9007 | archive_cmds_need_lc=no |
| 9008 | case "$host_os" in |
| 9009 | rhapsody* | darwin1.[012]) |
| 9010 | allow_undefined_flag='-undefined suppress' |
| 9011 | ;; |
| 9012 | *) # Darwin 1.3 on |
| 9013 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 9014 | allow_undefined_flag='-flat_namespace -undefined suppress' |
| 9015 | else |
| 9016 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 9017 | 10.[012]) |
| 9018 | allow_undefined_flag='-flat_namespace -undefined suppress' |
| 9019 | ;; |
| 9020 | 10.*) |
| 9021 | allow_undefined_flag='-undefined dynamic_lookup' |
| 9022 | ;; |
| 9023 | esac |
| 9024 | fi |
| 9025 | ;; |
| 9026 | esac |
| 9027 | output_verbose_link_cmd='echo' |
| 9028 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' |
| 9029 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 9030 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 9031 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 9032 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 9033 | hardcode_direct=no |
| 9034 | hardcode_automatic=yes |
| 9035 | hardcode_shlibpath_var=unsupported |
| 9036 | whole_archive_flag_spec='-all_load $convenience' |
| 9037 | link_all_deplibs=yes |
| 9038 | else |
| 9039 | ld_shlibs=no |
| 9040 | fi |
| 9041 | ;; |
| 9042 | esac |
| 9043 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 9044 | echo "${ECHO_T}$enable_shared" >&6 |
| 9045 | |
| 9046 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 9047 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
| 9048 | # Make sure either enable_shared or enable_static is yes. |
| 9049 | test "$enable_shared" = yes || enable_static=yes |
| 9050 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 9051 | echo "${ECHO_T}$enable_static" >&6 |
| 9052 | |
| 9053 | # The else clause should only fire when bootstrapping the |
| 9054 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 9055 | # with your package, and you will get complaints that there are |
| 9056 | # no rules to generate ltmain.sh. |
| 9057 | if test -f "$ltmain"; then |
| 9058 | # See if we are running on zsh, and set the options which allow our commands through |
| 9059 | # without removal of \ escapes. |
| 9060 | if test -n "${ZSH_VERSION+set}" ; then |
| 9061 | setopt NO_GLOB_SUBST |
| 9062 | fi |
| 9063 | # Now quote all the things that may contain metacharacters while being |
| 9064 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 9065 | # variables and quote the copies for generation of the libtool script. |
| 9066 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 9067 | SED SHELL STRIP \ |
| 9068 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 9069 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 9070 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 9071 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 9072 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 9073 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 9074 | old_postinstall_cmds old_postuninstall_cmds \ |
| 9075 | compiler \ |
| 9076 | CC \ |
| 9077 | LD \ |
| 9078 | lt_prog_compiler_wl \ |
| 9079 | lt_prog_compiler_pic \ |
| 9080 | lt_prog_compiler_static \ |
| 9081 | lt_prog_compiler_no_builtin_flag \ |
| 9082 | export_dynamic_flag_spec \ |
| 9083 | thread_safe_flag_spec \ |
| 9084 | whole_archive_flag_spec \ |
| 9085 | enable_shared_with_static_runtimes \ |
| 9086 | old_archive_cmds \ |
| 9087 | old_archive_from_new_cmds \ |
| 9088 | predep_objects \ |
| 9089 | postdep_objects \ |
| 9090 | predeps \ |
| 9091 | postdeps \ |
| 9092 | compiler_lib_search_path \ |
| 9093 | archive_cmds \ |
| 9094 | archive_expsym_cmds \ |
| 9095 | postinstall_cmds \ |
| 9096 | postuninstall_cmds \ |
| 9097 | old_archive_from_expsyms_cmds \ |
| 9098 | allow_undefined_flag \ |
| 9099 | no_undefined_flag \ |
| 9100 | export_symbols_cmds \ |
| 9101 | hardcode_libdir_flag_spec \ |
| 9102 | hardcode_libdir_flag_spec_ld \ |
| 9103 | hardcode_libdir_separator \ |
| 9104 | hardcode_automatic \ |
| 9105 | module_cmds \ |
| 9106 | module_expsym_cmds \ |
| 9107 | lt_cv_prog_compiler_c_o \ |
| 9108 | exclude_expsyms \ |
| 9109 | include_expsyms; do |
| 9110 | |
| 9111 | case $var in |
| 9112 | old_archive_cmds | \ |
| 9113 | old_archive_from_new_cmds | \ |
| 9114 | archive_cmds | \ |
| 9115 | archive_expsym_cmds | \ |
| 9116 | module_cmds | \ |
| 9117 | module_expsym_cmds | \ |
| 9118 | old_archive_from_expsyms_cmds | \ |
| 9119 | export_symbols_cmds | \ |
| 9120 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 9121 | postinstall_cmds | postuninstall_cmds | \ |
| 9122 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 9123 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 9124 | # Double-quote double-evaled strings. |
| 9125 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 9126 | ;; |
| 9127 | *) |
| 9128 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 9129 | ;; |
| 9130 | esac |
| 9131 | done |
| 9132 | |
| 9133 | case $lt_echo in |
| 9134 | *'\$0 --fallback-echo"') |
| 9135 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 9136 | ;; |
| 9137 | esac |
| 9138 | |
| 9139 | cfgfile="${ofile}T" |
| 9140 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
| 9141 | $rm -f "$cfgfile" |
| 9142 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
| 9143 | echo "$as_me: creating $ofile" >&6;} |
| 9144 | |
| 9145 | cat <<__EOF__ >> "$cfgfile" |
| 9146 | #! $SHELL |
| 9147 | |
| 9148 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 9149 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 9150 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 9151 | # |
| 9152 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
| 9153 | # Free Software Foundation, Inc. |
| 9154 | # |
| 9155 | # This file is part of GNU Libtool: |
| 9156 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 9157 | # |
| 9158 | # This program is free software; you can redistribute it and/or modify |
| 9159 | # it under the terms of the GNU General Public License as published by |
| 9160 | # the Free Software Foundation; either version 2 of the License, or |
| 9161 | # (at your option) any later version. |
| 9162 | # |
| 9163 | # This program is distributed in the hope that it will be useful, but |
| 9164 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9165 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 9166 | # General Public License for more details. |
| 9167 | # |
| 9168 | # You should have received a copy of the GNU General Public License |
| 9169 | # along with this program; if not, write to the Free Software |
| 9170 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 9171 | # |
| 9172 | # As a special exception to the GNU General Public License, if you |
| 9173 | # distribute this file as part of a program that contains a |
| 9174 | # configuration script generated by Autoconf, you may include it under |
| 9175 | # the same distribution terms that you use for the rest of that program. |
| 9176 | |
| 9177 | # A sed program that does not truncate output. |
| 9178 | SED=$lt_SED |
| 9179 | |
| 9180 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 9181 | Xsed="$SED -e s/^X//" |
| 9182 | |
| 9183 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 9184 | # if CDPATH is set. |
| 9185 | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| 9186 | |
| 9187 | # The names of the tagged configurations supported by this script. |
| 9188 | available_tags= |
| 9189 | |
| 9190 | # ### BEGIN LIBTOOL CONFIG |
| 9191 | |
| 9192 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 9193 | |
| 9194 | # Shell to use when invoking shell scripts. |
| 9195 | SHELL=$lt_SHELL |
| 9196 | |
| 9197 | # Whether or not to build shared libraries. |
| 9198 | build_libtool_libs=$enable_shared |
| 9199 | |
| 9200 | # Whether or not to build static libraries. |
| 9201 | build_old_libs=$enable_static |
| 9202 | |
| 9203 | # Whether or not to add -lc for building shared libraries. |
| 9204 | build_libtool_need_lc=$archive_cmds_need_lc |
| 9205 | |
| 9206 | # Whether or not to disallow shared libs when runtime libs are static |
| 9207 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 9208 | |
| 9209 | # Whether or not to optimize for fast installation. |
| 9210 | fast_install=$enable_fast_install |
| 9211 | |
| 9212 | # The host system. |
| 9213 | host_alias=$host_alias |
| 9214 | host=$host |
| 9215 | |
| 9216 | # An echo program that does not interpret backslashes. |
| 9217 | echo=$lt_echo |
| 9218 | |
| 9219 | # The archiver. |
| 9220 | AR=$lt_AR |
| 9221 | AR_FLAGS=$lt_AR_FLAGS |
| 9222 | |
| 9223 | # A C compiler. |
| 9224 | LTCC=$lt_LTCC |
| 9225 | |
| 9226 | # A language-specific compiler. |
| 9227 | CC=$lt_compiler |
| 9228 | |
| 9229 | # Is the compiler the GNU C compiler? |
| 9230 | with_gcc=$GCC |
| 9231 | |
| 9232 | # An ERE matcher. |
| 9233 | EGREP=$lt_EGREP |
| 9234 | |
| 9235 | # The linker used to build libraries. |
| 9236 | LD=$lt_LD |
| 9237 | |
| 9238 | # Whether we need hard or soft links. |
| 9239 | LN_S=$lt_LN_S |
| 9240 | |
| 9241 | # A BSD-compatible nm program. |
| 9242 | NM=$lt_NM |
| 9243 | |
| 9244 | # A symbol stripping program |
| 9245 | STRIP=$lt_STRIP |
| 9246 | |
| 9247 | # Used to examine libraries when file_magic_cmd begins "file" |
| 9248 | MAGIC_CMD=$MAGIC_CMD |
| 9249 | |
| 9250 | # Used on cygwin: DLL creation program. |
| 9251 | DLLTOOL="$DLLTOOL" |
| 9252 | |
| 9253 | # Used on cygwin: object dumper. |
| 9254 | OBJDUMP="$OBJDUMP" |
| 9255 | |
| 9256 | # Used on cygwin: assembler. |
| 9257 | AS="$AS" |
| 9258 | |
| 9259 | # The name of the directory that contains temporary libtool files. |
| 9260 | objdir=$objdir |
| 9261 | |
| 9262 | # How to create reloadable object files. |
| 9263 | reload_flag=$lt_reload_flag |
| 9264 | reload_cmds=$lt_reload_cmds |
| 9265 | |
| 9266 | # How to pass a linker flag through the compiler. |
| 9267 | wl=$lt_lt_prog_compiler_wl |
| 9268 | |
| 9269 | # Object file suffix (normally "o"). |
| 9270 | objext="$ac_objext" |
| 9271 | |
| 9272 | # Old archive suffix (normally "a"). |
| 9273 | libext="$libext" |
| 9274 | |
| 9275 | # Shared library suffix (normally ".so"). |
| 9276 | shrext_cmds='$shrext_cmds' |
| 9277 | |
| 9278 | # Executable file suffix (normally ""). |
| 9279 | exeext="$exeext" |
| 9280 | |
| 9281 | # Additional compiler flags for building library objects. |
| 9282 | pic_flag=$lt_lt_prog_compiler_pic |
| 9283 | pic_mode=$pic_mode |
| 9284 | |
| 9285 | # What is the maximum length of a command? |
| 9286 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 9287 | |
| 9288 | # Does compiler simultaneously support -c and -o options? |
| 9289 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 9290 | |
| 9291 | # Must we lock files when doing compilation ? |
| 9292 | need_locks=$lt_need_locks |
| 9293 | |
| 9294 | # Do we need the lib prefix for modules? |
| 9295 | need_lib_prefix=$need_lib_prefix |
| 9296 | |
| 9297 | # Do we need a version for libraries? |
| 9298 | need_version=$need_version |
| 9299 | |
| 9300 | # Whether dlopen is supported. |
| 9301 | dlopen_support=$enable_dlopen |
| 9302 | |
| 9303 | # Whether dlopen of programs is supported. |
| 9304 | dlopen_self=$enable_dlopen_self |
| 9305 | |
| 9306 | # Whether dlopen of statically linked programs is supported. |
| 9307 | dlopen_self_static=$enable_dlopen_self_static |
| 9308 | |
| 9309 | # Compiler flag to prevent dynamic linking. |
| 9310 | link_static_flag=$lt_lt_prog_compiler_static |
| 9311 | |
| 9312 | # Compiler flag to turn off builtin functions. |
| 9313 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 9314 | |
| 9315 | # Compiler flag to allow reflexive dlopens. |
| 9316 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 9317 | |
| 9318 | # Compiler flag to generate shared objects directly from archives. |
| 9319 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 9320 | |
| 9321 | # Compiler flag to generate thread-safe objects. |
| 9322 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 9323 | |
| 9324 | # Library versioning type. |
| 9325 | version_type=$version_type |
| 9326 | |
| 9327 | # Format of library name prefix. |
| 9328 | libname_spec=$lt_libname_spec |
| 9329 | |
| 9330 | # List of archive names. First name is the real one, the rest are links. |
| 9331 | # The last name is the one that the linker finds with -lNAME. |
| 9332 | library_names_spec=$lt_library_names_spec |
| 9333 | |
| 9334 | # The coded name of the library, if different from the real name. |
| 9335 | soname_spec=$lt_soname_spec |
| 9336 | |
| 9337 | # Commands used to build and install an old-style archive. |
| 9338 | RANLIB=$lt_RANLIB |
| 9339 | old_archive_cmds=$lt_old_archive_cmds |
| 9340 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 9341 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 9342 | |
| 9343 | # Create an old-style archive from a shared archive. |
| 9344 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 9345 | |
| 9346 | # Create a temporary old-style archive to link instead of a shared archive. |
| 9347 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 9348 | |
| 9349 | # Commands used to build and install a shared archive. |
| 9350 | archive_cmds=$lt_archive_cmds |
| 9351 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 9352 | postinstall_cmds=$lt_postinstall_cmds |
| 9353 | postuninstall_cmds=$lt_postuninstall_cmds |
| 9354 | |
| 9355 | # Commands used to build a loadable module (assumed same as above if empty) |
| 9356 | module_cmds=$lt_module_cmds |
| 9357 | module_expsym_cmds=$lt_module_expsym_cmds |
| 9358 | |
| 9359 | # Commands to strip libraries. |
| 9360 | old_striplib=$lt_old_striplib |
| 9361 | striplib=$lt_striplib |
| 9362 | |
| 9363 | # Dependencies to place before the objects being linked to create a |
| 9364 | # shared library. |
| 9365 | predep_objects=$lt_predep_objects |
| 9366 | |
| 9367 | # Dependencies to place after the objects being linked to create a |
| 9368 | # shared library. |
| 9369 | postdep_objects=$lt_postdep_objects |
| 9370 | |
| 9371 | # Dependencies to place before the objects being linked to create a |
| 9372 | # shared library. |
| 9373 | predeps=$lt_predeps |
| 9374 | |
| 9375 | # Dependencies to place after the objects being linked to create a |
| 9376 | # shared library. |
| 9377 | postdeps=$lt_postdeps |
| 9378 | |
| 9379 | # The library search path used internally by the compiler when linking |
| 9380 | # a shared library. |
| 9381 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 9382 | |
| 9383 | # Method to check whether dependent libraries are shared objects. |
| 9384 | deplibs_check_method=$lt_deplibs_check_method |
| 9385 | |
| 9386 | # Command to use when deplibs_check_method == file_magic. |
| 9387 | file_magic_cmd=$lt_file_magic_cmd |
| 9388 | |
| 9389 | # Flag that allows shared libraries with undefined symbols to be built. |
| 9390 | allow_undefined_flag=$lt_allow_undefined_flag |
| 9391 | |
| 9392 | # Flag that forces no undefined symbols. |
| 9393 | no_undefined_flag=$lt_no_undefined_flag |
| 9394 | |
| 9395 | # Commands used to finish a libtool library installation in a directory. |
| 9396 | finish_cmds=$lt_finish_cmds |
| 9397 | |
| 9398 | # Same as above, but a single script fragment to be evaled but not shown. |
| 9399 | finish_eval=$lt_finish_eval |
| 9400 | |
| 9401 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 9402 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 9403 | |
| 9404 | # Transform the output of nm in a proper C declaration |
| 9405 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 9406 | |
| 9407 | # Transform the output of nm in a C name address pair |
| 9408 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 9409 | |
| 9410 | # This is the shared library runtime path variable. |
| 9411 | runpath_var=$runpath_var |
| 9412 | |
| 9413 | # This is the shared library path variable. |
| 9414 | shlibpath_var=$shlibpath_var |
| 9415 | |
| 9416 | # Is shlibpath searched before the hard-coded library search path? |
| 9417 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 9418 | |
| 9419 | # How to hardcode a shared library path into an executable. |
| 9420 | hardcode_action=$hardcode_action |
| 9421 | |
| 9422 | # Whether we should hardcode library paths into libraries. |
| 9423 | hardcode_into_libs=$hardcode_into_libs |
| 9424 | |
| 9425 | # Flag to hardcode \$libdir into a binary during linking. |
| 9426 | # This must work even if \$libdir does not exist. |
| 9427 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 9428 | |
| 9429 | # If ld is used when linking, flag to hardcode \$libdir into |
| 9430 | # a binary during linking. This must work even if \$libdir does |
| 9431 | # not exist. |
| 9432 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 9433 | |
| 9434 | # Whether we need a single -rpath flag with a separated argument. |
| 9435 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 9436 | |
| 9437 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 9438 | # resulting binary. |
| 9439 | hardcode_direct=$hardcode_direct |
| 9440 | |
| 9441 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 9442 | # resulting binary. |
| 9443 | hardcode_minus_L=$hardcode_minus_L |
| 9444 | |
| 9445 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 9446 | # the resulting binary. |
| 9447 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 9448 | |
| 9449 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 9450 | # and all subsequent libraries and executables linked against it. |
| 9451 | hardcode_automatic=$hardcode_automatic |
| 9452 | |
| 9453 | # Variables whose values should be saved in libtool wrapper scripts and |
| 9454 | # restored at relink time. |
| 9455 | variables_saved_for_relink="$variables_saved_for_relink" |
| 9456 | |
| 9457 | # Whether libtool must link a program against all its dependency libraries. |
| 9458 | link_all_deplibs=$link_all_deplibs |
| 9459 | |
| 9460 | # Compile-time system search path for libraries |
| 9461 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 9462 | |
| 9463 | # Run-time system search path for libraries |
| 9464 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 9465 | |
| 9466 | # Fix the shell variable \$srcfile for the compiler. |
| 9467 | fix_srcfile_path="$fix_srcfile_path" |
| 9468 | |
| 9469 | # Set to yes if exported symbols are required. |
| 9470 | always_export_symbols=$always_export_symbols |
| 9471 | |
| 9472 | # The commands to list exported symbols. |
| 9473 | export_symbols_cmds=$lt_export_symbols_cmds |
| 9474 | |
| 9475 | # The commands to extract the exported symbol list from a shared archive. |
| 9476 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 9477 | |
| 9478 | # Symbols that should not be listed in the preloaded symbols. |
| 9479 | exclude_expsyms=$lt_exclude_expsyms |
| 9480 | |
| 9481 | # Symbols that must always be exported. |
| 9482 | include_expsyms=$lt_include_expsyms |
| 9483 | |
| 9484 | # ### END LIBTOOL CONFIG |
| 9485 | |
| 9486 | __EOF__ |
| 9487 | |
| 9488 | |
| 9489 | case $host_os in |
| 9490 | aix3*) |
| 9491 | cat <<\EOF >> "$cfgfile" |
| 9492 | |
| 9493 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 9494 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 9495 | # vanish in a puff of smoke. |
| 9496 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 9497 | COLLECT_NAMES= |
| 9498 | export COLLECT_NAMES |
| 9499 | fi |
| 9500 | EOF |
| 9501 | ;; |
| 9502 | esac |
| 9503 | |
| 9504 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 9505 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 9506 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 9507 | # is reportedly fixed, but why not run on old versions too? |
| 9508 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
| 9509 | |
| 9510 | mv -f "$cfgfile" "$ofile" || \ |
| 9511 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 9512 | chmod +x "$ofile" |
| 9513 | |
| 9514 | else |
| 9515 | # If there is no Makefile yet, we rely on a make rule to execute |
| 9516 | # `config.status --recheck' to rerun these tests and create the |
| 9517 | # libtool script then. |
| 9518 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 9519 | if test -f "$ltmain_in"; then |
| 9520 | test -f Makefile && make "$ltmain" |
| 9521 | fi |
| 9522 | fi |
| 9523 | |
| 9524 | |
| 9525 | ac_ext=c |
| 9526 | ac_cpp='$CPP $CPPFLAGS' |
| 9527 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9528 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9529 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9530 | |
| 9531 | CC="$lt_save_CC" |
| 9532 | |
| 9533 | |
| 9534 | # Check whether --with-tags or --without-tags was given. |
| 9535 | if test "${with_tags+set}" = set; then |
| 9536 | withval="$with_tags" |
| 9537 | tagnames="$withval" |
| 9538 | fi; |
| 9539 | |
| 9540 | if test -f "$ltmain" && test -n "$tagnames"; then |
| 9541 | if test ! -f "${ofile}"; then |
| 9542 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
| 9543 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
| 9544 | fi |
| 9545 | |
| 9546 | if test -z "$LTCC"; then |
| 9547 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
| 9548 | if test -z "$LTCC"; then |
| 9549 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
| 9550 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
| 9551 | else |
| 9552 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
| 9553 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
| 9554 | fi |
| 9555 | fi |
| 9556 | |
| 9557 | # Extract list of available tagged configurations in $ofile. |
| 9558 | # Note that this assumes the entire list is on one line. |
| 9559 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
| 9560 | |
| 9561 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 9562 | for tagname in $tagnames; do |
| 9563 | IFS="$lt_save_ifs" |
| 9564 | # Check whether tagname contains only valid characters |
| 9565 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
| 9566 | "") ;; |
| 9567 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
| 9568 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
| 9569 | { (exit 1); exit 1; }; } |
| 9570 | ;; |
| 9571 | esac |
| 9572 | |
| 9573 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
| 9574 | then |
| 9575 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
| 9576 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
| 9577 | { (exit 1); exit 1; }; } |
| 9578 | fi |
| 9579 | |
| 9580 | # Update the list of available tags. |
| 9581 | if test -n "$tagname"; then |
| 9582 | echo appending configuration tag \"$tagname\" to $ofile |
| 9583 | |
| 9584 | case $tagname in |
| 9585 | CXX) |
| 9586 | if test -n "$CXX" && test "X$CXX" != "Xno"; then |
| 9587 | ac_ext=cc |
| 9588 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 9589 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9590 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9591 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 9592 | |
| 9593 | |
| 9594 | |
| 9595 | |
| 9596 | archive_cmds_need_lc_CXX=no |
| 9597 | allow_undefined_flag_CXX= |
| 9598 | always_export_symbols_CXX=no |
| 9599 | archive_expsym_cmds_CXX= |
| 9600 | export_dynamic_flag_spec_CXX= |
| 9601 | hardcode_direct_CXX=no |
| 9602 | hardcode_libdir_flag_spec_CXX= |
| 9603 | hardcode_libdir_flag_spec_ld_CXX= |
| 9604 | hardcode_libdir_separator_CXX= |
| 9605 | hardcode_minus_L_CXX=no |
| 9606 | hardcode_automatic_CXX=no |
| 9607 | module_cmds_CXX= |
| 9608 | module_expsym_cmds_CXX= |
| 9609 | link_all_deplibs_CXX=unknown |
| 9610 | old_archive_cmds_CXX=$old_archive_cmds |
| 9611 | no_undefined_flag_CXX= |
| 9612 | whole_archive_flag_spec_CXX= |
| 9613 | enable_shared_with_static_runtimes_CXX=no |
| 9614 | |
| 9615 | # Dependencies to place before and after the object being linked: |
| 9616 | predep_objects_CXX= |
| 9617 | postdep_objects_CXX= |
| 9618 | predeps_CXX= |
| 9619 | postdeps_CXX= |
| 9620 | compiler_lib_search_path_CXX= |
| 9621 | |
| 9622 | # Source file extension for C++ test sources. |
| 9623 | ac_ext=cc |
| 9624 | |
| 9625 | # Object file extension for compiled C++ test sources. |
| 9626 | objext=o |
| 9627 | objext_CXX=$objext |
| 9628 | |
| 9629 | # Code to be used in simple compile tests |
| 9630 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 9631 | |
| 9632 | # Code to be used in simple link tests |
| 9633 | lt_simple_link_test_code='int main(int, char *) { return(0); }\n' |
| 9634 | |
| 9635 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 9636 | |
| 9637 | # If no C compiler was specified, use CC. |
| 9638 | LTCC=${LTCC-"$CC"} |
| 9639 | |
| 9640 | # Allow CC to be a program name with arguments. |
| 9641 | compiler=$CC |
| 9642 | |
| 9643 | |
| 9644 | # Allow CC to be a program name with arguments. |
| 9645 | lt_save_CC=$CC |
| 9646 | lt_save_LD=$LD |
| 9647 | lt_save_GCC=$GCC |
| 9648 | GCC=$GXX |
| 9649 | lt_save_with_gnu_ld=$with_gnu_ld |
| 9650 | lt_save_path_LD=$lt_cv_path_LD |
| 9651 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 9652 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 9653 | else |
| 9654 | unset lt_cv_prog_gnu_ld |
| 9655 | fi |
| 9656 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 9657 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 9658 | else |
| 9659 | unset lt_cv_path_LD |
| 9660 | fi |
| 9661 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 9662 | CC=${CXX-"c++"} |
| 9663 | compiler=$CC |
| 9664 | compiler_CXX=$CC |
| 9665 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
| 9666 | |
| 9667 | # We don't want -fno-exception wen compiling C++ code, so set the |
| 9668 | # no_builtin_flag separately |
| 9669 | if test "$GXX" = yes; then |
| 9670 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 9671 | else |
| 9672 | lt_prog_compiler_no_builtin_flag_CXX= |
| 9673 | fi |
| 9674 | |
| 9675 | if test "$GXX" = yes; then |
| 9676 | # Set up default GNU C++ configuration |
| 9677 | |
| 9678 | |
| 9679 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 9680 | if test "${with_gnu_ld+set}" = set; then |
| 9681 | withval="$with_gnu_ld" |
| 9682 | test "$withval" = no || with_gnu_ld=yes |
| 9683 | else |
| 9684 | with_gnu_ld=no |
| 9685 | fi; |
| 9686 | ac_prog=ld |
| 9687 | if test "$GCC" = yes; then |
| 9688 | # Check if gcc -print-prog-name=ld gives a path. |
| 9689 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 9690 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
| 9691 | case $host in |
| 9692 | *-*-mingw*) |
| 9693 | # gcc leaves a trailing carriage return which upsets mingw |
| 9694 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 9695 | *) |
| 9696 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 9697 | esac |
| 9698 | case $ac_prog in |
| 9699 | # Accept absolute paths. |
| 9700 | [\\/]* | ?:[\\/]*) |
| 9701 | re_direlt='/[^/][^/]*/\.\./' |
| 9702 | # Canonicalize the pathname of ld |
| 9703 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 9704 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 9705 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 9706 | done |
| 9707 | test -z "$LD" && LD="$ac_prog" |
| 9708 | ;; |
| 9709 | "") |
| 9710 | # If it fails, then pretend we aren't using GCC. |
| 9711 | ac_prog=ld |
| 9712 | ;; |
| 9713 | *) |
| 9714 | # If it is relative, then search for the first ld in PATH. |
| 9715 | with_gnu_ld=unknown |
| 9716 | ;; |
| 9717 | esac |
| 9718 | elif test "$with_gnu_ld" = yes; then |
| 9719 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 9720 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 9721 | else |
| 9722 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 9723 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 9724 | fi |
| 9725 | if test "${lt_cv_path_LD+set}" = set; then |
| 9726 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9727 | else |
| 9728 | if test -z "$LD"; then |
| 9729 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 9730 | for ac_dir in $PATH; do |
| 9731 | IFS="$lt_save_ifs" |
| 9732 | test -z "$ac_dir" && ac_dir=. |
| 9733 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 9734 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 9735 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 9736 | # but apparently some GNU ld's only accept -v. |
| 9737 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 9738 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 9739 | *GNU* | *'with BFD'*) |
| 9740 | test "$with_gnu_ld" != no && break |
| 9741 | ;; |
| 9742 | *) |
| 9743 | test "$with_gnu_ld" != yes && break |
| 9744 | ;; |
| 9745 | esac |
| 9746 | fi |
| 9747 | done |
| 9748 | IFS="$lt_save_ifs" |
| 9749 | else |
| 9750 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 9751 | fi |
| 9752 | fi |
| 9753 | |
| 9754 | LD="$lt_cv_path_LD" |
| 9755 | if test -n "$LD"; then |
| 9756 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 9757 | echo "${ECHO_T}$LD" >&6 |
| 9758 | else |
| 9759 | echo "$as_me:$LINENO: result: no" >&5 |
| 9760 | echo "${ECHO_T}no" >&6 |
| 9761 | fi |
| 9762 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 9763 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 9764 | { (exit 1); exit 1; }; } |
| 9765 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 9766 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| 9767 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 9768 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9769 | else |
| 9770 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 9771 | case `$LD -v 2>&1 </dev/null` in |
| 9772 | *GNU* | *'with BFD'*) |
| 9773 | lt_cv_prog_gnu_ld=yes |
| 9774 | ;; |
| 9775 | *) |
| 9776 | lt_cv_prog_gnu_ld=no |
| 9777 | ;; |
| 9778 | esac |
| 9779 | fi |
| 9780 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 9781 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
| 9782 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 9783 | |
| 9784 | |
| 9785 | |
| 9786 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 9787 | # archiving commands below assume that GNU ld is being used. |
| 9788 | if test "$with_gnu_ld" = yes; then |
| 9789 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9790 | archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9791 | |
| 9792 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 9793 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 9794 | |
| 9795 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 9796 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 9797 | # investigate it a little bit more. (MM) |
| 9798 | wlarc='${wl}' |
| 9799 | |
| 9800 | # ancient GNU ld didn't support --whole-archive et. al. |
| 9801 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
| 9802 | grep 'no-whole-archive' > /dev/null; then |
| 9803 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 9804 | else |
| 9805 | whole_archive_flag_spec_CXX= |
| 9806 | fi |
| 9807 | else |
| 9808 | with_gnu_ld=no |
| 9809 | wlarc= |
| 9810 | |
| 9811 | # A generic and very simple default shared library creation |
| 9812 | # command for GNU C++ for the case where it uses the native |
| 9813 | # linker, instead of GNU ld. If possible, this setting should |
| 9814 | # overridden to take advantage of the native linker features on |
| 9815 | # the platform it is being used on. |
| 9816 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 9817 | fi |
| 9818 | |
| 9819 | # Commands to make compiler produce verbose output that lists |
| 9820 | # what "hidden" libraries, object files and flags are used when |
| 9821 | # linking a shared library. |
| 9822 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 9823 | |
| 9824 | else |
| 9825 | GXX=no |
| 9826 | with_gnu_ld=no |
| 9827 | wlarc= |
| 9828 | fi |
| 9829 | |
| 9830 | # PORTME: fill in a description of your system's C++ link characteristics |
| 9831 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 9832 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 9833 | ld_shlibs_CXX=yes |
| 9834 | case $host_os in |
| 9835 | aix3*) |
| 9836 | # FIXME: insert proper C++ library support |
| 9837 | ld_shlibs_CXX=no |
| 9838 | ;; |
| 9839 | aix4* | aix5*) |
| 9840 | if test "$host_cpu" = ia64; then |
| 9841 | # On IA64, the linker does run time linking by default, so we don't |
| 9842 | # have to do anything special. |
| 9843 | aix_use_runtimelinking=no |
| 9844 | exp_sym_flag='-Bexport' |
| 9845 | no_entry_flag="" |
| 9846 | else |
| 9847 | aix_use_runtimelinking=no |
| 9848 | |
| 9849 | # Test if we are trying to use run time linking or normal |
| 9850 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 9851 | # need to do runtime linking. |
| 9852 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 9853 | for ld_flag in $LDFLAGS; do |
| 9854 | case $ld_flag in |
| 9855 | *-brtl*) |
| 9856 | aix_use_runtimelinking=yes |
| 9857 | break |
| 9858 | ;; |
| 9859 | esac |
| 9860 | done |
| 9861 | esac |
| 9862 | |
| 9863 | exp_sym_flag='-bexport' |
| 9864 | no_entry_flag='-bnoentry' |
| 9865 | fi |
| 9866 | |
| 9867 | # When large executables or shared objects are built, AIX ld can |
| 9868 | # have problems creating the table of contents. If linking a library |
| 9869 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 9870 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 9871 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 9872 | |
| 9873 | archive_cmds_CXX='' |
| 9874 | hardcode_direct_CXX=yes |
| 9875 | hardcode_libdir_separator_CXX=':' |
| 9876 | link_all_deplibs_CXX=yes |
| 9877 | |
| 9878 | if test "$GXX" = yes; then |
| 9879 | case $host_os in aix4.012|aix4.012.*) |
| 9880 | # We only want to do this on AIX 4.2 and lower, the check |
| 9881 | # below for broken collect2 doesn't work under 4.3+ |
| 9882 | collect2name=`${CC} -print-prog-name=collect2` |
| 9883 | if test -f "$collect2name" && \ |
| 9884 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 9885 | then |
| 9886 | # We have reworked collect2 |
| 9887 | hardcode_direct_CXX=yes |
| 9888 | else |
| 9889 | # We have old collect2 |
| 9890 | hardcode_direct_CXX=unsupported |
| 9891 | # It fails to find uninstalled libraries when the uninstalled |
| 9892 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 9893 | # to unsupported forces relinking |
| 9894 | hardcode_minus_L_CXX=yes |
| 9895 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 9896 | hardcode_libdir_separator_CXX= |
| 9897 | fi |
| 9898 | esac |
| 9899 | shared_flag='-shared' |
| 9900 | else |
| 9901 | # not using gcc |
| 9902 | if test "$host_cpu" = ia64; then |
| 9903 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 9904 | # chokes on -Wl,-G. The following line is correct: |
| 9905 | shared_flag='-G' |
| 9906 | else |
| 9907 | if test "$aix_use_runtimelinking" = yes; then |
| 9908 | shared_flag='${wl}-G' |
| 9909 | else |
| 9910 | shared_flag='${wl}-bM:SRE' |
| 9911 | fi |
| 9912 | fi |
| 9913 | fi |
| 9914 | |
| 9915 | # It seems that -bexpall does not export symbols beginning with |
| 9916 | # underscore (_), so it is better to generate a list of symbols to export. |
| 9917 | always_export_symbols_CXX=yes |
| 9918 | if test "$aix_use_runtimelinking" = yes; then |
| 9919 | # Warning - without using the other runtime loading flags (-brtl), |
| 9920 | # -berok will link without error, but may produce a broken library. |
| 9921 | allow_undefined_flag_CXX='-berok' |
| 9922 | # Determine the default libpath from the value encoded in an empty executable. |
| 9923 | cat >conftest.$ac_ext <<_ACEOF |
| 9924 | /* confdefs.h. */ |
| 9925 | _ACEOF |
| 9926 | cat confdefs.h >>conftest.$ac_ext |
| 9927 | cat >>conftest.$ac_ext <<_ACEOF |
| 9928 | /* end confdefs.h. */ |
| 9929 | |
| 9930 | int |
| 9931 | main () |
| 9932 | { |
| 9933 | |
| 9934 | ; |
| 9935 | return 0; |
| 9936 | } |
| 9937 | _ACEOF |
| 9938 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9939 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9940 | (eval $ac_link) 2>conftest.er1 |
| 9941 | ac_status=$? |
| 9942 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9943 | rm -f conftest.er1 |
| 9944 | cat conftest.err >&5 |
| 9945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9946 | (exit $ac_status); } && |
| 9947 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 9948 | || test ! -s conftest.err' |
| 9949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9950 | (eval $ac_try) 2>&5 |
| 9951 | ac_status=$? |
| 9952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9953 | (exit $ac_status); }; } && |
| 9954 | { ac_try='test -s conftest$ac_exeext' |
| 9955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9956 | (eval $ac_try) 2>&5 |
| 9957 | ac_status=$? |
| 9958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9959 | (exit $ac_status); }; }; then |
| 9960 | |
| 9961 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 9962 | }'` |
| 9963 | # Check for a 64-bit object if we didn't find anything. |
| 9964 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 9965 | }'`; fi |
| 9966 | else |
| 9967 | echo "$as_me: failed program was:" >&5 |
| 9968 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9969 | |
| 9970 | fi |
| 9971 | rm -f conftest.err conftest.$ac_objext \ |
| 9972 | conftest$ac_exeext conftest.$ac_ext |
| 9973 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 9974 | |
| 9975 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9976 | |
| 9977 | archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 9978 | else |
| 9979 | if test "$host_cpu" = ia64; then |
| 9980 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 9981 | allow_undefined_flag_CXX="-z nodefs" |
| 9982 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
| 9983 | else |
| 9984 | # Determine the default libpath from the value encoded in an empty executable. |
| 9985 | cat >conftest.$ac_ext <<_ACEOF |
| 9986 | /* confdefs.h. */ |
| 9987 | _ACEOF |
| 9988 | cat confdefs.h >>conftest.$ac_ext |
| 9989 | cat >>conftest.$ac_ext <<_ACEOF |
| 9990 | /* end confdefs.h. */ |
| 9991 | |
| 9992 | int |
| 9993 | main () |
| 9994 | { |
| 9995 | |
| 9996 | ; |
| 9997 | return 0; |
| 9998 | } |
| 9999 | _ACEOF |
| 10000 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10001 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10002 | (eval $ac_link) 2>conftest.er1 |
| 10003 | ac_status=$? |
| 10004 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10005 | rm -f conftest.er1 |
| 10006 | cat conftest.err >&5 |
| 10007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10008 | (exit $ac_status); } && |
| 10009 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 10010 | || test ! -s conftest.err' |
| 10011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10012 | (eval $ac_try) 2>&5 |
| 10013 | ac_status=$? |
| 10014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10015 | (exit $ac_status); }; } && |
| 10016 | { ac_try='test -s conftest$ac_exeext' |
| 10017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10018 | (eval $ac_try) 2>&5 |
| 10019 | ac_status=$? |
| 10020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10021 | (exit $ac_status); }; }; then |
| 10022 | |
| 10023 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 10024 | }'` |
| 10025 | # Check for a 64-bit object if we didn't find anything. |
| 10026 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 10027 | }'`; fi |
| 10028 | else |
| 10029 | echo "$as_me: failed program was:" >&5 |
| 10030 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10031 | |
| 10032 | fi |
| 10033 | rm -f conftest.err conftest.$ac_objext \ |
| 10034 | conftest$ac_exeext conftest.$ac_ext |
| 10035 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 10036 | |
| 10037 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 10038 | # Warning - without using the other run time loading flags, |
| 10039 | # -berok will link without error, but may produce a broken library. |
| 10040 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 10041 | allow_undefined_flag_CXX=' ${wl}-berok' |
| 10042 | # -bexpall does not export symbols beginning with underscore (_) |
| 10043 | always_export_symbols_CXX=yes |
| 10044 | # Exported symbols can be pulled into shared objects from archives |
| 10045 | whole_archive_flag_spec_CXX=' ' |
| 10046 | archive_cmds_need_lc_CXX=yes |
| 10047 | # This is similar to how AIX traditionally builds it's shared libraries. |
| 10048 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 10049 | fi |
| 10050 | fi |
| 10051 | ;; |
| 10052 | chorus*) |
| 10053 | case $cc_basename in |
| 10054 | *) |
| 10055 | # FIXME: insert proper C++ library support |
| 10056 | ld_shlibs_CXX=no |
| 10057 | ;; |
| 10058 | esac |
| 10059 | ;; |
| 10060 | |
| 10061 | cygwin* | mingw* | pw32*) |
| 10062 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 10063 | # as there is no search path for DLLs. |
| 10064 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 10065 | allow_undefined_flag_CXX=unsupported |
| 10066 | always_export_symbols_CXX=no |
| 10067 | enable_shared_with_static_runtimes_CXX=yes |
| 10068 | |
| 10069 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 10070 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 10071 | # If the export-symbols file already is a .def file (1st line |
| 10072 | # is EXPORTS), use it as is; otherwise, prepend... |
| 10073 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 10074 | cp $export_symbols $output_objdir/$soname.def; |
| 10075 | else |
| 10076 | echo EXPORTS > $output_objdir/$soname.def; |
| 10077 | cat $export_symbols >> $output_objdir/$soname.def; |
| 10078 | fi~ |
| 10079 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 10080 | else |
| 10081 | ld_shlibs_CXX=no |
| 10082 | fi |
| 10083 | ;; |
| 10084 | |
| 10085 | darwin* | rhapsody*) |
| 10086 | if test "$GXX" = yes; then |
| 10087 | archive_cmds_need_lc_CXX=no |
| 10088 | case "$host_os" in |
| 10089 | rhapsody* | darwin1.[012]) |
| 10090 | allow_undefined_flag_CXX='-undefined suppress' |
| 10091 | ;; |
| 10092 | *) # Darwin 1.3 on |
| 10093 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 10094 | allow_undefined_flag_CXX='-flat_namespace -undefined suppress' |
| 10095 | else |
| 10096 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 10097 | 10.[012]) |
| 10098 | allow_undefined_flag_CXX='-flat_namespace -undefined suppress' |
| 10099 | ;; |
| 10100 | 10.*) |
| 10101 | allow_undefined_flag_CXX='-undefined dynamic_lookup' |
| 10102 | ;; |
| 10103 | esac |
| 10104 | fi |
| 10105 | ;; |
| 10106 | esac |
| 10107 | lt_int_apple_cc_single_mod=no |
| 10108 | output_verbose_link_cmd='echo' |
| 10109 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
| 10110 | lt_int_apple_cc_single_mod=yes |
| 10111 | fi |
| 10112 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 10113 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 10114 | else |
| 10115 | archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 10116 | fi |
| 10117 | module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 10118 | |
| 10119 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 10120 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 10121 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 10122 | else |
| 10123 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 10124 | fi |
| 10125 | module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 10126 | hardcode_direct_CXX=no |
| 10127 | hardcode_automatic_CXX=yes |
| 10128 | hardcode_shlibpath_var_CXX=unsupported |
| 10129 | whole_archive_flag_spec_CXX='-all_load $convenience' |
| 10130 | link_all_deplibs_CXX=yes |
| 10131 | else |
| 10132 | ld_shlibs_CXX=no |
| 10133 | fi |
| 10134 | ;; |
| 10135 | |
| 10136 | dgux*) |
| 10137 | case $cc_basename in |
| 10138 | ec++) |
| 10139 | # FIXME: insert proper C++ library support |
| 10140 | ld_shlibs_CXX=no |
| 10141 | ;; |
| 10142 | ghcx) |
| 10143 | # Green Hills C++ Compiler |
| 10144 | # FIXME: insert proper C++ library support |
| 10145 | ld_shlibs_CXX=no |
| 10146 | ;; |
| 10147 | *) |
| 10148 | # FIXME: insert proper C++ library support |
| 10149 | ld_shlibs_CXX=no |
| 10150 | ;; |
| 10151 | esac |
| 10152 | ;; |
| 10153 | freebsd12*) |
| 10154 | # C++ shared libraries reported to be fairly broken before switch to ELF |
| 10155 | ld_shlibs_CXX=no |
| 10156 | ;; |
| 10157 | freebsd-elf*) |
| 10158 | archive_cmds_need_lc_CXX=no |
| 10159 | ;; |
| 10160 | freebsd* | kfreebsd*-gnu) |
| 10161 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 10162 | # conventions |
| 10163 | ld_shlibs_CXX=yes |
| 10164 | ;; |
| 10165 | gnu*) |
| 10166 | ;; |
| 10167 | hpux9*) |
| 10168 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 10169 | hardcode_libdir_separator_CXX=: |
| 10170 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 10171 | hardcode_direct_CXX=yes |
| 10172 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 10173 | # but as the default |
| 10174 | # location of the library. |
| 10175 | |
| 10176 | case $cc_basename in |
| 10177 | CC) |
| 10178 | # FIXME: insert proper C++ library support |
| 10179 | ld_shlibs_CXX=no |
| 10180 | ;; |
| 10181 | aCC) |
| 10182 | archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 10183 | # Commands to make compiler produce verbose output that lists |
| 10184 | # what "hidden" libraries, object files and flags are used when |
| 10185 | # linking a shared library. |
| 10186 | # |
| 10187 | # There doesn't appear to be a way to prevent this compiler from |
| 10188 | # explicitly linking system object files so we need to strip them |
| 10189 | # from the output so that they don't get included in the library |
| 10190 | # dependencies. |
| 10191 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| 10192 | ;; |
| 10193 | *) |
| 10194 | if test "$GXX" = yes; then |
| 10195 | archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 10196 | else |
| 10197 | # FIXME: insert proper C++ library support |
| 10198 | ld_shlibs_CXX=no |
| 10199 | fi |
| 10200 | ;; |
| 10201 | esac |
| 10202 | ;; |
| 10203 | hpux10*|hpux11*) |
| 10204 | if test $with_gnu_ld = no; then |
| 10205 | case "$host_cpu" in |
| 10206 | hppa*64*) |
| 10207 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 10208 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
| 10209 | hardcode_libdir_separator_CXX=: |
| 10210 | ;; |
| 10211 | ia64*) |
| 10212 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 10213 | ;; |
| 10214 | *) |
| 10215 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 10216 | hardcode_libdir_separator_CXX=: |
| 10217 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 10218 | ;; |
| 10219 | esac |
| 10220 | fi |
| 10221 | case "$host_cpu" in |
| 10222 | hppa*64*) |
| 10223 | hardcode_direct_CXX=no |
| 10224 | hardcode_shlibpath_var_CXX=no |
| 10225 | ;; |
| 10226 | ia64*) |
| 10227 | hardcode_direct_CXX=no |
| 10228 | hardcode_shlibpath_var_CXX=no |
| 10229 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 10230 | # but as the default |
| 10231 | # location of the library. |
| 10232 | ;; |
| 10233 | *) |
| 10234 | hardcode_direct_CXX=yes |
| 10235 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 10236 | # but as the default |
| 10237 | # location of the library. |
| 10238 | ;; |
| 10239 | esac |
| 10240 | |
| 10241 | case $cc_basename in |
| 10242 | CC) |
| 10243 | # FIXME: insert proper C++ library support |
| 10244 | ld_shlibs_CXX=no |
| 10245 | ;; |
| 10246 | aCC) |
| 10247 | case "$host_cpu" in |
| 10248 | hppa*64*|ia64*) |
| 10249 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
| 10250 | ;; |
| 10251 | *) |
| 10252 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 10253 | ;; |
| 10254 | esac |
| 10255 | # Commands to make compiler produce verbose output that lists |
| 10256 | # what "hidden" libraries, object files and flags are used when |
| 10257 | # linking a shared library. |
| 10258 | # |
| 10259 | # There doesn't appear to be a way to prevent this compiler from |
| 10260 | # explicitly linking system object files so we need to strip them |
| 10261 | # from the output so that they don't get included in the library |
| 10262 | # dependencies. |
| 10263 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| 10264 | ;; |
| 10265 | *) |
| 10266 | if test "$GXX" = yes; then |
| 10267 | if test $with_gnu_ld = no; then |
| 10268 | case "$host_cpu" in |
| 10269 | ia64*|hppa*64*) |
| 10270 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
| 10271 | ;; |
| 10272 | *) |
| 10273 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 10274 | ;; |
| 10275 | esac |
| 10276 | fi |
| 10277 | else |
| 10278 | # FIXME: insert proper C++ library support |
| 10279 | ld_shlibs_CXX=no |
| 10280 | fi |
| 10281 | ;; |
| 10282 | esac |
| 10283 | ;; |
| 10284 | irix5* | irix6*) |
| 10285 | case $cc_basename in |
| 10286 | CC) |
| 10287 | # SGI C++ |
| 10288 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' |
| 10289 | |
| 10290 | # Archives containing C++ object files must be created using |
| 10291 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 10292 | # necessary to make sure instantiated templates are included |
| 10293 | # in the archive. |
| 10294 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 10295 | ;; |
| 10296 | *) |
| 10297 | if test "$GXX" = yes; then |
| 10298 | if test "$with_gnu_ld" = no; then |
| 10299 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' |
| 10300 | else |
| 10301 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' |
| 10302 | fi |
| 10303 | fi |
| 10304 | link_all_deplibs_CXX=yes |
| 10305 | ;; |
| 10306 | esac |
| 10307 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 10308 | hardcode_libdir_separator_CXX=: |
| 10309 | ;; |
| 10310 | linux*) |
| 10311 | case $cc_basename in |
| 10312 | KCC) |
| 10313 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 10314 | |
| 10315 | # KCC will only create a shared library if the output file |
| 10316 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 10317 | # to its proper name (with version) after linking. |
| 10318 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
| 10319 | archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' |
| 10320 | # Commands to make compiler produce verbose output that lists |
| 10321 | # what "hidden" libraries, object files and flags are used when |
| 10322 | # linking a shared library. |
| 10323 | # |
| 10324 | # There doesn't appear to be a way to prevent this compiler from |
| 10325 | # explicitly linking system object files so we need to strip them |
| 10326 | # from the output so that they don't get included in the library |
| 10327 | # dependencies. |
| 10328 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| 10329 | |
| 10330 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
| 10331 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 10332 | |
| 10333 | # Archives containing C++ object files must be created using |
| 10334 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 10335 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 10336 | ;; |
| 10337 | icpc) |
| 10338 | # Intel C++ |
| 10339 | with_gnu_ld=yes |
| 10340 | archive_cmds_need_lc_CXX=no |
| 10341 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 10342 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 10343 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 10344 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 10345 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 10346 | ;; |
| 10347 | cxx) |
| 10348 | # Compaq C++ |
| 10349 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 10350 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' |
| 10351 | |
| 10352 | runpath_var=LD_RUN_PATH |
| 10353 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 10354 | hardcode_libdir_separator_CXX=: |
| 10355 | |
| 10356 | # Commands to make compiler produce verbose output that lists |
| 10357 | # what "hidden" libraries, object files and flags are used when |
| 10358 | # linking a shared library. |
| 10359 | # |
| 10360 | # There doesn't appear to be a way to prevent this compiler from |
| 10361 | # explicitly linking system object files so we need to strip them |
| 10362 | # from the output so that they don't get included in the library |
| 10363 | # dependencies. |
| 10364 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| 10365 | ;; |
| 10366 | esac |
| 10367 | ;; |
| 10368 | lynxos*) |
| 10369 | # FIXME: insert proper C++ library support |
| 10370 | ld_shlibs_CXX=no |
| 10371 | ;; |
| 10372 | m88k*) |
| 10373 | # FIXME: insert proper C++ library support |
| 10374 | ld_shlibs_CXX=no |
| 10375 | ;; |
| 10376 | mvs*) |
| 10377 | case $cc_basename in |
| 10378 | cxx) |
| 10379 | # FIXME: insert proper C++ library support |
| 10380 | ld_shlibs_CXX=no |
| 10381 | ;; |
| 10382 | *) |
| 10383 | # FIXME: insert proper C++ library support |
| 10384 | ld_shlibs_CXX=no |
| 10385 | ;; |
| 10386 | esac |
| 10387 | ;; |
| 10388 | netbsd*) |
| 10389 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 10390 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 10391 | wlarc= |
| 10392 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 10393 | hardcode_direct_CXX=yes |
| 10394 | hardcode_shlibpath_var_CXX=no |
| 10395 | fi |
| 10396 | # Workaround some broken pre-1.5 toolchains |
| 10397 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 10398 | ;; |
| 10399 | osf3*) |
| 10400 | case $cc_basename in |
| 10401 | KCC) |
| 10402 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 10403 | |
| 10404 | # KCC will only create a shared library if the output file |
| 10405 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 10406 | # to its proper name (with version) after linking. |
| 10407 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
| 10408 | |
| 10409 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 10410 | hardcode_libdir_separator_CXX=: |
| 10411 | |
| 10412 | # Archives containing C++ object files must be created using |
| 10413 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 10414 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 10415 | |
| 10416 | ;; |
| 10417 | RCC) |
| 10418 | # Rational C++ 2.4.1 |
| 10419 | # FIXME: insert proper C++ library support |
| 10420 | ld_shlibs_CXX=no |
| 10421 | ;; |
| 10422 | cxx) |
| 10423 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 10424 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' |
| 10425 | |
| 10426 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 10427 | hardcode_libdir_separator_CXX=: |
| 10428 | |
| 10429 | # Commands to make compiler produce verbose output that lists |
| 10430 | # what "hidden" libraries, object files and flags are used when |
| 10431 | # linking a shared library. |
| 10432 | # |
| 10433 | # There doesn't appear to be a way to prevent this compiler from |
| 10434 | # explicitly linking system object files so we need to strip them |
| 10435 | # from the output so that they don't get included in the library |
| 10436 | # dependencies. |
| 10437 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| 10438 | ;; |
| 10439 | *) |
| 10440 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 10441 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 10442 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' |
| 10443 | |
| 10444 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 10445 | hardcode_libdir_separator_CXX=: |
| 10446 | |
| 10447 | # Commands to make compiler produce verbose output that lists |
| 10448 | # what "hidden" libraries, object files and flags are used when |
| 10449 | # linking a shared library. |
| 10450 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 10451 | |
| 10452 | else |
| 10453 | # FIXME: insert proper C++ library support |
| 10454 | ld_shlibs_CXX=no |
| 10455 | fi |
| 10456 | ;; |
| 10457 | esac |
| 10458 | ;; |
| 10459 | osf4* | osf5*) |
| 10460 | case $cc_basename in |
| 10461 | KCC) |
| 10462 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 10463 | |
| 10464 | # KCC will only create a shared library if the output file |
| 10465 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 10466 | # to its proper name (with version) after linking. |
| 10467 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
| 10468 | |
| 10469 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 10470 | hardcode_libdir_separator_CXX=: |
| 10471 | |
| 10472 | # Archives containing C++ object files must be created using |
| 10473 | # the KAI C++ compiler. |
| 10474 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
| 10475 | ;; |
| 10476 | RCC) |
| 10477 | # Rational C++ 2.4.1 |
| 10478 | # FIXME: insert proper C++ library support |
| 10479 | ld_shlibs_CXX=no |
| 10480 | ;; |
| 10481 | cxx) |
| 10482 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
| 10483 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' |
| 10484 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 10485 | echo "-hidden">> $lib.exp~ |
| 10486 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~ |
| 10487 | $rm $lib.exp' |
| 10488 | |
| 10489 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 10490 | hardcode_libdir_separator_CXX=: |
| 10491 | |
| 10492 | # Commands to make compiler produce verbose output that lists |
| 10493 | # what "hidden" libraries, object files and flags are used when |
| 10494 | # linking a shared library. |
| 10495 | # |
| 10496 | # There doesn't appear to be a way to prevent this compiler from |
| 10497 | # explicitly linking system object files so we need to strip them |
| 10498 | # from the output so that they don't get included in the library |
| 10499 | # dependencies. |
| 10500 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| 10501 | ;; |
| 10502 | *) |
| 10503 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 10504 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 10505 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' |
| 10506 | |
| 10507 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 10508 | hardcode_libdir_separator_CXX=: |
| 10509 | |
| 10510 | # Commands to make compiler produce verbose output that lists |
| 10511 | # what "hidden" libraries, object files and flags are used when |
| 10512 | # linking a shared library. |
| 10513 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 10514 | |
| 10515 | else |
| 10516 | # FIXME: insert proper C++ library support |
| 10517 | ld_shlibs_CXX=no |
| 10518 | fi |
| 10519 | ;; |
| 10520 | esac |
| 10521 | ;; |
| 10522 | psos*) |
| 10523 | # FIXME: insert proper C++ library support |
| 10524 | ld_shlibs_CXX=no |
| 10525 | ;; |
| 10526 | sco*) |
| 10527 | archive_cmds_need_lc_CXX=no |
| 10528 | case $cc_basename in |
| 10529 | CC) |
| 10530 | # FIXME: insert proper C++ library support |
| 10531 | ld_shlibs_CXX=no |
| 10532 | ;; |
| 10533 | *) |
| 10534 | # FIXME: insert proper C++ library support |
| 10535 | ld_shlibs_CXX=no |
| 10536 | ;; |
| 10537 | esac |
| 10538 | ;; |
| 10539 | sunos4*) |
| 10540 | case $cc_basename in |
| 10541 | CC) |
| 10542 | # Sun C++ 4.x |
| 10543 | # FIXME: insert proper C++ library support |
| 10544 | ld_shlibs_CXX=no |
| 10545 | ;; |
| 10546 | lcc) |
| 10547 | # Lucid |
| 10548 | # FIXME: insert proper C++ library support |
| 10549 | ld_shlibs_CXX=no |
| 10550 | ;; |
| 10551 | *) |
| 10552 | # FIXME: insert proper C++ library support |
| 10553 | ld_shlibs_CXX=no |
| 10554 | ;; |
| 10555 | esac |
| 10556 | ;; |
| 10557 | solaris*) |
| 10558 | case $cc_basename in |
| 10559 | CC) |
| 10560 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 10561 | no_undefined_flag_CXX=' -zdefs' |
| 10562 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 10563 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 10564 | $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 10565 | |
| 10566 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 10567 | hardcode_shlibpath_var_CXX=no |
| 10568 | case $host_os in |
| 10569 | solaris2.0-5 | solaris2.0-5.*) ;; |
| 10570 | *) |
| 10571 | # The C++ compiler is used as linker so we must use $wl |
| 10572 | # flag to pass the commands to the underlying system |
| 10573 | # linker. |
| 10574 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 10575 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 10576 | ;; |
| 10577 | esac |
| 10578 | link_all_deplibs_CXX=yes |
| 10579 | |
| 10580 | # Commands to make compiler produce verbose output that lists |
| 10581 | # what "hidden" libraries, object files and flags are used when |
| 10582 | # linking a shared library. |
| 10583 | # |
| 10584 | # There doesn't appear to be a way to prevent this compiler from |
| 10585 | # explicitly linking system object files so we need to strip them |
| 10586 | # from the output so that they don't get included in the library |
| 10587 | # dependencies. |
| 10588 | output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| 10589 | |
| 10590 | # Archives containing C++ object files must be created using |
| 10591 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 10592 | # necessary to make sure instantiated templates are included |
| 10593 | # in the archive. |
| 10594 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 10595 | ;; |
| 10596 | gcx) |
| 10597 | # Green Hills C++ Compiler |
| 10598 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 10599 | |
| 10600 | # The C++ compiler must be used to create the archive. |
| 10601 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 10602 | ;; |
| 10603 | *) |
| 10604 | # GNU C++ compiler with Solaris linker |
| 10605 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 10606 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 10607 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
| 10608 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 10609 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 10610 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 10611 | |
| 10612 | # Commands to make compiler produce verbose output that lists |
| 10613 | # what "hidden" libraries, object files and flags are used when |
| 10614 | # linking a shared library. |
| 10615 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 10616 | else |
| 10617 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 10618 | # platform. |
| 10619 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 10620 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 10621 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 10622 | |
| 10623 | # Commands to make compiler produce verbose output that lists |
| 10624 | # what "hidden" libraries, object files and flags are used when |
| 10625 | # linking a shared library. |
| 10626 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 10627 | fi |
| 10628 | |
| 10629 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 10630 | fi |
| 10631 | ;; |
| 10632 | esac |
| 10633 | ;; |
| 10634 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 10635 | archive_cmds_need_lc_CXX=no |
| 10636 | ;; |
| 10637 | tandem*) |
| 10638 | case $cc_basename in |
| 10639 | NCC) |
| 10640 | # NonStop-UX NCC 3.20 |
| 10641 | # FIXME: insert proper C++ library support |
| 10642 | ld_shlibs_CXX=no |
| 10643 | ;; |
| 10644 | *) |
| 10645 | # FIXME: insert proper C++ library support |
| 10646 | ld_shlibs_CXX=no |
| 10647 | ;; |
| 10648 | esac |
| 10649 | ;; |
| 10650 | vxworks*) |
| 10651 | # FIXME: insert proper C++ library support |
| 10652 | ld_shlibs_CXX=no |
| 10653 | ;; |
| 10654 | *) |
| 10655 | # FIXME: insert proper C++ library support |
| 10656 | ld_shlibs_CXX=no |
| 10657 | ;; |
| 10658 | esac |
| 10659 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 10660 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
| 10661 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 10662 | |
| 10663 | GCC_CXX="$GXX" |
| 10664 | LD_CXX="$LD" |
| 10665 | |
| 10666 | |
| 10667 | cat > conftest.$ac_ext <<EOF |
| 10668 | class Foo |
| 10669 | { |
| 10670 | public: |
| 10671 | Foo (void) { a = 0; } |
| 10672 | private: |
| 10673 | int a; |
| 10674 | }; |
| 10675 | EOF |
| 10676 | |
| 10677 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10678 | (eval $ac_compile) 2>&5 |
| 10679 | ac_status=$? |
| 10680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10681 | (exit $ac_status); }; then |
| 10682 | # Parse the compiler output and extract the necessary |
| 10683 | # objects, libraries and library flags. |
| 10684 | |
| 10685 | # Sentinel used to keep track of whether or not we are before |
| 10686 | # the conftest object file. |
| 10687 | pre_test_object_deps_done=no |
| 10688 | |
| 10689 | # The `*' in the case matches for architectures that use `case' in |
| 10690 | # $output_verbose_cmd can trigger glob expansion during the loop |
| 10691 | # eval without this substitution. |
| 10692 | output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" |
| 10693 | |
| 10694 | for p in `eval $output_verbose_link_cmd`; do |
| 10695 | case $p in |
| 10696 | |
| 10697 | -L* | -R* | -l*) |
| 10698 | # Some compilers place space between "-{L,R}" and the path. |
| 10699 | # Remove the space. |
| 10700 | if test $p = "-L" \ |
| 10701 | || test $p = "-R"; then |
| 10702 | prev=$p |
| 10703 | continue |
| 10704 | else |
| 10705 | prev= |
| 10706 | fi |
| 10707 | |
| 10708 | if test "$pre_test_object_deps_done" = no; then |
| 10709 | case $p in |
| 10710 | -L* | -R*) |
| 10711 | # Internal compiler library paths should come after those |
| 10712 | # provided the user. The postdeps already come after the |
| 10713 | # user supplied libs so there is no need to process them. |
| 10714 | if test -z "$compiler_lib_search_path_CXX"; then |
| 10715 | compiler_lib_search_path_CXX="${prev}${p}" |
| 10716 | else |
| 10717 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 10718 | fi |
| 10719 | ;; |
| 10720 | # The "-l" case would never come before the object being |
| 10721 | # linked, so don't bother handling this case. |
| 10722 | esac |
| 10723 | else |
| 10724 | if test -z "$postdeps_CXX"; then |
| 10725 | postdeps_CXX="${prev}${p}" |
| 10726 | else |
| 10727 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 10728 | fi |
| 10729 | fi |
| 10730 | ;; |
| 10731 | |
| 10732 | *.$objext) |
| 10733 | # This assumes that the test object file only shows up |
| 10734 | # once in the compiler output. |
| 10735 | if test "$p" = "conftest.$objext"; then |
| 10736 | pre_test_object_deps_done=yes |
| 10737 | continue |
| 10738 | fi |
| 10739 | |
| 10740 | if test "$pre_test_object_deps_done" = no; then |
| 10741 | if test -z "$predep_objects_CXX"; then |
| 10742 | predep_objects_CXX="$p" |
| 10743 | else |
| 10744 | predep_objects_CXX="$predep_objects_CXX $p" |
| 10745 | fi |
| 10746 | else |
| 10747 | if test -z "$postdep_objects_CXX"; then |
| 10748 | postdep_objects_CXX="$p" |
| 10749 | else |
| 10750 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 10751 | fi |
| 10752 | fi |
| 10753 | ;; |
| 10754 | |
| 10755 | *) ;; # Ignore the rest. |
| 10756 | |
| 10757 | esac |
| 10758 | done |
| 10759 | |
| 10760 | # Clean up. |
| 10761 | rm -f a.out a.exe |
| 10762 | else |
| 10763 | echo "libtool.m4: error: problem compiling CXX test program" |
| 10764 | fi |
| 10765 | |
| 10766 | $rm -f confest.$objext |
| 10767 | |
| 10768 | case " $postdeps_CXX " in |
| 10769 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 10770 | esac |
| 10771 | |
| 10772 | lt_prog_compiler_wl_CXX= |
| 10773 | lt_prog_compiler_pic_CXX= |
| 10774 | lt_prog_compiler_static_CXX= |
| 10775 | |
| 10776 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 10777 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 10778 | |
| 10779 | # C++ specific cases for pic, static, wl, etc. |
| 10780 | if test "$GXX" = yes; then |
| 10781 | lt_prog_compiler_wl_CXX='-Wl,' |
| 10782 | lt_prog_compiler_static_CXX='-static' |
| 10783 | |
| 10784 | case $host_os in |
| 10785 | aix*) |
| 10786 | # All AIX code is PIC. |
| 10787 | if test "$host_cpu" = ia64; then |
| 10788 | # AIX 5 now supports IA64 processor |
| 10789 | lt_prog_compiler_static_CXX='-Bstatic' |
| 10790 | fi |
| 10791 | ;; |
| 10792 | amigaos*) |
| 10793 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 10794 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 10795 | # like `-m68040'. |
| 10796 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 10797 | ;; |
| 10798 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 10799 | # PIC is the default for these OSes. |
| 10800 | ;; |
| 10801 | mingw* | os2* | pw32*) |
| 10802 | # This hack is so that the source file can tell whether it is being |
| 10803 | # built for inclusion in a dll (and should export symbols for example). |
| 10804 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 10805 | ;; |
| 10806 | darwin* | rhapsody*) |
| 10807 | # PIC is the default on this platform |
| 10808 | # Common symbols not allowed in MH_DYLIB files |
| 10809 | lt_prog_compiler_pic_CXX='-fno-common' |
| 10810 | ;; |
| 10811 | *djgpp*) |
| 10812 | # DJGPP does not support shared libraries at all |
| 10813 | lt_prog_compiler_pic_CXX= |
| 10814 | ;; |
| 10815 | sysv4*MP*) |
| 10816 | if test -d /usr/nec; then |
| 10817 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 10818 | fi |
| 10819 | ;; |
| 10820 | hpux*) |
| 10821 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 10822 | # not for PA HP-UX. |
| 10823 | case "$host_cpu" in |
| 10824 | hppa*64*|ia64*) |
| 10825 | ;; |
| 10826 | *) |
| 10827 | lt_prog_compiler_pic_CXX='-fPIC' |
| 10828 | ;; |
| 10829 | esac |
| 10830 | ;; |
| 10831 | *) |
| 10832 | lt_prog_compiler_pic_CXX='-fPIC' |
| 10833 | ;; |
| 10834 | esac |
| 10835 | else |
| 10836 | case $host_os in |
| 10837 | aix4* | aix5*) |
| 10838 | # All AIX code is PIC. |
| 10839 | if test "$host_cpu" = ia64; then |
| 10840 | # AIX 5 now supports IA64 processor |
| 10841 | lt_prog_compiler_static_CXX='-Bstatic' |
| 10842 | else |
| 10843 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 10844 | fi |
| 10845 | ;; |
| 10846 | chorus*) |
| 10847 | case $cc_basename in |
| 10848 | cxch68) |
| 10849 | # Green Hills C++ Compiler |
| 10850 | # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" |
| 10851 | ;; |
| 10852 | esac |
| 10853 | ;; |
| 10854 | dgux*) |
| 10855 | case $cc_basename in |
| 10856 | ec++) |
| 10857 | lt_prog_compiler_pic_CXX='-KPIC' |
| 10858 | ;; |
| 10859 | ghcx) |
| 10860 | # Green Hills C++ Compiler |
| 10861 | lt_prog_compiler_pic_CXX='-pic' |
| 10862 | ;; |
| 10863 | *) |
| 10864 | ;; |
| 10865 | esac |
| 10866 | ;; |
| 10867 | freebsd* | kfreebsd*-gnu) |
| 10868 | # FreeBSD uses GNU C++ |
| 10869 | ;; |
| 10870 | hpux9* | hpux10* | hpux11*) |
| 10871 | case $cc_basename in |
| 10872 | CC) |
| 10873 | lt_prog_compiler_wl_CXX='-Wl,' |
| 10874 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
| 10875 | if test "$host_cpu" != ia64; then |
| 10876 | lt_prog_compiler_pic_CXX='+Z' |
| 10877 | fi |
| 10878 | ;; |
| 10879 | aCC) |
| 10880 | lt_prog_compiler_wl_CXX='-Wl,' |
| 10881 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
| 10882 | case "$host_cpu" in |
| 10883 | hppa*64*|ia64*) |
| 10884 | # +Z the default |
| 10885 | ;; |
| 10886 | *) |
| 10887 | lt_prog_compiler_pic_CXX='+Z' |
| 10888 | ;; |
| 10889 | esac |
| 10890 | ;; |
| 10891 | *) |
| 10892 | ;; |
| 10893 | esac |
| 10894 | ;; |
| 10895 | irix5* | irix6* | nonstopux*) |
| 10896 | case $cc_basename in |
| 10897 | CC) |
| 10898 | lt_prog_compiler_wl_CXX='-Wl,' |
| 10899 | lt_prog_compiler_static_CXX='-non_shared' |
| 10900 | # CC pic flag -KPIC is the default. |
| 10901 | ;; |
| 10902 | *) |
| 10903 | ;; |
| 10904 | esac |
| 10905 | ;; |
| 10906 | linux*) |
| 10907 | case $cc_basename in |
| 10908 | KCC) |
| 10909 | # KAI C++ Compiler |
| 10910 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 10911 | lt_prog_compiler_pic_CXX='-fPIC' |
| 10912 | ;; |
| 10913 | icpc) |
| 10914 | # Intel C++ |
| 10915 | lt_prog_compiler_wl_CXX='-Wl,' |
| 10916 | lt_prog_compiler_pic_CXX='-KPIC' |
| 10917 | lt_prog_compiler_static_CXX='-static' |
| 10918 | ;; |
| 10919 | cxx) |
| 10920 | # Compaq C++ |
| 10921 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 10922 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 10923 | lt_prog_compiler_pic_CXX= |
| 10924 | lt_prog_compiler_static_CXX='-non_shared' |
| 10925 | ;; |
| 10926 | *) |
| 10927 | ;; |
| 10928 | esac |
| 10929 | ;; |
| 10930 | lynxos*) |
| 10931 | ;; |
| 10932 | m88k*) |
| 10933 | ;; |
| 10934 | mvs*) |
| 10935 | case $cc_basename in |
| 10936 | cxx) |
| 10937 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 10938 | ;; |
| 10939 | *) |
| 10940 | ;; |
| 10941 | esac |
| 10942 | ;; |
| 10943 | netbsd*) |
| 10944 | ;; |
| 10945 | osf3* | osf4* | osf5*) |
| 10946 | case $cc_basename in |
| 10947 | KCC) |
| 10948 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 10949 | ;; |
| 10950 | RCC) |
| 10951 | # Rational C++ 2.4.1 |
| 10952 | lt_prog_compiler_pic_CXX='-pic' |
| 10953 | ;; |
| 10954 | cxx) |
| 10955 | # Digital/Compaq C++ |
| 10956 | lt_prog_compiler_wl_CXX='-Wl,' |
| 10957 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 10958 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 10959 | lt_prog_compiler_pic_CXX= |
| 10960 | lt_prog_compiler_static_CXX='-non_shared' |
| 10961 | ;; |
| 10962 | *) |
| 10963 | ;; |
| 10964 | esac |
| 10965 | ;; |
| 10966 | psos*) |
| 10967 | ;; |
| 10968 | sco*) |
| 10969 | case $cc_basename in |
| 10970 | CC) |
| 10971 | lt_prog_compiler_pic_CXX='-fPIC' |
| 10972 | ;; |
| 10973 | *) |
| 10974 | ;; |
| 10975 | esac |
| 10976 | ;; |
| 10977 | solaris*) |
| 10978 | case $cc_basename in |
| 10979 | CC) |
| 10980 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 10981 | lt_prog_compiler_pic_CXX='-KPIC' |
| 10982 | lt_prog_compiler_static_CXX='-Bstatic' |
| 10983 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 10984 | ;; |
| 10985 | gcx) |
| 10986 | # Green Hills C++ Compiler |
| 10987 | lt_prog_compiler_pic_CXX='-PIC' |
| 10988 | ;; |
| 10989 | *) |
| 10990 | ;; |
| 10991 | esac |
| 10992 | ;; |
| 10993 | sunos4*) |
| 10994 | case $cc_basename in |
| 10995 | CC) |
| 10996 | # Sun C++ 4.x |
| 10997 | lt_prog_compiler_pic_CXX='-pic' |
| 10998 | lt_prog_compiler_static_CXX='-Bstatic' |
| 10999 | ;; |
| 11000 | lcc) |
| 11001 | # Lucid |
| 11002 | lt_prog_compiler_pic_CXX='-pic' |
| 11003 | ;; |
| 11004 | *) |
| 11005 | ;; |
| 11006 | esac |
| 11007 | ;; |
| 11008 | tandem*) |
| 11009 | case $cc_basename in |
| 11010 | NCC) |
| 11011 | # NonStop-UX NCC 3.20 |
| 11012 | lt_prog_compiler_pic_CXX='-KPIC' |
| 11013 | ;; |
| 11014 | *) |
| 11015 | ;; |
| 11016 | esac |
| 11017 | ;; |
| 11018 | unixware*) |
| 11019 | ;; |
| 11020 | vxworks*) |
| 11021 | ;; |
| 11022 | *) |
| 11023 | lt_prog_compiler_can_build_shared_CXX=no |
| 11024 | ;; |
| 11025 | esac |
| 11026 | fi |
| 11027 | |
| 11028 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
| 11029 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 |
| 11030 | |
| 11031 | # |
| 11032 | # Check to make sure the PIC flag actually works. |
| 11033 | # |
| 11034 | if test -n "$lt_prog_compiler_pic_CXX"; then |
| 11035 | |
| 11036 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 11037 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 |
| 11038 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
| 11039 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11040 | else |
| 11041 | lt_prog_compiler_pic_works_CXX=no |
| 11042 | ac_outfile=conftest.$ac_objext |
| 11043 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 11044 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 11045 | # Insert the option either (1) after the last *FLAGS variable, or |
| 11046 | # (2) before a word containing "conftest.", or (3) at the end. |
| 11047 | # Note that $ac_compile itself does not contain backslashes and begins |
| 11048 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 11049 | # The option is referenced via a variable to avoid confusing sed. |
| 11050 | lt_compile=`echo "$ac_compile" | $SED \ |
| 11051 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 11052 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 11053 | -e 's:$: $lt_compiler_flag:'` |
Lev Walkin | 33cded1 | 2004-09-19 19:40:52 +0000 | [diff] [blame] | 11054 | (eval echo "\"\$as_me:11054: $lt_compile\"" >&5) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11055 | (eval "$lt_compile" 2>conftest.err) |
| 11056 | ac_status=$? |
| 11057 | cat conftest.err >&5 |
Lev Walkin | 33cded1 | 2004-09-19 19:40:52 +0000 | [diff] [blame] | 11058 | echo "$as_me:11058: \$? = $ac_status" >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11059 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 11060 | # The compiler can only warn and ignore the option if not recognized |
| 11061 | # So say no if there are warnings |
| 11062 | if test ! -s conftest.err; then |
| 11063 | lt_prog_compiler_pic_works_CXX=yes |
| 11064 | fi |
| 11065 | fi |
| 11066 | $rm conftest* |
| 11067 | |
| 11068 | fi |
| 11069 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
| 11070 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 |
| 11071 | |
| 11072 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
| 11073 | case $lt_prog_compiler_pic_CXX in |
| 11074 | "" | " "*) ;; |
| 11075 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 11076 | esac |
| 11077 | else |
| 11078 | lt_prog_compiler_pic_CXX= |
| 11079 | lt_prog_compiler_can_build_shared_CXX=no |
| 11080 | fi |
| 11081 | |
| 11082 | fi |
| 11083 | case "$host_os" in |
| 11084 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 11085 | *djgpp*) |
| 11086 | lt_prog_compiler_pic_CXX= |
| 11087 | ;; |
| 11088 | *) |
| 11089 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 11090 | ;; |
| 11091 | esac |
| 11092 | |
| 11093 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 11094 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 11095 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
| 11096 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11097 | else |
| 11098 | lt_cv_prog_compiler_c_o_CXX=no |
| 11099 | $rm -r conftest 2>/dev/null |
| 11100 | mkdir conftest |
| 11101 | cd conftest |
| 11102 | mkdir out |
| 11103 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 11104 | |
| 11105 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 11106 | # Insert the option either (1) after the last *FLAGS variable, or |
| 11107 | # (2) before a word containing "conftest.", or (3) at the end. |
| 11108 | # Note that $ac_compile itself does not contain backslashes and begins |
| 11109 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 11110 | lt_compile=`echo "$ac_compile" | $SED \ |
| 11111 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 11112 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 11113 | -e 's:$: $lt_compiler_flag:'` |
Lev Walkin | 33cded1 | 2004-09-19 19:40:52 +0000 | [diff] [blame] | 11114 | (eval echo "\"\$as_me:11114: $lt_compile\"" >&5) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11115 | (eval "$lt_compile" 2>out/conftest.err) |
| 11116 | ac_status=$? |
| 11117 | cat out/conftest.err >&5 |
Lev Walkin | 33cded1 | 2004-09-19 19:40:52 +0000 | [diff] [blame] | 11118 | echo "$as_me:11118: \$? = $ac_status" >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11119 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 11120 | then |
| 11121 | # The compiler can only warn and ignore the option if not recognized |
| 11122 | # So say no if there are warnings |
| 11123 | if test ! -s out/conftest.err; then |
| 11124 | lt_cv_prog_compiler_c_o_CXX=yes |
| 11125 | fi |
| 11126 | fi |
| 11127 | chmod u+w . |
| 11128 | $rm conftest* |
| 11129 | # SGI C++ compiler will create directory out/ii_files/ for |
| 11130 | # template instantiation |
| 11131 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 11132 | $rm out/* && rmdir out |
| 11133 | cd .. |
| 11134 | rmdir conftest |
| 11135 | $rm conftest* |
| 11136 | |
| 11137 | fi |
| 11138 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 11139 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 |
| 11140 | |
| 11141 | |
| 11142 | hard_links="nottested" |
| 11143 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 11144 | # do not overwrite the value of need_locks provided by the user |
| 11145 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 11146 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 11147 | hard_links=yes |
| 11148 | $rm conftest* |
| 11149 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 11150 | touch conftest.a |
| 11151 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 11152 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 11153 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 11154 | echo "${ECHO_T}$hard_links" >&6 |
| 11155 | if test "$hard_links" = no; then |
| 11156 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 11157 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 11158 | need_locks=warn |
| 11159 | fi |
| 11160 | else |
| 11161 | need_locks=no |
| 11162 | fi |
| 11163 | |
| 11164 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 11165 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 11166 | |
| 11167 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 11168 | case $host_os in |
| 11169 | aix4* | aix5*) |
| 11170 | # If we're using GNU nm, then we don't want the "-C" option. |
| 11171 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 11172 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 11173 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 11174 | else |
| 11175 | export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 11176 | fi |
| 11177 | ;; |
| 11178 | pw32*) |
| 11179 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 11180 | ;; |
| 11181 | cygwin* | mingw*) |
| 11182 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 11183 | ;; |
| 11184 | *) |
| 11185 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 11186 | ;; |
| 11187 | esac |
| 11188 | |
| 11189 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 11190 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
| 11191 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 11192 | |
| 11193 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 11194 | if test "$GCC" = yes; then |
| 11195 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 11196 | fi |
| 11197 | |
| 11198 | # |
| 11199 | # Do we need to explicitly link libc? |
| 11200 | # |
| 11201 | case "x$archive_cmds_need_lc_CXX" in |
| 11202 | x|xyes) |
| 11203 | # Assume -lc should be added |
| 11204 | archive_cmds_need_lc_CXX=yes |
| 11205 | |
| 11206 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 11207 | case $archive_cmds_CXX in |
| 11208 | *'~'*) |
| 11209 | # FIXME: we may have to deal with multi-command sequences. |
| 11210 | ;; |
| 11211 | '$CC '*) |
| 11212 | # Test whether the compiler implicitly links with -lc since on some |
| 11213 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 11214 | # to ld, don't add -lc before -lgcc. |
| 11215 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 11216 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 11217 | $rm conftest* |
| 11218 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 11219 | |
| 11220 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11221 | (eval $ac_compile) 2>&5 |
| 11222 | ac_status=$? |
| 11223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11224 | (exit $ac_status); } 2>conftest.err; then |
| 11225 | soname=conftest |
| 11226 | lib=conftest |
| 11227 | libobjs=conftest.$ac_objext |
| 11228 | deplibs= |
| 11229 | wl=$lt_prog_compiler_wl_CXX |
| 11230 | compiler_flags=-v |
| 11231 | linker_flags=-v |
| 11232 | verstring= |
| 11233 | output_objdir=. |
| 11234 | libname=conftest |
| 11235 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 11236 | allow_undefined_flag_CXX= |
| 11237 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 11238 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 11239 | ac_status=$? |
| 11240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11241 | (exit $ac_status); } |
| 11242 | then |
| 11243 | archive_cmds_need_lc_CXX=no |
| 11244 | else |
| 11245 | archive_cmds_need_lc_CXX=yes |
| 11246 | fi |
| 11247 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 11248 | else |
| 11249 | cat conftest.err 1>&5 |
| 11250 | fi |
| 11251 | $rm conftest* |
| 11252 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
| 11253 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 |
| 11254 | ;; |
| 11255 | esac |
| 11256 | fi |
| 11257 | ;; |
| 11258 | esac |
| 11259 | |
| 11260 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 11261 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 11262 | library_names_spec= |
| 11263 | libname_spec='lib$name' |
| 11264 | soname_spec= |
| 11265 | shrext_cmds=".so" |
| 11266 | postinstall_cmds= |
| 11267 | postuninstall_cmds= |
| 11268 | finish_cmds= |
| 11269 | finish_eval= |
| 11270 | shlibpath_var= |
| 11271 | shlibpath_overrides_runpath=unknown |
| 11272 | version_type=none |
| 11273 | dynamic_linker="$host_os ld.so" |
| 11274 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 11275 | if test "$GCC" = yes; then |
| 11276 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 11277 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 11278 | # if the path contains ";" then we assume it to be the separator |
| 11279 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 11280 | # assumed that no part of a normal pathname contains ";" but that should |
| 11281 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 11282 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 11283 | else |
| 11284 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 11285 | fi |
| 11286 | else |
| 11287 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 11288 | fi |
| 11289 | need_lib_prefix=unknown |
| 11290 | hardcode_into_libs=no |
| 11291 | |
| 11292 | # when you set need_version to no, make sure it does not cause -set_version |
| 11293 | # flags to be left without arguments |
| 11294 | need_version=unknown |
| 11295 | |
| 11296 | case $host_os in |
| 11297 | aix3*) |
| 11298 | version_type=linux |
| 11299 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 11300 | shlibpath_var=LIBPATH |
| 11301 | |
| 11302 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 11303 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11304 | ;; |
| 11305 | |
| 11306 | aix4* | aix5*) |
| 11307 | version_type=linux |
| 11308 | need_lib_prefix=no |
| 11309 | need_version=no |
| 11310 | hardcode_into_libs=yes |
| 11311 | if test "$host_cpu" = ia64; then |
| 11312 | # AIX 5 supports IA64 |
| 11313 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 11314 | shlibpath_var=LD_LIBRARY_PATH |
| 11315 | else |
| 11316 | # With GCC up to 2.95.x, collect2 would create an import file |
| 11317 | # for dependence libraries. The import file would start with |
| 11318 | # the line `#! .'. This would cause the generated library to |
| 11319 | # depend on `.', always an invalid library. This was fixed in |
| 11320 | # development snapshots of GCC prior to 3.0. |
| 11321 | case $host_os in |
| 11322 | aix4 | aix4.[01] | aix4.[01].*) |
| 11323 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 11324 | echo ' yes ' |
| 11325 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 11326 | : |
| 11327 | else |
| 11328 | can_build_shared=no |
| 11329 | fi |
| 11330 | ;; |
| 11331 | esac |
| 11332 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 11333 | # soname into executable. Probably we can add versioning support to |
| 11334 | # collect2, so additional links can be useful in future. |
| 11335 | if test "$aix_use_runtimelinking" = yes; then |
| 11336 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 11337 | # instead of lib<name>.a to let people know that these are not |
| 11338 | # typical AIX shared libraries. |
| 11339 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11340 | else |
| 11341 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 11342 | # and later when we are not doing run time linking. |
| 11343 | library_names_spec='${libname}${release}.a $libname.a' |
| 11344 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11345 | fi |
| 11346 | shlibpath_var=LIBPATH |
| 11347 | fi |
| 11348 | ;; |
| 11349 | |
| 11350 | amigaos*) |
| 11351 | library_names_spec='$libname.ixlibrary $libname.a' |
| 11352 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 11353 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
| 11354 | ;; |
| 11355 | |
| 11356 | beos*) |
| 11357 | library_names_spec='${libname}${shared_ext}' |
| 11358 | dynamic_linker="$host_os ld.so" |
| 11359 | shlibpath_var=LIBRARY_PATH |
| 11360 | ;; |
| 11361 | |
| 11362 | bsdi4*) |
| 11363 | version_type=linux |
| 11364 | need_version=no |
| 11365 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11366 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11367 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 11368 | shlibpath_var=LD_LIBRARY_PATH |
| 11369 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 11370 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 11371 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 11372 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 11373 | # libtool to hard-code these into programs |
| 11374 | ;; |
| 11375 | |
| 11376 | cygwin* | mingw* | pw32*) |
| 11377 | version_type=windows |
| 11378 | shrext_cmds=".dll" |
| 11379 | need_version=no |
| 11380 | need_lib_prefix=no |
| 11381 | |
| 11382 | case $GCC,$host_os in |
| 11383 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 11384 | library_names_spec='$libname.dll.a' |
| 11385 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 11386 | postinstall_cmds='base_file=`basename \${file}`~ |
| 11387 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 11388 | dldir=$destdir/`dirname \$dlpath`~ |
| 11389 | test -d \$dldir || mkdir -p \$dldir~ |
| 11390 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 11391 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 11392 | dlpath=$dir/\$dldll~ |
| 11393 | $rm \$dlpath' |
| 11394 | shlibpath_overrides_runpath=yes |
| 11395 | |
| 11396 | case $host_os in |
| 11397 | cygwin*) |
| 11398 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 11399 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 11400 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 11401 | ;; |
| 11402 | mingw*) |
| 11403 | # MinGW DLLs use traditional 'lib' prefix |
| 11404 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 11405 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 11406 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 11407 | # It is most probably a Windows format PATH printed by |
| 11408 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 11409 | # path with ; separators, and with drive letters. We can handle the |
| 11410 | # drive letters (cygwin fileutils understands them), so leave them, |
| 11411 | # especially as we might pass files found there to a mingw objdump, |
| 11412 | # which wouldn't understand a cygwinified path. Ahh. |
| 11413 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 11414 | else |
| 11415 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 11416 | fi |
| 11417 | ;; |
| 11418 | pw32*) |
| 11419 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 11420 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 11421 | ;; |
| 11422 | esac |
| 11423 | ;; |
| 11424 | |
| 11425 | *) |
| 11426 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 11427 | ;; |
| 11428 | esac |
| 11429 | dynamic_linker='Win32 ld.exe' |
| 11430 | # FIXME: first we should search . and the directory the executable is in |
| 11431 | shlibpath_var=PATH |
| 11432 | ;; |
| 11433 | |
| 11434 | darwin* | rhapsody*) |
| 11435 | dynamic_linker="$host_os dyld" |
| 11436 | version_type=darwin |
| 11437 | need_lib_prefix=no |
| 11438 | need_version=no |
| 11439 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 11440 | soname_spec='${libname}${release}${major}$shared_ext' |
| 11441 | shlibpath_overrides_runpath=yes |
| 11442 | shlibpath_var=DYLD_LIBRARY_PATH |
| 11443 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
| 11444 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 11445 | if test "$GCC" = yes; then |
| 11446 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
| 11447 | else |
| 11448 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 11449 | fi |
| 11450 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 11451 | ;; |
| 11452 | |
| 11453 | dgux*) |
| 11454 | version_type=linux |
| 11455 | need_lib_prefix=no |
| 11456 | need_version=no |
| 11457 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 11458 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11459 | shlibpath_var=LD_LIBRARY_PATH |
| 11460 | ;; |
| 11461 | |
| 11462 | freebsd1*) |
| 11463 | dynamic_linker=no |
| 11464 | ;; |
| 11465 | |
| 11466 | kfreebsd*-gnu) |
| 11467 | version_type=linux |
| 11468 | need_lib_prefix=no |
| 11469 | need_version=no |
| 11470 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 11471 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11472 | shlibpath_var=LD_LIBRARY_PATH |
| 11473 | shlibpath_overrides_runpath=no |
| 11474 | hardcode_into_libs=yes |
| 11475 | dynamic_linker='GNU ld.so' |
| 11476 | ;; |
| 11477 | |
| 11478 | freebsd*) |
| 11479 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 11480 | version_type=freebsd-$objformat |
| 11481 | case $version_type in |
| 11482 | freebsd-elf*) |
| 11483 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 11484 | need_version=no |
| 11485 | need_lib_prefix=no |
| 11486 | ;; |
| 11487 | freebsd-*) |
| 11488 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 11489 | need_version=yes |
| 11490 | ;; |
| 11491 | esac |
| 11492 | shlibpath_var=LD_LIBRARY_PATH |
| 11493 | case $host_os in |
| 11494 | freebsd2*) |
| 11495 | shlibpath_overrides_runpath=yes |
| 11496 | ;; |
| 11497 | freebsd3.01* | freebsdelf3.01*) |
| 11498 | shlibpath_overrides_runpath=yes |
| 11499 | hardcode_into_libs=yes |
| 11500 | ;; |
| 11501 | *) # from 3.2 on |
| 11502 | shlibpath_overrides_runpath=no |
| 11503 | hardcode_into_libs=yes |
| 11504 | ;; |
| 11505 | esac |
| 11506 | ;; |
| 11507 | |
| 11508 | gnu*) |
| 11509 | version_type=linux |
| 11510 | need_lib_prefix=no |
| 11511 | need_version=no |
| 11512 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 11513 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11514 | shlibpath_var=LD_LIBRARY_PATH |
| 11515 | hardcode_into_libs=yes |
| 11516 | ;; |
| 11517 | |
| 11518 | hpux9* | hpux10* | hpux11*) |
| 11519 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 11520 | # link against other versions. |
| 11521 | version_type=sunos |
| 11522 | need_lib_prefix=no |
| 11523 | need_version=no |
| 11524 | case "$host_cpu" in |
| 11525 | ia64*) |
| 11526 | shrext_cmds='.so' |
| 11527 | hardcode_into_libs=yes |
| 11528 | dynamic_linker="$host_os dld.so" |
| 11529 | shlibpath_var=LD_LIBRARY_PATH |
| 11530 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 11531 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11532 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11533 | if test "X$HPUX_IA64_MODE" = X32; then |
| 11534 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 11535 | else |
| 11536 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 11537 | fi |
| 11538 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 11539 | ;; |
| 11540 | hppa*64*) |
| 11541 | shrext_cmds='.sl' |
| 11542 | hardcode_into_libs=yes |
| 11543 | dynamic_linker="$host_os dld.sl" |
| 11544 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 11545 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 11546 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11547 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11548 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 11549 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 11550 | ;; |
| 11551 | *) |
| 11552 | shrext_cmds='.sl' |
| 11553 | dynamic_linker="$host_os dld.sl" |
| 11554 | shlibpath_var=SHLIB_PATH |
| 11555 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 11556 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11557 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11558 | ;; |
| 11559 | esac |
| 11560 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 11561 | postinstall_cmds='chmod 555 $lib' |
| 11562 | ;; |
| 11563 | |
| 11564 | irix5* | irix6* | nonstopux*) |
| 11565 | case $host_os in |
| 11566 | nonstopux*) version_type=nonstopux ;; |
| 11567 | *) |
| 11568 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 11569 | version_type=linux |
| 11570 | else |
| 11571 | version_type=irix |
| 11572 | fi ;; |
| 11573 | esac |
| 11574 | need_lib_prefix=no |
| 11575 | need_version=no |
| 11576 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11577 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 11578 | case $host_os in |
| 11579 | irix5* | nonstopux*) |
| 11580 | libsuff= shlibsuff= |
| 11581 | ;; |
| 11582 | *) |
| 11583 | case $LD in # libtool.m4 will add one of these switches to LD |
| 11584 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 11585 | libsuff= shlibsuff= libmagic=32-bit;; |
| 11586 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 11587 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 11588 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 11589 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 11590 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 11591 | esac |
| 11592 | ;; |
| 11593 | esac |
| 11594 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 11595 | shlibpath_overrides_runpath=no |
| 11596 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 11597 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 11598 | hardcode_into_libs=yes |
| 11599 | ;; |
| 11600 | |
| 11601 | # No shared lib support for Linux oldld, aout, or coff. |
| 11602 | linux*oldld* | linux*aout* | linux*coff*) |
| 11603 | dynamic_linker=no |
| 11604 | ;; |
| 11605 | |
| 11606 | # This must be Linux ELF. |
| 11607 | linux*) |
| 11608 | version_type=linux |
| 11609 | need_lib_prefix=no |
| 11610 | need_version=no |
| 11611 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11612 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11613 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 11614 | shlibpath_var=LD_LIBRARY_PATH |
| 11615 | shlibpath_overrides_runpath=no |
| 11616 | # This implies no fast_install, which is unacceptable. |
| 11617 | # Some rework will be needed to allow for fast_install |
| 11618 | # before this can be enabled. |
| 11619 | hardcode_into_libs=yes |
| 11620 | |
| 11621 | # Append ld.so.conf contents to the search path |
| 11622 | if test -f /etc/ld.so.conf; then |
| 11623 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
| 11624 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 11625 | fi |
| 11626 | |
| 11627 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 11628 | # powerpc, because MkLinux only supported shared libraries with the |
| 11629 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 11630 | # most powerpc-linux boxes support dynamic linking these days and |
| 11631 | # people can always --disable-shared, the test was removed, and we |
| 11632 | # assume the GNU/Linux dynamic linker is in use. |
| 11633 | dynamic_linker='GNU/Linux ld.so' |
| 11634 | ;; |
| 11635 | |
| 11636 | knetbsd*-gnu) |
| 11637 | version_type=linux |
| 11638 | need_lib_prefix=no |
| 11639 | need_version=no |
| 11640 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 11641 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11642 | shlibpath_var=LD_LIBRARY_PATH |
| 11643 | shlibpath_overrides_runpath=no |
| 11644 | hardcode_into_libs=yes |
| 11645 | dynamic_linker='GNU ld.so' |
| 11646 | ;; |
| 11647 | |
| 11648 | netbsd*) |
| 11649 | version_type=sunos |
| 11650 | need_lib_prefix=no |
| 11651 | need_version=no |
| 11652 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 11653 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 11654 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 11655 | dynamic_linker='NetBSD (a.out) ld.so' |
| 11656 | else |
| 11657 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 11658 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11659 | dynamic_linker='NetBSD ld.elf_so' |
| 11660 | fi |
| 11661 | shlibpath_var=LD_LIBRARY_PATH |
| 11662 | shlibpath_overrides_runpath=yes |
| 11663 | hardcode_into_libs=yes |
| 11664 | ;; |
| 11665 | |
| 11666 | newsos6) |
| 11667 | version_type=linux |
| 11668 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11669 | shlibpath_var=LD_LIBRARY_PATH |
| 11670 | shlibpath_overrides_runpath=yes |
| 11671 | ;; |
| 11672 | |
| 11673 | nto-qnx*) |
| 11674 | version_type=linux |
| 11675 | need_lib_prefix=no |
| 11676 | need_version=no |
| 11677 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11678 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11679 | shlibpath_var=LD_LIBRARY_PATH |
| 11680 | shlibpath_overrides_runpath=yes |
| 11681 | ;; |
| 11682 | |
| 11683 | openbsd*) |
| 11684 | version_type=sunos |
| 11685 | need_lib_prefix=no |
| 11686 | need_version=yes |
| 11687 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 11688 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 11689 | shlibpath_var=LD_LIBRARY_PATH |
| 11690 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 11691 | case $host_os in |
| 11692 | openbsd2.[89] | openbsd2.[89].*) |
| 11693 | shlibpath_overrides_runpath=no |
| 11694 | ;; |
| 11695 | *) |
| 11696 | shlibpath_overrides_runpath=yes |
| 11697 | ;; |
| 11698 | esac |
| 11699 | else |
| 11700 | shlibpath_overrides_runpath=yes |
| 11701 | fi |
| 11702 | ;; |
| 11703 | |
| 11704 | os2*) |
| 11705 | libname_spec='$name' |
| 11706 | shrext_cmds=".dll" |
| 11707 | need_lib_prefix=no |
| 11708 | library_names_spec='$libname${shared_ext} $libname.a' |
| 11709 | dynamic_linker='OS/2 ld.exe' |
| 11710 | shlibpath_var=LIBPATH |
| 11711 | ;; |
| 11712 | |
| 11713 | osf3* | osf4* | osf5*) |
| 11714 | version_type=osf |
| 11715 | need_lib_prefix=no |
| 11716 | need_version=no |
| 11717 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11718 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11719 | shlibpath_var=LD_LIBRARY_PATH |
| 11720 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 11721 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 11722 | ;; |
| 11723 | |
| 11724 | sco3.2v5*) |
| 11725 | version_type=osf |
| 11726 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11727 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11728 | shlibpath_var=LD_LIBRARY_PATH |
| 11729 | ;; |
| 11730 | |
| 11731 | solaris*) |
| 11732 | version_type=linux |
| 11733 | need_lib_prefix=no |
| 11734 | need_version=no |
| 11735 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11736 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11737 | shlibpath_var=LD_LIBRARY_PATH |
| 11738 | shlibpath_overrides_runpath=yes |
| 11739 | hardcode_into_libs=yes |
| 11740 | # ldd complains unless libraries are executable |
| 11741 | postinstall_cmds='chmod +x $lib' |
| 11742 | ;; |
| 11743 | |
| 11744 | sunos4*) |
| 11745 | version_type=sunos |
| 11746 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 11747 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 11748 | shlibpath_var=LD_LIBRARY_PATH |
| 11749 | shlibpath_overrides_runpath=yes |
| 11750 | if test "$with_gnu_ld" = yes; then |
| 11751 | need_lib_prefix=no |
| 11752 | fi |
| 11753 | need_version=yes |
| 11754 | ;; |
| 11755 | |
| 11756 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 11757 | version_type=linux |
| 11758 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11759 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11760 | shlibpath_var=LD_LIBRARY_PATH |
| 11761 | case $host_vendor in |
| 11762 | sni) |
| 11763 | shlibpath_overrides_runpath=no |
| 11764 | need_lib_prefix=no |
| 11765 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 11766 | runpath_var=LD_RUN_PATH |
| 11767 | ;; |
| 11768 | siemens) |
| 11769 | need_lib_prefix=no |
| 11770 | ;; |
| 11771 | motorola) |
| 11772 | need_lib_prefix=no |
| 11773 | need_version=no |
| 11774 | shlibpath_overrides_runpath=no |
| 11775 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 11776 | ;; |
| 11777 | esac |
| 11778 | ;; |
| 11779 | |
| 11780 | sysv4*MP*) |
| 11781 | if test -d /usr/nec ;then |
| 11782 | version_type=linux |
| 11783 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 11784 | soname_spec='$libname${shared_ext}.$major' |
| 11785 | shlibpath_var=LD_LIBRARY_PATH |
| 11786 | fi |
| 11787 | ;; |
| 11788 | |
| 11789 | uts4*) |
| 11790 | version_type=linux |
| 11791 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11792 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11793 | shlibpath_var=LD_LIBRARY_PATH |
| 11794 | ;; |
| 11795 | |
| 11796 | *) |
| 11797 | dynamic_linker=no |
| 11798 | ;; |
| 11799 | esac |
| 11800 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 11801 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 11802 | test "$dynamic_linker" = no && can_build_shared=no |
| 11803 | |
| 11804 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 11805 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 11806 | hardcode_action_CXX= |
| 11807 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
| 11808 | test -n "$runpath_var CXX" || \ |
| 11809 | test "X$hardcode_automatic_CXX"="Xyes" ; then |
| 11810 | |
| 11811 | # We can hardcode non-existant directories. |
| 11812 | if test "$hardcode_direct_CXX" != no && |
| 11813 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 11814 | # have to relink, otherwise we might link with an installed library |
| 11815 | # when we should be linking with a yet-to-be-installed one |
| 11816 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 11817 | test "$hardcode_minus_L_CXX" != no; then |
| 11818 | # Linking always hardcodes the temporary library directory. |
| 11819 | hardcode_action_CXX=relink |
| 11820 | else |
| 11821 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 11822 | hardcode_action_CXX=immediate |
| 11823 | fi |
| 11824 | else |
| 11825 | # We cannot hardcode anything, or else we can only hardcode existing |
| 11826 | # directories. |
| 11827 | hardcode_action_CXX=unsupported |
| 11828 | fi |
| 11829 | echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
| 11830 | echo "${ECHO_T}$hardcode_action_CXX" >&6 |
| 11831 | |
| 11832 | if test "$hardcode_action_CXX" = relink; then |
| 11833 | # Fast installation is not supported |
| 11834 | enable_fast_install=no |
| 11835 | elif test "$shlibpath_overrides_runpath" = yes || |
| 11836 | test "$enable_shared" = no; then |
| 11837 | # Fast installation is not necessary |
| 11838 | enable_fast_install=needless |
| 11839 | fi |
| 11840 | |
| 11841 | striplib= |
| 11842 | old_striplib= |
| 11843 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 11844 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 11845 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 11846 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 11847 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 11848 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11849 | echo "${ECHO_T}yes" >&6 |
| 11850 | else |
| 11851 | # FIXME - insert some real tests, host_os isn't really good enough |
| 11852 | case $host_os in |
| 11853 | darwin*) |
| 11854 | if test -n "$STRIP" ; then |
| 11855 | striplib="$STRIP -x" |
| 11856 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11857 | echo "${ECHO_T}yes" >&6 |
| 11858 | else |
| 11859 | echo "$as_me:$LINENO: result: no" >&5 |
| 11860 | echo "${ECHO_T}no" >&6 |
| 11861 | fi |
| 11862 | ;; |
| 11863 | *) |
| 11864 | echo "$as_me:$LINENO: result: no" >&5 |
| 11865 | echo "${ECHO_T}no" >&6 |
| 11866 | ;; |
| 11867 | esac |
| 11868 | fi |
| 11869 | |
| 11870 | if test "x$enable_dlopen" != xyes; then |
| 11871 | enable_dlopen=unknown |
| 11872 | enable_dlopen_self=unknown |
| 11873 | enable_dlopen_self_static=unknown |
| 11874 | else |
| 11875 | lt_cv_dlopen=no |
| 11876 | lt_cv_dlopen_libs= |
| 11877 | |
| 11878 | case $host_os in |
| 11879 | beos*) |
| 11880 | lt_cv_dlopen="load_add_on" |
| 11881 | lt_cv_dlopen_libs= |
| 11882 | lt_cv_dlopen_self=yes |
| 11883 | ;; |
| 11884 | |
| 11885 | mingw* | pw32*) |
| 11886 | lt_cv_dlopen="LoadLibrary" |
| 11887 | lt_cv_dlopen_libs= |
| 11888 | ;; |
| 11889 | |
| 11890 | cygwin*) |
| 11891 | lt_cv_dlopen="dlopen" |
| 11892 | lt_cv_dlopen_libs= |
| 11893 | ;; |
| 11894 | |
| 11895 | darwin*) |
| 11896 | # if libdl is installed we need to link against it |
| 11897 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 11898 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 11899 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 11900 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11901 | else |
| 11902 | ac_check_lib_save_LIBS=$LIBS |
| 11903 | LIBS="-ldl $LIBS" |
| 11904 | cat >conftest.$ac_ext <<_ACEOF |
| 11905 | /* confdefs.h. */ |
| 11906 | _ACEOF |
| 11907 | cat confdefs.h >>conftest.$ac_ext |
| 11908 | cat >>conftest.$ac_ext <<_ACEOF |
| 11909 | /* end confdefs.h. */ |
| 11910 | |
| 11911 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11912 | #ifdef __cplusplus |
| 11913 | extern "C" |
| 11914 | #endif |
| 11915 | /* We use char because int might match the return type of a gcc2 |
| 11916 | builtin and then its argument prototype would still apply. */ |
| 11917 | char dlopen (); |
| 11918 | int |
| 11919 | main () |
| 11920 | { |
| 11921 | dlopen (); |
| 11922 | ; |
| 11923 | return 0; |
| 11924 | } |
| 11925 | _ACEOF |
| 11926 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11927 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11928 | (eval $ac_link) 2>conftest.er1 |
| 11929 | ac_status=$? |
| 11930 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11931 | rm -f conftest.er1 |
| 11932 | cat conftest.err >&5 |
| 11933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11934 | (exit $ac_status); } && |
| 11935 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 11936 | || test ! -s conftest.err' |
| 11937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11938 | (eval $ac_try) 2>&5 |
| 11939 | ac_status=$? |
| 11940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11941 | (exit $ac_status); }; } && |
| 11942 | { ac_try='test -s conftest$ac_exeext' |
| 11943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11944 | (eval $ac_try) 2>&5 |
| 11945 | ac_status=$? |
| 11946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11947 | (exit $ac_status); }; }; then |
| 11948 | ac_cv_lib_dl_dlopen=yes |
| 11949 | else |
| 11950 | echo "$as_me: failed program was:" >&5 |
| 11951 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11952 | |
| 11953 | ac_cv_lib_dl_dlopen=no |
| 11954 | fi |
| 11955 | rm -f conftest.err conftest.$ac_objext \ |
| 11956 | conftest$ac_exeext conftest.$ac_ext |
| 11957 | LIBS=$ac_check_lib_save_LIBS |
| 11958 | fi |
| 11959 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 11960 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 11961 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 11962 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 11963 | else |
| 11964 | |
| 11965 | lt_cv_dlopen="dyld" |
| 11966 | lt_cv_dlopen_libs= |
| 11967 | lt_cv_dlopen_self=yes |
| 11968 | |
| 11969 | fi |
| 11970 | |
| 11971 | ;; |
| 11972 | |
| 11973 | *) |
| 11974 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 11975 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 11976 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 11977 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11978 | else |
| 11979 | cat >conftest.$ac_ext <<_ACEOF |
| 11980 | /* confdefs.h. */ |
| 11981 | _ACEOF |
| 11982 | cat confdefs.h >>conftest.$ac_ext |
| 11983 | cat >>conftest.$ac_ext <<_ACEOF |
| 11984 | /* end confdefs.h. */ |
| 11985 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 11986 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11987 | #define shl_load innocuous_shl_load |
| 11988 | |
| 11989 | /* System header to define __stub macros and hopefully few prototypes, |
| 11990 | which can conflict with char shl_load (); below. |
| 11991 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11992 | <limits.h> exists even on freestanding compilers. */ |
| 11993 | |
| 11994 | #ifdef __STDC__ |
| 11995 | # include <limits.h> |
| 11996 | #else |
| 11997 | # include <assert.h> |
| 11998 | #endif |
| 11999 | |
| 12000 | #undef shl_load |
| 12001 | |
| 12002 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12003 | #ifdef __cplusplus |
| 12004 | extern "C" |
| 12005 | { |
| 12006 | #endif |
| 12007 | /* We use char because int might match the return type of a gcc2 |
| 12008 | builtin and then its argument prototype would still apply. */ |
| 12009 | char shl_load (); |
| 12010 | /* The GNU C library defines this for functions which it implements |
| 12011 | to always fail with ENOSYS. Some functions are actually named |
| 12012 | something starting with __ and the normal name is an alias. */ |
| 12013 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 12014 | choke me |
| 12015 | #else |
| 12016 | char (*f) () = shl_load; |
| 12017 | #endif |
| 12018 | #ifdef __cplusplus |
| 12019 | } |
| 12020 | #endif |
| 12021 | |
| 12022 | int |
| 12023 | main () |
| 12024 | { |
| 12025 | return f != shl_load; |
| 12026 | ; |
| 12027 | return 0; |
| 12028 | } |
| 12029 | _ACEOF |
| 12030 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12031 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12032 | (eval $ac_link) 2>conftest.er1 |
| 12033 | ac_status=$? |
| 12034 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12035 | rm -f conftest.er1 |
| 12036 | cat conftest.err >&5 |
| 12037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12038 | (exit $ac_status); } && |
| 12039 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 12040 | || test ! -s conftest.err' |
| 12041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12042 | (eval $ac_try) 2>&5 |
| 12043 | ac_status=$? |
| 12044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12045 | (exit $ac_status); }; } && |
| 12046 | { ac_try='test -s conftest$ac_exeext' |
| 12047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12048 | (eval $ac_try) 2>&5 |
| 12049 | ac_status=$? |
| 12050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12051 | (exit $ac_status); }; }; then |
| 12052 | ac_cv_func_shl_load=yes |
| 12053 | else |
| 12054 | echo "$as_me: failed program was:" >&5 |
| 12055 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12056 | |
| 12057 | ac_cv_func_shl_load=no |
| 12058 | fi |
| 12059 | rm -f conftest.err conftest.$ac_objext \ |
| 12060 | conftest$ac_exeext conftest.$ac_ext |
| 12061 | fi |
| 12062 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 12063 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 12064 | if test $ac_cv_func_shl_load = yes; then |
| 12065 | lt_cv_dlopen="shl_load" |
| 12066 | else |
| 12067 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 12068 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 12069 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 12070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12071 | else |
| 12072 | ac_check_lib_save_LIBS=$LIBS |
| 12073 | LIBS="-ldld $LIBS" |
| 12074 | cat >conftest.$ac_ext <<_ACEOF |
| 12075 | /* confdefs.h. */ |
| 12076 | _ACEOF |
| 12077 | cat confdefs.h >>conftest.$ac_ext |
| 12078 | cat >>conftest.$ac_ext <<_ACEOF |
| 12079 | /* end confdefs.h. */ |
| 12080 | |
| 12081 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12082 | #ifdef __cplusplus |
| 12083 | extern "C" |
| 12084 | #endif |
| 12085 | /* We use char because int might match the return type of a gcc2 |
| 12086 | builtin and then its argument prototype would still apply. */ |
| 12087 | char shl_load (); |
| 12088 | int |
| 12089 | main () |
| 12090 | { |
| 12091 | shl_load (); |
| 12092 | ; |
| 12093 | return 0; |
| 12094 | } |
| 12095 | _ACEOF |
| 12096 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12097 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12098 | (eval $ac_link) 2>conftest.er1 |
| 12099 | ac_status=$? |
| 12100 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12101 | rm -f conftest.er1 |
| 12102 | cat conftest.err >&5 |
| 12103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12104 | (exit $ac_status); } && |
| 12105 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 12106 | || test ! -s conftest.err' |
| 12107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12108 | (eval $ac_try) 2>&5 |
| 12109 | ac_status=$? |
| 12110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12111 | (exit $ac_status); }; } && |
| 12112 | { ac_try='test -s conftest$ac_exeext' |
| 12113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12114 | (eval $ac_try) 2>&5 |
| 12115 | ac_status=$? |
| 12116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12117 | (exit $ac_status); }; }; then |
| 12118 | ac_cv_lib_dld_shl_load=yes |
| 12119 | else |
| 12120 | echo "$as_me: failed program was:" >&5 |
| 12121 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12122 | |
| 12123 | ac_cv_lib_dld_shl_load=no |
| 12124 | fi |
| 12125 | rm -f conftest.err conftest.$ac_objext \ |
| 12126 | conftest$ac_exeext conftest.$ac_ext |
| 12127 | LIBS=$ac_check_lib_save_LIBS |
| 12128 | fi |
| 12129 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 12130 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 12131 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 12132 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 12133 | else |
| 12134 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 12135 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 12136 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 12137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12138 | else |
| 12139 | cat >conftest.$ac_ext <<_ACEOF |
| 12140 | /* confdefs.h. */ |
| 12141 | _ACEOF |
| 12142 | cat confdefs.h >>conftest.$ac_ext |
| 12143 | cat >>conftest.$ac_ext <<_ACEOF |
| 12144 | /* end confdefs.h. */ |
| 12145 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 12146 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12147 | #define dlopen innocuous_dlopen |
| 12148 | |
| 12149 | /* System header to define __stub macros and hopefully few prototypes, |
| 12150 | which can conflict with char dlopen (); below. |
| 12151 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12152 | <limits.h> exists even on freestanding compilers. */ |
| 12153 | |
| 12154 | #ifdef __STDC__ |
| 12155 | # include <limits.h> |
| 12156 | #else |
| 12157 | # include <assert.h> |
| 12158 | #endif |
| 12159 | |
| 12160 | #undef dlopen |
| 12161 | |
| 12162 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12163 | #ifdef __cplusplus |
| 12164 | extern "C" |
| 12165 | { |
| 12166 | #endif |
| 12167 | /* We use char because int might match the return type of a gcc2 |
| 12168 | builtin and then its argument prototype would still apply. */ |
| 12169 | char dlopen (); |
| 12170 | /* The GNU C library defines this for functions which it implements |
| 12171 | to always fail with ENOSYS. Some functions are actually named |
| 12172 | something starting with __ and the normal name is an alias. */ |
| 12173 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 12174 | choke me |
| 12175 | #else |
| 12176 | char (*f) () = dlopen; |
| 12177 | #endif |
| 12178 | #ifdef __cplusplus |
| 12179 | } |
| 12180 | #endif |
| 12181 | |
| 12182 | int |
| 12183 | main () |
| 12184 | { |
| 12185 | return f != dlopen; |
| 12186 | ; |
| 12187 | return 0; |
| 12188 | } |
| 12189 | _ACEOF |
| 12190 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12191 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12192 | (eval $ac_link) 2>conftest.er1 |
| 12193 | ac_status=$? |
| 12194 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12195 | rm -f conftest.er1 |
| 12196 | cat conftest.err >&5 |
| 12197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12198 | (exit $ac_status); } && |
| 12199 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 12200 | || test ! -s conftest.err' |
| 12201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12202 | (eval $ac_try) 2>&5 |
| 12203 | ac_status=$? |
| 12204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12205 | (exit $ac_status); }; } && |
| 12206 | { ac_try='test -s conftest$ac_exeext' |
| 12207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12208 | (eval $ac_try) 2>&5 |
| 12209 | ac_status=$? |
| 12210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12211 | (exit $ac_status); }; }; then |
| 12212 | ac_cv_func_dlopen=yes |
| 12213 | else |
| 12214 | echo "$as_me: failed program was:" >&5 |
| 12215 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12216 | |
| 12217 | ac_cv_func_dlopen=no |
| 12218 | fi |
| 12219 | rm -f conftest.err conftest.$ac_objext \ |
| 12220 | conftest$ac_exeext conftest.$ac_ext |
| 12221 | fi |
| 12222 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 12223 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 12224 | if test $ac_cv_func_dlopen = yes; then |
| 12225 | lt_cv_dlopen="dlopen" |
| 12226 | else |
| 12227 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 12228 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 12229 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 12230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12231 | else |
| 12232 | ac_check_lib_save_LIBS=$LIBS |
| 12233 | LIBS="-ldl $LIBS" |
| 12234 | cat >conftest.$ac_ext <<_ACEOF |
| 12235 | /* confdefs.h. */ |
| 12236 | _ACEOF |
| 12237 | cat confdefs.h >>conftest.$ac_ext |
| 12238 | cat >>conftest.$ac_ext <<_ACEOF |
| 12239 | /* end confdefs.h. */ |
| 12240 | |
| 12241 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12242 | #ifdef __cplusplus |
| 12243 | extern "C" |
| 12244 | #endif |
| 12245 | /* We use char because int might match the return type of a gcc2 |
| 12246 | builtin and then its argument prototype would still apply. */ |
| 12247 | char dlopen (); |
| 12248 | int |
| 12249 | main () |
| 12250 | { |
| 12251 | dlopen (); |
| 12252 | ; |
| 12253 | return 0; |
| 12254 | } |
| 12255 | _ACEOF |
| 12256 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12257 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12258 | (eval $ac_link) 2>conftest.er1 |
| 12259 | ac_status=$? |
| 12260 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12261 | rm -f conftest.er1 |
| 12262 | cat conftest.err >&5 |
| 12263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12264 | (exit $ac_status); } && |
| 12265 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 12266 | || test ! -s conftest.err' |
| 12267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12268 | (eval $ac_try) 2>&5 |
| 12269 | ac_status=$? |
| 12270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12271 | (exit $ac_status); }; } && |
| 12272 | { ac_try='test -s conftest$ac_exeext' |
| 12273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12274 | (eval $ac_try) 2>&5 |
| 12275 | ac_status=$? |
| 12276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12277 | (exit $ac_status); }; }; then |
| 12278 | ac_cv_lib_dl_dlopen=yes |
| 12279 | else |
| 12280 | echo "$as_me: failed program was:" >&5 |
| 12281 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12282 | |
| 12283 | ac_cv_lib_dl_dlopen=no |
| 12284 | fi |
| 12285 | rm -f conftest.err conftest.$ac_objext \ |
| 12286 | conftest$ac_exeext conftest.$ac_ext |
| 12287 | LIBS=$ac_check_lib_save_LIBS |
| 12288 | fi |
| 12289 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 12290 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 12291 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 12292 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 12293 | else |
| 12294 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 12295 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 12296 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 12297 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12298 | else |
| 12299 | ac_check_lib_save_LIBS=$LIBS |
| 12300 | LIBS="-lsvld $LIBS" |
| 12301 | cat >conftest.$ac_ext <<_ACEOF |
| 12302 | /* confdefs.h. */ |
| 12303 | _ACEOF |
| 12304 | cat confdefs.h >>conftest.$ac_ext |
| 12305 | cat >>conftest.$ac_ext <<_ACEOF |
| 12306 | /* end confdefs.h. */ |
| 12307 | |
| 12308 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12309 | #ifdef __cplusplus |
| 12310 | extern "C" |
| 12311 | #endif |
| 12312 | /* We use char because int might match the return type of a gcc2 |
| 12313 | builtin and then its argument prototype would still apply. */ |
| 12314 | char dlopen (); |
| 12315 | int |
| 12316 | main () |
| 12317 | { |
| 12318 | dlopen (); |
| 12319 | ; |
| 12320 | return 0; |
| 12321 | } |
| 12322 | _ACEOF |
| 12323 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12324 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12325 | (eval $ac_link) 2>conftest.er1 |
| 12326 | ac_status=$? |
| 12327 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12328 | rm -f conftest.er1 |
| 12329 | cat conftest.err >&5 |
| 12330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12331 | (exit $ac_status); } && |
| 12332 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 12333 | || test ! -s conftest.err' |
| 12334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12335 | (eval $ac_try) 2>&5 |
| 12336 | ac_status=$? |
| 12337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12338 | (exit $ac_status); }; } && |
| 12339 | { ac_try='test -s conftest$ac_exeext' |
| 12340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12341 | (eval $ac_try) 2>&5 |
| 12342 | ac_status=$? |
| 12343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12344 | (exit $ac_status); }; }; then |
| 12345 | ac_cv_lib_svld_dlopen=yes |
| 12346 | else |
| 12347 | echo "$as_me: failed program was:" >&5 |
| 12348 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12349 | |
| 12350 | ac_cv_lib_svld_dlopen=no |
| 12351 | fi |
| 12352 | rm -f conftest.err conftest.$ac_objext \ |
| 12353 | conftest$ac_exeext conftest.$ac_ext |
| 12354 | LIBS=$ac_check_lib_save_LIBS |
| 12355 | fi |
| 12356 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 12357 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 12358 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 12359 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 12360 | else |
| 12361 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 12362 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 12363 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 12364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12365 | else |
| 12366 | ac_check_lib_save_LIBS=$LIBS |
| 12367 | LIBS="-ldld $LIBS" |
| 12368 | cat >conftest.$ac_ext <<_ACEOF |
| 12369 | /* confdefs.h. */ |
| 12370 | _ACEOF |
| 12371 | cat confdefs.h >>conftest.$ac_ext |
| 12372 | cat >>conftest.$ac_ext <<_ACEOF |
| 12373 | /* end confdefs.h. */ |
| 12374 | |
| 12375 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12376 | #ifdef __cplusplus |
| 12377 | extern "C" |
| 12378 | #endif |
| 12379 | /* We use char because int might match the return type of a gcc2 |
| 12380 | builtin and then its argument prototype would still apply. */ |
| 12381 | char dld_link (); |
| 12382 | int |
| 12383 | main () |
| 12384 | { |
| 12385 | dld_link (); |
| 12386 | ; |
| 12387 | return 0; |
| 12388 | } |
| 12389 | _ACEOF |
| 12390 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12391 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12392 | (eval $ac_link) 2>conftest.er1 |
| 12393 | ac_status=$? |
| 12394 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12395 | rm -f conftest.er1 |
| 12396 | cat conftest.err >&5 |
| 12397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12398 | (exit $ac_status); } && |
| 12399 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 12400 | || test ! -s conftest.err' |
| 12401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12402 | (eval $ac_try) 2>&5 |
| 12403 | ac_status=$? |
| 12404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12405 | (exit $ac_status); }; } && |
| 12406 | { ac_try='test -s conftest$ac_exeext' |
| 12407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12408 | (eval $ac_try) 2>&5 |
| 12409 | ac_status=$? |
| 12410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12411 | (exit $ac_status); }; }; then |
| 12412 | ac_cv_lib_dld_dld_link=yes |
| 12413 | else |
| 12414 | echo "$as_me: failed program was:" >&5 |
| 12415 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12416 | |
| 12417 | ac_cv_lib_dld_dld_link=no |
| 12418 | fi |
| 12419 | rm -f conftest.err conftest.$ac_objext \ |
| 12420 | conftest$ac_exeext conftest.$ac_ext |
| 12421 | LIBS=$ac_check_lib_save_LIBS |
| 12422 | fi |
| 12423 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 12424 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 12425 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 12426 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 12427 | fi |
| 12428 | |
| 12429 | |
| 12430 | fi |
| 12431 | |
| 12432 | |
| 12433 | fi |
| 12434 | |
| 12435 | |
| 12436 | fi |
| 12437 | |
| 12438 | |
| 12439 | fi |
| 12440 | |
| 12441 | |
| 12442 | fi |
| 12443 | |
| 12444 | ;; |
| 12445 | esac |
| 12446 | |
| 12447 | if test "x$lt_cv_dlopen" != xno; then |
| 12448 | enable_dlopen=yes |
| 12449 | else |
| 12450 | enable_dlopen=no |
| 12451 | fi |
| 12452 | |
| 12453 | case $lt_cv_dlopen in |
| 12454 | dlopen) |
| 12455 | save_CPPFLAGS="$CPPFLAGS" |
| 12456 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 12457 | |
| 12458 | save_LDFLAGS="$LDFLAGS" |
| 12459 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 12460 | |
| 12461 | save_LIBS="$LIBS" |
| 12462 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 12463 | |
| 12464 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 12465 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 12466 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 12467 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12468 | else |
| 12469 | if test "$cross_compiling" = yes; then : |
| 12470 | lt_cv_dlopen_self=cross |
| 12471 | else |
| 12472 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 12473 | lt_status=$lt_dlunknown |
| 12474 | cat > conftest.$ac_ext <<EOF |
Lev Walkin | 33cded1 | 2004-09-19 19:40:52 +0000 | [diff] [blame] | 12475 | #line 12475 "configure" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12476 | #include "confdefs.h" |
| 12477 | |
| 12478 | #if HAVE_DLFCN_H |
| 12479 | #include <dlfcn.h> |
| 12480 | #endif |
| 12481 | |
| 12482 | #include <stdio.h> |
| 12483 | |
| 12484 | #ifdef RTLD_GLOBAL |
| 12485 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 12486 | #else |
| 12487 | # ifdef DL_GLOBAL |
| 12488 | # define LT_DLGLOBAL DL_GLOBAL |
| 12489 | # else |
| 12490 | # define LT_DLGLOBAL 0 |
| 12491 | # endif |
| 12492 | #endif |
| 12493 | |
| 12494 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 12495 | find out it does not work in some platform. */ |
| 12496 | #ifndef LT_DLLAZY_OR_NOW |
| 12497 | # ifdef RTLD_LAZY |
| 12498 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 12499 | # else |
| 12500 | # ifdef DL_LAZY |
| 12501 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 12502 | # else |
| 12503 | # ifdef RTLD_NOW |
| 12504 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 12505 | # else |
| 12506 | # ifdef DL_NOW |
| 12507 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 12508 | # else |
| 12509 | # define LT_DLLAZY_OR_NOW 0 |
| 12510 | # endif |
| 12511 | # endif |
| 12512 | # endif |
| 12513 | # endif |
| 12514 | #endif |
| 12515 | |
| 12516 | #ifdef __cplusplus |
| 12517 | extern "C" void exit (int); |
| 12518 | #endif |
| 12519 | |
| 12520 | void fnord() { int i=42;} |
| 12521 | int main () |
| 12522 | { |
| 12523 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 12524 | int status = $lt_dlunknown; |
| 12525 | |
| 12526 | if (self) |
| 12527 | { |
| 12528 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 12529 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 12530 | /* dlclose (self); */ |
| 12531 | } |
| 12532 | |
| 12533 | exit (status); |
| 12534 | } |
| 12535 | EOF |
| 12536 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12537 | (eval $ac_link) 2>&5 |
| 12538 | ac_status=$? |
| 12539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12540 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 12541 | (./conftest; exit; ) 2>/dev/null |
| 12542 | lt_status=$? |
| 12543 | case x$lt_status in |
| 12544 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 12545 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 12546 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 12547 | esac |
| 12548 | else : |
| 12549 | # compilation failed |
| 12550 | lt_cv_dlopen_self=no |
| 12551 | fi |
| 12552 | fi |
| 12553 | rm -fr conftest* |
| 12554 | |
| 12555 | |
| 12556 | fi |
| 12557 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 12558 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 12559 | |
| 12560 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 12561 | LDFLAGS="$LDFLAGS $link_static_flag" |
| 12562 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 12563 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 12564 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 12565 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12566 | else |
| 12567 | if test "$cross_compiling" = yes; then : |
| 12568 | lt_cv_dlopen_self_static=cross |
| 12569 | else |
| 12570 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 12571 | lt_status=$lt_dlunknown |
| 12572 | cat > conftest.$ac_ext <<EOF |
Lev Walkin | 33cded1 | 2004-09-19 19:40:52 +0000 | [diff] [blame] | 12573 | #line 12573 "configure" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12574 | #include "confdefs.h" |
| 12575 | |
| 12576 | #if HAVE_DLFCN_H |
| 12577 | #include <dlfcn.h> |
| 12578 | #endif |
| 12579 | |
| 12580 | #include <stdio.h> |
| 12581 | |
| 12582 | #ifdef RTLD_GLOBAL |
| 12583 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 12584 | #else |
| 12585 | # ifdef DL_GLOBAL |
| 12586 | # define LT_DLGLOBAL DL_GLOBAL |
| 12587 | # else |
| 12588 | # define LT_DLGLOBAL 0 |
| 12589 | # endif |
| 12590 | #endif |
| 12591 | |
| 12592 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 12593 | find out it does not work in some platform. */ |
| 12594 | #ifndef LT_DLLAZY_OR_NOW |
| 12595 | # ifdef RTLD_LAZY |
| 12596 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 12597 | # else |
| 12598 | # ifdef DL_LAZY |
| 12599 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 12600 | # else |
| 12601 | # ifdef RTLD_NOW |
| 12602 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 12603 | # else |
| 12604 | # ifdef DL_NOW |
| 12605 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 12606 | # else |
| 12607 | # define LT_DLLAZY_OR_NOW 0 |
| 12608 | # endif |
| 12609 | # endif |
| 12610 | # endif |
| 12611 | # endif |
| 12612 | #endif |
| 12613 | |
| 12614 | #ifdef __cplusplus |
| 12615 | extern "C" void exit (int); |
| 12616 | #endif |
| 12617 | |
| 12618 | void fnord() { int i=42;} |
| 12619 | int main () |
| 12620 | { |
| 12621 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 12622 | int status = $lt_dlunknown; |
| 12623 | |
| 12624 | if (self) |
| 12625 | { |
| 12626 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 12627 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 12628 | /* dlclose (self); */ |
| 12629 | } |
| 12630 | |
| 12631 | exit (status); |
| 12632 | } |
| 12633 | EOF |
| 12634 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12635 | (eval $ac_link) 2>&5 |
| 12636 | ac_status=$? |
| 12637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12638 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 12639 | (./conftest; exit; ) 2>/dev/null |
| 12640 | lt_status=$? |
| 12641 | case x$lt_status in |
| 12642 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 12643 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 12644 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 12645 | esac |
| 12646 | else : |
| 12647 | # compilation failed |
| 12648 | lt_cv_dlopen_self_static=no |
| 12649 | fi |
| 12650 | fi |
| 12651 | rm -fr conftest* |
| 12652 | |
| 12653 | |
| 12654 | fi |
| 12655 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 12656 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 12657 | fi |
| 12658 | |
| 12659 | CPPFLAGS="$save_CPPFLAGS" |
| 12660 | LDFLAGS="$save_LDFLAGS" |
| 12661 | LIBS="$save_LIBS" |
| 12662 | ;; |
| 12663 | esac |
| 12664 | |
| 12665 | case $lt_cv_dlopen_self in |
| 12666 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 12667 | *) enable_dlopen_self=unknown ;; |
| 12668 | esac |
| 12669 | |
| 12670 | case $lt_cv_dlopen_self_static in |
| 12671 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 12672 | *) enable_dlopen_self_static=unknown ;; |
| 12673 | esac |
| 12674 | fi |
| 12675 | |
| 12676 | |
| 12677 | # The else clause should only fire when bootstrapping the |
| 12678 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 12679 | # with your package, and you will get complaints that there are |
| 12680 | # no rules to generate ltmain.sh. |
| 12681 | if test -f "$ltmain"; then |
| 12682 | # See if we are running on zsh, and set the options which allow our commands through |
| 12683 | # without removal of \ escapes. |
| 12684 | if test -n "${ZSH_VERSION+set}" ; then |
| 12685 | setopt NO_GLOB_SUBST |
| 12686 | fi |
| 12687 | # Now quote all the things that may contain metacharacters while being |
| 12688 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 12689 | # variables and quote the copies for generation of the libtool script. |
| 12690 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 12691 | SED SHELL STRIP \ |
| 12692 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 12693 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 12694 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 12695 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 12696 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 12697 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 12698 | old_postinstall_cmds old_postuninstall_cmds \ |
| 12699 | compiler_CXX \ |
| 12700 | CC_CXX \ |
| 12701 | LD_CXX \ |
| 12702 | lt_prog_compiler_wl_CXX \ |
| 12703 | lt_prog_compiler_pic_CXX \ |
| 12704 | lt_prog_compiler_static_CXX \ |
| 12705 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 12706 | export_dynamic_flag_spec_CXX \ |
| 12707 | thread_safe_flag_spec_CXX \ |
| 12708 | whole_archive_flag_spec_CXX \ |
| 12709 | enable_shared_with_static_runtimes_CXX \ |
| 12710 | old_archive_cmds_CXX \ |
| 12711 | old_archive_from_new_cmds_CXX \ |
| 12712 | predep_objects_CXX \ |
| 12713 | postdep_objects_CXX \ |
| 12714 | predeps_CXX \ |
| 12715 | postdeps_CXX \ |
| 12716 | compiler_lib_search_path_CXX \ |
| 12717 | archive_cmds_CXX \ |
| 12718 | archive_expsym_cmds_CXX \ |
| 12719 | postinstall_cmds_CXX \ |
| 12720 | postuninstall_cmds_CXX \ |
| 12721 | old_archive_from_expsyms_cmds_CXX \ |
| 12722 | allow_undefined_flag_CXX \ |
| 12723 | no_undefined_flag_CXX \ |
| 12724 | export_symbols_cmds_CXX \ |
| 12725 | hardcode_libdir_flag_spec_CXX \ |
| 12726 | hardcode_libdir_flag_spec_ld_CXX \ |
| 12727 | hardcode_libdir_separator_CXX \ |
| 12728 | hardcode_automatic_CXX \ |
| 12729 | module_cmds_CXX \ |
| 12730 | module_expsym_cmds_CXX \ |
| 12731 | lt_cv_prog_compiler_c_o_CXX \ |
| 12732 | exclude_expsyms_CXX \ |
| 12733 | include_expsyms_CXX; do |
| 12734 | |
| 12735 | case $var in |
| 12736 | old_archive_cmds_CXX | \ |
| 12737 | old_archive_from_new_cmds_CXX | \ |
| 12738 | archive_cmds_CXX | \ |
| 12739 | archive_expsym_cmds_CXX | \ |
| 12740 | module_cmds_CXX | \ |
| 12741 | module_expsym_cmds_CXX | \ |
| 12742 | old_archive_from_expsyms_cmds_CXX | \ |
| 12743 | export_symbols_cmds_CXX | \ |
| 12744 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 12745 | postinstall_cmds | postuninstall_cmds | \ |
| 12746 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 12747 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 12748 | # Double-quote double-evaled strings. |
| 12749 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 12750 | ;; |
| 12751 | *) |
| 12752 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 12753 | ;; |
| 12754 | esac |
| 12755 | done |
| 12756 | |
| 12757 | case $lt_echo in |
| 12758 | *'\$0 --fallback-echo"') |
| 12759 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 12760 | ;; |
| 12761 | esac |
| 12762 | |
| 12763 | cfgfile="$ofile" |
| 12764 | |
| 12765 | cat <<__EOF__ >> "$cfgfile" |
| 12766 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 12767 | |
| 12768 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 12769 | |
| 12770 | # Shell to use when invoking shell scripts. |
| 12771 | SHELL=$lt_SHELL |
| 12772 | |
| 12773 | # Whether or not to build shared libraries. |
| 12774 | build_libtool_libs=$enable_shared |
| 12775 | |
| 12776 | # Whether or not to build static libraries. |
| 12777 | build_old_libs=$enable_static |
| 12778 | |
| 12779 | # Whether or not to add -lc for building shared libraries. |
| 12780 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 12781 | |
| 12782 | # Whether or not to disallow shared libs when runtime libs are static |
| 12783 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 12784 | |
| 12785 | # Whether or not to optimize for fast installation. |
| 12786 | fast_install=$enable_fast_install |
| 12787 | |
| 12788 | # The host system. |
| 12789 | host_alias=$host_alias |
| 12790 | host=$host |
| 12791 | |
| 12792 | # An echo program that does not interpret backslashes. |
| 12793 | echo=$lt_echo |
| 12794 | |
| 12795 | # The archiver. |
| 12796 | AR=$lt_AR |
| 12797 | AR_FLAGS=$lt_AR_FLAGS |
| 12798 | |
| 12799 | # A C compiler. |
| 12800 | LTCC=$lt_LTCC |
| 12801 | |
| 12802 | # A language-specific compiler. |
| 12803 | CC=$lt_compiler_CXX |
| 12804 | |
| 12805 | # Is the compiler the GNU C compiler? |
| 12806 | with_gcc=$GCC_CXX |
| 12807 | |
| 12808 | # An ERE matcher. |
| 12809 | EGREP=$lt_EGREP |
| 12810 | |
| 12811 | # The linker used to build libraries. |
| 12812 | LD=$lt_LD_CXX |
| 12813 | |
| 12814 | # Whether we need hard or soft links. |
| 12815 | LN_S=$lt_LN_S |
| 12816 | |
| 12817 | # A BSD-compatible nm program. |
| 12818 | NM=$lt_NM |
| 12819 | |
| 12820 | # A symbol stripping program |
| 12821 | STRIP=$lt_STRIP |
| 12822 | |
| 12823 | # Used to examine libraries when file_magic_cmd begins "file" |
| 12824 | MAGIC_CMD=$MAGIC_CMD |
| 12825 | |
| 12826 | # Used on cygwin: DLL creation program. |
| 12827 | DLLTOOL="$DLLTOOL" |
| 12828 | |
| 12829 | # Used on cygwin: object dumper. |
| 12830 | OBJDUMP="$OBJDUMP" |
| 12831 | |
| 12832 | # Used on cygwin: assembler. |
| 12833 | AS="$AS" |
| 12834 | |
| 12835 | # The name of the directory that contains temporary libtool files. |
| 12836 | objdir=$objdir |
| 12837 | |
| 12838 | # How to create reloadable object files. |
| 12839 | reload_flag=$lt_reload_flag |
| 12840 | reload_cmds=$lt_reload_cmds |
| 12841 | |
| 12842 | # How to pass a linker flag through the compiler. |
| 12843 | wl=$lt_lt_prog_compiler_wl_CXX |
| 12844 | |
| 12845 | # Object file suffix (normally "o"). |
| 12846 | objext="$ac_objext" |
| 12847 | |
| 12848 | # Old archive suffix (normally "a"). |
| 12849 | libext="$libext" |
| 12850 | |
| 12851 | # Shared library suffix (normally ".so"). |
| 12852 | shrext_cmds='$shrext_cmds' |
| 12853 | |
| 12854 | # Executable file suffix (normally ""). |
| 12855 | exeext="$exeext" |
| 12856 | |
| 12857 | # Additional compiler flags for building library objects. |
| 12858 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 12859 | pic_mode=$pic_mode |
| 12860 | |
| 12861 | # What is the maximum length of a command? |
| 12862 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 12863 | |
| 12864 | # Does compiler simultaneously support -c and -o options? |
| 12865 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 12866 | |
| 12867 | # Must we lock files when doing compilation ? |
| 12868 | need_locks=$lt_need_locks |
| 12869 | |
| 12870 | # Do we need the lib prefix for modules? |
| 12871 | need_lib_prefix=$need_lib_prefix |
| 12872 | |
| 12873 | # Do we need a version for libraries? |
| 12874 | need_version=$need_version |
| 12875 | |
| 12876 | # Whether dlopen is supported. |
| 12877 | dlopen_support=$enable_dlopen |
| 12878 | |
| 12879 | # Whether dlopen of programs is supported. |
| 12880 | dlopen_self=$enable_dlopen_self |
| 12881 | |
| 12882 | # Whether dlopen of statically linked programs is supported. |
| 12883 | dlopen_self_static=$enable_dlopen_self_static |
| 12884 | |
| 12885 | # Compiler flag to prevent dynamic linking. |
| 12886 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 12887 | |
| 12888 | # Compiler flag to turn off builtin functions. |
| 12889 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 12890 | |
| 12891 | # Compiler flag to allow reflexive dlopens. |
| 12892 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 12893 | |
| 12894 | # Compiler flag to generate shared objects directly from archives. |
| 12895 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 12896 | |
| 12897 | # Compiler flag to generate thread-safe objects. |
| 12898 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
| 12899 | |
| 12900 | # Library versioning type. |
| 12901 | version_type=$version_type |
| 12902 | |
| 12903 | # Format of library name prefix. |
| 12904 | libname_spec=$lt_libname_spec |
| 12905 | |
| 12906 | # List of archive names. First name is the real one, the rest are links. |
| 12907 | # The last name is the one that the linker finds with -lNAME. |
| 12908 | library_names_spec=$lt_library_names_spec |
| 12909 | |
| 12910 | # The coded name of the library, if different from the real name. |
| 12911 | soname_spec=$lt_soname_spec |
| 12912 | |
| 12913 | # Commands used to build and install an old-style archive. |
| 12914 | RANLIB=$lt_RANLIB |
| 12915 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 12916 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 12917 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 12918 | |
| 12919 | # Create an old-style archive from a shared archive. |
| 12920 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 12921 | |
| 12922 | # Create a temporary old-style archive to link instead of a shared archive. |
| 12923 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 12924 | |
| 12925 | # Commands used to build and install a shared archive. |
| 12926 | archive_cmds=$lt_archive_cmds_CXX |
| 12927 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 12928 | postinstall_cmds=$lt_postinstall_cmds |
| 12929 | postuninstall_cmds=$lt_postuninstall_cmds |
| 12930 | |
| 12931 | # Commands used to build a loadable module (assumed same as above if empty) |
| 12932 | module_cmds=$lt_module_cmds_CXX |
| 12933 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 12934 | |
| 12935 | # Commands to strip libraries. |
| 12936 | old_striplib=$lt_old_striplib |
| 12937 | striplib=$lt_striplib |
| 12938 | |
| 12939 | # Dependencies to place before the objects being linked to create a |
| 12940 | # shared library. |
| 12941 | predep_objects=$lt_predep_objects_CXX |
| 12942 | |
| 12943 | # Dependencies to place after the objects being linked to create a |
| 12944 | # shared library. |
| 12945 | postdep_objects=$lt_postdep_objects_CXX |
| 12946 | |
| 12947 | # Dependencies to place before the objects being linked to create a |
| 12948 | # shared library. |
| 12949 | predeps=$lt_predeps_CXX |
| 12950 | |
| 12951 | # Dependencies to place after the objects being linked to create a |
| 12952 | # shared library. |
| 12953 | postdeps=$lt_postdeps_CXX |
| 12954 | |
| 12955 | # The library search path used internally by the compiler when linking |
| 12956 | # a shared library. |
| 12957 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 12958 | |
| 12959 | # Method to check whether dependent libraries are shared objects. |
| 12960 | deplibs_check_method=$lt_deplibs_check_method |
| 12961 | |
| 12962 | # Command to use when deplibs_check_method == file_magic. |
| 12963 | file_magic_cmd=$lt_file_magic_cmd |
| 12964 | |
| 12965 | # Flag that allows shared libraries with undefined symbols to be built. |
| 12966 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 12967 | |
| 12968 | # Flag that forces no undefined symbols. |
| 12969 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 12970 | |
| 12971 | # Commands used to finish a libtool library installation in a directory. |
| 12972 | finish_cmds=$lt_finish_cmds |
| 12973 | |
| 12974 | # Same as above, but a single script fragment to be evaled but not shown. |
| 12975 | finish_eval=$lt_finish_eval |
| 12976 | |
| 12977 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 12978 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 12979 | |
| 12980 | # Transform the output of nm in a proper C declaration |
| 12981 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 12982 | |
| 12983 | # Transform the output of nm in a C name address pair |
| 12984 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 12985 | |
| 12986 | # This is the shared library runtime path variable. |
| 12987 | runpath_var=$runpath_var |
| 12988 | |
| 12989 | # This is the shared library path variable. |
| 12990 | shlibpath_var=$shlibpath_var |
| 12991 | |
| 12992 | # Is shlibpath searched before the hard-coded library search path? |
| 12993 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 12994 | |
| 12995 | # How to hardcode a shared library path into an executable. |
| 12996 | hardcode_action=$hardcode_action_CXX |
| 12997 | |
| 12998 | # Whether we should hardcode library paths into libraries. |
| 12999 | hardcode_into_libs=$hardcode_into_libs |
| 13000 | |
| 13001 | # Flag to hardcode \$libdir into a binary during linking. |
| 13002 | # This must work even if \$libdir does not exist. |
| 13003 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 13004 | |
| 13005 | # If ld is used when linking, flag to hardcode \$libdir into |
| 13006 | # a binary during linking. This must work even if \$libdir does |
| 13007 | # not exist. |
| 13008 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 13009 | |
| 13010 | # Whether we need a single -rpath flag with a separated argument. |
| 13011 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 13012 | |
| 13013 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 13014 | # resulting binary. |
| 13015 | hardcode_direct=$hardcode_direct_CXX |
| 13016 | |
| 13017 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 13018 | # resulting binary. |
| 13019 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 13020 | |
| 13021 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 13022 | # the resulting binary. |
| 13023 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 13024 | |
| 13025 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 13026 | # and all subsequent libraries and executables linked against it. |
| 13027 | hardcode_automatic=$hardcode_automatic_CXX |
| 13028 | |
| 13029 | # Variables whose values should be saved in libtool wrapper scripts and |
| 13030 | # restored at relink time. |
| 13031 | variables_saved_for_relink="$variables_saved_for_relink" |
| 13032 | |
| 13033 | # Whether libtool must link a program against all its dependency libraries. |
| 13034 | link_all_deplibs=$link_all_deplibs_CXX |
| 13035 | |
| 13036 | # Compile-time system search path for libraries |
| 13037 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 13038 | |
| 13039 | # Run-time system search path for libraries |
| 13040 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 13041 | |
| 13042 | # Fix the shell variable \$srcfile for the compiler. |
| 13043 | fix_srcfile_path="$fix_srcfile_path_CXX" |
| 13044 | |
| 13045 | # Set to yes if exported symbols are required. |
| 13046 | always_export_symbols=$always_export_symbols_CXX |
| 13047 | |
| 13048 | # The commands to list exported symbols. |
| 13049 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 13050 | |
| 13051 | # The commands to extract the exported symbol list from a shared archive. |
| 13052 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 13053 | |
| 13054 | # Symbols that should not be listed in the preloaded symbols. |
| 13055 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 13056 | |
| 13057 | # Symbols that must always be exported. |
| 13058 | include_expsyms=$lt_include_expsyms_CXX |
| 13059 | |
| 13060 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 13061 | |
| 13062 | __EOF__ |
| 13063 | |
| 13064 | |
| 13065 | else |
| 13066 | # If there is no Makefile yet, we rely on a make rule to execute |
| 13067 | # `config.status --recheck' to rerun these tests and create the |
| 13068 | # libtool script then. |
| 13069 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 13070 | if test -f "$ltmain_in"; then |
| 13071 | test -f Makefile && make "$ltmain" |
| 13072 | fi |
| 13073 | fi |
| 13074 | |
| 13075 | |
| 13076 | ac_ext=c |
| 13077 | ac_cpp='$CPP $CPPFLAGS' |
| 13078 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13079 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13080 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 13081 | |
| 13082 | CC=$lt_save_CC |
| 13083 | LDCXX=$LD |
| 13084 | LD=$lt_save_LD |
| 13085 | GCC=$lt_save_GCC |
| 13086 | with_gnu_ldcxx=$with_gnu_ld |
| 13087 | with_gnu_ld=$lt_save_with_gnu_ld |
| 13088 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 13089 | lt_cv_path_LD=$lt_save_path_LD |
| 13090 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 13091 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 13092 | |
| 13093 | else |
| 13094 | tagname="" |
| 13095 | fi |
| 13096 | ;; |
| 13097 | |
| 13098 | F77) |
| 13099 | if test -n "$F77" && test "X$F77" != "Xno"; then |
| 13100 | |
| 13101 | ac_ext=f |
| 13102 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 13103 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13104 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 13105 | |
| 13106 | |
| 13107 | archive_cmds_need_lc_F77=no |
| 13108 | allow_undefined_flag_F77= |
| 13109 | always_export_symbols_F77=no |
| 13110 | archive_expsym_cmds_F77= |
| 13111 | export_dynamic_flag_spec_F77= |
| 13112 | hardcode_direct_F77=no |
| 13113 | hardcode_libdir_flag_spec_F77= |
| 13114 | hardcode_libdir_flag_spec_ld_F77= |
| 13115 | hardcode_libdir_separator_F77= |
| 13116 | hardcode_minus_L_F77=no |
| 13117 | hardcode_automatic_F77=no |
| 13118 | module_cmds_F77= |
| 13119 | module_expsym_cmds_F77= |
| 13120 | link_all_deplibs_F77=unknown |
| 13121 | old_archive_cmds_F77=$old_archive_cmds |
| 13122 | no_undefined_flag_F77= |
| 13123 | whole_archive_flag_spec_F77= |
| 13124 | enable_shared_with_static_runtimes_F77=no |
| 13125 | |
| 13126 | # Source file extension for f77 test sources. |
| 13127 | ac_ext=f |
| 13128 | |
| 13129 | # Object file extension for compiled f77 test sources. |
| 13130 | objext=o |
| 13131 | objext_F77=$objext |
| 13132 | |
| 13133 | # Code to be used in simple compile tests |
| 13134 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
| 13135 | |
| 13136 | # Code to be used in simple link tests |
| 13137 | lt_simple_link_test_code=" program t\n end\n" |
| 13138 | |
| 13139 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 13140 | |
| 13141 | # If no C compiler was specified, use CC. |
| 13142 | LTCC=${LTCC-"$CC"} |
| 13143 | |
| 13144 | # Allow CC to be a program name with arguments. |
| 13145 | compiler=$CC |
| 13146 | |
| 13147 | |
| 13148 | # Allow CC to be a program name with arguments. |
| 13149 | lt_save_CC="$CC" |
| 13150 | CC=${F77-"f77"} |
| 13151 | compiler=$CC |
| 13152 | compiler_F77=$CC |
| 13153 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
| 13154 | |
| 13155 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 13156 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
| 13157 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 13158 | echo "${ECHO_T}$can_build_shared" >&6 |
| 13159 | |
| 13160 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 13161 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
| 13162 | test "$can_build_shared" = "no" && enable_shared=no |
| 13163 | |
| 13164 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 13165 | # are all built from PIC. |
| 13166 | case "$host_os" in |
| 13167 | aix3*) |
| 13168 | test "$enable_shared" = yes && enable_static=no |
| 13169 | if test -n "$RANLIB"; then |
| 13170 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 13171 | postinstall_cmds='$RANLIB $lib' |
| 13172 | fi |
| 13173 | ;; |
| 13174 | aix4* | aix5*) |
| 13175 | test "$enable_shared" = yes && enable_static=no |
| 13176 | ;; |
| 13177 | esac |
| 13178 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 13179 | echo "${ECHO_T}$enable_shared" >&6 |
| 13180 | |
| 13181 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 13182 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
| 13183 | # Make sure either enable_shared or enable_static is yes. |
| 13184 | test "$enable_shared" = yes || enable_static=yes |
| 13185 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 13186 | echo "${ECHO_T}$enable_static" >&6 |
| 13187 | |
| 13188 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 13189 | |
| 13190 | GCC_F77="$G77" |
| 13191 | LD_F77="$LD" |
| 13192 | |
| 13193 | lt_prog_compiler_wl_F77= |
| 13194 | lt_prog_compiler_pic_F77= |
| 13195 | lt_prog_compiler_static_F77= |
| 13196 | |
| 13197 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 13198 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 13199 | |
| 13200 | if test "$GCC" = yes; then |
| 13201 | lt_prog_compiler_wl_F77='-Wl,' |
| 13202 | lt_prog_compiler_static_F77='-static' |
| 13203 | |
| 13204 | case $host_os in |
| 13205 | aix*) |
| 13206 | # All AIX code is PIC. |
| 13207 | if test "$host_cpu" = ia64; then |
| 13208 | # AIX 5 now supports IA64 processor |
| 13209 | lt_prog_compiler_static_F77='-Bstatic' |
| 13210 | fi |
| 13211 | ;; |
| 13212 | |
| 13213 | amigaos*) |
| 13214 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 13215 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 13216 | # like `-m68040'. |
| 13217 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
| 13218 | ;; |
| 13219 | |
| 13220 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 13221 | # PIC is the default for these OSes. |
| 13222 | ;; |
| 13223 | |
| 13224 | mingw* | pw32* | os2*) |
| 13225 | # This hack is so that the source file can tell whether it is being |
| 13226 | # built for inclusion in a dll (and should export symbols for example). |
| 13227 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 13228 | ;; |
| 13229 | |
| 13230 | darwin* | rhapsody*) |
| 13231 | # PIC is the default on this platform |
| 13232 | # Common symbols not allowed in MH_DYLIB files |
| 13233 | lt_prog_compiler_pic_F77='-fno-common' |
| 13234 | ;; |
| 13235 | |
| 13236 | msdosdjgpp*) |
| 13237 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 13238 | # on systems that don't support them. |
| 13239 | lt_prog_compiler_can_build_shared_F77=no |
| 13240 | enable_shared=no |
| 13241 | ;; |
| 13242 | |
| 13243 | sysv4*MP*) |
| 13244 | if test -d /usr/nec; then |
| 13245 | lt_prog_compiler_pic_F77=-Kconform_pic |
| 13246 | fi |
| 13247 | ;; |
| 13248 | |
| 13249 | hpux*) |
| 13250 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 13251 | # not for PA HP-UX. |
| 13252 | case "$host_cpu" in |
| 13253 | hppa*64*|ia64*) |
| 13254 | # +Z the default |
| 13255 | ;; |
| 13256 | *) |
| 13257 | lt_prog_compiler_pic_F77='-fPIC' |
| 13258 | ;; |
| 13259 | esac |
| 13260 | ;; |
| 13261 | |
| 13262 | *) |
| 13263 | lt_prog_compiler_pic_F77='-fPIC' |
| 13264 | ;; |
| 13265 | esac |
| 13266 | else |
| 13267 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 13268 | case $host_os in |
| 13269 | aix*) |
| 13270 | lt_prog_compiler_wl_F77='-Wl,' |
| 13271 | if test "$host_cpu" = ia64; then |
| 13272 | # AIX 5 now supports IA64 processor |
| 13273 | lt_prog_compiler_static_F77='-Bstatic' |
| 13274 | else |
| 13275 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
| 13276 | fi |
| 13277 | ;; |
| 13278 | |
| 13279 | mingw* | pw32* | os2*) |
| 13280 | # This hack is so that the source file can tell whether it is being |
| 13281 | # built for inclusion in a dll (and should export symbols for example). |
| 13282 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 13283 | ;; |
| 13284 | |
| 13285 | hpux9* | hpux10* | hpux11*) |
| 13286 | lt_prog_compiler_wl_F77='-Wl,' |
| 13287 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 13288 | # not for PA HP-UX. |
| 13289 | case "$host_cpu" in |
| 13290 | hppa*64*|ia64*) |
| 13291 | # +Z the default |
| 13292 | ;; |
| 13293 | *) |
| 13294 | lt_prog_compiler_pic_F77='+Z' |
| 13295 | ;; |
| 13296 | esac |
| 13297 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 13298 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
| 13299 | ;; |
| 13300 | |
| 13301 | irix5* | irix6* | nonstopux*) |
| 13302 | lt_prog_compiler_wl_F77='-Wl,' |
| 13303 | # PIC (with -KPIC) is the default. |
| 13304 | lt_prog_compiler_static_F77='-non_shared' |
| 13305 | ;; |
| 13306 | |
| 13307 | newsos6) |
| 13308 | lt_prog_compiler_pic_F77='-KPIC' |
| 13309 | lt_prog_compiler_static_F77='-Bstatic' |
| 13310 | ;; |
| 13311 | |
| 13312 | linux*) |
| 13313 | case $CC in |
| 13314 | icc* | ecc*) |
| 13315 | lt_prog_compiler_wl_F77='-Wl,' |
| 13316 | lt_prog_compiler_pic_F77='-KPIC' |
| 13317 | lt_prog_compiler_static_F77='-static' |
| 13318 | ;; |
| 13319 | ccc*) |
| 13320 | lt_prog_compiler_wl_F77='-Wl,' |
| 13321 | # All Alpha code is PIC. |
| 13322 | lt_prog_compiler_static_F77='-non_shared' |
| 13323 | ;; |
| 13324 | esac |
| 13325 | ;; |
| 13326 | |
| 13327 | osf3* | osf4* | osf5*) |
| 13328 | lt_prog_compiler_wl_F77='-Wl,' |
| 13329 | # All OSF/1 code is PIC. |
| 13330 | lt_prog_compiler_static_F77='-non_shared' |
| 13331 | ;; |
| 13332 | |
| 13333 | sco3.2v5*) |
| 13334 | lt_prog_compiler_pic_F77='-Kpic' |
| 13335 | lt_prog_compiler_static_F77='-dn' |
| 13336 | ;; |
| 13337 | |
| 13338 | solaris*) |
| 13339 | lt_prog_compiler_wl_F77='-Wl,' |
| 13340 | lt_prog_compiler_pic_F77='-KPIC' |
| 13341 | lt_prog_compiler_static_F77='-Bstatic' |
| 13342 | ;; |
| 13343 | |
| 13344 | sunos4*) |
| 13345 | lt_prog_compiler_wl_F77='-Qoption ld ' |
| 13346 | lt_prog_compiler_pic_F77='-PIC' |
| 13347 | lt_prog_compiler_static_F77='-Bstatic' |
| 13348 | ;; |
| 13349 | |
| 13350 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 13351 | lt_prog_compiler_wl_F77='-Wl,' |
| 13352 | lt_prog_compiler_pic_F77='-KPIC' |
| 13353 | lt_prog_compiler_static_F77='-Bstatic' |
| 13354 | ;; |
| 13355 | |
| 13356 | sysv4*MP*) |
| 13357 | if test -d /usr/nec ;then |
| 13358 | lt_prog_compiler_pic_F77='-Kconform_pic' |
| 13359 | lt_prog_compiler_static_F77='-Bstatic' |
| 13360 | fi |
| 13361 | ;; |
| 13362 | |
| 13363 | uts4*) |
| 13364 | lt_prog_compiler_pic_F77='-pic' |
| 13365 | lt_prog_compiler_static_F77='-Bstatic' |
| 13366 | ;; |
| 13367 | |
| 13368 | *) |
| 13369 | lt_prog_compiler_can_build_shared_F77=no |
| 13370 | ;; |
| 13371 | esac |
| 13372 | fi |
| 13373 | |
| 13374 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
| 13375 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 |
| 13376 | |
| 13377 | # |
| 13378 | # Check to make sure the PIC flag actually works. |
| 13379 | # |
| 13380 | if test -n "$lt_prog_compiler_pic_F77"; then |
| 13381 | |
| 13382 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
| 13383 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 |
| 13384 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
| 13385 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13386 | else |
| 13387 | lt_prog_compiler_pic_works_F77=no |
| 13388 | ac_outfile=conftest.$ac_objext |
| 13389 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 13390 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
| 13391 | # Insert the option either (1) after the last *FLAGS variable, or |
| 13392 | # (2) before a word containing "conftest.", or (3) at the end. |
| 13393 | # Note that $ac_compile itself does not contain backslashes and begins |
| 13394 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 13395 | # The option is referenced via a variable to avoid confusing sed. |
| 13396 | lt_compile=`echo "$ac_compile" | $SED \ |
| 13397 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 13398 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 13399 | -e 's:$: $lt_compiler_flag:'` |
Lev Walkin | 33cded1 | 2004-09-19 19:40:52 +0000 | [diff] [blame] | 13400 | (eval echo "\"\$as_me:13400: $lt_compile\"" >&5) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13401 | (eval "$lt_compile" 2>conftest.err) |
| 13402 | ac_status=$? |
| 13403 | cat conftest.err >&5 |
Lev Walkin | 33cded1 | 2004-09-19 19:40:52 +0000 | [diff] [blame] | 13404 | echo "$as_me:13404: \$? = $ac_status" >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13405 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 13406 | # The compiler can only warn and ignore the option if not recognized |
| 13407 | # So say no if there are warnings |
| 13408 | if test ! -s conftest.err; then |
| 13409 | lt_prog_compiler_pic_works_F77=yes |
| 13410 | fi |
| 13411 | fi |
| 13412 | $rm conftest* |
| 13413 | |
| 13414 | fi |
| 13415 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
| 13416 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 |
| 13417 | |
| 13418 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
| 13419 | case $lt_prog_compiler_pic_F77 in |
| 13420 | "" | " "*) ;; |
| 13421 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
| 13422 | esac |
| 13423 | else |
| 13424 | lt_prog_compiler_pic_F77= |
| 13425 | lt_prog_compiler_can_build_shared_F77=no |
| 13426 | fi |
| 13427 | |
| 13428 | fi |
| 13429 | case "$host_os" in |
| 13430 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 13431 | *djgpp*) |
| 13432 | lt_prog_compiler_pic_F77= |
| 13433 | ;; |
| 13434 | *) |
| 13435 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
| 13436 | ;; |
| 13437 | esac |
| 13438 | |
| 13439 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 13440 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 13441 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
| 13442 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13443 | else |
| 13444 | lt_cv_prog_compiler_c_o_F77=no |
| 13445 | $rm -r conftest 2>/dev/null |
| 13446 | mkdir conftest |
| 13447 | cd conftest |
| 13448 | mkdir out |
| 13449 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 13450 | |
| 13451 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 13452 | # Insert the option either (1) after the last *FLAGS variable, or |
| 13453 | # (2) before a word containing "conftest.", or (3) at the end. |
| 13454 | # Note that $ac_compile itself does not contain backslashes and begins |
| 13455 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 13456 | lt_compile=`echo "$ac_compile" | $SED \ |
| 13457 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 13458 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 13459 | -e 's:$: $lt_compiler_flag:'` |
Lev Walkin | 33cded1 | 2004-09-19 19:40:52 +0000 | [diff] [blame] | 13460 | (eval echo "\"\$as_me:13460: $lt_compile\"" >&5) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13461 | (eval "$lt_compile" 2>out/conftest.err) |
| 13462 | ac_status=$? |
| 13463 | cat out/conftest.err >&5 |
Lev Walkin | 33cded1 | 2004-09-19 19:40:52 +0000 | [diff] [blame] | 13464 | echo "$as_me:13464: \$? = $ac_status" >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13465 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 13466 | then |
| 13467 | # The compiler can only warn and ignore the option if not recognized |
| 13468 | # So say no if there are warnings |
| 13469 | if test ! -s out/conftest.err; then |
| 13470 | lt_cv_prog_compiler_c_o_F77=yes |
| 13471 | fi |
| 13472 | fi |
| 13473 | chmod u+w . |
| 13474 | $rm conftest* |
| 13475 | # SGI C++ compiler will create directory out/ii_files/ for |
| 13476 | # template instantiation |
| 13477 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 13478 | $rm out/* && rmdir out |
| 13479 | cd .. |
| 13480 | rmdir conftest |
| 13481 | $rm conftest* |
| 13482 | |
| 13483 | fi |
| 13484 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
| 13485 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 |
| 13486 | |
| 13487 | |
| 13488 | hard_links="nottested" |
| 13489 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
| 13490 | # do not overwrite the value of need_locks provided by the user |
| 13491 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 13492 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 13493 | hard_links=yes |
| 13494 | $rm conftest* |
| 13495 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 13496 | touch conftest.a |
| 13497 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 13498 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 13499 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 13500 | echo "${ECHO_T}$hard_links" >&6 |
| 13501 | if test "$hard_links" = no; then |
| 13502 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 13503 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 13504 | need_locks=warn |
| 13505 | fi |
| 13506 | else |
| 13507 | need_locks=no |
| 13508 | fi |
| 13509 | |
| 13510 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 13511 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 13512 | |
| 13513 | runpath_var= |
| 13514 | allow_undefined_flag_F77= |
| 13515 | enable_shared_with_static_runtimes_F77=no |
| 13516 | archive_cmds_F77= |
| 13517 | archive_expsym_cmds_F77= |
| 13518 | old_archive_From_new_cmds_F77= |
| 13519 | old_archive_from_expsyms_cmds_F77= |
| 13520 | export_dynamic_flag_spec_F77= |
| 13521 | whole_archive_flag_spec_F77= |
| 13522 | thread_safe_flag_spec_F77= |
| 13523 | hardcode_libdir_flag_spec_F77= |
| 13524 | hardcode_libdir_flag_spec_ld_F77= |
| 13525 | hardcode_libdir_separator_F77= |
| 13526 | hardcode_direct_F77=no |
| 13527 | hardcode_minus_L_F77=no |
| 13528 | hardcode_shlibpath_var_F77=unsupported |
| 13529 | link_all_deplibs_F77=unknown |
| 13530 | hardcode_automatic_F77=no |
| 13531 | module_cmds_F77= |
| 13532 | module_expsym_cmds_F77= |
| 13533 | always_export_symbols_F77=no |
| 13534 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 13535 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 13536 | # included in the symbol list |
| 13537 | include_expsyms_F77= |
| 13538 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 13539 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 13540 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 13541 | # as well as any symbol that contains `d'. |
| 13542 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
| 13543 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 13544 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 13545 | # the symbol is explicitly referenced. Since portable code cannot |
| 13546 | # rely on this symbol name, it's probably fine to never include it in |
| 13547 | # preloaded symbol tables. |
| 13548 | extract_expsyms_cmds= |
| 13549 | |
| 13550 | case $host_os in |
| 13551 | cygwin* | mingw* | pw32*) |
| 13552 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 13553 | # When not using gcc, we currently assume that we are using |
| 13554 | # Microsoft Visual C++. |
| 13555 | if test "$GCC" != yes; then |
| 13556 | with_gnu_ld=no |
| 13557 | fi |
| 13558 | ;; |
| 13559 | openbsd*) |
| 13560 | with_gnu_ld=no |
| 13561 | ;; |
| 13562 | esac |
| 13563 | |
| 13564 | ld_shlibs_F77=yes |
| 13565 | if test "$with_gnu_ld" = yes; then |
| 13566 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 13567 | wlarc='${wl}' |
| 13568 | |
| 13569 | # See if GNU ld supports shared libraries. |
| 13570 | case $host_os in |
| 13571 | aix3* | aix4* | aix5*) |
| 13572 | # On AIX/PPC, the GNU linker is very broken |
| 13573 | if test "$host_cpu" != ia64; then |
| 13574 | ld_shlibs_F77=no |
| 13575 | cat <<EOF 1>&2 |
| 13576 | |
| 13577 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 13578 | *** to be unable to reliably create shared libraries on AIX. |
| 13579 | *** Therefore, libtool is disabling shared libraries support. If you |
| 13580 | *** really care for shared libraries, you may want to modify your PATH |
| 13581 | *** so that a non-GNU linker is found, and then restart. |
| 13582 | |
| 13583 | EOF |
| 13584 | fi |
| 13585 | ;; |
| 13586 | |
| 13587 | amigaos*) |
| 13588 | archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
| 13589 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13590 | hardcode_minus_L_F77=yes |
| 13591 | |
| 13592 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 13593 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 13594 | # to version 4, is to share data among multiple programs linked |
| 13595 | # with the same dynamic library. Since this doesn't match the |
| 13596 | # behavior of shared libraries on other platforms, we can't use |
| 13597 | # them. |
| 13598 | ld_shlibs_F77=no |
| 13599 | ;; |
| 13600 | |
| 13601 | beos*) |
| 13602 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 13603 | allow_undefined_flag_F77=unsupported |
| 13604 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 13605 | # support --undefined. This deserves some investigation. FIXME |
| 13606 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13607 | else |
| 13608 | ld_shlibs_F77=no |
| 13609 | fi |
| 13610 | ;; |
| 13611 | |
| 13612 | cygwin* | mingw* | pw32*) |
| 13613 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
| 13614 | # as there is no search path for DLLs. |
| 13615 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13616 | allow_undefined_flag_F77=unsupported |
| 13617 | always_export_symbols_F77=no |
| 13618 | enable_shared_with_static_runtimes_F77=yes |
| 13619 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 13620 | |
| 13621 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 13622 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 13623 | # If the export-symbols file already is a .def file (1st line |
| 13624 | # is EXPORTS), use it as is; otherwise, prepend... |
| 13625 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 13626 | cp $export_symbols $output_objdir/$soname.def; |
| 13627 | else |
| 13628 | echo EXPORTS > $output_objdir/$soname.def; |
| 13629 | cat $export_symbols >> $output_objdir/$soname.def; |
| 13630 | fi~ |
| 13631 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 13632 | else |
| 13633 | ld_shlibs=no |
| 13634 | fi |
| 13635 | ;; |
| 13636 | |
| 13637 | netbsd*) |
| 13638 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 13639 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 13640 | wlarc= |
| 13641 | else |
| 13642 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13643 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 13644 | fi |
| 13645 | ;; |
| 13646 | |
| 13647 | solaris* | sysv5*) |
| 13648 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 13649 | ld_shlibs_F77=no |
| 13650 | cat <<EOF 1>&2 |
| 13651 | |
| 13652 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 13653 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 13654 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 13655 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 13656 | *** your PATH or compiler configuration so that the native linker is |
| 13657 | *** used, and then restart. |
| 13658 | |
| 13659 | EOF |
| 13660 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 13661 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13662 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 13663 | else |
| 13664 | ld_shlibs_F77=no |
| 13665 | fi |
| 13666 | ;; |
| 13667 | |
| 13668 | sunos4*) |
| 13669 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 13670 | wlarc= |
| 13671 | hardcode_direct_F77=yes |
| 13672 | hardcode_shlibpath_var_F77=no |
| 13673 | ;; |
| 13674 | |
| 13675 | linux*) |
| 13676 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 13677 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13678 | archive_cmds_F77="$tmp_archive_cmds" |
| 13679 | supports_anon_versioning=no |
| 13680 | case `$LD -v 2>/dev/null` in |
| 13681 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 13682 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 13683 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 13684 | *\ 2.11.*) ;; # other 2.11 versions |
| 13685 | *) supports_anon_versioning=yes ;; |
| 13686 | esac |
| 13687 | if test $supports_anon_versioning = yes; then |
| 13688 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 13689 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 13690 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 13691 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 13692 | else |
| 13693 | archive_expsym_cmds_F77="$tmp_archive_cmds" |
| 13694 | fi |
| 13695 | else |
| 13696 | ld_shlibs_F77=no |
| 13697 | fi |
| 13698 | ;; |
| 13699 | |
| 13700 | *) |
| 13701 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 13702 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13703 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 13704 | else |
| 13705 | ld_shlibs_F77=no |
| 13706 | fi |
| 13707 | ;; |
| 13708 | esac |
| 13709 | |
| 13710 | if test "$ld_shlibs_F77" = yes; then |
| 13711 | runpath_var=LD_RUN_PATH |
| 13712 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
| 13713 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
| 13714 | # ancient GNU ld didn't support --whole-archive et. al. |
| 13715 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 13716 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 13717 | else |
| 13718 | whole_archive_flag_spec_F77= |
| 13719 | fi |
| 13720 | fi |
| 13721 | else |
| 13722 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 13723 | case $host_os in |
| 13724 | aix3*) |
| 13725 | allow_undefined_flag_F77=unsupported |
| 13726 | always_export_symbols_F77=yes |
| 13727 | archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
| 13728 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 13729 | # are no directories specified by -L. |
| 13730 | hardcode_minus_L_F77=yes |
| 13731 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 13732 | # Neither direct hardcoding nor static linking is supported with a |
| 13733 | # broken collect2. |
| 13734 | hardcode_direct_F77=unsupported |
| 13735 | fi |
| 13736 | ;; |
| 13737 | |
| 13738 | aix4* | aix5*) |
| 13739 | if test "$host_cpu" = ia64; then |
| 13740 | # On IA64, the linker does run time linking by default, so we don't |
| 13741 | # have to do anything special. |
| 13742 | aix_use_runtimelinking=no |
| 13743 | exp_sym_flag='-Bexport' |
| 13744 | no_entry_flag="" |
| 13745 | else |
| 13746 | # If we're using GNU nm, then we don't want the "-C" option. |
| 13747 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 13748 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 13749 | export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 13750 | else |
| 13751 | export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 13752 | fi |
| 13753 | aix_use_runtimelinking=no |
| 13754 | |
| 13755 | # Test if we are trying to use run time linking or normal |
| 13756 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 13757 | # need to do runtime linking. |
| 13758 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 13759 | for ld_flag in $LDFLAGS; do |
| 13760 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 13761 | aix_use_runtimelinking=yes |
| 13762 | break |
| 13763 | fi |
| 13764 | done |
| 13765 | esac |
| 13766 | |
| 13767 | exp_sym_flag='-bexport' |
| 13768 | no_entry_flag='-bnoentry' |
| 13769 | fi |
| 13770 | |
| 13771 | # When large executables or shared objects are built, AIX ld can |
| 13772 | # have problems creating the table of contents. If linking a library |
| 13773 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 13774 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 13775 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 13776 | |
| 13777 | archive_cmds_F77='' |
| 13778 | hardcode_direct_F77=yes |
| 13779 | hardcode_libdir_separator_F77=':' |
| 13780 | link_all_deplibs_F77=yes |
| 13781 | |
| 13782 | if test "$GCC" = yes; then |
| 13783 | case $host_os in aix4.012|aix4.012.*) |
| 13784 | # We only want to do this on AIX 4.2 and lower, the check |
| 13785 | # below for broken collect2 doesn't work under 4.3+ |
| 13786 | collect2name=`${CC} -print-prog-name=collect2` |
| 13787 | if test -f "$collect2name" && \ |
| 13788 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 13789 | then |
| 13790 | # We have reworked collect2 |
| 13791 | hardcode_direct_F77=yes |
| 13792 | else |
| 13793 | # We have old collect2 |
| 13794 | hardcode_direct_F77=unsupported |
| 13795 | # It fails to find uninstalled libraries when the uninstalled |
| 13796 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 13797 | # to unsupported forces relinking |
| 13798 | hardcode_minus_L_F77=yes |
| 13799 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13800 | hardcode_libdir_separator_F77= |
| 13801 | fi |
| 13802 | esac |
| 13803 | shared_flag='-shared' |
| 13804 | else |
| 13805 | # not using gcc |
| 13806 | if test "$host_cpu" = ia64; then |
| 13807 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 13808 | # chokes on -Wl,-G. The following line is correct: |
| 13809 | shared_flag='-G' |
| 13810 | else |
| 13811 | if test "$aix_use_runtimelinking" = yes; then |
| 13812 | shared_flag='${wl}-G' |
| 13813 | else |
| 13814 | shared_flag='${wl}-bM:SRE' |
| 13815 | fi |
| 13816 | fi |
| 13817 | fi |
| 13818 | |
| 13819 | # It seems that -bexpall does not export symbols beginning with |
| 13820 | # underscore (_), so it is better to generate a list of symbols to export. |
| 13821 | always_export_symbols_F77=yes |
| 13822 | if test "$aix_use_runtimelinking" = yes; then |
| 13823 | # Warning - without using the other runtime loading flags (-brtl), |
| 13824 | # -berok will link without error, but may produce a broken library. |
| 13825 | allow_undefined_flag_F77='-berok' |
| 13826 | # Determine the default libpath from the value encoded in an empty executable. |
| 13827 | cat >conftest.$ac_ext <<_ACEOF |
| 13828 | program main |
| 13829 | |
| 13830 | end |
| 13831 | _ACEOF |
| 13832 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13833 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13834 | (eval $ac_link) 2>conftest.er1 |
| 13835 | ac_status=$? |
| 13836 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13837 | rm -f conftest.er1 |
| 13838 | cat conftest.err >&5 |
| 13839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13840 | (exit $ac_status); } && |
| 13841 | { ac_try='test -z "$ac_f77_werror_flag" |
| 13842 | || test ! -s conftest.err' |
| 13843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13844 | (eval $ac_try) 2>&5 |
| 13845 | ac_status=$? |
| 13846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13847 | (exit $ac_status); }; } && |
| 13848 | { ac_try='test -s conftest$ac_exeext' |
| 13849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13850 | (eval $ac_try) 2>&5 |
| 13851 | ac_status=$? |
| 13852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13853 | (exit $ac_status); }; }; then |
| 13854 | |
| 13855 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 13856 | }'` |
| 13857 | # Check for a 64-bit object if we didn't find anything. |
| 13858 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 13859 | }'`; fi |
| 13860 | else |
| 13861 | echo "$as_me: failed program was:" >&5 |
| 13862 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13863 | |
| 13864 | fi |
| 13865 | rm -f conftest.err conftest.$ac_objext \ |
| 13866 | conftest$ac_exeext conftest.$ac_ext |
| 13867 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 13868 | |
| 13869 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 13870 | archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 13871 | else |
| 13872 | if test "$host_cpu" = ia64; then |
| 13873 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
| 13874 | allow_undefined_flag_F77="-z nodefs" |
| 13875 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
| 13876 | else |
| 13877 | # Determine the default libpath from the value encoded in an empty executable. |
| 13878 | cat >conftest.$ac_ext <<_ACEOF |
| 13879 | program main |
| 13880 | |
| 13881 | end |
| 13882 | _ACEOF |
| 13883 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13884 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13885 | (eval $ac_link) 2>conftest.er1 |
| 13886 | ac_status=$? |
| 13887 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13888 | rm -f conftest.er1 |
| 13889 | cat conftest.err >&5 |
| 13890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13891 | (exit $ac_status); } && |
| 13892 | { ac_try='test -z "$ac_f77_werror_flag" |
| 13893 | || test ! -s conftest.err' |
| 13894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13895 | (eval $ac_try) 2>&5 |
| 13896 | ac_status=$? |
| 13897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13898 | (exit $ac_status); }; } && |
| 13899 | { ac_try='test -s conftest$ac_exeext' |
| 13900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13901 | (eval $ac_try) 2>&5 |
| 13902 | ac_status=$? |
| 13903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13904 | (exit $ac_status); }; }; then |
| 13905 | |
| 13906 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 13907 | }'` |
| 13908 | # Check for a 64-bit object if we didn't find anything. |
| 13909 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 13910 | }'`; fi |
| 13911 | else |
| 13912 | echo "$as_me: failed program was:" >&5 |
| 13913 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13914 | |
| 13915 | fi |
| 13916 | rm -f conftest.err conftest.$ac_objext \ |
| 13917 | conftest$ac_exeext conftest.$ac_ext |
| 13918 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 13919 | |
| 13920 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 13921 | # Warning - without using the other run time loading flags, |
| 13922 | # -berok will link without error, but may produce a broken library. |
| 13923 | no_undefined_flag_F77=' ${wl}-bernotok' |
| 13924 | allow_undefined_flag_F77=' ${wl}-berok' |
| 13925 | # -bexpall does not export symbols beginning with underscore (_) |
| 13926 | always_export_symbols_F77=yes |
| 13927 | # Exported symbols can be pulled into shared objects from archives |
| 13928 | whole_archive_flag_spec_F77=' ' |
| 13929 | archive_cmds_need_lc_F77=yes |
| 13930 | # This is similar to how AIX traditionally builds it's shared libraries. |
| 13931 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 13932 | fi |
| 13933 | fi |
| 13934 | ;; |
| 13935 | |
| 13936 | amigaos*) |
| 13937 | archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
| 13938 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13939 | hardcode_minus_L_F77=yes |
| 13940 | # see comment about different semantics on the GNU ld section |
| 13941 | ld_shlibs_F77=no |
| 13942 | ;; |
| 13943 | |
| 13944 | bsdi4*) |
| 13945 | export_dynamic_flag_spec_F77=-rdynamic |
| 13946 | ;; |
| 13947 | |
| 13948 | cygwin* | mingw* | pw32*) |
| 13949 | # When not using gcc, we currently assume that we are using |
| 13950 | # Microsoft Visual C++. |
| 13951 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 13952 | # no search path for DLLs. |
| 13953 | hardcode_libdir_flag_spec_F77=' ' |
| 13954 | allow_undefined_flag_F77=unsupported |
| 13955 | # Tell ltmain to make .lib files, not .a files. |
| 13956 | libext=lib |
| 13957 | # Tell ltmain to make .dll files, not .so files. |
| 13958 | shrext_cmds=".dll" |
| 13959 | # FIXME: Setting linknames here is a bad hack. |
| 13960 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 13961 | # The linker will automatically build a .lib file if we build a DLL. |
| 13962 | old_archive_From_new_cmds_F77='true' |
| 13963 | # FIXME: Should let the user specify the lib program. |
| 13964 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 13965 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 13966 | enable_shared_with_static_runtimes_F77=yes |
| 13967 | ;; |
| 13968 | |
| 13969 | darwin* | rhapsody*) |
| 13970 | if test "$GXX" = yes ; then |
| 13971 | archive_cmds_need_lc_F77=no |
| 13972 | case "$host_os" in |
| 13973 | rhapsody* | darwin1.[012]) |
| 13974 | allow_undefined_flag_F77='-undefined suppress' |
| 13975 | ;; |
| 13976 | *) # Darwin 1.3 on |
| 13977 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 13978 | allow_undefined_flag_F77='-flat_namespace -undefined suppress' |
| 13979 | else |
| 13980 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 13981 | 10.[012]) |
| 13982 | allow_undefined_flag_F77='-flat_namespace -undefined suppress' |
| 13983 | ;; |
| 13984 | 10.*) |
| 13985 | allow_undefined_flag_F77='-undefined dynamic_lookup' |
| 13986 | ;; |
| 13987 | esac |
| 13988 | fi |
| 13989 | ;; |
| 13990 | esac |
| 13991 | lt_int_apple_cc_single_mod=no |
| 13992 | output_verbose_link_cmd='echo' |
| 13993 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
| 13994 | lt_int_apple_cc_single_mod=yes |
| 13995 | fi |
| 13996 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 13997 | archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 13998 | else |
| 13999 | archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 14000 | fi |
| 14001 | module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 14002 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 14003 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 14004 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 14005 | else |
| 14006 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 14007 | fi |
| 14008 | module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 14009 | hardcode_direct_F77=no |
| 14010 | hardcode_automatic_F77=yes |
| 14011 | hardcode_shlibpath_var_F77=unsupported |
| 14012 | whole_archive_flag_spec_F77='-all_load $convenience' |
| 14013 | link_all_deplibs_F77=yes |
| 14014 | else |
| 14015 | ld_shlibs_F77=no |
| 14016 | fi |
| 14017 | ;; |
| 14018 | |
| 14019 | dgux*) |
| 14020 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14021 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14022 | hardcode_shlibpath_var_F77=no |
| 14023 | ;; |
| 14024 | |
| 14025 | freebsd1*) |
| 14026 | ld_shlibs_F77=no |
| 14027 | ;; |
| 14028 | |
| 14029 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 14030 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 14031 | # does not break anything, and helps significantly (at the cost of a little |
| 14032 | # extra space). |
| 14033 | freebsd2.2*) |
| 14034 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 14035 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 14036 | hardcode_direct_F77=yes |
| 14037 | hardcode_shlibpath_var_F77=no |
| 14038 | ;; |
| 14039 | |
| 14040 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 14041 | freebsd2*) |
| 14042 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 14043 | hardcode_direct_F77=yes |
| 14044 | hardcode_minus_L_F77=yes |
| 14045 | hardcode_shlibpath_var_F77=no |
| 14046 | ;; |
| 14047 | |
| 14048 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 14049 | freebsd* | kfreebsd*-gnu) |
| 14050 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 14051 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 14052 | hardcode_direct_F77=yes |
| 14053 | hardcode_shlibpath_var_F77=no |
| 14054 | ;; |
| 14055 | |
| 14056 | hpux9*) |
| 14057 | if test "$GCC" = yes; then |
| 14058 | archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 14059 | else |
| 14060 | archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 14061 | fi |
| 14062 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 14063 | hardcode_libdir_separator_F77=: |
| 14064 | hardcode_direct_F77=yes |
| 14065 | |
| 14066 | # hardcode_minus_L: Not really in the search PATH, |
| 14067 | # but as the default location of the library. |
| 14068 | hardcode_minus_L_F77=yes |
| 14069 | export_dynamic_flag_spec_F77='${wl}-E' |
| 14070 | ;; |
| 14071 | |
| 14072 | hpux10* | hpux11*) |
| 14073 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 14074 | case "$host_cpu" in |
| 14075 | hppa*64*|ia64*) |
| 14076 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14077 | ;; |
| 14078 | *) |
| 14079 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 14080 | ;; |
| 14081 | esac |
| 14082 | else |
| 14083 | case "$host_cpu" in |
| 14084 | hppa*64*|ia64*) |
| 14085 | archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14086 | ;; |
| 14087 | *) |
| 14088 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 14089 | ;; |
| 14090 | esac |
| 14091 | fi |
| 14092 | if test "$with_gnu_ld" = no; then |
| 14093 | case "$host_cpu" in |
| 14094 | hppa*64*) |
| 14095 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 14096 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
| 14097 | hardcode_libdir_separator_F77=: |
| 14098 | hardcode_direct_F77=no |
| 14099 | hardcode_shlibpath_var_F77=no |
| 14100 | ;; |
| 14101 | ia64*) |
| 14102 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14103 | hardcode_direct_F77=no |
| 14104 | hardcode_shlibpath_var_F77=no |
| 14105 | |
| 14106 | # hardcode_minus_L: Not really in the search PATH, |
| 14107 | # but as the default location of the library. |
| 14108 | hardcode_minus_L_F77=yes |
| 14109 | ;; |
| 14110 | *) |
| 14111 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 14112 | hardcode_libdir_separator_F77=: |
| 14113 | hardcode_direct_F77=yes |
| 14114 | export_dynamic_flag_spec_F77='${wl}-E' |
| 14115 | |
| 14116 | # hardcode_minus_L: Not really in the search PATH, |
| 14117 | # but as the default location of the library. |
| 14118 | hardcode_minus_L_F77=yes |
| 14119 | ;; |
| 14120 | esac |
| 14121 | fi |
| 14122 | ;; |
| 14123 | |
| 14124 | irix5* | irix6* | nonstopux*) |
| 14125 | if test "$GCC" = yes; then |
| 14126 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 14127 | else |
| 14128 | archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 14129 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
| 14130 | fi |
| 14131 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 14132 | hardcode_libdir_separator_F77=: |
| 14133 | link_all_deplibs_F77=yes |
| 14134 | ;; |
| 14135 | |
| 14136 | netbsd*) |
| 14137 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 14138 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 14139 | else |
| 14140 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 14141 | fi |
| 14142 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 14143 | hardcode_direct_F77=yes |
| 14144 | hardcode_shlibpath_var_F77=no |
| 14145 | ;; |
| 14146 | |
| 14147 | newsos6) |
| 14148 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14149 | hardcode_direct_F77=yes |
| 14150 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 14151 | hardcode_libdir_separator_F77=: |
| 14152 | hardcode_shlibpath_var_F77=no |
| 14153 | ;; |
| 14154 | |
| 14155 | openbsd*) |
| 14156 | hardcode_direct_F77=yes |
| 14157 | hardcode_shlibpath_var_F77=no |
| 14158 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 14159 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 14160 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 14161 | export_dynamic_flag_spec_F77='${wl}-E' |
| 14162 | else |
| 14163 | case $host_os in |
| 14164 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 14165 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 14166 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 14167 | ;; |
| 14168 | *) |
| 14169 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 14170 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 14171 | ;; |
| 14172 | esac |
| 14173 | fi |
| 14174 | ;; |
| 14175 | |
| 14176 | os2*) |
| 14177 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14178 | hardcode_minus_L_F77=yes |
| 14179 | allow_undefined_flag_F77=unsupported |
| 14180 | archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
| 14181 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 14182 | ;; |
| 14183 | |
| 14184 | osf3*) |
| 14185 | if test "$GCC" = yes; then |
| 14186 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 14187 | archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 14188 | else |
| 14189 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 14190 | archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 14191 | fi |
| 14192 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 14193 | hardcode_libdir_separator_F77=: |
| 14194 | ;; |
| 14195 | |
| 14196 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 14197 | if test "$GCC" = yes; then |
| 14198 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 14199 | archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 14200 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 14201 | else |
| 14202 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 14203 | archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 14204 | archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
| 14205 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' |
| 14206 | |
| 14207 | # Both c and cxx compiler support -rpath directly |
| 14208 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
| 14209 | fi |
| 14210 | hardcode_libdir_separator_F77=: |
| 14211 | ;; |
| 14212 | |
| 14213 | sco3.2v5*) |
| 14214 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14215 | hardcode_shlibpath_var_F77=no |
| 14216 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
| 14217 | runpath_var=LD_RUN_PATH |
| 14218 | hardcode_runpath_var=yes |
| 14219 | ;; |
| 14220 | |
| 14221 | solaris*) |
| 14222 | no_undefined_flag_F77=' -z text' |
| 14223 | if test "$GCC" = yes; then |
| 14224 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14225 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 14226 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 14227 | else |
| 14228 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14229 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 14230 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 14231 | fi |
| 14232 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 14233 | hardcode_shlibpath_var_F77=no |
| 14234 | case $host_os in |
| 14235 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 14236 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 14237 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
| 14238 | esac |
| 14239 | link_all_deplibs_F77=yes |
| 14240 | ;; |
| 14241 | |
| 14242 | sunos4*) |
| 14243 | if test "x$host_vendor" = xsequent; then |
| 14244 | # Use $CC to link under sequent, because it throws in some extra .o |
| 14245 | # files that make .init and .fini sections work. |
| 14246 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14247 | else |
| 14248 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 14249 | fi |
| 14250 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14251 | hardcode_direct_F77=yes |
| 14252 | hardcode_minus_L_F77=yes |
| 14253 | hardcode_shlibpath_var_F77=no |
| 14254 | ;; |
| 14255 | |
| 14256 | sysv4) |
| 14257 | case $host_vendor in |
| 14258 | sni) |
| 14259 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14260 | hardcode_direct_F77=yes # is this really true??? |
| 14261 | ;; |
| 14262 | siemens) |
| 14263 | ## LD is ld it makes a PLAMLIB |
| 14264 | ## CC just makes a GrossModule. |
| 14265 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 14266 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
| 14267 | hardcode_direct_F77=no |
| 14268 | ;; |
| 14269 | motorola) |
| 14270 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14271 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
| 14272 | ;; |
| 14273 | esac |
| 14274 | runpath_var='LD_RUN_PATH' |
| 14275 | hardcode_shlibpath_var_F77=no |
| 14276 | ;; |
| 14277 | |
| 14278 | sysv4.3*) |
| 14279 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14280 | hardcode_shlibpath_var_F77=no |
| 14281 | export_dynamic_flag_spec_F77='-Bexport' |
| 14282 | ;; |
| 14283 | |
| 14284 | sysv4*MP*) |
| 14285 | if test -d /usr/nec; then |
| 14286 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14287 | hardcode_shlibpath_var_F77=no |
| 14288 | runpath_var=LD_RUN_PATH |
| 14289 | hardcode_runpath_var=yes |
| 14290 | ld_shlibs_F77=yes |
| 14291 | fi |
| 14292 | ;; |
| 14293 | |
| 14294 | sysv4.2uw2*) |
| 14295 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 14296 | hardcode_direct_F77=yes |
| 14297 | hardcode_minus_L_F77=no |
| 14298 | hardcode_shlibpath_var_F77=no |
| 14299 | hardcode_runpath_var=yes |
| 14300 | runpath_var=LD_RUN_PATH |
| 14301 | ;; |
| 14302 | |
| 14303 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 14304 | no_undefined_flag_F77='${wl}-z ${wl}text' |
| 14305 | if test "$GCC" = yes; then |
| 14306 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14307 | else |
| 14308 | archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14309 | fi |
| 14310 | runpath_var='LD_RUN_PATH' |
| 14311 | hardcode_shlibpath_var_F77=no |
| 14312 | ;; |
| 14313 | |
| 14314 | sysv5*) |
| 14315 | no_undefined_flag_F77=' -z text' |
| 14316 | # $CC -shared without GNU ld will not create a library from C++ |
| 14317 | # object files and a static libstdc++, better avoid it by now |
| 14318 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14319 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 14320 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 14321 | hardcode_libdir_flag_spec_F77= |
| 14322 | hardcode_shlibpath_var_F77=no |
| 14323 | runpath_var='LD_RUN_PATH' |
| 14324 | ;; |
| 14325 | |
| 14326 | uts4*) |
| 14327 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14328 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14329 | hardcode_shlibpath_var_F77=no |
| 14330 | ;; |
| 14331 | |
| 14332 | *) |
| 14333 | ld_shlibs_F77=no |
| 14334 | ;; |
| 14335 | esac |
| 14336 | fi |
| 14337 | |
| 14338 | echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
| 14339 | echo "${ECHO_T}$ld_shlibs_F77" >&6 |
| 14340 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 14341 | |
| 14342 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 14343 | if test "$GCC" = yes; then |
| 14344 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 14345 | fi |
| 14346 | |
| 14347 | # |
| 14348 | # Do we need to explicitly link libc? |
| 14349 | # |
| 14350 | case "x$archive_cmds_need_lc_F77" in |
| 14351 | x|xyes) |
| 14352 | # Assume -lc should be added |
| 14353 | archive_cmds_need_lc_F77=yes |
| 14354 | |
| 14355 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 14356 | case $archive_cmds_F77 in |
| 14357 | *'~'*) |
| 14358 | # FIXME: we may have to deal with multi-command sequences. |
| 14359 | ;; |
| 14360 | '$CC '*) |
| 14361 | # Test whether the compiler implicitly links with -lc since on some |
| 14362 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 14363 | # to ld, don't add -lc before -lgcc. |
| 14364 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 14365 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 14366 | $rm conftest* |
| 14367 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14368 | |
| 14369 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14370 | (eval $ac_compile) 2>&5 |
| 14371 | ac_status=$? |
| 14372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14373 | (exit $ac_status); } 2>conftest.err; then |
| 14374 | soname=conftest |
| 14375 | lib=conftest |
| 14376 | libobjs=conftest.$ac_objext |
| 14377 | deplibs= |
| 14378 | wl=$lt_prog_compiler_wl_F77 |
| 14379 | compiler_flags=-v |
| 14380 | linker_flags=-v |
| 14381 | verstring= |
| 14382 | output_objdir=. |
| 14383 | libname=conftest |
| 14384 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
| 14385 | allow_undefined_flag_F77= |
| 14386 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 14387 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 14388 | ac_status=$? |
| 14389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14390 | (exit $ac_status); } |
| 14391 | then |
| 14392 | archive_cmds_need_lc_F77=no |
| 14393 | else |
| 14394 | archive_cmds_need_lc_F77=yes |
| 14395 | fi |
| 14396 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
| 14397 | else |
| 14398 | cat conftest.err 1>&5 |
| 14399 | fi |
| 14400 | $rm conftest* |
| 14401 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
| 14402 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 |
| 14403 | ;; |
| 14404 | esac |
| 14405 | fi |
| 14406 | ;; |
| 14407 | esac |
| 14408 | |
| 14409 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 14410 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 14411 | library_names_spec= |
| 14412 | libname_spec='lib$name' |
| 14413 | soname_spec= |
| 14414 | shrext_cmds=".so" |
| 14415 | postinstall_cmds= |
| 14416 | postuninstall_cmds= |
| 14417 | finish_cmds= |
| 14418 | finish_eval= |
| 14419 | shlibpath_var= |
| 14420 | shlibpath_overrides_runpath=unknown |
| 14421 | version_type=none |
| 14422 | dynamic_linker="$host_os ld.so" |
| 14423 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 14424 | if test "$GCC" = yes; then |
| 14425 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 14426 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 14427 | # if the path contains ";" then we assume it to be the separator |
| 14428 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 14429 | # assumed that no part of a normal pathname contains ";" but that should |
| 14430 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 14431 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 14432 | else |
| 14433 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 14434 | fi |
| 14435 | else |
| 14436 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 14437 | fi |
| 14438 | need_lib_prefix=unknown |
| 14439 | hardcode_into_libs=no |
| 14440 | |
| 14441 | # when you set need_version to no, make sure it does not cause -set_version |
| 14442 | # flags to be left without arguments |
| 14443 | need_version=unknown |
| 14444 | |
| 14445 | case $host_os in |
| 14446 | aix3*) |
| 14447 | version_type=linux |
| 14448 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 14449 | shlibpath_var=LIBPATH |
| 14450 | |
| 14451 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 14452 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14453 | ;; |
| 14454 | |
| 14455 | aix4* | aix5*) |
| 14456 | version_type=linux |
| 14457 | need_lib_prefix=no |
| 14458 | need_version=no |
| 14459 | hardcode_into_libs=yes |
| 14460 | if test "$host_cpu" = ia64; then |
| 14461 | # AIX 5 supports IA64 |
| 14462 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 14463 | shlibpath_var=LD_LIBRARY_PATH |
| 14464 | else |
| 14465 | # With GCC up to 2.95.x, collect2 would create an import file |
| 14466 | # for dependence libraries. The import file would start with |
| 14467 | # the line `#! .'. This would cause the generated library to |
| 14468 | # depend on `.', always an invalid library. This was fixed in |
| 14469 | # development snapshots of GCC prior to 3.0. |
| 14470 | case $host_os in |
| 14471 | aix4 | aix4.[01] | aix4.[01].*) |
| 14472 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 14473 | echo ' yes ' |
| 14474 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 14475 | : |
| 14476 | else |
| 14477 | can_build_shared=no |
| 14478 | fi |
| 14479 | ;; |
| 14480 | esac |
| 14481 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 14482 | # soname into executable. Probably we can add versioning support to |
| 14483 | # collect2, so additional links can be useful in future. |
| 14484 | if test "$aix_use_runtimelinking" = yes; then |
| 14485 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 14486 | # instead of lib<name>.a to let people know that these are not |
| 14487 | # typical AIX shared libraries. |
| 14488 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14489 | else |
| 14490 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 14491 | # and later when we are not doing run time linking. |
| 14492 | library_names_spec='${libname}${release}.a $libname.a' |
| 14493 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14494 | fi |
| 14495 | shlibpath_var=LIBPATH |
| 14496 | fi |
| 14497 | ;; |
| 14498 | |
| 14499 | amigaos*) |
| 14500 | library_names_spec='$libname.ixlibrary $libname.a' |
| 14501 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 14502 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
| 14503 | ;; |
| 14504 | |
| 14505 | beos*) |
| 14506 | library_names_spec='${libname}${shared_ext}' |
| 14507 | dynamic_linker="$host_os ld.so" |
| 14508 | shlibpath_var=LIBRARY_PATH |
| 14509 | ;; |
| 14510 | |
| 14511 | bsdi4*) |
| 14512 | version_type=linux |
| 14513 | need_version=no |
| 14514 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14515 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14516 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 14517 | shlibpath_var=LD_LIBRARY_PATH |
| 14518 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 14519 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 14520 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 14521 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 14522 | # libtool to hard-code these into programs |
| 14523 | ;; |
| 14524 | |
| 14525 | cygwin* | mingw* | pw32*) |
| 14526 | version_type=windows |
| 14527 | shrext_cmds=".dll" |
| 14528 | need_version=no |
| 14529 | need_lib_prefix=no |
| 14530 | |
| 14531 | case $GCC,$host_os in |
| 14532 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 14533 | library_names_spec='$libname.dll.a' |
| 14534 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 14535 | postinstall_cmds='base_file=`basename \${file}`~ |
| 14536 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 14537 | dldir=$destdir/`dirname \$dlpath`~ |
| 14538 | test -d \$dldir || mkdir -p \$dldir~ |
| 14539 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 14540 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 14541 | dlpath=$dir/\$dldll~ |
| 14542 | $rm \$dlpath' |
| 14543 | shlibpath_overrides_runpath=yes |
| 14544 | |
| 14545 | case $host_os in |
| 14546 | cygwin*) |
| 14547 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 14548 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 14549 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 14550 | ;; |
| 14551 | mingw*) |
| 14552 | # MinGW DLLs use traditional 'lib' prefix |
| 14553 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 14554 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 14555 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 14556 | # It is most probably a Windows format PATH printed by |
| 14557 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 14558 | # path with ; separators, and with drive letters. We can handle the |
| 14559 | # drive letters (cygwin fileutils understands them), so leave them, |
| 14560 | # especially as we might pass files found there to a mingw objdump, |
| 14561 | # which wouldn't understand a cygwinified path. Ahh. |
| 14562 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 14563 | else |
| 14564 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 14565 | fi |
| 14566 | ;; |
| 14567 | pw32*) |
| 14568 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 14569 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 14570 | ;; |
| 14571 | esac |
| 14572 | ;; |
| 14573 | |
| 14574 | *) |
| 14575 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 14576 | ;; |
| 14577 | esac |
| 14578 | dynamic_linker='Win32 ld.exe' |
| 14579 | # FIXME: first we should search . and the directory the executable is in |
| 14580 | shlibpath_var=PATH |
| 14581 | ;; |
| 14582 | |
| 14583 | darwin* | rhapsody*) |
| 14584 | dynamic_linker="$host_os dyld" |
| 14585 | version_type=darwin |
| 14586 | need_lib_prefix=no |
| 14587 | need_version=no |
| 14588 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 14589 | soname_spec='${libname}${release}${major}$shared_ext' |
| 14590 | shlibpath_overrides_runpath=yes |
| 14591 | shlibpath_var=DYLD_LIBRARY_PATH |
| 14592 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
| 14593 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 14594 | if test "$GCC" = yes; then |
| 14595 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
| 14596 | else |
| 14597 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 14598 | fi |
| 14599 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 14600 | ;; |
| 14601 | |
| 14602 | dgux*) |
| 14603 | version_type=linux |
| 14604 | need_lib_prefix=no |
| 14605 | need_version=no |
| 14606 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 14607 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14608 | shlibpath_var=LD_LIBRARY_PATH |
| 14609 | ;; |
| 14610 | |
| 14611 | freebsd1*) |
| 14612 | dynamic_linker=no |
| 14613 | ;; |
| 14614 | |
| 14615 | kfreebsd*-gnu) |
| 14616 | version_type=linux |
| 14617 | need_lib_prefix=no |
| 14618 | need_version=no |
| 14619 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 14620 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14621 | shlibpath_var=LD_LIBRARY_PATH |
| 14622 | shlibpath_overrides_runpath=no |
| 14623 | hardcode_into_libs=yes |
| 14624 | dynamic_linker='GNU ld.so' |
| 14625 | ;; |
| 14626 | |
| 14627 | freebsd*) |
| 14628 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 14629 | version_type=freebsd-$objformat |
| 14630 | case $version_type in |
| 14631 | freebsd-elf*) |
| 14632 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 14633 | need_version=no |
| 14634 | need_lib_prefix=no |
| 14635 | ;; |
| 14636 | freebsd-*) |
| 14637 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 14638 | need_version=yes |
| 14639 | ;; |
| 14640 | esac |
| 14641 | shlibpath_var=LD_LIBRARY_PATH |
| 14642 | case $host_os in |
| 14643 | freebsd2*) |
| 14644 | shlibpath_overrides_runpath=yes |
| 14645 | ;; |
| 14646 | freebsd3.01* | freebsdelf3.01*) |
| 14647 | shlibpath_overrides_runpath=yes |
| 14648 | hardcode_into_libs=yes |
| 14649 | ;; |
| 14650 | *) # from 3.2 on |
| 14651 | shlibpath_overrides_runpath=no |
| 14652 | hardcode_into_libs=yes |
| 14653 | ;; |
| 14654 | esac |
| 14655 | ;; |
| 14656 | |
| 14657 | gnu*) |
| 14658 | version_type=linux |
| 14659 | need_lib_prefix=no |
| 14660 | need_version=no |
| 14661 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 14662 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14663 | shlibpath_var=LD_LIBRARY_PATH |
| 14664 | hardcode_into_libs=yes |
| 14665 | ;; |
| 14666 | |
| 14667 | hpux9* | hpux10* | hpux11*) |
| 14668 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 14669 | # link against other versions. |
| 14670 | version_type=sunos |
| 14671 | need_lib_prefix=no |
| 14672 | need_version=no |
| 14673 | case "$host_cpu" in |
| 14674 | ia64*) |
| 14675 | shrext_cmds='.so' |
| 14676 | hardcode_into_libs=yes |
| 14677 | dynamic_linker="$host_os dld.so" |
| 14678 | shlibpath_var=LD_LIBRARY_PATH |
| 14679 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 14680 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14681 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14682 | if test "X$HPUX_IA64_MODE" = X32; then |
| 14683 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 14684 | else |
| 14685 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 14686 | fi |
| 14687 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 14688 | ;; |
| 14689 | hppa*64*) |
| 14690 | shrext_cmds='.sl' |
| 14691 | hardcode_into_libs=yes |
| 14692 | dynamic_linker="$host_os dld.sl" |
| 14693 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 14694 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 14695 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14696 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14697 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 14698 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 14699 | ;; |
| 14700 | *) |
| 14701 | shrext_cmds='.sl' |
| 14702 | dynamic_linker="$host_os dld.sl" |
| 14703 | shlibpath_var=SHLIB_PATH |
| 14704 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 14705 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14706 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14707 | ;; |
| 14708 | esac |
| 14709 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 14710 | postinstall_cmds='chmod 555 $lib' |
| 14711 | ;; |
| 14712 | |
| 14713 | irix5* | irix6* | nonstopux*) |
| 14714 | case $host_os in |
| 14715 | nonstopux*) version_type=nonstopux ;; |
| 14716 | *) |
| 14717 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 14718 | version_type=linux |
| 14719 | else |
| 14720 | version_type=irix |
| 14721 | fi ;; |
| 14722 | esac |
| 14723 | need_lib_prefix=no |
| 14724 | need_version=no |
| 14725 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14726 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 14727 | case $host_os in |
| 14728 | irix5* | nonstopux*) |
| 14729 | libsuff= shlibsuff= |
| 14730 | ;; |
| 14731 | *) |
| 14732 | case $LD in # libtool.m4 will add one of these switches to LD |
| 14733 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 14734 | libsuff= shlibsuff= libmagic=32-bit;; |
| 14735 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 14736 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 14737 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 14738 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 14739 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 14740 | esac |
| 14741 | ;; |
| 14742 | esac |
| 14743 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 14744 | shlibpath_overrides_runpath=no |
| 14745 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 14746 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 14747 | hardcode_into_libs=yes |
| 14748 | ;; |
| 14749 | |
| 14750 | # No shared lib support for Linux oldld, aout, or coff. |
| 14751 | linux*oldld* | linux*aout* | linux*coff*) |
| 14752 | dynamic_linker=no |
| 14753 | ;; |
| 14754 | |
| 14755 | # This must be Linux ELF. |
| 14756 | linux*) |
| 14757 | version_type=linux |
| 14758 | need_lib_prefix=no |
| 14759 | need_version=no |
| 14760 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14761 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14762 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 14763 | shlibpath_var=LD_LIBRARY_PATH |
| 14764 | shlibpath_overrides_runpath=no |
| 14765 | # This implies no fast_install, which is unacceptable. |
| 14766 | # Some rework will be needed to allow for fast_install |
| 14767 | # before this can be enabled. |
| 14768 | hardcode_into_libs=yes |
| 14769 | |
| 14770 | # Append ld.so.conf contents to the search path |
| 14771 | if test -f /etc/ld.so.conf; then |
| 14772 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
| 14773 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 14774 | fi |
| 14775 | |
| 14776 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 14777 | # powerpc, because MkLinux only supported shared libraries with the |
| 14778 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 14779 | # most powerpc-linux boxes support dynamic linking these days and |
| 14780 | # people can always --disable-shared, the test was removed, and we |
| 14781 | # assume the GNU/Linux dynamic linker is in use. |
| 14782 | dynamic_linker='GNU/Linux ld.so' |
| 14783 | ;; |
| 14784 | |
| 14785 | knetbsd*-gnu) |
| 14786 | version_type=linux |
| 14787 | need_lib_prefix=no |
| 14788 | need_version=no |
| 14789 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 14790 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14791 | shlibpath_var=LD_LIBRARY_PATH |
| 14792 | shlibpath_overrides_runpath=no |
| 14793 | hardcode_into_libs=yes |
| 14794 | dynamic_linker='GNU ld.so' |
| 14795 | ;; |
| 14796 | |
| 14797 | netbsd*) |
| 14798 | version_type=sunos |
| 14799 | need_lib_prefix=no |
| 14800 | need_version=no |
| 14801 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 14802 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 14803 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 14804 | dynamic_linker='NetBSD (a.out) ld.so' |
| 14805 | else |
| 14806 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 14807 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14808 | dynamic_linker='NetBSD ld.elf_so' |
| 14809 | fi |
| 14810 | shlibpath_var=LD_LIBRARY_PATH |
| 14811 | shlibpath_overrides_runpath=yes |
| 14812 | hardcode_into_libs=yes |
| 14813 | ;; |
| 14814 | |
| 14815 | newsos6) |
| 14816 | version_type=linux |
| 14817 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14818 | shlibpath_var=LD_LIBRARY_PATH |
| 14819 | shlibpath_overrides_runpath=yes |
| 14820 | ;; |
| 14821 | |
| 14822 | nto-qnx*) |
| 14823 | version_type=linux |
| 14824 | need_lib_prefix=no |
| 14825 | need_version=no |
| 14826 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14827 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14828 | shlibpath_var=LD_LIBRARY_PATH |
| 14829 | shlibpath_overrides_runpath=yes |
| 14830 | ;; |
| 14831 | |
| 14832 | openbsd*) |
| 14833 | version_type=sunos |
| 14834 | need_lib_prefix=no |
| 14835 | need_version=yes |
| 14836 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 14837 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 14838 | shlibpath_var=LD_LIBRARY_PATH |
| 14839 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 14840 | case $host_os in |
| 14841 | openbsd2.[89] | openbsd2.[89].*) |
| 14842 | shlibpath_overrides_runpath=no |
| 14843 | ;; |
| 14844 | *) |
| 14845 | shlibpath_overrides_runpath=yes |
| 14846 | ;; |
| 14847 | esac |
| 14848 | else |
| 14849 | shlibpath_overrides_runpath=yes |
| 14850 | fi |
| 14851 | ;; |
| 14852 | |
| 14853 | os2*) |
| 14854 | libname_spec='$name' |
| 14855 | shrext_cmds=".dll" |
| 14856 | need_lib_prefix=no |
| 14857 | library_names_spec='$libname${shared_ext} $libname.a' |
| 14858 | dynamic_linker='OS/2 ld.exe' |
| 14859 | shlibpath_var=LIBPATH |
| 14860 | ;; |
| 14861 | |
| 14862 | osf3* | osf4* | osf5*) |
| 14863 | version_type=osf |
| 14864 | need_lib_prefix=no |
| 14865 | need_version=no |
| 14866 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14867 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14868 | shlibpath_var=LD_LIBRARY_PATH |
| 14869 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 14870 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 14871 | ;; |
| 14872 | |
| 14873 | sco3.2v5*) |
| 14874 | version_type=osf |
| 14875 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14876 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14877 | shlibpath_var=LD_LIBRARY_PATH |
| 14878 | ;; |
| 14879 | |
| 14880 | solaris*) |
| 14881 | version_type=linux |
| 14882 | need_lib_prefix=no |
| 14883 | need_version=no |
| 14884 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14885 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14886 | shlibpath_var=LD_LIBRARY_PATH |
| 14887 | shlibpath_overrides_runpath=yes |
| 14888 | hardcode_into_libs=yes |
| 14889 | # ldd complains unless libraries are executable |
| 14890 | postinstall_cmds='chmod +x $lib' |
| 14891 | ;; |
| 14892 | |
| 14893 | sunos4*) |
| 14894 | version_type=sunos |
| 14895 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 14896 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 14897 | shlibpath_var=LD_LIBRARY_PATH |
| 14898 | shlibpath_overrides_runpath=yes |
| 14899 | if test "$with_gnu_ld" = yes; then |
| 14900 | need_lib_prefix=no |
| 14901 | fi |
| 14902 | need_version=yes |
| 14903 | ;; |
| 14904 | |
| 14905 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 14906 | version_type=linux |
| 14907 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14908 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14909 | shlibpath_var=LD_LIBRARY_PATH |
| 14910 | case $host_vendor in |
| 14911 | sni) |
| 14912 | shlibpath_overrides_runpath=no |
| 14913 | need_lib_prefix=no |
| 14914 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 14915 | runpath_var=LD_RUN_PATH |
| 14916 | ;; |
| 14917 | siemens) |
| 14918 | need_lib_prefix=no |
| 14919 | ;; |
| 14920 | motorola) |
| 14921 | need_lib_prefix=no |
| 14922 | need_version=no |
| 14923 | shlibpath_overrides_runpath=no |
| 14924 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 14925 | ;; |
| 14926 | esac |
| 14927 | ;; |
| 14928 | |
| 14929 | sysv4*MP*) |
| 14930 | if test -d /usr/nec ;then |
| 14931 | version_type=linux |
| 14932 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 14933 | soname_spec='$libname${shared_ext}.$major' |
| 14934 | shlibpath_var=LD_LIBRARY_PATH |
| 14935 | fi |
| 14936 | ;; |
| 14937 | |
| 14938 | uts4*) |
| 14939 | version_type=linux |
| 14940 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14941 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14942 | shlibpath_var=LD_LIBRARY_PATH |
| 14943 | ;; |
| 14944 | |
| 14945 | *) |
| 14946 | dynamic_linker=no |
| 14947 | ;; |
| 14948 | esac |
| 14949 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 14950 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 14951 | test "$dynamic_linker" = no && can_build_shared=no |
| 14952 | |
| 14953 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 14954 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 14955 | hardcode_action_F77= |
| 14956 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
| 14957 | test -n "$runpath_var F77" || \ |
| 14958 | test "X$hardcode_automatic_F77"="Xyes" ; then |
| 14959 | |
| 14960 | # We can hardcode non-existant directories. |
| 14961 | if test "$hardcode_direct_F77" != no && |
| 14962 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 14963 | # have to relink, otherwise we might link with an installed library |
| 14964 | # when we should be linking with a yet-to-be-installed one |
| 14965 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
| 14966 | test "$hardcode_minus_L_F77" != no; then |
| 14967 | # Linking always hardcodes the temporary library directory. |
| 14968 | hardcode_action_F77=relink |
| 14969 | else |
| 14970 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 14971 | hardcode_action_F77=immediate |
| 14972 | fi |
| 14973 | else |
| 14974 | # We cannot hardcode anything, or else we can only hardcode existing |
| 14975 | # directories. |
| 14976 | hardcode_action_F77=unsupported |
| 14977 | fi |
| 14978 | echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
| 14979 | echo "${ECHO_T}$hardcode_action_F77" >&6 |
| 14980 | |
| 14981 | if test "$hardcode_action_F77" = relink; then |
| 14982 | # Fast installation is not supported |
| 14983 | enable_fast_install=no |
| 14984 | elif test "$shlibpath_overrides_runpath" = yes || |
| 14985 | test "$enable_shared" = no; then |
| 14986 | # Fast installation is not necessary |
| 14987 | enable_fast_install=needless |
| 14988 | fi |
| 14989 | |
| 14990 | striplib= |
| 14991 | old_striplib= |
| 14992 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 14993 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 14994 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 14995 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 14996 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 14997 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14998 | echo "${ECHO_T}yes" >&6 |
| 14999 | else |
| 15000 | # FIXME - insert some real tests, host_os isn't really good enough |
| 15001 | case $host_os in |
| 15002 | darwin*) |
| 15003 | if test -n "$STRIP" ; then |
| 15004 | striplib="$STRIP -x" |
| 15005 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15006 | echo "${ECHO_T}yes" >&6 |
| 15007 | else |
| 15008 | echo "$as_me:$LINENO: result: no" >&5 |
| 15009 | echo "${ECHO_T}no" >&6 |
| 15010 | fi |
| 15011 | ;; |
| 15012 | *) |
| 15013 | echo "$as_me:$LINENO: result: no" >&5 |
| 15014 | echo "${ECHO_T}no" >&6 |
| 15015 | ;; |
| 15016 | esac |
| 15017 | fi |
| 15018 | |
| 15019 | |
| 15020 | |
| 15021 | # The else clause should only fire when bootstrapping the |
| 15022 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 15023 | # with your package, and you will get complaints that there are |
| 15024 | # no rules to generate ltmain.sh. |
| 15025 | if test -f "$ltmain"; then |
| 15026 | # See if we are running on zsh, and set the options which allow our commands through |
| 15027 | # without removal of \ escapes. |
| 15028 | if test -n "${ZSH_VERSION+set}" ; then |
| 15029 | setopt NO_GLOB_SUBST |
| 15030 | fi |
| 15031 | # Now quote all the things that may contain metacharacters while being |
| 15032 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 15033 | # variables and quote the copies for generation of the libtool script. |
| 15034 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 15035 | SED SHELL STRIP \ |
| 15036 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 15037 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 15038 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 15039 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 15040 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 15041 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 15042 | old_postinstall_cmds old_postuninstall_cmds \ |
| 15043 | compiler_F77 \ |
| 15044 | CC_F77 \ |
| 15045 | LD_F77 \ |
| 15046 | lt_prog_compiler_wl_F77 \ |
| 15047 | lt_prog_compiler_pic_F77 \ |
| 15048 | lt_prog_compiler_static_F77 \ |
| 15049 | lt_prog_compiler_no_builtin_flag_F77 \ |
| 15050 | export_dynamic_flag_spec_F77 \ |
| 15051 | thread_safe_flag_spec_F77 \ |
| 15052 | whole_archive_flag_spec_F77 \ |
| 15053 | enable_shared_with_static_runtimes_F77 \ |
| 15054 | old_archive_cmds_F77 \ |
| 15055 | old_archive_from_new_cmds_F77 \ |
| 15056 | predep_objects_F77 \ |
| 15057 | postdep_objects_F77 \ |
| 15058 | predeps_F77 \ |
| 15059 | postdeps_F77 \ |
| 15060 | compiler_lib_search_path_F77 \ |
| 15061 | archive_cmds_F77 \ |
| 15062 | archive_expsym_cmds_F77 \ |
| 15063 | postinstall_cmds_F77 \ |
| 15064 | postuninstall_cmds_F77 \ |
| 15065 | old_archive_from_expsyms_cmds_F77 \ |
| 15066 | allow_undefined_flag_F77 \ |
| 15067 | no_undefined_flag_F77 \ |
| 15068 | export_symbols_cmds_F77 \ |
| 15069 | hardcode_libdir_flag_spec_F77 \ |
| 15070 | hardcode_libdir_flag_spec_ld_F77 \ |
| 15071 | hardcode_libdir_separator_F77 \ |
| 15072 | hardcode_automatic_F77 \ |
| 15073 | module_cmds_F77 \ |
| 15074 | module_expsym_cmds_F77 \ |
| 15075 | lt_cv_prog_compiler_c_o_F77 \ |
| 15076 | exclude_expsyms_F77 \ |
| 15077 | include_expsyms_F77; do |
| 15078 | |
| 15079 | case $var in |
| 15080 | old_archive_cmds_F77 | \ |
| 15081 | old_archive_from_new_cmds_F77 | \ |
| 15082 | archive_cmds_F77 | \ |
| 15083 | archive_expsym_cmds_F77 | \ |
| 15084 | module_cmds_F77 | \ |
| 15085 | module_expsym_cmds_F77 | \ |
| 15086 | old_archive_from_expsyms_cmds_F77 | \ |
| 15087 | export_symbols_cmds_F77 | \ |
| 15088 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 15089 | postinstall_cmds | postuninstall_cmds | \ |
| 15090 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 15091 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 15092 | # Double-quote double-evaled strings. |
| 15093 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 15094 | ;; |
| 15095 | *) |
| 15096 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 15097 | ;; |
| 15098 | esac |
| 15099 | done |
| 15100 | |
| 15101 | case $lt_echo in |
| 15102 | *'\$0 --fallback-echo"') |
| 15103 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 15104 | ;; |
| 15105 | esac |
| 15106 | |
| 15107 | cfgfile="$ofile" |
| 15108 | |
| 15109 | cat <<__EOF__ >> "$cfgfile" |
| 15110 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 15111 | |
| 15112 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 15113 | |
| 15114 | # Shell to use when invoking shell scripts. |
| 15115 | SHELL=$lt_SHELL |
| 15116 | |
| 15117 | # Whether or not to build shared libraries. |
| 15118 | build_libtool_libs=$enable_shared |
| 15119 | |
| 15120 | # Whether or not to build static libraries. |
| 15121 | build_old_libs=$enable_static |
| 15122 | |
| 15123 | # Whether or not to add -lc for building shared libraries. |
| 15124 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
| 15125 | |
| 15126 | # Whether or not to disallow shared libs when runtime libs are static |
| 15127 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
| 15128 | |
| 15129 | # Whether or not to optimize for fast installation. |
| 15130 | fast_install=$enable_fast_install |
| 15131 | |
| 15132 | # The host system. |
| 15133 | host_alias=$host_alias |
| 15134 | host=$host |
| 15135 | |
| 15136 | # An echo program that does not interpret backslashes. |
| 15137 | echo=$lt_echo |
| 15138 | |
| 15139 | # The archiver. |
| 15140 | AR=$lt_AR |
| 15141 | AR_FLAGS=$lt_AR_FLAGS |
| 15142 | |
| 15143 | # A C compiler. |
| 15144 | LTCC=$lt_LTCC |
| 15145 | |
| 15146 | # A language-specific compiler. |
| 15147 | CC=$lt_compiler_F77 |
| 15148 | |
| 15149 | # Is the compiler the GNU C compiler? |
| 15150 | with_gcc=$GCC_F77 |
| 15151 | |
| 15152 | # An ERE matcher. |
| 15153 | EGREP=$lt_EGREP |
| 15154 | |
| 15155 | # The linker used to build libraries. |
| 15156 | LD=$lt_LD_F77 |
| 15157 | |
| 15158 | # Whether we need hard or soft links. |
| 15159 | LN_S=$lt_LN_S |
| 15160 | |
| 15161 | # A BSD-compatible nm program. |
| 15162 | NM=$lt_NM |
| 15163 | |
| 15164 | # A symbol stripping program |
| 15165 | STRIP=$lt_STRIP |
| 15166 | |
| 15167 | # Used to examine libraries when file_magic_cmd begins "file" |
| 15168 | MAGIC_CMD=$MAGIC_CMD |
| 15169 | |
| 15170 | # Used on cygwin: DLL creation program. |
| 15171 | DLLTOOL="$DLLTOOL" |
| 15172 | |
| 15173 | # Used on cygwin: object dumper. |
| 15174 | OBJDUMP="$OBJDUMP" |
| 15175 | |
| 15176 | # Used on cygwin: assembler. |
| 15177 | AS="$AS" |
| 15178 | |
| 15179 | # The name of the directory that contains temporary libtool files. |
| 15180 | objdir=$objdir |
| 15181 | |
| 15182 | # How to create reloadable object files. |
| 15183 | reload_flag=$lt_reload_flag |
| 15184 | reload_cmds=$lt_reload_cmds |
| 15185 | |
| 15186 | # How to pass a linker flag through the compiler. |
| 15187 | wl=$lt_lt_prog_compiler_wl_F77 |
| 15188 | |
| 15189 | # Object file suffix (normally "o"). |
| 15190 | objext="$ac_objext" |
| 15191 | |
| 15192 | # Old archive suffix (normally "a"). |
| 15193 | libext="$libext" |
| 15194 | |
| 15195 | # Shared library suffix (normally ".so"). |
| 15196 | shrext_cmds='$shrext_cmds' |
| 15197 | |
| 15198 | # Executable file suffix (normally ""). |
| 15199 | exeext="$exeext" |
| 15200 | |
| 15201 | # Additional compiler flags for building library objects. |
| 15202 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
| 15203 | pic_mode=$pic_mode |
| 15204 | |
| 15205 | # What is the maximum length of a command? |
| 15206 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 15207 | |
| 15208 | # Does compiler simultaneously support -c and -o options? |
| 15209 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
| 15210 | |
| 15211 | # Must we lock files when doing compilation ? |
| 15212 | need_locks=$lt_need_locks |
| 15213 | |
| 15214 | # Do we need the lib prefix for modules? |
| 15215 | need_lib_prefix=$need_lib_prefix |
| 15216 | |
| 15217 | # Do we need a version for libraries? |
| 15218 | need_version=$need_version |
| 15219 | |
| 15220 | # Whether dlopen is supported. |
| 15221 | dlopen_support=$enable_dlopen |
| 15222 | |
| 15223 | # Whether dlopen of programs is supported. |
| 15224 | dlopen_self=$enable_dlopen_self |
| 15225 | |
| 15226 | # Whether dlopen of statically linked programs is supported. |
| 15227 | dlopen_self_static=$enable_dlopen_self_static |
| 15228 | |
| 15229 | # Compiler flag to prevent dynamic linking. |
| 15230 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
| 15231 | |
| 15232 | # Compiler flag to turn off builtin functions. |
| 15233 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
| 15234 | |
| 15235 | # Compiler flag to allow reflexive dlopens. |
| 15236 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
| 15237 | |
| 15238 | # Compiler flag to generate shared objects directly from archives. |
| 15239 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
| 15240 | |
| 15241 | # Compiler flag to generate thread-safe objects. |
| 15242 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
| 15243 | |
| 15244 | # Library versioning type. |
| 15245 | version_type=$version_type |
| 15246 | |
| 15247 | # Format of library name prefix. |
| 15248 | libname_spec=$lt_libname_spec |
| 15249 | |
| 15250 | # List of archive names. First name is the real one, the rest are links. |
| 15251 | # The last name is the one that the linker finds with -lNAME. |
| 15252 | library_names_spec=$lt_library_names_spec |
| 15253 | |
| 15254 | # The coded name of the library, if different from the real name. |
| 15255 | soname_spec=$lt_soname_spec |
| 15256 | |
| 15257 | # Commands used to build and install an old-style archive. |
| 15258 | RANLIB=$lt_RANLIB |
| 15259 | old_archive_cmds=$lt_old_archive_cmds_F77 |
| 15260 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 15261 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 15262 | |
| 15263 | # Create an old-style archive from a shared archive. |
| 15264 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
| 15265 | |
| 15266 | # Create a temporary old-style archive to link instead of a shared archive. |
| 15267 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
| 15268 | |
| 15269 | # Commands used to build and install a shared archive. |
| 15270 | archive_cmds=$lt_archive_cmds_F77 |
| 15271 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
| 15272 | postinstall_cmds=$lt_postinstall_cmds |
| 15273 | postuninstall_cmds=$lt_postuninstall_cmds |
| 15274 | |
| 15275 | # Commands used to build a loadable module (assumed same as above if empty) |
| 15276 | module_cmds=$lt_module_cmds_F77 |
| 15277 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
| 15278 | |
| 15279 | # Commands to strip libraries. |
| 15280 | old_striplib=$lt_old_striplib |
| 15281 | striplib=$lt_striplib |
| 15282 | |
| 15283 | # Dependencies to place before the objects being linked to create a |
| 15284 | # shared library. |
| 15285 | predep_objects=$lt_predep_objects_F77 |
| 15286 | |
| 15287 | # Dependencies to place after the objects being linked to create a |
| 15288 | # shared library. |
| 15289 | postdep_objects=$lt_postdep_objects_F77 |
| 15290 | |
| 15291 | # Dependencies to place before the objects being linked to create a |
| 15292 | # shared library. |
| 15293 | predeps=$lt_predeps_F77 |
| 15294 | |
| 15295 | # Dependencies to place after the objects being linked to create a |
| 15296 | # shared library. |
| 15297 | postdeps=$lt_postdeps_F77 |
| 15298 | |
| 15299 | # The library search path used internally by the compiler when linking |
| 15300 | # a shared library. |
| 15301 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
| 15302 | |
| 15303 | # Method to check whether dependent libraries are shared objects. |
| 15304 | deplibs_check_method=$lt_deplibs_check_method |
| 15305 | |
| 15306 | # Command to use when deplibs_check_method == file_magic. |
| 15307 | file_magic_cmd=$lt_file_magic_cmd |
| 15308 | |
| 15309 | # Flag that allows shared libraries with undefined symbols to be built. |
| 15310 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
| 15311 | |
| 15312 | # Flag that forces no undefined symbols. |
| 15313 | no_undefined_flag=$lt_no_undefined_flag_F77 |
| 15314 | |
| 15315 | # Commands used to finish a libtool library installation in a directory. |
| 15316 | finish_cmds=$lt_finish_cmds |
| 15317 | |
| 15318 | # Same as above, but a single script fragment to be evaled but not shown. |
| 15319 | finish_eval=$lt_finish_eval |
| 15320 | |
| 15321 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 15322 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 15323 | |
| 15324 | # Transform the output of nm in a proper C declaration |
| 15325 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 15326 | |
| 15327 | # Transform the output of nm in a C name address pair |
| 15328 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 15329 | |
| 15330 | # This is the shared library runtime path variable. |
| 15331 | runpath_var=$runpath_var |
| 15332 | |
| 15333 | # This is the shared library path variable. |
| 15334 | shlibpath_var=$shlibpath_var |
| 15335 | |
| 15336 | # Is shlibpath searched before the hard-coded library search path? |
| 15337 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 15338 | |
| 15339 | # How to hardcode a shared library path into an executable. |
| 15340 | hardcode_action=$hardcode_action_F77 |
| 15341 | |
| 15342 | # Whether we should hardcode library paths into libraries. |
| 15343 | hardcode_into_libs=$hardcode_into_libs |
| 15344 | |
| 15345 | # Flag to hardcode \$libdir into a binary during linking. |
| 15346 | # This must work even if \$libdir does not exist. |
| 15347 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
| 15348 | |
| 15349 | # If ld is used when linking, flag to hardcode \$libdir into |
| 15350 | # a binary during linking. This must work even if \$libdir does |
| 15351 | # not exist. |
| 15352 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
| 15353 | |
| 15354 | # Whether we need a single -rpath flag with a separated argument. |
| 15355 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
| 15356 | |
| 15357 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 15358 | # resulting binary. |
| 15359 | hardcode_direct=$hardcode_direct_F77 |
| 15360 | |
| 15361 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 15362 | # resulting binary. |
| 15363 | hardcode_minus_L=$hardcode_minus_L_F77 |
| 15364 | |
| 15365 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 15366 | # the resulting binary. |
| 15367 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
| 15368 | |
| 15369 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 15370 | # and all subsequent libraries and executables linked against it. |
| 15371 | hardcode_automatic=$hardcode_automatic_F77 |
| 15372 | |
| 15373 | # Variables whose values should be saved in libtool wrapper scripts and |
| 15374 | # restored at relink time. |
| 15375 | variables_saved_for_relink="$variables_saved_for_relink" |
| 15376 | |
| 15377 | # Whether libtool must link a program against all its dependency libraries. |
| 15378 | link_all_deplibs=$link_all_deplibs_F77 |
| 15379 | |
| 15380 | # Compile-time system search path for libraries |
| 15381 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 15382 | |
| 15383 | # Run-time system search path for libraries |
| 15384 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 15385 | |
| 15386 | # Fix the shell variable \$srcfile for the compiler. |
| 15387 | fix_srcfile_path="$fix_srcfile_path_F77" |
| 15388 | |
| 15389 | # Set to yes if exported symbols are required. |
| 15390 | always_export_symbols=$always_export_symbols_F77 |
| 15391 | |
| 15392 | # The commands to list exported symbols. |
| 15393 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
| 15394 | |
| 15395 | # The commands to extract the exported symbol list from a shared archive. |
| 15396 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 15397 | |
| 15398 | # Symbols that should not be listed in the preloaded symbols. |
| 15399 | exclude_expsyms=$lt_exclude_expsyms_F77 |
| 15400 | |
| 15401 | # Symbols that must always be exported. |
| 15402 | include_expsyms=$lt_include_expsyms_F77 |
| 15403 | |
| 15404 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 15405 | |
| 15406 | __EOF__ |
| 15407 | |
| 15408 | |
| 15409 | else |
| 15410 | # If there is no Makefile yet, we rely on a make rule to execute |
| 15411 | # `config.status --recheck' to rerun these tests and create the |
| 15412 | # libtool script then. |
| 15413 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 15414 | if test -f "$ltmain_in"; then |
| 15415 | test -f Makefile && make "$ltmain" |
| 15416 | fi |
| 15417 | fi |
| 15418 | |
| 15419 | |
| 15420 | ac_ext=c |
| 15421 | ac_cpp='$CPP $CPPFLAGS' |
| 15422 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 15423 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 15424 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 15425 | |
| 15426 | CC="$lt_save_CC" |
| 15427 | |
| 15428 | else |
| 15429 | tagname="" |
| 15430 | fi |
| 15431 | ;; |
| 15432 | |
| 15433 | GCJ) |
| 15434 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
| 15435 | |
| 15436 | |
| 15437 | |
| 15438 | # Source file extension for Java test sources. |
| 15439 | ac_ext=java |
| 15440 | |
| 15441 | # Object file extension for compiled Java test sources. |
| 15442 | objext=o |
| 15443 | objext_GCJ=$objext |
| 15444 | |
| 15445 | # Code to be used in simple compile tests |
| 15446 | lt_simple_compile_test_code="class foo {}\n" |
| 15447 | |
| 15448 | # Code to be used in simple link tests |
| 15449 | lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' |
| 15450 | |
| 15451 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 15452 | |
| 15453 | # If no C compiler was specified, use CC. |
| 15454 | LTCC=${LTCC-"$CC"} |
| 15455 | |
| 15456 | # Allow CC to be a program name with arguments. |
| 15457 | compiler=$CC |
| 15458 | |
| 15459 | |
| 15460 | # Allow CC to be a program name with arguments. |
| 15461 | lt_save_CC="$CC" |
| 15462 | CC=${GCJ-"gcj"} |
| 15463 | compiler=$CC |
| 15464 | compiler_GCJ=$CC |
| 15465 | |
| 15466 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
| 15467 | archive_cmds_need_lc_GCJ=no |
| 15468 | |
| 15469 | |
| 15470 | lt_prog_compiler_no_builtin_flag_GCJ= |
| 15471 | |
| 15472 | if test "$GCC" = yes; then |
| 15473 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
| 15474 | |
| 15475 | |
| 15476 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 15477 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| 15478 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 15479 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15480 | else |
| 15481 | lt_cv_prog_compiler_rtti_exceptions=no |
| 15482 | ac_outfile=conftest.$ac_objext |
| 15483 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15484 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 15485 | # Insert the option either (1) after the last *FLAGS variable, or |
| 15486 | # (2) before a word containing "conftest.", or (3) at the end. |
| 15487 | # Note that $ac_compile itself does not contain backslashes and begins |
| 15488 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 15489 | # The option is referenced via a variable to avoid confusing sed. |
| 15490 | lt_compile=`echo "$ac_compile" | $SED \ |
| 15491 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 15492 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 15493 | -e 's:$: $lt_compiler_flag:'` |
Lev Walkin | 33cded1 | 2004-09-19 19:40:52 +0000 | [diff] [blame] | 15494 | (eval echo "\"\$as_me:15494: $lt_compile\"" >&5) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15495 | (eval "$lt_compile" 2>conftest.err) |
| 15496 | ac_status=$? |
| 15497 | cat conftest.err >&5 |
Lev Walkin | 33cded1 | 2004-09-19 19:40:52 +0000 | [diff] [blame] | 15498 | echo "$as_me:15498: \$? = $ac_status" >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15499 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 15500 | # The compiler can only warn and ignore the option if not recognized |
| 15501 | # So say no if there are warnings |
| 15502 | if test ! -s conftest.err; then |
| 15503 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 15504 | fi |
| 15505 | fi |
| 15506 | $rm conftest* |
| 15507 | |
| 15508 | fi |
| 15509 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 15510 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
| 15511 | |
| 15512 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 15513 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
| 15514 | else |
| 15515 | : |
| 15516 | fi |
| 15517 | |
| 15518 | fi |
| 15519 | |
| 15520 | lt_prog_compiler_wl_GCJ= |
| 15521 | lt_prog_compiler_pic_GCJ= |
| 15522 | lt_prog_compiler_static_GCJ= |
| 15523 | |
| 15524 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 15525 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 15526 | |
| 15527 | if test "$GCC" = yes; then |
| 15528 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 15529 | lt_prog_compiler_static_GCJ='-static' |
| 15530 | |
| 15531 | case $host_os in |
| 15532 | aix*) |
| 15533 | # All AIX code is PIC. |
| 15534 | if test "$host_cpu" = ia64; then |
| 15535 | # AIX 5 now supports IA64 processor |
| 15536 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 15537 | fi |
| 15538 | ;; |
| 15539 | |
| 15540 | amigaos*) |
| 15541 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 15542 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 15543 | # like `-m68040'. |
| 15544 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
| 15545 | ;; |
| 15546 | |
| 15547 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 15548 | # PIC is the default for these OSes. |
| 15549 | ;; |
| 15550 | |
| 15551 | mingw* | pw32* | os2*) |
| 15552 | # This hack is so that the source file can tell whether it is being |
| 15553 | # built for inclusion in a dll (and should export symbols for example). |
| 15554 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 15555 | ;; |
| 15556 | |
| 15557 | darwin* | rhapsody*) |
| 15558 | # PIC is the default on this platform |
| 15559 | # Common symbols not allowed in MH_DYLIB files |
| 15560 | lt_prog_compiler_pic_GCJ='-fno-common' |
| 15561 | ;; |
| 15562 | |
| 15563 | msdosdjgpp*) |
| 15564 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 15565 | # on systems that don't support them. |
| 15566 | lt_prog_compiler_can_build_shared_GCJ=no |
| 15567 | enable_shared=no |
| 15568 | ;; |
| 15569 | |
| 15570 | sysv4*MP*) |
| 15571 | if test -d /usr/nec; then |
| 15572 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
| 15573 | fi |
| 15574 | ;; |
| 15575 | |
| 15576 | hpux*) |
| 15577 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 15578 | # not for PA HP-UX. |
| 15579 | case "$host_cpu" in |
| 15580 | hppa*64*|ia64*) |
| 15581 | # +Z the default |
| 15582 | ;; |
| 15583 | *) |
| 15584 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 15585 | ;; |
| 15586 | esac |
| 15587 | ;; |
| 15588 | |
| 15589 | *) |
| 15590 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 15591 | ;; |
| 15592 | esac |
| 15593 | else |
| 15594 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 15595 | case $host_os in |
| 15596 | aix*) |
| 15597 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 15598 | if test "$host_cpu" = ia64; then |
| 15599 | # AIX 5 now supports IA64 processor |
| 15600 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 15601 | else |
| 15602 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
| 15603 | fi |
| 15604 | ;; |
| 15605 | |
| 15606 | mingw* | pw32* | os2*) |
| 15607 | # This hack is so that the source file can tell whether it is being |
| 15608 | # built for inclusion in a dll (and should export symbols for example). |
| 15609 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 15610 | ;; |
| 15611 | |
| 15612 | hpux9* | hpux10* | hpux11*) |
| 15613 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 15614 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 15615 | # not for PA HP-UX. |
| 15616 | case "$host_cpu" in |
| 15617 | hppa*64*|ia64*) |
| 15618 | # +Z the default |
| 15619 | ;; |
| 15620 | *) |
| 15621 | lt_prog_compiler_pic_GCJ='+Z' |
| 15622 | ;; |
| 15623 | esac |
| 15624 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 15625 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
| 15626 | ;; |
| 15627 | |
| 15628 | irix5* | irix6* | nonstopux*) |
| 15629 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 15630 | # PIC (with -KPIC) is the default. |
| 15631 | lt_prog_compiler_static_GCJ='-non_shared' |
| 15632 | ;; |
| 15633 | |
| 15634 | newsos6) |
| 15635 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 15636 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 15637 | ;; |
| 15638 | |
| 15639 | linux*) |
| 15640 | case $CC in |
| 15641 | icc* | ecc*) |
| 15642 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 15643 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 15644 | lt_prog_compiler_static_GCJ='-static' |
| 15645 | ;; |
| 15646 | ccc*) |
| 15647 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 15648 | # All Alpha code is PIC. |
| 15649 | lt_prog_compiler_static_GCJ='-non_shared' |
| 15650 | ;; |
| 15651 | esac |
| 15652 | ;; |
| 15653 | |
| 15654 | osf3* | osf4* | osf5*) |
| 15655 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 15656 | # All OSF/1 code is PIC. |
| 15657 | lt_prog_compiler_static_GCJ='-non_shared' |
| 15658 | ;; |
| 15659 | |
| 15660 | sco3.2v5*) |
| 15661 | lt_prog_compiler_pic_GCJ='-Kpic' |
| 15662 | lt_prog_compiler_static_GCJ='-dn' |
| 15663 | ;; |
| 15664 | |
| 15665 | solaris*) |
| 15666 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 15667 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 15668 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 15669 | ;; |
| 15670 | |
| 15671 | sunos4*) |
| 15672 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
| 15673 | lt_prog_compiler_pic_GCJ='-PIC' |
| 15674 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 15675 | ;; |
| 15676 | |
| 15677 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 15678 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 15679 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 15680 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 15681 | ;; |
| 15682 | |
| 15683 | sysv4*MP*) |
| 15684 | if test -d /usr/nec ;then |
| 15685 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
| 15686 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 15687 | fi |
| 15688 | ;; |
| 15689 | |
| 15690 | uts4*) |
| 15691 | lt_prog_compiler_pic_GCJ='-pic' |
| 15692 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 15693 | ;; |
| 15694 | |
| 15695 | *) |
| 15696 | lt_prog_compiler_can_build_shared_GCJ=no |
| 15697 | ;; |
| 15698 | esac |
| 15699 | fi |
| 15700 | |
| 15701 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
| 15702 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 |
| 15703 | |
| 15704 | # |
| 15705 | # Check to make sure the PIC flag actually works. |
| 15706 | # |
| 15707 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
| 15708 | |
| 15709 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
| 15710 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 |
| 15711 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
| 15712 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15713 | else |
| 15714 | lt_prog_compiler_pic_works_GCJ=no |
| 15715 | ac_outfile=conftest.$ac_objext |
| 15716 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15717 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
| 15718 | # Insert the option either (1) after the last *FLAGS variable, or |
| 15719 | # (2) before a word containing "conftest.", or (3) at the end. |
| 15720 | # Note that $ac_compile itself does not contain backslashes and begins |
| 15721 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 15722 | # The option is referenced via a variable to avoid confusing sed. |
| 15723 | lt_compile=`echo "$ac_compile" | $SED \ |
| 15724 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 15725 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 15726 | -e 's:$: $lt_compiler_flag:'` |
Lev Walkin | 33cded1 | 2004-09-19 19:40:52 +0000 | [diff] [blame] | 15727 | (eval echo "\"\$as_me:15727: $lt_compile\"" >&5) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15728 | (eval "$lt_compile" 2>conftest.err) |
| 15729 | ac_status=$? |
| 15730 | cat conftest.err >&5 |
Lev Walkin | 33cded1 | 2004-09-19 19:40:52 +0000 | [diff] [blame] | 15731 | echo "$as_me:15731: \$? = $ac_status" >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15732 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 15733 | # The compiler can only warn and ignore the option if not recognized |
| 15734 | # So say no if there are warnings |
| 15735 | if test ! -s conftest.err; then |
| 15736 | lt_prog_compiler_pic_works_GCJ=yes |
| 15737 | fi |
| 15738 | fi |
| 15739 | $rm conftest* |
| 15740 | |
| 15741 | fi |
| 15742 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
| 15743 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 |
| 15744 | |
| 15745 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
| 15746 | case $lt_prog_compiler_pic_GCJ in |
| 15747 | "" | " "*) ;; |
| 15748 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
| 15749 | esac |
| 15750 | else |
| 15751 | lt_prog_compiler_pic_GCJ= |
| 15752 | lt_prog_compiler_can_build_shared_GCJ=no |
| 15753 | fi |
| 15754 | |
| 15755 | fi |
| 15756 | case "$host_os" in |
| 15757 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 15758 | *djgpp*) |
| 15759 | lt_prog_compiler_pic_GCJ= |
| 15760 | ;; |
| 15761 | *) |
| 15762 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
| 15763 | ;; |
| 15764 | esac |
| 15765 | |
| 15766 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 15767 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 15768 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
| 15769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15770 | else |
| 15771 | lt_cv_prog_compiler_c_o_GCJ=no |
| 15772 | $rm -r conftest 2>/dev/null |
| 15773 | mkdir conftest |
| 15774 | cd conftest |
| 15775 | mkdir out |
| 15776 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15777 | |
| 15778 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 15779 | # Insert the option either (1) after the last *FLAGS variable, or |
| 15780 | # (2) before a word containing "conftest.", or (3) at the end. |
| 15781 | # Note that $ac_compile itself does not contain backslashes and begins |
| 15782 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 15783 | lt_compile=`echo "$ac_compile" | $SED \ |
| 15784 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 15785 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 15786 | -e 's:$: $lt_compiler_flag:'` |
Lev Walkin | 33cded1 | 2004-09-19 19:40:52 +0000 | [diff] [blame] | 15787 | (eval echo "\"\$as_me:15787: $lt_compile\"" >&5) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15788 | (eval "$lt_compile" 2>out/conftest.err) |
| 15789 | ac_status=$? |
| 15790 | cat out/conftest.err >&5 |
Lev Walkin | 33cded1 | 2004-09-19 19:40:52 +0000 | [diff] [blame] | 15791 | echo "$as_me:15791: \$? = $ac_status" >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 15792 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 15793 | then |
| 15794 | # The compiler can only warn and ignore the option if not recognized |
| 15795 | # So say no if there are warnings |
| 15796 | if test ! -s out/conftest.err; then |
| 15797 | lt_cv_prog_compiler_c_o_GCJ=yes |
| 15798 | fi |
| 15799 | fi |
| 15800 | chmod u+w . |
| 15801 | $rm conftest* |
| 15802 | # SGI C++ compiler will create directory out/ii_files/ for |
| 15803 | # template instantiation |
| 15804 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 15805 | $rm out/* && rmdir out |
| 15806 | cd .. |
| 15807 | rmdir conftest |
| 15808 | $rm conftest* |
| 15809 | |
| 15810 | fi |
| 15811 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
| 15812 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 |
| 15813 | |
| 15814 | |
| 15815 | hard_links="nottested" |
| 15816 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
| 15817 | # do not overwrite the value of need_locks provided by the user |
| 15818 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 15819 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 15820 | hard_links=yes |
| 15821 | $rm conftest* |
| 15822 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 15823 | touch conftest.a |
| 15824 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 15825 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 15826 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 15827 | echo "${ECHO_T}$hard_links" >&6 |
| 15828 | if test "$hard_links" = no; then |
| 15829 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 15830 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 15831 | need_locks=warn |
| 15832 | fi |
| 15833 | else |
| 15834 | need_locks=no |
| 15835 | fi |
| 15836 | |
| 15837 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 15838 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 15839 | |
| 15840 | runpath_var= |
| 15841 | allow_undefined_flag_GCJ= |
| 15842 | enable_shared_with_static_runtimes_GCJ=no |
| 15843 | archive_cmds_GCJ= |
| 15844 | archive_expsym_cmds_GCJ= |
| 15845 | old_archive_From_new_cmds_GCJ= |
| 15846 | old_archive_from_expsyms_cmds_GCJ= |
| 15847 | export_dynamic_flag_spec_GCJ= |
| 15848 | whole_archive_flag_spec_GCJ= |
| 15849 | thread_safe_flag_spec_GCJ= |
| 15850 | hardcode_libdir_flag_spec_GCJ= |
| 15851 | hardcode_libdir_flag_spec_ld_GCJ= |
| 15852 | hardcode_libdir_separator_GCJ= |
| 15853 | hardcode_direct_GCJ=no |
| 15854 | hardcode_minus_L_GCJ=no |
| 15855 | hardcode_shlibpath_var_GCJ=unsupported |
| 15856 | link_all_deplibs_GCJ=unknown |
| 15857 | hardcode_automatic_GCJ=no |
| 15858 | module_cmds_GCJ= |
| 15859 | module_expsym_cmds_GCJ= |
| 15860 | always_export_symbols_GCJ=no |
| 15861 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 15862 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 15863 | # included in the symbol list |
| 15864 | include_expsyms_GCJ= |
| 15865 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 15866 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 15867 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 15868 | # as well as any symbol that contains `d'. |
| 15869 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
| 15870 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 15871 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 15872 | # the symbol is explicitly referenced. Since portable code cannot |
| 15873 | # rely on this symbol name, it's probably fine to never include it in |
| 15874 | # preloaded symbol tables. |
| 15875 | extract_expsyms_cmds= |
| 15876 | |
| 15877 | case $host_os in |
| 15878 | cygwin* | mingw* | pw32*) |
| 15879 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 15880 | # When not using gcc, we currently assume that we are using |
| 15881 | # Microsoft Visual C++. |
| 15882 | if test "$GCC" != yes; then |
| 15883 | with_gnu_ld=no |
| 15884 | fi |
| 15885 | ;; |
| 15886 | openbsd*) |
| 15887 | with_gnu_ld=no |
| 15888 | ;; |
| 15889 | esac |
| 15890 | |
| 15891 | ld_shlibs_GCJ=yes |
| 15892 | if test "$with_gnu_ld" = yes; then |
| 15893 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 15894 | wlarc='${wl}' |
| 15895 | |
| 15896 | # See if GNU ld supports shared libraries. |
| 15897 | case $host_os in |
| 15898 | aix3* | aix4* | aix5*) |
| 15899 | # On AIX/PPC, the GNU linker is very broken |
| 15900 | if test "$host_cpu" != ia64; then |
| 15901 | ld_shlibs_GCJ=no |
| 15902 | cat <<EOF 1>&2 |
| 15903 | |
| 15904 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 15905 | *** to be unable to reliably create shared libraries on AIX. |
| 15906 | *** Therefore, libtool is disabling shared libraries support. If you |
| 15907 | *** really care for shared libraries, you may want to modify your PATH |
| 15908 | *** so that a non-GNU linker is found, and then restart. |
| 15909 | |
| 15910 | EOF |
| 15911 | fi |
| 15912 | ;; |
| 15913 | |
| 15914 | amigaos*) |
| 15915 | archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
| 15916 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 15917 | hardcode_minus_L_GCJ=yes |
| 15918 | |
| 15919 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 15920 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 15921 | # to version 4, is to share data among multiple programs linked |
| 15922 | # with the same dynamic library. Since this doesn't match the |
| 15923 | # behavior of shared libraries on other platforms, we can't use |
| 15924 | # them. |
| 15925 | ld_shlibs_GCJ=no |
| 15926 | ;; |
| 15927 | |
| 15928 | beos*) |
| 15929 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15930 | allow_undefined_flag_GCJ=unsupported |
| 15931 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 15932 | # support --undefined. This deserves some investigation. FIXME |
| 15933 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15934 | else |
| 15935 | ld_shlibs_GCJ=no |
| 15936 | fi |
| 15937 | ;; |
| 15938 | |
| 15939 | cygwin* | mingw* | pw32*) |
| 15940 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
| 15941 | # as there is no search path for DLLs. |
| 15942 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 15943 | allow_undefined_flag_GCJ=unsupported |
| 15944 | always_export_symbols_GCJ=no |
| 15945 | enable_shared_with_static_runtimes_GCJ=yes |
| 15946 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 15947 | |
| 15948 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 15949 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 15950 | # If the export-symbols file already is a .def file (1st line |
| 15951 | # is EXPORTS), use it as is; otherwise, prepend... |
| 15952 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 15953 | cp $export_symbols $output_objdir/$soname.def; |
| 15954 | else |
| 15955 | echo EXPORTS > $output_objdir/$soname.def; |
| 15956 | cat $export_symbols >> $output_objdir/$soname.def; |
| 15957 | fi~ |
| 15958 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 15959 | else |
| 15960 | ld_shlibs=no |
| 15961 | fi |
| 15962 | ;; |
| 15963 | |
| 15964 | netbsd*) |
| 15965 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 15966 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 15967 | wlarc= |
| 15968 | else |
| 15969 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15970 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15971 | fi |
| 15972 | ;; |
| 15973 | |
| 15974 | solaris* | sysv5*) |
| 15975 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 15976 | ld_shlibs_GCJ=no |
| 15977 | cat <<EOF 1>&2 |
| 15978 | |
| 15979 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 15980 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 15981 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 15982 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 15983 | *** your PATH or compiler configuration so that the native linker is |
| 15984 | *** used, and then restart. |
| 15985 | |
| 15986 | EOF |
| 15987 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15988 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15989 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15990 | else |
| 15991 | ld_shlibs_GCJ=no |
| 15992 | fi |
| 15993 | ;; |
| 15994 | |
| 15995 | sunos4*) |
| 15996 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15997 | wlarc= |
| 15998 | hardcode_direct_GCJ=yes |
| 15999 | hardcode_shlibpath_var_GCJ=no |
| 16000 | ;; |
| 16001 | |
| 16002 | linux*) |
| 16003 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 16004 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 16005 | archive_cmds_GCJ="$tmp_archive_cmds" |
| 16006 | supports_anon_versioning=no |
| 16007 | case `$LD -v 2>/dev/null` in |
| 16008 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 16009 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 16010 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 16011 | *\ 2.11.*) ;; # other 2.11 versions |
| 16012 | *) supports_anon_versioning=yes ;; |
| 16013 | esac |
| 16014 | if test $supports_anon_versioning = yes; then |
| 16015 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 16016 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 16017 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 16018 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 16019 | else |
| 16020 | archive_expsym_cmds_GCJ="$tmp_archive_cmds" |
| 16021 | fi |
| 16022 | else |
| 16023 | ld_shlibs_GCJ=no |
| 16024 | fi |
| 16025 | ;; |
| 16026 | |
| 16027 | *) |
| 16028 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 16029 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 16030 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 16031 | else |
| 16032 | ld_shlibs_GCJ=no |
| 16033 | fi |
| 16034 | ;; |
| 16035 | esac |
| 16036 | |
| 16037 | if test "$ld_shlibs_GCJ" = yes; then |
| 16038 | runpath_var=LD_RUN_PATH |
| 16039 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
| 16040 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
| 16041 | # ancient GNU ld didn't support --whole-archive et. al. |
| 16042 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 16043 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 16044 | else |
| 16045 | whole_archive_flag_spec_GCJ= |
| 16046 | fi |
| 16047 | fi |
| 16048 | else |
| 16049 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 16050 | case $host_os in |
| 16051 | aix3*) |
| 16052 | allow_undefined_flag_GCJ=unsupported |
| 16053 | always_export_symbols_GCJ=yes |
| 16054 | archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
| 16055 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 16056 | # are no directories specified by -L. |
| 16057 | hardcode_minus_L_GCJ=yes |
| 16058 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 16059 | # Neither direct hardcoding nor static linking is supported with a |
| 16060 | # broken collect2. |
| 16061 | hardcode_direct_GCJ=unsupported |
| 16062 | fi |
| 16063 | ;; |
| 16064 | |
| 16065 | aix4* | aix5*) |
| 16066 | if test "$host_cpu" = ia64; then |
| 16067 | # On IA64, the linker does run time linking by default, so we don't |
| 16068 | # have to do anything special. |
| 16069 | aix_use_runtimelinking=no |
| 16070 | exp_sym_flag='-Bexport' |
| 16071 | no_entry_flag="" |
| 16072 | else |
| 16073 | # If we're using GNU nm, then we don't want the "-C" option. |
| 16074 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 16075 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 16076 | export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 16077 | else |
| 16078 | export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 16079 | fi |
| 16080 | aix_use_runtimelinking=no |
| 16081 | |
| 16082 | # Test if we are trying to use run time linking or normal |
| 16083 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 16084 | # need to do runtime linking. |
| 16085 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 16086 | for ld_flag in $LDFLAGS; do |
| 16087 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 16088 | aix_use_runtimelinking=yes |
| 16089 | break |
| 16090 | fi |
| 16091 | done |
| 16092 | esac |
| 16093 | |
| 16094 | exp_sym_flag='-bexport' |
| 16095 | no_entry_flag='-bnoentry' |
| 16096 | fi |
| 16097 | |
| 16098 | # When large executables or shared objects are built, AIX ld can |
| 16099 | # have problems creating the table of contents. If linking a library |
| 16100 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 16101 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 16102 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 16103 | |
| 16104 | archive_cmds_GCJ='' |
| 16105 | hardcode_direct_GCJ=yes |
| 16106 | hardcode_libdir_separator_GCJ=':' |
| 16107 | link_all_deplibs_GCJ=yes |
| 16108 | |
| 16109 | if test "$GCC" = yes; then |
| 16110 | case $host_os in aix4.012|aix4.012.*) |
| 16111 | # We only want to do this on AIX 4.2 and lower, the check |
| 16112 | # below for broken collect2 doesn't work under 4.3+ |
| 16113 | collect2name=`${CC} -print-prog-name=collect2` |
| 16114 | if test -f "$collect2name" && \ |
| 16115 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 16116 | then |
| 16117 | # We have reworked collect2 |
| 16118 | hardcode_direct_GCJ=yes |
| 16119 | else |
| 16120 | # We have old collect2 |
| 16121 | hardcode_direct_GCJ=unsupported |
| 16122 | # It fails to find uninstalled libraries when the uninstalled |
| 16123 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 16124 | # to unsupported forces relinking |
| 16125 | hardcode_minus_L_GCJ=yes |
| 16126 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 16127 | hardcode_libdir_separator_GCJ= |
| 16128 | fi |
| 16129 | esac |
| 16130 | shared_flag='-shared' |
| 16131 | else |
| 16132 | # not using gcc |
| 16133 | if test "$host_cpu" = ia64; then |
| 16134 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 16135 | # chokes on -Wl,-G. The following line is correct: |
| 16136 | shared_flag='-G' |
| 16137 | else |
| 16138 | if test "$aix_use_runtimelinking" = yes; then |
| 16139 | shared_flag='${wl}-G' |
| 16140 | else |
| 16141 | shared_flag='${wl}-bM:SRE' |
| 16142 | fi |
| 16143 | fi |
| 16144 | fi |
| 16145 | |
| 16146 | # It seems that -bexpall does not export symbols beginning with |
| 16147 | # underscore (_), so it is better to generate a list of symbols to export. |
| 16148 | always_export_symbols_GCJ=yes |
| 16149 | if test "$aix_use_runtimelinking" = yes; then |
| 16150 | # Warning - without using the other runtime loading flags (-brtl), |
| 16151 | # -berok will link without error, but may produce a broken library. |
| 16152 | allow_undefined_flag_GCJ='-berok' |
| 16153 | # Determine the default libpath from the value encoded in an empty executable. |
| 16154 | cat >conftest.$ac_ext <<_ACEOF |
| 16155 | /* confdefs.h. */ |
| 16156 | _ACEOF |
| 16157 | cat confdefs.h >>conftest.$ac_ext |
| 16158 | cat >>conftest.$ac_ext <<_ACEOF |
| 16159 | /* end confdefs.h. */ |
| 16160 | |
| 16161 | int |
| 16162 | main () |
| 16163 | { |
| 16164 | |
| 16165 | ; |
| 16166 | return 0; |
| 16167 | } |
| 16168 | _ACEOF |
| 16169 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16170 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16171 | (eval $ac_link) 2>conftest.er1 |
| 16172 | ac_status=$? |
| 16173 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16174 | rm -f conftest.er1 |
| 16175 | cat conftest.err >&5 |
| 16176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16177 | (exit $ac_status); } && |
| 16178 | { ac_try='test -z "$ac_c_werror_flag" |
| 16179 | || test ! -s conftest.err' |
| 16180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16181 | (eval $ac_try) 2>&5 |
| 16182 | ac_status=$? |
| 16183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16184 | (exit $ac_status); }; } && |
| 16185 | { ac_try='test -s conftest$ac_exeext' |
| 16186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16187 | (eval $ac_try) 2>&5 |
| 16188 | ac_status=$? |
| 16189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16190 | (exit $ac_status); }; }; then |
| 16191 | |
| 16192 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 16193 | }'` |
| 16194 | # Check for a 64-bit object if we didn't find anything. |
| 16195 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 16196 | }'`; fi |
| 16197 | else |
| 16198 | echo "$as_me: failed program was:" >&5 |
| 16199 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16200 | |
| 16201 | fi |
| 16202 | rm -f conftest.err conftest.$ac_objext \ |
| 16203 | conftest$ac_exeext conftest.$ac_ext |
| 16204 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 16205 | |
| 16206 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 16207 | archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 16208 | else |
| 16209 | if test "$host_cpu" = ia64; then |
| 16210 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
| 16211 | allow_undefined_flag_GCJ="-z nodefs" |
| 16212 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
| 16213 | else |
| 16214 | # Determine the default libpath from the value encoded in an empty executable. |
| 16215 | cat >conftest.$ac_ext <<_ACEOF |
| 16216 | /* confdefs.h. */ |
| 16217 | _ACEOF |
| 16218 | cat confdefs.h >>conftest.$ac_ext |
| 16219 | cat >>conftest.$ac_ext <<_ACEOF |
| 16220 | /* end confdefs.h. */ |
| 16221 | |
| 16222 | int |
| 16223 | main () |
| 16224 | { |
| 16225 | |
| 16226 | ; |
| 16227 | return 0; |
| 16228 | } |
| 16229 | _ACEOF |
| 16230 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16231 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16232 | (eval $ac_link) 2>conftest.er1 |
| 16233 | ac_status=$? |
| 16234 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16235 | rm -f conftest.er1 |
| 16236 | cat conftest.err >&5 |
| 16237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16238 | (exit $ac_status); } && |
| 16239 | { ac_try='test -z "$ac_c_werror_flag" |
| 16240 | || test ! -s conftest.err' |
| 16241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16242 | (eval $ac_try) 2>&5 |
| 16243 | ac_status=$? |
| 16244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16245 | (exit $ac_status); }; } && |
| 16246 | { ac_try='test -s conftest$ac_exeext' |
| 16247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16248 | (eval $ac_try) 2>&5 |
| 16249 | ac_status=$? |
| 16250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16251 | (exit $ac_status); }; }; then |
| 16252 | |
| 16253 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 16254 | }'` |
| 16255 | # Check for a 64-bit object if we didn't find anything. |
| 16256 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 16257 | }'`; fi |
| 16258 | else |
| 16259 | echo "$as_me: failed program was:" >&5 |
| 16260 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16261 | |
| 16262 | fi |
| 16263 | rm -f conftest.err conftest.$ac_objext \ |
| 16264 | conftest$ac_exeext conftest.$ac_ext |
| 16265 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 16266 | |
| 16267 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 16268 | # Warning - without using the other run time loading flags, |
| 16269 | # -berok will link without error, but may produce a broken library. |
| 16270 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
| 16271 | allow_undefined_flag_GCJ=' ${wl}-berok' |
| 16272 | # -bexpall does not export symbols beginning with underscore (_) |
| 16273 | always_export_symbols_GCJ=yes |
| 16274 | # Exported symbols can be pulled into shared objects from archives |
| 16275 | whole_archive_flag_spec_GCJ=' ' |
| 16276 | archive_cmds_need_lc_GCJ=yes |
| 16277 | # This is similar to how AIX traditionally builds it's shared libraries. |
| 16278 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 16279 | fi |
| 16280 | fi |
| 16281 | ;; |
| 16282 | |
| 16283 | amigaos*) |
| 16284 | archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
| 16285 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 16286 | hardcode_minus_L_GCJ=yes |
| 16287 | # see comment about different semantics on the GNU ld section |
| 16288 | ld_shlibs_GCJ=no |
| 16289 | ;; |
| 16290 | |
| 16291 | bsdi4*) |
| 16292 | export_dynamic_flag_spec_GCJ=-rdynamic |
| 16293 | ;; |
| 16294 | |
| 16295 | cygwin* | mingw* | pw32*) |
| 16296 | # When not using gcc, we currently assume that we are using |
| 16297 | # Microsoft Visual C++. |
| 16298 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 16299 | # no search path for DLLs. |
| 16300 | hardcode_libdir_flag_spec_GCJ=' ' |
| 16301 | allow_undefined_flag_GCJ=unsupported |
| 16302 | # Tell ltmain to make .lib files, not .a files. |
| 16303 | libext=lib |
| 16304 | # Tell ltmain to make .dll files, not .so files. |
| 16305 | shrext_cmds=".dll" |
| 16306 | # FIXME: Setting linknames here is a bad hack. |
| 16307 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 16308 | # The linker will automatically build a .lib file if we build a DLL. |
| 16309 | old_archive_From_new_cmds_GCJ='true' |
| 16310 | # FIXME: Should let the user specify the lib program. |
| 16311 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 16312 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 16313 | enable_shared_with_static_runtimes_GCJ=yes |
| 16314 | ;; |
| 16315 | |
| 16316 | darwin* | rhapsody*) |
| 16317 | if test "$GXX" = yes ; then |
| 16318 | archive_cmds_need_lc_GCJ=no |
| 16319 | case "$host_os" in |
| 16320 | rhapsody* | darwin1.[012]) |
| 16321 | allow_undefined_flag_GCJ='-undefined suppress' |
| 16322 | ;; |
| 16323 | *) # Darwin 1.3 on |
| 16324 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 16325 | allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' |
| 16326 | else |
| 16327 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 16328 | 10.[012]) |
| 16329 | allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' |
| 16330 | ;; |
| 16331 | 10.*) |
| 16332 | allow_undefined_flag_GCJ='-undefined dynamic_lookup' |
| 16333 | ;; |
| 16334 | esac |
| 16335 | fi |
| 16336 | ;; |
| 16337 | esac |
| 16338 | lt_int_apple_cc_single_mod=no |
| 16339 | output_verbose_link_cmd='echo' |
| 16340 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
| 16341 | lt_int_apple_cc_single_mod=yes |
| 16342 | fi |
| 16343 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 16344 | archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 16345 | else |
| 16346 | archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 16347 | fi |
| 16348 | module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 16349 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 16350 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 16351 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 16352 | else |
| 16353 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 16354 | fi |
| 16355 | module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 16356 | hardcode_direct_GCJ=no |
| 16357 | hardcode_automatic_GCJ=yes |
| 16358 | hardcode_shlibpath_var_GCJ=unsupported |
| 16359 | whole_archive_flag_spec_GCJ='-all_load $convenience' |
| 16360 | link_all_deplibs_GCJ=yes |
| 16361 | else |
| 16362 | ld_shlibs_GCJ=no |
| 16363 | fi |
| 16364 | ;; |
| 16365 | |
| 16366 | dgux*) |
| 16367 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16368 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 16369 | hardcode_shlibpath_var_GCJ=no |
| 16370 | ;; |
| 16371 | |
| 16372 | freebsd1*) |
| 16373 | ld_shlibs_GCJ=no |
| 16374 | ;; |
| 16375 | |
| 16376 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 16377 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 16378 | # does not break anything, and helps significantly (at the cost of a little |
| 16379 | # extra space). |
| 16380 | freebsd2.2*) |
| 16381 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 16382 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 16383 | hardcode_direct_GCJ=yes |
| 16384 | hardcode_shlibpath_var_GCJ=no |
| 16385 | ;; |
| 16386 | |
| 16387 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 16388 | freebsd2*) |
| 16389 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 16390 | hardcode_direct_GCJ=yes |
| 16391 | hardcode_minus_L_GCJ=yes |
| 16392 | hardcode_shlibpath_var_GCJ=no |
| 16393 | ;; |
| 16394 | |
| 16395 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 16396 | freebsd* | kfreebsd*-gnu) |
| 16397 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 16398 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 16399 | hardcode_direct_GCJ=yes |
| 16400 | hardcode_shlibpath_var_GCJ=no |
| 16401 | ;; |
| 16402 | |
| 16403 | hpux9*) |
| 16404 | if test "$GCC" = yes; then |
| 16405 | archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 16406 | else |
| 16407 | archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 16408 | fi |
| 16409 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 16410 | hardcode_libdir_separator_GCJ=: |
| 16411 | hardcode_direct_GCJ=yes |
| 16412 | |
| 16413 | # hardcode_minus_L: Not really in the search PATH, |
| 16414 | # but as the default location of the library. |
| 16415 | hardcode_minus_L_GCJ=yes |
| 16416 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 16417 | ;; |
| 16418 | |
| 16419 | hpux10* | hpux11*) |
| 16420 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 16421 | case "$host_cpu" in |
| 16422 | hppa*64*|ia64*) |
| 16423 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16424 | ;; |
| 16425 | *) |
| 16426 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 16427 | ;; |
| 16428 | esac |
| 16429 | else |
| 16430 | case "$host_cpu" in |
| 16431 | hppa*64*|ia64*) |
| 16432 | archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16433 | ;; |
| 16434 | *) |
| 16435 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 16436 | ;; |
| 16437 | esac |
| 16438 | fi |
| 16439 | if test "$with_gnu_ld" = no; then |
| 16440 | case "$host_cpu" in |
| 16441 | hppa*64*) |
| 16442 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 16443 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
| 16444 | hardcode_libdir_separator_GCJ=: |
| 16445 | hardcode_direct_GCJ=no |
| 16446 | hardcode_shlibpath_var_GCJ=no |
| 16447 | ;; |
| 16448 | ia64*) |
| 16449 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 16450 | hardcode_direct_GCJ=no |
| 16451 | hardcode_shlibpath_var_GCJ=no |
| 16452 | |
| 16453 | # hardcode_minus_L: Not really in the search PATH, |
| 16454 | # but as the default location of the library. |
| 16455 | hardcode_minus_L_GCJ=yes |
| 16456 | ;; |
| 16457 | *) |
| 16458 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 16459 | hardcode_libdir_separator_GCJ=: |
| 16460 | hardcode_direct_GCJ=yes |
| 16461 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 16462 | |
| 16463 | # hardcode_minus_L: Not really in the search PATH, |
| 16464 | # but as the default location of the library. |
| 16465 | hardcode_minus_L_GCJ=yes |
| 16466 | ;; |
| 16467 | esac |
| 16468 | fi |
| 16469 | ;; |
| 16470 | |
| 16471 | irix5* | irix6* | nonstopux*) |
| 16472 | if test "$GCC" = yes; then |
| 16473 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 16474 | else |
| 16475 | archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 16476 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
| 16477 | fi |
| 16478 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 16479 | hardcode_libdir_separator_GCJ=: |
| 16480 | link_all_deplibs_GCJ=yes |
| 16481 | ;; |
| 16482 | |
| 16483 | netbsd*) |
| 16484 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 16485 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 16486 | else |
| 16487 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 16488 | fi |
| 16489 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 16490 | hardcode_direct_GCJ=yes |
| 16491 | hardcode_shlibpath_var_GCJ=no |
| 16492 | ;; |
| 16493 | |
| 16494 | newsos6) |
| 16495 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16496 | hardcode_direct_GCJ=yes |
| 16497 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 16498 | hardcode_libdir_separator_GCJ=: |
| 16499 | hardcode_shlibpath_var_GCJ=no |
| 16500 | ;; |
| 16501 | |
| 16502 | openbsd*) |
| 16503 | hardcode_direct_GCJ=yes |
| 16504 | hardcode_shlibpath_var_GCJ=no |
| 16505 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 16506 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 16507 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 16508 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 16509 | else |
| 16510 | case $host_os in |
| 16511 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 16512 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 16513 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 16514 | ;; |
| 16515 | *) |
| 16516 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 16517 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 16518 | ;; |
| 16519 | esac |
| 16520 | fi |
| 16521 | ;; |
| 16522 | |
| 16523 | os2*) |
| 16524 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 16525 | hardcode_minus_L_GCJ=yes |
| 16526 | allow_undefined_flag_GCJ=unsupported |
| 16527 | archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
| 16528 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 16529 | ;; |
| 16530 | |
| 16531 | osf3*) |
| 16532 | if test "$GCC" = yes; then |
| 16533 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 16534 | archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 16535 | else |
| 16536 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 16537 | archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 16538 | fi |
| 16539 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 16540 | hardcode_libdir_separator_GCJ=: |
| 16541 | ;; |
| 16542 | |
| 16543 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 16544 | if test "$GCC" = yes; then |
| 16545 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 16546 | archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 16547 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 16548 | else |
| 16549 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 16550 | archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 16551 | archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
| 16552 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' |
| 16553 | |
| 16554 | # Both c and cxx compiler support -rpath directly |
| 16555 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
| 16556 | fi |
| 16557 | hardcode_libdir_separator_GCJ=: |
| 16558 | ;; |
| 16559 | |
| 16560 | sco3.2v5*) |
| 16561 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16562 | hardcode_shlibpath_var_GCJ=no |
| 16563 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
| 16564 | runpath_var=LD_RUN_PATH |
| 16565 | hardcode_runpath_var=yes |
| 16566 | ;; |
| 16567 | |
| 16568 | solaris*) |
| 16569 | no_undefined_flag_GCJ=' -z text' |
| 16570 | if test "$GCC" = yes; then |
| 16571 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16572 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 16573 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 16574 | else |
| 16575 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16576 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 16577 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 16578 | fi |
| 16579 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 16580 | hardcode_shlibpath_var_GCJ=no |
| 16581 | case $host_os in |
| 16582 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 16583 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 16584 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
| 16585 | esac |
| 16586 | link_all_deplibs_GCJ=yes |
| 16587 | ;; |
| 16588 | |
| 16589 | sunos4*) |
| 16590 | if test "x$host_vendor" = xsequent; then |
| 16591 | # Use $CC to link under sequent, because it throws in some extra .o |
| 16592 | # files that make .init and .fini sections work. |
| 16593 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16594 | else |
| 16595 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 16596 | fi |
| 16597 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 16598 | hardcode_direct_GCJ=yes |
| 16599 | hardcode_minus_L_GCJ=yes |
| 16600 | hardcode_shlibpath_var_GCJ=no |
| 16601 | ;; |
| 16602 | |
| 16603 | sysv4) |
| 16604 | case $host_vendor in |
| 16605 | sni) |
| 16606 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16607 | hardcode_direct_GCJ=yes # is this really true??? |
| 16608 | ;; |
| 16609 | siemens) |
| 16610 | ## LD is ld it makes a PLAMLIB |
| 16611 | ## CC just makes a GrossModule. |
| 16612 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 16613 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
| 16614 | hardcode_direct_GCJ=no |
| 16615 | ;; |
| 16616 | motorola) |
| 16617 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16618 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
| 16619 | ;; |
| 16620 | esac |
| 16621 | runpath_var='LD_RUN_PATH' |
| 16622 | hardcode_shlibpath_var_GCJ=no |
| 16623 | ;; |
| 16624 | |
| 16625 | sysv4.3*) |
| 16626 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16627 | hardcode_shlibpath_var_GCJ=no |
| 16628 | export_dynamic_flag_spec_GCJ='-Bexport' |
| 16629 | ;; |
| 16630 | |
| 16631 | sysv4*MP*) |
| 16632 | if test -d /usr/nec; then |
| 16633 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16634 | hardcode_shlibpath_var_GCJ=no |
| 16635 | runpath_var=LD_RUN_PATH |
| 16636 | hardcode_runpath_var=yes |
| 16637 | ld_shlibs_GCJ=yes |
| 16638 | fi |
| 16639 | ;; |
| 16640 | |
| 16641 | sysv4.2uw2*) |
| 16642 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 16643 | hardcode_direct_GCJ=yes |
| 16644 | hardcode_minus_L_GCJ=no |
| 16645 | hardcode_shlibpath_var_GCJ=no |
| 16646 | hardcode_runpath_var=yes |
| 16647 | runpath_var=LD_RUN_PATH |
| 16648 | ;; |
| 16649 | |
| 16650 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 16651 | no_undefined_flag_GCJ='${wl}-z ${wl}text' |
| 16652 | if test "$GCC" = yes; then |
| 16653 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16654 | else |
| 16655 | archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16656 | fi |
| 16657 | runpath_var='LD_RUN_PATH' |
| 16658 | hardcode_shlibpath_var_GCJ=no |
| 16659 | ;; |
| 16660 | |
| 16661 | sysv5*) |
| 16662 | no_undefined_flag_GCJ=' -z text' |
| 16663 | # $CC -shared without GNU ld will not create a library from C++ |
| 16664 | # object files and a static libstdc++, better avoid it by now |
| 16665 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16666 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 16667 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 16668 | hardcode_libdir_flag_spec_GCJ= |
| 16669 | hardcode_shlibpath_var_GCJ=no |
| 16670 | runpath_var='LD_RUN_PATH' |
| 16671 | ;; |
| 16672 | |
| 16673 | uts4*) |
| 16674 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16675 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 16676 | hardcode_shlibpath_var_GCJ=no |
| 16677 | ;; |
| 16678 | |
| 16679 | *) |
| 16680 | ld_shlibs_GCJ=no |
| 16681 | ;; |
| 16682 | esac |
| 16683 | fi |
| 16684 | |
| 16685 | echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
| 16686 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 |
| 16687 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
| 16688 | |
| 16689 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 16690 | if test "$GCC" = yes; then |
| 16691 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 16692 | fi |
| 16693 | |
| 16694 | # |
| 16695 | # Do we need to explicitly link libc? |
| 16696 | # |
| 16697 | case "x$archive_cmds_need_lc_GCJ" in |
| 16698 | x|xyes) |
| 16699 | # Assume -lc should be added |
| 16700 | archive_cmds_need_lc_GCJ=yes |
| 16701 | |
| 16702 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 16703 | case $archive_cmds_GCJ in |
| 16704 | *'~'*) |
| 16705 | # FIXME: we may have to deal with multi-command sequences. |
| 16706 | ;; |
| 16707 | '$CC '*) |
| 16708 | # Test whether the compiler implicitly links with -lc since on some |
| 16709 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 16710 | # to ld, don't add -lc before -lgcc. |
| 16711 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 16712 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 16713 | $rm conftest* |
| 16714 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16715 | |
| 16716 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16717 | (eval $ac_compile) 2>&5 |
| 16718 | ac_status=$? |
| 16719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16720 | (exit $ac_status); } 2>conftest.err; then |
| 16721 | soname=conftest |
| 16722 | lib=conftest |
| 16723 | libobjs=conftest.$ac_objext |
| 16724 | deplibs= |
| 16725 | wl=$lt_prog_compiler_wl_GCJ |
| 16726 | compiler_flags=-v |
| 16727 | linker_flags=-v |
| 16728 | verstring= |
| 16729 | output_objdir=. |
| 16730 | libname=conftest |
| 16731 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
| 16732 | allow_undefined_flag_GCJ= |
| 16733 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 16734 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 16735 | ac_status=$? |
| 16736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16737 | (exit $ac_status); } |
| 16738 | then |
| 16739 | archive_cmds_need_lc_GCJ=no |
| 16740 | else |
| 16741 | archive_cmds_need_lc_GCJ=yes |
| 16742 | fi |
| 16743 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
| 16744 | else |
| 16745 | cat conftest.err 1>&5 |
| 16746 | fi |
| 16747 | $rm conftest* |
| 16748 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
| 16749 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 |
| 16750 | ;; |
| 16751 | esac |
| 16752 | fi |
| 16753 | ;; |
| 16754 | esac |
| 16755 | |
| 16756 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 16757 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 16758 | library_names_spec= |
| 16759 | libname_spec='lib$name' |
| 16760 | soname_spec= |
| 16761 | shrext_cmds=".so" |
| 16762 | postinstall_cmds= |
| 16763 | postuninstall_cmds= |
| 16764 | finish_cmds= |
| 16765 | finish_eval= |
| 16766 | shlibpath_var= |
| 16767 | shlibpath_overrides_runpath=unknown |
| 16768 | version_type=none |
| 16769 | dynamic_linker="$host_os ld.so" |
| 16770 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 16771 | if test "$GCC" = yes; then |
| 16772 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 16773 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 16774 | # if the path contains ";" then we assume it to be the separator |
| 16775 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 16776 | # assumed that no part of a normal pathname contains ";" but that should |
| 16777 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 16778 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 16779 | else |
| 16780 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 16781 | fi |
| 16782 | else |
| 16783 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 16784 | fi |
| 16785 | need_lib_prefix=unknown |
| 16786 | hardcode_into_libs=no |
| 16787 | |
| 16788 | # when you set need_version to no, make sure it does not cause -set_version |
| 16789 | # flags to be left without arguments |
| 16790 | need_version=unknown |
| 16791 | |
| 16792 | case $host_os in |
| 16793 | aix3*) |
| 16794 | version_type=linux |
| 16795 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 16796 | shlibpath_var=LIBPATH |
| 16797 | |
| 16798 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 16799 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16800 | ;; |
| 16801 | |
| 16802 | aix4* | aix5*) |
| 16803 | version_type=linux |
| 16804 | need_lib_prefix=no |
| 16805 | need_version=no |
| 16806 | hardcode_into_libs=yes |
| 16807 | if test "$host_cpu" = ia64; then |
| 16808 | # AIX 5 supports IA64 |
| 16809 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 16810 | shlibpath_var=LD_LIBRARY_PATH |
| 16811 | else |
| 16812 | # With GCC up to 2.95.x, collect2 would create an import file |
| 16813 | # for dependence libraries. The import file would start with |
| 16814 | # the line `#! .'. This would cause the generated library to |
| 16815 | # depend on `.', always an invalid library. This was fixed in |
| 16816 | # development snapshots of GCC prior to 3.0. |
| 16817 | case $host_os in |
| 16818 | aix4 | aix4.[01] | aix4.[01].*) |
| 16819 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 16820 | echo ' yes ' |
| 16821 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 16822 | : |
| 16823 | else |
| 16824 | can_build_shared=no |
| 16825 | fi |
| 16826 | ;; |
| 16827 | esac |
| 16828 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 16829 | # soname into executable. Probably we can add versioning support to |
| 16830 | # collect2, so additional links can be useful in future. |
| 16831 | if test "$aix_use_runtimelinking" = yes; then |
| 16832 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 16833 | # instead of lib<name>.a to let people know that these are not |
| 16834 | # typical AIX shared libraries. |
| 16835 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16836 | else |
| 16837 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 16838 | # and later when we are not doing run time linking. |
| 16839 | library_names_spec='${libname}${release}.a $libname.a' |
| 16840 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16841 | fi |
| 16842 | shlibpath_var=LIBPATH |
| 16843 | fi |
| 16844 | ;; |
| 16845 | |
| 16846 | amigaos*) |
| 16847 | library_names_spec='$libname.ixlibrary $libname.a' |
| 16848 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 16849 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
| 16850 | ;; |
| 16851 | |
| 16852 | beos*) |
| 16853 | library_names_spec='${libname}${shared_ext}' |
| 16854 | dynamic_linker="$host_os ld.so" |
| 16855 | shlibpath_var=LIBRARY_PATH |
| 16856 | ;; |
| 16857 | |
| 16858 | bsdi4*) |
| 16859 | version_type=linux |
| 16860 | need_version=no |
| 16861 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16862 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16863 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 16864 | shlibpath_var=LD_LIBRARY_PATH |
| 16865 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 16866 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 16867 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 16868 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 16869 | # libtool to hard-code these into programs |
| 16870 | ;; |
| 16871 | |
| 16872 | cygwin* | mingw* | pw32*) |
| 16873 | version_type=windows |
| 16874 | shrext_cmds=".dll" |
| 16875 | need_version=no |
| 16876 | need_lib_prefix=no |
| 16877 | |
| 16878 | case $GCC,$host_os in |
| 16879 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 16880 | library_names_spec='$libname.dll.a' |
| 16881 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 16882 | postinstall_cmds='base_file=`basename \${file}`~ |
| 16883 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 16884 | dldir=$destdir/`dirname \$dlpath`~ |
| 16885 | test -d \$dldir || mkdir -p \$dldir~ |
| 16886 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 16887 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 16888 | dlpath=$dir/\$dldll~ |
| 16889 | $rm \$dlpath' |
| 16890 | shlibpath_overrides_runpath=yes |
| 16891 | |
| 16892 | case $host_os in |
| 16893 | cygwin*) |
| 16894 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 16895 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 16896 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 16897 | ;; |
| 16898 | mingw*) |
| 16899 | # MinGW DLLs use traditional 'lib' prefix |
| 16900 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 16901 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 16902 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 16903 | # It is most probably a Windows format PATH printed by |
| 16904 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 16905 | # path with ; separators, and with drive letters. We can handle the |
| 16906 | # drive letters (cygwin fileutils understands them), so leave them, |
| 16907 | # especially as we might pass files found there to a mingw objdump, |
| 16908 | # which wouldn't understand a cygwinified path. Ahh. |
| 16909 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 16910 | else |
| 16911 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 16912 | fi |
| 16913 | ;; |
| 16914 | pw32*) |
| 16915 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 16916 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 16917 | ;; |
| 16918 | esac |
| 16919 | ;; |
| 16920 | |
| 16921 | *) |
| 16922 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 16923 | ;; |
| 16924 | esac |
| 16925 | dynamic_linker='Win32 ld.exe' |
| 16926 | # FIXME: first we should search . and the directory the executable is in |
| 16927 | shlibpath_var=PATH |
| 16928 | ;; |
| 16929 | |
| 16930 | darwin* | rhapsody*) |
| 16931 | dynamic_linker="$host_os dyld" |
| 16932 | version_type=darwin |
| 16933 | need_lib_prefix=no |
| 16934 | need_version=no |
| 16935 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 16936 | soname_spec='${libname}${release}${major}$shared_ext' |
| 16937 | shlibpath_overrides_runpath=yes |
| 16938 | shlibpath_var=DYLD_LIBRARY_PATH |
| 16939 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
| 16940 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 16941 | if test "$GCC" = yes; then |
| 16942 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
| 16943 | else |
| 16944 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 16945 | fi |
| 16946 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 16947 | ;; |
| 16948 | |
| 16949 | dgux*) |
| 16950 | version_type=linux |
| 16951 | need_lib_prefix=no |
| 16952 | need_version=no |
| 16953 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 16954 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16955 | shlibpath_var=LD_LIBRARY_PATH |
| 16956 | ;; |
| 16957 | |
| 16958 | freebsd1*) |
| 16959 | dynamic_linker=no |
| 16960 | ;; |
| 16961 | |
| 16962 | kfreebsd*-gnu) |
| 16963 | version_type=linux |
| 16964 | need_lib_prefix=no |
| 16965 | need_version=no |
| 16966 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16967 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16968 | shlibpath_var=LD_LIBRARY_PATH |
| 16969 | shlibpath_overrides_runpath=no |
| 16970 | hardcode_into_libs=yes |
| 16971 | dynamic_linker='GNU ld.so' |
| 16972 | ;; |
| 16973 | |
| 16974 | freebsd*) |
| 16975 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 16976 | version_type=freebsd-$objformat |
| 16977 | case $version_type in |
| 16978 | freebsd-elf*) |
| 16979 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 16980 | need_version=no |
| 16981 | need_lib_prefix=no |
| 16982 | ;; |
| 16983 | freebsd-*) |
| 16984 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 16985 | need_version=yes |
| 16986 | ;; |
| 16987 | esac |
| 16988 | shlibpath_var=LD_LIBRARY_PATH |
| 16989 | case $host_os in |
| 16990 | freebsd2*) |
| 16991 | shlibpath_overrides_runpath=yes |
| 16992 | ;; |
| 16993 | freebsd3.01* | freebsdelf3.01*) |
| 16994 | shlibpath_overrides_runpath=yes |
| 16995 | hardcode_into_libs=yes |
| 16996 | ;; |
| 16997 | *) # from 3.2 on |
| 16998 | shlibpath_overrides_runpath=no |
| 16999 | hardcode_into_libs=yes |
| 17000 | ;; |
| 17001 | esac |
| 17002 | ;; |
| 17003 | |
| 17004 | gnu*) |
| 17005 | version_type=linux |
| 17006 | need_lib_prefix=no |
| 17007 | need_version=no |
| 17008 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 17009 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17010 | shlibpath_var=LD_LIBRARY_PATH |
| 17011 | hardcode_into_libs=yes |
| 17012 | ;; |
| 17013 | |
| 17014 | hpux9* | hpux10* | hpux11*) |
| 17015 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 17016 | # link against other versions. |
| 17017 | version_type=sunos |
| 17018 | need_lib_prefix=no |
| 17019 | need_version=no |
| 17020 | case "$host_cpu" in |
| 17021 | ia64*) |
| 17022 | shrext_cmds='.so' |
| 17023 | hardcode_into_libs=yes |
| 17024 | dynamic_linker="$host_os dld.so" |
| 17025 | shlibpath_var=LD_LIBRARY_PATH |
| 17026 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 17027 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17028 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17029 | if test "X$HPUX_IA64_MODE" = X32; then |
| 17030 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 17031 | else |
| 17032 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 17033 | fi |
| 17034 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 17035 | ;; |
| 17036 | hppa*64*) |
| 17037 | shrext_cmds='.sl' |
| 17038 | hardcode_into_libs=yes |
| 17039 | dynamic_linker="$host_os dld.sl" |
| 17040 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 17041 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 17042 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17043 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17044 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 17045 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 17046 | ;; |
| 17047 | *) |
| 17048 | shrext_cmds='.sl' |
| 17049 | dynamic_linker="$host_os dld.sl" |
| 17050 | shlibpath_var=SHLIB_PATH |
| 17051 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 17052 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17053 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17054 | ;; |
| 17055 | esac |
| 17056 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 17057 | postinstall_cmds='chmod 555 $lib' |
| 17058 | ;; |
| 17059 | |
| 17060 | irix5* | irix6* | nonstopux*) |
| 17061 | case $host_os in |
| 17062 | nonstopux*) version_type=nonstopux ;; |
| 17063 | *) |
| 17064 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 17065 | version_type=linux |
| 17066 | else |
| 17067 | version_type=irix |
| 17068 | fi ;; |
| 17069 | esac |
| 17070 | need_lib_prefix=no |
| 17071 | need_version=no |
| 17072 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17073 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 17074 | case $host_os in |
| 17075 | irix5* | nonstopux*) |
| 17076 | libsuff= shlibsuff= |
| 17077 | ;; |
| 17078 | *) |
| 17079 | case $LD in # libtool.m4 will add one of these switches to LD |
| 17080 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 17081 | libsuff= shlibsuff= libmagic=32-bit;; |
| 17082 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 17083 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 17084 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 17085 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 17086 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 17087 | esac |
| 17088 | ;; |
| 17089 | esac |
| 17090 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 17091 | shlibpath_overrides_runpath=no |
| 17092 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 17093 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 17094 | hardcode_into_libs=yes |
| 17095 | ;; |
| 17096 | |
| 17097 | # No shared lib support for Linux oldld, aout, or coff. |
| 17098 | linux*oldld* | linux*aout* | linux*coff*) |
| 17099 | dynamic_linker=no |
| 17100 | ;; |
| 17101 | |
| 17102 | # This must be Linux ELF. |
| 17103 | linux*) |
| 17104 | version_type=linux |
| 17105 | need_lib_prefix=no |
| 17106 | need_version=no |
| 17107 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17108 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17109 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 17110 | shlibpath_var=LD_LIBRARY_PATH |
| 17111 | shlibpath_overrides_runpath=no |
| 17112 | # This implies no fast_install, which is unacceptable. |
| 17113 | # Some rework will be needed to allow for fast_install |
| 17114 | # before this can be enabled. |
| 17115 | hardcode_into_libs=yes |
| 17116 | |
| 17117 | # Append ld.so.conf contents to the search path |
| 17118 | if test -f /etc/ld.so.conf; then |
| 17119 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
| 17120 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 17121 | fi |
| 17122 | |
| 17123 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 17124 | # powerpc, because MkLinux only supported shared libraries with the |
| 17125 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 17126 | # most powerpc-linux boxes support dynamic linking these days and |
| 17127 | # people can always --disable-shared, the test was removed, and we |
| 17128 | # assume the GNU/Linux dynamic linker is in use. |
| 17129 | dynamic_linker='GNU/Linux ld.so' |
| 17130 | ;; |
| 17131 | |
| 17132 | knetbsd*-gnu) |
| 17133 | version_type=linux |
| 17134 | need_lib_prefix=no |
| 17135 | need_version=no |
| 17136 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 17137 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17138 | shlibpath_var=LD_LIBRARY_PATH |
| 17139 | shlibpath_overrides_runpath=no |
| 17140 | hardcode_into_libs=yes |
| 17141 | dynamic_linker='GNU ld.so' |
| 17142 | ;; |
| 17143 | |
| 17144 | netbsd*) |
| 17145 | version_type=sunos |
| 17146 | need_lib_prefix=no |
| 17147 | need_version=no |
| 17148 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 17149 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 17150 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 17151 | dynamic_linker='NetBSD (a.out) ld.so' |
| 17152 | else |
| 17153 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 17154 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17155 | dynamic_linker='NetBSD ld.elf_so' |
| 17156 | fi |
| 17157 | shlibpath_var=LD_LIBRARY_PATH |
| 17158 | shlibpath_overrides_runpath=yes |
| 17159 | hardcode_into_libs=yes |
| 17160 | ;; |
| 17161 | |
| 17162 | newsos6) |
| 17163 | version_type=linux |
| 17164 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17165 | shlibpath_var=LD_LIBRARY_PATH |
| 17166 | shlibpath_overrides_runpath=yes |
| 17167 | ;; |
| 17168 | |
| 17169 | nto-qnx*) |
| 17170 | version_type=linux |
| 17171 | need_lib_prefix=no |
| 17172 | need_version=no |
| 17173 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17174 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17175 | shlibpath_var=LD_LIBRARY_PATH |
| 17176 | shlibpath_overrides_runpath=yes |
| 17177 | ;; |
| 17178 | |
| 17179 | openbsd*) |
| 17180 | version_type=sunos |
| 17181 | need_lib_prefix=no |
| 17182 | need_version=yes |
| 17183 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 17184 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 17185 | shlibpath_var=LD_LIBRARY_PATH |
| 17186 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 17187 | case $host_os in |
| 17188 | openbsd2.[89] | openbsd2.[89].*) |
| 17189 | shlibpath_overrides_runpath=no |
| 17190 | ;; |
| 17191 | *) |
| 17192 | shlibpath_overrides_runpath=yes |
| 17193 | ;; |
| 17194 | esac |
| 17195 | else |
| 17196 | shlibpath_overrides_runpath=yes |
| 17197 | fi |
| 17198 | ;; |
| 17199 | |
| 17200 | os2*) |
| 17201 | libname_spec='$name' |
| 17202 | shrext_cmds=".dll" |
| 17203 | need_lib_prefix=no |
| 17204 | library_names_spec='$libname${shared_ext} $libname.a' |
| 17205 | dynamic_linker='OS/2 ld.exe' |
| 17206 | shlibpath_var=LIBPATH |
| 17207 | ;; |
| 17208 | |
| 17209 | osf3* | osf4* | osf5*) |
| 17210 | version_type=osf |
| 17211 | need_lib_prefix=no |
| 17212 | need_version=no |
| 17213 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17214 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17215 | shlibpath_var=LD_LIBRARY_PATH |
| 17216 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 17217 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 17218 | ;; |
| 17219 | |
| 17220 | sco3.2v5*) |
| 17221 | version_type=osf |
| 17222 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17223 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17224 | shlibpath_var=LD_LIBRARY_PATH |
| 17225 | ;; |
| 17226 | |
| 17227 | solaris*) |
| 17228 | version_type=linux |
| 17229 | need_lib_prefix=no |
| 17230 | need_version=no |
| 17231 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17232 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17233 | shlibpath_var=LD_LIBRARY_PATH |
| 17234 | shlibpath_overrides_runpath=yes |
| 17235 | hardcode_into_libs=yes |
| 17236 | # ldd complains unless libraries are executable |
| 17237 | postinstall_cmds='chmod +x $lib' |
| 17238 | ;; |
| 17239 | |
| 17240 | sunos4*) |
| 17241 | version_type=sunos |
| 17242 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 17243 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 17244 | shlibpath_var=LD_LIBRARY_PATH |
| 17245 | shlibpath_overrides_runpath=yes |
| 17246 | if test "$with_gnu_ld" = yes; then |
| 17247 | need_lib_prefix=no |
| 17248 | fi |
| 17249 | need_version=yes |
| 17250 | ;; |
| 17251 | |
| 17252 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 17253 | version_type=linux |
| 17254 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17255 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17256 | shlibpath_var=LD_LIBRARY_PATH |
| 17257 | case $host_vendor in |
| 17258 | sni) |
| 17259 | shlibpath_overrides_runpath=no |
| 17260 | need_lib_prefix=no |
| 17261 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 17262 | runpath_var=LD_RUN_PATH |
| 17263 | ;; |
| 17264 | siemens) |
| 17265 | need_lib_prefix=no |
| 17266 | ;; |
| 17267 | motorola) |
| 17268 | need_lib_prefix=no |
| 17269 | need_version=no |
| 17270 | shlibpath_overrides_runpath=no |
| 17271 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 17272 | ;; |
| 17273 | esac |
| 17274 | ;; |
| 17275 | |
| 17276 | sysv4*MP*) |
| 17277 | if test -d /usr/nec ;then |
| 17278 | version_type=linux |
| 17279 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 17280 | soname_spec='$libname${shared_ext}.$major' |
| 17281 | shlibpath_var=LD_LIBRARY_PATH |
| 17282 | fi |
| 17283 | ;; |
| 17284 | |
| 17285 | uts4*) |
| 17286 | version_type=linux |
| 17287 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17288 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17289 | shlibpath_var=LD_LIBRARY_PATH |
| 17290 | ;; |
| 17291 | |
| 17292 | *) |
| 17293 | dynamic_linker=no |
| 17294 | ;; |
| 17295 | esac |
| 17296 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 17297 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 17298 | test "$dynamic_linker" = no && can_build_shared=no |
| 17299 | |
| 17300 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 17301 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 17302 | hardcode_action_GCJ= |
| 17303 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
| 17304 | test -n "$runpath_var GCJ" || \ |
| 17305 | test "X$hardcode_automatic_GCJ"="Xyes" ; then |
| 17306 | |
| 17307 | # We can hardcode non-existant directories. |
| 17308 | if test "$hardcode_direct_GCJ" != no && |
| 17309 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 17310 | # have to relink, otherwise we might link with an installed library |
| 17311 | # when we should be linking with a yet-to-be-installed one |
| 17312 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
| 17313 | test "$hardcode_minus_L_GCJ" != no; then |
| 17314 | # Linking always hardcodes the temporary library directory. |
| 17315 | hardcode_action_GCJ=relink |
| 17316 | else |
| 17317 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 17318 | hardcode_action_GCJ=immediate |
| 17319 | fi |
| 17320 | else |
| 17321 | # We cannot hardcode anything, or else we can only hardcode existing |
| 17322 | # directories. |
| 17323 | hardcode_action_GCJ=unsupported |
| 17324 | fi |
| 17325 | echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
| 17326 | echo "${ECHO_T}$hardcode_action_GCJ" >&6 |
| 17327 | |
| 17328 | if test "$hardcode_action_GCJ" = relink; then |
| 17329 | # Fast installation is not supported |
| 17330 | enable_fast_install=no |
| 17331 | elif test "$shlibpath_overrides_runpath" = yes || |
| 17332 | test "$enable_shared" = no; then |
| 17333 | # Fast installation is not necessary |
| 17334 | enable_fast_install=needless |
| 17335 | fi |
| 17336 | |
| 17337 | striplib= |
| 17338 | old_striplib= |
| 17339 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 17340 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 17341 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 17342 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 17343 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 17344 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17345 | echo "${ECHO_T}yes" >&6 |
| 17346 | else |
| 17347 | # FIXME - insert some real tests, host_os isn't really good enough |
| 17348 | case $host_os in |
| 17349 | darwin*) |
| 17350 | if test -n "$STRIP" ; then |
| 17351 | striplib="$STRIP -x" |
| 17352 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17353 | echo "${ECHO_T}yes" >&6 |
| 17354 | else |
| 17355 | echo "$as_me:$LINENO: result: no" >&5 |
| 17356 | echo "${ECHO_T}no" >&6 |
| 17357 | fi |
| 17358 | ;; |
| 17359 | *) |
| 17360 | echo "$as_me:$LINENO: result: no" >&5 |
| 17361 | echo "${ECHO_T}no" >&6 |
| 17362 | ;; |
| 17363 | esac |
| 17364 | fi |
| 17365 | |
| 17366 | if test "x$enable_dlopen" != xyes; then |
| 17367 | enable_dlopen=unknown |
| 17368 | enable_dlopen_self=unknown |
| 17369 | enable_dlopen_self_static=unknown |
| 17370 | else |
| 17371 | lt_cv_dlopen=no |
| 17372 | lt_cv_dlopen_libs= |
| 17373 | |
| 17374 | case $host_os in |
| 17375 | beos*) |
| 17376 | lt_cv_dlopen="load_add_on" |
| 17377 | lt_cv_dlopen_libs= |
| 17378 | lt_cv_dlopen_self=yes |
| 17379 | ;; |
| 17380 | |
| 17381 | mingw* | pw32*) |
| 17382 | lt_cv_dlopen="LoadLibrary" |
| 17383 | lt_cv_dlopen_libs= |
| 17384 | ;; |
| 17385 | |
| 17386 | cygwin*) |
| 17387 | lt_cv_dlopen="dlopen" |
| 17388 | lt_cv_dlopen_libs= |
| 17389 | ;; |
| 17390 | |
| 17391 | darwin*) |
| 17392 | # if libdl is installed we need to link against it |
| 17393 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 17394 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 17395 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 17396 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17397 | else |
| 17398 | ac_check_lib_save_LIBS=$LIBS |
| 17399 | LIBS="-ldl $LIBS" |
| 17400 | cat >conftest.$ac_ext <<_ACEOF |
| 17401 | /* confdefs.h. */ |
| 17402 | _ACEOF |
| 17403 | cat confdefs.h >>conftest.$ac_ext |
| 17404 | cat >>conftest.$ac_ext <<_ACEOF |
| 17405 | /* end confdefs.h. */ |
| 17406 | |
| 17407 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17408 | #ifdef __cplusplus |
| 17409 | extern "C" |
| 17410 | #endif |
| 17411 | /* We use char because int might match the return type of a gcc2 |
| 17412 | builtin and then its argument prototype would still apply. */ |
| 17413 | char dlopen (); |
| 17414 | int |
| 17415 | main () |
| 17416 | { |
| 17417 | dlopen (); |
| 17418 | ; |
| 17419 | return 0; |
| 17420 | } |
| 17421 | _ACEOF |
| 17422 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17423 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17424 | (eval $ac_link) 2>conftest.er1 |
| 17425 | ac_status=$? |
| 17426 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17427 | rm -f conftest.er1 |
| 17428 | cat conftest.err >&5 |
| 17429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17430 | (exit $ac_status); } && |
| 17431 | { ac_try='test -z "$ac_c_werror_flag" |
| 17432 | || test ! -s conftest.err' |
| 17433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17434 | (eval $ac_try) 2>&5 |
| 17435 | ac_status=$? |
| 17436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17437 | (exit $ac_status); }; } && |
| 17438 | { ac_try='test -s conftest$ac_exeext' |
| 17439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17440 | (eval $ac_try) 2>&5 |
| 17441 | ac_status=$? |
| 17442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17443 | (exit $ac_status); }; }; then |
| 17444 | ac_cv_lib_dl_dlopen=yes |
| 17445 | else |
| 17446 | echo "$as_me: failed program was:" >&5 |
| 17447 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17448 | |
| 17449 | ac_cv_lib_dl_dlopen=no |
| 17450 | fi |
| 17451 | rm -f conftest.err conftest.$ac_objext \ |
| 17452 | conftest$ac_exeext conftest.$ac_ext |
| 17453 | LIBS=$ac_check_lib_save_LIBS |
| 17454 | fi |
| 17455 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 17456 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 17457 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 17458 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 17459 | else |
| 17460 | |
| 17461 | lt_cv_dlopen="dyld" |
| 17462 | lt_cv_dlopen_libs= |
| 17463 | lt_cv_dlopen_self=yes |
| 17464 | |
| 17465 | fi |
| 17466 | |
| 17467 | ;; |
| 17468 | |
| 17469 | *) |
| 17470 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 17471 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 17472 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 17473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17474 | else |
| 17475 | cat >conftest.$ac_ext <<_ACEOF |
| 17476 | /* confdefs.h. */ |
| 17477 | _ACEOF |
| 17478 | cat confdefs.h >>conftest.$ac_ext |
| 17479 | cat >>conftest.$ac_ext <<_ACEOF |
| 17480 | /* end confdefs.h. */ |
| 17481 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 17482 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17483 | #define shl_load innocuous_shl_load |
| 17484 | |
| 17485 | /* System header to define __stub macros and hopefully few prototypes, |
| 17486 | which can conflict with char shl_load (); below. |
| 17487 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17488 | <limits.h> exists even on freestanding compilers. */ |
| 17489 | |
| 17490 | #ifdef __STDC__ |
| 17491 | # include <limits.h> |
| 17492 | #else |
| 17493 | # include <assert.h> |
| 17494 | #endif |
| 17495 | |
| 17496 | #undef shl_load |
| 17497 | |
| 17498 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17499 | #ifdef __cplusplus |
| 17500 | extern "C" |
| 17501 | { |
| 17502 | #endif |
| 17503 | /* We use char because int might match the return type of a gcc2 |
| 17504 | builtin and then its argument prototype would still apply. */ |
| 17505 | char shl_load (); |
| 17506 | /* The GNU C library defines this for functions which it implements |
| 17507 | to always fail with ENOSYS. Some functions are actually named |
| 17508 | something starting with __ and the normal name is an alias. */ |
| 17509 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 17510 | choke me |
| 17511 | #else |
| 17512 | char (*f) () = shl_load; |
| 17513 | #endif |
| 17514 | #ifdef __cplusplus |
| 17515 | } |
| 17516 | #endif |
| 17517 | |
| 17518 | int |
| 17519 | main () |
| 17520 | { |
| 17521 | return f != shl_load; |
| 17522 | ; |
| 17523 | return 0; |
| 17524 | } |
| 17525 | _ACEOF |
| 17526 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17527 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17528 | (eval $ac_link) 2>conftest.er1 |
| 17529 | ac_status=$? |
| 17530 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17531 | rm -f conftest.er1 |
| 17532 | cat conftest.err >&5 |
| 17533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17534 | (exit $ac_status); } && |
| 17535 | { ac_try='test -z "$ac_c_werror_flag" |
| 17536 | || test ! -s conftest.err' |
| 17537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17538 | (eval $ac_try) 2>&5 |
| 17539 | ac_status=$? |
| 17540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17541 | (exit $ac_status); }; } && |
| 17542 | { ac_try='test -s conftest$ac_exeext' |
| 17543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17544 | (eval $ac_try) 2>&5 |
| 17545 | ac_status=$? |
| 17546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17547 | (exit $ac_status); }; }; then |
| 17548 | ac_cv_func_shl_load=yes |
| 17549 | else |
| 17550 | echo "$as_me: failed program was:" >&5 |
| 17551 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17552 | |
| 17553 | ac_cv_func_shl_load=no |
| 17554 | fi |
| 17555 | rm -f conftest.err conftest.$ac_objext \ |
| 17556 | conftest$ac_exeext conftest.$ac_ext |
| 17557 | fi |
| 17558 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 17559 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 17560 | if test $ac_cv_func_shl_load = yes; then |
| 17561 | lt_cv_dlopen="shl_load" |
| 17562 | else |
| 17563 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 17564 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 17565 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 17566 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17567 | else |
| 17568 | ac_check_lib_save_LIBS=$LIBS |
| 17569 | LIBS="-ldld $LIBS" |
| 17570 | cat >conftest.$ac_ext <<_ACEOF |
| 17571 | /* confdefs.h. */ |
| 17572 | _ACEOF |
| 17573 | cat confdefs.h >>conftest.$ac_ext |
| 17574 | cat >>conftest.$ac_ext <<_ACEOF |
| 17575 | /* end confdefs.h. */ |
| 17576 | |
| 17577 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17578 | #ifdef __cplusplus |
| 17579 | extern "C" |
| 17580 | #endif |
| 17581 | /* We use char because int might match the return type of a gcc2 |
| 17582 | builtin and then its argument prototype would still apply. */ |
| 17583 | char shl_load (); |
| 17584 | int |
| 17585 | main () |
| 17586 | { |
| 17587 | shl_load (); |
| 17588 | ; |
| 17589 | return 0; |
| 17590 | } |
| 17591 | _ACEOF |
| 17592 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17593 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17594 | (eval $ac_link) 2>conftest.er1 |
| 17595 | ac_status=$? |
| 17596 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17597 | rm -f conftest.er1 |
| 17598 | cat conftest.err >&5 |
| 17599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17600 | (exit $ac_status); } && |
| 17601 | { ac_try='test -z "$ac_c_werror_flag" |
| 17602 | || test ! -s conftest.err' |
| 17603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17604 | (eval $ac_try) 2>&5 |
| 17605 | ac_status=$? |
| 17606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17607 | (exit $ac_status); }; } && |
| 17608 | { ac_try='test -s conftest$ac_exeext' |
| 17609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17610 | (eval $ac_try) 2>&5 |
| 17611 | ac_status=$? |
| 17612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17613 | (exit $ac_status); }; }; then |
| 17614 | ac_cv_lib_dld_shl_load=yes |
| 17615 | else |
| 17616 | echo "$as_me: failed program was:" >&5 |
| 17617 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17618 | |
| 17619 | ac_cv_lib_dld_shl_load=no |
| 17620 | fi |
| 17621 | rm -f conftest.err conftest.$ac_objext \ |
| 17622 | conftest$ac_exeext conftest.$ac_ext |
| 17623 | LIBS=$ac_check_lib_save_LIBS |
| 17624 | fi |
| 17625 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 17626 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 17627 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 17628 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 17629 | else |
| 17630 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 17631 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 17632 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 17633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17634 | else |
| 17635 | cat >conftest.$ac_ext <<_ACEOF |
| 17636 | /* confdefs.h. */ |
| 17637 | _ACEOF |
| 17638 | cat confdefs.h >>conftest.$ac_ext |
| 17639 | cat >>conftest.$ac_ext <<_ACEOF |
| 17640 | /* end confdefs.h. */ |
| 17641 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 17642 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17643 | #define dlopen innocuous_dlopen |
| 17644 | |
| 17645 | /* System header to define __stub macros and hopefully few prototypes, |
| 17646 | which can conflict with char dlopen (); below. |
| 17647 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17648 | <limits.h> exists even on freestanding compilers. */ |
| 17649 | |
| 17650 | #ifdef __STDC__ |
| 17651 | # include <limits.h> |
| 17652 | #else |
| 17653 | # include <assert.h> |
| 17654 | #endif |
| 17655 | |
| 17656 | #undef dlopen |
| 17657 | |
| 17658 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17659 | #ifdef __cplusplus |
| 17660 | extern "C" |
| 17661 | { |
| 17662 | #endif |
| 17663 | /* We use char because int might match the return type of a gcc2 |
| 17664 | builtin and then its argument prototype would still apply. */ |
| 17665 | char dlopen (); |
| 17666 | /* The GNU C library defines this for functions which it implements |
| 17667 | to always fail with ENOSYS. Some functions are actually named |
| 17668 | something starting with __ and the normal name is an alias. */ |
| 17669 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 17670 | choke me |
| 17671 | #else |
| 17672 | char (*f) () = dlopen; |
| 17673 | #endif |
| 17674 | #ifdef __cplusplus |
| 17675 | } |
| 17676 | #endif |
| 17677 | |
| 17678 | int |
| 17679 | main () |
| 17680 | { |
| 17681 | return f != dlopen; |
| 17682 | ; |
| 17683 | return 0; |
| 17684 | } |
| 17685 | _ACEOF |
| 17686 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17687 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17688 | (eval $ac_link) 2>conftest.er1 |
| 17689 | ac_status=$? |
| 17690 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17691 | rm -f conftest.er1 |
| 17692 | cat conftest.err >&5 |
| 17693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17694 | (exit $ac_status); } && |
| 17695 | { ac_try='test -z "$ac_c_werror_flag" |
| 17696 | || test ! -s conftest.err' |
| 17697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17698 | (eval $ac_try) 2>&5 |
| 17699 | ac_status=$? |
| 17700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17701 | (exit $ac_status); }; } && |
| 17702 | { ac_try='test -s conftest$ac_exeext' |
| 17703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17704 | (eval $ac_try) 2>&5 |
| 17705 | ac_status=$? |
| 17706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17707 | (exit $ac_status); }; }; then |
| 17708 | ac_cv_func_dlopen=yes |
| 17709 | else |
| 17710 | echo "$as_me: failed program was:" >&5 |
| 17711 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17712 | |
| 17713 | ac_cv_func_dlopen=no |
| 17714 | fi |
| 17715 | rm -f conftest.err conftest.$ac_objext \ |
| 17716 | conftest$ac_exeext conftest.$ac_ext |
| 17717 | fi |
| 17718 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 17719 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 17720 | if test $ac_cv_func_dlopen = yes; then |
| 17721 | lt_cv_dlopen="dlopen" |
| 17722 | else |
| 17723 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 17724 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 17725 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 17726 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17727 | else |
| 17728 | ac_check_lib_save_LIBS=$LIBS |
| 17729 | LIBS="-ldl $LIBS" |
| 17730 | cat >conftest.$ac_ext <<_ACEOF |
| 17731 | /* confdefs.h. */ |
| 17732 | _ACEOF |
| 17733 | cat confdefs.h >>conftest.$ac_ext |
| 17734 | cat >>conftest.$ac_ext <<_ACEOF |
| 17735 | /* end confdefs.h. */ |
| 17736 | |
| 17737 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17738 | #ifdef __cplusplus |
| 17739 | extern "C" |
| 17740 | #endif |
| 17741 | /* We use char because int might match the return type of a gcc2 |
| 17742 | builtin and then its argument prototype would still apply. */ |
| 17743 | char dlopen (); |
| 17744 | int |
| 17745 | main () |
| 17746 | { |
| 17747 | dlopen (); |
| 17748 | ; |
| 17749 | return 0; |
| 17750 | } |
| 17751 | _ACEOF |
| 17752 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17753 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17754 | (eval $ac_link) 2>conftest.er1 |
| 17755 | ac_status=$? |
| 17756 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17757 | rm -f conftest.er1 |
| 17758 | cat conftest.err >&5 |
| 17759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17760 | (exit $ac_status); } && |
| 17761 | { ac_try='test -z "$ac_c_werror_flag" |
| 17762 | || test ! -s conftest.err' |
| 17763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17764 | (eval $ac_try) 2>&5 |
| 17765 | ac_status=$? |
| 17766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17767 | (exit $ac_status); }; } && |
| 17768 | { ac_try='test -s conftest$ac_exeext' |
| 17769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17770 | (eval $ac_try) 2>&5 |
| 17771 | ac_status=$? |
| 17772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17773 | (exit $ac_status); }; }; then |
| 17774 | ac_cv_lib_dl_dlopen=yes |
| 17775 | else |
| 17776 | echo "$as_me: failed program was:" >&5 |
| 17777 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17778 | |
| 17779 | ac_cv_lib_dl_dlopen=no |
| 17780 | fi |
| 17781 | rm -f conftest.err conftest.$ac_objext \ |
| 17782 | conftest$ac_exeext conftest.$ac_ext |
| 17783 | LIBS=$ac_check_lib_save_LIBS |
| 17784 | fi |
| 17785 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 17786 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 17787 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 17788 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 17789 | else |
| 17790 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 17791 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 17792 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 17793 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17794 | else |
| 17795 | ac_check_lib_save_LIBS=$LIBS |
| 17796 | LIBS="-lsvld $LIBS" |
| 17797 | cat >conftest.$ac_ext <<_ACEOF |
| 17798 | /* confdefs.h. */ |
| 17799 | _ACEOF |
| 17800 | cat confdefs.h >>conftest.$ac_ext |
| 17801 | cat >>conftest.$ac_ext <<_ACEOF |
| 17802 | /* end confdefs.h. */ |
| 17803 | |
| 17804 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17805 | #ifdef __cplusplus |
| 17806 | extern "C" |
| 17807 | #endif |
| 17808 | /* We use char because int might match the return type of a gcc2 |
| 17809 | builtin and then its argument prototype would still apply. */ |
| 17810 | char dlopen (); |
| 17811 | int |
| 17812 | main () |
| 17813 | { |
| 17814 | dlopen (); |
| 17815 | ; |
| 17816 | return 0; |
| 17817 | } |
| 17818 | _ACEOF |
| 17819 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17820 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17821 | (eval $ac_link) 2>conftest.er1 |
| 17822 | ac_status=$? |
| 17823 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17824 | rm -f conftest.er1 |
| 17825 | cat conftest.err >&5 |
| 17826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17827 | (exit $ac_status); } && |
| 17828 | { ac_try='test -z "$ac_c_werror_flag" |
| 17829 | || test ! -s conftest.err' |
| 17830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17831 | (eval $ac_try) 2>&5 |
| 17832 | ac_status=$? |
| 17833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17834 | (exit $ac_status); }; } && |
| 17835 | { ac_try='test -s conftest$ac_exeext' |
| 17836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17837 | (eval $ac_try) 2>&5 |
| 17838 | ac_status=$? |
| 17839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17840 | (exit $ac_status); }; }; then |
| 17841 | ac_cv_lib_svld_dlopen=yes |
| 17842 | else |
| 17843 | echo "$as_me: failed program was:" >&5 |
| 17844 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17845 | |
| 17846 | ac_cv_lib_svld_dlopen=no |
| 17847 | fi |
| 17848 | rm -f conftest.err conftest.$ac_objext \ |
| 17849 | conftest$ac_exeext conftest.$ac_ext |
| 17850 | LIBS=$ac_check_lib_save_LIBS |
| 17851 | fi |
| 17852 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 17853 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 17854 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 17855 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 17856 | else |
| 17857 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 17858 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 17859 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 17860 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17861 | else |
| 17862 | ac_check_lib_save_LIBS=$LIBS |
| 17863 | LIBS="-ldld $LIBS" |
| 17864 | cat >conftest.$ac_ext <<_ACEOF |
| 17865 | /* confdefs.h. */ |
| 17866 | _ACEOF |
| 17867 | cat confdefs.h >>conftest.$ac_ext |
| 17868 | cat >>conftest.$ac_ext <<_ACEOF |
| 17869 | /* end confdefs.h. */ |
| 17870 | |
| 17871 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17872 | #ifdef __cplusplus |
| 17873 | extern "C" |
| 17874 | #endif |
| 17875 | /* We use char because int might match the return type of a gcc2 |
| 17876 | builtin and then its argument prototype would still apply. */ |
| 17877 | char dld_link (); |
| 17878 | int |
| 17879 | main () |
| 17880 | { |
| 17881 | dld_link (); |
| 17882 | ; |
| 17883 | return 0; |
| 17884 | } |
| 17885 | _ACEOF |
| 17886 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17887 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17888 | (eval $ac_link) 2>conftest.er1 |
| 17889 | ac_status=$? |
| 17890 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17891 | rm -f conftest.er1 |
| 17892 | cat conftest.err >&5 |
| 17893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17894 | (exit $ac_status); } && |
| 17895 | { ac_try='test -z "$ac_c_werror_flag" |
| 17896 | || test ! -s conftest.err' |
| 17897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17898 | (eval $ac_try) 2>&5 |
| 17899 | ac_status=$? |
| 17900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17901 | (exit $ac_status); }; } && |
| 17902 | { ac_try='test -s conftest$ac_exeext' |
| 17903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17904 | (eval $ac_try) 2>&5 |
| 17905 | ac_status=$? |
| 17906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17907 | (exit $ac_status); }; }; then |
| 17908 | ac_cv_lib_dld_dld_link=yes |
| 17909 | else |
| 17910 | echo "$as_me: failed program was:" >&5 |
| 17911 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17912 | |
| 17913 | ac_cv_lib_dld_dld_link=no |
| 17914 | fi |
| 17915 | rm -f conftest.err conftest.$ac_objext \ |
| 17916 | conftest$ac_exeext conftest.$ac_ext |
| 17917 | LIBS=$ac_check_lib_save_LIBS |
| 17918 | fi |
| 17919 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 17920 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 17921 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 17922 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 17923 | fi |
| 17924 | |
| 17925 | |
| 17926 | fi |
| 17927 | |
| 17928 | |
| 17929 | fi |
| 17930 | |
| 17931 | |
| 17932 | fi |
| 17933 | |
| 17934 | |
| 17935 | fi |
| 17936 | |
| 17937 | |
| 17938 | fi |
| 17939 | |
| 17940 | ;; |
| 17941 | esac |
| 17942 | |
| 17943 | if test "x$lt_cv_dlopen" != xno; then |
| 17944 | enable_dlopen=yes |
| 17945 | else |
| 17946 | enable_dlopen=no |
| 17947 | fi |
| 17948 | |
| 17949 | case $lt_cv_dlopen in |
| 17950 | dlopen) |
| 17951 | save_CPPFLAGS="$CPPFLAGS" |
| 17952 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 17953 | |
| 17954 | save_LDFLAGS="$LDFLAGS" |
| 17955 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 17956 | |
| 17957 | save_LIBS="$LIBS" |
| 17958 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 17959 | |
| 17960 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 17961 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 17962 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 17963 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17964 | else |
| 17965 | if test "$cross_compiling" = yes; then : |
| 17966 | lt_cv_dlopen_self=cross |
| 17967 | else |
| 17968 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 17969 | lt_status=$lt_dlunknown |
| 17970 | cat > conftest.$ac_ext <<EOF |
Lev Walkin | 33cded1 | 2004-09-19 19:40:52 +0000 | [diff] [blame] | 17971 | #line 17971 "configure" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 17972 | #include "confdefs.h" |
| 17973 | |
| 17974 | #if HAVE_DLFCN_H |
| 17975 | #include <dlfcn.h> |
| 17976 | #endif |
| 17977 | |
| 17978 | #include <stdio.h> |
| 17979 | |
| 17980 | #ifdef RTLD_GLOBAL |
| 17981 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 17982 | #else |
| 17983 | # ifdef DL_GLOBAL |
| 17984 | # define LT_DLGLOBAL DL_GLOBAL |
| 17985 | # else |
| 17986 | # define LT_DLGLOBAL 0 |
| 17987 | # endif |
| 17988 | #endif |
| 17989 | |
| 17990 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 17991 | find out it does not work in some platform. */ |
| 17992 | #ifndef LT_DLLAZY_OR_NOW |
| 17993 | # ifdef RTLD_LAZY |
| 17994 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 17995 | # else |
| 17996 | # ifdef DL_LAZY |
| 17997 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 17998 | # else |
| 17999 | # ifdef RTLD_NOW |
| 18000 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 18001 | # else |
| 18002 | # ifdef DL_NOW |
| 18003 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 18004 | # else |
| 18005 | # define LT_DLLAZY_OR_NOW 0 |
| 18006 | # endif |
| 18007 | # endif |
| 18008 | # endif |
| 18009 | # endif |
| 18010 | #endif |
| 18011 | |
| 18012 | #ifdef __cplusplus |
| 18013 | extern "C" void exit (int); |
| 18014 | #endif |
| 18015 | |
| 18016 | void fnord() { int i=42;} |
| 18017 | int main () |
| 18018 | { |
| 18019 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 18020 | int status = $lt_dlunknown; |
| 18021 | |
| 18022 | if (self) |
| 18023 | { |
| 18024 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 18025 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 18026 | /* dlclose (self); */ |
| 18027 | } |
| 18028 | |
| 18029 | exit (status); |
| 18030 | } |
| 18031 | EOF |
| 18032 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18033 | (eval $ac_link) 2>&5 |
| 18034 | ac_status=$? |
| 18035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18036 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 18037 | (./conftest; exit; ) 2>/dev/null |
| 18038 | lt_status=$? |
| 18039 | case x$lt_status in |
| 18040 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 18041 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 18042 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 18043 | esac |
| 18044 | else : |
| 18045 | # compilation failed |
| 18046 | lt_cv_dlopen_self=no |
| 18047 | fi |
| 18048 | fi |
| 18049 | rm -fr conftest* |
| 18050 | |
| 18051 | |
| 18052 | fi |
| 18053 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 18054 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 18055 | |
| 18056 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 18057 | LDFLAGS="$LDFLAGS $link_static_flag" |
| 18058 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 18059 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 18060 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 18061 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18062 | else |
| 18063 | if test "$cross_compiling" = yes; then : |
| 18064 | lt_cv_dlopen_self_static=cross |
| 18065 | else |
| 18066 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 18067 | lt_status=$lt_dlunknown |
| 18068 | cat > conftest.$ac_ext <<EOF |
Lev Walkin | 33cded1 | 2004-09-19 19:40:52 +0000 | [diff] [blame] | 18069 | #line 18069 "configure" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 18070 | #include "confdefs.h" |
| 18071 | |
| 18072 | #if HAVE_DLFCN_H |
| 18073 | #include <dlfcn.h> |
| 18074 | #endif |
| 18075 | |
| 18076 | #include <stdio.h> |
| 18077 | |
| 18078 | #ifdef RTLD_GLOBAL |
| 18079 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 18080 | #else |
| 18081 | # ifdef DL_GLOBAL |
| 18082 | # define LT_DLGLOBAL DL_GLOBAL |
| 18083 | # else |
| 18084 | # define LT_DLGLOBAL 0 |
| 18085 | # endif |
| 18086 | #endif |
| 18087 | |
| 18088 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 18089 | find out it does not work in some platform. */ |
| 18090 | #ifndef LT_DLLAZY_OR_NOW |
| 18091 | # ifdef RTLD_LAZY |
| 18092 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 18093 | # else |
| 18094 | # ifdef DL_LAZY |
| 18095 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 18096 | # else |
| 18097 | # ifdef RTLD_NOW |
| 18098 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 18099 | # else |
| 18100 | # ifdef DL_NOW |
| 18101 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 18102 | # else |
| 18103 | # define LT_DLLAZY_OR_NOW 0 |
| 18104 | # endif |
| 18105 | # endif |
| 18106 | # endif |
| 18107 | # endif |
| 18108 | #endif |
| 18109 | |
| 18110 | #ifdef __cplusplus |
| 18111 | extern "C" void exit (int); |
| 18112 | #endif |
| 18113 | |
| 18114 | void fnord() { int i=42;} |
| 18115 | int main () |
| 18116 | { |
| 18117 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 18118 | int status = $lt_dlunknown; |
| 18119 | |
| 18120 | if (self) |
| 18121 | { |
| 18122 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 18123 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 18124 | /* dlclose (self); */ |
| 18125 | } |
| 18126 | |
| 18127 | exit (status); |
| 18128 | } |
| 18129 | EOF |
| 18130 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18131 | (eval $ac_link) 2>&5 |
| 18132 | ac_status=$? |
| 18133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18134 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 18135 | (./conftest; exit; ) 2>/dev/null |
| 18136 | lt_status=$? |
| 18137 | case x$lt_status in |
| 18138 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 18139 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 18140 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 18141 | esac |
| 18142 | else : |
| 18143 | # compilation failed |
| 18144 | lt_cv_dlopen_self_static=no |
| 18145 | fi |
| 18146 | fi |
| 18147 | rm -fr conftest* |
| 18148 | |
| 18149 | |
| 18150 | fi |
| 18151 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 18152 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 18153 | fi |
| 18154 | |
| 18155 | CPPFLAGS="$save_CPPFLAGS" |
| 18156 | LDFLAGS="$save_LDFLAGS" |
| 18157 | LIBS="$save_LIBS" |
| 18158 | ;; |
| 18159 | esac |
| 18160 | |
| 18161 | case $lt_cv_dlopen_self in |
| 18162 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 18163 | *) enable_dlopen_self=unknown ;; |
| 18164 | esac |
| 18165 | |
| 18166 | case $lt_cv_dlopen_self_static in |
| 18167 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 18168 | *) enable_dlopen_self_static=unknown ;; |
| 18169 | esac |
| 18170 | fi |
| 18171 | |
| 18172 | |
| 18173 | # The else clause should only fire when bootstrapping the |
| 18174 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 18175 | # with your package, and you will get complaints that there are |
| 18176 | # no rules to generate ltmain.sh. |
| 18177 | if test -f "$ltmain"; then |
| 18178 | # See if we are running on zsh, and set the options which allow our commands through |
| 18179 | # without removal of \ escapes. |
| 18180 | if test -n "${ZSH_VERSION+set}" ; then |
| 18181 | setopt NO_GLOB_SUBST |
| 18182 | fi |
| 18183 | # Now quote all the things that may contain metacharacters while being |
| 18184 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 18185 | # variables and quote the copies for generation of the libtool script. |
| 18186 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 18187 | SED SHELL STRIP \ |
| 18188 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 18189 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 18190 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 18191 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 18192 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 18193 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 18194 | old_postinstall_cmds old_postuninstall_cmds \ |
| 18195 | compiler_GCJ \ |
| 18196 | CC_GCJ \ |
| 18197 | LD_GCJ \ |
| 18198 | lt_prog_compiler_wl_GCJ \ |
| 18199 | lt_prog_compiler_pic_GCJ \ |
| 18200 | lt_prog_compiler_static_GCJ \ |
| 18201 | lt_prog_compiler_no_builtin_flag_GCJ \ |
| 18202 | export_dynamic_flag_spec_GCJ \ |
| 18203 | thread_safe_flag_spec_GCJ \ |
| 18204 | whole_archive_flag_spec_GCJ \ |
| 18205 | enable_shared_with_static_runtimes_GCJ \ |
| 18206 | old_archive_cmds_GCJ \ |
| 18207 | old_archive_from_new_cmds_GCJ \ |
| 18208 | predep_objects_GCJ \ |
| 18209 | postdep_objects_GCJ \ |
| 18210 | predeps_GCJ \ |
| 18211 | postdeps_GCJ \ |
| 18212 | compiler_lib_search_path_GCJ \ |
| 18213 | archive_cmds_GCJ \ |
| 18214 | archive_expsym_cmds_GCJ \ |
| 18215 | postinstall_cmds_GCJ \ |
| 18216 | postuninstall_cmds_GCJ \ |
| 18217 | old_archive_from_expsyms_cmds_GCJ \ |
| 18218 | allow_undefined_flag_GCJ \ |
| 18219 | no_undefined_flag_GCJ \ |
| 18220 | export_symbols_cmds_GCJ \ |
| 18221 | hardcode_libdir_flag_spec_GCJ \ |
| 18222 | hardcode_libdir_flag_spec_ld_GCJ \ |
| 18223 | hardcode_libdir_separator_GCJ \ |
| 18224 | hardcode_automatic_GCJ \ |
| 18225 | module_cmds_GCJ \ |
| 18226 | module_expsym_cmds_GCJ \ |
| 18227 | lt_cv_prog_compiler_c_o_GCJ \ |
| 18228 | exclude_expsyms_GCJ \ |
| 18229 | include_expsyms_GCJ; do |
| 18230 | |
| 18231 | case $var in |
| 18232 | old_archive_cmds_GCJ | \ |
| 18233 | old_archive_from_new_cmds_GCJ | \ |
| 18234 | archive_cmds_GCJ | \ |
| 18235 | archive_expsym_cmds_GCJ | \ |
| 18236 | module_cmds_GCJ | \ |
| 18237 | module_expsym_cmds_GCJ | \ |
| 18238 | old_archive_from_expsyms_cmds_GCJ | \ |
| 18239 | export_symbols_cmds_GCJ | \ |
| 18240 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 18241 | postinstall_cmds | postuninstall_cmds | \ |
| 18242 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 18243 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 18244 | # Double-quote double-evaled strings. |
| 18245 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 18246 | ;; |
| 18247 | *) |
| 18248 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 18249 | ;; |
| 18250 | esac |
| 18251 | done |
| 18252 | |
| 18253 | case $lt_echo in |
| 18254 | *'\$0 --fallback-echo"') |
| 18255 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 18256 | ;; |
| 18257 | esac |
| 18258 | |
| 18259 | cfgfile="$ofile" |
| 18260 | |
| 18261 | cat <<__EOF__ >> "$cfgfile" |
| 18262 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 18263 | |
| 18264 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 18265 | |
| 18266 | # Shell to use when invoking shell scripts. |
| 18267 | SHELL=$lt_SHELL |
| 18268 | |
| 18269 | # Whether or not to build shared libraries. |
| 18270 | build_libtool_libs=$enable_shared |
| 18271 | |
| 18272 | # Whether or not to build static libraries. |
| 18273 | build_old_libs=$enable_static |
| 18274 | |
| 18275 | # Whether or not to add -lc for building shared libraries. |
| 18276 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
| 18277 | |
| 18278 | # Whether or not to disallow shared libs when runtime libs are static |
| 18279 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
| 18280 | |
| 18281 | # Whether or not to optimize for fast installation. |
| 18282 | fast_install=$enable_fast_install |
| 18283 | |
| 18284 | # The host system. |
| 18285 | host_alias=$host_alias |
| 18286 | host=$host |
| 18287 | |
| 18288 | # An echo program that does not interpret backslashes. |
| 18289 | echo=$lt_echo |
| 18290 | |
| 18291 | # The archiver. |
| 18292 | AR=$lt_AR |
| 18293 | AR_FLAGS=$lt_AR_FLAGS |
| 18294 | |
| 18295 | # A C compiler. |
| 18296 | LTCC=$lt_LTCC |
| 18297 | |
| 18298 | # A language-specific compiler. |
| 18299 | CC=$lt_compiler_GCJ |
| 18300 | |
| 18301 | # Is the compiler the GNU C compiler? |
| 18302 | with_gcc=$GCC_GCJ |
| 18303 | |
| 18304 | # An ERE matcher. |
| 18305 | EGREP=$lt_EGREP |
| 18306 | |
| 18307 | # The linker used to build libraries. |
| 18308 | LD=$lt_LD_GCJ |
| 18309 | |
| 18310 | # Whether we need hard or soft links. |
| 18311 | LN_S=$lt_LN_S |
| 18312 | |
| 18313 | # A BSD-compatible nm program. |
| 18314 | NM=$lt_NM |
| 18315 | |
| 18316 | # A symbol stripping program |
| 18317 | STRIP=$lt_STRIP |
| 18318 | |
| 18319 | # Used to examine libraries when file_magic_cmd begins "file" |
| 18320 | MAGIC_CMD=$MAGIC_CMD |
| 18321 | |
| 18322 | # Used on cygwin: DLL creation program. |
| 18323 | DLLTOOL="$DLLTOOL" |
| 18324 | |
| 18325 | # Used on cygwin: object dumper. |
| 18326 | OBJDUMP="$OBJDUMP" |
| 18327 | |
| 18328 | # Used on cygwin: assembler. |
| 18329 | AS="$AS" |
| 18330 | |
| 18331 | # The name of the directory that contains temporary libtool files. |
| 18332 | objdir=$objdir |
| 18333 | |
| 18334 | # How to create reloadable object files. |
| 18335 | reload_flag=$lt_reload_flag |
| 18336 | reload_cmds=$lt_reload_cmds |
| 18337 | |
| 18338 | # How to pass a linker flag through the compiler. |
| 18339 | wl=$lt_lt_prog_compiler_wl_GCJ |
| 18340 | |
| 18341 | # Object file suffix (normally "o"). |
| 18342 | objext="$ac_objext" |
| 18343 | |
| 18344 | # Old archive suffix (normally "a"). |
| 18345 | libext="$libext" |
| 18346 | |
| 18347 | # Shared library suffix (normally ".so"). |
| 18348 | shrext_cmds='$shrext_cmds' |
| 18349 | |
| 18350 | # Executable file suffix (normally ""). |
| 18351 | exeext="$exeext" |
| 18352 | |
| 18353 | # Additional compiler flags for building library objects. |
| 18354 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
| 18355 | pic_mode=$pic_mode |
| 18356 | |
| 18357 | # What is the maximum length of a command? |
| 18358 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 18359 | |
| 18360 | # Does compiler simultaneously support -c and -o options? |
| 18361 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
| 18362 | |
| 18363 | # Must we lock files when doing compilation ? |
| 18364 | need_locks=$lt_need_locks |
| 18365 | |
| 18366 | # Do we need the lib prefix for modules? |
| 18367 | need_lib_prefix=$need_lib_prefix |
| 18368 | |
| 18369 | # Do we need a version for libraries? |
| 18370 | need_version=$need_version |
| 18371 | |
| 18372 | # Whether dlopen is supported. |
| 18373 | dlopen_support=$enable_dlopen |
| 18374 | |
| 18375 | # Whether dlopen of programs is supported. |
| 18376 | dlopen_self=$enable_dlopen_self |
| 18377 | |
| 18378 | # Whether dlopen of statically linked programs is supported. |
| 18379 | dlopen_self_static=$enable_dlopen_self_static |
| 18380 | |
| 18381 | # Compiler flag to prevent dynamic linking. |
| 18382 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
| 18383 | |
| 18384 | # Compiler flag to turn off builtin functions. |
| 18385 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
| 18386 | |
| 18387 | # Compiler flag to allow reflexive dlopens. |
| 18388 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
| 18389 | |
| 18390 | # Compiler flag to generate shared objects directly from archives. |
| 18391 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
| 18392 | |
| 18393 | # Compiler flag to generate thread-safe objects. |
| 18394 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
| 18395 | |
| 18396 | # Library versioning type. |
| 18397 | version_type=$version_type |
| 18398 | |
| 18399 | # Format of library name prefix. |
| 18400 | libname_spec=$lt_libname_spec |
| 18401 | |
| 18402 | # List of archive names. First name is the real one, the rest are links. |
| 18403 | # The last name is the one that the linker finds with -lNAME. |
| 18404 | library_names_spec=$lt_library_names_spec |
| 18405 | |
| 18406 | # The coded name of the library, if different from the real name. |
| 18407 | soname_spec=$lt_soname_spec |
| 18408 | |
| 18409 | # Commands used to build and install an old-style archive. |
| 18410 | RANLIB=$lt_RANLIB |
| 18411 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
| 18412 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 18413 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 18414 | |
| 18415 | # Create an old-style archive from a shared archive. |
| 18416 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
| 18417 | |
| 18418 | # Create a temporary old-style archive to link instead of a shared archive. |
| 18419 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
| 18420 | |
| 18421 | # Commands used to build and install a shared archive. |
| 18422 | archive_cmds=$lt_archive_cmds_GCJ |
| 18423 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
| 18424 | postinstall_cmds=$lt_postinstall_cmds |
| 18425 | postuninstall_cmds=$lt_postuninstall_cmds |
| 18426 | |
| 18427 | # Commands used to build a loadable module (assumed same as above if empty) |
| 18428 | module_cmds=$lt_module_cmds_GCJ |
| 18429 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
| 18430 | |
| 18431 | # Commands to strip libraries. |
| 18432 | old_striplib=$lt_old_striplib |
| 18433 | striplib=$lt_striplib |
| 18434 | |
| 18435 | # Dependencies to place before the objects being linked to create a |
| 18436 | # shared library. |
| 18437 | predep_objects=$lt_predep_objects_GCJ |
| 18438 | |
| 18439 | # Dependencies to place after the objects being linked to create a |
| 18440 | # shared library. |
| 18441 | postdep_objects=$lt_postdep_objects_GCJ |
| 18442 | |
| 18443 | # Dependencies to place before the objects being linked to create a |
| 18444 | # shared library. |
| 18445 | predeps=$lt_predeps_GCJ |
| 18446 | |
| 18447 | # Dependencies to place after the objects being linked to create a |
| 18448 | # shared library. |
| 18449 | postdeps=$lt_postdeps_GCJ |
| 18450 | |
| 18451 | # The library search path used internally by the compiler when linking |
| 18452 | # a shared library. |
| 18453 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
| 18454 | |
| 18455 | # Method to check whether dependent libraries are shared objects. |
| 18456 | deplibs_check_method=$lt_deplibs_check_method |
| 18457 | |
| 18458 | # Command to use when deplibs_check_method == file_magic. |
| 18459 | file_magic_cmd=$lt_file_magic_cmd |
| 18460 | |
| 18461 | # Flag that allows shared libraries with undefined symbols to be built. |
| 18462 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
| 18463 | |
| 18464 | # Flag that forces no undefined symbols. |
| 18465 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
| 18466 | |
| 18467 | # Commands used to finish a libtool library installation in a directory. |
| 18468 | finish_cmds=$lt_finish_cmds |
| 18469 | |
| 18470 | # Same as above, but a single script fragment to be evaled but not shown. |
| 18471 | finish_eval=$lt_finish_eval |
| 18472 | |
| 18473 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 18474 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 18475 | |
| 18476 | # Transform the output of nm in a proper C declaration |
| 18477 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 18478 | |
| 18479 | # Transform the output of nm in a C name address pair |
| 18480 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 18481 | |
| 18482 | # This is the shared library runtime path variable. |
| 18483 | runpath_var=$runpath_var |
| 18484 | |
| 18485 | # This is the shared library path variable. |
| 18486 | shlibpath_var=$shlibpath_var |
| 18487 | |
| 18488 | # Is shlibpath searched before the hard-coded library search path? |
| 18489 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 18490 | |
| 18491 | # How to hardcode a shared library path into an executable. |
| 18492 | hardcode_action=$hardcode_action_GCJ |
| 18493 | |
| 18494 | # Whether we should hardcode library paths into libraries. |
| 18495 | hardcode_into_libs=$hardcode_into_libs |
| 18496 | |
| 18497 | # Flag to hardcode \$libdir into a binary during linking. |
| 18498 | # This must work even if \$libdir does not exist. |
| 18499 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
| 18500 | |
| 18501 | # If ld is used when linking, flag to hardcode \$libdir into |
| 18502 | # a binary during linking. This must work even if \$libdir does |
| 18503 | # not exist. |
| 18504 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
| 18505 | |
| 18506 | # Whether we need a single -rpath flag with a separated argument. |
| 18507 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
| 18508 | |
| 18509 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 18510 | # resulting binary. |
| 18511 | hardcode_direct=$hardcode_direct_GCJ |
| 18512 | |
| 18513 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 18514 | # resulting binary. |
| 18515 | hardcode_minus_L=$hardcode_minus_L_GCJ |
| 18516 | |
| 18517 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 18518 | # the resulting binary. |
| 18519 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
| 18520 | |
| 18521 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 18522 | # and all subsequent libraries and executables linked against it. |
| 18523 | hardcode_automatic=$hardcode_automatic_GCJ |
| 18524 | |
| 18525 | # Variables whose values should be saved in libtool wrapper scripts and |
| 18526 | # restored at relink time. |
| 18527 | variables_saved_for_relink="$variables_saved_for_relink" |
| 18528 | |
| 18529 | # Whether libtool must link a program against all its dependency libraries. |
| 18530 | link_all_deplibs=$link_all_deplibs_GCJ |
| 18531 | |
| 18532 | # Compile-time system search path for libraries |
| 18533 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 18534 | |
| 18535 | # Run-time system search path for libraries |
| 18536 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 18537 | |
| 18538 | # Fix the shell variable \$srcfile for the compiler. |
| 18539 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
| 18540 | |
| 18541 | # Set to yes if exported symbols are required. |
| 18542 | always_export_symbols=$always_export_symbols_GCJ |
| 18543 | |
| 18544 | # The commands to list exported symbols. |
| 18545 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
| 18546 | |
| 18547 | # The commands to extract the exported symbol list from a shared archive. |
| 18548 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 18549 | |
| 18550 | # Symbols that should not be listed in the preloaded symbols. |
| 18551 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
| 18552 | |
| 18553 | # Symbols that must always be exported. |
| 18554 | include_expsyms=$lt_include_expsyms_GCJ |
| 18555 | |
| 18556 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 18557 | |
| 18558 | __EOF__ |
| 18559 | |
| 18560 | |
| 18561 | else |
| 18562 | # If there is no Makefile yet, we rely on a make rule to execute |
| 18563 | # `config.status --recheck' to rerun these tests and create the |
| 18564 | # libtool script then. |
| 18565 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 18566 | if test -f "$ltmain_in"; then |
| 18567 | test -f Makefile && make "$ltmain" |
| 18568 | fi |
| 18569 | fi |
| 18570 | |
| 18571 | |
| 18572 | ac_ext=c |
| 18573 | ac_cpp='$CPP $CPPFLAGS' |
| 18574 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18575 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18576 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18577 | |
| 18578 | CC="$lt_save_CC" |
| 18579 | |
| 18580 | else |
| 18581 | tagname="" |
| 18582 | fi |
| 18583 | ;; |
| 18584 | |
| 18585 | RC) |
| 18586 | |
| 18587 | |
| 18588 | |
| 18589 | # Source file extension for RC test sources. |
| 18590 | ac_ext=rc |
| 18591 | |
| 18592 | # Object file extension for compiled RC test sources. |
| 18593 | objext=o |
| 18594 | objext_RC=$objext |
| 18595 | |
| 18596 | # Code to be used in simple compile tests |
| 18597 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
| 18598 | |
| 18599 | # Code to be used in simple link tests |
| 18600 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
| 18601 | |
| 18602 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 18603 | |
| 18604 | # If no C compiler was specified, use CC. |
| 18605 | LTCC=${LTCC-"$CC"} |
| 18606 | |
| 18607 | # Allow CC to be a program name with arguments. |
| 18608 | compiler=$CC |
| 18609 | |
| 18610 | |
| 18611 | # Allow CC to be a program name with arguments. |
| 18612 | lt_save_CC="$CC" |
| 18613 | CC=${RC-"windres"} |
| 18614 | compiler=$CC |
| 18615 | compiler_RC=$CC |
| 18616 | lt_cv_prog_compiler_c_o_RC=yes |
| 18617 | |
| 18618 | # The else clause should only fire when bootstrapping the |
| 18619 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 18620 | # with your package, and you will get complaints that there are |
| 18621 | # no rules to generate ltmain.sh. |
| 18622 | if test -f "$ltmain"; then |
| 18623 | # See if we are running on zsh, and set the options which allow our commands through |
| 18624 | # without removal of \ escapes. |
| 18625 | if test -n "${ZSH_VERSION+set}" ; then |
| 18626 | setopt NO_GLOB_SUBST |
| 18627 | fi |
| 18628 | # Now quote all the things that may contain metacharacters while being |
| 18629 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 18630 | # variables and quote the copies for generation of the libtool script. |
| 18631 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 18632 | SED SHELL STRIP \ |
| 18633 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 18634 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 18635 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 18636 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 18637 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 18638 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 18639 | old_postinstall_cmds old_postuninstall_cmds \ |
| 18640 | compiler_RC \ |
| 18641 | CC_RC \ |
| 18642 | LD_RC \ |
| 18643 | lt_prog_compiler_wl_RC \ |
| 18644 | lt_prog_compiler_pic_RC \ |
| 18645 | lt_prog_compiler_static_RC \ |
| 18646 | lt_prog_compiler_no_builtin_flag_RC \ |
| 18647 | export_dynamic_flag_spec_RC \ |
| 18648 | thread_safe_flag_spec_RC \ |
| 18649 | whole_archive_flag_spec_RC \ |
| 18650 | enable_shared_with_static_runtimes_RC \ |
| 18651 | old_archive_cmds_RC \ |
| 18652 | old_archive_from_new_cmds_RC \ |
| 18653 | predep_objects_RC \ |
| 18654 | postdep_objects_RC \ |
| 18655 | predeps_RC \ |
| 18656 | postdeps_RC \ |
| 18657 | compiler_lib_search_path_RC \ |
| 18658 | archive_cmds_RC \ |
| 18659 | archive_expsym_cmds_RC \ |
| 18660 | postinstall_cmds_RC \ |
| 18661 | postuninstall_cmds_RC \ |
| 18662 | old_archive_from_expsyms_cmds_RC \ |
| 18663 | allow_undefined_flag_RC \ |
| 18664 | no_undefined_flag_RC \ |
| 18665 | export_symbols_cmds_RC \ |
| 18666 | hardcode_libdir_flag_spec_RC \ |
| 18667 | hardcode_libdir_flag_spec_ld_RC \ |
| 18668 | hardcode_libdir_separator_RC \ |
| 18669 | hardcode_automatic_RC \ |
| 18670 | module_cmds_RC \ |
| 18671 | module_expsym_cmds_RC \ |
| 18672 | lt_cv_prog_compiler_c_o_RC \ |
| 18673 | exclude_expsyms_RC \ |
| 18674 | include_expsyms_RC; do |
| 18675 | |
| 18676 | case $var in |
| 18677 | old_archive_cmds_RC | \ |
| 18678 | old_archive_from_new_cmds_RC | \ |
| 18679 | archive_cmds_RC | \ |
| 18680 | archive_expsym_cmds_RC | \ |
| 18681 | module_cmds_RC | \ |
| 18682 | module_expsym_cmds_RC | \ |
| 18683 | old_archive_from_expsyms_cmds_RC | \ |
| 18684 | export_symbols_cmds_RC | \ |
| 18685 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 18686 | postinstall_cmds | postuninstall_cmds | \ |
| 18687 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 18688 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 18689 | # Double-quote double-evaled strings. |
| 18690 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 18691 | ;; |
| 18692 | *) |
| 18693 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 18694 | ;; |
| 18695 | esac |
| 18696 | done |
| 18697 | |
| 18698 | case $lt_echo in |
| 18699 | *'\$0 --fallback-echo"') |
| 18700 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 18701 | ;; |
| 18702 | esac |
| 18703 | |
| 18704 | cfgfile="$ofile" |
| 18705 | |
| 18706 | cat <<__EOF__ >> "$cfgfile" |
| 18707 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 18708 | |
| 18709 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 18710 | |
| 18711 | # Shell to use when invoking shell scripts. |
| 18712 | SHELL=$lt_SHELL |
| 18713 | |
| 18714 | # Whether or not to build shared libraries. |
| 18715 | build_libtool_libs=$enable_shared |
| 18716 | |
| 18717 | # Whether or not to build static libraries. |
| 18718 | build_old_libs=$enable_static |
| 18719 | |
| 18720 | # Whether or not to add -lc for building shared libraries. |
| 18721 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
| 18722 | |
| 18723 | # Whether or not to disallow shared libs when runtime libs are static |
| 18724 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
| 18725 | |
| 18726 | # Whether or not to optimize for fast installation. |
| 18727 | fast_install=$enable_fast_install |
| 18728 | |
| 18729 | # The host system. |
| 18730 | host_alias=$host_alias |
| 18731 | host=$host |
| 18732 | |
| 18733 | # An echo program that does not interpret backslashes. |
| 18734 | echo=$lt_echo |
| 18735 | |
| 18736 | # The archiver. |
| 18737 | AR=$lt_AR |
| 18738 | AR_FLAGS=$lt_AR_FLAGS |
| 18739 | |
| 18740 | # A C compiler. |
| 18741 | LTCC=$lt_LTCC |
| 18742 | |
| 18743 | # A language-specific compiler. |
| 18744 | CC=$lt_compiler_RC |
| 18745 | |
| 18746 | # Is the compiler the GNU C compiler? |
| 18747 | with_gcc=$GCC_RC |
| 18748 | |
| 18749 | # An ERE matcher. |
| 18750 | EGREP=$lt_EGREP |
| 18751 | |
| 18752 | # The linker used to build libraries. |
| 18753 | LD=$lt_LD_RC |
| 18754 | |
| 18755 | # Whether we need hard or soft links. |
| 18756 | LN_S=$lt_LN_S |
| 18757 | |
| 18758 | # A BSD-compatible nm program. |
| 18759 | NM=$lt_NM |
| 18760 | |
| 18761 | # A symbol stripping program |
| 18762 | STRIP=$lt_STRIP |
| 18763 | |
| 18764 | # Used to examine libraries when file_magic_cmd begins "file" |
| 18765 | MAGIC_CMD=$MAGIC_CMD |
| 18766 | |
| 18767 | # Used on cygwin: DLL creation program. |
| 18768 | DLLTOOL="$DLLTOOL" |
| 18769 | |
| 18770 | # Used on cygwin: object dumper. |
| 18771 | OBJDUMP="$OBJDUMP" |
| 18772 | |
| 18773 | # Used on cygwin: assembler. |
| 18774 | AS="$AS" |
| 18775 | |
| 18776 | # The name of the directory that contains temporary libtool files. |
| 18777 | objdir=$objdir |
| 18778 | |
| 18779 | # How to create reloadable object files. |
| 18780 | reload_flag=$lt_reload_flag |
| 18781 | reload_cmds=$lt_reload_cmds |
| 18782 | |
| 18783 | # How to pass a linker flag through the compiler. |
| 18784 | wl=$lt_lt_prog_compiler_wl_RC |
| 18785 | |
| 18786 | # Object file suffix (normally "o"). |
| 18787 | objext="$ac_objext" |
| 18788 | |
| 18789 | # Old archive suffix (normally "a"). |
| 18790 | libext="$libext" |
| 18791 | |
| 18792 | # Shared library suffix (normally ".so"). |
| 18793 | shrext_cmds='$shrext_cmds' |
| 18794 | |
| 18795 | # Executable file suffix (normally ""). |
| 18796 | exeext="$exeext" |
| 18797 | |
| 18798 | # Additional compiler flags for building library objects. |
| 18799 | pic_flag=$lt_lt_prog_compiler_pic_RC |
| 18800 | pic_mode=$pic_mode |
| 18801 | |
| 18802 | # What is the maximum length of a command? |
| 18803 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 18804 | |
| 18805 | # Does compiler simultaneously support -c and -o options? |
| 18806 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
| 18807 | |
| 18808 | # Must we lock files when doing compilation ? |
| 18809 | need_locks=$lt_need_locks |
| 18810 | |
| 18811 | # Do we need the lib prefix for modules? |
| 18812 | need_lib_prefix=$need_lib_prefix |
| 18813 | |
| 18814 | # Do we need a version for libraries? |
| 18815 | need_version=$need_version |
| 18816 | |
| 18817 | # Whether dlopen is supported. |
| 18818 | dlopen_support=$enable_dlopen |
| 18819 | |
| 18820 | # Whether dlopen of programs is supported. |
| 18821 | dlopen_self=$enable_dlopen_self |
| 18822 | |
| 18823 | # Whether dlopen of statically linked programs is supported. |
| 18824 | dlopen_self_static=$enable_dlopen_self_static |
| 18825 | |
| 18826 | # Compiler flag to prevent dynamic linking. |
| 18827 | link_static_flag=$lt_lt_prog_compiler_static_RC |
| 18828 | |
| 18829 | # Compiler flag to turn off builtin functions. |
| 18830 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
| 18831 | |
| 18832 | # Compiler flag to allow reflexive dlopens. |
| 18833 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
| 18834 | |
| 18835 | # Compiler flag to generate shared objects directly from archives. |
| 18836 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
| 18837 | |
| 18838 | # Compiler flag to generate thread-safe objects. |
| 18839 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
| 18840 | |
| 18841 | # Library versioning type. |
| 18842 | version_type=$version_type |
| 18843 | |
| 18844 | # Format of library name prefix. |
| 18845 | libname_spec=$lt_libname_spec |
| 18846 | |
| 18847 | # List of archive names. First name is the real one, the rest are links. |
| 18848 | # The last name is the one that the linker finds with -lNAME. |
| 18849 | library_names_spec=$lt_library_names_spec |
| 18850 | |
| 18851 | # The coded name of the library, if different from the real name. |
| 18852 | soname_spec=$lt_soname_spec |
| 18853 | |
| 18854 | # Commands used to build and install an old-style archive. |
| 18855 | RANLIB=$lt_RANLIB |
| 18856 | old_archive_cmds=$lt_old_archive_cmds_RC |
| 18857 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 18858 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 18859 | |
| 18860 | # Create an old-style archive from a shared archive. |
| 18861 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
| 18862 | |
| 18863 | # Create a temporary old-style archive to link instead of a shared archive. |
| 18864 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
| 18865 | |
| 18866 | # Commands used to build and install a shared archive. |
| 18867 | archive_cmds=$lt_archive_cmds_RC |
| 18868 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
| 18869 | postinstall_cmds=$lt_postinstall_cmds |
| 18870 | postuninstall_cmds=$lt_postuninstall_cmds |
| 18871 | |
| 18872 | # Commands used to build a loadable module (assumed same as above if empty) |
| 18873 | module_cmds=$lt_module_cmds_RC |
| 18874 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
| 18875 | |
| 18876 | # Commands to strip libraries. |
| 18877 | old_striplib=$lt_old_striplib |
| 18878 | striplib=$lt_striplib |
| 18879 | |
| 18880 | # Dependencies to place before the objects being linked to create a |
| 18881 | # shared library. |
| 18882 | predep_objects=$lt_predep_objects_RC |
| 18883 | |
| 18884 | # Dependencies to place after the objects being linked to create a |
| 18885 | # shared library. |
| 18886 | postdep_objects=$lt_postdep_objects_RC |
| 18887 | |
| 18888 | # Dependencies to place before the objects being linked to create a |
| 18889 | # shared library. |
| 18890 | predeps=$lt_predeps_RC |
| 18891 | |
| 18892 | # Dependencies to place after the objects being linked to create a |
| 18893 | # shared library. |
| 18894 | postdeps=$lt_postdeps_RC |
| 18895 | |
| 18896 | # The library search path used internally by the compiler when linking |
| 18897 | # a shared library. |
| 18898 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
| 18899 | |
| 18900 | # Method to check whether dependent libraries are shared objects. |
| 18901 | deplibs_check_method=$lt_deplibs_check_method |
| 18902 | |
| 18903 | # Command to use when deplibs_check_method == file_magic. |
| 18904 | file_magic_cmd=$lt_file_magic_cmd |
| 18905 | |
| 18906 | # Flag that allows shared libraries with undefined symbols to be built. |
| 18907 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
| 18908 | |
| 18909 | # Flag that forces no undefined symbols. |
| 18910 | no_undefined_flag=$lt_no_undefined_flag_RC |
| 18911 | |
| 18912 | # Commands used to finish a libtool library installation in a directory. |
| 18913 | finish_cmds=$lt_finish_cmds |
| 18914 | |
| 18915 | # Same as above, but a single script fragment to be evaled but not shown. |
| 18916 | finish_eval=$lt_finish_eval |
| 18917 | |
| 18918 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 18919 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 18920 | |
| 18921 | # Transform the output of nm in a proper C declaration |
| 18922 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 18923 | |
| 18924 | # Transform the output of nm in a C name address pair |
| 18925 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 18926 | |
| 18927 | # This is the shared library runtime path variable. |
| 18928 | runpath_var=$runpath_var |
| 18929 | |
| 18930 | # This is the shared library path variable. |
| 18931 | shlibpath_var=$shlibpath_var |
| 18932 | |
| 18933 | # Is shlibpath searched before the hard-coded library search path? |
| 18934 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 18935 | |
| 18936 | # How to hardcode a shared library path into an executable. |
| 18937 | hardcode_action=$hardcode_action_RC |
| 18938 | |
| 18939 | # Whether we should hardcode library paths into libraries. |
| 18940 | hardcode_into_libs=$hardcode_into_libs |
| 18941 | |
| 18942 | # Flag to hardcode \$libdir into a binary during linking. |
| 18943 | # This must work even if \$libdir does not exist. |
| 18944 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
| 18945 | |
| 18946 | # If ld is used when linking, flag to hardcode \$libdir into |
| 18947 | # a binary during linking. This must work even if \$libdir does |
| 18948 | # not exist. |
| 18949 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
| 18950 | |
| 18951 | # Whether we need a single -rpath flag with a separated argument. |
| 18952 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
| 18953 | |
| 18954 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 18955 | # resulting binary. |
| 18956 | hardcode_direct=$hardcode_direct_RC |
| 18957 | |
| 18958 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 18959 | # resulting binary. |
| 18960 | hardcode_minus_L=$hardcode_minus_L_RC |
| 18961 | |
| 18962 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 18963 | # the resulting binary. |
| 18964 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
| 18965 | |
| 18966 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 18967 | # and all subsequent libraries and executables linked against it. |
| 18968 | hardcode_automatic=$hardcode_automatic_RC |
| 18969 | |
| 18970 | # Variables whose values should be saved in libtool wrapper scripts and |
| 18971 | # restored at relink time. |
| 18972 | variables_saved_for_relink="$variables_saved_for_relink" |
| 18973 | |
| 18974 | # Whether libtool must link a program against all its dependency libraries. |
| 18975 | link_all_deplibs=$link_all_deplibs_RC |
| 18976 | |
| 18977 | # Compile-time system search path for libraries |
| 18978 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 18979 | |
| 18980 | # Run-time system search path for libraries |
| 18981 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 18982 | |
| 18983 | # Fix the shell variable \$srcfile for the compiler. |
| 18984 | fix_srcfile_path="$fix_srcfile_path_RC" |
| 18985 | |
| 18986 | # Set to yes if exported symbols are required. |
| 18987 | always_export_symbols=$always_export_symbols_RC |
| 18988 | |
| 18989 | # The commands to list exported symbols. |
| 18990 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
| 18991 | |
| 18992 | # The commands to extract the exported symbol list from a shared archive. |
| 18993 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 18994 | |
| 18995 | # Symbols that should not be listed in the preloaded symbols. |
| 18996 | exclude_expsyms=$lt_exclude_expsyms_RC |
| 18997 | |
| 18998 | # Symbols that must always be exported. |
| 18999 | include_expsyms=$lt_include_expsyms_RC |
| 19000 | |
| 19001 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 19002 | |
| 19003 | __EOF__ |
| 19004 | |
| 19005 | |
| 19006 | else |
| 19007 | # If there is no Makefile yet, we rely on a make rule to execute |
| 19008 | # `config.status --recheck' to rerun these tests and create the |
| 19009 | # libtool script then. |
| 19010 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 19011 | if test -f "$ltmain_in"; then |
| 19012 | test -f Makefile && make "$ltmain" |
| 19013 | fi |
| 19014 | fi |
| 19015 | |
| 19016 | |
| 19017 | ac_ext=c |
| 19018 | ac_cpp='$CPP $CPPFLAGS' |
| 19019 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19020 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19021 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19022 | |
| 19023 | CC="$lt_save_CC" |
| 19024 | |
| 19025 | ;; |
| 19026 | |
| 19027 | *) |
| 19028 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
| 19029 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
| 19030 | { (exit 1); exit 1; }; } |
| 19031 | ;; |
| 19032 | esac |
| 19033 | |
| 19034 | # Append the new tag name to the list of available tags. |
| 19035 | if test -n "$tagname" ; then |
| 19036 | available_tags="$available_tags $tagname" |
| 19037 | fi |
| 19038 | fi |
| 19039 | done |
| 19040 | IFS="$lt_save_ifs" |
| 19041 | |
| 19042 | # Now substitute the updated list of available tags. |
| 19043 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
| 19044 | mv "${ofile}T" "$ofile" |
| 19045 | chmod +x "$ofile" |
| 19046 | else |
| 19047 | rm -f "${ofile}T" |
| 19048 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
| 19049 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
| 19050 | { (exit 1); exit 1; }; } |
| 19051 | fi |
| 19052 | fi |
| 19053 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19054 | |
| 19055 | |
| 19056 | # This can be used to rebuild libtool when needed |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19057 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19058 | |
| 19059 | # Always use our own libtool. |
| 19060 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 19061 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19062 | # Prevent multiple expansion |
| 19063 | |
| 19064 | |
| 19065 | |
| 19066 | |
| 19067 | |
| 19068 | |
| 19069 | |
| 19070 | |
| 19071 | |
| 19072 | |
| 19073 | |
| 19074 | |
| 19075 | |
| 19076 | |
| 19077 | |
| 19078 | |
| 19079 | |
| 19080 | |
| 19081 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19082 | |
| 19083 | |
| 19084 | # Check whether --enable-autoconf or --disable-autoconf was given. |
| 19085 | if test "${enable_autoconf+set}" = set; then |
| 19086 | enableval="$enable_autoconf" |
| 19087 | enable_autoconf=$enableval |
| 19088 | else |
| 19089 | enable_autoconf=yes |
| 19090 | |
| 19091 | fi; |
| 19092 | # Extract the first word of "autoconf", so it can be a program name with args. |
| 19093 | set dummy autoconf; ac_word=$2 |
| 19094 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 19095 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 19096 | if test "${ac_cv_path_AUTOCONF+set}" = set; then |
| 19097 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19098 | else |
| 19099 | case $AUTOCONF in |
| 19100 | [\\/]* | ?:[\\/]*) |
| 19101 | ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path. |
| 19102 | ;; |
| 19103 | *) |
| 19104 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19105 | for as_dir in $PATH |
| 19106 | do |
| 19107 | IFS=$as_save_IFS |
| 19108 | test -z "$as_dir" && as_dir=. |
| 19109 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 19110 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 19111 | ac_cv_path_AUTOCONF="$as_dir/$ac_word$ac_exec_ext" |
| 19112 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 19113 | break 2 |
| 19114 | fi |
| 19115 | done |
| 19116 | done |
| 19117 | |
| 19118 | test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="@echo autoconf not available" |
| 19119 | ;; |
| 19120 | esac |
| 19121 | fi |
| 19122 | AUTOCONF=$ac_cv_path_AUTOCONF |
| 19123 | |
| 19124 | if test -n "$AUTOCONF"; then |
| 19125 | echo "$as_me:$LINENO: result: $AUTOCONF" >&5 |
| 19126 | echo "${ECHO_T}$AUTOCONF" >&6 |
| 19127 | else |
| 19128 | echo "$as_me:$LINENO: result: no" >&5 |
| 19129 | echo "${ECHO_T}no" >&6 |
| 19130 | fi |
| 19131 | |
| 19132 | # Extract the first word of "autoheader", so it can be a program name with args. |
| 19133 | set dummy autoheader; ac_word=$2 |
| 19134 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 19135 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 19136 | if test "${ac_cv_path_AUTOHEADER+set}" = set; then |
| 19137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19138 | else |
| 19139 | case $AUTOHEADER in |
| 19140 | [\\/]* | ?:[\\/]*) |
| 19141 | ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path. |
| 19142 | ;; |
| 19143 | *) |
| 19144 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19145 | for as_dir in $PATH |
| 19146 | do |
| 19147 | IFS=$as_save_IFS |
| 19148 | test -z "$as_dir" && as_dir=. |
| 19149 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 19150 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 19151 | ac_cv_path_AUTOHEADER="$as_dir/$ac_word$ac_exec_ext" |
| 19152 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 19153 | break 2 |
| 19154 | fi |
| 19155 | done |
| 19156 | done |
| 19157 | |
| 19158 | test -z "$ac_cv_path_AUTOHEADER" && ac_cv_path_AUTOHEADER="@echo autoheader not available" |
| 19159 | ;; |
| 19160 | esac |
| 19161 | fi |
| 19162 | AUTOHEADER=$ac_cv_path_AUTOHEADER |
| 19163 | |
| 19164 | if test -n "$AUTOHEADER"; then |
| 19165 | echo "$as_me:$LINENO: result: $AUTOHEADER" >&5 |
| 19166 | echo "${ECHO_T}$AUTOHEADER" >&6 |
| 19167 | else |
| 19168 | echo "$as_me:$LINENO: result: no" >&5 |
| 19169 | echo "${ECHO_T}no" >&6 |
| 19170 | fi |
| 19171 | |
| 19172 | if test -z "$AUTOCONF"; then enable_autoconf=no ; fi |
| 19173 | if test -z "$AUTOHEADER"; then enable_autoconf=no ; fi |
| 19174 | if test x$enable_autoconf = xyes; then |
| 19175 | CONFIGURE_DEPENDS="configure.in aclocal.m4" |
| 19176 | fi |
| 19177 | |
| 19178 | |
| 19179 | ac_ext=c |
| 19180 | ac_cpp='$CPP $CPPFLAGS' |
| 19181 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19182 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19183 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19184 | if test -n "$ac_tool_prefix"; then |
| 19185 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 19186 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 19187 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 19188 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 19189 | if test "${ac_cv_prog_CC+set}" = set; then |
| 19190 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19191 | else |
| 19192 | if test -n "$CC"; then |
| 19193 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 19194 | else |
| 19195 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19196 | for as_dir in $PATH |
| 19197 | do |
| 19198 | IFS=$as_save_IFS |
| 19199 | test -z "$as_dir" && as_dir=. |
| 19200 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 19201 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 19202 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 19203 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 19204 | break 2 |
| 19205 | fi |
| 19206 | done |
| 19207 | done |
| 19208 | |
| 19209 | fi |
| 19210 | fi |
| 19211 | CC=$ac_cv_prog_CC |
| 19212 | if test -n "$CC"; then |
| 19213 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 19214 | echo "${ECHO_T}$CC" >&6 |
| 19215 | else |
| 19216 | echo "$as_me:$LINENO: result: no" >&5 |
| 19217 | echo "${ECHO_T}no" >&6 |
| 19218 | fi |
| 19219 | |
| 19220 | fi |
| 19221 | if test -z "$ac_cv_prog_CC"; then |
| 19222 | ac_ct_CC=$CC |
| 19223 | # Extract the first word of "gcc", so it can be a program name with args. |
| 19224 | set dummy gcc; ac_word=$2 |
| 19225 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 19226 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 19227 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 19228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19229 | else |
| 19230 | if test -n "$ac_ct_CC"; then |
| 19231 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 19232 | else |
| 19233 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19234 | for as_dir in $PATH |
| 19235 | do |
| 19236 | IFS=$as_save_IFS |
| 19237 | test -z "$as_dir" && as_dir=. |
| 19238 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 19239 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 19240 | ac_cv_prog_ac_ct_CC="gcc" |
| 19241 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 19242 | break 2 |
| 19243 | fi |
| 19244 | done |
| 19245 | done |
| 19246 | |
| 19247 | fi |
| 19248 | fi |
| 19249 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 19250 | if test -n "$ac_ct_CC"; then |
| 19251 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 19252 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 19253 | else |
| 19254 | echo "$as_me:$LINENO: result: no" >&5 |
| 19255 | echo "${ECHO_T}no" >&6 |
| 19256 | fi |
| 19257 | |
| 19258 | CC=$ac_ct_CC |
| 19259 | else |
| 19260 | CC="$ac_cv_prog_CC" |
| 19261 | fi |
| 19262 | |
| 19263 | if test -z "$CC"; then |
| 19264 | if test -n "$ac_tool_prefix"; then |
| 19265 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 19266 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 19267 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 19268 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 19269 | if test "${ac_cv_prog_CC+set}" = set; then |
| 19270 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19271 | else |
| 19272 | if test -n "$CC"; then |
| 19273 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 19274 | else |
| 19275 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19276 | for as_dir in $PATH |
| 19277 | do |
| 19278 | IFS=$as_save_IFS |
| 19279 | test -z "$as_dir" && as_dir=. |
| 19280 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 19281 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 19282 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 19283 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 19284 | break 2 |
| 19285 | fi |
| 19286 | done |
| 19287 | done |
| 19288 | |
| 19289 | fi |
| 19290 | fi |
| 19291 | CC=$ac_cv_prog_CC |
| 19292 | if test -n "$CC"; then |
| 19293 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 19294 | echo "${ECHO_T}$CC" >&6 |
| 19295 | else |
| 19296 | echo "$as_me:$LINENO: result: no" >&5 |
| 19297 | echo "${ECHO_T}no" >&6 |
| 19298 | fi |
| 19299 | |
| 19300 | fi |
| 19301 | if test -z "$ac_cv_prog_CC"; then |
| 19302 | ac_ct_CC=$CC |
| 19303 | # Extract the first word of "cc", so it can be a program name with args. |
| 19304 | set dummy cc; ac_word=$2 |
| 19305 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 19306 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 19307 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 19308 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19309 | else |
| 19310 | if test -n "$ac_ct_CC"; then |
| 19311 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 19312 | else |
| 19313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19314 | for as_dir in $PATH |
| 19315 | do |
| 19316 | IFS=$as_save_IFS |
| 19317 | test -z "$as_dir" && as_dir=. |
| 19318 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 19319 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 19320 | ac_cv_prog_ac_ct_CC="cc" |
| 19321 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 19322 | break 2 |
| 19323 | fi |
| 19324 | done |
| 19325 | done |
| 19326 | |
| 19327 | fi |
| 19328 | fi |
| 19329 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 19330 | if test -n "$ac_ct_CC"; then |
| 19331 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 19332 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 19333 | else |
| 19334 | echo "$as_me:$LINENO: result: no" >&5 |
| 19335 | echo "${ECHO_T}no" >&6 |
| 19336 | fi |
| 19337 | |
| 19338 | CC=$ac_ct_CC |
| 19339 | else |
| 19340 | CC="$ac_cv_prog_CC" |
| 19341 | fi |
| 19342 | |
| 19343 | fi |
| 19344 | if test -z "$CC"; then |
| 19345 | # Extract the first word of "cc", so it can be a program name with args. |
| 19346 | set dummy cc; ac_word=$2 |
| 19347 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 19348 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 19349 | if test "${ac_cv_prog_CC+set}" = set; then |
| 19350 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19351 | else |
| 19352 | if test -n "$CC"; then |
| 19353 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 19354 | else |
| 19355 | ac_prog_rejected=no |
| 19356 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19357 | for as_dir in $PATH |
| 19358 | do |
| 19359 | IFS=$as_save_IFS |
| 19360 | test -z "$as_dir" && as_dir=. |
| 19361 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 19362 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 19363 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 19364 | ac_prog_rejected=yes |
| 19365 | continue |
| 19366 | fi |
| 19367 | ac_cv_prog_CC="cc" |
| 19368 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 19369 | break 2 |
| 19370 | fi |
| 19371 | done |
| 19372 | done |
| 19373 | |
| 19374 | if test $ac_prog_rejected = yes; then |
| 19375 | # We found a bogon in the path, so make sure we never use it. |
| 19376 | set dummy $ac_cv_prog_CC |
| 19377 | shift |
| 19378 | if test $# != 0; then |
| 19379 | # We chose a different compiler from the bogus one. |
| 19380 | # However, it has the same basename, so the bogon will be chosen |
| 19381 | # first if we set CC to just the basename; use the full file name. |
| 19382 | shift |
| 19383 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 19384 | fi |
| 19385 | fi |
| 19386 | fi |
| 19387 | fi |
| 19388 | CC=$ac_cv_prog_CC |
| 19389 | if test -n "$CC"; then |
| 19390 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 19391 | echo "${ECHO_T}$CC" >&6 |
| 19392 | else |
| 19393 | echo "$as_me:$LINENO: result: no" >&5 |
| 19394 | echo "${ECHO_T}no" >&6 |
| 19395 | fi |
| 19396 | |
| 19397 | fi |
| 19398 | if test -z "$CC"; then |
| 19399 | if test -n "$ac_tool_prefix"; then |
| 19400 | for ac_prog in cl |
| 19401 | do |
| 19402 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 19403 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 19404 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 19405 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 19406 | if test "${ac_cv_prog_CC+set}" = set; then |
| 19407 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19408 | else |
| 19409 | if test -n "$CC"; then |
| 19410 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 19411 | else |
| 19412 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19413 | for as_dir in $PATH |
| 19414 | do |
| 19415 | IFS=$as_save_IFS |
| 19416 | test -z "$as_dir" && as_dir=. |
| 19417 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 19418 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 19419 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 19420 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 19421 | break 2 |
| 19422 | fi |
| 19423 | done |
| 19424 | done |
| 19425 | |
| 19426 | fi |
| 19427 | fi |
| 19428 | CC=$ac_cv_prog_CC |
| 19429 | if test -n "$CC"; then |
| 19430 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 19431 | echo "${ECHO_T}$CC" >&6 |
| 19432 | else |
| 19433 | echo "$as_me:$LINENO: result: no" >&5 |
| 19434 | echo "${ECHO_T}no" >&6 |
| 19435 | fi |
| 19436 | |
| 19437 | test -n "$CC" && break |
| 19438 | done |
| 19439 | fi |
| 19440 | if test -z "$CC"; then |
| 19441 | ac_ct_CC=$CC |
| 19442 | for ac_prog in cl |
| 19443 | do |
| 19444 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 19445 | set dummy $ac_prog; ac_word=$2 |
| 19446 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 19447 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 19448 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 19449 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19450 | else |
| 19451 | if test -n "$ac_ct_CC"; then |
| 19452 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 19453 | else |
| 19454 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19455 | for as_dir in $PATH |
| 19456 | do |
| 19457 | IFS=$as_save_IFS |
| 19458 | test -z "$as_dir" && as_dir=. |
| 19459 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 19460 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 19461 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 19462 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 19463 | break 2 |
| 19464 | fi |
| 19465 | done |
| 19466 | done |
| 19467 | |
| 19468 | fi |
| 19469 | fi |
| 19470 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 19471 | if test -n "$ac_ct_CC"; then |
| 19472 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 19473 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 19474 | else |
| 19475 | echo "$as_me:$LINENO: result: no" >&5 |
| 19476 | echo "${ECHO_T}no" >&6 |
| 19477 | fi |
| 19478 | |
| 19479 | test -n "$ac_ct_CC" && break |
| 19480 | done |
| 19481 | |
| 19482 | CC=$ac_ct_CC |
| 19483 | fi |
| 19484 | |
| 19485 | fi |
| 19486 | |
| 19487 | |
| 19488 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 19489 | See \`config.log' for more details." >&5 |
| 19490 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 19491 | See \`config.log' for more details." >&2;} |
| 19492 | { (exit 1); exit 1; }; } |
| 19493 | |
| 19494 | # Provide some information about the compiler. |
| 19495 | echo "$as_me:$LINENO:" \ |
| 19496 | "checking for C compiler version" >&5 |
| 19497 | ac_compiler=`set X $ac_compile; echo $2` |
| 19498 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 19499 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 19500 | ac_status=$? |
| 19501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19502 | (exit $ac_status); } |
| 19503 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 19504 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 19505 | ac_status=$? |
| 19506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19507 | (exit $ac_status); } |
| 19508 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 19509 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 19510 | ac_status=$? |
| 19511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19512 | (exit $ac_status); } |
| 19513 | |
| 19514 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 19515 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 19516 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 19517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19518 | else |
| 19519 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19520 | /* confdefs.h. */ |
| 19521 | _ACEOF |
| 19522 | cat confdefs.h >>conftest.$ac_ext |
| 19523 | cat >>conftest.$ac_ext <<_ACEOF |
| 19524 | /* end confdefs.h. */ |
| 19525 | |
| 19526 | int |
| 19527 | main () |
| 19528 | { |
| 19529 | #ifndef __GNUC__ |
| 19530 | choke me |
| 19531 | #endif |
| 19532 | |
| 19533 | ; |
| 19534 | return 0; |
| 19535 | } |
| 19536 | _ACEOF |
| 19537 | rm -f conftest.$ac_objext |
| 19538 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19539 | (eval $ac_compile) 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19540 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19541 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19542 | rm -f conftest.er1 |
| 19543 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19545 | (exit $ac_status); } && |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19546 | { ac_try='test -z "$ac_c_werror_flag" |
| 19547 | || test ! -s conftest.err' |
| 19548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19549 | (eval $ac_try) 2>&5 |
| 19550 | ac_status=$? |
| 19551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19552 | (exit $ac_status); }; } && |
| 19553 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19555 | (eval $ac_try) 2>&5 |
| 19556 | ac_status=$? |
| 19557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19558 | (exit $ac_status); }; }; then |
| 19559 | ac_compiler_gnu=yes |
| 19560 | else |
| 19561 | echo "$as_me: failed program was:" >&5 |
| 19562 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19563 | |
| 19564 | ac_compiler_gnu=no |
| 19565 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19566 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19567 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 19568 | |
| 19569 | fi |
| 19570 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 19571 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 19572 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 19573 | ac_test_CFLAGS=${CFLAGS+set} |
| 19574 | ac_save_CFLAGS=$CFLAGS |
| 19575 | CFLAGS="-g" |
| 19576 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 19577 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 19578 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 19579 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19580 | else |
| 19581 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19582 | /* confdefs.h. */ |
| 19583 | _ACEOF |
| 19584 | cat confdefs.h >>conftest.$ac_ext |
| 19585 | cat >>conftest.$ac_ext <<_ACEOF |
| 19586 | /* end confdefs.h. */ |
| 19587 | |
| 19588 | int |
| 19589 | main () |
| 19590 | { |
| 19591 | |
| 19592 | ; |
| 19593 | return 0; |
| 19594 | } |
| 19595 | _ACEOF |
| 19596 | rm -f conftest.$ac_objext |
| 19597 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19598 | (eval $ac_compile) 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19599 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19600 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19601 | rm -f conftest.er1 |
| 19602 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19604 | (exit $ac_status); } && |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19605 | { ac_try='test -z "$ac_c_werror_flag" |
| 19606 | || test ! -s conftest.err' |
| 19607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19608 | (eval $ac_try) 2>&5 |
| 19609 | ac_status=$? |
| 19610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19611 | (exit $ac_status); }; } && |
| 19612 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19614 | (eval $ac_try) 2>&5 |
| 19615 | ac_status=$? |
| 19616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19617 | (exit $ac_status); }; }; then |
| 19618 | ac_cv_prog_cc_g=yes |
| 19619 | else |
| 19620 | echo "$as_me: failed program was:" >&5 |
| 19621 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19622 | |
| 19623 | ac_cv_prog_cc_g=no |
| 19624 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19625 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19626 | fi |
| 19627 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 19628 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 19629 | if test "$ac_test_CFLAGS" = set; then |
| 19630 | CFLAGS=$ac_save_CFLAGS |
| 19631 | elif test $ac_cv_prog_cc_g = yes; then |
| 19632 | if test "$GCC" = yes; then |
| 19633 | CFLAGS="-g -O2" |
| 19634 | else |
| 19635 | CFLAGS="-g" |
| 19636 | fi |
| 19637 | else |
| 19638 | if test "$GCC" = yes; then |
| 19639 | CFLAGS="-O2" |
| 19640 | else |
| 19641 | CFLAGS= |
| 19642 | fi |
| 19643 | fi |
| 19644 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 19645 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 19646 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 19647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19648 | else |
| 19649 | ac_cv_prog_cc_stdc=no |
| 19650 | ac_save_CC=$CC |
| 19651 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19652 | /* confdefs.h. */ |
| 19653 | _ACEOF |
| 19654 | cat confdefs.h >>conftest.$ac_ext |
| 19655 | cat >>conftest.$ac_ext <<_ACEOF |
| 19656 | /* end confdefs.h. */ |
| 19657 | #include <stdarg.h> |
| 19658 | #include <stdio.h> |
| 19659 | #include <sys/types.h> |
| 19660 | #include <sys/stat.h> |
| 19661 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 19662 | struct buf { int x; }; |
| 19663 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 19664 | static char *e (p, i) |
| 19665 | char **p; |
| 19666 | int i; |
| 19667 | { |
| 19668 | return p[i]; |
| 19669 | } |
| 19670 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 19671 | { |
| 19672 | char *s; |
| 19673 | va_list v; |
| 19674 | va_start (v,p); |
| 19675 | s = g (p, va_arg (v,int)); |
| 19676 | va_end (v); |
| 19677 | return s; |
| 19678 | } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19679 | |
| 19680 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 19681 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 19682 | These don't provoke an error unfortunately, instead are silently treated |
| 19683 | as 'x'. The following induces an error, until -std1 is added to get |
| 19684 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 19685 | array size at least. It's necessary to write '\x00'==0 to get something |
| 19686 | that's true only with -std1. */ |
| 19687 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 19688 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19689 | int test (int i, double x); |
| 19690 | struct s1 {int (*f) (int a);}; |
| 19691 | struct s2 {int (*f) (double a);}; |
| 19692 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 19693 | int argc; |
| 19694 | char **argv; |
| 19695 | int |
| 19696 | main () |
| 19697 | { |
| 19698 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 19699 | ; |
| 19700 | return 0; |
| 19701 | } |
| 19702 | _ACEOF |
| 19703 | # Don't try gcc -ansi; that turns off useful extensions and |
| 19704 | # breaks some systems' header files. |
| 19705 | # AIX -qlanglvl=ansi |
| 19706 | # Ultrix and OSF/1 -std1 |
| 19707 | # HP-UX 10.20 and later -Ae |
| 19708 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 19709 | # SVR4 -Xc -D__EXTENSIONS__ |
| 19710 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 19711 | do |
| 19712 | CC="$ac_save_CC $ac_arg" |
| 19713 | rm -f conftest.$ac_objext |
| 19714 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19715 | (eval $ac_compile) 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19716 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19717 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19718 | rm -f conftest.er1 |
| 19719 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19721 | (exit $ac_status); } && |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19722 | { ac_try='test -z "$ac_c_werror_flag" |
| 19723 | || test ! -s conftest.err' |
| 19724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19725 | (eval $ac_try) 2>&5 |
| 19726 | ac_status=$? |
| 19727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19728 | (exit $ac_status); }; } && |
| 19729 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19731 | (eval $ac_try) 2>&5 |
| 19732 | ac_status=$? |
| 19733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19734 | (exit $ac_status); }; }; then |
| 19735 | ac_cv_prog_cc_stdc=$ac_arg |
| 19736 | break |
| 19737 | else |
| 19738 | echo "$as_me: failed program was:" >&5 |
| 19739 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19740 | |
| 19741 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19742 | rm -f conftest.err conftest.$ac_objext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19743 | done |
| 19744 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 19745 | CC=$ac_save_CC |
| 19746 | |
| 19747 | fi |
| 19748 | |
| 19749 | case "x$ac_cv_prog_cc_stdc" in |
| 19750 | x|xno) |
| 19751 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 19752 | echo "${ECHO_T}none needed" >&6 ;; |
| 19753 | *) |
| 19754 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 19755 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 19756 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 19757 | esac |
| 19758 | |
| 19759 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 19760 | # in C++ we need to declare it. In case someone uses the same compiler |
| 19761 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 19762 | # the declaration of exit, since it's the most demanding environment. |
| 19763 | cat >conftest.$ac_ext <<_ACEOF |
| 19764 | #ifndef __cplusplus |
| 19765 | choke me |
| 19766 | #endif |
| 19767 | _ACEOF |
| 19768 | rm -f conftest.$ac_objext |
| 19769 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19770 | (eval $ac_compile) 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19771 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19772 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19773 | rm -f conftest.er1 |
| 19774 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19776 | (exit $ac_status); } && |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19777 | { ac_try='test -z "$ac_c_werror_flag" |
| 19778 | || test ! -s conftest.err' |
| 19779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19780 | (eval $ac_try) 2>&5 |
| 19781 | ac_status=$? |
| 19782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19783 | (exit $ac_status); }; } && |
| 19784 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19786 | (eval $ac_try) 2>&5 |
| 19787 | ac_status=$? |
| 19788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19789 | (exit $ac_status); }; }; then |
| 19790 | for ac_declaration in \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19791 | '' \ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19792 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 19793 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 19794 | 'extern "C" void exit (int) throw ();' \ |
| 19795 | 'extern "C" void exit (int);' \ |
| 19796 | 'void exit (int);' |
| 19797 | do |
| 19798 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19799 | /* confdefs.h. */ |
| 19800 | _ACEOF |
| 19801 | cat confdefs.h >>conftest.$ac_ext |
| 19802 | cat >>conftest.$ac_ext <<_ACEOF |
| 19803 | /* end confdefs.h. */ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19804 | $ac_declaration |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19805 | #include <stdlib.h> |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19806 | int |
| 19807 | main () |
| 19808 | { |
| 19809 | exit (42); |
| 19810 | ; |
| 19811 | return 0; |
| 19812 | } |
| 19813 | _ACEOF |
| 19814 | rm -f conftest.$ac_objext |
| 19815 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19816 | (eval $ac_compile) 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19817 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19818 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19819 | rm -f conftest.er1 |
| 19820 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19822 | (exit $ac_status); } && |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19823 | { ac_try='test -z "$ac_c_werror_flag" |
| 19824 | || test ! -s conftest.err' |
| 19825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19826 | (eval $ac_try) 2>&5 |
| 19827 | ac_status=$? |
| 19828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19829 | (exit $ac_status); }; } && |
| 19830 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19832 | (eval $ac_try) 2>&5 |
| 19833 | ac_status=$? |
| 19834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19835 | (exit $ac_status); }; }; then |
| 19836 | : |
| 19837 | else |
| 19838 | echo "$as_me: failed program was:" >&5 |
| 19839 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19840 | |
| 19841 | continue |
| 19842 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19843 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19844 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19845 | /* confdefs.h. */ |
| 19846 | _ACEOF |
| 19847 | cat confdefs.h >>conftest.$ac_ext |
| 19848 | cat >>conftest.$ac_ext <<_ACEOF |
| 19849 | /* end confdefs.h. */ |
| 19850 | $ac_declaration |
| 19851 | int |
| 19852 | main () |
| 19853 | { |
| 19854 | exit (42); |
| 19855 | ; |
| 19856 | return 0; |
| 19857 | } |
| 19858 | _ACEOF |
| 19859 | rm -f conftest.$ac_objext |
| 19860 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19861 | (eval $ac_compile) 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19862 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19863 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19864 | rm -f conftest.er1 |
| 19865 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19867 | (exit $ac_status); } && |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19868 | { ac_try='test -z "$ac_c_werror_flag" |
| 19869 | || test ! -s conftest.err' |
| 19870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19871 | (eval $ac_try) 2>&5 |
| 19872 | ac_status=$? |
| 19873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19874 | (exit $ac_status); }; } && |
| 19875 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19877 | (eval $ac_try) 2>&5 |
| 19878 | ac_status=$? |
| 19879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19880 | (exit $ac_status); }; }; then |
| 19881 | break |
| 19882 | else |
| 19883 | echo "$as_me: failed program was:" >&5 |
| 19884 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19885 | |
| 19886 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19887 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19888 | done |
| 19889 | rm -f conftest* |
| 19890 | if test -n "$ac_declaration"; then |
| 19891 | echo '#ifdef __cplusplus' >>confdefs.h |
| 19892 | echo $ac_declaration >>confdefs.h |
| 19893 | echo '#endif' >>confdefs.h |
| 19894 | fi |
| 19895 | |
| 19896 | else |
| 19897 | echo "$as_me: failed program was:" >&5 |
| 19898 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19899 | |
| 19900 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19901 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19902 | ac_ext=c |
| 19903 | ac_cpp='$CPP $CPPFLAGS' |
| 19904 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19905 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19906 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19907 | |
| 19908 | depcc="$CC" am_compiler_list= |
| 19909 | |
| 19910 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 19911 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
| 19912 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
| 19913 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19914 | else |
| 19915 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 19916 | # We make a subdir and do the tests there. Otherwise we can end up |
| 19917 | # making bogus files that we don't know about and never remove. For |
| 19918 | # instance it was reported that on HP-UX the gcc test will end up |
| 19919 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 19920 | # in D'. |
| 19921 | mkdir conftest.dir |
| 19922 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 19923 | # using a relative directory. |
| 19924 | cp "$am_depcomp" conftest.dir |
| 19925 | cd conftest.dir |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19926 | # We will build objects and dependencies in a subdirectory because |
| 19927 | # it helps to detect inapplicable dependency modes. For instance |
| 19928 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 19929 | # side effect of compilation, but ICC will put the dependencies in |
| 19930 | # the current directory while Tru64 will put them in the object |
| 19931 | # directory. |
| 19932 | mkdir sub |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19933 | |
| 19934 | am_cv_CC_dependencies_compiler_type=none |
| 19935 | if test "$am_compiler_list" = ""; then |
| 19936 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 19937 | fi |
| 19938 | for depmode in $am_compiler_list; do |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19939 | # Setup a source with many dependencies, because some compilers |
| 19940 | # like to wrap large dependency lists on column 80 (with \), and |
| 19941 | # we should not choose a depcomp mode which is confused by this. |
| 19942 | # |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19943 | # We need to recreate these files for each test, as the compiler may |
| 19944 | # overwrite some of them when testing with obscure command lines. |
| 19945 | # This happens at least with the AIX C compiler. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19946 | : > sub/conftest.c |
| 19947 | for i in 1 2 3 4 5 6; do |
| 19948 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 19949 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 19950 | # Solaris 8's {/usr,}/bin/sh. |
| 19951 | touch sub/conftst$i.h |
| 19952 | done |
| 19953 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19954 | |
| 19955 | case $depmode in |
| 19956 | nosideeffect) |
| 19957 | # after this tag, mechanisms are not by side-effect, so they'll |
| 19958 | # only be used when explicitly requested |
| 19959 | if test "x$enable_dependency_tracking" = xyes; then |
| 19960 | continue |
| 19961 | else |
| 19962 | break |
| 19963 | fi |
| 19964 | ;; |
| 19965 | none) break ;; |
| 19966 | esac |
| 19967 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 19968 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 19969 | # handle `-M -o', and we need to detect this. |
| 19970 | if depmode=$depmode \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19971 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| 19972 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 19973 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| 19974 | >/dev/null 2>conftest.err && |
| 19975 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 19976 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19977 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 19978 | # icc doesn't choke on unknown options, it will just issue warnings |
| 19979 | # or remarks (even with -Werror). So we grep stderr for any message |
| 19980 | # that says an option was ignored or not supported. |
| 19981 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 19982 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 19983 | # The diagnosis changed in icc 8.0: |
| 19984 | # icc: Command line remark: option '-MP' not supported |
| 19985 | if (grep 'ignoring option' conftest.err || |
| 19986 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 19987 | am_cv_CC_dependencies_compiler_type=$depmode |
| 19988 | break |
| 19989 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 19990 | fi |
| 19991 | done |
| 19992 | |
| 19993 | cd .. |
| 19994 | rm -rf conftest.dir |
| 19995 | else |
| 19996 | am_cv_CC_dependencies_compiler_type=none |
| 19997 | fi |
| 19998 | |
| 19999 | fi |
| 20000 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 20001 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 20002 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 20003 | |
| 20004 | |
| 20005 | |
| 20006 | if |
| 20007 | test "x$enable_dependency_tracking" != xno \ |
| 20008 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 20009 | am__fastdepCC_TRUE= |
| 20010 | am__fastdepCC_FALSE='#' |
| 20011 | else |
| 20012 | am__fastdepCC_TRUE='#' |
| 20013 | am__fastdepCC_FALSE= |
| 20014 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20015 | |
| 20016 | |
| 20017 | ac_ext=c |
| 20018 | ac_cpp='$CPP $CPPFLAGS' |
| 20019 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20020 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20021 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20022 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 20023 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 20024 | # On Suns, sometimes $CPP names a directory. |
| 20025 | if test -n "$CPP" && test -d "$CPP"; then |
| 20026 | CPP= |
| 20027 | fi |
| 20028 | if test -z "$CPP"; then |
| 20029 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 20030 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20031 | else |
| 20032 | # Double quotes because CPP needs to be expanded |
| 20033 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 20034 | do |
| 20035 | ac_preproc_ok=false |
| 20036 | for ac_c_preproc_warn_flag in '' yes |
| 20037 | do |
| 20038 | # Use a header file that comes with gcc, so configuring glibc |
| 20039 | # with a fresh cross-compiler works. |
| 20040 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 20041 | # <limits.h> exists even on freestanding compilers. |
| 20042 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 20043 | # not just through cpp. "Syntax error" is here to catch this case. |
| 20044 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20045 | /* confdefs.h. */ |
| 20046 | _ACEOF |
| 20047 | cat confdefs.h >>conftest.$ac_ext |
| 20048 | cat >>conftest.$ac_ext <<_ACEOF |
| 20049 | /* end confdefs.h. */ |
| 20050 | #ifdef __STDC__ |
| 20051 | # include <limits.h> |
| 20052 | #else |
| 20053 | # include <assert.h> |
| 20054 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 20055 | Syntax error |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20056 | _ACEOF |
| 20057 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 20058 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 20059 | ac_status=$? |
| 20060 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20061 | rm -f conftest.er1 |
| 20062 | cat conftest.err >&5 |
| 20063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20064 | (exit $ac_status); } >/dev/null; then |
| 20065 | if test -s conftest.err; then |
| 20066 | ac_cpp_err=$ac_c_preproc_warn_flag |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 20067 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20068 | else |
| 20069 | ac_cpp_err= |
| 20070 | fi |
| 20071 | else |
| 20072 | ac_cpp_err=yes |
| 20073 | fi |
| 20074 | if test -z "$ac_cpp_err"; then |
| 20075 | : |
| 20076 | else |
| 20077 | echo "$as_me: failed program was:" >&5 |
| 20078 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20079 | |
| 20080 | # Broken: fails on valid input. |
| 20081 | continue |
| 20082 | fi |
| 20083 | rm -f conftest.err conftest.$ac_ext |
| 20084 | |
| 20085 | # OK, works on sane cases. Now check whether non-existent headers |
| 20086 | # can be detected and how. |
| 20087 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20088 | /* confdefs.h. */ |
| 20089 | _ACEOF |
| 20090 | cat confdefs.h >>conftest.$ac_ext |
| 20091 | cat >>conftest.$ac_ext <<_ACEOF |
| 20092 | /* end confdefs.h. */ |
| 20093 | #include <ac_nonexistent.h> |
| 20094 | _ACEOF |
| 20095 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 20096 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 20097 | ac_status=$? |
| 20098 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20099 | rm -f conftest.er1 |
| 20100 | cat conftest.err >&5 |
| 20101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20102 | (exit $ac_status); } >/dev/null; then |
| 20103 | if test -s conftest.err; then |
| 20104 | ac_cpp_err=$ac_c_preproc_warn_flag |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 20105 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20106 | else |
| 20107 | ac_cpp_err= |
| 20108 | fi |
| 20109 | else |
| 20110 | ac_cpp_err=yes |
| 20111 | fi |
| 20112 | if test -z "$ac_cpp_err"; then |
| 20113 | # Broken: success on invalid input. |
| 20114 | continue |
| 20115 | else |
| 20116 | echo "$as_me: failed program was:" >&5 |
| 20117 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20118 | |
| 20119 | # Passes both tests. |
| 20120 | ac_preproc_ok=: |
| 20121 | break |
| 20122 | fi |
| 20123 | rm -f conftest.err conftest.$ac_ext |
| 20124 | |
| 20125 | done |
| 20126 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 20127 | rm -f conftest.err conftest.$ac_ext |
| 20128 | if $ac_preproc_ok; then |
| 20129 | break |
| 20130 | fi |
| 20131 | |
| 20132 | done |
| 20133 | ac_cv_prog_CPP=$CPP |
| 20134 | |
| 20135 | fi |
| 20136 | CPP=$ac_cv_prog_CPP |
| 20137 | else |
| 20138 | ac_cv_prog_CPP=$CPP |
| 20139 | fi |
| 20140 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 20141 | echo "${ECHO_T}$CPP" >&6 |
| 20142 | ac_preproc_ok=false |
| 20143 | for ac_c_preproc_warn_flag in '' yes |
| 20144 | do |
| 20145 | # Use a header file that comes with gcc, so configuring glibc |
| 20146 | # with a fresh cross-compiler works. |
| 20147 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 20148 | # <limits.h> exists even on freestanding compilers. |
| 20149 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 20150 | # not just through cpp. "Syntax error" is here to catch this case. |
| 20151 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20152 | /* confdefs.h. */ |
| 20153 | _ACEOF |
| 20154 | cat confdefs.h >>conftest.$ac_ext |
| 20155 | cat >>conftest.$ac_ext <<_ACEOF |
| 20156 | /* end confdefs.h. */ |
| 20157 | #ifdef __STDC__ |
| 20158 | # include <limits.h> |
| 20159 | #else |
| 20160 | # include <assert.h> |
| 20161 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 20162 | Syntax error |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20163 | _ACEOF |
| 20164 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 20165 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 20166 | ac_status=$? |
| 20167 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20168 | rm -f conftest.er1 |
| 20169 | cat conftest.err >&5 |
| 20170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20171 | (exit $ac_status); } >/dev/null; then |
| 20172 | if test -s conftest.err; then |
| 20173 | ac_cpp_err=$ac_c_preproc_warn_flag |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 20174 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20175 | else |
| 20176 | ac_cpp_err= |
| 20177 | fi |
| 20178 | else |
| 20179 | ac_cpp_err=yes |
| 20180 | fi |
| 20181 | if test -z "$ac_cpp_err"; then |
| 20182 | : |
| 20183 | else |
| 20184 | echo "$as_me: failed program was:" >&5 |
| 20185 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20186 | |
| 20187 | # Broken: fails on valid input. |
| 20188 | continue |
| 20189 | fi |
| 20190 | rm -f conftest.err conftest.$ac_ext |
| 20191 | |
| 20192 | # OK, works on sane cases. Now check whether non-existent headers |
| 20193 | # can be detected and how. |
| 20194 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20195 | /* confdefs.h. */ |
| 20196 | _ACEOF |
| 20197 | cat confdefs.h >>conftest.$ac_ext |
| 20198 | cat >>conftest.$ac_ext <<_ACEOF |
| 20199 | /* end confdefs.h. */ |
| 20200 | #include <ac_nonexistent.h> |
| 20201 | _ACEOF |
| 20202 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 20203 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 20204 | ac_status=$? |
| 20205 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20206 | rm -f conftest.er1 |
| 20207 | cat conftest.err >&5 |
| 20208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20209 | (exit $ac_status); } >/dev/null; then |
| 20210 | if test -s conftest.err; then |
| 20211 | ac_cpp_err=$ac_c_preproc_warn_flag |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 20212 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20213 | else |
| 20214 | ac_cpp_err= |
| 20215 | fi |
| 20216 | else |
| 20217 | ac_cpp_err=yes |
| 20218 | fi |
| 20219 | if test -z "$ac_cpp_err"; then |
| 20220 | # Broken: success on invalid input. |
| 20221 | continue |
| 20222 | else |
| 20223 | echo "$as_me: failed program was:" >&5 |
| 20224 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20225 | |
| 20226 | # Passes both tests. |
| 20227 | ac_preproc_ok=: |
| 20228 | break |
| 20229 | fi |
| 20230 | rm -f conftest.err conftest.$ac_ext |
| 20231 | |
| 20232 | done |
| 20233 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 20234 | rm -f conftest.err conftest.$ac_ext |
| 20235 | if $ac_preproc_ok; then |
| 20236 | : |
| 20237 | else |
| 20238 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 20239 | See \`config.log' for more details." >&5 |
| 20240 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 20241 | See \`config.log' for more details." >&2;} |
| 20242 | { (exit 1); exit 1; }; } |
| 20243 | fi |
| 20244 | |
| 20245 | ac_ext=c |
| 20246 | ac_cpp='$CPP $CPPFLAGS' |
| 20247 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20248 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20249 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20250 | |
Lev Walkin | d8b940c | 2004-08-11 05:35:51 +0000 | [diff] [blame] | 20251 | ac_ext=cc |
| 20252 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20253 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20254 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20255 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20256 | if test -n "$ac_tool_prefix"; then |
| 20257 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 20258 | do |
| 20259 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 20260 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 20261 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 20262 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 20263 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 20264 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20265 | else |
| 20266 | if test -n "$CXX"; then |
| 20267 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 20268 | else |
| 20269 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20270 | for as_dir in $PATH |
| 20271 | do |
| 20272 | IFS=$as_save_IFS |
| 20273 | test -z "$as_dir" && as_dir=. |
| 20274 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 20275 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 20276 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 20277 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 20278 | break 2 |
| 20279 | fi |
| 20280 | done |
| 20281 | done |
| 20282 | |
| 20283 | fi |
| 20284 | fi |
| 20285 | CXX=$ac_cv_prog_CXX |
| 20286 | if test -n "$CXX"; then |
| 20287 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 20288 | echo "${ECHO_T}$CXX" >&6 |
| 20289 | else |
| 20290 | echo "$as_me:$LINENO: result: no" >&5 |
| 20291 | echo "${ECHO_T}no" >&6 |
| 20292 | fi |
| 20293 | |
| 20294 | test -n "$CXX" && break |
| 20295 | done |
| 20296 | fi |
| 20297 | if test -z "$CXX"; then |
| 20298 | ac_ct_CXX=$CXX |
| 20299 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 20300 | do |
| 20301 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 20302 | set dummy $ac_prog; ac_word=$2 |
| 20303 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 20304 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 20305 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 20306 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20307 | else |
| 20308 | if test -n "$ac_ct_CXX"; then |
| 20309 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 20310 | else |
| 20311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20312 | for as_dir in $PATH |
| 20313 | do |
| 20314 | IFS=$as_save_IFS |
| 20315 | test -z "$as_dir" && as_dir=. |
| 20316 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 20317 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 20318 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 20319 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 20320 | break 2 |
| 20321 | fi |
| 20322 | done |
| 20323 | done |
| 20324 | |
| 20325 | fi |
| 20326 | fi |
| 20327 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 20328 | if test -n "$ac_ct_CXX"; then |
| 20329 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 20330 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
| 20331 | else |
| 20332 | echo "$as_me:$LINENO: result: no" >&5 |
| 20333 | echo "${ECHO_T}no" >&6 |
| 20334 | fi |
| 20335 | |
| 20336 | test -n "$ac_ct_CXX" && break |
| 20337 | done |
| 20338 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
| 20339 | |
| 20340 | CXX=$ac_ct_CXX |
| 20341 | fi |
| 20342 | |
| 20343 | |
| 20344 | # Provide some information about the compiler. |
| 20345 | echo "$as_me:$LINENO:" \ |
| 20346 | "checking for C++ compiler version" >&5 |
| 20347 | ac_compiler=`set X $ac_compile; echo $2` |
| 20348 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 20349 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 20350 | ac_status=$? |
| 20351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20352 | (exit $ac_status); } |
| 20353 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 20354 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 20355 | ac_status=$? |
| 20356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20357 | (exit $ac_status); } |
| 20358 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 20359 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 20360 | ac_status=$? |
| 20361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20362 | (exit $ac_status); } |
| 20363 | |
| 20364 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 20365 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
| 20366 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 20367 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20368 | else |
| 20369 | cat >conftest.$ac_ext <<_ACEOF |
| 20370 | /* confdefs.h. */ |
| 20371 | _ACEOF |
| 20372 | cat confdefs.h >>conftest.$ac_ext |
| 20373 | cat >>conftest.$ac_ext <<_ACEOF |
| 20374 | /* end confdefs.h. */ |
| 20375 | |
| 20376 | int |
| 20377 | main () |
| 20378 | { |
| 20379 | #ifndef __GNUC__ |
| 20380 | choke me |
| 20381 | #endif |
| 20382 | |
| 20383 | ; |
| 20384 | return 0; |
| 20385 | } |
| 20386 | _ACEOF |
| 20387 | rm -f conftest.$ac_objext |
| 20388 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20389 | (eval $ac_compile) 2>conftest.er1 |
| 20390 | ac_status=$? |
| 20391 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20392 | rm -f conftest.er1 |
| 20393 | cat conftest.err >&5 |
| 20394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20395 | (exit $ac_status); } && |
| 20396 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 20397 | || test ! -s conftest.err' |
| 20398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20399 | (eval $ac_try) 2>&5 |
| 20400 | ac_status=$? |
| 20401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20402 | (exit $ac_status); }; } && |
| 20403 | { ac_try='test -s conftest.$ac_objext' |
| 20404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20405 | (eval $ac_try) 2>&5 |
| 20406 | ac_status=$? |
| 20407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20408 | (exit $ac_status); }; }; then |
| 20409 | ac_compiler_gnu=yes |
| 20410 | else |
| 20411 | echo "$as_me: failed program was:" >&5 |
| 20412 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20413 | |
| 20414 | ac_compiler_gnu=no |
| 20415 | fi |
| 20416 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20417 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 20418 | |
| 20419 | fi |
| 20420 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 20421 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
| 20422 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 20423 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 20424 | ac_save_CXXFLAGS=$CXXFLAGS |
| 20425 | CXXFLAGS="-g" |
| 20426 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 20427 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
| 20428 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 20429 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20430 | else |
| 20431 | cat >conftest.$ac_ext <<_ACEOF |
| 20432 | /* confdefs.h. */ |
| 20433 | _ACEOF |
| 20434 | cat confdefs.h >>conftest.$ac_ext |
| 20435 | cat >>conftest.$ac_ext <<_ACEOF |
| 20436 | /* end confdefs.h. */ |
| 20437 | |
| 20438 | int |
| 20439 | main () |
| 20440 | { |
| 20441 | |
| 20442 | ; |
| 20443 | return 0; |
| 20444 | } |
| 20445 | _ACEOF |
| 20446 | rm -f conftest.$ac_objext |
| 20447 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20448 | (eval $ac_compile) 2>conftest.er1 |
| 20449 | ac_status=$? |
| 20450 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20451 | rm -f conftest.er1 |
| 20452 | cat conftest.err >&5 |
| 20453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20454 | (exit $ac_status); } && |
| 20455 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 20456 | || test ! -s conftest.err' |
| 20457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20458 | (eval $ac_try) 2>&5 |
| 20459 | ac_status=$? |
| 20460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20461 | (exit $ac_status); }; } && |
| 20462 | { ac_try='test -s conftest.$ac_objext' |
| 20463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20464 | (eval $ac_try) 2>&5 |
| 20465 | ac_status=$? |
| 20466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20467 | (exit $ac_status); }; }; then |
| 20468 | ac_cv_prog_cxx_g=yes |
| 20469 | else |
| 20470 | echo "$as_me: failed program was:" >&5 |
| 20471 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20472 | |
| 20473 | ac_cv_prog_cxx_g=no |
| 20474 | fi |
| 20475 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20476 | fi |
| 20477 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 20478 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
| 20479 | if test "$ac_test_CXXFLAGS" = set; then |
| 20480 | CXXFLAGS=$ac_save_CXXFLAGS |
| 20481 | elif test $ac_cv_prog_cxx_g = yes; then |
| 20482 | if test "$GXX" = yes; then |
| 20483 | CXXFLAGS="-g -O2" |
| 20484 | else |
| 20485 | CXXFLAGS="-g" |
| 20486 | fi |
| 20487 | else |
| 20488 | if test "$GXX" = yes; then |
| 20489 | CXXFLAGS="-O2" |
| 20490 | else |
| 20491 | CXXFLAGS= |
| 20492 | fi |
| 20493 | fi |
| 20494 | for ac_declaration in \ |
| 20495 | '' \ |
| 20496 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 20497 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 20498 | 'extern "C" void exit (int) throw ();' \ |
| 20499 | 'extern "C" void exit (int);' \ |
| 20500 | 'void exit (int);' |
| 20501 | do |
| 20502 | cat >conftest.$ac_ext <<_ACEOF |
| 20503 | /* confdefs.h. */ |
| 20504 | _ACEOF |
| 20505 | cat confdefs.h >>conftest.$ac_ext |
| 20506 | cat >>conftest.$ac_ext <<_ACEOF |
| 20507 | /* end confdefs.h. */ |
| 20508 | $ac_declaration |
| 20509 | #include <stdlib.h> |
| 20510 | int |
| 20511 | main () |
| 20512 | { |
| 20513 | exit (42); |
| 20514 | ; |
| 20515 | return 0; |
| 20516 | } |
| 20517 | _ACEOF |
| 20518 | rm -f conftest.$ac_objext |
| 20519 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20520 | (eval $ac_compile) 2>conftest.er1 |
| 20521 | ac_status=$? |
| 20522 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20523 | rm -f conftest.er1 |
| 20524 | cat conftest.err >&5 |
| 20525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20526 | (exit $ac_status); } && |
| 20527 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 20528 | || test ! -s conftest.err' |
| 20529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20530 | (eval $ac_try) 2>&5 |
| 20531 | ac_status=$? |
| 20532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20533 | (exit $ac_status); }; } && |
| 20534 | { ac_try='test -s conftest.$ac_objext' |
| 20535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20536 | (eval $ac_try) 2>&5 |
| 20537 | ac_status=$? |
| 20538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20539 | (exit $ac_status); }; }; then |
| 20540 | : |
| 20541 | else |
| 20542 | echo "$as_me: failed program was:" >&5 |
| 20543 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20544 | |
| 20545 | continue |
| 20546 | fi |
| 20547 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20548 | cat >conftest.$ac_ext <<_ACEOF |
| 20549 | /* confdefs.h. */ |
| 20550 | _ACEOF |
| 20551 | cat confdefs.h >>conftest.$ac_ext |
| 20552 | cat >>conftest.$ac_ext <<_ACEOF |
| 20553 | /* end confdefs.h. */ |
| 20554 | $ac_declaration |
| 20555 | int |
| 20556 | main () |
| 20557 | { |
| 20558 | exit (42); |
| 20559 | ; |
| 20560 | return 0; |
| 20561 | } |
| 20562 | _ACEOF |
| 20563 | rm -f conftest.$ac_objext |
| 20564 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 20565 | (eval $ac_compile) 2>conftest.er1 |
| 20566 | ac_status=$? |
| 20567 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20568 | rm -f conftest.er1 |
| 20569 | cat conftest.err >&5 |
| 20570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20571 | (exit $ac_status); } && |
| 20572 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 20573 | || test ! -s conftest.err' |
| 20574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20575 | (eval $ac_try) 2>&5 |
| 20576 | ac_status=$? |
| 20577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20578 | (exit $ac_status); }; } && |
| 20579 | { ac_try='test -s conftest.$ac_objext' |
| 20580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20581 | (eval $ac_try) 2>&5 |
| 20582 | ac_status=$? |
| 20583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20584 | (exit $ac_status); }; }; then |
| 20585 | break |
| 20586 | else |
| 20587 | echo "$as_me: failed program was:" >&5 |
| 20588 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20589 | |
| 20590 | fi |
| 20591 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20592 | done |
| 20593 | rm -f conftest* |
| 20594 | if test -n "$ac_declaration"; then |
| 20595 | echo '#ifdef __cplusplus' >>confdefs.h |
| 20596 | echo $ac_declaration >>confdefs.h |
| 20597 | echo '#endif' >>confdefs.h |
| 20598 | fi |
| 20599 | |
| 20600 | ac_ext=c |
| 20601 | ac_cpp='$CPP $CPPFLAGS' |
| 20602 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20603 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20604 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20605 | |
| 20606 | depcc="$CXX" am_compiler_list= |
| 20607 | |
| 20608 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 20609 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
| 20610 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
| 20611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20612 | else |
| 20613 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 20614 | # We make a subdir and do the tests there. Otherwise we can end up |
| 20615 | # making bogus files that we don't know about and never remove. For |
| 20616 | # instance it was reported that on HP-UX the gcc test will end up |
| 20617 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 20618 | # in D'. |
| 20619 | mkdir conftest.dir |
| 20620 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 20621 | # using a relative directory. |
| 20622 | cp "$am_depcomp" conftest.dir |
| 20623 | cd conftest.dir |
| 20624 | # We will build objects and dependencies in a subdirectory because |
| 20625 | # it helps to detect inapplicable dependency modes. For instance |
| 20626 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 20627 | # side effect of compilation, but ICC will put the dependencies in |
| 20628 | # the current directory while Tru64 will put them in the object |
| 20629 | # directory. |
| 20630 | mkdir sub |
| 20631 | |
| 20632 | am_cv_CXX_dependencies_compiler_type=none |
| 20633 | if test "$am_compiler_list" = ""; then |
| 20634 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 20635 | fi |
| 20636 | for depmode in $am_compiler_list; do |
| 20637 | # Setup a source with many dependencies, because some compilers |
| 20638 | # like to wrap large dependency lists on column 80 (with \), and |
| 20639 | # we should not choose a depcomp mode which is confused by this. |
| 20640 | # |
| 20641 | # We need to recreate these files for each test, as the compiler may |
| 20642 | # overwrite some of them when testing with obscure command lines. |
| 20643 | # This happens at least with the AIX C compiler. |
| 20644 | : > sub/conftest.c |
| 20645 | for i in 1 2 3 4 5 6; do |
| 20646 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 20647 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 20648 | # Solaris 8's {/usr,}/bin/sh. |
| 20649 | touch sub/conftst$i.h |
| 20650 | done |
| 20651 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 20652 | |
| 20653 | case $depmode in |
| 20654 | nosideeffect) |
| 20655 | # after this tag, mechanisms are not by side-effect, so they'll |
| 20656 | # only be used when explicitly requested |
| 20657 | if test "x$enable_dependency_tracking" = xyes; then |
| 20658 | continue |
| 20659 | else |
| 20660 | break |
| 20661 | fi |
| 20662 | ;; |
| 20663 | none) break ;; |
| 20664 | esac |
| 20665 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 20666 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 20667 | # handle `-M -o', and we need to detect this. |
| 20668 | if depmode=$depmode \ |
| 20669 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| 20670 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 20671 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| 20672 | >/dev/null 2>conftest.err && |
| 20673 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 20674 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
| 20675 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 20676 | # icc doesn't choke on unknown options, it will just issue warnings |
| 20677 | # or remarks (even with -Werror). So we grep stderr for any message |
| 20678 | # that says an option was ignored or not supported. |
| 20679 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 20680 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 20681 | # The diagnosis changed in icc 8.0: |
| 20682 | # icc: Command line remark: option '-MP' not supported |
| 20683 | if (grep 'ignoring option' conftest.err || |
| 20684 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 20685 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 20686 | break |
| 20687 | fi |
| 20688 | fi |
| 20689 | done |
| 20690 | |
| 20691 | cd .. |
| 20692 | rm -rf conftest.dir |
| 20693 | else |
| 20694 | am_cv_CXX_dependencies_compiler_type=none |
| 20695 | fi |
| 20696 | |
| 20697 | fi |
| 20698 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 20699 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
| 20700 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 20701 | |
| 20702 | |
| 20703 | |
| 20704 | if |
| 20705 | test "x$enable_dependency_tracking" != xno \ |
| 20706 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 20707 | am__fastdepCXX_TRUE= |
| 20708 | am__fastdepCXX_FALSE='#' |
| 20709 | else |
| 20710 | am__fastdepCXX_TRUE='#' |
| 20711 | am__fastdepCXX_FALSE= |
| 20712 | fi |
| 20713 | |
| 20714 | |
| 20715 | ac_ext=cc |
| 20716 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20717 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20718 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20719 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20720 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 20721 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
| 20722 | if test -z "$CXXCPP"; then |
| 20723 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
| 20724 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20725 | else |
| 20726 | # Double quotes because CXXCPP needs to be expanded |
| 20727 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 20728 | do |
| 20729 | ac_preproc_ok=false |
| 20730 | for ac_cxx_preproc_warn_flag in '' yes |
| 20731 | do |
| 20732 | # Use a header file that comes with gcc, so configuring glibc |
| 20733 | # with a fresh cross-compiler works. |
| 20734 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 20735 | # <limits.h> exists even on freestanding compilers. |
| 20736 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 20737 | # not just through cpp. "Syntax error" is here to catch this case. |
| 20738 | cat >conftest.$ac_ext <<_ACEOF |
| 20739 | /* confdefs.h. */ |
| 20740 | _ACEOF |
| 20741 | cat confdefs.h >>conftest.$ac_ext |
| 20742 | cat >>conftest.$ac_ext <<_ACEOF |
| 20743 | /* end confdefs.h. */ |
| 20744 | #ifdef __STDC__ |
| 20745 | # include <limits.h> |
| 20746 | #else |
| 20747 | # include <assert.h> |
| 20748 | #endif |
| 20749 | Syntax error |
| 20750 | _ACEOF |
| 20751 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 20752 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 20753 | ac_status=$? |
| 20754 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20755 | rm -f conftest.er1 |
| 20756 | cat conftest.err >&5 |
| 20757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20758 | (exit $ac_status); } >/dev/null; then |
| 20759 | if test -s conftest.err; then |
| 20760 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 20761 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 20762 | else |
| 20763 | ac_cpp_err= |
| 20764 | fi |
| 20765 | else |
| 20766 | ac_cpp_err=yes |
| 20767 | fi |
| 20768 | if test -z "$ac_cpp_err"; then |
| 20769 | : |
| 20770 | else |
| 20771 | echo "$as_me: failed program was:" >&5 |
| 20772 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20773 | |
| 20774 | # Broken: fails on valid input. |
| 20775 | continue |
| 20776 | fi |
| 20777 | rm -f conftest.err conftest.$ac_ext |
| 20778 | |
| 20779 | # OK, works on sane cases. Now check whether non-existent headers |
| 20780 | # can be detected and how. |
| 20781 | cat >conftest.$ac_ext <<_ACEOF |
| 20782 | /* confdefs.h. */ |
| 20783 | _ACEOF |
| 20784 | cat confdefs.h >>conftest.$ac_ext |
| 20785 | cat >>conftest.$ac_ext <<_ACEOF |
| 20786 | /* end confdefs.h. */ |
| 20787 | #include <ac_nonexistent.h> |
| 20788 | _ACEOF |
| 20789 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 20790 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 20791 | ac_status=$? |
| 20792 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20793 | rm -f conftest.er1 |
| 20794 | cat conftest.err >&5 |
| 20795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20796 | (exit $ac_status); } >/dev/null; then |
| 20797 | if test -s conftest.err; then |
| 20798 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 20799 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 20800 | else |
| 20801 | ac_cpp_err= |
| 20802 | fi |
| 20803 | else |
| 20804 | ac_cpp_err=yes |
| 20805 | fi |
| 20806 | if test -z "$ac_cpp_err"; then |
| 20807 | # Broken: success on invalid input. |
| 20808 | continue |
| 20809 | else |
| 20810 | echo "$as_me: failed program was:" >&5 |
| 20811 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20812 | |
| 20813 | # Passes both tests. |
| 20814 | ac_preproc_ok=: |
| 20815 | break |
| 20816 | fi |
| 20817 | rm -f conftest.err conftest.$ac_ext |
| 20818 | |
| 20819 | done |
| 20820 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 20821 | rm -f conftest.err conftest.$ac_ext |
| 20822 | if $ac_preproc_ok; then |
| 20823 | break |
| 20824 | fi |
| 20825 | |
| 20826 | done |
| 20827 | ac_cv_prog_CXXCPP=$CXXCPP |
| 20828 | |
| 20829 | fi |
| 20830 | CXXCPP=$ac_cv_prog_CXXCPP |
| 20831 | else |
| 20832 | ac_cv_prog_CXXCPP=$CXXCPP |
| 20833 | fi |
| 20834 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 20835 | echo "${ECHO_T}$CXXCPP" >&6 |
| 20836 | ac_preproc_ok=false |
| 20837 | for ac_cxx_preproc_warn_flag in '' yes |
| 20838 | do |
| 20839 | # Use a header file that comes with gcc, so configuring glibc |
| 20840 | # with a fresh cross-compiler works. |
| 20841 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 20842 | # <limits.h> exists even on freestanding compilers. |
| 20843 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 20844 | # not just through cpp. "Syntax error" is here to catch this case. |
| 20845 | cat >conftest.$ac_ext <<_ACEOF |
| 20846 | /* confdefs.h. */ |
| 20847 | _ACEOF |
| 20848 | cat confdefs.h >>conftest.$ac_ext |
| 20849 | cat >>conftest.$ac_ext <<_ACEOF |
| 20850 | /* end confdefs.h. */ |
| 20851 | #ifdef __STDC__ |
| 20852 | # include <limits.h> |
| 20853 | #else |
| 20854 | # include <assert.h> |
| 20855 | #endif |
| 20856 | Syntax error |
| 20857 | _ACEOF |
| 20858 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 20859 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 20860 | ac_status=$? |
| 20861 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20862 | rm -f conftest.er1 |
| 20863 | cat conftest.err >&5 |
| 20864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20865 | (exit $ac_status); } >/dev/null; then |
| 20866 | if test -s conftest.err; then |
| 20867 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 20868 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 20869 | else |
| 20870 | ac_cpp_err= |
| 20871 | fi |
| 20872 | else |
| 20873 | ac_cpp_err=yes |
| 20874 | fi |
| 20875 | if test -z "$ac_cpp_err"; then |
| 20876 | : |
| 20877 | else |
| 20878 | echo "$as_me: failed program was:" >&5 |
| 20879 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20880 | |
| 20881 | # Broken: fails on valid input. |
| 20882 | continue |
| 20883 | fi |
| 20884 | rm -f conftest.err conftest.$ac_ext |
| 20885 | |
| 20886 | # OK, works on sane cases. Now check whether non-existent headers |
| 20887 | # can be detected and how. |
| 20888 | cat >conftest.$ac_ext <<_ACEOF |
| 20889 | /* confdefs.h. */ |
| 20890 | _ACEOF |
| 20891 | cat confdefs.h >>conftest.$ac_ext |
| 20892 | cat >>conftest.$ac_ext <<_ACEOF |
| 20893 | /* end confdefs.h. */ |
| 20894 | #include <ac_nonexistent.h> |
| 20895 | _ACEOF |
| 20896 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 20897 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 20898 | ac_status=$? |
| 20899 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20900 | rm -f conftest.er1 |
| 20901 | cat conftest.err >&5 |
| 20902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20903 | (exit $ac_status); } >/dev/null; then |
| 20904 | if test -s conftest.err; then |
| 20905 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 20906 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 20907 | else |
| 20908 | ac_cpp_err= |
| 20909 | fi |
| 20910 | else |
| 20911 | ac_cpp_err=yes |
| 20912 | fi |
| 20913 | if test -z "$ac_cpp_err"; then |
| 20914 | # Broken: success on invalid input. |
| 20915 | continue |
| 20916 | else |
| 20917 | echo "$as_me: failed program was:" >&5 |
| 20918 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20919 | |
| 20920 | # Passes both tests. |
| 20921 | ac_preproc_ok=: |
| 20922 | break |
| 20923 | fi |
| 20924 | rm -f conftest.err conftest.$ac_ext |
| 20925 | |
| 20926 | done |
| 20927 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 20928 | rm -f conftest.err conftest.$ac_ext |
| 20929 | if $ac_preproc_ok; then |
| 20930 | : |
| 20931 | else |
| 20932 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 20933 | See \`config.log' for more details." >&5 |
| 20934 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 20935 | See \`config.log' for more details." >&2;} |
| 20936 | { (exit 1); exit 1; }; } |
| 20937 | fi |
| 20938 | |
| 20939 | ac_ext=c |
| 20940 | ac_cpp='$CPP $CPPFLAGS' |
| 20941 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20942 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20943 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20944 | |
| 20945 | |
| 20946 | |
| 20947 | if test -n "$ac_ct_CXX"; then |
| 20948 | CPLUSPLUS_FOUND_TRUE= |
| 20949 | CPLUSPLUS_FOUND_FALSE='#' |
| 20950 | else |
| 20951 | CPLUSPLUS_FOUND_TRUE='#' |
| 20952 | CPLUSPLUS_FOUND_FALSE= |
| 20953 | fi |
| 20954 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20955 | # Find a good install program. We prefer a C program (faster), |
| 20956 | # so one script is as good as another. But avoid the broken or |
| 20957 | # incompatible versions: |
| 20958 | # SysV /etc/install, /usr/sbin/install |
| 20959 | # SunOS /usr/etc/install |
| 20960 | # IRIX /sbin/install |
| 20961 | # AIX /bin/install |
| 20962 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 20963 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 20964 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 20965 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 20966 | # OS/2's system install, which has a completely different semantic |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20967 | # ./install, which can be erroneously created by make from ./install.sh. |
| 20968 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 20969 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 20970 | if test -z "$INSTALL"; then |
| 20971 | if test "${ac_cv_path_install+set}" = set; then |
| 20972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20973 | else |
| 20974 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20975 | for as_dir in $PATH |
| 20976 | do |
| 20977 | IFS=$as_save_IFS |
| 20978 | test -z "$as_dir" && as_dir=. |
| 20979 | # Account for people who put trailing slashes in PATH elements. |
| 20980 | case $as_dir/ in |
| 20981 | ./ | .// | /cC/* | \ |
| 20982 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 20983 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20984 | /usr/ucb/* ) ;; |
| 20985 | *) |
| 20986 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 20987 | # Don't use installbsd from OSF since it installs stuff as root |
| 20988 | # by default. |
| 20989 | for ac_prog in ginstall scoinst install; do |
| 20990 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 20991 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 20992 | if test $ac_prog = install && |
| 20993 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 20994 | # AIX install. It has an incompatible calling convention. |
| 20995 | : |
| 20996 | elif test $ac_prog = install && |
| 20997 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 20998 | # program-specific install script used by HP pwplus--don't use. |
| 20999 | : |
| 21000 | else |
| 21001 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 21002 | break 3 |
| 21003 | fi |
| 21004 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21005 | done |
| 21006 | done |
| 21007 | ;; |
| 21008 | esac |
| 21009 | done |
| 21010 | |
| 21011 | |
| 21012 | fi |
| 21013 | if test "${ac_cv_path_install+set}" = set; then |
| 21014 | INSTALL=$ac_cv_path_install |
| 21015 | else |
| 21016 | # As a last resort, use the slow shell script. We don't cache a |
| 21017 | # path for INSTALL within a source directory, because that will |
| 21018 | # break other packages using the cache if that directory is |
| 21019 | # removed, or if the path is relative. |
| 21020 | INSTALL=$ac_install_sh |
| 21021 | fi |
| 21022 | fi |
| 21023 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 21024 | echo "${ECHO_T}$INSTALL" >&6 |
| 21025 | |
| 21026 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 21027 | # It thinks the first close brace ends the variable substitution. |
| 21028 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 21029 | |
| 21030 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 21031 | |
| 21032 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 21033 | |
| 21034 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 21035 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 21036 | LN_S=$as_ln_s |
| 21037 | if test "$LN_S" = "ln -s"; then |
| 21038 | echo "$as_me:$LINENO: result: yes" >&5 |
| 21039 | echo "${ECHO_T}yes" >&6 |
| 21040 | else |
| 21041 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 21042 | echo "${ECHO_T}no, using $LN_S" >&6 |
| 21043 | fi |
| 21044 | |
| 21045 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 21046 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21047 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21048 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 21049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21050 | else |
| 21051 | cat >conftest.make <<\_ACEOF |
| 21052 | all: |
| 21053 | @echo 'ac_maketemp="$(MAKE)"' |
| 21054 | _ACEOF |
| 21055 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 21056 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
| 21057 | if test -n "$ac_maketemp"; then |
| 21058 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 21059 | else |
| 21060 | eval ac_cv_prog_make_${ac_make}_set=no |
| 21061 | fi |
| 21062 | rm -f conftest.make |
| 21063 | fi |
| 21064 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 21065 | echo "$as_me:$LINENO: result: yes" >&5 |
| 21066 | echo "${ECHO_T}yes" >&6 |
| 21067 | SET_MAKE= |
| 21068 | else |
| 21069 | echo "$as_me:$LINENO: result: no" >&5 |
| 21070 | echo "${ECHO_T}no" >&6 |
| 21071 | SET_MAKE="MAKE=${MAKE-make}" |
| 21072 | fi |
| 21073 | |
| 21074 | for ac_prog in 'bison -y' byacc |
| 21075 | do |
| 21076 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 21077 | set dummy $ac_prog; ac_word=$2 |
| 21078 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 21079 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 21080 | if test "${ac_cv_prog_YACC+set}" = set; then |
| 21081 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21082 | else |
| 21083 | if test -n "$YACC"; then |
| 21084 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 21085 | else |
| 21086 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 21087 | for as_dir in $PATH |
| 21088 | do |
| 21089 | IFS=$as_save_IFS |
| 21090 | test -z "$as_dir" && as_dir=. |
| 21091 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 21092 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 21093 | ac_cv_prog_YACC="$ac_prog" |
| 21094 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 21095 | break 2 |
| 21096 | fi |
| 21097 | done |
| 21098 | done |
| 21099 | |
| 21100 | fi |
| 21101 | fi |
| 21102 | YACC=$ac_cv_prog_YACC |
| 21103 | if test -n "$YACC"; then |
| 21104 | echo "$as_me:$LINENO: result: $YACC" >&5 |
| 21105 | echo "${ECHO_T}$YACC" >&6 |
| 21106 | else |
| 21107 | echo "$as_me:$LINENO: result: no" >&5 |
| 21108 | echo "${ECHO_T}no" >&6 |
| 21109 | fi |
| 21110 | |
| 21111 | test -n "$YACC" && break |
| 21112 | done |
| 21113 | test -n "$YACC" || YACC="yacc" |
| 21114 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21115 | for ac_prog in flex lex |
| 21116 | do |
| 21117 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 21118 | set dummy $ac_prog; ac_word=$2 |
| 21119 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 21120 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 21121 | if test "${ac_cv_prog_LEX+set}" = set; then |
| 21122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21123 | else |
| 21124 | if test -n "$LEX"; then |
| 21125 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 21126 | else |
| 21127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 21128 | for as_dir in $PATH |
| 21129 | do |
| 21130 | IFS=$as_save_IFS |
| 21131 | test -z "$as_dir" && as_dir=. |
| 21132 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 21133 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 21134 | ac_cv_prog_LEX="$ac_prog" |
| 21135 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 21136 | break 2 |
| 21137 | fi |
| 21138 | done |
| 21139 | done |
| 21140 | |
| 21141 | fi |
| 21142 | fi |
| 21143 | LEX=$ac_cv_prog_LEX |
| 21144 | if test -n "$LEX"; then |
| 21145 | echo "$as_me:$LINENO: result: $LEX" >&5 |
| 21146 | echo "${ECHO_T}$LEX" >&6 |
| 21147 | else |
| 21148 | echo "$as_me:$LINENO: result: no" >&5 |
| 21149 | echo "${ECHO_T}no" >&6 |
| 21150 | fi |
| 21151 | |
| 21152 | test -n "$LEX" && break |
| 21153 | done |
| 21154 | test -n "$LEX" || LEX=":" |
| 21155 | |
| 21156 | if test -z "$LEXLIB" |
| 21157 | then |
| 21158 | echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
| 21159 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 |
| 21160 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then |
| 21161 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21162 | else |
| 21163 | ac_check_lib_save_LIBS=$LIBS |
| 21164 | LIBS="-lfl $LIBS" |
| 21165 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21166 | /* confdefs.h. */ |
| 21167 | _ACEOF |
| 21168 | cat confdefs.h >>conftest.$ac_ext |
| 21169 | cat >>conftest.$ac_ext <<_ACEOF |
| 21170 | /* end confdefs.h. */ |
| 21171 | |
| 21172 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 21173 | #ifdef __cplusplus |
| 21174 | extern "C" |
| 21175 | #endif |
| 21176 | /* We use char because int might match the return type of a gcc2 |
| 21177 | builtin and then its argument prototype would still apply. */ |
| 21178 | char yywrap (); |
| 21179 | int |
| 21180 | main () |
| 21181 | { |
| 21182 | yywrap (); |
| 21183 | ; |
| 21184 | return 0; |
| 21185 | } |
| 21186 | _ACEOF |
| 21187 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21188 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21189 | (eval $ac_link) 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21190 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21191 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21192 | rm -f conftest.er1 |
| 21193 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21195 | (exit $ac_status); } && |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21196 | { ac_try='test -z "$ac_c_werror_flag" |
| 21197 | || test ! -s conftest.err' |
| 21198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21199 | (eval $ac_try) 2>&5 |
| 21200 | ac_status=$? |
| 21201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21202 | (exit $ac_status); }; } && |
| 21203 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21205 | (eval $ac_try) 2>&5 |
| 21206 | ac_status=$? |
| 21207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21208 | (exit $ac_status); }; }; then |
| 21209 | ac_cv_lib_fl_yywrap=yes |
| 21210 | else |
| 21211 | echo "$as_me: failed program was:" >&5 |
| 21212 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21213 | |
| 21214 | ac_cv_lib_fl_yywrap=no |
| 21215 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21216 | rm -f conftest.err conftest.$ac_objext \ |
| 21217 | conftest$ac_exeext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21218 | LIBS=$ac_check_lib_save_LIBS |
| 21219 | fi |
| 21220 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
| 21221 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 |
| 21222 | if test $ac_cv_lib_fl_yywrap = yes; then |
| 21223 | LEXLIB="-lfl" |
| 21224 | else |
| 21225 | echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
| 21226 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 |
| 21227 | if test "${ac_cv_lib_l_yywrap+set}" = set; then |
| 21228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21229 | else |
| 21230 | ac_check_lib_save_LIBS=$LIBS |
| 21231 | LIBS="-ll $LIBS" |
| 21232 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21233 | /* confdefs.h. */ |
| 21234 | _ACEOF |
| 21235 | cat confdefs.h >>conftest.$ac_ext |
| 21236 | cat >>conftest.$ac_ext <<_ACEOF |
| 21237 | /* end confdefs.h. */ |
| 21238 | |
| 21239 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 21240 | #ifdef __cplusplus |
| 21241 | extern "C" |
| 21242 | #endif |
| 21243 | /* We use char because int might match the return type of a gcc2 |
| 21244 | builtin and then its argument prototype would still apply. */ |
| 21245 | char yywrap (); |
| 21246 | int |
| 21247 | main () |
| 21248 | { |
| 21249 | yywrap (); |
| 21250 | ; |
| 21251 | return 0; |
| 21252 | } |
| 21253 | _ACEOF |
| 21254 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21255 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21256 | (eval $ac_link) 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21257 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21258 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21259 | rm -f conftest.er1 |
| 21260 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21262 | (exit $ac_status); } && |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21263 | { ac_try='test -z "$ac_c_werror_flag" |
| 21264 | || test ! -s conftest.err' |
| 21265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21266 | (eval $ac_try) 2>&5 |
| 21267 | ac_status=$? |
| 21268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21269 | (exit $ac_status); }; } && |
| 21270 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21272 | (eval $ac_try) 2>&5 |
| 21273 | ac_status=$? |
| 21274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21275 | (exit $ac_status); }; }; then |
| 21276 | ac_cv_lib_l_yywrap=yes |
| 21277 | else |
| 21278 | echo "$as_me: failed program was:" >&5 |
| 21279 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21280 | |
| 21281 | ac_cv_lib_l_yywrap=no |
| 21282 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21283 | rm -f conftest.err conftest.$ac_objext \ |
| 21284 | conftest$ac_exeext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21285 | LIBS=$ac_check_lib_save_LIBS |
| 21286 | fi |
| 21287 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
| 21288 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 |
| 21289 | if test $ac_cv_lib_l_yywrap = yes; then |
| 21290 | LEXLIB="-ll" |
| 21291 | fi |
| 21292 | |
| 21293 | fi |
| 21294 | |
| 21295 | fi |
| 21296 | |
| 21297 | if test "x$LEX" != "x:"; then |
| 21298 | echo "$as_me:$LINENO: checking lex output file root" >&5 |
| 21299 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 |
| 21300 | if test "${ac_cv_prog_lex_root+set}" = set; then |
| 21301 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21302 | else |
| 21303 | # The minimal lex program is just a single line: %%. But some broken lexes |
| 21304 | # (Solaris, I think it was) want two %% lines, so accommodate them. |
| 21305 | cat >conftest.l <<_ACEOF |
| 21306 | %% |
| 21307 | %% |
| 21308 | _ACEOF |
| 21309 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 |
| 21310 | (eval $LEX conftest.l) 2>&5 |
| 21311 | ac_status=$? |
| 21312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21313 | (exit $ac_status); } |
| 21314 | if test -f lex.yy.c; then |
| 21315 | ac_cv_prog_lex_root=lex.yy |
| 21316 | elif test -f lexyy.c; then |
| 21317 | ac_cv_prog_lex_root=lexyy |
| 21318 | else |
| 21319 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
| 21320 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
| 21321 | { (exit 1); exit 1; }; } |
| 21322 | fi |
| 21323 | fi |
| 21324 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
| 21325 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 |
| 21326 | rm -f conftest.l |
| 21327 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
| 21328 | |
| 21329 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
| 21330 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 |
| 21331 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
| 21332 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21333 | else |
| 21334 | # POSIX says lex can declare yytext either as a pointer or an array; the |
| 21335 | # default is implementation-dependent. Figure out which it is, since |
| 21336 | # not all implementations provide the %pointer and %array declarations. |
| 21337 | ac_cv_prog_lex_yytext_pointer=no |
| 21338 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
| 21339 | ac_save_LIBS=$LIBS |
| 21340 | LIBS="$LIBS $LEXLIB" |
| 21341 | cat >conftest.$ac_ext <<_ACEOF |
| 21342 | `cat $LEX_OUTPUT_ROOT.c` |
| 21343 | _ACEOF |
| 21344 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21345 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21346 | (eval $ac_link) 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21347 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21348 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21349 | rm -f conftest.er1 |
| 21350 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21352 | (exit $ac_status); } && |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21353 | { ac_try='test -z "$ac_c_werror_flag" |
| 21354 | || test ! -s conftest.err' |
| 21355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21356 | (eval $ac_try) 2>&5 |
| 21357 | ac_status=$? |
| 21358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21359 | (exit $ac_status); }; } && |
| 21360 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21362 | (eval $ac_try) 2>&5 |
| 21363 | ac_status=$? |
| 21364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21365 | (exit $ac_status); }; }; then |
| 21366 | ac_cv_prog_lex_yytext_pointer=yes |
| 21367 | else |
| 21368 | echo "$as_me: failed program was:" >&5 |
| 21369 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21370 | |
| 21371 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21372 | rm -f conftest.err conftest.$ac_objext \ |
| 21373 | conftest$ac_exeext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21374 | LIBS=$ac_save_LIBS |
| 21375 | rm -f "${LEX_OUTPUT_ROOT}.c" |
| 21376 | |
| 21377 | fi |
| 21378 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
| 21379 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 |
| 21380 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
| 21381 | |
| 21382 | cat >>confdefs.h <<\_ACEOF |
| 21383 | #define YYTEXT_POINTER 1 |
| 21384 | _ACEOF |
| 21385 | |
| 21386 | fi |
| 21387 | |
| 21388 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21389 | if test "$LEX" = :; then |
| 21390 | LEX=${am_missing_run}flex |
| 21391 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21392 | |
Lev Walkin | 5f869d0 | 2004-08-23 10:41:38 +0000 | [diff] [blame] | 21393 | case "$host_os" in |
| 21394 | cygwin*) |
Lev Walkin | 2b4c059 | 2004-08-25 01:58:01 +0000 | [diff] [blame] | 21395 | case "$target" in |
Lev Walkin | 5f869d0 | 2004-08-23 10:41:38 +0000 | [diff] [blame] | 21396 | *mingw*) |
| 21397 | CC="$CC -mno-cygwin" |
| 21398 | esac |
| 21399 | ;; |
| 21400 | mingw* | p32*) |
Lev Walkin | 2b4c059 | 2004-08-25 01:58:01 +0000 | [diff] [blame] | 21401 | ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21402 | esac |
| 21403 | |
Lev Walkin | 04c2317 | 2004-09-26 14:18:32 +0000 | [diff] [blame] | 21404 | # Check whether --enable-Werror or --disable-Werror was given. |
| 21405 | if test "${enable_Werror+set}" = set; then |
| 21406 | enableval="$enable_Werror" |
| 21407 | enable_werror=$enableval |
| 21408 | else |
| 21409 | enable_werror=no |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21410 | fi; |
Lev Walkin | 04c2317 | 2004-09-26 14:18:32 +0000 | [diff] [blame] | 21411 | if test x$enable_werror = xyes; then |
| 21412 | ADD_CFLAGS="-Werror -W -Wpointer-arith" |
| 21413 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21414 | |
| 21415 | |
| 21416 | case "$GCC" in |
| 21417 | yes) |
| 21418 | CFLAGS="$CFLAGS -Wall" |
| 21419 | CFLAGS="$CFLAGS -Wshadow" |
| 21420 | CFLAGS="$CFLAGS -Wcast-qual" |
| 21421 | CFLAGS="$CFLAGS -Wcast-align" |
Lev Walkin | 9363674 | 2004-09-26 13:16:33 +0000 | [diff] [blame] | 21422 | CFLAGS="$CFLAGS -Wchar-subscripts" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21423 | CFLAGS="$CFLAGS -Wmissing-prototypes" |
| 21424 | CFLAGS="$CFLAGS -Wmissing-declarations" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21425 | ;; |
| 21426 | esac |
| 21427 | |
| 21428 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21429 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 21430 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 21431 | if test "${ac_cv_header_stdc+set}" = set; then |
| 21432 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21433 | else |
| 21434 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21435 | /* confdefs.h. */ |
| 21436 | _ACEOF |
| 21437 | cat confdefs.h >>conftest.$ac_ext |
| 21438 | cat >>conftest.$ac_ext <<_ACEOF |
| 21439 | /* end confdefs.h. */ |
| 21440 | #include <stdlib.h> |
| 21441 | #include <stdarg.h> |
| 21442 | #include <string.h> |
| 21443 | #include <float.h> |
| 21444 | |
| 21445 | int |
| 21446 | main () |
| 21447 | { |
| 21448 | |
| 21449 | ; |
| 21450 | return 0; |
| 21451 | } |
| 21452 | _ACEOF |
| 21453 | rm -f conftest.$ac_objext |
| 21454 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21455 | (eval $ac_compile) 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21456 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21457 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21458 | rm -f conftest.er1 |
| 21459 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21461 | (exit $ac_status); } && |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21462 | { ac_try='test -z "$ac_c_werror_flag" |
| 21463 | || test ! -s conftest.err' |
| 21464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21465 | (eval $ac_try) 2>&5 |
| 21466 | ac_status=$? |
| 21467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21468 | (exit $ac_status); }; } && |
| 21469 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21471 | (eval $ac_try) 2>&5 |
| 21472 | ac_status=$? |
| 21473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21474 | (exit $ac_status); }; }; then |
| 21475 | ac_cv_header_stdc=yes |
| 21476 | else |
| 21477 | echo "$as_me: failed program was:" >&5 |
| 21478 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21479 | |
| 21480 | ac_cv_header_stdc=no |
| 21481 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21482 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21483 | |
| 21484 | if test $ac_cv_header_stdc = yes; then |
| 21485 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 21486 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21487 | /* confdefs.h. */ |
| 21488 | _ACEOF |
| 21489 | cat confdefs.h >>conftest.$ac_ext |
| 21490 | cat >>conftest.$ac_ext <<_ACEOF |
| 21491 | /* end confdefs.h. */ |
| 21492 | #include <string.h> |
| 21493 | |
| 21494 | _ACEOF |
| 21495 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 21496 | $EGREP "memchr" >/dev/null 2>&1; then |
| 21497 | : |
| 21498 | else |
| 21499 | ac_cv_header_stdc=no |
| 21500 | fi |
| 21501 | rm -f conftest* |
| 21502 | |
| 21503 | fi |
| 21504 | |
| 21505 | if test $ac_cv_header_stdc = yes; then |
| 21506 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 21507 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21508 | /* confdefs.h. */ |
| 21509 | _ACEOF |
| 21510 | cat confdefs.h >>conftest.$ac_ext |
| 21511 | cat >>conftest.$ac_ext <<_ACEOF |
| 21512 | /* end confdefs.h. */ |
| 21513 | #include <stdlib.h> |
| 21514 | |
| 21515 | _ACEOF |
| 21516 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 21517 | $EGREP "free" >/dev/null 2>&1; then |
| 21518 | : |
| 21519 | else |
| 21520 | ac_cv_header_stdc=no |
| 21521 | fi |
| 21522 | rm -f conftest* |
| 21523 | |
| 21524 | fi |
| 21525 | |
| 21526 | if test $ac_cv_header_stdc = yes; then |
| 21527 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 21528 | if test "$cross_compiling" = yes; then |
| 21529 | : |
| 21530 | else |
| 21531 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21532 | /* confdefs.h. */ |
| 21533 | _ACEOF |
| 21534 | cat confdefs.h >>conftest.$ac_ext |
| 21535 | cat >>conftest.$ac_ext <<_ACEOF |
| 21536 | /* end confdefs.h. */ |
| 21537 | #include <ctype.h> |
| 21538 | #if ((' ' & 0x0FF) == 0x020) |
| 21539 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 21540 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 21541 | #else |
| 21542 | # define ISLOWER(c) \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21543 | (('a' <= (c) && (c) <= 'i') \ |
| 21544 | || ('j' <= (c) && (c) <= 'r') \ |
| 21545 | || ('s' <= (c) && (c) <= 'z')) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21546 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 21547 | #endif |
| 21548 | |
| 21549 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 21550 | int |
| 21551 | main () |
| 21552 | { |
| 21553 | int i; |
| 21554 | for (i = 0; i < 256; i++) |
| 21555 | if (XOR (islower (i), ISLOWER (i)) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21556 | || toupper (i) != TOUPPER (i)) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21557 | exit(2); |
| 21558 | exit (0); |
| 21559 | } |
| 21560 | _ACEOF |
| 21561 | rm -f conftest$ac_exeext |
| 21562 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21563 | (eval $ac_link) 2>&5 |
| 21564 | ac_status=$? |
| 21565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21566 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 21567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21568 | (eval $ac_try) 2>&5 |
| 21569 | ac_status=$? |
| 21570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21571 | (exit $ac_status); }; }; then |
| 21572 | : |
| 21573 | else |
| 21574 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21575 | echo "$as_me: failed program was:" >&5 |
| 21576 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21577 | |
| 21578 | ( exit $ac_status ) |
| 21579 | ac_cv_header_stdc=no |
| 21580 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21581 | rm -f core *.core 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] | 21582 | fi |
| 21583 | fi |
| 21584 | fi |
| 21585 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 21586 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 21587 | if test $ac_cv_header_stdc = yes; then |
| 21588 | |
| 21589 | cat >>confdefs.h <<\_ACEOF |
| 21590 | #define STDC_HEADERS 1 |
| 21591 | _ACEOF |
| 21592 | |
| 21593 | fi |
| 21594 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21595 | |
Lev Walkin | 79f5495 | 2004-08-13 16:58:19 +0000 | [diff] [blame] | 21596 | for ac_header in sys/param.h |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21597 | do |
| 21598 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 21599 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 21600 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 21601 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 21602 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 21603 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21604 | fi |
| 21605 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 21606 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 21607 | else |
| 21608 | # Is the header compilable? |
| 21609 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 21610 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 21611 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21612 | /* confdefs.h. */ |
| 21613 | _ACEOF |
| 21614 | cat confdefs.h >>conftest.$ac_ext |
| 21615 | cat >>conftest.$ac_ext <<_ACEOF |
| 21616 | /* end confdefs.h. */ |
| 21617 | $ac_includes_default |
| 21618 | #include <$ac_header> |
| 21619 | _ACEOF |
| 21620 | rm -f conftest.$ac_objext |
| 21621 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21622 | (eval $ac_compile) 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21623 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21624 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21625 | rm -f conftest.er1 |
| 21626 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21628 | (exit $ac_status); } && |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21629 | { ac_try='test -z "$ac_c_werror_flag" |
| 21630 | || test ! -s conftest.err' |
| 21631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21632 | (eval $ac_try) 2>&5 |
| 21633 | ac_status=$? |
| 21634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21635 | (exit $ac_status); }; } && |
| 21636 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21638 | (eval $ac_try) 2>&5 |
| 21639 | ac_status=$? |
| 21640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21641 | (exit $ac_status); }; }; then |
| 21642 | ac_header_compiler=yes |
| 21643 | else |
| 21644 | echo "$as_me: failed program was:" >&5 |
| 21645 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21646 | |
| 21647 | ac_header_compiler=no |
| 21648 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21649 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21650 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 21651 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 21652 | |
| 21653 | # Is the header present? |
| 21654 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 21655 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 21656 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21657 | /* confdefs.h. */ |
| 21658 | _ACEOF |
| 21659 | cat confdefs.h >>conftest.$ac_ext |
| 21660 | cat >>conftest.$ac_ext <<_ACEOF |
| 21661 | /* end confdefs.h. */ |
| 21662 | #include <$ac_header> |
| 21663 | _ACEOF |
| 21664 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 21665 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 21666 | ac_status=$? |
| 21667 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21668 | rm -f conftest.er1 |
| 21669 | cat conftest.err >&5 |
| 21670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21671 | (exit $ac_status); } >/dev/null; then |
| 21672 | if test -s conftest.err; then |
| 21673 | ac_cpp_err=$ac_c_preproc_warn_flag |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21674 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21675 | else |
| 21676 | ac_cpp_err= |
| 21677 | fi |
| 21678 | else |
| 21679 | ac_cpp_err=yes |
| 21680 | fi |
| 21681 | if test -z "$ac_cpp_err"; then |
| 21682 | ac_header_preproc=yes |
| 21683 | else |
| 21684 | echo "$as_me: failed program was:" >&5 |
| 21685 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21686 | |
| 21687 | ac_header_preproc=no |
| 21688 | fi |
| 21689 | rm -f conftest.err conftest.$ac_ext |
| 21690 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 21691 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 21692 | |
| 21693 | # So? What about this header? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21694 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 21695 | yes:no: ) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21696 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 21697 | 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] | 21698 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 21699 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 21700 | ac_header_preproc=yes |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21701 | ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21702 | no:yes:* ) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21703 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 21704 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21705 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 21706 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 21707 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 21708 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 21709 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 21710 | 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] | 21711 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 21712 | 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] | 21713 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 21714 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21715 | ( |
| 21716 | cat <<\_ASBOX |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21717 | ## ------------------------------------------ ## |
| 21718 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 21719 | ## ------------------------------------------ ## |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21720 | _ASBOX |
| 21721 | ) | |
| 21722 | sed "s/^/$as_me: WARNING: /" >&2 |
| 21723 | ;; |
| 21724 | esac |
| 21725 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 21726 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 21727 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 21728 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21729 | else |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21730 | eval "$as_ac_Header=\$ac_header_preproc" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21731 | fi |
| 21732 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 21733 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 21734 | |
| 21735 | fi |
| 21736 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 21737 | cat >>confdefs.h <<_ACEOF |
| 21738 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 21739 | _ACEOF |
| 21740 | |
| 21741 | fi |
| 21742 | |
| 21743 | done |
| 21744 | |
| 21745 | |
| 21746 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 21747 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 21748 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 21749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21750 | else |
| 21751 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 21752 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21753 | /* confdefs.h. */ |
| 21754 | _ACEOF |
| 21755 | cat confdefs.h >>conftest.$ac_ext |
| 21756 | cat >>conftest.$ac_ext <<_ACEOF |
| 21757 | /* end confdefs.h. */ |
| 21758 | #include <sys/types.h> |
| 21759 | #include <sys/param.h> |
| 21760 | |
| 21761 | int |
| 21762 | main () |
| 21763 | { |
| 21764 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 21765 | bogus endian macros |
| 21766 | #endif |
| 21767 | |
| 21768 | ; |
| 21769 | return 0; |
| 21770 | } |
| 21771 | _ACEOF |
| 21772 | rm -f conftest.$ac_objext |
| 21773 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21774 | (eval $ac_compile) 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21775 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21776 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21777 | rm -f conftest.er1 |
| 21778 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21780 | (exit $ac_status); } && |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21781 | { ac_try='test -z "$ac_c_werror_flag" |
| 21782 | || test ! -s conftest.err' |
| 21783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21784 | (eval $ac_try) 2>&5 |
| 21785 | ac_status=$? |
| 21786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21787 | (exit $ac_status); }; } && |
| 21788 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21790 | (eval $ac_try) 2>&5 |
| 21791 | ac_status=$? |
| 21792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21793 | (exit $ac_status); }; }; then |
| 21794 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 21795 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21796 | /* confdefs.h. */ |
| 21797 | _ACEOF |
| 21798 | cat confdefs.h >>conftest.$ac_ext |
| 21799 | cat >>conftest.$ac_ext <<_ACEOF |
| 21800 | /* end confdefs.h. */ |
| 21801 | #include <sys/types.h> |
| 21802 | #include <sys/param.h> |
| 21803 | |
| 21804 | int |
| 21805 | main () |
| 21806 | { |
| 21807 | #if BYTE_ORDER != BIG_ENDIAN |
| 21808 | not big endian |
| 21809 | #endif |
| 21810 | |
| 21811 | ; |
| 21812 | return 0; |
| 21813 | } |
| 21814 | _ACEOF |
| 21815 | rm -f conftest.$ac_objext |
| 21816 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21817 | (eval $ac_compile) 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21818 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21819 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21820 | rm -f conftest.er1 |
| 21821 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21823 | (exit $ac_status); } && |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21824 | { ac_try='test -z "$ac_c_werror_flag" |
| 21825 | || test ! -s conftest.err' |
| 21826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21827 | (eval $ac_try) 2>&5 |
| 21828 | ac_status=$? |
| 21829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21830 | (exit $ac_status); }; } && |
| 21831 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21833 | (eval $ac_try) 2>&5 |
| 21834 | ac_status=$? |
| 21835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21836 | (exit $ac_status); }; }; then |
| 21837 | ac_cv_c_bigendian=yes |
| 21838 | else |
| 21839 | echo "$as_me: failed program was:" >&5 |
| 21840 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21841 | |
| 21842 | ac_cv_c_bigendian=no |
| 21843 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21844 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21845 | else |
| 21846 | echo "$as_me: failed program was:" >&5 |
| 21847 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21848 | |
| 21849 | # It does not; compile a test program. |
| 21850 | if test "$cross_compiling" = yes; then |
| 21851 | # try to guess the endianness by grepping values into an object file |
| 21852 | ac_cv_c_bigendian=unknown |
| 21853 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21854 | /* confdefs.h. */ |
| 21855 | _ACEOF |
| 21856 | cat confdefs.h >>conftest.$ac_ext |
| 21857 | cat >>conftest.$ac_ext <<_ACEOF |
| 21858 | /* end confdefs.h. */ |
| 21859 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 21860 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 21861 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 21862 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 21863 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 21864 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 21865 | int |
| 21866 | main () |
| 21867 | { |
| 21868 | _ascii (); _ebcdic (); |
| 21869 | ; |
| 21870 | return 0; |
| 21871 | } |
| 21872 | _ACEOF |
| 21873 | rm -f conftest.$ac_objext |
| 21874 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21875 | (eval $ac_compile) 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21876 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21877 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21878 | rm -f conftest.er1 |
| 21879 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21881 | (exit $ac_status); } && |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21882 | { ac_try='test -z "$ac_c_werror_flag" |
| 21883 | || test ! -s conftest.err' |
| 21884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21885 | (eval $ac_try) 2>&5 |
| 21886 | ac_status=$? |
| 21887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21888 | (exit $ac_status); }; } && |
| 21889 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21891 | (eval $ac_try) 2>&5 |
| 21892 | ac_status=$? |
| 21893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21894 | (exit $ac_status); }; }; then |
| 21895 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 21896 | ac_cv_c_bigendian=yes |
| 21897 | fi |
| 21898 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 21899 | if test "$ac_cv_c_bigendian" = unknown; then |
| 21900 | ac_cv_c_bigendian=no |
| 21901 | else |
| 21902 | # finding both strings is unlikely to happen, but who knows? |
| 21903 | ac_cv_c_bigendian=unknown |
| 21904 | fi |
| 21905 | fi |
| 21906 | else |
| 21907 | echo "$as_me: failed program was:" >&5 |
| 21908 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21909 | |
| 21910 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21911 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21912 | else |
| 21913 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21914 | /* confdefs.h. */ |
| 21915 | _ACEOF |
| 21916 | cat confdefs.h >>conftest.$ac_ext |
| 21917 | cat >>conftest.$ac_ext <<_ACEOF |
| 21918 | /* end confdefs.h. */ |
| 21919 | int |
| 21920 | main () |
| 21921 | { |
| 21922 | /* Are we little or big endian? From Harbison&Steele. */ |
| 21923 | union |
| 21924 | { |
| 21925 | long l; |
| 21926 | char c[sizeof (long)]; |
| 21927 | } u; |
| 21928 | u.l = 1; |
| 21929 | exit (u.c[sizeof (long) - 1] == 1); |
| 21930 | } |
| 21931 | _ACEOF |
| 21932 | rm -f conftest$ac_exeext |
| 21933 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21934 | (eval $ac_link) 2>&5 |
| 21935 | ac_status=$? |
| 21936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21937 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 21938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21939 | (eval $ac_try) 2>&5 |
| 21940 | ac_status=$? |
| 21941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21942 | (exit $ac_status); }; }; then |
| 21943 | ac_cv_c_bigendian=no |
| 21944 | else |
| 21945 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21946 | echo "$as_me: failed program was:" >&5 |
| 21947 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21948 | |
| 21949 | ( exit $ac_status ) |
| 21950 | ac_cv_c_bigendian=yes |
| 21951 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21952 | rm -f core *.core 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] | 21953 | fi |
| 21954 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 21955 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21956 | fi |
| 21957 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 21958 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 21959 | case $ac_cv_c_bigendian in |
| 21960 | yes) |
| 21961 | |
| 21962 | cat >>confdefs.h <<\_ACEOF |
| 21963 | #define WORDS_BIGENDIAN 1 |
| 21964 | _ACEOF |
| 21965 | ;; |
| 21966 | no) |
| 21967 | ;; |
| 21968 | *) |
| 21969 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 21970 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 21971 | echo "$as_me: error: unknown endianness |
| 21972 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 21973 | { (exit 1); exit 1; }; } ;; |
| 21974 | esac |
| 21975 | |
| 21976 | echo "$as_me:$LINENO: checking for off_t" >&5 |
| 21977 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 21978 | if test "${ac_cv_type_off_t+set}" = set; then |
| 21979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21980 | else |
| 21981 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 21982 | /* confdefs.h. */ |
| 21983 | _ACEOF |
| 21984 | cat confdefs.h >>conftest.$ac_ext |
| 21985 | cat >>conftest.$ac_ext <<_ACEOF |
| 21986 | /* end confdefs.h. */ |
| 21987 | $ac_includes_default |
| 21988 | int |
| 21989 | main () |
| 21990 | { |
| 21991 | if ((off_t *) 0) |
| 21992 | return 0; |
| 21993 | if (sizeof (off_t)) |
| 21994 | return 0; |
| 21995 | ; |
| 21996 | return 0; |
| 21997 | } |
| 21998 | _ACEOF |
| 21999 | rm -f conftest.$ac_objext |
| 22000 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22001 | (eval $ac_compile) 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22002 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22003 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22004 | rm -f conftest.er1 |
| 22005 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22007 | (exit $ac_status); } && |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22008 | { ac_try='test -z "$ac_c_werror_flag" |
| 22009 | || test ! -s conftest.err' |
| 22010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22011 | (eval $ac_try) 2>&5 |
| 22012 | ac_status=$? |
| 22013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22014 | (exit $ac_status); }; } && |
| 22015 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22017 | (eval $ac_try) 2>&5 |
| 22018 | ac_status=$? |
| 22019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22020 | (exit $ac_status); }; }; then |
| 22021 | ac_cv_type_off_t=yes |
| 22022 | else |
| 22023 | echo "$as_me: failed program was:" >&5 |
| 22024 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22025 | |
| 22026 | ac_cv_type_off_t=no |
| 22027 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22028 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22029 | fi |
| 22030 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 22031 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 22032 | if test $ac_cv_type_off_t = yes; then |
| 22033 | : |
| 22034 | else |
| 22035 | |
| 22036 | cat >>confdefs.h <<_ACEOF |
| 22037 | #define off_t long |
| 22038 | _ACEOF |
| 22039 | |
| 22040 | fi |
| 22041 | |
| 22042 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 22043 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 22044 | if test "${ac_cv_type_size_t+set}" = set; then |
| 22045 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22046 | else |
| 22047 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22048 | /* confdefs.h. */ |
| 22049 | _ACEOF |
| 22050 | cat confdefs.h >>conftest.$ac_ext |
| 22051 | cat >>conftest.$ac_ext <<_ACEOF |
| 22052 | /* end confdefs.h. */ |
| 22053 | $ac_includes_default |
| 22054 | int |
| 22055 | main () |
| 22056 | { |
| 22057 | if ((size_t *) 0) |
| 22058 | return 0; |
| 22059 | if (sizeof (size_t)) |
| 22060 | return 0; |
| 22061 | ; |
| 22062 | return 0; |
| 22063 | } |
| 22064 | _ACEOF |
| 22065 | rm -f conftest.$ac_objext |
| 22066 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22067 | (eval $ac_compile) 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22068 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22069 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22070 | rm -f conftest.er1 |
| 22071 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22073 | (exit $ac_status); } && |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22074 | { ac_try='test -z "$ac_c_werror_flag" |
| 22075 | || test ! -s conftest.err' |
| 22076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22077 | (eval $ac_try) 2>&5 |
| 22078 | ac_status=$? |
| 22079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22080 | (exit $ac_status); }; } && |
| 22081 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22083 | (eval $ac_try) 2>&5 |
| 22084 | ac_status=$? |
| 22085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22086 | (exit $ac_status); }; }; then |
| 22087 | ac_cv_type_size_t=yes |
| 22088 | else |
| 22089 | echo "$as_me: failed program was:" >&5 |
| 22090 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22091 | |
| 22092 | ac_cv_type_size_t=no |
| 22093 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22094 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22095 | fi |
| 22096 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 22097 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 22098 | if test $ac_cv_type_size_t = yes; then |
| 22099 | : |
| 22100 | else |
| 22101 | |
| 22102 | cat >>confdefs.h <<_ACEOF |
| 22103 | #define size_t unsigned |
| 22104 | _ACEOF |
| 22105 | |
| 22106 | fi |
| 22107 | |
| 22108 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 22109 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 22110 | if test "${ac_cv_struct_tm+set}" = set; then |
| 22111 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22112 | else |
| 22113 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22114 | /* confdefs.h. */ |
| 22115 | _ACEOF |
| 22116 | cat confdefs.h >>conftest.$ac_ext |
| 22117 | cat >>conftest.$ac_ext <<_ACEOF |
| 22118 | /* end confdefs.h. */ |
| 22119 | #include <sys/types.h> |
| 22120 | #include <time.h> |
| 22121 | |
| 22122 | int |
| 22123 | main () |
| 22124 | { |
| 22125 | struct tm *tp; tp->tm_sec; |
| 22126 | ; |
| 22127 | return 0; |
| 22128 | } |
| 22129 | _ACEOF |
| 22130 | rm -f conftest.$ac_objext |
| 22131 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22132 | (eval $ac_compile) 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22133 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22134 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22135 | rm -f conftest.er1 |
| 22136 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22138 | (exit $ac_status); } && |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22139 | { ac_try='test -z "$ac_c_werror_flag" |
| 22140 | || test ! -s conftest.err' |
| 22141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22142 | (eval $ac_try) 2>&5 |
| 22143 | ac_status=$? |
| 22144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22145 | (exit $ac_status); }; } && |
| 22146 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22148 | (eval $ac_try) 2>&5 |
| 22149 | ac_status=$? |
| 22150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22151 | (exit $ac_status); }; }; then |
| 22152 | ac_cv_struct_tm=time.h |
| 22153 | else |
| 22154 | echo "$as_me: failed program was:" >&5 |
| 22155 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22156 | |
| 22157 | ac_cv_struct_tm=sys/time.h |
| 22158 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22159 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22160 | fi |
| 22161 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 22162 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
| 22163 | if test $ac_cv_struct_tm = sys/time.h; then |
| 22164 | |
| 22165 | cat >>confdefs.h <<\_ACEOF |
| 22166 | #define TM_IN_SYS_TIME 1 |
| 22167 | _ACEOF |
| 22168 | |
| 22169 | fi |
| 22170 | |
| 22171 | echo "$as_me:$LINENO: checking for intmax_t" >&5 |
| 22172 | echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6 |
| 22173 | if test "${ac_cv_type_intmax_t+set}" = set; then |
| 22174 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22175 | else |
| 22176 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22177 | /* confdefs.h. */ |
| 22178 | _ACEOF |
| 22179 | cat confdefs.h >>conftest.$ac_ext |
| 22180 | cat >>conftest.$ac_ext <<_ACEOF |
| 22181 | /* end confdefs.h. */ |
| 22182 | $ac_includes_default |
| 22183 | int |
| 22184 | main () |
| 22185 | { |
| 22186 | if ((intmax_t *) 0) |
| 22187 | return 0; |
| 22188 | if (sizeof (intmax_t)) |
| 22189 | return 0; |
| 22190 | ; |
| 22191 | return 0; |
| 22192 | } |
| 22193 | _ACEOF |
| 22194 | rm -f conftest.$ac_objext |
| 22195 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22196 | (eval $ac_compile) 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22197 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22198 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22199 | rm -f conftest.er1 |
| 22200 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22202 | (exit $ac_status); } && |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22203 | { ac_try='test -z "$ac_c_werror_flag" |
| 22204 | || test ! -s conftest.err' |
| 22205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22206 | (eval $ac_try) 2>&5 |
| 22207 | ac_status=$? |
| 22208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22209 | (exit $ac_status); }; } && |
| 22210 | { ac_try='test -s conftest.$ac_objext' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22212 | (eval $ac_try) 2>&5 |
| 22213 | ac_status=$? |
| 22214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22215 | (exit $ac_status); }; }; then |
| 22216 | ac_cv_type_intmax_t=yes |
| 22217 | else |
| 22218 | echo "$as_me: failed program was:" >&5 |
| 22219 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22220 | |
| 22221 | ac_cv_type_intmax_t=no |
| 22222 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22223 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22224 | fi |
| 22225 | echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5 |
| 22226 | echo "${ECHO_T}$ac_cv_type_intmax_t" >&6 |
| 22227 | if test $ac_cv_type_intmax_t = yes; then |
| 22228 | : |
| 22229 | else |
| 22230 | |
| 22231 | cat >>confdefs.h <<_ACEOF |
| 22232 | #define intmax_t int64_t |
| 22233 | _ACEOF |
| 22234 | |
| 22235 | fi |
| 22236 | |
| 22237 | |
| 22238 | |
| 22239 | |
| 22240 | for ac_func in strtoimax strtoll |
| 22241 | do |
| 22242 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 22243 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 22244 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 22245 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 22246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22247 | else |
| 22248 | cat >conftest.$ac_ext <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22249 | /* confdefs.h. */ |
| 22250 | _ACEOF |
| 22251 | cat confdefs.h >>conftest.$ac_ext |
| 22252 | cat >>conftest.$ac_ext <<_ACEOF |
| 22253 | /* end confdefs.h. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22254 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 22255 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 22256 | #define $ac_func innocuous_$ac_func |
| 22257 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22258 | /* System header to define __stub macros and hopefully few prototypes, |
| 22259 | which can conflict with char $ac_func (); below. |
| 22260 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 22261 | <limits.h> exists even on freestanding compilers. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22262 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22263 | #ifdef __STDC__ |
| 22264 | # include <limits.h> |
| 22265 | #else |
| 22266 | # include <assert.h> |
| 22267 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22268 | |
| 22269 | #undef $ac_func |
| 22270 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22271 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 22272 | #ifdef __cplusplus |
| 22273 | extern "C" |
| 22274 | { |
| 22275 | #endif |
| 22276 | /* We use char because int might match the return type of a gcc2 |
| 22277 | builtin and then its argument prototype would still apply. */ |
| 22278 | char $ac_func (); |
| 22279 | /* The GNU C library defines this for functions which it implements |
| 22280 | to always fail with ENOSYS. Some functions are actually named |
| 22281 | something starting with __ and the normal name is an alias. */ |
| 22282 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 22283 | choke me |
| 22284 | #else |
| 22285 | char (*f) () = $ac_func; |
| 22286 | #endif |
| 22287 | #ifdef __cplusplus |
| 22288 | } |
| 22289 | #endif |
| 22290 | |
| 22291 | int |
| 22292 | main () |
| 22293 | { |
| 22294 | return f != $ac_func; |
| 22295 | ; |
| 22296 | return 0; |
| 22297 | } |
| 22298 | _ACEOF |
| 22299 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 22300 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22301 | (eval $ac_link) 2>conftest.er1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22302 | ac_status=$? |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22303 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22304 | rm -f conftest.er1 |
| 22305 | cat conftest.err >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22307 | (exit $ac_status); } && |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22308 | { ac_try='test -z "$ac_c_werror_flag" |
| 22309 | || test ! -s conftest.err' |
| 22310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22311 | (eval $ac_try) 2>&5 |
| 22312 | ac_status=$? |
| 22313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22314 | (exit $ac_status); }; } && |
| 22315 | { ac_try='test -s conftest$ac_exeext' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22317 | (eval $ac_try) 2>&5 |
| 22318 | ac_status=$? |
| 22319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22320 | (exit $ac_status); }; }; then |
| 22321 | eval "$as_ac_var=yes" |
| 22322 | else |
| 22323 | echo "$as_me: failed program was:" >&5 |
| 22324 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22325 | |
| 22326 | eval "$as_ac_var=no" |
| 22327 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22328 | rm -f conftest.err conftest.$ac_objext \ |
| 22329 | conftest$ac_exeext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22330 | fi |
| 22331 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 22332 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 22333 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 22334 | cat >>confdefs.h <<_ACEOF |
| 22335 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 22336 | _ACEOF |
| 22337 | |
| 22338 | fi |
| 22339 | done |
| 22340 | |
| 22341 | |
Lev Walkin | 49b0a3e | 2004-06-28 21:22:35 +0000 | [diff] [blame] | 22342 | for ac_func in mergesort |
| 22343 | do |
| 22344 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 22345 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 22346 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 22347 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 22348 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22349 | else |
| 22350 | cat >conftest.$ac_ext <<_ACEOF |
| 22351 | /* confdefs.h. */ |
| 22352 | _ACEOF |
| 22353 | cat confdefs.h >>conftest.$ac_ext |
| 22354 | cat >>conftest.$ac_ext <<_ACEOF |
| 22355 | /* end confdefs.h. */ |
| 22356 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 22357 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 22358 | #define $ac_func innocuous_$ac_func |
| 22359 | |
| 22360 | /* System header to define __stub macros and hopefully few prototypes, |
| 22361 | which can conflict with char $ac_func (); below. |
| 22362 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 22363 | <limits.h> exists even on freestanding compilers. */ |
| 22364 | |
| 22365 | #ifdef __STDC__ |
| 22366 | # include <limits.h> |
| 22367 | #else |
| 22368 | # include <assert.h> |
| 22369 | #endif |
| 22370 | |
| 22371 | #undef $ac_func |
| 22372 | |
| 22373 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 22374 | #ifdef __cplusplus |
| 22375 | extern "C" |
| 22376 | { |
| 22377 | #endif |
| 22378 | /* We use char because int might match the return type of a gcc2 |
| 22379 | builtin and then its argument prototype would still apply. */ |
| 22380 | char $ac_func (); |
| 22381 | /* The GNU C library defines this for functions which it implements |
| 22382 | to always fail with ENOSYS. Some functions are actually named |
| 22383 | something starting with __ and the normal name is an alias. */ |
| 22384 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 22385 | choke me |
| 22386 | #else |
| 22387 | char (*f) () = $ac_func; |
| 22388 | #endif |
| 22389 | #ifdef __cplusplus |
| 22390 | } |
| 22391 | #endif |
| 22392 | |
| 22393 | int |
| 22394 | main () |
| 22395 | { |
| 22396 | return f != $ac_func; |
| 22397 | ; |
| 22398 | return 0; |
| 22399 | } |
| 22400 | _ACEOF |
| 22401 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 22402 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 22403 | (eval $ac_link) 2>conftest.er1 |
| 22404 | ac_status=$? |
| 22405 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22406 | rm -f conftest.er1 |
| 22407 | cat conftest.err >&5 |
| 22408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22409 | (exit $ac_status); } && |
| 22410 | { ac_try='test -z "$ac_c_werror_flag" |
| 22411 | || test ! -s conftest.err' |
| 22412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22413 | (eval $ac_try) 2>&5 |
| 22414 | ac_status=$? |
| 22415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22416 | (exit $ac_status); }; } && |
| 22417 | { ac_try='test -s conftest$ac_exeext' |
| 22418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 22419 | (eval $ac_try) 2>&5 |
| 22420 | ac_status=$? |
| 22421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22422 | (exit $ac_status); }; }; then |
| 22423 | eval "$as_ac_var=yes" |
| 22424 | else |
| 22425 | echo "$as_me: failed program was:" >&5 |
| 22426 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22427 | |
| 22428 | eval "$as_ac_var=no" |
| 22429 | fi |
| 22430 | rm -f conftest.err conftest.$ac_objext \ |
| 22431 | conftest$ac_exeext conftest.$ac_ext |
| 22432 | fi |
| 22433 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 22434 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 22435 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 22436 | cat >>confdefs.h <<_ACEOF |
| 22437 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 22438 | _ACEOF |
| 22439 | |
| 22440 | fi |
| 22441 | done |
| 22442 | |
| 22443 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22444 | ac_config_headers="$ac_config_headers config.h" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22445 | |
| 22446 | |
Lev Walkin | 33cded1 | 2004-09-19 19:40:52 +0000 | [diff] [blame] | 22447 | ac_config_files="$ac_config_files 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" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22448 | cat >confcache <<\_ACEOF |
| 22449 | # This file is a shell script that caches the results of configure |
| 22450 | # tests run on this system so they can be shared between configure |
| 22451 | # scripts and configure runs, see configure's option --config-cache. |
| 22452 | # It is not useful on other systems. If it contains results you don't |
| 22453 | # want to keep, you may remove or edit it. |
| 22454 | # |
| 22455 | # config.status only pays attention to the cache file if you give it |
| 22456 | # the --recheck option to rerun configure. |
| 22457 | # |
| 22458 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 22459 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 22460 | # following values. |
| 22461 | |
| 22462 | _ACEOF |
| 22463 | |
| 22464 | # The following way of writing the cache mishandles newlines in values, |
| 22465 | # but we know of no workaround that is simple, portable, and efficient. |
| 22466 | # So, don't put newlines in cache variables' values. |
| 22467 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 22468 | # and sets the high bit in the cache file unless we assign to the vars. |
| 22469 | { |
| 22470 | (set) 2>&1 | |
| 22471 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 22472 | *ac_space=\ *) |
| 22473 | # `set' does not quote correctly, so add quotes (double-quote |
| 22474 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 22475 | sed -n \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22476 | "s/'/'\\\\''/g; |
| 22477 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22478 | ;; |
| 22479 | *) |
| 22480 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 22481 | sed -n \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22482 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22483 | ;; |
| 22484 | esac; |
| 22485 | } | |
| 22486 | sed ' |
| 22487 | t clear |
| 22488 | : clear |
| 22489 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 22490 | t end |
| 22491 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 22492 | : end' >>confcache |
| 22493 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
| 22494 | if test -w $cache_file; then |
| 22495 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 22496 | cat confcache >$cache_file |
| 22497 | else |
| 22498 | echo "not updating unwritable cache $cache_file" |
| 22499 | fi |
| 22500 | fi |
| 22501 | rm -f confcache |
| 22502 | |
| 22503 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 22504 | # Let make expand exec_prefix. |
| 22505 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 22506 | |
| 22507 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 22508 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 22509 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 22510 | # (actually we leave an empty line to preserve line numbers). |
| 22511 | if test "x$srcdir" = x.; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22512 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22513 | s/:*\$(srcdir):*/:/; |
| 22514 | s/:*\${srcdir}:*/:/; |
| 22515 | s/:*@srcdir@:*/:/; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22516 | s/^\([^=]*=[ ]*\):*/\1/; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22517 | s/:*$//; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22518 | s/^[^=]*=[ ]*$//; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22519 | }' |
| 22520 | fi |
| 22521 | |
| 22522 | DEFS=-DHAVE_CONFIG_H |
| 22523 | |
| 22524 | ac_libobjs= |
| 22525 | ac_ltlibobjs= |
| 22526 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 22527 | # 1. Remove the extension, and $U if already installed. |
| 22528 | ac_i=`echo "$ac_i" | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22529 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22530 | # 2. Add them. |
| 22531 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 22532 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 22533 | done |
| 22534 | LIBOBJS=$ac_libobjs |
| 22535 | |
| 22536 | LTLIBOBJS=$ac_ltlibobjs |
| 22537 | |
| 22538 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22539 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
| 22540 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. |
| 22541 | Usually this means the macro was only invoked conditionally." >&5 |
| 22542 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. |
| 22543 | Usually this means the macro was only invoked conditionally." >&2;} |
| 22544 | { (exit 1); exit 1; }; } |
| 22545 | fi |
| 22546 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 22547 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
| 22548 | Usually this means the macro was only invoked conditionally." >&5 |
| 22549 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
| 22550 | Usually this means the macro was only invoked conditionally." >&2;} |
| 22551 | { (exit 1); exit 1; }; } |
| 22552 | fi |
| 22553 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 22554 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
| 22555 | Usually this means the macro was only invoked conditionally." >&5 |
| 22556 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
| 22557 | Usually this means the macro was only invoked conditionally." >&2;} |
| 22558 | { (exit 1); exit 1; }; } |
| 22559 | fi |
| 22560 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
| 22561 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
| 22562 | Usually this means the macro was only invoked conditionally." >&5 |
| 22563 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
| 22564 | Usually this means the macro was only invoked conditionally." >&2;} |
| 22565 | { (exit 1); exit 1; }; } |
| 22566 | fi |
| 22567 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 22568 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
| 22569 | Usually this means the macro was only invoked conditionally." >&5 |
| 22570 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
| 22571 | Usually this means the macro was only invoked conditionally." >&2;} |
| 22572 | { (exit 1); exit 1; }; } |
| 22573 | fi |
Lev Walkin | d8b940c | 2004-08-11 05:35:51 +0000 | [diff] [blame] | 22574 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
| 22575 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
| 22576 | Usually this means the macro was only invoked conditionally." >&5 |
| 22577 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
| 22578 | Usually this means the macro was only invoked conditionally." >&2;} |
| 22579 | { (exit 1); exit 1; }; } |
| 22580 | fi |
| 22581 | if test -z "${CPLUSPLUS_FOUND_TRUE}" && test -z "${CPLUSPLUS_FOUND_FALSE}"; then |
| 22582 | { { echo "$as_me:$LINENO: error: conditional \"CPLUSPLUS_FOUND\" was never defined. |
| 22583 | Usually this means the macro was only invoked conditionally." >&5 |
| 22584 | echo "$as_me: error: conditional \"CPLUSPLUS_FOUND\" was never defined. |
| 22585 | Usually this means the macro was only invoked conditionally." >&2;} |
| 22586 | { (exit 1); exit 1; }; } |
| 22587 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22588 | |
| 22589 | : ${CONFIG_STATUS=./config.status} |
| 22590 | ac_clean_files_save=$ac_clean_files |
| 22591 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 22592 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 22593 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 22594 | cat >$CONFIG_STATUS <<_ACEOF |
| 22595 | #! $SHELL |
| 22596 | # Generated by $as_me. |
| 22597 | # Run this file to recreate the current configuration. |
| 22598 | # Compiler output produced by configure, useful for debugging |
| 22599 | # configure, is in config.log if it exists. |
| 22600 | |
| 22601 | debug=false |
| 22602 | ac_cs_recheck=false |
| 22603 | ac_cs_silent=false |
| 22604 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 22605 | _ACEOF |
| 22606 | |
| 22607 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 22608 | ## --------------------- ## |
| 22609 | ## M4sh Initialization. ## |
| 22610 | ## --------------------- ## |
| 22611 | |
| 22612 | # Be Bourne compatible |
| 22613 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 22614 | emulate sh |
| 22615 | NULLCMD=: |
| 22616 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 22617 | # is contrary to our usage. Disable this feature. |
| 22618 | alias -g '${1+"$@"}'='"$@"' |
| 22619 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 22620 | set -o posix |
| 22621 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22622 | DUALCASE=1; export DUALCASE # for MKS sh |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22623 | |
| 22624 | # Support unset when possible. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22625 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22626 | as_unset=unset |
| 22627 | else |
| 22628 | as_unset=false |
| 22629 | fi |
| 22630 | |
| 22631 | |
| 22632 | # Work around bugs in pre-3.0 UWIN ksh. |
| 22633 | $as_unset ENV MAIL MAILPATH |
| 22634 | PS1='$ ' |
| 22635 | PS2='> ' |
| 22636 | PS4='+ ' |
| 22637 | |
| 22638 | # NLS nuisances. |
| 22639 | for as_var in \ |
| 22640 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 22641 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 22642 | LC_TELEPHONE LC_TIME |
| 22643 | do |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22644 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22645 | eval $as_var=C; export $as_var |
| 22646 | else |
| 22647 | $as_unset $as_var |
| 22648 | fi |
| 22649 | done |
| 22650 | |
| 22651 | # Required to use basename. |
| 22652 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 22653 | as_expr=expr |
| 22654 | else |
| 22655 | as_expr=false |
| 22656 | fi |
| 22657 | |
| 22658 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 22659 | as_basename=basename |
| 22660 | else |
| 22661 | as_basename=false |
| 22662 | fi |
| 22663 | |
| 22664 | |
| 22665 | # Name of the executable. |
| 22666 | as_me=`$as_basename "$0" || |
| 22667 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 22668 | X"$0" : 'X\(//\)$' \| \ |
| 22669 | X"$0" : 'X\(/\)$' \| \ |
| 22670 | . : '\(.\)' 2>/dev/null || |
| 22671 | echo X/"$0" | |
| 22672 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 22673 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 22674 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 22675 | s/.*/./; q'` |
| 22676 | |
| 22677 | |
| 22678 | # PATH needs CR, and LINENO needs CR and PATH. |
| 22679 | # Avoid depending upon Character Ranges. |
| 22680 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 22681 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 22682 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 22683 | as_cr_digits='0123456789' |
| 22684 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 22685 | |
| 22686 | # The user is always right. |
| 22687 | if test "${PATH_SEPARATOR+set}" != set; then |
| 22688 | echo "#! /bin/sh" >conf$$.sh |
| 22689 | echo "exit 0" >>conf$$.sh |
| 22690 | chmod +x conf$$.sh |
| 22691 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 22692 | PATH_SEPARATOR=';' |
| 22693 | else |
| 22694 | PATH_SEPARATOR=: |
| 22695 | fi |
| 22696 | rm -f conf$$.sh |
| 22697 | fi |
| 22698 | |
| 22699 | |
| 22700 | as_lineno_1=$LINENO |
| 22701 | as_lineno_2=$LINENO |
| 22702 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 22703 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 22704 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 22705 | # Find who we are. Look in the path if we contain no path at all |
| 22706 | # relative or not. |
| 22707 | case $0 in |
| 22708 | *[\\/]* ) as_myself=$0 ;; |
| 22709 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 22710 | for as_dir in $PATH |
| 22711 | do |
| 22712 | IFS=$as_save_IFS |
| 22713 | test -z "$as_dir" && as_dir=. |
| 22714 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 22715 | done |
| 22716 | |
| 22717 | ;; |
| 22718 | esac |
| 22719 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 22720 | # in which case we are not to be found in the path. |
| 22721 | if test "x$as_myself" = x; then |
| 22722 | as_myself=$0 |
| 22723 | fi |
| 22724 | if test ! -f "$as_myself"; then |
| 22725 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 22726 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 22727 | { (exit 1); exit 1; }; } |
| 22728 | fi |
| 22729 | case $CONFIG_SHELL in |
| 22730 | '') |
| 22731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 22732 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 22733 | do |
| 22734 | IFS=$as_save_IFS |
| 22735 | test -z "$as_dir" && as_dir=. |
| 22736 | for as_base in sh bash ksh sh5; do |
| 22737 | case $as_dir in |
| 22738 | /*) |
| 22739 | if ("$as_dir/$as_base" -c ' |
| 22740 | as_lineno_1=$LINENO |
| 22741 | as_lineno_2=$LINENO |
| 22742 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 22743 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 22744 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 22745 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 22746 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 22747 | CONFIG_SHELL=$as_dir/$as_base |
| 22748 | export CONFIG_SHELL |
| 22749 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 22750 | fi;; |
| 22751 | esac |
| 22752 | done |
| 22753 | done |
| 22754 | ;; |
| 22755 | esac |
| 22756 | |
| 22757 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 22758 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 22759 | # line-number line before each line; the second 'sed' does the real |
| 22760 | # work. The second script uses 'N' to pair each line-number line |
| 22761 | # with the numbered line, and appends trailing '-' during |
| 22762 | # substitution so that $LINENO is not a special case at line end. |
| 22763 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 22764 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 22765 | sed '=' <$as_myself | |
| 22766 | sed ' |
| 22767 | N |
| 22768 | s,$,-, |
| 22769 | : loop |
| 22770 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 22771 | t loop |
| 22772 | s,-$,, |
| 22773 | s,^['$as_cr_digits']*\n,, |
| 22774 | ' >$as_me.lineno && |
| 22775 | chmod +x $as_me.lineno || |
| 22776 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 22777 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 22778 | { (exit 1); exit 1; }; } |
| 22779 | |
| 22780 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 22781 | # (the dirname of $[0] is not the place where we might find the |
| 22782 | # original and so on. Autoconf is especially sensible to this). |
| 22783 | . ./$as_me.lineno |
| 22784 | # Exit status is that of the last command. |
| 22785 | exit |
| 22786 | } |
| 22787 | |
| 22788 | |
| 22789 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 22790 | *c*,-n*) ECHO_N= ECHO_C=' |
| 22791 | ' ECHO_T=' ' ;; |
| 22792 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 22793 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 22794 | esac |
| 22795 | |
| 22796 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 22797 | as_expr=expr |
| 22798 | else |
| 22799 | as_expr=false |
| 22800 | fi |
| 22801 | |
| 22802 | rm -f conf$$ conf$$.exe conf$$.file |
| 22803 | echo >conf$$.file |
| 22804 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 22805 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 22806 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 22807 | if test -f conf$$.exe; then |
| 22808 | # Don't use ln at all; we don't have any links |
| 22809 | as_ln_s='cp -p' |
| 22810 | else |
| 22811 | as_ln_s='ln -s' |
| 22812 | fi |
| 22813 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 22814 | as_ln_s=ln |
| 22815 | else |
| 22816 | as_ln_s='cp -p' |
| 22817 | fi |
| 22818 | rm -f conf$$ conf$$.exe conf$$.file |
| 22819 | |
| 22820 | if mkdir -p . 2>/dev/null; then |
| 22821 | as_mkdir_p=: |
| 22822 | else |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22823 | test -d ./-p && rmdir ./-p |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22824 | as_mkdir_p=false |
| 22825 | fi |
| 22826 | |
| 22827 | as_executable_p="test -f" |
| 22828 | |
| 22829 | # Sed expression to map a string onto a valid CPP name. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22830 | 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] | 22831 | |
| 22832 | # Sed expression to map a string onto a valid variable name. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22833 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22834 | |
| 22835 | |
| 22836 | # IFS |
| 22837 | # We need space, tab and new line, in precisely that order. |
| 22838 | as_nl=' |
| 22839 | ' |
| 22840 | IFS=" $as_nl" |
| 22841 | |
| 22842 | # CDPATH. |
| 22843 | $as_unset CDPATH |
| 22844 | |
| 22845 | exec 6>&1 |
| 22846 | |
| 22847 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 22848 | # report actual input values of CONFIG_FILES etc. instead of their |
| 22849 | # values after options handling. Logging --version etc. is OK. |
| 22850 | exec 5>>config.log |
| 22851 | { |
| 22852 | echo |
| 22853 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 22854 | ## Running $as_me. ## |
| 22855 | _ASBOX |
| 22856 | } >&5 |
| 22857 | cat >&5 <<_CSEOF |
| 22858 | |
| 22859 | This file was extended by $as_me, which was |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22860 | generated by GNU Autoconf 2.59. Invocation command line was |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22861 | |
| 22862 | CONFIG_FILES = $CONFIG_FILES |
| 22863 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 22864 | CONFIG_LINKS = $CONFIG_LINKS |
| 22865 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 22866 | $ $0 $@ |
| 22867 | |
| 22868 | _CSEOF |
| 22869 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 22870 | echo >&5 |
| 22871 | _ACEOF |
| 22872 | |
| 22873 | # Files that config.status was made for. |
| 22874 | if test -n "$ac_config_files"; then |
| 22875 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 22876 | fi |
| 22877 | |
| 22878 | if test -n "$ac_config_headers"; then |
| 22879 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 22880 | fi |
| 22881 | |
| 22882 | if test -n "$ac_config_links"; then |
| 22883 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 22884 | fi |
| 22885 | |
| 22886 | if test -n "$ac_config_commands"; then |
| 22887 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 22888 | fi |
| 22889 | |
| 22890 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 22891 | |
| 22892 | ac_cs_usage="\ |
| 22893 | \`$as_me' instantiates files from templates according to the |
| 22894 | current configuration. |
| 22895 | |
| 22896 | Usage: $0 [OPTIONS] [FILE]... |
| 22897 | |
| 22898 | -h, --help print this help, then exit |
| 22899 | -V, --version print version number, then exit |
| 22900 | -q, --quiet do not print progress messages |
| 22901 | -d, --debug don't remove temporary files |
| 22902 | --recheck update $as_me by reconfiguring in the same conditions |
| 22903 | --file=FILE[:TEMPLATE] |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22904 | instantiate the configuration file FILE |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22905 | --header=FILE[:TEMPLATE] |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22906 | instantiate the configuration header FILE |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22907 | |
| 22908 | Configuration files: |
| 22909 | $config_files |
| 22910 | |
| 22911 | Configuration headers: |
| 22912 | $config_headers |
| 22913 | |
| 22914 | Configuration commands: |
| 22915 | $config_commands |
| 22916 | |
| 22917 | Report bugs to <bug-autoconf@gnu.org>." |
| 22918 | _ACEOF |
| 22919 | |
| 22920 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22921 | ac_cs_version="\\ |
| 22922 | config.status |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22923 | configured by $0, generated by GNU Autoconf 2.59, |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22924 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 22925 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 22926 | Copyright (C) 2003 Free Software Foundation, Inc. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 22927 | This config.status script is free software; the Free Software Foundation |
| 22928 | gives unlimited permission to copy, distribute and modify it." |
| 22929 | srcdir=$srcdir |
| 22930 | INSTALL="$INSTALL" |
| 22931 | _ACEOF |
| 22932 | |
| 22933 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 22934 | # If no file are specified by the user, then we need to provide default |
| 22935 | # value. By we need to know if files were specified by the user. |
| 22936 | ac_need_defaults=: |
| 22937 | while test $# != 0 |
| 22938 | do |
| 22939 | case $1 in |
| 22940 | --*=*) |
| 22941 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 22942 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 22943 | ac_shift=: |
| 22944 | ;; |
| 22945 | -*) |
| 22946 | ac_option=$1 |
| 22947 | ac_optarg=$2 |
| 22948 | ac_shift=shift |
| 22949 | ;; |
| 22950 | *) # This is not an option, so the user has probably given explicit |
| 22951 | # arguments. |
| 22952 | ac_option=$1 |
| 22953 | ac_need_defaults=false;; |
| 22954 | esac |
| 22955 | |
| 22956 | case $ac_option in |
| 22957 | # Handling of the options. |
| 22958 | _ACEOF |
| 22959 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 22960 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 22961 | ac_cs_recheck=: ;; |
| 22962 | --version | --vers* | -V ) |
| 22963 | echo "$ac_cs_version"; exit 0 ;; |
| 22964 | --he | --h) |
| 22965 | # Conflict between --help and --header |
| 22966 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 22967 | Try \`$0 --help' for more information." >&5 |
| 22968 | echo "$as_me: error: ambiguous option: $1 |
| 22969 | Try \`$0 --help' for more information." >&2;} |
| 22970 | { (exit 1); exit 1; }; };; |
| 22971 | --help | --hel | -h ) |
| 22972 | echo "$ac_cs_usage"; exit 0 ;; |
| 22973 | --debug | --d* | -d ) |
| 22974 | debug=: ;; |
| 22975 | --file | --fil | --fi | --f ) |
| 22976 | $ac_shift |
| 22977 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 22978 | ac_need_defaults=false;; |
| 22979 | --header | --heade | --head | --hea ) |
| 22980 | $ac_shift |
| 22981 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
| 22982 | ac_need_defaults=false;; |
| 22983 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 22984 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 22985 | ac_cs_silent=: ;; |
| 22986 | |
| 22987 | # This is an error. |
| 22988 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 22989 | Try \`$0 --help' for more information." >&5 |
| 22990 | echo "$as_me: error: unrecognized option: $1 |
| 22991 | Try \`$0 --help' for more information." >&2;} |
| 22992 | { (exit 1); exit 1; }; } ;; |
| 22993 | |
| 22994 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 22995 | |
| 22996 | esac |
| 22997 | shift |
| 22998 | done |
| 22999 | |
| 23000 | ac_configure_extra_args= |
| 23001 | |
| 23002 | if $ac_cs_silent; then |
| 23003 | exec 6>/dev/null |
| 23004 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 23005 | fi |
| 23006 | |
| 23007 | _ACEOF |
| 23008 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23009 | if \$ac_cs_recheck; then |
| 23010 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 23011 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 23012 | fi |
| 23013 | |
| 23014 | _ACEOF |
| 23015 | |
| 23016 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23017 | # |
| 23018 | # INIT-COMMANDS section. |
| 23019 | # |
| 23020 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23021 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23022 | |
| 23023 | _ACEOF |
| 23024 | |
| 23025 | |
| 23026 | |
| 23027 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23028 | for ac_config_target in $ac_config_targets |
| 23029 | do |
| 23030 | case "$ac_config_target" in |
| 23031 | # Handling of arguments. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23032 | "skeletons/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES skeletons/tests/Makefile" ;; |
Lev Walkin | 1f4da6c | 2004-09-07 06:31:41 +0000 | [diff] [blame] | 23033 | "libasn1compiler/Makefile" ) CONFIG_FILES="$CONFIG_FILES libasn1compiler/Makefile" ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23034 | "libasn1parser/Makefile" ) CONFIG_FILES="$CONFIG_FILES libasn1parser/Makefile" ;; |
| 23035 | "libasn1print/Makefile" ) CONFIG_FILES="$CONFIG_FILES libasn1print/Makefile" ;; |
Lev Walkin | 33cded1 | 2004-09-19 19:40:52 +0000 | [diff] [blame] | 23036 | "asn1c/webcgi/Makefile" ) CONFIG_FILES="$CONFIG_FILES asn1c/webcgi/Makefile" ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23037 | "asn1c/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES asn1c/tests/Makefile" ;; |
| 23038 | "libasn1fix/Makefile" ) CONFIG_FILES="$CONFIG_FILES libasn1fix/Makefile" ;; |
| 23039 | "skeletons/Makefile" ) CONFIG_FILES="$CONFIG_FILES skeletons/Makefile" ;; |
| 23040 | "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; |
| 23041 | "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; |
| 23042 | "asn1c/Makefile" ) CONFIG_FILES="$CONFIG_FILES asn1c/Makefile" ;; |
| 23043 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
Lev Walkin | 33cded1 | 2004-09-19 19:40:52 +0000 | [diff] [blame] | 23044 | "asn1c.spec" ) CONFIG_FILES="$CONFIG_FILES asn1c.spec" ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23045 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23046 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23047 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
| 23048 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 23049 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 23050 | { (exit 1); exit 1; }; };; |
| 23051 | esac |
| 23052 | done |
| 23053 | |
| 23054 | # If the user did not use the arguments to specify the items to instantiate, |
| 23055 | # then the envvar interface is used. Set only those that are not. |
| 23056 | # We use the long form for the default assignment because of an extremely |
| 23057 | # bizarre bug on SunOS 4.1.3. |
| 23058 | if $ac_need_defaults; then |
| 23059 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 23060 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 23061 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 23062 | fi |
| 23063 | |
| 23064 | # Have a temporary directory for convenience. Make it in the build tree |
| 23065 | # simply because there is no reason to put it here, and in addition, |
| 23066 | # creating and moving files from /tmp can sometimes cause problems. |
| 23067 | # Create a temporary directory, and hook for its removal unless debugging. |
| 23068 | $debug || |
| 23069 | { |
| 23070 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 23071 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 23072 | } |
| 23073 | |
| 23074 | # Create a (secure) tmp directory for tmp files. |
| 23075 | |
| 23076 | { |
| 23077 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
| 23078 | test -n "$tmp" && test -d "$tmp" |
| 23079 | } || |
| 23080 | { |
| 23081 | tmp=./confstat$$-$RANDOM |
| 23082 | (umask 077 && mkdir $tmp) |
| 23083 | } || |
| 23084 | { |
| 23085 | echo "$me: cannot create a temporary directory in ." >&2 |
| 23086 | { (exit 1); exit 1; } |
| 23087 | } |
| 23088 | |
| 23089 | _ACEOF |
| 23090 | |
| 23091 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23092 | |
| 23093 | # |
| 23094 | # CONFIG_FILES section. |
| 23095 | # |
| 23096 | |
| 23097 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 23098 | # This happens for instance when ./config.status config.h |
| 23099 | if test -n "\$CONFIG_FILES"; then |
| 23100 | # Protect against being on the right side of a sed subst in config.status. |
| 23101 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 23102 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 23103 | s,@SHELL@,$SHELL,;t t |
| 23104 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 23105 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 23106 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 23107 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 23108 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 23109 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 23110 | s,@exec_prefix@,$exec_prefix,;t t |
| 23111 | s,@prefix@,$prefix,;t t |
| 23112 | s,@program_transform_name@,$program_transform_name,;t t |
| 23113 | s,@bindir@,$bindir,;t t |
| 23114 | s,@sbindir@,$sbindir,;t t |
| 23115 | s,@libexecdir@,$libexecdir,;t t |
| 23116 | s,@datadir@,$datadir,;t t |
| 23117 | s,@sysconfdir@,$sysconfdir,;t t |
| 23118 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 23119 | s,@localstatedir@,$localstatedir,;t t |
| 23120 | s,@libdir@,$libdir,;t t |
| 23121 | s,@includedir@,$includedir,;t t |
| 23122 | s,@oldincludedir@,$oldincludedir,;t t |
| 23123 | s,@infodir@,$infodir,;t t |
| 23124 | s,@mandir@,$mandir,;t t |
| 23125 | s,@build_alias@,$build_alias,;t t |
| 23126 | s,@host_alias@,$host_alias,;t t |
| 23127 | s,@target_alias@,$target_alias,;t t |
| 23128 | s,@DEFS@,$DEFS,;t t |
| 23129 | s,@ECHO_C@,$ECHO_C,;t t |
| 23130 | s,@ECHO_N@,$ECHO_N,;t t |
| 23131 | s,@ECHO_T@,$ECHO_T,;t t |
| 23132 | s,@LIBS@,$LIBS,;t t |
| 23133 | s,@build@,$build,;t t |
| 23134 | s,@build_cpu@,$build_cpu,;t t |
| 23135 | s,@build_vendor@,$build_vendor,;t t |
| 23136 | s,@build_os@,$build_os,;t t |
| 23137 | s,@host@,$host,;t t |
| 23138 | s,@host_cpu@,$host_cpu,;t t |
| 23139 | s,@host_vendor@,$host_vendor,;t t |
| 23140 | s,@host_os@,$host_os,;t t |
| 23141 | s,@target@,$target,;t t |
| 23142 | s,@target_cpu@,$target_cpu,;t t |
| 23143 | s,@target_vendor@,$target_vendor,;t t |
| 23144 | s,@target_os@,$target_os,;t t |
| 23145 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 23146 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 23147 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23148 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23149 | s,@PACKAGE@,$PACKAGE,;t t |
| 23150 | s,@VERSION@,$VERSION,;t t |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23151 | s,@ACLOCAL@,$ACLOCAL,;t t |
| 23152 | s,@AUTOCONF@,$AUTOCONF,;t t |
| 23153 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
| 23154 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
| 23155 | s,@MAKEINFO@,$MAKEINFO,;t t |
| 23156 | s,@AMTAR@,$AMTAR,;t t |
| 23157 | s,@install_sh@,$install_sh,;t t |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23158 | s,@STRIP@,$STRIP,;t t |
| 23159 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23160 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23161 | s,@mkdir_p@,$mkdir_p,;t t |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23162 | s,@AWK@,$AWK,;t t |
| 23163 | s,@SET_MAKE@,$SET_MAKE,;t t |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23164 | s,@am__leading_dot@,$am__leading_dot,;t t |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23165 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t |
| 23166 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t |
| 23167 | s,@MAINT@,$MAINT,;t t |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23168 | s,@CC@,$CC,;t t |
| 23169 | s,@CFLAGS@,$CFLAGS,;t t |
| 23170 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 23171 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 23172 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23173 | s,@EXEEXT@,$EXEEXT,;t t |
| 23174 | s,@OBJEXT@,$OBJEXT,;t t |
| 23175 | s,@DEPDIR@,$DEPDIR,;t t |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23176 | s,@am__include@,$am__include,;t t |
| 23177 | s,@am__quote@,$am__quote,;t t |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23178 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
| 23179 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
| 23180 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23181 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23182 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
| 23183 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
| 23184 | s,@EGREP@,$EGREP,;t t |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23185 | s,@LN_S@,$LN_S,;t t |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23186 | s,@ECHO@,$ECHO,;t t |
| 23187 | s,@AR@,$AR,;t t |
| 23188 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
| 23189 | s,@RANLIB@,$RANLIB,;t t |
| 23190 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 23191 | s,@CPP@,$CPP,;t t |
| 23192 | s,@CXX@,$CXX,;t t |
| 23193 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
| 23194 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
| 23195 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
| 23196 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
| 23197 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
| 23198 | s,@CXXCPP@,$CXXCPP,;t t |
| 23199 | s,@F77@,$F77,;t t |
| 23200 | s,@FFLAGS@,$FFLAGS,;t t |
| 23201 | s,@ac_ct_F77@,$ac_ct_F77,;t t |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23202 | s,@LIBTOOL@,$LIBTOOL,;t t |
| 23203 | s,@CONFIGURE_DEPENDS@,$CONFIGURE_DEPENDS,;t t |
Lev Walkin | d8b940c | 2004-08-11 05:35:51 +0000 | [diff] [blame] | 23204 | s,@CPLUSPLUS_FOUND_TRUE@,$CPLUSPLUS_FOUND_TRUE,;t t |
| 23205 | s,@CPLUSPLUS_FOUND_FALSE@,$CPLUSPLUS_FOUND_FALSE,;t t |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23206 | s,@YACC@,$YACC,;t t |
| 23207 | s,@LEX@,$LEX,;t t |
| 23208 | s,@LEXLIB@,$LEXLIB,;t t |
| 23209 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23210 | s,@ADD_CFLAGS@,$ADD_CFLAGS,;t t |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23211 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 23212 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
| 23213 | CEOF |
| 23214 | |
| 23215 | _ACEOF |
| 23216 | |
| 23217 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23218 | # Split the substitutions into bite-sized pieces for seds with |
| 23219 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 23220 | ac_max_sed_lines=48 |
| 23221 | ac_sed_frag=1 # Number of current file. |
| 23222 | ac_beg=1 # First line for current file. |
| 23223 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 23224 | ac_more_lines=: |
| 23225 | ac_sed_cmds= |
| 23226 | while $ac_more_lines; do |
| 23227 | if test $ac_beg -gt 1; then |
| 23228 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 23229 | else |
| 23230 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 23231 | fi |
| 23232 | if test ! -s $tmp/subs.frag; then |
| 23233 | ac_more_lines=false |
| 23234 | else |
| 23235 | # The purpose of the label and of the branching condition is to |
| 23236 | # speed up the sed processing (if there are no `@' at all, there |
| 23237 | # is no need to browse any of the substitutions). |
| 23238 | # These are the two extra sed commands mentioned above. |
| 23239 | (echo ':t |
| 23240 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 23241 | if test -z "$ac_sed_cmds"; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23242 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23243 | else |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23244 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23245 | fi |
| 23246 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 23247 | ac_beg=$ac_end |
| 23248 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 23249 | fi |
| 23250 | done |
| 23251 | if test -z "$ac_sed_cmds"; then |
| 23252 | ac_sed_cmds=cat |
| 23253 | fi |
| 23254 | fi # test -n "$CONFIG_FILES" |
| 23255 | |
| 23256 | _ACEOF |
| 23257 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23258 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 23259 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 23260 | case $ac_file in |
| 23261 | - | *:- | *:-:* ) # input from stdin |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23262 | cat >$tmp/stdin |
| 23263 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 23264 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23265 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23266 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23267 | * ) ac_file_in=$ac_file.in ;; |
| 23268 | esac |
| 23269 | |
| 23270 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 23271 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 23272 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23273 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 23274 | X"$ac_file" : 'X\(//\)$' \| \ |
| 23275 | X"$ac_file" : 'X\(/\)' \| \ |
| 23276 | . : '\(.\)' 2>/dev/null || |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23277 | echo X"$ac_file" | |
| 23278 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 23279 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 23280 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 23281 | /^X\(\/\).*/{ s//\1/; q; } |
| 23282 | s/.*/./; q'` |
| 23283 | { if $as_mkdir_p; then |
| 23284 | mkdir -p "$ac_dir" |
| 23285 | else |
| 23286 | as_dir="$ac_dir" |
| 23287 | as_dirs= |
| 23288 | while test ! -d "$as_dir"; do |
| 23289 | as_dirs="$as_dir $as_dirs" |
| 23290 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 23291 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23292 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 23293 | X"$as_dir" : 'X\(//\)$' \| \ |
| 23294 | X"$as_dir" : 'X\(/\)' \| \ |
| 23295 | . : '\(.\)' 2>/dev/null || |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23296 | echo X"$as_dir" | |
| 23297 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 23298 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 23299 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 23300 | /^X\(\/\).*/{ s//\1/; q; } |
| 23301 | s/.*/./; q'` |
| 23302 | done |
| 23303 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 23304 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 23305 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 23306 | { (exit 1); exit 1; }; }; } |
| 23307 | |
| 23308 | ac_builddir=. |
| 23309 | |
| 23310 | if test "$ac_dir" != .; then |
| 23311 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 23312 | # A "../" for each directory in $ac_dir_suffix. |
| 23313 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 23314 | else |
| 23315 | ac_dir_suffix= ac_top_builddir= |
| 23316 | fi |
| 23317 | |
| 23318 | case $srcdir in |
| 23319 | .) # No --srcdir option. We are building in place. |
| 23320 | ac_srcdir=. |
| 23321 | if test -z "$ac_top_builddir"; then |
| 23322 | ac_top_srcdir=. |
| 23323 | else |
| 23324 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 23325 | fi ;; |
| 23326 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 23327 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 23328 | ac_top_srcdir=$srcdir ;; |
| 23329 | *) # Relative path. |
| 23330 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 23331 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 23332 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23333 | |
| 23334 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 23335 | # the directories may not exist. |
| 23336 | case `pwd` in |
| 23337 | .) ac_abs_builddir="$ac_dir";; |
| 23338 | *) |
| 23339 | case "$ac_dir" in |
| 23340 | .) ac_abs_builddir=`pwd`;; |
| 23341 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 23342 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 23343 | esac;; |
| 23344 | esac |
| 23345 | case $ac_abs_builddir in |
| 23346 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 23347 | *) |
| 23348 | case ${ac_top_builddir}. in |
| 23349 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 23350 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 23351 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 23352 | esac;; |
| 23353 | esac |
| 23354 | case $ac_abs_builddir in |
| 23355 | .) ac_abs_srcdir=$ac_srcdir;; |
| 23356 | *) |
| 23357 | case $ac_srcdir in |
| 23358 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 23359 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 23360 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 23361 | esac;; |
| 23362 | esac |
| 23363 | case $ac_abs_builddir in |
| 23364 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 23365 | *) |
| 23366 | case $ac_top_srcdir in |
| 23367 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 23368 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 23369 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 23370 | esac;; |
| 23371 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23372 | |
| 23373 | |
| 23374 | case $INSTALL in |
| 23375 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 23376 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 23377 | esac |
| 23378 | |
| 23379 | if test x"$ac_file" != x-; then |
| 23380 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 23381 | echo "$as_me: creating $ac_file" >&6;} |
| 23382 | rm -f "$ac_file" |
| 23383 | fi |
| 23384 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 23385 | # use $as_me), people would be surprised to read: |
| 23386 | # /* config.h. Generated by config.status. */ |
| 23387 | if test x"$ac_file" = x-; then |
| 23388 | configure_input= |
| 23389 | else |
| 23390 | configure_input="$ac_file. " |
| 23391 | fi |
| 23392 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23393 | sed 's,.*/,,'` by configure." |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23394 | |
| 23395 | # First look for the input files in the build tree, otherwise in the |
| 23396 | # src tree. |
| 23397 | ac_file_inputs=`IFS=: |
| 23398 | for f in $ac_file_in; do |
| 23399 | case $f in |
| 23400 | -) echo $tmp/stdin ;; |
| 23401 | [\\/$]*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23402 | # Absolute (can't be DOS-style, as IFS=:) |
| 23403 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23404 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 23405 | { (exit 1); exit 1; }; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23406 | echo "$f";; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23407 | *) # Relative |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23408 | if test -f "$f"; then |
| 23409 | # Build tree |
| 23410 | echo "$f" |
| 23411 | elif test -f "$srcdir/$f"; then |
| 23412 | # Source tree |
| 23413 | echo "$srcdir/$f" |
| 23414 | else |
| 23415 | # /dev/null tree |
| 23416 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23417 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 23418 | { (exit 1); exit 1; }; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23419 | fi;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23420 | esac |
| 23421 | done` || { (exit 1); exit 1; } |
| 23422 | _ACEOF |
| 23423 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23424 | sed "$ac_vpsub |
| 23425 | $extrasub |
| 23426 | _ACEOF |
| 23427 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23428 | :t |
| 23429 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 23430 | s,@configure_input@,$configure_input,;t t |
| 23431 | s,@srcdir@,$ac_srcdir,;t t |
| 23432 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 23433 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 23434 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 23435 | s,@builddir@,$ac_builddir,;t t |
| 23436 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 23437 | s,@top_builddir@,$ac_top_builddir,;t t |
| 23438 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 23439 | s,@INSTALL@,$ac_INSTALL,;t t |
| 23440 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 23441 | rm -f $tmp/stdin |
| 23442 | if test x"$ac_file" != x-; then |
| 23443 | mv $tmp/out $ac_file |
| 23444 | else |
| 23445 | cat $tmp/out |
| 23446 | rm -f $tmp/out |
| 23447 | fi |
| 23448 | |
| 23449 | done |
| 23450 | _ACEOF |
| 23451 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23452 | |
| 23453 | # |
| 23454 | # CONFIG_HEADER section. |
| 23455 | # |
| 23456 | |
| 23457 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 23458 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 23459 | # |
| 23460 | # ac_d sets the value in "#define NAME VALUE" lines. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23461 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 23462 | ac_dB='[ ].*$,\1#\2' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23463 | ac_dC=' ' |
| 23464 | ac_dD=',;t' |
| 23465 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23466 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23467 | ac_uB='$,\1#\2define\3' |
| 23468 | ac_uC=' ' |
| 23469 | ac_uD=',;t' |
| 23470 | |
| 23471 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| 23472 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 23473 | case $ac_file in |
| 23474 | - | *:- | *:-:* ) # input from stdin |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23475 | cat >$tmp/stdin |
| 23476 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 23477 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23478 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23479 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23480 | * ) ac_file_in=$ac_file.in ;; |
| 23481 | esac |
| 23482 | |
| 23483 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 23484 | echo "$as_me: creating $ac_file" >&6;} |
| 23485 | |
| 23486 | # First look for the input files in the build tree, otherwise in the |
| 23487 | # src tree. |
| 23488 | ac_file_inputs=`IFS=: |
| 23489 | for f in $ac_file_in; do |
| 23490 | case $f in |
| 23491 | -) echo $tmp/stdin ;; |
| 23492 | [\\/$]*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23493 | # Absolute (can't be DOS-style, as IFS=:) |
| 23494 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23495 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 23496 | { (exit 1); exit 1; }; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23497 | # Do quote $f, to prevent DOS paths from being IFS'd. |
| 23498 | echo "$f";; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23499 | *) # Relative |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23500 | if test -f "$f"; then |
| 23501 | # Build tree |
| 23502 | echo "$f" |
| 23503 | elif test -f "$srcdir/$f"; then |
| 23504 | # Source tree |
| 23505 | echo "$srcdir/$f" |
| 23506 | else |
| 23507 | # /dev/null tree |
| 23508 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23509 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 23510 | { (exit 1); exit 1; }; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23511 | fi;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23512 | esac |
| 23513 | done` || { (exit 1); exit 1; } |
| 23514 | # Remove the trailing spaces. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23515 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23516 | |
| 23517 | _ACEOF |
| 23518 | |
| 23519 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 23520 | # `conftest.undefs', that substitutes the proper values into |
| 23521 | # config.h.in to produce config.h. The first handles `#define' |
| 23522 | # templates, and the second `#undef' templates. |
| 23523 | # And first: Protect against being on the right side of a sed subst in |
| 23524 | # config.status. Protect against being in an unquoted here document |
| 23525 | # in config.status. |
| 23526 | rm -f conftest.defines conftest.undefs |
| 23527 | # Using a here document instead of a string reduces the quoting nightmare. |
| 23528 | # Putting comments in sed scripts is not portable. |
| 23529 | # |
| 23530 | # `end' is used to avoid that the second main sed command (meant for |
| 23531 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 23532 | # See the Autoconf documentation for `clear'. |
| 23533 | cat >confdef2sed.sed <<\_ACEOF |
| 23534 | s/[\\&,]/\\&/g |
| 23535 | s,[\\$`],\\&,g |
| 23536 | t clear |
| 23537 | : clear |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23538 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23539 | t end |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23540 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23541 | : end |
| 23542 | _ACEOF |
| 23543 | # If some macros were called several times there might be several times |
| 23544 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 23545 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 23546 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 23547 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 23548 | rm -f confdef2sed.sed |
| 23549 | |
| 23550 | # This sed command replaces #undef with comments. This is necessary, for |
| 23551 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 23552 | # on some systems where configure will not decide to define it. |
| 23553 | cat >>conftest.undefs <<\_ACEOF |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23554 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23555 | _ACEOF |
| 23556 | |
| 23557 | # Break up conftest.defines because some shells have a limit on the size |
| 23558 | # of here documents, and old seds have small limits too (100 cmds). |
| 23559 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23560 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23561 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 23562 | echo ' :' >>$CONFIG_STATUS |
| 23563 | rm -f conftest.tail |
| 23564 | while grep . conftest.defines >/dev/null |
| 23565 | do |
| 23566 | # Write a limited-size here document to $tmp/defines.sed. |
| 23567 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 23568 | # Speed up: don't consider the non `#define' lines. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23569 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23570 | # Work around the forget-to-reset-the-flag bug. |
| 23571 | echo 't clr' >>$CONFIG_STATUS |
| 23572 | echo ': clr' >>$CONFIG_STATUS |
| 23573 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
| 23574 | echo 'CEOF |
| 23575 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 23576 | rm -f $tmp/in |
| 23577 | mv $tmp/out $tmp/in |
| 23578 | ' >>$CONFIG_STATUS |
| 23579 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 23580 | rm -f conftest.defines |
| 23581 | mv conftest.tail conftest.defines |
| 23582 | done |
| 23583 | rm -f conftest.defines |
| 23584 | echo ' fi # grep' >>$CONFIG_STATUS |
| 23585 | echo >>$CONFIG_STATUS |
| 23586 | |
| 23587 | # Break up conftest.undefs because some shells have a limit on the size |
| 23588 | # of here documents, and old seds have small limits too (100 cmds). |
| 23589 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 23590 | rm -f conftest.tail |
| 23591 | while grep . conftest.undefs >/dev/null |
| 23592 | do |
| 23593 | # Write a limited-size here document to $tmp/undefs.sed. |
| 23594 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 23595 | # Speed up: don't consider the non `#undef' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23596 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23597 | # Work around the forget-to-reset-the-flag bug. |
| 23598 | echo 't clr' >>$CONFIG_STATUS |
| 23599 | echo ': clr' >>$CONFIG_STATUS |
| 23600 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 23601 | echo 'CEOF |
| 23602 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 23603 | rm -f $tmp/in |
| 23604 | mv $tmp/out $tmp/in |
| 23605 | ' >>$CONFIG_STATUS |
| 23606 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 23607 | rm -f conftest.undefs |
| 23608 | mv conftest.tail conftest.undefs |
| 23609 | done |
| 23610 | rm -f conftest.undefs |
| 23611 | |
| 23612 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23613 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 23614 | # use $as_me), people would be surprised to read: |
| 23615 | # /* config.h. Generated by config.status. */ |
| 23616 | if test x"$ac_file" = x-; then |
| 23617 | echo "/* Generated by configure. */" >$tmp/config.h |
| 23618 | else |
| 23619 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
| 23620 | fi |
| 23621 | cat $tmp/in >>$tmp/config.h |
| 23622 | rm -f $tmp/in |
| 23623 | if test x"$ac_file" != x-; then |
| 23624 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
| 23625 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 23626 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 23627 | else |
| 23628 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 23629 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23630 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 23631 | X"$ac_file" : 'X\(//\)$' \| \ |
| 23632 | X"$ac_file" : 'X\(/\)' \| \ |
| 23633 | . : '\(.\)' 2>/dev/null || |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23634 | echo X"$ac_file" | |
| 23635 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 23636 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 23637 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 23638 | /^X\(\/\).*/{ s//\1/; q; } |
| 23639 | s/.*/./; q'` |
| 23640 | { if $as_mkdir_p; then |
| 23641 | mkdir -p "$ac_dir" |
| 23642 | else |
| 23643 | as_dir="$ac_dir" |
| 23644 | as_dirs= |
| 23645 | while test ! -d "$as_dir"; do |
| 23646 | as_dirs="$as_dir $as_dirs" |
| 23647 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 23648 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23649 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 23650 | X"$as_dir" : 'X\(//\)$' \| \ |
| 23651 | X"$as_dir" : 'X\(/\)' \| \ |
| 23652 | . : '\(.\)' 2>/dev/null || |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23653 | echo X"$as_dir" | |
| 23654 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 23655 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 23656 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 23657 | /^X\(\/\).*/{ s//\1/; q; } |
| 23658 | s/.*/./; q'` |
| 23659 | done |
| 23660 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 23661 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 23662 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 23663 | { (exit 1); exit 1; }; }; } |
| 23664 | |
| 23665 | rm -f $ac_file |
| 23666 | mv $tmp/config.h $ac_file |
| 23667 | fi |
| 23668 | else |
| 23669 | cat $tmp/config.h |
| 23670 | rm -f $tmp/config.h |
| 23671 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23672 | # Compute $ac_file's index in $config_headers. |
| 23673 | _am_stamp_count=1 |
| 23674 | for _am_header in $config_headers :; do |
| 23675 | case $_am_header in |
| 23676 | $ac_file | $ac_file:* ) |
| 23677 | break ;; |
| 23678 | * ) |
| 23679 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23680 | esac |
| 23681 | done |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23682 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
| 23683 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 23684 | X$ac_file : 'X\(//\)[^/]' \| \ |
| 23685 | X$ac_file : 'X\(//\)$' \| \ |
| 23686 | X$ac_file : 'X\(/\)' \| \ |
| 23687 | . : '\(.\)' 2>/dev/null || |
| 23688 | echo X$ac_file | |
| 23689 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 23690 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 23691 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 23692 | /^X\(\/\).*/{ s//\1/; q; } |
| 23693 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 23694 | done |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23695 | _ACEOF |
| 23696 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23697 | |
| 23698 | # |
| 23699 | # CONFIG_COMMANDS section. |
| 23700 | # |
| 23701 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| 23702 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 23703 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 23704 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 23705 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23706 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 23707 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 23708 | X"$ac_dest" : 'X\(/\)' \| \ |
| 23709 | . : '\(.\)' 2>/dev/null || |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23710 | echo X"$ac_dest" | |
| 23711 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 23712 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 23713 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 23714 | /^X\(\/\).*/{ s//\1/; q; } |
| 23715 | s/.*/./; q'` |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23716 | { if $as_mkdir_p; then |
| 23717 | mkdir -p "$ac_dir" |
| 23718 | else |
| 23719 | as_dir="$ac_dir" |
| 23720 | as_dirs= |
| 23721 | while test ! -d "$as_dir"; do |
| 23722 | as_dirs="$as_dir $as_dirs" |
| 23723 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 23724 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 23725 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 23726 | X"$as_dir" : 'X\(//\)$' \| \ |
| 23727 | X"$as_dir" : 'X\(/\)' \| \ |
| 23728 | . : '\(.\)' 2>/dev/null || |
| 23729 | echo X"$as_dir" | |
| 23730 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 23731 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 23732 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 23733 | /^X\(\/\).*/{ s//\1/; q; } |
| 23734 | s/.*/./; q'` |
| 23735 | done |
| 23736 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 23737 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 23738 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 23739 | { (exit 1); exit 1; }; }; } |
| 23740 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23741 | ac_builddir=. |
| 23742 | |
| 23743 | if test "$ac_dir" != .; then |
| 23744 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 23745 | # A "../" for each directory in $ac_dir_suffix. |
| 23746 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 23747 | else |
| 23748 | ac_dir_suffix= ac_top_builddir= |
| 23749 | fi |
| 23750 | |
| 23751 | case $srcdir in |
| 23752 | .) # No --srcdir option. We are building in place. |
| 23753 | ac_srcdir=. |
| 23754 | if test -z "$ac_top_builddir"; then |
| 23755 | ac_top_srcdir=. |
| 23756 | else |
| 23757 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 23758 | fi ;; |
| 23759 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 23760 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 23761 | ac_top_srcdir=$srcdir ;; |
| 23762 | *) # Relative path. |
| 23763 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 23764 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 23765 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23766 | |
| 23767 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 23768 | # the directories may not exist. |
| 23769 | case `pwd` in |
| 23770 | .) ac_abs_builddir="$ac_dir";; |
| 23771 | *) |
| 23772 | case "$ac_dir" in |
| 23773 | .) ac_abs_builddir=`pwd`;; |
| 23774 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 23775 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 23776 | esac;; |
| 23777 | esac |
| 23778 | case $ac_abs_builddir in |
| 23779 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 23780 | *) |
| 23781 | case ${ac_top_builddir}. in |
| 23782 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 23783 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 23784 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 23785 | esac;; |
| 23786 | esac |
| 23787 | case $ac_abs_builddir in |
| 23788 | .) ac_abs_srcdir=$ac_srcdir;; |
| 23789 | *) |
| 23790 | case $ac_srcdir in |
| 23791 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 23792 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 23793 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 23794 | esac;; |
| 23795 | esac |
| 23796 | case $ac_abs_builddir in |
| 23797 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 23798 | *) |
| 23799 | case $ac_top_srcdir in |
| 23800 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 23801 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 23802 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 23803 | esac;; |
| 23804 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23805 | |
| 23806 | |
| 23807 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
| 23808 | echo "$as_me: executing $ac_dest commands" >&6;} |
| 23809 | case $ac_dest in |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23810 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
| 23811 | # Strip MF so we end up with the name of the file. |
| 23812 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 23813 | # Check whether this is an Automake generated Makefile or not. |
| 23814 | # We used to match only the files named `Makefile.in', but |
| 23815 | # some people rename them; so instead we look at the file content. |
| 23816 | # Grep'ing the first line is not enough: some people post-process |
| 23817 | # each Makefile.in and add a new line on top of each file to say so. |
| 23818 | # So let's grep whole file. |
| 23819 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
| 23820 | dirpart=`(dirname "$mf") 2>/dev/null || |
| 23821 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 23822 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 23823 | X"$mf" : 'X\(//\)$' \| \ |
| 23824 | X"$mf" : 'X\(/\)' \| \ |
| 23825 | . : '\(.\)' 2>/dev/null || |
| 23826 | echo X"$mf" | |
| 23827 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 23828 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 23829 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 23830 | /^X\(\/\).*/{ s//\1/; q; } |
| 23831 | s/.*/./; q'` |
| 23832 | else |
| 23833 | continue |
| 23834 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23835 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
| 23836 | # Extract the definition of DEP_FILES from the Makefile without |
| 23837 | # running `make'. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23838 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23839 | test -z "$DEPDIR" && continue |
| 23840 | # When using ansi2knr, U may be empty or an underscore; expand it |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23841 | U=`sed -n 's/^U = //p' < "$mf"` |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23842 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
| 23843 | # We invoke sed twice because it is the simplest approach to |
| 23844 | # changing $(DEPDIR) to its actual value in the expansion. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23845 | for file in `sed -n ' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23846 | /^DEP_FILES = .*\\\\$/ { |
| 23847 | s/^DEP_FILES = // |
| 23848 | :loop |
| 23849 | s/\\\\$// |
| 23850 | p |
| 23851 | n |
| 23852 | /\\\\$/ b loop |
| 23853 | p |
| 23854 | } |
| 23855 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
| 23856 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 23857 | # Make sure the directory exists. |
| 23858 | test -f "$dirpart/$file" && continue |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 23859 | fdir=`(dirname "$file") 2>/dev/null || |
| 23860 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 23861 | X"$file" : 'X\(//\)[^/]' \| \ |
| 23862 | X"$file" : 'X\(//\)$' \| \ |
| 23863 | X"$file" : 'X\(/\)' \| \ |
| 23864 | . : '\(.\)' 2>/dev/null || |
| 23865 | echo X"$file" | |
| 23866 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 23867 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 23868 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 23869 | /^X\(\/\).*/{ s//\1/; q; } |
| 23870 | s/.*/./; q'` |
| 23871 | { if $as_mkdir_p; then |
| 23872 | mkdir -p $dirpart/$fdir |
| 23873 | else |
| 23874 | as_dir=$dirpart/$fdir |
| 23875 | as_dirs= |
| 23876 | while test ! -d "$as_dir"; do |
| 23877 | as_dirs="$as_dir $as_dirs" |
| 23878 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 23879 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 23880 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 23881 | X"$as_dir" : 'X\(//\)$' \| \ |
| 23882 | X"$as_dir" : 'X\(/\)' \| \ |
| 23883 | . : '\(.\)' 2>/dev/null || |
| 23884 | echo X"$as_dir" | |
| 23885 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 23886 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 23887 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 23888 | /^X\(\/\).*/{ s//\1/; q; } |
| 23889 | s/.*/./; q'` |
| 23890 | done |
| 23891 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 23892 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
| 23893 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
| 23894 | { (exit 1); exit 1; }; }; } |
| 23895 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23896 | # echo "creating $dirpart/$file" |
| 23897 | echo '# dummy' > "$dirpart/$file" |
| 23898 | done |
| 23899 | done |
| 23900 | ;; |
| 23901 | esac |
| 23902 | done |
| 23903 | _ACEOF |
| 23904 | |
| 23905 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23906 | |
| 23907 | { (exit 0); exit 0; } |
| 23908 | _ACEOF |
| 23909 | chmod +x $CONFIG_STATUS |
| 23910 | ac_clean_files=$ac_clean_files_save |
| 23911 | |
| 23912 | |
| 23913 | # configure is writing to config.log, and then calls config.status. |
| 23914 | # config.status does its own redirection, appending to config.log. |
| 23915 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 23916 | # by configure, so config.status won't be able to write to it; its |
| 23917 | # output is simply discarded. So we exec the FD to /dev/null, |
| 23918 | # effectively closing config.log, so it can be properly (re)opened and |
| 23919 | # appended to by config.status. When coming back to configure, we |
| 23920 | # need to make the FD available again. |
| 23921 | if test "$no_create" != yes; then |
| 23922 | ac_cs_success=: |
| 23923 | ac_config_status_args= |
| 23924 | test "$silent" = yes && |
| 23925 | ac_config_status_args="$ac_config_status_args --quiet" |
| 23926 | exec 5>/dev/null |
| 23927 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 23928 | exec 5>>config.log |
| 23929 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 23930 | # would make configure fail if this is the last instruction. |
| 23931 | $ac_cs_success || { (exit 1); exit 1; } |
| 23932 | fi |
| 23933 | |
| 23934 | |